@gemafajarramadhan/dynamic-ui 1.2.17 → 1.2.18
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/README.md +25 -16
- package/dist/dynamic-ui.es.js +2 -1
- package/dist/dynamic-ui.umd.js +15 -15
- package/package.json +1 -1
package/dist/dynamic-ui.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(oe,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@vuepic/vue-datepicker"),require("@uppy/core"),require("@uppy/dashboard"),require("@uppy/image-editor"),require("vue-router"),require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@vuepic/vue-datepicker","@uppy/core","@uppy/dashboard","@uppy/image-editor","vue-router","vue-i18n"],t):(oe=typeof globalThis<"u"?globalThis:oe||self,t(oe.DynamicUI={},oe.Vue,oe.VueDatePicker,oe.Uppy,oe.UppyDashboard,oe.UppyImageEditor,oe.VueRouter,oe.VueI18n))})(this,(function(oe,t,Je,fq,y_,kq,H1,MS){"use strict";var jQ=Object.defineProperty;var pq=oe=>{throw TypeError(oe)};var OQ=(oe,t,Je)=>t in oe?jQ(oe,t,{enumerable:!0,configurable:!0,writable:!0,value:Je}):oe[t]=Je;var ce=(oe,t,Je)=>OQ(oe,typeof t!="symbol"?t+"":t,Je),FQ=(oe,t,Je)=>t.has(oe)||pq("Cannot "+Je);var T1=(oe,t,Je)=>(FQ(oe,t,"read from private field"),Je?Je.call(oe):t.get(oe)),yq=(oe,t,Je)=>t.has(oe)?pq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(oe):t.set(oe,Je);var pS;function mq(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const n in a)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>a[n]})}}return e.default=a,Object.freeze(e)}const j1=mq(t);let pt={};function gq(a){pt={...pt,...a}}function bq(){return pt}function Mq(){return pt.apiBaseUrl?pt.apiBaseUrl:typeof window<"u"&&window.__MICRO_API_BASE_URL__?window.__MICRO_API_BASE_URL__:""}function xq(){const a={"Content-Type":"application/json",Accept:"application/json"};let e=null;if(pt.getAuthToken?e=pt.getAuthToken():typeof window<"u"&&window.__MICRO_AUTH_TOKEN__?e=window.__MICRO_AUTH_TOKEN__:typeof localStorage<"u"&&(e=localStorage.getItem("token")||sessionStorage.getItem("token")),e&&(a.Authorization=`Bearer ${e}`),pt.getHeaders){const n=pt.getHeaders();return{...a,...n}}return a}function wq(){pt.onUnauthorized&&pt.onUnauthorized()}async function f_(a,e,n){const o=bq();if(o.apiClient)return o.apiClient(a,e||"GET",n);if(!a||!a.trim())throw new Error("[DynamicUI][useApi] URL tidak boleh kosong. Pastikan prop `endpoint.apiUrl` sudah diisi dengan benar.");const r=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],i=(e||"").trim().toUpperCase(),s=r.includes(i)?i:"GET";r.includes(i)||console.warn(`[DynamicUI][useApi] HTTP method '${e}' tidak valid, fallback ke 'GET'.`);const c=Mq(),d=a.startsWith("http")?a:`${c}${a}`,h={method:s,headers:xq()};n&&!["GET","DELETE"].includes(s)&&(h.body=JSON.stringify(n));let u=d;if(n&&s==="GET"){const f=new URLSearchParams;Object.entries(n).forEach(([m,g])=>{g!=null&&f.append(m,String(g))});const k=f.toString();k&&(u=`${d}${d.includes("?")?"&":"?"}${k}`)}const p=await fetch(u,h);if(p.status===401&&wq(),!p.ok){const f=await p.text();throw new Error(`HTTP ${p.status}: ${f}`)}return(p.headers.get("content-type")||"").includes("application/json")?p.json():{status:!0,data:await p.text()}}function Ke(){return{apiUrl:(n,o,r)=>f_(n,o,r),DCodeApi:(n,o,r,i)=>{let s=n,c=o,d=r;return i&&i._url?(s=i._url,c=i._method||c||"POST",i._data&&(d={...d||{},...i._data})):n&&o&&(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"].includes(o.toUpperCase())||(s=`${n.endsWith("/")?n.slice(0,-1):n}/${o}`,c="POST")),f_(s,c,d)}}}const vq=["top","right","bottom","left"],sa=Math.min,et=Math.max,O1=Math.round,F1=Math.floor,wt=a=>({x:a,y:a}),Cq={left:"right",right:"left",bottom:"top",top:"bottom"},Lq={start:"end",end:"start"};function xS(a,e,n){return et(a,sa(e,n))}function Ut(a,e){return typeof a=="function"?a(e):a}function Wt(a){return a.split("-")[0]}function rs(a){return a.split("-")[1]}function wS(a){return a==="x"?"y":"x"}function vS(a){return a==="y"?"height":"width"}const Sq=new Set(["top","bottom"]);function vt(a){return Sq.has(Wt(a))?"y":"x"}function CS(a){return wS(vt(a))}function Iq(a,e,n){n===void 0&&(n=!1);const o=rs(a),r=CS(a),i=vS(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=R1(s)),[s,R1(s)]}function _q(a){const e=R1(a);return[LS(a),e,LS(e)]}function LS(a){return a.replace(/start|end/g,e=>Lq[e])}const k_=["left","right"],m_=["right","left"],Aq=["top","bottom"],Bq=["bottom","top"];function Vq(a,e,n){switch(a){case"top":case"bottom":return n?e?m_:k_:e?k_:m_;case"left":case"right":return e?Aq:Bq;default:return[]}}function zq(a,e,n,o){const r=rs(a);let i=Vq(Wt(a),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(LS)))),i}function R1(a){return a.replace(/left|right|bottom|top/g,e=>Cq[e])}function qq(a){return{top:0,right:0,bottom:0,left:0,...a}}function g_(a){return typeof a!="number"?qq(a):{top:a,right:a,bottom:a,left:a}}function N1(a){const{x:e,y:n,width:o,height:r}=a;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function b_(a,e,n){let{reference:o,floating:r}=a;const i=vt(e),s=CS(e),c=vS(s),d=Wt(e),h=i==="y",u=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,y=o[c]/2-r[c]/2;let f;switch(d){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:p};break;case"left":f={x:o.x-r.width,y:p};break;default:f={x:o.x,y:o.y}}switch(rs(e)){case"start":f[s]-=y*(n&&h?-1:1);break;case"end":f[s]+=y*(n&&h?-1:1);break}return f}async function Pq(a,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:d}=a,{boundary:h="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:y=!1,padding:f=0}=Ut(e,a),k=g_(f),g=c[y?p==="floating"?"reference":"floating":p],v=N1(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:h,rootBoundary:u,strategy:d})),L=p==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),M=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},C=N1(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:L,offsetParent:w,strategy:d}):L);return{top:(v.top-C.top+k.top)/M.y,bottom:(C.bottom-v.bottom+k.bottom)/M.y,left:(v.left-C.left+k.left)/M.x,right:(C.right-v.right+k.right)/M.x}}const Dq=async(a,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e));let h=await s.getElementRects({reference:a,floating:e,strategy:r}),{x:u,y:p}=b_(h,o,d),y=o,f={},k=0;for(let g=0;g<c.length;g++){var m;const{name:v,fn:L}=c[g],{x:w,y:M,data:C,reset:S}=await L({x:u,y:p,initialPlacement:o,placement:y,strategy:r,middlewareData:f,rects:h,platform:{...s,detectOverflow:(m=s.detectOverflow)!=null?m:Pq},elements:{reference:a,floating:e}});u=w??u,p=M??p,f={...f,[v]:{...f[v],...C}},S&&k<=50&&(k++,typeof S=="object"&&(S.placement&&(y=S.placement),S.rects&&(h=S.rects===!0?await s.getElementRects({reference:a,floating:e,strategy:r}):S.rects),{x:u,y:p}=b_(h,y,d)),g=-1)}return{x:u,y:p,placement:y,strategy:r,middlewareData:f}},Eq=a=>({name:"arrow",options:a,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:d}=e,{element:h,padding:u=0}=Ut(a,e)||{};if(h==null)return{};const p=g_(u),y={x:n,y:o},f=CS(r),k=vS(f),m=await s.getDimensions(h),g=f==="y",v=g?"top":"left",L=g?"bottom":"right",w=g?"clientHeight":"clientWidth",M=i.reference[k]+i.reference[f]-y[f]-i.floating[k],C=y[f]-i.reference[f],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h));let b=S?S[w]:0;(!b||!await(s.isElement==null?void 0:s.isElement(S)))&&(b=c.floating[w]||i.floating[k]);const x=M/2-C/2,I=b/2-m[k]/2-1,V=sa(p[v],I),B=sa(p[L],I),A=V,P=b-m[k]-B,D=b/2-m[k]/2+x,U=xS(A,D,P),T=!d.arrow&&rs(r)!=null&&D!==U&&i.reference[k]/2-(D<A?V:B)-m[k]/2<0,H=T?D<A?D-A:D-P:0;return{[f]:y[f]+H,data:{[f]:U,centerOffset:D-U-H,...T&&{alignmentOffset:H}},reset:T}}}),Tq=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:d,elements:h}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:m=!0,...g}=Ut(a,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Wt(r),L=vt(c),w=Wt(c)===c,M=await(d.isRTL==null?void 0:d.isRTL(h.floating)),C=y||(w||!m?[R1(c)]:_q(c)),S=k!=="none";!y&&S&&C.push(...zq(c,m,k,M));const b=[c,...C],x=await d.detectOverflow(e,g),I=[];let V=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&I.push(x[v]),p){const D=Iq(r,s,M);I.push(x[D[0]],x[D[1]])}if(V=[...V,{placement:r,overflows:I}],!I.every(D=>D<=0)){var B,A;const D=(((B=i.flip)==null?void 0:B.index)||0)+1,U=b[D];if(U&&(!(p==="alignment"?L!==vt(U):!1)||V.every(N=>vt(N.placement)===L?N.overflows[0]>0:!0)))return{data:{index:D,overflows:V},reset:{placement:U}};let T=(A=V.filter(H=>H.overflows[0]<=0).sort((H,N)=>H.overflows[1]-N.overflows[1])[0])==null?void 0:A.placement;if(!T)switch(f){case"bestFit":{var P;const H=(P=V.filter(N=>{if(S){const Q=vt(N.placement);return Q===L||Q==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(Q=>Q>0).reduce((Q,j)=>Q+j,0)]).sort((N,Q)=>N[1]-Q[1])[0])==null?void 0:P[0];H&&(T=H);break}case"initialPlacement":T=c;break}if(r!==T)return{reset:{placement:T}}}return{}}}};function M_(a,e){return{top:a.top-e.height,right:a.right-e.width,bottom:a.bottom-e.height,left:a.left-e.width}}function x_(a){return vq.some(e=>a[e]>=0)}const Hq=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(e){const{rects:n,platform:o}=e,{strategy:r="referenceHidden",...i}=Ut(a,e);switch(r){case"referenceHidden":{const s=await o.detectOverflow(e,{...i,elementContext:"reference"}),c=M_(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:x_(c)}}}case"escaped":{const s=await o.detectOverflow(e,{...i,altBoundary:!0}),c=M_(s,n.floating);return{data:{escapedOffsets:c,escaped:x_(c)}}}default:return{}}}}},w_=new Set(["left","top"]);async function jq(a,e){const{placement:n,platform:o,elements:r}=a,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Wt(n),c=rs(n),d=vt(n)==="y",h=w_.has(s)?-1:1,u=i&&d?-1:1,p=Ut(e,a);let{mainAxis:y,crossAxis:f,alignmentAxis:k}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof k=="number"&&(f=c==="end"?k*-1:k),d?{x:f*u,y:y*h}:{x:y*h,y:f*u}}const Oq=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,d=await jq(e,a);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+d.x,y:i+d.y,data:{...d,placement:s}}}}},Fq=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(e){const{x:n,y:o,placement:r,platform:i}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:d={fn:v=>{let{x:L,y:w}=v;return{x:L,y:w}}},...h}=Ut(a,e),u={x:n,y:o},p=await i.detectOverflow(e,h),y=vt(Wt(r)),f=wS(y);let k=u[f],m=u[y];if(s){const v=f==="y"?"top":"left",L=f==="y"?"bottom":"right",w=k+p[v],M=k-p[L];k=xS(w,k,M)}if(c){const v=y==="y"?"top":"left",L=y==="y"?"bottom":"right",w=m+p[v],M=m-p[L];m=xS(w,m,M)}const g=d.fn({...e,[f]:k,[y]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[f]:s,[y]:c}}}}}},Rq=function(a){return a===void 0&&(a={}),{options:a,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=Ut(a,e),u={x:n,y:o},p=vt(r),y=wS(p);let f=u[y],k=u[p];const m=Ut(c,e),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(d){const w=y==="y"?"height":"width",M=i.reference[y]-i.floating[w]+g.mainAxis,C=i.reference[y]+i.reference[w]-g.mainAxis;f<M?f=M:f>C&&(f=C)}if(h){var v,L;const w=y==="y"?"width":"height",M=w_.has(Wt(r)),C=i.reference[p]-i.floating[w]+(M&&((v=s.offset)==null?void 0:v[p])||0)+(M?0:g.crossAxis),S=i.reference[p]+i.reference[w]+(M?0:((L=s.offset)==null?void 0:L[p])||0)-(M?g.crossAxis:0);k<C?k=C:k>S&&(k=S)}return{[y]:f,[p]:k}}}},Nq=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:d=()=>{},...h}=Ut(a,e),u=await s.detectOverflow(e,h),p=Wt(r),y=rs(r),f=vt(r)==="y",{width:k,height:m}=i.floating;let g,v;p==="top"||p==="bottom"?(g=p,v=y===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(v=p,g=y==="end"?"top":"bottom");const L=m-u.top-u.bottom,w=k-u.left-u.right,M=sa(m-u[g],L),C=sa(k-u[v],w),S=!e.middlewareData.shift;let b=M,x=C;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(x=w),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(b=L),S&&!y){const V=et(u.left,0),B=et(u.right,0),A=et(u.top,0),P=et(u.bottom,0);f?x=k-2*(V!==0||B!==0?V+B:et(u.left,u.right)):b=m-2*(A!==0||P!==0?A+P:et(u.top,u.bottom))}await d({...e,availableWidth:x,availableHeight:b});const I=await s.getDimensions(c.floating);return k!==I.width||m!==I.height?{reset:{rects:!0}}:{}}}};function $1(){return typeof window<"u"}function Va(a){return SS(a)?(a.nodeName||"").toLowerCase():"#document"}function tt(a){var e;return(a==null||(e=a.ownerDocument)==null?void 0:e.defaultView)||window}function Ct(a){var e;return(e=(SS(a)?a.ownerDocument:a.document)||window.document)==null?void 0:e.documentElement}function SS(a){return $1()?a instanceof Node||a instanceof tt(a).Node:!1}function yt(a){return $1()?a instanceof Element||a instanceof tt(a).Element:!1}function Lt(a){return $1()?a instanceof HTMLElement||a instanceof tt(a).HTMLElement:!1}function v_(a){return!$1()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof tt(a).ShadowRoot}const $q=new Set(["inline","contents"]);function qs(a){const{overflow:e,overflowX:n,overflowY:o,display:r}=ft(a);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!$q.has(r)}const Uq=new Set(["table","td","th"]);function Wq(a){return Uq.has(Va(a))}const Gq=[":popover-open",":modal"];function U1(a){return Gq.some(e=>{try{return a.matches(e)}catch{return!1}})}const Kq=["transform","translate","scale","rotate","perspective"],Xq=["transform","translate","scale","rotate","perspective","filter"],Zq=["paint","layout","strict","content"];function IS(a){const e=_S(),n=yt(a)?ft(a):a;return Kq.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Xq.some(o=>(n.willChange||"").includes(o))||Zq.some(o=>(n.contain||"").includes(o))}function Yq(a){let e=la(a);for(;Lt(e)&&!is(e);){if(IS(e))return e;if(U1(e))return null;e=la(e)}return null}function _S(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qq=new Set(["html","body","#document"]);function is(a){return Qq.has(Va(a))}function ft(a){return tt(a).getComputedStyle(a)}function W1(a){return yt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function la(a){if(Va(a)==="html")return a;const e=a.assignedSlot||a.parentNode||v_(a)&&a.host||Ct(a);return v_(e)?e.host:e}function C_(a){const e=la(a);return is(e)?a.ownerDocument?a.ownerDocument.body:a.body:Lt(e)&&qs(e)?e:C_(e)}function Ps(a,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=C_(a),i=r===((o=a.ownerDocument)==null?void 0:o.body),s=tt(r);if(i){const c=AS(s);return e.concat(s,s.visualViewport||[],qs(r)?r:[],c&&n?Ps(c):[])}return e.concat(r,Ps(r,[],n))}function AS(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function L_(a){const e=ft(a);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Lt(a),i=r?a.offsetWidth:n,s=r?a.offsetHeight:o,c=O1(n)!==i||O1(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function BS(a){return yt(a)?a:a.contextElement}function ss(a){const e=BS(a);if(!Lt(e))return wt(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=L_(e);let s=(i?O1(n.width):n.width)/o,c=(i?O1(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Jq=wt(0);function S_(a){const e=tt(a);return!_S()||!e.visualViewport?Jq:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function eP(a,e,n){return e===void 0&&(e=!1),!n||e&&n!==tt(a)?!1:e}function za(a,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=a.getBoundingClientRect(),i=BS(a);let s=wt(1);e&&(o?yt(o)&&(s=ss(o)):s=ss(a));const c=eP(i,n,o)?S_(i):wt(0);let d=(r.left+c.x)/s.x,h=(r.top+c.y)/s.y,u=r.width/s.x,p=r.height/s.y;if(i){const y=tt(i),f=o&&yt(o)?tt(o):o;let k=y,m=AS(k);for(;m&&o&&f!==k;){const g=ss(m),v=m.getBoundingClientRect(),L=ft(m),w=v.left+(m.clientLeft+parseFloat(L.paddingLeft))*g.x,M=v.top+(m.clientTop+parseFloat(L.paddingTop))*g.y;d*=g.x,h*=g.y,u*=g.x,p*=g.y,d+=w,h+=M,k=tt(m),m=AS(k)}}return N1({width:u,height:p,x:d,y:h})}function G1(a,e){const n=W1(a).scrollLeft;return e?e.left+n:za(Ct(a)).left+n}function I_(a,e){const n=a.getBoundingClientRect(),o=n.left+e.scrollLeft-G1(a,n),r=n.top+e.scrollTop;return{x:o,y:r}}function tP(a){let{elements:e,rect:n,offsetParent:o,strategy:r}=a;const i=r==="fixed",s=Ct(o),c=e?U1(e.floating):!1;if(o===s||c&&i)return n;let d={scrollLeft:0,scrollTop:0},h=wt(1);const u=wt(0),p=Lt(o);if((p||!p&&!i)&&((Va(o)!=="body"||qs(s))&&(d=W1(o)),Lt(o))){const f=za(o);h=ss(o),u.x=f.x+o.clientLeft,u.y=f.y+o.clientTop}const y=s&&!p&&!i?I_(s,d):wt(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+u.x+y.x,y:n.y*h.y-d.scrollTop*h.y+u.y+y.y}}function aP(a){return Array.from(a.getClientRects())}function nP(a){const e=Ct(a),n=W1(a),o=a.ownerDocument.body,r=et(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=et(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+G1(a);const c=-n.scrollTop;return ft(o).direction==="rtl"&&(s+=et(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const __=25;function oP(a,e){const n=tt(a),o=Ct(a),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,d=0;if(r){i=r.width,s=r.height;const u=_S();(!u||u&&e==="fixed")&&(c=r.offsetLeft,d=r.offsetTop)}const h=G1(o);if(h<=0){const u=o.ownerDocument,p=u.body,y=getComputedStyle(p),f=u.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,k=Math.abs(o.clientWidth-p.clientWidth-f);k<=__&&(i-=k)}else h<=__&&(i+=h);return{width:i,height:s,x:c,y:d}}const rP=new Set(["absolute","fixed"]);function iP(a,e){const n=za(a,!0,e==="fixed"),o=n.top+a.clientTop,r=n.left+a.clientLeft,i=Lt(a)?ss(a):wt(1),s=a.clientWidth*i.x,c=a.clientHeight*i.y,d=r*i.x,h=o*i.y;return{width:s,height:c,x:d,y:h}}function A_(a,e,n){let o;if(e==="viewport")o=oP(a,n);else if(e==="document")o=nP(Ct(a));else if(yt(e))o=iP(e,n);else{const r=S_(a);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return N1(o)}function B_(a,e){const n=la(a);return n===e||!yt(n)||is(n)?!1:ft(n).position==="fixed"||B_(n,e)}function sP(a,e){const n=e.get(a);if(n)return n;let o=Ps(a,[],!1).filter(c=>yt(c)&&Va(c)!=="body"),r=null;const i=ft(a).position==="fixed";let s=i?la(a):a;for(;yt(s)&&!is(s);){const c=ft(s),d=IS(s);!d&&c.position==="fixed"&&(r=null),(i?!d&&!r:!d&&c.position==="static"&&!!r&&rP.has(r.position)||qs(s)&&!d&&B_(a,s))?o=o.filter(u=>u!==s):r=c,s=la(s)}return e.set(a,o),o}function lP(a){let{element:e,boundary:n,rootBoundary:o,strategy:r}=a;const s=[...n==="clippingAncestors"?U1(e)?[]:sP(e,this._c):[].concat(n),o],c=s[0],d=s.reduce((h,u)=>{const p=A_(e,u,r);return h.top=et(p.top,h.top),h.right=sa(p.right,h.right),h.bottom=sa(p.bottom,h.bottom),h.left=et(p.left,h.left),h},A_(e,c,r));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function cP(a){const{width:e,height:n}=L_(a);return{width:e,height:n}}function dP(a,e,n){const o=Lt(e),r=Ct(e),i=n==="fixed",s=za(a,!0,i,e);let c={scrollLeft:0,scrollTop:0};const d=wt(0);function h(){d.x=G1(r)}if(o||!o&&!i)if((Va(e)!=="body"||qs(r))&&(c=W1(e)),o){const f=za(e,!0,i,e);d.x=f.x+e.clientLeft,d.y=f.y+e.clientTop}else r&&h();i&&!o&&r&&h();const u=r&&!o&&!i?I_(r,c):wt(0),p=s.left+c.scrollLeft-d.x-u.x,y=s.top+c.scrollTop-d.y-u.y;return{x:p,y,width:s.width,height:s.height}}function VS(a){return ft(a).position==="static"}function V_(a,e){if(!Lt(a)||ft(a).position==="fixed")return null;if(e)return e(a);let n=a.offsetParent;return Ct(a)===n&&(n=n.ownerDocument.body),n}function z_(a,e){const n=tt(a);if(U1(a))return n;if(!Lt(a)){let r=la(a);for(;r&&!is(r);){if(yt(r)&&!VS(r))return r;r=la(r)}return n}let o=V_(a,e);for(;o&&Wq(o)&&VS(o);)o=V_(o,e);return o&&is(o)&&VS(o)&&!IS(o)?n:o||Yq(a)||n}const hP=async function(a){const e=this.getOffsetParent||z_,n=this.getDimensions,o=await n(a.floating);return{reference:dP(a.reference,await e(a.floating),a.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function uP(a){return ft(a).direction==="rtl"}const pP={convertOffsetParentRelativeRectToViewportRelativeRect:tP,getDocumentElement:Ct,getClippingRect:lP,getOffsetParent:z_,getElementRects:hP,getClientRects:aP,getDimensions:cP,getScale:ss,isElement:yt,isRTL:uP};function q_(a,e){return a.x===e.x&&a.y===e.y&&a.width===e.width&&a.height===e.height}function yP(a,e){let n=null,o;const r=Ct(a);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),i();const h=a.getBoundingClientRect(),{left:u,top:p,width:y,height:f}=h;if(c||e(),!y||!f)return;const k=F1(p),m=F1(r.clientWidth-(u+y)),g=F1(r.clientHeight-(p+f)),v=F1(u),w={rootMargin:-k+"px "+-m+"px "+-g+"px "+-v+"px",threshold:et(0,sa(1,d))||1};let M=!0;function C(S){const b=S[0].intersectionRatio;if(b!==d){if(!M)return s();b?s(!1,b):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b===1&&!q_(h,a.getBoundingClientRect())&&s(),M=!1}try{n=new IntersectionObserver(C,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(a)}return s(!0),i}function K1(a,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,h=BS(a),u=r||i?[...h?Ps(h):[],...Ps(e)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const p=h&&c?yP(h,n):null;let y=-1,f=null;s&&(f=new ResizeObserver(v=>{let[L]=v;L&&L.target===h&&f&&(f.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(e)})),n()}),h&&!d&&f.observe(h),f.observe(e));let k,m=d?za(a):null;d&&g();function g(){const v=za(a);m&&!q_(m,v)&&n(),m=v,k=requestAnimationFrame(g)}return n(),()=>{var v;u.forEach(L=>{r&&L.removeEventListener("scroll",n),i&&L.removeEventListener("resize",n)}),p==null||p(),(v=f)==null||v.disconnect(),f=null,d&&cancelAnimationFrame(k)}}const X1=Oq,Z1=Fq,Ds=Tq,Y1=Nq,fP=Hq,kP=Eq,mP=Rq,gP=(a,e,n)=>{const o=new Map,r={platform:pP,...n},i={...r.platform,_c:o};return Dq(a,e,{...r,platform:i})};function bP(a){return a!=null&&typeof a=="object"&&"$el"in a}function zS(a){if(bP(a)){const e=a.$el;return SS(e)&&Va(e)==="#comment"?null:e}return a}function ls(a){return typeof a=="function"?a():t.unref(a)}function MP(a){return{name:"arrow",options:a,fn(e){const n=zS(ls(a.element));return n==null?{}:kP({element:n,padding:a.padding}).fn(e)}}}function P_(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function D_(a,e){const n=P_(a);return Math.round(e*n)/n}function Q1(a,e,n){n===void 0&&(n={});const o=n.whileElementsMounted,r=t.computed(()=>{var b;return(b=ls(n.open))!=null?b:!0}),i=t.computed(()=>ls(n.middleware)),s=t.computed(()=>{var b;return(b=ls(n.placement))!=null?b:"bottom"}),c=t.computed(()=>{var b;return(b=ls(n.strategy))!=null?b:"absolute"}),d=t.computed(()=>{var b;return(b=ls(n.transform))!=null?b:!0}),h=t.computed(()=>zS(a.value)),u=t.computed(()=>zS(e.value)),p=t.ref(0),y=t.ref(0),f=t.ref(c.value),k=t.ref(s.value),m=t.shallowRef({}),g=t.ref(!1),v=t.computed(()=>{const b={position:f.value,left:"0",top:"0"};if(!u.value)return b;const x=D_(u.value,p.value),I=D_(u.value,y.value);return d.value?{...b,transform:"translate("+x+"px, "+I+"px)",...P_(u.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:x+"px",top:I+"px"}});let L;function w(){if(h.value==null||u.value==null)return;const b=r.value;gP(h.value,u.value,{middleware:i.value,placement:s.value,strategy:c.value}).then(x=>{p.value=x.x,y.value=x.y,f.value=x.strategy,k.value=x.placement,m.value=x.middlewareData,g.value=b!==!1})}function M(){typeof L=="function"&&(L(),L=void 0)}function C(){if(M(),o===void 0){w();return}if(h.value!=null&&u.value!=null){L=o(h.value,u.value,w);return}}function S(){r.value||(g.value=!1)}return t.watch([i,s,c,r],w,{flush:"sync"}),t.watch([h,u],C,{flush:"sync"}),t.watch(r,S,{flush:"sync"}),t.getCurrentScope()&&t.onScopeDispose(M),{x:t.shallowReadonly(p),y:t.shallowReadonly(y),strategy:t.shallowReadonly(f),placement:t.shallowReadonly(k),middlewareData:t.shallowReadonly(m),isPositioned:t.shallowReadonly(g),floatingStyles:v,update:w}}/**
|
|
1
|
+
(function(oe,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@vuepic/vue-datepicker"),require("@uppy/core"),require("@uppy/dashboard"),require("@uppy/image-editor"),require("vue-router"),require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@vuepic/vue-datepicker","@uppy/core","@uppy/dashboard","@uppy/image-editor","vue-router","vue-i18n"],t):(oe=typeof globalThis<"u"?globalThis:oe||self,t(oe.DynamicUI={},oe.Vue,oe.VueDatePicker,oe.Uppy,oe.UppyDashboard,oe.UppyImageEditor,oe.VueRouter,oe.VueI18n))})(this,(function(oe,t,Je,kq,y_,mq,H1,MS){"use strict";var jQ=Object.defineProperty;var yq=oe=>{throw TypeError(oe)};var OQ=(oe,t,Je)=>t in oe?jQ(oe,t,{enumerable:!0,configurable:!0,writable:!0,value:Je}):oe[t]=Je;var ce=(oe,t,Je)=>OQ(oe,typeof t!="symbol"?t+"":t,Je),FQ=(oe,t,Je)=>t.has(oe)||yq("Cannot "+Je);var T1=(oe,t,Je)=>(FQ(oe,t,"read from private field"),Je?Je.call(oe):t.get(oe)),fq=(oe,t,Je)=>t.has(oe)?yq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(oe):t.set(oe,Je);var pS;function gq(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const n in a)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>a[n]})}}return e.default=a,Object.freeze(e)}const j1=gq(t);let pt={};function f_(a){pt={...pt,...a}}function bq(){return pt}function Mq(){return pt.apiBaseUrl?pt.apiBaseUrl:typeof window<"u"&&window.__MICRO_API_BASE_URL__?window.__MICRO_API_BASE_URL__:""}function xq(){const a={"Content-Type":"application/json",Accept:"application/json"};let e=null;if(pt.getAuthToken?e=pt.getAuthToken():typeof window<"u"&&window.__MICRO_AUTH_TOKEN__?e=window.__MICRO_AUTH_TOKEN__:typeof localStorage<"u"&&(e=localStorage.getItem("token")||sessionStorage.getItem("token")),e&&(a.Authorization=`Bearer ${e}`),pt.getHeaders){const n=pt.getHeaders();return{...a,...n}}return a}function wq(){pt.onUnauthorized&&pt.onUnauthorized()}async function k_(a,e,n){const o=bq();if(o.apiClient)return o.apiClient(a,e||"GET",n);if(!a||!a.trim())throw new Error("[DynamicUI][useApi] URL tidak boleh kosong. Pastikan prop `endpoint.apiUrl` sudah diisi dengan benar.");const r=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],i=(e||"").trim().toUpperCase(),s=r.includes(i)?i:"GET";r.includes(i)||console.warn(`[DynamicUI][useApi] HTTP method '${e}' tidak valid, fallback ke 'GET'.`);const c=Mq(),d=a.startsWith("http")?a:`${c}${a}`,h={method:s,headers:xq()};n&&!["GET","DELETE"].includes(s)&&(h.body=JSON.stringify(n));let u=d;if(n&&s==="GET"){const f=new URLSearchParams;Object.entries(n).forEach(([m,g])=>{g!=null&&f.append(m,String(g))});const k=f.toString();k&&(u=`${d}${d.includes("?")?"&":"?"}${k}`)}const p=await fetch(u,h);if(p.status===401&&wq(),!p.ok){const f=await p.text();throw new Error(`HTTP ${p.status}: ${f}`)}return(p.headers.get("content-type")||"").includes("application/json")?p.json():{status:!0,data:await p.text()}}function Ke(){return{apiUrl:(n,o,r)=>k_(n,o,r),DCodeApi:(n,o,r,i)=>{let s=n,c=o,d=r;return i&&i._url?(s=i._url,c=i._method||c||"POST",i._data&&(d={...d||{},...i._data})):n&&o&&(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"].includes(o.toUpperCase())||(s=`${n.endsWith("/")?n.slice(0,-1):n}/${o}`,c="POST")),k_(s,c,d)}}}const vq=["top","right","bottom","left"],sa=Math.min,et=Math.max,O1=Math.round,F1=Math.floor,wt=a=>({x:a,y:a}),Cq={left:"right",right:"left",bottom:"top",top:"bottom"},Lq={start:"end",end:"start"};function xS(a,e,n){return et(a,sa(e,n))}function Ut(a,e){return typeof a=="function"?a(e):a}function Wt(a){return a.split("-")[0]}function rs(a){return a.split("-")[1]}function wS(a){return a==="x"?"y":"x"}function vS(a){return a==="y"?"height":"width"}const Sq=new Set(["top","bottom"]);function vt(a){return Sq.has(Wt(a))?"y":"x"}function CS(a){return wS(vt(a))}function Iq(a,e,n){n===void 0&&(n=!1);const o=rs(a),r=CS(a),i=vS(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=R1(s)),[s,R1(s)]}function _q(a){const e=R1(a);return[LS(a),e,LS(e)]}function LS(a){return a.replace(/start|end/g,e=>Lq[e])}const m_=["left","right"],g_=["right","left"],Aq=["top","bottom"],Bq=["bottom","top"];function Vq(a,e,n){switch(a){case"top":case"bottom":return n?e?g_:m_:e?m_:g_;case"left":case"right":return e?Aq:Bq;default:return[]}}function zq(a,e,n,o){const r=rs(a);let i=Vq(Wt(a),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(LS)))),i}function R1(a){return a.replace(/left|right|bottom|top/g,e=>Cq[e])}function qq(a){return{top:0,right:0,bottom:0,left:0,...a}}function b_(a){return typeof a!="number"?qq(a):{top:a,right:a,bottom:a,left:a}}function N1(a){const{x:e,y:n,width:o,height:r}=a;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function M_(a,e,n){let{reference:o,floating:r}=a;const i=vt(e),s=CS(e),c=vS(s),d=Wt(e),h=i==="y",u=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,y=o[c]/2-r[c]/2;let f;switch(d){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:p};break;case"left":f={x:o.x-r.width,y:p};break;default:f={x:o.x,y:o.y}}switch(rs(e)){case"start":f[s]-=y*(n&&h?-1:1);break;case"end":f[s]+=y*(n&&h?-1:1);break}return f}async function Pq(a,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:d}=a,{boundary:h="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:y=!1,padding:f=0}=Ut(e,a),k=b_(f),g=c[y?p==="floating"?"reference":"floating":p],v=N1(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:h,rootBoundary:u,strategy:d})),L=p==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),M=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},C=N1(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:L,offsetParent:w,strategy:d}):L);return{top:(v.top-C.top+k.top)/M.y,bottom:(C.bottom-v.bottom+k.bottom)/M.y,left:(v.left-C.left+k.left)/M.x,right:(C.right-v.right+k.right)/M.x}}const Dq=async(a,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e));let h=await s.getElementRects({reference:a,floating:e,strategy:r}),{x:u,y:p}=M_(h,o,d),y=o,f={},k=0;for(let g=0;g<c.length;g++){var m;const{name:v,fn:L}=c[g],{x:w,y:M,data:C,reset:S}=await L({x:u,y:p,initialPlacement:o,placement:y,strategy:r,middlewareData:f,rects:h,platform:{...s,detectOverflow:(m=s.detectOverflow)!=null?m:Pq},elements:{reference:a,floating:e}});u=w??u,p=M??p,f={...f,[v]:{...f[v],...C}},S&&k<=50&&(k++,typeof S=="object"&&(S.placement&&(y=S.placement),S.rects&&(h=S.rects===!0?await s.getElementRects({reference:a,floating:e,strategy:r}):S.rects),{x:u,y:p}=M_(h,y,d)),g=-1)}return{x:u,y:p,placement:y,strategy:r,middlewareData:f}},Eq=a=>({name:"arrow",options:a,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:d}=e,{element:h,padding:u=0}=Ut(a,e)||{};if(h==null)return{};const p=b_(u),y={x:n,y:o},f=CS(r),k=vS(f),m=await s.getDimensions(h),g=f==="y",v=g?"top":"left",L=g?"bottom":"right",w=g?"clientHeight":"clientWidth",M=i.reference[k]+i.reference[f]-y[f]-i.floating[k],C=y[f]-i.reference[f],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h));let b=S?S[w]:0;(!b||!await(s.isElement==null?void 0:s.isElement(S)))&&(b=c.floating[w]||i.floating[k]);const x=M/2-C/2,I=b/2-m[k]/2-1,V=sa(p[v],I),B=sa(p[L],I),A=V,P=b-m[k]-B,D=b/2-m[k]/2+x,U=xS(A,D,P),T=!d.arrow&&rs(r)!=null&&D!==U&&i.reference[k]/2-(D<A?V:B)-m[k]/2<0,H=T?D<A?D-A:D-P:0;return{[f]:y[f]+H,data:{[f]:U,centerOffset:D-U-H,...T&&{alignmentOffset:H}},reset:T}}}),Tq=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:d,elements:h}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:m=!0,...g}=Ut(a,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Wt(r),L=vt(c),w=Wt(c)===c,M=await(d.isRTL==null?void 0:d.isRTL(h.floating)),C=y||(w||!m?[R1(c)]:_q(c)),S=k!=="none";!y&&S&&C.push(...zq(c,m,k,M));const b=[c,...C],x=await d.detectOverflow(e,g),I=[];let V=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&I.push(x[v]),p){const D=Iq(r,s,M);I.push(x[D[0]],x[D[1]])}if(V=[...V,{placement:r,overflows:I}],!I.every(D=>D<=0)){var B,A;const D=(((B=i.flip)==null?void 0:B.index)||0)+1,U=b[D];if(U&&(!(p==="alignment"?L!==vt(U):!1)||V.every(N=>vt(N.placement)===L?N.overflows[0]>0:!0)))return{data:{index:D,overflows:V},reset:{placement:U}};let T=(A=V.filter(H=>H.overflows[0]<=0).sort((H,N)=>H.overflows[1]-N.overflows[1])[0])==null?void 0:A.placement;if(!T)switch(f){case"bestFit":{var P;const H=(P=V.filter(N=>{if(S){const Q=vt(N.placement);return Q===L||Q==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(Q=>Q>0).reduce((Q,j)=>Q+j,0)]).sort((N,Q)=>N[1]-Q[1])[0])==null?void 0:P[0];H&&(T=H);break}case"initialPlacement":T=c;break}if(r!==T)return{reset:{placement:T}}}return{}}}};function x_(a,e){return{top:a.top-e.height,right:a.right-e.width,bottom:a.bottom-e.height,left:a.left-e.width}}function w_(a){return vq.some(e=>a[e]>=0)}const Hq=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(e){const{rects:n,platform:o}=e,{strategy:r="referenceHidden",...i}=Ut(a,e);switch(r){case"referenceHidden":{const s=await o.detectOverflow(e,{...i,elementContext:"reference"}),c=x_(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:w_(c)}}}case"escaped":{const s=await o.detectOverflow(e,{...i,altBoundary:!0}),c=x_(s,n.floating);return{data:{escapedOffsets:c,escaped:w_(c)}}}default:return{}}}}},v_=new Set(["left","top"]);async function jq(a,e){const{placement:n,platform:o,elements:r}=a,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Wt(n),c=rs(n),d=vt(n)==="y",h=v_.has(s)?-1:1,u=i&&d?-1:1,p=Ut(e,a);let{mainAxis:y,crossAxis:f,alignmentAxis:k}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof k=="number"&&(f=c==="end"?k*-1:k),d?{x:f*u,y:y*h}:{x:y*h,y:f*u}}const Oq=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,d=await jq(e,a);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+d.x,y:i+d.y,data:{...d,placement:s}}}}},Fq=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(e){const{x:n,y:o,placement:r,platform:i}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:d={fn:v=>{let{x:L,y:w}=v;return{x:L,y:w}}},...h}=Ut(a,e),u={x:n,y:o},p=await i.detectOverflow(e,h),y=vt(Wt(r)),f=wS(y);let k=u[f],m=u[y];if(s){const v=f==="y"?"top":"left",L=f==="y"?"bottom":"right",w=k+p[v],M=k-p[L];k=xS(w,k,M)}if(c){const v=y==="y"?"top":"left",L=y==="y"?"bottom":"right",w=m+p[v],M=m-p[L];m=xS(w,m,M)}const g=d.fn({...e,[f]:k,[y]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[f]:s,[y]:c}}}}}},Rq=function(a){return a===void 0&&(a={}),{options:a,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=Ut(a,e),u={x:n,y:o},p=vt(r),y=wS(p);let f=u[y],k=u[p];const m=Ut(c,e),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(d){const w=y==="y"?"height":"width",M=i.reference[y]-i.floating[w]+g.mainAxis,C=i.reference[y]+i.reference[w]-g.mainAxis;f<M?f=M:f>C&&(f=C)}if(h){var v,L;const w=y==="y"?"width":"height",M=v_.has(Wt(r)),C=i.reference[p]-i.floating[w]+(M&&((v=s.offset)==null?void 0:v[p])||0)+(M?0:g.crossAxis),S=i.reference[p]+i.reference[w]+(M?0:((L=s.offset)==null?void 0:L[p])||0)-(M?g.crossAxis:0);k<C?k=C:k>S&&(k=S)}return{[y]:f,[p]:k}}}},Nq=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:d=()=>{},...h}=Ut(a,e),u=await s.detectOverflow(e,h),p=Wt(r),y=rs(r),f=vt(r)==="y",{width:k,height:m}=i.floating;let g,v;p==="top"||p==="bottom"?(g=p,v=y===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(v=p,g=y==="end"?"top":"bottom");const L=m-u.top-u.bottom,w=k-u.left-u.right,M=sa(m-u[g],L),C=sa(k-u[v],w),S=!e.middlewareData.shift;let b=M,x=C;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(x=w),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(b=L),S&&!y){const V=et(u.left,0),B=et(u.right,0),A=et(u.top,0),P=et(u.bottom,0);f?x=k-2*(V!==0||B!==0?V+B:et(u.left,u.right)):b=m-2*(A!==0||P!==0?A+P:et(u.top,u.bottom))}await d({...e,availableWidth:x,availableHeight:b});const I=await s.getDimensions(c.floating);return k!==I.width||m!==I.height?{reset:{rects:!0}}:{}}}};function $1(){return typeof window<"u"}function Va(a){return SS(a)?(a.nodeName||"").toLowerCase():"#document"}function tt(a){var e;return(a==null||(e=a.ownerDocument)==null?void 0:e.defaultView)||window}function Ct(a){var e;return(e=(SS(a)?a.ownerDocument:a.document)||window.document)==null?void 0:e.documentElement}function SS(a){return $1()?a instanceof Node||a instanceof tt(a).Node:!1}function yt(a){return $1()?a instanceof Element||a instanceof tt(a).Element:!1}function Lt(a){return $1()?a instanceof HTMLElement||a instanceof tt(a).HTMLElement:!1}function C_(a){return!$1()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof tt(a).ShadowRoot}const $q=new Set(["inline","contents"]);function qs(a){const{overflow:e,overflowX:n,overflowY:o,display:r}=ft(a);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!$q.has(r)}const Uq=new Set(["table","td","th"]);function Wq(a){return Uq.has(Va(a))}const Gq=[":popover-open",":modal"];function U1(a){return Gq.some(e=>{try{return a.matches(e)}catch{return!1}})}const Kq=["transform","translate","scale","rotate","perspective"],Xq=["transform","translate","scale","rotate","perspective","filter"],Zq=["paint","layout","strict","content"];function IS(a){const e=_S(),n=yt(a)?ft(a):a;return Kq.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Xq.some(o=>(n.willChange||"").includes(o))||Zq.some(o=>(n.contain||"").includes(o))}function Yq(a){let e=la(a);for(;Lt(e)&&!is(e);){if(IS(e))return e;if(U1(e))return null;e=la(e)}return null}function _S(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qq=new Set(["html","body","#document"]);function is(a){return Qq.has(Va(a))}function ft(a){return tt(a).getComputedStyle(a)}function W1(a){return yt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function la(a){if(Va(a)==="html")return a;const e=a.assignedSlot||a.parentNode||C_(a)&&a.host||Ct(a);return C_(e)?e.host:e}function L_(a){const e=la(a);return is(e)?a.ownerDocument?a.ownerDocument.body:a.body:Lt(e)&&qs(e)?e:L_(e)}function Ps(a,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=L_(a),i=r===((o=a.ownerDocument)==null?void 0:o.body),s=tt(r);if(i){const c=AS(s);return e.concat(s,s.visualViewport||[],qs(r)?r:[],c&&n?Ps(c):[])}return e.concat(r,Ps(r,[],n))}function AS(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function S_(a){const e=ft(a);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Lt(a),i=r?a.offsetWidth:n,s=r?a.offsetHeight:o,c=O1(n)!==i||O1(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function BS(a){return yt(a)?a:a.contextElement}function ss(a){const e=BS(a);if(!Lt(e))return wt(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=S_(e);let s=(i?O1(n.width):n.width)/o,c=(i?O1(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Jq=wt(0);function I_(a){const e=tt(a);return!_S()||!e.visualViewport?Jq:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function eP(a,e,n){return e===void 0&&(e=!1),!n||e&&n!==tt(a)?!1:e}function za(a,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=a.getBoundingClientRect(),i=BS(a);let s=wt(1);e&&(o?yt(o)&&(s=ss(o)):s=ss(a));const c=eP(i,n,o)?I_(i):wt(0);let d=(r.left+c.x)/s.x,h=(r.top+c.y)/s.y,u=r.width/s.x,p=r.height/s.y;if(i){const y=tt(i),f=o&&yt(o)?tt(o):o;let k=y,m=AS(k);for(;m&&o&&f!==k;){const g=ss(m),v=m.getBoundingClientRect(),L=ft(m),w=v.left+(m.clientLeft+parseFloat(L.paddingLeft))*g.x,M=v.top+(m.clientTop+parseFloat(L.paddingTop))*g.y;d*=g.x,h*=g.y,u*=g.x,p*=g.y,d+=w,h+=M,k=tt(m),m=AS(k)}}return N1({width:u,height:p,x:d,y:h})}function G1(a,e){const n=W1(a).scrollLeft;return e?e.left+n:za(Ct(a)).left+n}function __(a,e){const n=a.getBoundingClientRect(),o=n.left+e.scrollLeft-G1(a,n),r=n.top+e.scrollTop;return{x:o,y:r}}function tP(a){let{elements:e,rect:n,offsetParent:o,strategy:r}=a;const i=r==="fixed",s=Ct(o),c=e?U1(e.floating):!1;if(o===s||c&&i)return n;let d={scrollLeft:0,scrollTop:0},h=wt(1);const u=wt(0),p=Lt(o);if((p||!p&&!i)&&((Va(o)!=="body"||qs(s))&&(d=W1(o)),Lt(o))){const f=za(o);h=ss(o),u.x=f.x+o.clientLeft,u.y=f.y+o.clientTop}const y=s&&!p&&!i?__(s,d):wt(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+u.x+y.x,y:n.y*h.y-d.scrollTop*h.y+u.y+y.y}}function aP(a){return Array.from(a.getClientRects())}function nP(a){const e=Ct(a),n=W1(a),o=a.ownerDocument.body,r=et(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=et(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+G1(a);const c=-n.scrollTop;return ft(o).direction==="rtl"&&(s+=et(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const A_=25;function oP(a,e){const n=tt(a),o=Ct(a),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,d=0;if(r){i=r.width,s=r.height;const u=_S();(!u||u&&e==="fixed")&&(c=r.offsetLeft,d=r.offsetTop)}const h=G1(o);if(h<=0){const u=o.ownerDocument,p=u.body,y=getComputedStyle(p),f=u.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,k=Math.abs(o.clientWidth-p.clientWidth-f);k<=A_&&(i-=k)}else h<=A_&&(i+=h);return{width:i,height:s,x:c,y:d}}const rP=new Set(["absolute","fixed"]);function iP(a,e){const n=za(a,!0,e==="fixed"),o=n.top+a.clientTop,r=n.left+a.clientLeft,i=Lt(a)?ss(a):wt(1),s=a.clientWidth*i.x,c=a.clientHeight*i.y,d=r*i.x,h=o*i.y;return{width:s,height:c,x:d,y:h}}function B_(a,e,n){let o;if(e==="viewport")o=oP(a,n);else if(e==="document")o=nP(Ct(a));else if(yt(e))o=iP(e,n);else{const r=I_(a);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return N1(o)}function V_(a,e){const n=la(a);return n===e||!yt(n)||is(n)?!1:ft(n).position==="fixed"||V_(n,e)}function sP(a,e){const n=e.get(a);if(n)return n;let o=Ps(a,[],!1).filter(c=>yt(c)&&Va(c)!=="body"),r=null;const i=ft(a).position==="fixed";let s=i?la(a):a;for(;yt(s)&&!is(s);){const c=ft(s),d=IS(s);!d&&c.position==="fixed"&&(r=null),(i?!d&&!r:!d&&c.position==="static"&&!!r&&rP.has(r.position)||qs(s)&&!d&&V_(a,s))?o=o.filter(u=>u!==s):r=c,s=la(s)}return e.set(a,o),o}function lP(a){let{element:e,boundary:n,rootBoundary:o,strategy:r}=a;const s=[...n==="clippingAncestors"?U1(e)?[]:sP(e,this._c):[].concat(n),o],c=s[0],d=s.reduce((h,u)=>{const p=B_(e,u,r);return h.top=et(p.top,h.top),h.right=sa(p.right,h.right),h.bottom=sa(p.bottom,h.bottom),h.left=et(p.left,h.left),h},B_(e,c,r));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function cP(a){const{width:e,height:n}=S_(a);return{width:e,height:n}}function dP(a,e,n){const o=Lt(e),r=Ct(e),i=n==="fixed",s=za(a,!0,i,e);let c={scrollLeft:0,scrollTop:0};const d=wt(0);function h(){d.x=G1(r)}if(o||!o&&!i)if((Va(e)!=="body"||qs(r))&&(c=W1(e)),o){const f=za(e,!0,i,e);d.x=f.x+e.clientLeft,d.y=f.y+e.clientTop}else r&&h();i&&!o&&r&&h();const u=r&&!o&&!i?__(r,c):wt(0),p=s.left+c.scrollLeft-d.x-u.x,y=s.top+c.scrollTop-d.y-u.y;return{x:p,y,width:s.width,height:s.height}}function VS(a){return ft(a).position==="static"}function z_(a,e){if(!Lt(a)||ft(a).position==="fixed")return null;if(e)return e(a);let n=a.offsetParent;return Ct(a)===n&&(n=n.ownerDocument.body),n}function q_(a,e){const n=tt(a);if(U1(a))return n;if(!Lt(a)){let r=la(a);for(;r&&!is(r);){if(yt(r)&&!VS(r))return r;r=la(r)}return n}let o=z_(a,e);for(;o&&Wq(o)&&VS(o);)o=z_(o,e);return o&&is(o)&&VS(o)&&!IS(o)?n:o||Yq(a)||n}const hP=async function(a){const e=this.getOffsetParent||q_,n=this.getDimensions,o=await n(a.floating);return{reference:dP(a.reference,await e(a.floating),a.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function uP(a){return ft(a).direction==="rtl"}const pP={convertOffsetParentRelativeRectToViewportRelativeRect:tP,getDocumentElement:Ct,getClippingRect:lP,getOffsetParent:q_,getElementRects:hP,getClientRects:aP,getDimensions:cP,getScale:ss,isElement:yt,isRTL:uP};function P_(a,e){return a.x===e.x&&a.y===e.y&&a.width===e.width&&a.height===e.height}function yP(a,e){let n=null,o;const r=Ct(a);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),i();const h=a.getBoundingClientRect(),{left:u,top:p,width:y,height:f}=h;if(c||e(),!y||!f)return;const k=F1(p),m=F1(r.clientWidth-(u+y)),g=F1(r.clientHeight-(p+f)),v=F1(u),w={rootMargin:-k+"px "+-m+"px "+-g+"px "+-v+"px",threshold:et(0,sa(1,d))||1};let M=!0;function C(S){const b=S[0].intersectionRatio;if(b!==d){if(!M)return s();b?s(!1,b):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b===1&&!P_(h,a.getBoundingClientRect())&&s(),M=!1}try{n=new IntersectionObserver(C,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(a)}return s(!0),i}function K1(a,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,h=BS(a),u=r||i?[...h?Ps(h):[],...Ps(e)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const p=h&&c?yP(h,n):null;let y=-1,f=null;s&&(f=new ResizeObserver(v=>{let[L]=v;L&&L.target===h&&f&&(f.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(e)})),n()}),h&&!d&&f.observe(h),f.observe(e));let k,m=d?za(a):null;d&&g();function g(){const v=za(a);m&&!P_(m,v)&&n(),m=v,k=requestAnimationFrame(g)}return n(),()=>{var v;u.forEach(L=>{r&&L.removeEventListener("scroll",n),i&&L.removeEventListener("resize",n)}),p==null||p(),(v=f)==null||v.disconnect(),f=null,d&&cancelAnimationFrame(k)}}const X1=Oq,Z1=Fq,Ds=Tq,Y1=Nq,fP=Hq,kP=Eq,mP=Rq,gP=(a,e,n)=>{const o=new Map,r={platform:pP,...n},i={...r.platform,_c:o};return Dq(a,e,{...r,platform:i})};function bP(a){return a!=null&&typeof a=="object"&&"$el"in a}function zS(a){if(bP(a)){const e=a.$el;return SS(e)&&Va(e)==="#comment"?null:e}return a}function ls(a){return typeof a=="function"?a():t.unref(a)}function MP(a){return{name:"arrow",options:a,fn(e){const n=zS(ls(a.element));return n==null?{}:kP({element:n,padding:a.padding}).fn(e)}}}function D_(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function E_(a,e){const n=D_(a);return Math.round(e*n)/n}function Q1(a,e,n){n===void 0&&(n={});const o=n.whileElementsMounted,r=t.computed(()=>{var b;return(b=ls(n.open))!=null?b:!0}),i=t.computed(()=>ls(n.middleware)),s=t.computed(()=>{var b;return(b=ls(n.placement))!=null?b:"bottom"}),c=t.computed(()=>{var b;return(b=ls(n.strategy))!=null?b:"absolute"}),d=t.computed(()=>{var b;return(b=ls(n.transform))!=null?b:!0}),h=t.computed(()=>zS(a.value)),u=t.computed(()=>zS(e.value)),p=t.ref(0),y=t.ref(0),f=t.ref(c.value),k=t.ref(s.value),m=t.shallowRef({}),g=t.ref(!1),v=t.computed(()=>{const b={position:f.value,left:"0",top:"0"};if(!u.value)return b;const x=E_(u.value,p.value),I=E_(u.value,y.value);return d.value?{...b,transform:"translate("+x+"px, "+I+"px)",...D_(u.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:x+"px",top:I+"px"}});let L;function w(){if(h.value==null||u.value==null)return;const b=r.value;gP(h.value,u.value,{middleware:i.value,placement:s.value,strategy:c.value}).then(x=>{p.value=x.x,y.value=x.y,f.value=x.strategy,k.value=x.placement,m.value=x.middlewareData,g.value=b!==!1})}function M(){typeof L=="function"&&(L(),L=void 0)}function C(){if(M(),o===void 0){w();return}if(h.value!=null&&u.value!=null){L=o(h.value,u.value,w);return}}function S(){r.value||(g.value=!1)}return t.watch([i,s,c,r],w,{flush:"sync"}),t.watch([h,u],C,{flush:"sync"}),t.watch(r,S,{flush:"sync"}),t.getCurrentScope()&&t.onScopeDispose(M),{x:t.shallowReadonly(p),y:t.shallowReadonly(y),strategy:t.shallowReadonly(f),placement:t.shallowReadonly(k),middlewareData:t.shallowReadonly(m),isPositioned:t.shallowReadonly(g),floatingStyles:v,update:w}}/**
|
|
2
2
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const
|
|
11
|
+
*/const T_=a=>a==="";/**
|
|
12
12
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const
|
|
21
|
+
*/const H_=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
22
22
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
41
|
+
*/const j_=({name:a,iconNode:e,absoluteStrokeWidth:n,"absolute-stroke-width":o,strokeWidth:r,"stroke-width":i,size:s=Es.width,color:c=Es.stroke,...d},{slots:h})=>t.h("svg",{...Es,...d,width:s,height:s,stroke:c,"stroke-width":T_(n)||T_(o)||n===!0||o===!0?Number(r||i||Es["stroke-width"])*24/Number(s):r||i||Es["stroke-width"],class:wP("lucide",d.class,...a?[`lucide-${H_(CP(a))}-icon`,`lucide-${H_(a)}`]:["lucide-icon"]),...!h.default&&!xP(d)&&{"aria-hidden":"true"}},[...e.map(u=>t.h(...u)),...h.default?[h.default()]:[]]);/**
|
|
42
42
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const l=(a,e)=>(n,{slots:o,attrs:r})=>t.h(
|
|
46
|
+
*/const l=(a,e)=>(n,{slots:o,attrs:r})=>t.h(j_,{...r,...n,iconNode:e,name:a},o);/**
|
|
47
47
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
@@ -8493,30 +8493,30 @@
|
|
|
8493
8493
|
*
|
|
8494
8494
|
* This source code is licensed under the ISC license.
|
|
8495
8495
|
* See the LICENSE file in the root directory of this source tree.
|
|
8496
|
-
*/const Gt=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:J1,AArrowDownIcon:J1,AArrowUp:el,AArrowUpIcon:el,ALargeSmall:tl,ALargeSmallIcon:tl,Accessibility:al,AccessibilityIcon:al,Activity:nl,ActivityIcon:nl,ActivitySquare:Mr,ActivitySquareIcon:Mr,AirVent:ol,AirVentIcon:ol,Airplay:rl,AirplayIcon:rl,AlarmCheck:qa,AlarmCheckIcon:qa,AlarmClock:sl,AlarmClockCheck:qa,AlarmClockCheckIcon:qa,AlarmClockIcon:sl,AlarmClockMinus:Pa,AlarmClockMinusIcon:Pa,AlarmClockOff:il,AlarmClockOffIcon:il,AlarmClockPlus:Da,AlarmClockPlusIcon:Da,AlarmMinus:Pa,AlarmMinusIcon:Pa,AlarmPlus:Da,AlarmPlusIcon:Da,AlarmSmoke:ll,AlarmSmokeIcon:ll,Album:dl,AlbumIcon:dl,AlertCircle:It,AlertCircleIcon:It,AlertOctagon:Go,AlertOctagonIcon:Go,AlertTriangle:Bi,AlertTriangleIcon:Bi,AlignCenter:vi,AlignCenterHorizontal:cl,AlignCenterHorizontalIcon:cl,AlignCenterIcon:vi,AlignCenterVertical:hl,AlignCenterVerticalIcon:hl,AlignEndHorizontal:ul,AlignEndHorizontalIcon:ul,AlignEndVertical:pl,AlignEndVerticalIcon:pl,AlignHorizontalDistributeCenter:yl,AlignHorizontalDistributeCenterIcon:yl,AlignHorizontalDistributeEnd:fl,AlignHorizontalDistributeEndIcon:fl,AlignHorizontalDistributeStart:kl,AlignHorizontalDistributeStartIcon:kl,AlignHorizontalJustifyCenter:ml,AlignHorizontalJustifyCenterIcon:ml,AlignHorizontalJustifyEnd:gl,AlignHorizontalJustifyEndIcon:gl,AlignHorizontalJustifyStart:bl,AlignHorizontalJustifyStartIcon:bl,AlignHorizontalSpaceAround:Ml,AlignHorizontalSpaceAroundIcon:Ml,AlignHorizontalSpaceBetween:xl,AlignHorizontalSpaceBetweenIcon:xl,AlignJustify:wi,AlignJustifyIcon:wi,AlignLeft:Dt,AlignLeftIcon:Dt,AlignRight:xi,AlignRightIcon:xi,AlignStartHorizontal:wl,AlignStartHorizontalIcon:wl,AlignStartVertical:vl,AlignStartVerticalIcon:vl,AlignVerticalDistributeCenter:Cl,AlignVerticalDistributeCenterIcon:Cl,AlignVerticalDistributeEnd:Ll,AlignVerticalDistributeEndIcon:Ll,AlignVerticalDistributeStart:Sl,AlignVerticalDistributeStartIcon:Sl,AlignVerticalJustifyCenter:Il,AlignVerticalJustifyCenterIcon:Il,AlignVerticalJustifyEnd:_l,AlignVerticalJustifyEndIcon:_l,AlignVerticalJustifyStart:Al,AlignVerticalJustifyStartIcon:Al,AlignVerticalSpaceAround:Bl,AlignVerticalSpaceAroundIcon:Bl,AlignVerticalSpaceBetween:Vl,AlignVerticalSpaceBetweenIcon:Vl,Ambulance:zl,AmbulanceIcon:zl,Ampersand:ql,AmpersandIcon:ql,Ampersands:Pl,AmpersandsIcon:Pl,Amphora:El,AmphoraIcon:El,Anchor:Dl,AnchorIcon:Dl,Angry:Tl,AngryIcon:Tl,Annoyed:Hl,AnnoyedIcon:Hl,Antenna:jl,AntennaIcon:jl,Anvil:Ol,AnvilIcon:Ol,Aperture:Fl,ApertureIcon:Fl,AppWindow:Nl,AppWindowIcon:Nl,AppWindowMac:Rl,AppWindowMacIcon:Rl,Apple:$l,AppleIcon:$l,Archive:Gl,ArchiveIcon:Gl,ArchiveRestore:Ul,ArchiveRestoreIcon:Ul,ArchiveX:Wl,ArchiveXIcon:Wl,AreaChart:Za,AreaChartIcon:Za,Armchair:Kl,ArmchairIcon:Kl,ArrowBigDown:Zl,ArrowBigDownDash:Xl,ArrowBigDownDashIcon:Xl,ArrowBigDownIcon:Zl,ArrowBigLeft:Ql,ArrowBigLeftDash:Yl,ArrowBigLeftDashIcon:Yl,ArrowBigLeftIcon:Ql,ArrowBigRight:ec,ArrowBigRightDash:Jl,ArrowBigRightDashIcon:Jl,ArrowBigRightIcon:ec,ArrowBigUp:tc,ArrowBigUpDash:ac,ArrowBigUpDashIcon:ac,ArrowBigUpIcon:tc,ArrowDown:uc,ArrowDown01:oc,ArrowDown01Icon:oc,ArrowDown10:nc,ArrowDown10Icon:nc,ArrowDownAZ:Ea,ArrowDownAZIcon:Ea,ArrowDownAz:Ea,ArrowDownAzIcon:Ea,ArrowDownCircle:pn,ArrowDownCircleIcon:pn,ArrowDownFromLine:rc,ArrowDownFromLineIcon:rc,ArrowDownIcon:uc,ArrowDownLeft:ic,ArrowDownLeftFromCircle:fn,ArrowDownLeftFromCircleIcon:fn,ArrowDownLeftFromSquare:Lr,ArrowDownLeftFromSquareIcon:Lr,ArrowDownLeftIcon:ic,ArrowDownLeftSquare:xr,ArrowDownLeftSquareIcon:xr,ArrowDownNarrowWide:lc,ArrowDownNarrowWideIcon:lc,ArrowDownRight:sc,ArrowDownRightFromCircle:kn,ArrowDownRightFromCircleIcon:kn,ArrowDownRightFromSquare:Sr,ArrowDownRightFromSquareIcon:Sr,ArrowDownRightIcon:sc,ArrowDownRightSquare:wr,ArrowDownRightSquareIcon:wr,ArrowDownSquare:vr,ArrowDownSquareIcon:vr,ArrowDownToDot:cc,ArrowDownToDotIcon:cc,ArrowDownToLine:dc,ArrowDownToLineIcon:dc,ArrowDownUp:hc,ArrowDownUpIcon:hc,ArrowDownWideNarrow:Ta,ArrowDownWideNarrowIcon:Ta,ArrowDownZA:Ha,ArrowDownZAIcon:Ha,ArrowDownZa:Ha,ArrowDownZaIcon:Ha,ArrowLeft:kc,ArrowLeftCircle:yn,ArrowLeftCircleIcon:yn,ArrowLeftFromLine:pc,ArrowLeftFromLineIcon:pc,ArrowLeftIcon:kc,ArrowLeftRight:fc,ArrowLeftRightIcon:fc,ArrowLeftSquare:Cr,ArrowLeftSquareIcon:Cr,ArrowLeftToLine:yc,ArrowLeftToLineIcon:yc,ArrowRight:Ts,ArrowRightCircle:bn,ArrowRightCircleIcon:bn,ArrowRightFromLine:mc,ArrowRightFromLineIcon:mc,ArrowRightIcon:Ts,ArrowRightLeft:gc,ArrowRightLeftIcon:gc,ArrowRightSquare:Ar,ArrowRightSquareIcon:Ar,ArrowRightToLine:bc,ArrowRightToLineIcon:bc,ArrowUp:Bc,ArrowUp01:Mc,ArrowUp01Icon:Mc,ArrowUp10:xc,ArrowUp10Icon:xc,ArrowUpAZ:ja,ArrowUpAZIcon:ja,ArrowUpAz:ja,ArrowUpAzIcon:ja,ArrowUpCircle:Mn,ArrowUpCircleIcon:Mn,ArrowUpDown:wc,ArrowUpDownIcon:wc,ArrowUpFromDot:vc,ArrowUpFromDotIcon:vc,ArrowUpFromLine:Cc,ArrowUpFromLineIcon:Cc,ArrowUpIcon:Bc,ArrowUpLeft:Lc,ArrowUpLeftFromCircle:mn,ArrowUpLeftFromCircleIcon:mn,ArrowUpLeftFromSquare:Ir,ArrowUpLeftFromSquareIcon:Ir,ArrowUpLeftIcon:Lc,ArrowUpLeftSquare:Vr,ArrowUpLeftSquareIcon:Vr,ArrowUpNarrowWide:Oa,ArrowUpNarrowWideIcon:Oa,ArrowUpRight:Sc,ArrowUpRightFromCircle:gn,ArrowUpRightFromCircleIcon:gn,ArrowUpRightFromSquare:_r,ArrowUpRightFromSquareIcon:_r,ArrowUpRightIcon:Sc,ArrowUpRightSquare:Br,ArrowUpRightSquareIcon:Br,ArrowUpSquare:zr,ArrowUpSquareIcon:zr,ArrowUpToLine:Ic,ArrowUpToLineIcon:Ic,ArrowUpWideNarrow:_c,ArrowUpWideNarrowIcon:_c,ArrowUpZA:Fa,ArrowUpZAIcon:Fa,ArrowUpZa:Fa,ArrowUpZaIcon:Fa,ArrowsUpFromLine:Ac,ArrowsUpFromLineIcon:Ac,Asterisk:Vc,AsteriskIcon:Vc,AsteriskSquare:qr,AsteriskSquareIcon:qr,AtSign:zc,AtSignIcon:zc,Atom:qc,AtomIcon:qc,AudioLines:Pc,AudioLinesIcon:Pc,AudioWaveform:Dc,AudioWaveformIcon:Dc,Award:Ec,AwardIcon:Ec,Axe:Tc,AxeIcon:Tc,Axis3D:Ra,Axis3DIcon:Ra,Axis3d:Ra,Axis3dIcon:Ra,Baby:jc,BabyIcon:jc,Backpack:Hc,BackpackIcon:Hc,Badge:td,BadgeAlert:Oc,BadgeAlertIcon:Oc,BadgeCent:Fc,BadgeCentIcon:Fc,BadgeCheck:Na,BadgeCheckIcon:Na,BadgeDollarSign:Rc,BadgeDollarSignIcon:Rc,BadgeEuro:Nc,BadgeEuroIcon:Nc,BadgeHelp:$a,BadgeHelpIcon:$a,BadgeIcon:td,BadgeIndianRupee:$c,BadgeIndianRupeeIcon:$c,BadgeInfo:Uc,BadgeInfoIcon:Uc,BadgeJapaneseYen:Wc,BadgeJapaneseYenIcon:Wc,BadgeMinus:Gc,BadgeMinusIcon:Gc,BadgePercent:Kc,BadgePercentIcon:Kc,BadgePlus:Xc,BadgePlusIcon:Xc,BadgePoundSterling:Zc,BadgePoundSterlingIcon:Zc,BadgeQuestionMark:$a,BadgeQuestionMarkIcon:$a,BadgeRussianRuble:Yc,BadgeRussianRubleIcon:Yc,BadgeSwissFranc:Qc,BadgeSwissFrancIcon:Qc,BadgeTurkishLira:Jc,BadgeTurkishLiraIcon:Jc,BadgeX:ed,BadgeXIcon:ed,BaggageClaim:ad,BaggageClaimIcon:ad,Balloon:nd,BalloonIcon:nd,Ban:rd,BanIcon:rd,Banana:od,BananaIcon:od,Bandage:id,BandageIcon:id,Banknote:ud,BanknoteArrowDown:sd,BanknoteArrowDownIcon:sd,BanknoteArrowUp:ld,BanknoteArrowUpIcon:ld,BanknoteIcon:ud,BanknoteX:cd,BanknoteXIcon:cd,BarChart:on,BarChart2:rn,BarChart2Icon:rn,BarChart3:an,BarChart3Icon:an,BarChart4:tn,BarChart4Icon:tn,BarChartBig:en,BarChartBigIcon:en,BarChartHorizontal:Ja,BarChartHorizontalBig:Ya,BarChartHorizontalBigIcon:Ya,BarChartHorizontalIcon:Ja,BarChartIcon:on,Barcode:dd,BarcodeIcon:dd,Barrel:hd,BarrelIcon:hd,Baseline:pd,BaselineIcon:pd,Bath:yd,BathIcon:yd,Battery:xd,BatteryCharging:fd,BatteryChargingIcon:fd,BatteryFull:kd,BatteryFullIcon:kd,BatteryIcon:xd,BatteryLow:md,BatteryLowIcon:md,BatteryMedium:bd,BatteryMediumIcon:bd,BatteryPlus:gd,BatteryPlusIcon:gd,BatteryWarning:Md,BatteryWarningIcon:Md,Beaker:wd,BeakerIcon:wd,Bean:Cd,BeanIcon:Cd,BeanOff:vd,BeanOffIcon:vd,Bed:Id,BedDouble:Ld,BedDoubleIcon:Ld,BedIcon:Id,BedSingle:Sd,BedSingleIcon:Sd,Beef:_d,BeefIcon:_d,Beer:Bd,BeerIcon:Bd,BeerOff:Ad,BeerOffIcon:Ad,Bell:Ed,BellDot:Vd,BellDotIcon:Vd,BellElectric:zd,BellElectricIcon:zd,BellIcon:Ed,BellMinus:qd,BellMinusIcon:qd,BellOff:Pd,BellOffIcon:Pd,BellPlus:Dd,BellPlusIcon:Dd,BellRing:Td,BellRingIcon:Td,BetweenHorizonalEnd:Ua,BetweenHorizonalEndIcon:Ua,BetweenHorizonalStart:Wa,BetweenHorizonalStartIcon:Wa,BetweenHorizontalEnd:Ua,BetweenHorizontalEndIcon:Ua,BetweenHorizontalStart:Wa,BetweenHorizontalStartIcon:Wa,BetweenVerticalEnd:Hd,BetweenVerticalEndIcon:Hd,BetweenVerticalStart:jd,BetweenVerticalStartIcon:jd,BicepsFlexed:Od,BicepsFlexedIcon:Od,Bike:Fd,BikeIcon:Fd,Binary:Rd,BinaryIcon:Rd,Binoculars:$d,BinocularsIcon:$d,Biohazard:Nd,BiohazardIcon:Nd,Bird:Ud,BirdIcon:Ud,Birdhouse:Wd,BirdhouseIcon:Wd,Bitcoin:Gd,BitcoinIcon:Gd,Blend:Kd,BlendIcon:Kd,Blinds:Xd,BlindsIcon:Xd,Blocks:Yd,BlocksIcon:Yd,Bluetooth:e0,BluetoothConnected:Zd,BluetoothConnectedIcon:Zd,BluetoothIcon:e0,BluetoothOff:Qd,BluetoothOffIcon:Qd,BluetoothSearching:Jd,BluetoothSearchingIcon:Jd,Bold:t0,BoldIcon:t0,Bolt:a0,BoltIcon:a0,Bomb:n0,BombIcon:n0,Bone:o0,BoneIcon:o0,Book:A0,BookA:r0,BookAIcon:r0,BookAlert:i0,BookAlertIcon:i0,BookAudio:s0,BookAudioIcon:s0,BookCheck:c0,BookCheckIcon:c0,BookCopy:l0,BookCopyIcon:l0,BookDashed:Ga,BookDashedIcon:Ga,BookDown:d0,BookDownIcon:d0,BookHeadphones:h0,BookHeadphonesIcon:h0,BookHeart:u0,BookHeartIcon:u0,BookIcon:A0,BookImage:p0,BookImageIcon:p0,BookKey:y0,BookKeyIcon:y0,BookLock:f0,BookLockIcon:f0,BookMarked:k0,BookMarkedIcon:k0,BookMinus:m0,BookMinusIcon:m0,BookOpen:M0,BookOpenCheck:g0,BookOpenCheckIcon:g0,BookOpenIcon:M0,BookOpenText:b0,BookOpenTextIcon:b0,BookPlus:x0,BookPlusIcon:x0,BookSearch:w0,BookSearchIcon:w0,BookTemplate:Ga,BookTemplateIcon:Ga,BookText:v0,BookTextIcon:v0,BookType:C0,BookTypeIcon:C0,BookUp:L0,BookUp2:S0,BookUp2Icon:S0,BookUpIcon:L0,BookUser:I0,BookUserIcon:I0,BookX:_0,BookXIcon:_0,Bookmark:P0,BookmarkCheck:B0,BookmarkCheckIcon:B0,BookmarkIcon:P0,BookmarkMinus:V0,BookmarkMinusIcon:V0,BookmarkPlus:z0,BookmarkPlusIcon:z0,BookmarkX:q0,BookmarkXIcon:q0,BoomBox:E0,BoomBoxIcon:E0,Bot:H0,BotIcon:H0,BotMessageSquare:D0,BotMessageSquareIcon:D0,BotOff:T0,BotOffIcon:T0,BottleWine:O0,BottleWineIcon:O0,BowArrow:j0,BowArrowIcon:j0,Box:F0,BoxIcon:F0,BoxSelect:Wr,BoxSelectIcon:Wr,Boxes:R0,BoxesIcon:R0,Braces:Ka,BracesIcon:Ka,Brackets:N0,BracketsIcon:N0,Brain:W0,BrainCircuit:U0,BrainCircuitIcon:U0,BrainCog:$0,BrainCogIcon:$0,BrainIcon:W0,BrickWall:K0,BrickWallFire:G0,BrickWallFireIcon:G0,BrickWallIcon:K0,BrickWallShield:X0,BrickWallShieldIcon:X0,Briefcase:Q0,BriefcaseBusiness:Z0,BriefcaseBusinessIcon:Z0,BriefcaseConveyorBelt:Y0,BriefcaseConveyorBeltIcon:Y0,BriefcaseIcon:Q0,BriefcaseMedical:J0,BriefcaseMedicalIcon:J0,BringToFront:e2,BringToFrontIcon:e2,Brush:a2,BrushCleaning:t2,BrushCleaningIcon:t2,BrushIcon:a2,Bubbles:n2,BubblesIcon:n2,Bug:i2,BugIcon:i2,BugOff:o2,BugOffIcon:o2,BugPlay:r2,BugPlayIcon:r2,Building:l2,Building2:s2,Building2Icon:s2,BuildingIcon:l2,Bus:d2,BusFront:c2,BusFrontIcon:c2,BusIcon:d2,Cable:u2,CableCar:h2,CableCarIcon:h2,CableIcon:u2,Cake:y2,CakeIcon:y2,CakeSlice:p2,CakeSliceIcon:p2,Calculator:f2,CalculatorIcon:f2,Calendar:Hs,Calendar1:k2,Calendar1Icon:k2,CalendarArrowDown:b2,CalendarArrowDownIcon:b2,CalendarArrowUp:m2,CalendarArrowUpIcon:m2,CalendarCheck:M2,CalendarCheck2:g2,CalendarCheck2Icon:g2,CalendarCheckIcon:M2,CalendarClock:x2,CalendarClockIcon:x2,CalendarCog:v2,CalendarCogIcon:v2,CalendarDays:w2,CalendarDaysIcon:w2,CalendarFold:C2,CalendarFoldIcon:C2,CalendarHeart:L2,CalendarHeartIcon:L2,CalendarIcon:Hs,CalendarMinus:I2,CalendarMinus2:S2,CalendarMinus2Icon:S2,CalendarMinusIcon:I2,CalendarOff:_2,CalendarOffIcon:_2,CalendarPlus:B2,CalendarPlus2:A2,CalendarPlus2Icon:A2,CalendarPlusIcon:B2,CalendarRange:V2,CalendarRangeIcon:V2,CalendarSearch:z2,CalendarSearchIcon:z2,CalendarSync:q2,CalendarSyncIcon:q2,CalendarX:D2,CalendarX2:P2,CalendarX2Icon:P2,CalendarXIcon:D2,Calendars:E2,CalendarsIcon:E2,Camera:H2,CameraIcon:H2,CameraOff:T2,CameraOffIcon:T2,CandlestickChart:Qa,CandlestickChartIcon:Qa,Candy:F2,CandyCane:j2,CandyCaneIcon:j2,CandyIcon:F2,CandyOff:O2,CandyOffIcon:O2,Cannabis:N2,CannabisIcon:N2,CannabisOff:R2,CannabisOffIcon:R2,Captions:Xa,CaptionsIcon:Xa,CaptionsOff:$2,CaptionsOffIcon:$2,Car:G2,CarFront:U2,CarFrontIcon:U2,CarIcon:G2,CarTaxiFront:W2,CarTaxiFrontIcon:W2,Caravan:K2,CaravanIcon:K2,CardSim:X2,CardSimIcon:X2,Carrot:Z2,CarrotIcon:Z2,CaseLower:Y2,CaseLowerIcon:Y2,CaseSensitive:Q2,CaseSensitiveIcon:Q2,CaseUpper:J2,CaseUpperIcon:J2,CassetteTape:eh,CassetteTapeIcon:eh,Cast:th,CastIcon:th,Castle:ah,CastleIcon:ah,Cat:nh,CatIcon:nh,Cctv:oh,CctvIcon:oh,ChartArea:Za,ChartAreaIcon:Za,ChartBar:Ja,ChartBarBig:Ya,ChartBarBigIcon:Ya,ChartBarDecreasing:ih,ChartBarDecreasingIcon:ih,ChartBarIcon:Ja,ChartBarIncreasing:rh,ChartBarIncreasingIcon:rh,ChartBarStacked:sh,ChartBarStackedIcon:sh,ChartCandlestick:Qa,ChartCandlestickIcon:Qa,ChartColumn:an,ChartColumnBig:en,ChartColumnBigIcon:en,ChartColumnDecreasing:lh,ChartColumnDecreasingIcon:lh,ChartColumnIcon:an,ChartColumnIncreasing:tn,ChartColumnIncreasingIcon:tn,ChartColumnStacked:ch,ChartColumnStackedIcon:ch,ChartGantt:dh,ChartGanttIcon:dh,ChartLine:nn,ChartLineIcon:nn,ChartNetwork:hh,ChartNetworkIcon:hh,ChartNoAxesColumn:rn,ChartNoAxesColumnDecreasing:uh,ChartNoAxesColumnDecreasingIcon:uh,ChartNoAxesColumnIcon:rn,ChartNoAxesColumnIncreasing:on,ChartNoAxesColumnIncreasingIcon:on,ChartNoAxesCombined:ph,ChartNoAxesCombinedIcon:ph,ChartNoAxesGantt:ln,ChartNoAxesGanttIcon:ln,ChartPie:sn,ChartPieIcon:sn,ChartScatter:cn,ChartScatterIcon:cn,ChartSpline:fh,ChartSplineIcon:fh,Check:ca,CheckCheck:yh,CheckCheckIcon:yh,CheckCircle:da,CheckCircle2:xn,CheckCircle2Icon:xn,CheckCircleIcon:da,CheckIcon:ca,CheckLine:kh,CheckLineIcon:kh,CheckSquare:Tr,CheckSquare2:Hr,CheckSquare2Icon:Hr,CheckSquareIcon:Tr,ChefHat:mh,ChefHatIcon:mh,Cherry:gh,CherryIcon:gh,ChessBishop:bh,ChessBishopIcon:bh,ChessKing:Mh,ChessKingIcon:Mh,ChessKnight:xh,ChessKnightIcon:xh,ChessPawn:wh,ChessPawnIcon:wh,ChessQueen:vh,ChessQueenIcon:vh,ChessRook:Ch,ChessRookIcon:Ch,ChevronDown:St,ChevronDownCircle:vn,ChevronDownCircleIcon:vn,ChevronDownIcon:St,ChevronDownSquare:jr,ChevronDownSquareIcon:jr,ChevronFirst:Lh,ChevronFirstIcon:Lh,ChevronLast:Sh,ChevronLastIcon:Sh,ChevronLeft:dn,ChevronLeftCircle:Cn,ChevronLeftCircleIcon:Cn,ChevronLeftIcon:dn,ChevronLeftSquare:Or,ChevronLeftSquareIcon:Or,ChevronRight:hn,ChevronRightCircle:wn,ChevronRightCircleIcon:wn,ChevronRightIcon:hn,ChevronRightSquare:Fr,ChevronRightSquareIcon:Fr,ChevronUp:js,ChevronUpCircle:Ln,ChevronUpCircleIcon:Ln,ChevronUpIcon:js,ChevronUpSquare:Rr,ChevronUpSquareIcon:Rr,ChevronsDown:_h,ChevronsDownIcon:_h,ChevronsDownUp:Ih,ChevronsDownUpIcon:Ih,ChevronsLeft:Os,ChevronsLeftIcon:Os,ChevronsLeftRight:Bh,ChevronsLeftRightEllipsis:Ah,ChevronsLeftRightEllipsisIcon:Ah,ChevronsLeftRightIcon:Bh,ChevronsRight:Fs,ChevronsRightIcon:Fs,ChevronsRightLeft:Vh,ChevronsRightLeftIcon:Vh,ChevronsUp:qh,ChevronsUpDown:zh,ChevronsUpDownIcon:zh,ChevronsUpIcon:qh,Chrome:un,ChromeIcon:un,Chromium:un,ChromiumIcon:un,Church:Dh,ChurchIcon:Dh,Cigarette:Eh,CigaretteIcon:Eh,CigaretteOff:Ph,CigaretteOffIcon:Ph,Circle:Rs,CircleAlert:It,CircleAlertIcon:It,CircleArrowDown:pn,CircleArrowDownIcon:pn,CircleArrowLeft:yn,CircleArrowLeftIcon:yn,CircleArrowOutDownLeft:fn,CircleArrowOutDownLeftIcon:fn,CircleArrowOutDownRight:kn,CircleArrowOutDownRightIcon:kn,CircleArrowOutUpLeft:mn,CircleArrowOutUpLeftIcon:mn,CircleArrowOutUpRight:gn,CircleArrowOutUpRightIcon:gn,CircleArrowRight:bn,CircleArrowRightIcon:bn,CircleArrowUp:Mn,CircleArrowUpIcon:Mn,CircleCheck:xn,CircleCheckBig:da,CircleCheckBigIcon:da,CircleCheckIcon:xn,CircleChevronDown:vn,CircleChevronDownIcon:vn,CircleChevronLeft:Cn,CircleChevronLeftIcon:Cn,CircleChevronRight:wn,CircleChevronRightIcon:wn,CircleChevronUp:Ln,CircleChevronUpIcon:Ln,CircleDashed:Th,CircleDashedIcon:Th,CircleDivide:Sn,CircleDivideIcon:Sn,CircleDollarSign:Hh,CircleDollarSignIcon:Hh,CircleDot:Oh,CircleDotDashed:jh,CircleDotDashedIcon:jh,CircleDotIcon:Oh,CircleEllipsis:Rh,CircleEllipsisIcon:Rh,CircleEqual:Fh,CircleEqualIcon:Fh,CircleFadingArrowUp:Nh,CircleFadingArrowUpIcon:Nh,CircleFadingPlus:$h,CircleFadingPlusIcon:$h,CircleGauge:In,CircleGaugeIcon:In,CircleHelp:_t,CircleHelpIcon:_t,CircleIcon:Rs,CircleMinus:_n,CircleMinusIcon:_n,CircleOff:Uh,CircleOffIcon:Uh,CircleParking:Bn,CircleParkingIcon:Bn,CircleParkingOff:An,CircleParkingOffIcon:An,CirclePause:Vn,CirclePauseIcon:Vn,CirclePercent:zn,CirclePercentIcon:zn,CirclePile:Wh,CirclePileIcon:Wh,CirclePlay:qn,CirclePlayIcon:qn,CirclePlus:Pn,CirclePlusIcon:Pn,CirclePoundSterling:Gh,CirclePoundSterlingIcon:Gh,CirclePower:Dn,CirclePowerIcon:Dn,CircleQuestionMark:_t,CircleQuestionMarkIcon:_t,CircleSlash:Kh,CircleSlash2:En,CircleSlash2Icon:En,CircleSlashIcon:Kh,CircleSlashed:En,CircleSlashedIcon:En,CircleSmall:Xh,CircleSmallIcon:Xh,CircleStar:Zh,CircleStarIcon:Zh,CircleStop:Tn,CircleStopIcon:Tn,CircleUser:jn,CircleUserIcon:jn,CircleUserRound:Hn,CircleUserRoundIcon:Hn,CircleX:On,CircleXIcon:On,CircuitBoard:Yh,CircuitBoardIcon:Yh,Citrus:Qh,CitrusIcon:Qh,Clapperboard:Jh,ClapperboardIcon:Jh,Clipboard:cu,ClipboardCheck:tu,ClipboardCheckIcon:tu,ClipboardClock:eu,ClipboardClockIcon:eu,ClipboardCopy:au,ClipboardCopyIcon:au,ClipboardEdit:Rn,ClipboardEditIcon:Rn,ClipboardIcon:cu,ClipboardList:nu,ClipboardListIcon:nu,ClipboardMinus:ou,ClipboardMinusIcon:ou,ClipboardPaste:ru,ClipboardPasteIcon:ru,ClipboardPen:Rn,ClipboardPenIcon:Rn,ClipboardPenLine:Fn,ClipboardPenLineIcon:Fn,ClipboardPlus:iu,ClipboardPlusIcon:iu,ClipboardSignature:Fn,ClipboardSignatureIcon:Fn,ClipboardType:su,ClipboardTypeIcon:su,ClipboardX:lu,ClipboardXIcon:lu,Clock:Ns,Clock1:du,Clock10:hu,Clock10Icon:hu,Clock11:uu,Clock11Icon:uu,Clock12:pu,Clock12Icon:pu,Clock1Icon:du,Clock2:yu,Clock2Icon:yu,Clock3:fu,Clock3Icon:fu,Clock4:ku,Clock4Icon:ku,Clock5:mu,Clock5Icon:mu,Clock6:gu,Clock6Icon:gu,Clock7:bu,Clock7Icon:bu,Clock8:Mu,Clock8Icon:Mu,Clock9:xu,Clock9Icon:xu,ClockAlert:wu,ClockAlertIcon:wu,ClockArrowDown:vu,ClockArrowDownIcon:vu,ClockArrowUp:Cu,ClockArrowUpIcon:Cu,ClockCheck:Lu,ClockCheckIcon:Lu,ClockFading:Su,ClockFadingIcon:Su,ClockIcon:Ns,ClockPlus:Iu,ClockPlusIcon:Iu,ClosedCaption:_u,ClosedCaptionIcon:_u,Cloud:Wu,CloudAlert:Au,CloudAlertIcon:Au,CloudBackup:Bu,CloudBackupIcon:Bu,CloudCheck:Vu,CloudCheckIcon:Vu,CloudCog:zu,CloudCogIcon:zu,CloudDownload:Nn,CloudDownloadIcon:Nn,CloudDrizzle:qu,CloudDrizzleIcon:qu,CloudFog:Pu,CloudFogIcon:Pu,CloudHail:Du,CloudHailIcon:Du,CloudIcon:Wu,CloudLightning:Eu,CloudLightningIcon:Eu,CloudMoon:Hu,CloudMoonIcon:Hu,CloudMoonRain:Tu,CloudMoonRainIcon:Tu,CloudOff:ju,CloudOffIcon:ju,CloudRain:Fu,CloudRainIcon:Fu,CloudRainWind:Ou,CloudRainWindIcon:Ou,CloudSnow:Ru,CloudSnowIcon:Ru,CloudSun:$u,CloudSunIcon:$u,CloudSunRain:Nu,CloudSunRainIcon:Nu,CloudSync:Uu,CloudSyncIcon:Uu,CloudUpload:ha,CloudUploadIcon:ha,Cloudy:Gu,CloudyIcon:Gu,Clover:Ku,CloverIcon:Ku,Club:Xu,ClubIcon:Xu,Code:Zu,Code2:$n,Code2Icon:$n,CodeIcon:Zu,CodeSquare:Nr,CodeSquareIcon:Nr,CodeXml:$n,CodeXmlIcon:$n,Codepen:Yu,CodepenIcon:Yu,Codesandbox:Qu,CodesandboxIcon:Qu,Coffee:Ju,CoffeeIcon:Ju,Cog:ep,CogIcon:ep,Coins:tp,CoinsIcon:tp,Columns:Un,Columns2:Un,Columns2Icon:Un,Columns3:Wn,Columns3Cog:At,Columns3CogIcon:At,Columns3Icon:Wn,Columns4:ap,Columns4Icon:ap,ColumnsIcon:Un,ColumnsSettings:At,ColumnsSettingsIcon:At,Combine:np,CombineIcon:np,Command:op,CommandIcon:op,Compass:rp,CompassIcon:rp,Component:ip,ComponentIcon:ip,Computer:sp,ComputerIcon:sp,ConciergeBell:lp,ConciergeBellIcon:lp,Cone:cp,ConeIcon:cp,Construction:dp,ConstructionIcon:dp,Contact:hp,Contact2:Gn,Contact2Icon:Gn,ContactIcon:hp,ContactRound:Gn,ContactRoundIcon:Gn,Container:up,ContainerIcon:up,Contrast:pp,ContrastIcon:pp,Cookie:fp,CookieIcon:fp,CookingPot:yp,CookingPotIcon:yp,Copy:xp,CopyCheck:kp,CopyCheckIcon:kp,CopyIcon:xp,CopyMinus:mp,CopyMinusIcon:mp,CopyPlus:gp,CopyPlusIcon:gp,CopySlash:Mp,CopySlashIcon:Mp,CopyX:bp,CopyXIcon:bp,Copyleft:wp,CopyleftIcon:wp,Copyright:vp,CopyrightIcon:vp,CornerDownLeft:Cp,CornerDownLeftIcon:Cp,CornerDownRight:Sp,CornerDownRightIcon:Sp,CornerLeftDown:Lp,CornerLeftDownIcon:Lp,CornerLeftUp:Ip,CornerLeftUpIcon:Ip,CornerRightDown:_p,CornerRightDownIcon:_p,CornerRightUp:Ap,CornerRightUpIcon:Ap,CornerUpLeft:Bp,CornerUpLeftIcon:Bp,CornerUpRight:Vp,CornerUpRightIcon:Vp,Cpu:cs,CpuIcon:cs,CreativeCommons:zp,CreativeCommonsIcon:zp,CreditCard:qp,CreditCardIcon:qp,Croissant:Pp,CroissantIcon:Pp,Crop:Dp,CropIcon:Dp,Cross:Ep,CrossIcon:Ep,Crosshair:Hp,CrosshairIcon:Hp,Crown:Tp,CrownIcon:Tp,Cuboid:jp,CuboidIcon:jp,CupSoda:Op,CupSodaIcon:Op,CurlyBraces:Ka,CurlyBracesIcon:Ka,Currency:Fp,CurrencyIcon:Fp,Cylinder:Rp,CylinderIcon:Rp,Dam:Np,DamIcon:Np,Database:Gp,DatabaseBackup:$p,DatabaseBackupIcon:$p,DatabaseIcon:Gp,DatabaseSearch:Up,DatabaseSearchIcon:Up,DatabaseZap:Wp,DatabaseZapIcon:Wp,DecimalsArrowLeft:Kp,DecimalsArrowLeftIcon:Kp,DecimalsArrowRight:Xp,DecimalsArrowRightIcon:Xp,Delete:Zp,DeleteIcon:Zp,Dessert:Yp,DessertIcon:Yp,Diameter:Qp,DiameterIcon:Qp,Diamond:ty,DiamondIcon:ty,DiamondMinus:Jp,DiamondMinusIcon:Jp,DiamondPercent:Kn,DiamondPercentIcon:Kn,DiamondPlus:ey,DiamondPlusIcon:ey,Dice1:ay,Dice1Icon:ay,Dice2:ny,Dice2Icon:ny,Dice3:oy,Dice3Icon:oy,Dice4:ry,Dice4Icon:ry,Dice5:iy,Dice5Icon:iy,Dice6:sy,Dice6Icon:sy,Dices:ly,DicesIcon:ly,Diff:cy,DiffIcon:cy,Disc:py,Disc2:dy,Disc2Icon:dy,Disc3:hy,Disc3Icon:hy,DiscAlbum:uy,DiscAlbumIcon:uy,DiscIcon:py,Divide:yy,DivideCircle:Sn,DivideCircleIcon:Sn,DivideIcon:yy,DivideSquare:Kr,DivideSquareIcon:Kr,Dna:ky,DnaIcon:ky,DnaOff:fy,DnaOffIcon:fy,Dock:my,DockIcon:my,Dog:by,DogIcon:by,DollarSign:gy,DollarSignIcon:gy,Donut:xy,DonutIcon:xy,DoorClosed:wy,DoorClosedIcon:wy,DoorClosedLocked:My,DoorClosedLockedIcon:My,DoorOpen:vy,DoorOpenIcon:vy,Dot:Cy,DotIcon:Cy,DotSquare:Gr,DotSquareIcon:Gr,Download:$s,DownloadCloud:Nn,DownloadCloudIcon:Nn,DownloadIcon:$s,DraftingCompass:Ly,DraftingCompassIcon:Ly,Drama:Iy,DramaIcon:Iy,Dribbble:Sy,DribbbleIcon:Sy,Drill:_y,DrillIcon:_y,Drone:Ay,DroneIcon:Ay,Droplet:Vy,DropletIcon:Vy,DropletOff:By,DropletOffIcon:By,Droplets:zy,DropletsIcon:zy,Drum:qy,DrumIcon:qy,Drumstick:Py,DrumstickIcon:Py,Dumbbell:Dy,DumbbellIcon:Dy,Ear:Ty,EarIcon:Ty,EarOff:Ey,EarOffIcon:Ey,Earth:Xn,EarthIcon:Xn,EarthLock:Hy,EarthLockIcon:Hy,Eclipse:jy,EclipseIcon:jy,Edit:Xe,Edit2:ir,Edit2Icon:ir,Edit3:rr,Edit3Icon:rr,EditIcon:Xe,Egg:Fy,EggFried:Oy,EggFriedIcon:Oy,EggIcon:Fy,EggOff:Ry,EggOffIcon:Ry,Ellipsis:ua,EllipsisIcon:ua,EllipsisVertical:Zn,EllipsisVerticalIcon:Zn,Equal:Uy,EqualApproximately:$y,EqualApproximatelyIcon:$y,EqualIcon:Uy,EqualNot:Ny,EqualNotIcon:Ny,EqualSquare:Xr,EqualSquareIcon:Xr,Eraser:Wy,EraserIcon:Wy,EthernetPort:Gy,EthernetPortIcon:Gy,Euro:Ky,EuroIcon:Ky,EvCharger:Xy,EvChargerIcon:Xy,Expand:Zy,ExpandIcon:Zy,ExternalLink:Yy,ExternalLinkIcon:Yy,Eye:ds,EyeClosed:Qy,EyeClosedIcon:Qy,EyeIcon:ds,EyeOff:Us,EyeOffIcon:Us,Facebook:Jy,FacebookIcon:Jy,Factory:ef,FactoryIcon:ef,Fan:tf,FanIcon:tf,FastForward:af,FastForwardIcon:af,Feather:nf,FeatherIcon:nf,Fence:of,FenceIcon:of,FerrisWheel:rf,FerrisWheelIcon:rf,Figma:sf,FigmaIcon:sf,File:Df,FileArchive:lf,FileArchiveIcon:lf,FileAudio:Bt,FileAudio2:Bt,FileAudio2Icon:Bt,FileAudioIcon:Bt,FileAxis3D:Yn,FileAxis3DIcon:Yn,FileAxis3d:Yn,FileAxis3dIcon:Yn,FileBadge:Qn,FileBadge2:Qn,FileBadge2Icon:Qn,FileBadgeIcon:Qn,FileBarChart:to,FileBarChart2:ao,FileBarChart2Icon:ao,FileBarChartIcon:to,FileBox:cf,FileBoxIcon:cf,FileBraces:eo,FileBracesCorner:Jn,FileBracesCornerIcon:Jn,FileBracesIcon:eo,FileChartColumn:ao,FileChartColumnIcon:ao,FileChartColumnIncreasing:to,FileChartColumnIncreasingIcon:to,FileChartLine:no,FileChartLineIcon:no,FileChartPie:oo,FileChartPieIcon:oo,FileCheck:df,FileCheck2:ro,FileCheck2Icon:ro,FileCheckCorner:ro,FileCheckCornerIcon:ro,FileCheckIcon:df,FileClock:hf,FileClockIcon:hf,FileCode:uf,FileCode2:io,FileCode2Icon:io,FileCodeCorner:io,FileCodeCornerIcon:io,FileCodeIcon:uf,FileCog:so,FileCog2:so,FileCog2Icon:so,FileCogIcon:so,FileDiff:pf,FileDiffIcon:pf,FileDigit:ff,FileDigitIcon:ff,FileDown:yf,FileDownIcon:yf,FileEdit:fo,FileEditIcon:fo,FileExclamationPoint:lo,FileExclamationPointIcon:lo,FileHeadphone:Bt,FileHeadphoneIcon:Bt,FileHeart:kf,FileHeartIcon:kf,FileIcon:Df,FileImage:mf,FileImageIcon:mf,FileInput:gf,FileInputIcon:gf,FileJson:eo,FileJson2:Jn,FileJson2Icon:Jn,FileJsonIcon:eo,FileKey:co,FileKey2:co,FileKey2Icon:co,FileKeyIcon:co,FileLineChart:no,FileLineChartIcon:no,FileLock:ho,FileLock2:ho,FileLock2Icon:ho,FileLockIcon:ho,FileMinus:Mf,FileMinus2:uo,FileMinus2Icon:uo,FileMinusCorner:uo,FileMinusCornerIcon:uo,FileMinusIcon:Mf,FileMusic:bf,FileMusicIcon:bf,FileOutput:xf,FileOutputIcon:xf,FilePen:fo,FilePenIcon:fo,FilePenLine:po,FilePenLineIcon:po,FilePieChart:oo,FilePieChartIcon:oo,FilePlay:yo,FilePlayIcon:yo,FilePlus:wf,FilePlus2:ko,FilePlus2Icon:ko,FilePlusCorner:ko,FilePlusCornerIcon:ko,FilePlusIcon:wf,FileQuestion:mo,FileQuestionIcon:mo,FileQuestionMark:mo,FileQuestionMarkIcon:mo,FileScan:vf,FileScanIcon:vf,FileSearch:Cf,FileSearch2:go,FileSearch2Icon:go,FileSearchCorner:go,FileSearchCornerIcon:go,FileSearchIcon:Cf,FileSignal:bo,FileSignalIcon:bo,FileSignature:po,FileSignatureIcon:po,FileSliders:Lf,FileSlidersIcon:Lf,FileSpreadsheet:Sf,FileSpreadsheetIcon:Sf,FileStack:If,FileStackIcon:If,FileSymlink:_f,FileSymlinkIcon:_f,FileTerminal:Af,FileTerminalIcon:Af,FileText:hs,FileTextIcon:hs,FileType:Bf,FileType2:Mo,FileType2Icon:Mo,FileTypeCorner:Mo,FileTypeCornerIcon:Mo,FileTypeIcon:Bf,FileUp:Vf,FileUpIcon:Vf,FileUser:zf,FileUserIcon:zf,FileVideo:yo,FileVideo2:xo,FileVideo2Icon:xo,FileVideoCamera:xo,FileVideoCameraIcon:xo,FileVideoIcon:yo,FileVolume:qf,FileVolume2:bo,FileVolume2Icon:bo,FileVolumeIcon:qf,FileWarning:lo,FileWarningIcon:lo,FileX:Pf,FileX2:wo,FileX2Icon:wo,FileXCorner:wo,FileXCornerIcon:wo,FileXIcon:Pf,Files:Tf,FilesIcon:Tf,Film:Ef,FilmIcon:Ef,Filter:Io,FilterIcon:Io,FilterX:So,FilterXIcon:So,Fingerprint:vo,FingerprintIcon:vo,FingerprintPattern:vo,FingerprintPatternIcon:vo,FireExtinguisher:Hf,FireExtinguisherIcon:Hf,Fish:Ff,FishIcon:Ff,FishOff:jf,FishOffIcon:jf,FishSymbol:Of,FishSymbolIcon:Of,FishingHook:Rf,FishingHookIcon:Rf,Flag:Wf,FlagIcon:Wf,FlagOff:Nf,FlagOffIcon:Nf,FlagTriangleLeft:$f,FlagTriangleLeftIcon:$f,FlagTriangleRight:Uf,FlagTriangleRightIcon:Uf,Flame:Kf,FlameIcon:Kf,FlameKindling:Gf,FlameKindlingIcon:Gf,Flashlight:Zf,FlashlightIcon:Zf,FlashlightOff:Xf,FlashlightOffIcon:Xf,FlaskConical:Qf,FlaskConicalIcon:Qf,FlaskConicalOff:Yf,FlaskConicalOffIcon:Yf,FlaskRound:Jf,FlaskRoundIcon:Jf,FlipHorizontal:Dr,FlipHorizontal2:ek,FlipHorizontal2Icon:ek,FlipHorizontalIcon:Dr,FlipVertical:Er,FlipVertical2:tk,FlipVertical2Icon:tk,FlipVerticalIcon:Er,Flower:nk,Flower2:ak,Flower2Icon:ak,FlowerIcon:nk,Focus:ok,FocusIcon:ok,FoldHorizontal:rk,FoldHorizontalIcon:rk,FoldVertical:ik,FoldVerticalIcon:ik,Folder:Pk,FolderArchive:sk,FolderArchiveIcon:sk,FolderCheck:lk,FolderCheckIcon:lk,FolderClock:ck,FolderClockIcon:ck,FolderClosed:dk,FolderClosedIcon:dk,FolderCode:hk,FolderCodeIcon:hk,FolderCog:Co,FolderCog2:Co,FolderCog2Icon:Co,FolderCogIcon:Co,FolderDot:uk,FolderDotIcon:uk,FolderDown:pk,FolderDownIcon:pk,FolderEdit:Lo,FolderEditIcon:Lo,FolderGit:fk,FolderGit2:yk,FolderGit2Icon:yk,FolderGitIcon:fk,FolderHeart:kk,FolderHeartIcon:kk,FolderIcon:Pk,FolderInput:mk,FolderInputIcon:mk,FolderKanban:bk,FolderKanbanIcon:bk,FolderKey:gk,FolderKeyIcon:gk,FolderLock:Mk,FolderLockIcon:Mk,FolderMinus:vk,FolderMinusIcon:vk,FolderOpen:wk,FolderOpenDot:xk,FolderOpenDotIcon:xk,FolderOpenIcon:wk,FolderOutput:Ck,FolderOutputIcon:Ck,FolderPen:Lo,FolderPenIcon:Lo,FolderPlus:Ik,FolderPlusIcon:Ik,FolderRoot:Lk,FolderRootIcon:Lk,FolderSearch:_k,FolderSearch2:Sk,FolderSearch2Icon:Sk,FolderSearchIcon:_k,FolderSymlink:Bk,FolderSymlinkIcon:Bk,FolderSync:Ak,FolderSyncIcon:Ak,FolderTree:Vk,FolderTreeIcon:Vk,FolderUp:zk,FolderUpIcon:zk,FolderX:qk,FolderXIcon:qk,Folders:Dk,FoldersIcon:Dk,Footprints:Ek,FootprintsIcon:Ek,ForkKnife:Fi,ForkKnifeCrossed:Oi,ForkKnifeCrossedIcon:Oi,ForkKnifeIcon:Fi,Forklift:Tk,ForkliftIcon:Tk,Form:Hk,FormIcon:Hk,FormInput:cr,FormInputIcon:cr,Forward:Ok,ForwardIcon:Ok,Frame:jk,FrameIcon:jk,Framer:Fk,FramerIcon:Fk,Frown:Rk,FrownIcon:Rk,Fuel:Nk,FuelIcon:Nk,Fullscreen:$k,FullscreenIcon:$k,FunctionSquare:Zr,FunctionSquareIcon:Zr,Funnel:Io,FunnelIcon:Io,FunnelPlus:Uk,FunnelPlusIcon:Uk,FunnelX:So,FunnelXIcon:So,GalleryHorizontal:Gk,GalleryHorizontalEnd:Wk,GalleryHorizontalEndIcon:Wk,GalleryHorizontalIcon:Gk,GalleryThumbnails:Kk,GalleryThumbnailsIcon:Kk,GalleryVertical:Zk,GalleryVerticalEnd:Xk,GalleryVerticalEndIcon:Xk,GalleryVerticalIcon:Zk,Gamepad:em,Gamepad2:Yk,Gamepad2Icon:Yk,GamepadDirectional:Qk,GamepadDirectionalIcon:Qk,GamepadIcon:em,GanttChart:ln,GanttChartIcon:ln,GanttChartSquare:Pt,GanttChartSquareIcon:Pt,Gauge:Jk,GaugeCircle:In,GaugeCircleIcon:In,GaugeIcon:Jk,Gavel:tm,GavelIcon:tm,Gem:am,GemIcon:am,GeorgianLari:nm,GeorgianLariIcon:nm,Ghost:om,GhostIcon:om,Gift:rm,GiftIcon:rm,GitBranch:lm,GitBranchIcon:lm,GitBranchMinus:im,GitBranchMinusIcon:im,GitBranchPlus:sm,GitBranchPlusIcon:sm,GitCommit:_o,GitCommitHorizontal:_o,GitCommitHorizontalIcon:_o,GitCommitIcon:_o,GitCommitVertical:cm,GitCommitVerticalIcon:cm,GitCompare:hm,GitCompareArrows:dm,GitCompareArrowsIcon:dm,GitCompareIcon:hm,GitFork:um,GitForkIcon:um,GitGraph:pm,GitGraphIcon:pm,GitMerge:fm,GitMergeConflict:ym,GitMergeConflictIcon:ym,GitMergeIcon:fm,GitPullRequest:xm,GitPullRequestArrow:km,GitPullRequestArrowIcon:km,GitPullRequestClosed:mm,GitPullRequestClosedIcon:mm,GitPullRequestCreate:bm,GitPullRequestCreateArrow:gm,GitPullRequestCreateArrowIcon:gm,GitPullRequestCreateIcon:bm,GitPullRequestDraft:Mm,GitPullRequestDraftIcon:Mm,GitPullRequestIcon:xm,Github:wm,GithubIcon:wm,Gitlab:vm,GitlabIcon:vm,GlassWater:Cm,GlassWaterIcon:Cm,Glasses:Lm,GlassesIcon:Lm,Globe:Ws,Globe2:Xn,Globe2Icon:Xn,GlobeIcon:Ws,GlobeLock:Sm,GlobeLockIcon:Sm,GlobeOff:Im,GlobeOffIcon:Im,GlobeX:_m,GlobeXIcon:_m,Goal:Am,GoalIcon:Am,Gpu:Vm,GpuIcon:Vm,Grab:qo,GrabIcon:qo,GraduationCap:Bm,GraduationCapIcon:Bm,Grape:zm,GrapeIcon:zm,Grid:Vt,Grid2X2:zo,Grid2X2Check:Ao,Grid2X2CheckIcon:Ao,Grid2X2Icon:zo,Grid2X2Plus:Vo,Grid2X2PlusIcon:Vo,Grid2X2X:Bo,Grid2X2XIcon:Bo,Grid2x2:zo,Grid2x2Check:Ao,Grid2x2CheckIcon:Ao,Grid2x2Icon:zo,Grid2x2Plus:Vo,Grid2x2PlusIcon:Vo,Grid2x2X:Bo,Grid2x2XIcon:Bo,Grid3X3:Vt,Grid3X3Icon:Vt,Grid3x2:qm,Grid3x2Icon:qm,Grid3x3:Vt,Grid3x3Icon:Vt,GridIcon:Vt,Grip:Em,GripHorizontal:Pm,GripHorizontalIcon:Pm,GripIcon:Em,GripVertical:Dm,GripVerticalIcon:Dm,Group:Hm,GroupIcon:Hm,Guitar:Tm,GuitarIcon:Tm,Ham:jm,HamIcon:jm,Hamburger:Om,HamburgerIcon:Om,Hammer:Fm,HammerIcon:Fm,Hand:Gm,HandCoins:Rm,HandCoinsIcon:Rm,HandFist:Nm,HandFistIcon:Nm,HandGrab:qo,HandGrabIcon:qo,HandHeart:$m,HandHeartIcon:$m,HandHelping:Po,HandHelpingIcon:Po,HandIcon:Gm,HandMetal:Um,HandMetalIcon:Um,HandPlatter:Wm,HandPlatterIcon:Wm,Handbag:Km,HandbagIcon:Km,Handshake:Xm,HandshakeIcon:Xm,HardDrive:Qm,HardDriveDownload:Zm,HardDriveDownloadIcon:Zm,HardDriveIcon:Qm,HardDriveUpload:Ym,HardDriveUploadIcon:Ym,HardHat:Jm,HardHatIcon:Jm,Hash:e4,HashIcon:e4,HatGlasses:t4,HatGlassesIcon:t4,Haze:a4,HazeIcon:a4,Hd:n4,HdIcon:n4,HdmiPort:o4,HdmiPortIcon:o4,Heading:h4,Heading1:r4,Heading1Icon:r4,Heading2:i4,Heading2Icon:i4,Heading3:s4,Heading3Icon:s4,Heading4:l4,Heading4Icon:l4,Heading5:c4,Heading5Icon:c4,Heading6:d4,Heading6Icon:d4,HeadingIcon:h4,HeadphoneOff:u4,HeadphoneOffIcon:u4,Headphones:p4,HeadphonesIcon:p4,Headset:y4,HeadsetIcon:y4,Heart:x4,HeartCrack:f4,HeartCrackIcon:f4,HeartHandshake:m4,HeartHandshakeIcon:m4,HeartIcon:x4,HeartMinus:k4,HeartMinusIcon:k4,HeartOff:g4,HeartOffIcon:g4,HeartPlus:b4,HeartPlusIcon:b4,HeartPulse:M4,HeartPulseIcon:M4,Heater:w4,HeaterIcon:w4,Helicopter:v4,HelicopterIcon:v4,HelpCircle:_t,HelpCircleIcon:_t,HelpingHand:Po,HelpingHandIcon:Po,Hexagon:C4,HexagonIcon:C4,Highlighter:L4,HighlighterIcon:L4,History:S4,HistoryIcon:S4,Home:Do,HomeIcon:Do,Hop:_4,HopIcon:_4,HopOff:I4,HopOffIcon:I4,Hospital:A4,HospitalIcon:A4,Hotel:B4,HotelIcon:B4,Hourglass:V4,HourglassIcon:V4,House:Do,HouseHeart:z4,HouseHeartIcon:z4,HouseIcon:Do,HousePlug:q4,HousePlugIcon:q4,HousePlus:P4,HousePlusIcon:P4,HouseWifi:D4,HouseWifiIcon:D4,IceCream:To,IceCream2:Eo,IceCream2Icon:Eo,IceCreamBowl:Eo,IceCreamBowlIcon:Eo,IceCreamCone:To,IceCreamConeIcon:To,IceCreamIcon:To,Icon:H_,IdCard:T4,IdCardIcon:T4,IdCardLanyard:E4,IdCardLanyardIcon:E4,Image:U4,ImageDown:H4,ImageDownIcon:H4,ImageIcon:U4,ImageMinus:j4,ImageMinusIcon:j4,ImageOff:O4,ImageOffIcon:O4,ImagePlay:F4,ImagePlayIcon:F4,ImagePlus:R4,ImagePlusIcon:R4,ImageUp:N4,ImageUpIcon:N4,ImageUpscale:$4,ImageUpscaleIcon:$4,Images:W4,ImagesIcon:W4,Import:K4,ImportIcon:K4,Inbox:G4,InboxIcon:G4,Indent:qt,IndentDecrease:zt,IndentDecreaseIcon:zt,IndentIcon:qt,IndentIncrease:qt,IndentIncreaseIcon:qt,IndianRupee:X4,IndianRupeeIcon:X4,Infinity:Z4,InfinityIcon:Z4,Info:Y4,InfoIcon:Y4,Inspect:ai,InspectIcon:ai,InspectionPanel:Q4,InspectionPanelIcon:Q4,Instagram:J4,InstagramIcon:J4,Italic:e5,ItalicIcon:e5,IterationCcw:t5,IterationCcwIcon:t5,IterationCw:a5,IterationCwIcon:a5,JapaneseYen:n5,JapaneseYenIcon:n5,Joystick:o5,JoystickIcon:o5,Kanban:r5,KanbanIcon:r5,KanbanSquare:Yr,KanbanSquareDashed:$r,KanbanSquareDashedIcon:$r,KanbanSquareIcon:Yr,Kayak:i5,KayakIcon:i5,Key:d5,KeyIcon:d5,KeyRound:s5,KeyRoundIcon:s5,KeySquare:l5,KeySquareIcon:l5,Keyboard:u5,KeyboardIcon:u5,KeyboardMusic:c5,KeyboardMusicIcon:c5,KeyboardOff:h5,KeyboardOffIcon:h5,Lamp:g5,LampCeiling:p5,LampCeilingIcon:p5,LampDesk:y5,LampDeskIcon:y5,LampFloor:k5,LampFloorIcon:k5,LampIcon:g5,LampWallDown:f5,LampWallDownIcon:f5,LampWallUp:m5,LampWallUpIcon:m5,LandPlot:b5,LandPlotIcon:b5,Landmark:x5,LandmarkIcon:x5,Languages:M5,LanguagesIcon:M5,Laptop:v5,Laptop2:Ho,Laptop2Icon:Ho,LaptopIcon:v5,LaptopMinimal:Ho,LaptopMinimalCheck:w5,LaptopMinimalCheckIcon:w5,LaptopMinimalIcon:Ho,Lasso:L5,LassoIcon:L5,LassoSelect:C5,LassoSelectIcon:C5,Laugh:S5,LaughIcon:S5,Layers:jo,Layers2:I5,Layers2Icon:I5,Layers3:jo,Layers3Icon:jo,LayersIcon:jo,LayersPlus:_5,LayersPlusIcon:_5,Layout:or,LayoutDashboard:A5,LayoutDashboardIcon:A5,LayoutGrid:B5,LayoutGridIcon:B5,LayoutIcon:or,LayoutList:V5,LayoutListIcon:V5,LayoutPanelLeft:z5,LayoutPanelLeftIcon:z5,LayoutPanelTop:q5,LayoutPanelTopIcon:q5,LayoutTemplate:P5,LayoutTemplateIcon:P5,Leaf:D5,LeafIcon:D5,LeafyGreen:E5,LeafyGreenIcon:E5,Lectern:T5,LecternIcon:T5,LensConcave:H5,LensConcaveIcon:H5,LensConvex:j5,LensConvexIcon:j5,LetterText:Ci,LetterTextIcon:Ci,Library:N5,LibraryBig:O5,LibraryBigIcon:O5,LibraryIcon:N5,LibrarySquare:Qr,LibrarySquareIcon:Qr,LifeBuoy:R5,LifeBuoyIcon:R5,Ligature:F5,LigatureIcon:F5,Lightbulb:U5,LightbulbIcon:U5,LightbulbOff:$5,LightbulbOffIcon:$5,LineChart:nn,LineChartIcon:nn,LineDotRightHorizontal:W5,LineDotRightHorizontalIcon:W5,LineSquiggle:G5,LineSquiggleIcon:G5,Link:Gs,Link2:X5,Link2Icon:X5,Link2Off:K5,Link2OffIcon:K5,LinkIcon:Gs,Linkedin:Z5,LinkedinIcon:Z5,List:fg,ListCheck:Y5,ListCheckIcon:Y5,ListChecks:Q5,ListChecksIcon:Q5,ListChevronsDownUp:eg,ListChevronsDownUpIcon:eg,ListChevronsUpDown:J5,ListChevronsUpDownIcon:J5,ListCollapse:tg,ListCollapseIcon:tg,ListEnd:ag,ListEndIcon:ag,ListFilter:ng,ListFilterIcon:ng,ListFilterPlus:og,ListFilterPlusIcon:og,ListIcon:fg,ListIndentDecrease:zt,ListIndentDecreaseIcon:zt,ListIndentIncrease:qt,ListIndentIncreaseIcon:qt,ListMinus:lg,ListMinusIcon:lg,ListMusic:rg,ListMusicIcon:rg,ListOrdered:ig,ListOrderedIcon:ig,ListPlus:sg,ListPlusIcon:sg,ListRestart:cg,ListRestartIcon:cg,ListStart:dg,ListStartIcon:dg,ListTodo:ug,ListTodoIcon:ug,ListTree:hg,ListTreeIcon:hg,ListVideo:pg,ListVideoIcon:pg,ListX:yg,ListXIcon:yg,Loader:mg,Loader2:kt,Loader2Icon:kt,LoaderCircle:kt,LoaderCircleIcon:kt,LoaderIcon:mg,LoaderPinwheel:kg,LoaderPinwheelIcon:kg,Locate:Mg,LocateFixed:gg,LocateFixedIcon:gg,LocateIcon:Mg,LocateOff:bg,LocateOffIcon:bg,LocationEdit:No,LocationEditIcon:No,Lock:wg,LockIcon:wg,LockKeyhole:xg,LockKeyholeIcon:xg,LockKeyholeOpen:Oo,LockKeyholeOpenIcon:Oo,LockOpen:Fo,LockOpenIcon:Fo,LogIn:vg,LogInIcon:vg,LogOut:Cg,LogOutIcon:Cg,Logs:Lg,LogsIcon:Lg,Lollipop:Sg,LollipopIcon:Sg,LucideAArrowDown:J1,LucideAArrowUp:el,LucideALargeSmall:tl,LucideAccessibility:al,LucideActivity:nl,LucideActivitySquare:Mr,LucideAirVent:ol,LucideAirplay:rl,LucideAlarmCheck:qa,LucideAlarmClock:sl,LucideAlarmClockCheck:qa,LucideAlarmClockMinus:Pa,LucideAlarmClockOff:il,LucideAlarmClockPlus:Da,LucideAlarmMinus:Pa,LucideAlarmPlus:Da,LucideAlarmSmoke:ll,LucideAlbum:dl,LucideAlertCircle:It,LucideAlertOctagon:Go,LucideAlertTriangle:Bi,LucideAlignCenter:vi,LucideAlignCenterHorizontal:cl,LucideAlignCenterVertical:hl,LucideAlignEndHorizontal:ul,LucideAlignEndVertical:pl,LucideAlignHorizontalDistributeCenter:yl,LucideAlignHorizontalDistributeEnd:fl,LucideAlignHorizontalDistributeStart:kl,LucideAlignHorizontalJustifyCenter:ml,LucideAlignHorizontalJustifyEnd:gl,LucideAlignHorizontalJustifyStart:bl,LucideAlignHorizontalSpaceAround:Ml,LucideAlignHorizontalSpaceBetween:xl,LucideAlignJustify:wi,LucideAlignLeft:Dt,LucideAlignRight:xi,LucideAlignStartHorizontal:wl,LucideAlignStartVertical:vl,LucideAlignVerticalDistributeCenter:Cl,LucideAlignVerticalDistributeEnd:Ll,LucideAlignVerticalDistributeStart:Sl,LucideAlignVerticalJustifyCenter:Il,LucideAlignVerticalJustifyEnd:_l,LucideAlignVerticalJustifyStart:Al,LucideAlignVerticalSpaceAround:Bl,LucideAlignVerticalSpaceBetween:Vl,LucideAmbulance:zl,LucideAmpersand:ql,LucideAmpersands:Pl,LucideAmphora:El,LucideAnchor:Dl,LucideAngry:Tl,LucideAnnoyed:Hl,LucideAntenna:jl,LucideAnvil:Ol,LucideAperture:Fl,LucideAppWindow:Nl,LucideAppWindowMac:Rl,LucideApple:$l,LucideArchive:Gl,LucideArchiveRestore:Ul,LucideArchiveX:Wl,LucideAreaChart:Za,LucideArmchair:Kl,LucideArrowBigDown:Zl,LucideArrowBigDownDash:Xl,LucideArrowBigLeft:Ql,LucideArrowBigLeftDash:Yl,LucideArrowBigRight:ec,LucideArrowBigRightDash:Jl,LucideArrowBigUp:tc,LucideArrowBigUpDash:ac,LucideArrowDown:uc,LucideArrowDown01:oc,LucideArrowDown10:nc,LucideArrowDownAZ:Ea,LucideArrowDownAz:Ea,LucideArrowDownCircle:pn,LucideArrowDownFromLine:rc,LucideArrowDownLeft:ic,LucideArrowDownLeftFromCircle:fn,LucideArrowDownLeftFromSquare:Lr,LucideArrowDownLeftSquare:xr,LucideArrowDownNarrowWide:lc,LucideArrowDownRight:sc,LucideArrowDownRightFromCircle:kn,LucideArrowDownRightFromSquare:Sr,LucideArrowDownRightSquare:wr,LucideArrowDownSquare:vr,LucideArrowDownToDot:cc,LucideArrowDownToLine:dc,LucideArrowDownUp:hc,LucideArrowDownWideNarrow:Ta,LucideArrowDownZA:Ha,LucideArrowDownZa:Ha,LucideArrowLeft:kc,LucideArrowLeftCircle:yn,LucideArrowLeftFromLine:pc,LucideArrowLeftRight:fc,LucideArrowLeftSquare:Cr,LucideArrowLeftToLine:yc,LucideArrowRight:Ts,LucideArrowRightCircle:bn,LucideArrowRightFromLine:mc,LucideArrowRightLeft:gc,LucideArrowRightSquare:Ar,LucideArrowRightToLine:bc,LucideArrowUp:Bc,LucideArrowUp01:Mc,LucideArrowUp10:xc,LucideArrowUpAZ:ja,LucideArrowUpAz:ja,LucideArrowUpCircle:Mn,LucideArrowUpDown:wc,LucideArrowUpFromDot:vc,LucideArrowUpFromLine:Cc,LucideArrowUpLeft:Lc,LucideArrowUpLeftFromCircle:mn,LucideArrowUpLeftFromSquare:Ir,LucideArrowUpLeftSquare:Vr,LucideArrowUpNarrowWide:Oa,LucideArrowUpRight:Sc,LucideArrowUpRightFromCircle:gn,LucideArrowUpRightFromSquare:_r,LucideArrowUpRightSquare:Br,LucideArrowUpSquare:zr,LucideArrowUpToLine:Ic,LucideArrowUpWideNarrow:_c,LucideArrowUpZA:Fa,LucideArrowUpZa:Fa,LucideArrowsUpFromLine:Ac,LucideAsterisk:Vc,LucideAsteriskSquare:qr,LucideAtSign:zc,LucideAtom:qc,LucideAudioLines:Pc,LucideAudioWaveform:Dc,LucideAward:Ec,LucideAxe:Tc,LucideAxis3D:Ra,LucideAxis3d:Ra,LucideBaby:jc,LucideBackpack:Hc,LucideBadge:td,LucideBadgeAlert:Oc,LucideBadgeCent:Fc,LucideBadgeCheck:Na,LucideBadgeDollarSign:Rc,LucideBadgeEuro:Nc,LucideBadgeHelp:$a,LucideBadgeIndianRupee:$c,LucideBadgeInfo:Uc,LucideBadgeJapaneseYen:Wc,LucideBadgeMinus:Gc,LucideBadgePercent:Kc,LucideBadgePlus:Xc,LucideBadgePoundSterling:Zc,LucideBadgeQuestionMark:$a,LucideBadgeRussianRuble:Yc,LucideBadgeSwissFranc:Qc,LucideBadgeTurkishLira:Jc,LucideBadgeX:ed,LucideBaggageClaim:ad,LucideBalloon:nd,LucideBan:rd,LucideBanana:od,LucideBandage:id,LucideBanknote:ud,LucideBanknoteArrowDown:sd,LucideBanknoteArrowUp:ld,LucideBanknoteX:cd,LucideBarChart:on,LucideBarChart2:rn,LucideBarChart3:an,LucideBarChart4:tn,LucideBarChartBig:en,LucideBarChartHorizontal:Ja,LucideBarChartHorizontalBig:Ya,LucideBarcode:dd,LucideBarrel:hd,LucideBaseline:pd,LucideBath:yd,LucideBattery:xd,LucideBatteryCharging:fd,LucideBatteryFull:kd,LucideBatteryLow:md,LucideBatteryMedium:bd,LucideBatteryPlus:gd,LucideBatteryWarning:Md,LucideBeaker:wd,LucideBean:Cd,LucideBeanOff:vd,LucideBed:Id,LucideBedDouble:Ld,LucideBedSingle:Sd,LucideBeef:_d,LucideBeer:Bd,LucideBeerOff:Ad,LucideBell:Ed,LucideBellDot:Vd,LucideBellElectric:zd,LucideBellMinus:qd,LucideBellOff:Pd,LucideBellPlus:Dd,LucideBellRing:Td,LucideBetweenHorizonalEnd:Ua,LucideBetweenHorizonalStart:Wa,LucideBetweenHorizontalEnd:Ua,LucideBetweenHorizontalStart:Wa,LucideBetweenVerticalEnd:Hd,LucideBetweenVerticalStart:jd,LucideBicepsFlexed:Od,LucideBike:Fd,LucideBinary:Rd,LucideBinoculars:$d,LucideBiohazard:Nd,LucideBird:Ud,LucideBirdhouse:Wd,LucideBitcoin:Gd,LucideBlend:Kd,LucideBlinds:Xd,LucideBlocks:Yd,LucideBluetooth:e0,LucideBluetoothConnected:Zd,LucideBluetoothOff:Qd,LucideBluetoothSearching:Jd,LucideBold:t0,LucideBolt:a0,LucideBomb:n0,LucideBone:o0,LucideBook:A0,LucideBookA:r0,LucideBookAlert:i0,LucideBookAudio:s0,LucideBookCheck:c0,LucideBookCopy:l0,LucideBookDashed:Ga,LucideBookDown:d0,LucideBookHeadphones:h0,LucideBookHeart:u0,LucideBookImage:p0,LucideBookKey:y0,LucideBookLock:f0,LucideBookMarked:k0,LucideBookMinus:m0,LucideBookOpen:M0,LucideBookOpenCheck:g0,LucideBookOpenText:b0,LucideBookPlus:x0,LucideBookSearch:w0,LucideBookTemplate:Ga,LucideBookText:v0,LucideBookType:C0,LucideBookUp:L0,LucideBookUp2:S0,LucideBookUser:I0,LucideBookX:_0,LucideBookmark:P0,LucideBookmarkCheck:B0,LucideBookmarkMinus:V0,LucideBookmarkPlus:z0,LucideBookmarkX:q0,LucideBoomBox:E0,LucideBot:H0,LucideBotMessageSquare:D0,LucideBotOff:T0,LucideBottleWine:O0,LucideBowArrow:j0,LucideBox:F0,LucideBoxSelect:Wr,LucideBoxes:R0,LucideBraces:Ka,LucideBrackets:N0,LucideBrain:W0,LucideBrainCircuit:U0,LucideBrainCog:$0,LucideBrickWall:K0,LucideBrickWallFire:G0,LucideBrickWallShield:X0,LucideBriefcase:Q0,LucideBriefcaseBusiness:Z0,LucideBriefcaseConveyorBelt:Y0,LucideBriefcaseMedical:J0,LucideBringToFront:e2,LucideBrush:a2,LucideBrushCleaning:t2,LucideBubbles:n2,LucideBug:i2,LucideBugOff:o2,LucideBugPlay:r2,LucideBuilding:l2,LucideBuilding2:s2,LucideBus:d2,LucideBusFront:c2,LucideCable:u2,LucideCableCar:h2,LucideCake:y2,LucideCakeSlice:p2,LucideCalculator:f2,LucideCalendar:Hs,LucideCalendar1:k2,LucideCalendarArrowDown:b2,LucideCalendarArrowUp:m2,LucideCalendarCheck:M2,LucideCalendarCheck2:g2,LucideCalendarClock:x2,LucideCalendarCog:v2,LucideCalendarDays:w2,LucideCalendarFold:C2,LucideCalendarHeart:L2,LucideCalendarMinus:I2,LucideCalendarMinus2:S2,LucideCalendarOff:_2,LucideCalendarPlus:B2,LucideCalendarPlus2:A2,LucideCalendarRange:V2,LucideCalendarSearch:z2,LucideCalendarSync:q2,LucideCalendarX:D2,LucideCalendarX2:P2,LucideCalendars:E2,LucideCamera:H2,LucideCameraOff:T2,LucideCandlestickChart:Qa,LucideCandy:F2,LucideCandyCane:j2,LucideCandyOff:O2,LucideCannabis:N2,LucideCannabisOff:R2,LucideCaptions:Xa,LucideCaptionsOff:$2,LucideCar:G2,LucideCarFront:U2,LucideCarTaxiFront:W2,LucideCaravan:K2,LucideCardSim:X2,LucideCarrot:Z2,LucideCaseLower:Y2,LucideCaseSensitive:Q2,LucideCaseUpper:J2,LucideCassetteTape:eh,LucideCast:th,LucideCastle:ah,LucideCat:nh,LucideCctv:oh,LucideChartArea:Za,LucideChartBar:Ja,LucideChartBarBig:Ya,LucideChartBarDecreasing:ih,LucideChartBarIncreasing:rh,LucideChartBarStacked:sh,LucideChartCandlestick:Qa,LucideChartColumn:an,LucideChartColumnBig:en,LucideChartColumnDecreasing:lh,LucideChartColumnIncreasing:tn,LucideChartColumnStacked:ch,LucideChartGantt:dh,LucideChartLine:nn,LucideChartNetwork:hh,LucideChartNoAxesColumn:rn,LucideChartNoAxesColumnDecreasing:uh,LucideChartNoAxesColumnIncreasing:on,LucideChartNoAxesCombined:ph,LucideChartNoAxesGantt:ln,LucideChartPie:sn,LucideChartScatter:cn,LucideChartSpline:fh,LucideCheck:ca,LucideCheckCheck:yh,LucideCheckCircle:da,LucideCheckCircle2:xn,LucideCheckLine:kh,LucideCheckSquare:Tr,LucideCheckSquare2:Hr,LucideChefHat:mh,LucideCherry:gh,LucideChessBishop:bh,LucideChessKing:Mh,LucideChessKnight:xh,LucideChessPawn:wh,LucideChessQueen:vh,LucideChessRook:Ch,LucideChevronDown:St,LucideChevronDownCircle:vn,LucideChevronDownSquare:jr,LucideChevronFirst:Lh,LucideChevronLast:Sh,LucideChevronLeft:dn,LucideChevronLeftCircle:Cn,LucideChevronLeftSquare:Or,LucideChevronRight:hn,LucideChevronRightCircle:wn,LucideChevronRightSquare:Fr,LucideChevronUp:js,LucideChevronUpCircle:Ln,LucideChevronUpSquare:Rr,LucideChevronsDown:_h,LucideChevronsDownUp:Ih,LucideChevronsLeft:Os,LucideChevronsLeftRight:Bh,LucideChevronsLeftRightEllipsis:Ah,LucideChevronsRight:Fs,LucideChevronsRightLeft:Vh,LucideChevronsUp:qh,LucideChevronsUpDown:zh,LucideChrome:un,LucideChromium:un,LucideChurch:Dh,LucideCigarette:Eh,LucideCigaretteOff:Ph,LucideCircle:Rs,LucideCircleAlert:It,LucideCircleArrowDown:pn,LucideCircleArrowLeft:yn,LucideCircleArrowOutDownLeft:fn,LucideCircleArrowOutDownRight:kn,LucideCircleArrowOutUpLeft:mn,LucideCircleArrowOutUpRight:gn,LucideCircleArrowRight:bn,LucideCircleArrowUp:Mn,LucideCircleCheck:xn,LucideCircleCheckBig:da,LucideCircleChevronDown:vn,LucideCircleChevronLeft:Cn,LucideCircleChevronRight:wn,LucideCircleChevronUp:Ln,LucideCircleDashed:Th,LucideCircleDivide:Sn,LucideCircleDollarSign:Hh,LucideCircleDot:Oh,LucideCircleDotDashed:jh,LucideCircleEllipsis:Rh,LucideCircleEqual:Fh,LucideCircleFadingArrowUp:Nh,LucideCircleFadingPlus:$h,LucideCircleGauge:In,LucideCircleHelp:_t,LucideCircleMinus:_n,LucideCircleOff:Uh,LucideCircleParking:Bn,LucideCircleParkingOff:An,LucideCirclePause:Vn,LucideCirclePercent:zn,LucideCirclePile:Wh,LucideCirclePlay:qn,LucideCirclePlus:Pn,LucideCirclePoundSterling:Gh,LucideCirclePower:Dn,LucideCircleQuestionMark:_t,LucideCircleSlash:Kh,LucideCircleSlash2:En,LucideCircleSlashed:En,LucideCircleSmall:Xh,LucideCircleStar:Zh,LucideCircleStop:Tn,LucideCircleUser:jn,LucideCircleUserRound:Hn,LucideCircleX:On,LucideCircuitBoard:Yh,LucideCitrus:Qh,LucideClapperboard:Jh,LucideClipboard:cu,LucideClipboardCheck:tu,LucideClipboardClock:eu,LucideClipboardCopy:au,LucideClipboardEdit:Rn,LucideClipboardList:nu,LucideClipboardMinus:ou,LucideClipboardPaste:ru,LucideClipboardPen:Rn,LucideClipboardPenLine:Fn,LucideClipboardPlus:iu,LucideClipboardSignature:Fn,LucideClipboardType:su,LucideClipboardX:lu,LucideClock:Ns,LucideClock1:du,LucideClock10:hu,LucideClock11:uu,LucideClock12:pu,LucideClock2:yu,LucideClock3:fu,LucideClock4:ku,LucideClock5:mu,LucideClock6:gu,LucideClock7:bu,LucideClock8:Mu,LucideClock9:xu,LucideClockAlert:wu,LucideClockArrowDown:vu,LucideClockArrowUp:Cu,LucideClockCheck:Lu,LucideClockFading:Su,LucideClockPlus:Iu,LucideClosedCaption:_u,LucideCloud:Wu,LucideCloudAlert:Au,LucideCloudBackup:Bu,LucideCloudCheck:Vu,LucideCloudCog:zu,LucideCloudDownload:Nn,LucideCloudDrizzle:qu,LucideCloudFog:Pu,LucideCloudHail:Du,LucideCloudLightning:Eu,LucideCloudMoon:Hu,LucideCloudMoonRain:Tu,LucideCloudOff:ju,LucideCloudRain:Fu,LucideCloudRainWind:Ou,LucideCloudSnow:Ru,LucideCloudSun:$u,LucideCloudSunRain:Nu,LucideCloudSync:Uu,LucideCloudUpload:ha,LucideCloudy:Gu,LucideClover:Ku,LucideClub:Xu,LucideCode:Zu,LucideCode2:$n,LucideCodeSquare:Nr,LucideCodeXml:$n,LucideCodepen:Yu,LucideCodesandbox:Qu,LucideCoffee:Ju,LucideCog:ep,LucideCoins:tp,LucideColumns:Un,LucideColumns2:Un,LucideColumns3:Wn,LucideColumns3Cog:At,LucideColumns4:ap,LucideColumnsSettings:At,LucideCombine:np,LucideCommand:op,LucideCompass:rp,LucideComponent:ip,LucideComputer:sp,LucideConciergeBell:lp,LucideCone:cp,LucideConstruction:dp,LucideContact:hp,LucideContact2:Gn,LucideContactRound:Gn,LucideContainer:up,LucideContrast:pp,LucideCookie:fp,LucideCookingPot:yp,LucideCopy:xp,LucideCopyCheck:kp,LucideCopyMinus:mp,LucideCopyPlus:gp,LucideCopySlash:Mp,LucideCopyX:bp,LucideCopyleft:wp,LucideCopyright:vp,LucideCornerDownLeft:Cp,LucideCornerDownRight:Sp,LucideCornerLeftDown:Lp,LucideCornerLeftUp:Ip,LucideCornerRightDown:_p,LucideCornerRightUp:Ap,LucideCornerUpLeft:Bp,LucideCornerUpRight:Vp,LucideCpu:cs,LucideCreativeCommons:zp,LucideCreditCard:qp,LucideCroissant:Pp,LucideCrop:Dp,LucideCross:Ep,LucideCrosshair:Hp,LucideCrown:Tp,LucideCuboid:jp,LucideCupSoda:Op,LucideCurlyBraces:Ka,LucideCurrency:Fp,LucideCylinder:Rp,LucideDam:Np,LucideDatabase:Gp,LucideDatabaseBackup:$p,LucideDatabaseSearch:Up,LucideDatabaseZap:Wp,LucideDecimalsArrowLeft:Kp,LucideDecimalsArrowRight:Xp,LucideDelete:Zp,LucideDessert:Yp,LucideDiameter:Qp,LucideDiamond:ty,LucideDiamondMinus:Jp,LucideDiamondPercent:Kn,LucideDiamondPlus:ey,LucideDice1:ay,LucideDice2:ny,LucideDice3:oy,LucideDice4:ry,LucideDice5:iy,LucideDice6:sy,LucideDices:ly,LucideDiff:cy,LucideDisc:py,LucideDisc2:dy,LucideDisc3:hy,LucideDiscAlbum:uy,LucideDivide:yy,LucideDivideCircle:Sn,LucideDivideSquare:Kr,LucideDna:ky,LucideDnaOff:fy,LucideDock:my,LucideDog:by,LucideDollarSign:gy,LucideDonut:xy,LucideDoorClosed:wy,LucideDoorClosedLocked:My,LucideDoorOpen:vy,LucideDot:Cy,LucideDotSquare:Gr,LucideDownload:$s,LucideDownloadCloud:Nn,LucideDraftingCompass:Ly,LucideDrama:Iy,LucideDribbble:Sy,LucideDrill:_y,LucideDrone:Ay,LucideDroplet:Vy,LucideDropletOff:By,LucideDroplets:zy,LucideDrum:qy,LucideDrumstick:Py,LucideDumbbell:Dy,LucideEar:Ty,LucideEarOff:Ey,LucideEarth:Xn,LucideEarthLock:Hy,LucideEclipse:jy,LucideEdit:Xe,LucideEdit2:ir,LucideEdit3:rr,LucideEgg:Fy,LucideEggFried:Oy,LucideEggOff:Ry,LucideEllipsis:ua,LucideEllipsisVertical:Zn,LucideEqual:Uy,LucideEqualApproximately:$y,LucideEqualNot:Ny,LucideEqualSquare:Xr,LucideEraser:Wy,LucideEthernetPort:Gy,LucideEuro:Ky,LucideEvCharger:Xy,LucideExpand:Zy,LucideExternalLink:Yy,LucideEye:ds,LucideEyeClosed:Qy,LucideEyeOff:Us,LucideFacebook:Jy,LucideFactory:ef,LucideFan:tf,LucideFastForward:af,LucideFeather:nf,LucideFence:of,LucideFerrisWheel:rf,LucideFigma:sf,LucideFile:Df,LucideFileArchive:lf,LucideFileAudio:Bt,LucideFileAudio2:Bt,LucideFileAxis3D:Yn,LucideFileAxis3d:Yn,LucideFileBadge:Qn,LucideFileBadge2:Qn,LucideFileBarChart:to,LucideFileBarChart2:ao,LucideFileBox:cf,LucideFileBraces:eo,LucideFileBracesCorner:Jn,LucideFileChartColumn:ao,LucideFileChartColumnIncreasing:to,LucideFileChartLine:no,LucideFileChartPie:oo,LucideFileCheck:df,LucideFileCheck2:ro,LucideFileCheckCorner:ro,LucideFileClock:hf,LucideFileCode:uf,LucideFileCode2:io,LucideFileCodeCorner:io,LucideFileCog:so,LucideFileCog2:so,LucideFileDiff:pf,LucideFileDigit:ff,LucideFileDown:yf,LucideFileEdit:fo,LucideFileExclamationPoint:lo,LucideFileHeadphone:Bt,LucideFileHeart:kf,LucideFileImage:mf,LucideFileInput:gf,LucideFileJson:eo,LucideFileJson2:Jn,LucideFileKey:co,LucideFileKey2:co,LucideFileLineChart:no,LucideFileLock:ho,LucideFileLock2:ho,LucideFileMinus:Mf,LucideFileMinus2:uo,LucideFileMinusCorner:uo,LucideFileMusic:bf,LucideFileOutput:xf,LucideFilePen:fo,LucideFilePenLine:po,LucideFilePieChart:oo,LucideFilePlay:yo,LucideFilePlus:wf,LucideFilePlus2:ko,LucideFilePlusCorner:ko,LucideFileQuestion:mo,LucideFileQuestionMark:mo,LucideFileScan:vf,LucideFileSearch:Cf,LucideFileSearch2:go,LucideFileSearchCorner:go,LucideFileSignal:bo,LucideFileSignature:po,LucideFileSliders:Lf,LucideFileSpreadsheet:Sf,LucideFileStack:If,LucideFileSymlink:_f,LucideFileTerminal:Af,LucideFileText:hs,LucideFileType:Bf,LucideFileType2:Mo,LucideFileTypeCorner:Mo,LucideFileUp:Vf,LucideFileUser:zf,LucideFileVideo:yo,LucideFileVideo2:xo,LucideFileVideoCamera:xo,LucideFileVolume:qf,LucideFileVolume2:bo,LucideFileWarning:lo,LucideFileX:Pf,LucideFileX2:wo,LucideFileXCorner:wo,LucideFiles:Tf,LucideFilm:Ef,LucideFilter:Io,LucideFilterX:So,LucideFingerprint:vo,LucideFingerprintPattern:vo,LucideFireExtinguisher:Hf,LucideFish:Ff,LucideFishOff:jf,LucideFishSymbol:Of,LucideFishingHook:Rf,LucideFlag:Wf,LucideFlagOff:Nf,LucideFlagTriangleLeft:$f,LucideFlagTriangleRight:Uf,LucideFlame:Kf,LucideFlameKindling:Gf,LucideFlashlight:Zf,LucideFlashlightOff:Xf,LucideFlaskConical:Qf,LucideFlaskConicalOff:Yf,LucideFlaskRound:Jf,LucideFlipHorizontal:Dr,LucideFlipHorizontal2:ek,LucideFlipVertical:Er,LucideFlipVertical2:tk,LucideFlower:nk,LucideFlower2:ak,LucideFocus:ok,LucideFoldHorizontal:rk,LucideFoldVertical:ik,LucideFolder:Pk,LucideFolderArchive:sk,LucideFolderCheck:lk,LucideFolderClock:ck,LucideFolderClosed:dk,LucideFolderCode:hk,LucideFolderCog:Co,LucideFolderCog2:Co,LucideFolderDot:uk,LucideFolderDown:pk,LucideFolderEdit:Lo,LucideFolderGit:fk,LucideFolderGit2:yk,LucideFolderHeart:kk,LucideFolderInput:mk,LucideFolderKanban:bk,LucideFolderKey:gk,LucideFolderLock:Mk,LucideFolderMinus:vk,LucideFolderOpen:wk,LucideFolderOpenDot:xk,LucideFolderOutput:Ck,LucideFolderPen:Lo,LucideFolderPlus:Ik,LucideFolderRoot:Lk,LucideFolderSearch:_k,LucideFolderSearch2:Sk,LucideFolderSymlink:Bk,LucideFolderSync:Ak,LucideFolderTree:Vk,LucideFolderUp:zk,LucideFolderX:qk,LucideFolders:Dk,LucideFootprints:Ek,LucideForkKnife:Fi,LucideForkKnifeCrossed:Oi,LucideForklift:Tk,LucideForm:Hk,LucideFormInput:cr,LucideForward:Ok,LucideFrame:jk,LucideFramer:Fk,LucideFrown:Rk,LucideFuel:Nk,LucideFullscreen:$k,LucideFunctionSquare:Zr,LucideFunnel:Io,LucideFunnelPlus:Uk,LucideFunnelX:So,LucideGalleryHorizontal:Gk,LucideGalleryHorizontalEnd:Wk,LucideGalleryThumbnails:Kk,LucideGalleryVertical:Zk,LucideGalleryVerticalEnd:Xk,LucideGamepad:em,LucideGamepad2:Yk,LucideGamepadDirectional:Qk,LucideGanttChart:ln,LucideGanttChartSquare:Pt,LucideGauge:Jk,LucideGaugeCircle:In,LucideGavel:tm,LucideGem:am,LucideGeorgianLari:nm,LucideGhost:om,LucideGift:rm,LucideGitBranch:lm,LucideGitBranchMinus:im,LucideGitBranchPlus:sm,LucideGitCommit:_o,LucideGitCommitHorizontal:_o,LucideGitCommitVertical:cm,LucideGitCompare:hm,LucideGitCompareArrows:dm,LucideGitFork:um,LucideGitGraph:pm,LucideGitMerge:fm,LucideGitMergeConflict:ym,LucideGitPullRequest:xm,LucideGitPullRequestArrow:km,LucideGitPullRequestClosed:mm,LucideGitPullRequestCreate:bm,LucideGitPullRequestCreateArrow:gm,LucideGitPullRequestDraft:Mm,LucideGithub:wm,LucideGitlab:vm,LucideGlassWater:Cm,LucideGlasses:Lm,LucideGlobe:Ws,LucideGlobe2:Xn,LucideGlobeLock:Sm,LucideGlobeOff:Im,LucideGlobeX:_m,LucideGoal:Am,LucideGpu:Vm,LucideGrab:qo,LucideGraduationCap:Bm,LucideGrape:zm,LucideGrid:Vt,LucideGrid2X2:zo,LucideGrid2X2Check:Ao,LucideGrid2X2Plus:Vo,LucideGrid2X2X:Bo,LucideGrid2x2:zo,LucideGrid2x2Check:Ao,LucideGrid2x2Plus:Vo,LucideGrid2x2X:Bo,LucideGrid3X3:Vt,LucideGrid3x2:qm,LucideGrid3x3:Vt,LucideGrip:Em,LucideGripHorizontal:Pm,LucideGripVertical:Dm,LucideGroup:Hm,LucideGuitar:Tm,LucideHam:jm,LucideHamburger:Om,LucideHammer:Fm,LucideHand:Gm,LucideHandCoins:Rm,LucideHandFist:Nm,LucideHandGrab:qo,LucideHandHeart:$m,LucideHandHelping:Po,LucideHandMetal:Um,LucideHandPlatter:Wm,LucideHandbag:Km,LucideHandshake:Xm,LucideHardDrive:Qm,LucideHardDriveDownload:Zm,LucideHardDriveUpload:Ym,LucideHardHat:Jm,LucideHash:e4,LucideHatGlasses:t4,LucideHaze:a4,LucideHd:n4,LucideHdmiPort:o4,LucideHeading:h4,LucideHeading1:r4,LucideHeading2:i4,LucideHeading3:s4,LucideHeading4:l4,LucideHeading5:c4,LucideHeading6:d4,LucideHeadphoneOff:u4,LucideHeadphones:p4,LucideHeadset:y4,LucideHeart:x4,LucideHeartCrack:f4,LucideHeartHandshake:m4,LucideHeartMinus:k4,LucideHeartOff:g4,LucideHeartPlus:b4,LucideHeartPulse:M4,LucideHeater:w4,LucideHelicopter:v4,LucideHelpCircle:_t,LucideHelpingHand:Po,LucideHexagon:C4,LucideHighlighter:L4,LucideHistory:S4,LucideHome:Do,LucideHop:_4,LucideHopOff:I4,LucideHospital:A4,LucideHotel:B4,LucideHourglass:V4,LucideHouse:Do,LucideHouseHeart:z4,LucideHousePlug:q4,LucideHousePlus:P4,LucideHouseWifi:D4,LucideIceCream:To,LucideIceCream2:Eo,LucideIceCreamBowl:Eo,LucideIceCreamCone:To,LucideIdCard:T4,LucideIdCardLanyard:E4,LucideImage:U4,LucideImageDown:H4,LucideImageMinus:j4,LucideImageOff:O4,LucideImagePlay:F4,LucideImagePlus:R4,LucideImageUp:N4,LucideImageUpscale:$4,LucideImages:W4,LucideImport:K4,LucideInbox:G4,LucideIndent:qt,LucideIndentDecrease:zt,LucideIndentIncrease:qt,LucideIndianRupee:X4,LucideInfinity:Z4,LucideInfo:Y4,LucideInspect:ai,LucideInspectionPanel:Q4,LucideInstagram:J4,LucideItalic:e5,LucideIterationCcw:t5,LucideIterationCw:a5,LucideJapaneseYen:n5,LucideJoystick:o5,LucideKanban:r5,LucideKanbanSquare:Yr,LucideKanbanSquareDashed:$r,LucideKayak:i5,LucideKey:d5,LucideKeyRound:s5,LucideKeySquare:l5,LucideKeyboard:u5,LucideKeyboardMusic:c5,LucideKeyboardOff:h5,LucideLamp:g5,LucideLampCeiling:p5,LucideLampDesk:y5,LucideLampFloor:k5,LucideLampWallDown:f5,LucideLampWallUp:m5,LucideLandPlot:b5,LucideLandmark:x5,LucideLanguages:M5,LucideLaptop:v5,LucideLaptop2:Ho,LucideLaptopMinimal:Ho,LucideLaptopMinimalCheck:w5,LucideLasso:L5,LucideLassoSelect:C5,LucideLaugh:S5,LucideLayers:jo,LucideLayers2:I5,LucideLayers3:jo,LucideLayersPlus:_5,LucideLayout:or,LucideLayoutDashboard:A5,LucideLayoutGrid:B5,LucideLayoutList:V5,LucideLayoutPanelLeft:z5,LucideLayoutPanelTop:q5,LucideLayoutTemplate:P5,LucideLeaf:D5,LucideLeafyGreen:E5,LucideLectern:T5,LucideLensConcave:H5,LucideLensConvex:j5,LucideLetterText:Ci,LucideLibrary:N5,LucideLibraryBig:O5,LucideLibrarySquare:Qr,LucideLifeBuoy:R5,LucideLigature:F5,LucideLightbulb:U5,LucideLightbulbOff:$5,LucideLineChart:nn,LucideLineDotRightHorizontal:W5,LucideLineSquiggle:G5,LucideLink:Gs,LucideLink2:X5,LucideLink2Off:K5,LucideLinkedin:Z5,LucideList:fg,LucideListCheck:Y5,LucideListChecks:Q5,LucideListChevronsDownUp:eg,LucideListChevronsUpDown:J5,LucideListCollapse:tg,LucideListEnd:ag,LucideListFilter:ng,LucideListFilterPlus:og,LucideListIndentDecrease:zt,LucideListIndentIncrease:qt,LucideListMinus:lg,LucideListMusic:rg,LucideListOrdered:ig,LucideListPlus:sg,LucideListRestart:cg,LucideListStart:dg,LucideListTodo:ug,LucideListTree:hg,LucideListVideo:pg,LucideListX:yg,LucideLoader:mg,LucideLoader2:kt,LucideLoaderCircle:kt,LucideLoaderPinwheel:kg,LucideLocate:Mg,LucideLocateFixed:gg,LucideLocateOff:bg,LucideLocationEdit:No,LucideLock:wg,LucideLockKeyhole:xg,LucideLockKeyholeOpen:Oo,LucideLockOpen:Fo,LucideLogIn:vg,LucideLogOut:Cg,LucideLogs:Lg,LucideLollipop:Sg,LucideLuggage:Ig,LucideMSquare:Jr,LucideMagnet:_g,LucideMail:Eg,LucideMailCheck:Ag,LucideMailMinus:Vg,LucideMailOpen:Bg,LucideMailPlus:zg,LucideMailQuestion:Ro,LucideMailQuestionMark:Ro,LucideMailSearch:qg,LucideMailWarning:Dg,LucideMailX:Pg,LucideMailbox:jg,LucideMails:Tg,LucideMap:Qg,LucideMapMinus:Hg,LucideMapPin:Ks,LucideMapPinCheck:Og,LucideMapPinCheckInside:Fg,LucideMapPinHouse:Rg,LucideMapPinMinus:$g,LucideMapPinMinusInside:Ng,LucideMapPinOff:Ug,LucideMapPinPen:No,LucideMapPinPlus:Gg,LucideMapPinPlusInside:Wg,LucideMapPinX:Kg,LucideMapPinXInside:Xg,LucideMapPinned:Zg,LucideMapPlus:Yg,LucideMars:t3,LucideMarsStroke:Jg,LucideMartini:e3,LucideMaximize:n3,LucideMaximize2:a3,LucideMedal:o3,LucideMegaphone:i3,LucideMegaphoneOff:r3,LucideMeh:s3,LucideMemoryStick:l3,LucideMenu:c3,LucideMenuSquare:ei,LucideMerge:d3,LucideMessageCircle:x3,LucideMessageCircleCheck:h3,LucideMessageCircleCode:u3,LucideMessageCircleDashed:p3,LucideMessageCircleHeart:y3,LucideMessageCircleMore:k3,LucideMessageCircleOff:f3,LucideMessageCirclePlus:m3,LucideMessageCircleQuestion:$o,LucideMessageCircleQuestionMark:$o,LucideMessageCircleReply:g3,LucideMessageCircleWarning:b3,LucideMessageCircleX:M3,LucideMessageSquare:us,LucideMessageSquareCheck:w3,LucideMessageSquareCode:v3,LucideMessageSquareDashed:C3,LucideMessageSquareDiff:L3,LucideMessageSquareDot:S3,LucideMessageSquareHeart:I3,LucideMessageSquareLock:_3,LucideMessageSquareMore:A3,LucideMessageSquareOff:B3,LucideMessageSquarePlus:V3,LucideMessageSquareQuote:z3,LucideMessageSquareReply:q3,LucideMessageSquareShare:P3,LucideMessageSquareText:E3,LucideMessageSquareWarning:D3,LucideMessageSquareX:T3,LucideMessagesSquare:H3,LucideMetronome:j3,LucideMic:F3,LucideMic2:Uo,LucideMicOff:O3,LucideMicVocal:Uo,LucideMicrochip:R3,LucideMicroscope:N3,LucideMicrowave:$3,LucideMilestone:U3,LucideMilk:G3,LucideMilkOff:W3,LucideMinimize:K3,LucideMinimize2:X3,LucideMinus:Xs,LucideMinusCircle:_n,LucideMinusSquare:ti,LucideMirrorRectangular:Z3,LucideMirrorRound:Y3,LucideMonitor:h8,LucideMonitorCheck:Q3,LucideMonitorCloud:J3,LucideMonitorCog:e8,LucideMonitorDot:t8,LucideMonitorDown:a8,LucideMonitorOff:n8,LucideMonitorPause:o8,LucideMonitorPlay:r8,LucideMonitorSmartphone:i8,LucideMonitorSpeaker:s8,LucideMonitorStop:l8,LucideMonitorUp:c8,LucideMonitorX:d8,LucideMoon:p8,LucideMoonStar:u8,LucideMoreHorizontal:ua,LucideMoreVertical:Zn,LucideMotorbike:y8,LucideMountain:k8,LucideMountainSnow:f8,LucideMouse:L8,LucideMouseLeft:m8,LucideMouseOff:g8,LucideMousePointer:v8,LucideMousePointer2:M8,LucideMousePointer2Off:b8,LucideMousePointerBan:x8,LucideMousePointerClick:w8,LucideMousePointerSquareDashed:Ur,LucideMouseRight:C8,LucideMove:H8,LucideMove3D:Wo,LucideMove3d:Wo,LucideMoveDiagonal:I8,LucideMoveDiagonal2:S8,LucideMoveDown:B8,LucideMoveDownLeft:_8,LucideMoveDownRight:A8,LucideMoveHorizontal:V8,LucideMoveLeft:z8,LucideMoveRight:P8,LucideMoveUp:E8,LucideMoveUpLeft:q8,LucideMoveUpRight:D8,LucideMoveVertical:T8,LucideMusic:R8,LucideMusic2:j8,LucideMusic3:O8,LucideMusic4:F8,LucideNavigation:W8,LucideNavigation2:$8,LucideNavigation2Off:N8,LucideNavigationOff:U8,LucideNetwork:G8,LucideNewspaper:K8,LucideNfc:X8,LucideNonBinary:Z8,LucideNotebook:e6,LucideNotebookPen:Q8,LucideNotebookTabs:Y8,LucideNotebookText:J8,LucideNotepadText:a6,LucideNotepadTextDashed:t6,LucideNut:o6,LucideNutOff:n6,LucideOctagon:i6,LucideOctagonAlert:Go,LucideOctagonMinus:r6,LucideOctagonPause:Ko,LucideOctagonX:Xo,LucideOmega:s6,LucideOption:l6,LucideOrbit:c6,LucideOrigami:d6,LucideOutdent:zt,LucidePackage:g6,LucidePackage2:h6,LucidePackageCheck:p6,LucidePackageMinus:u6,LucidePackageOpen:y6,LucidePackagePlus:f6,LucidePackageSearch:k6,LucidePackageX:m6,LucidePaintBucket:b6,LucidePaintRoller:M6,LucidePaintbrush:x6,LucidePaintbrush2:Zo,LucidePaintbrushVertical:Zo,LucidePalette:w6,LucidePalmtree:Ai,LucidePanda:v6,LucidePanelBottom:S6,LucidePanelBottomClose:C6,LucidePanelBottomDashed:Yo,LucidePanelBottomInactive:Yo,LucidePanelBottomOpen:L6,LucidePanelLeft:tr,LucidePanelLeftClose:Jo,LucidePanelLeftDashed:Qo,LucidePanelLeftInactive:Qo,LucidePanelLeftOpen:er,LucidePanelLeftRightDashed:I6,LucidePanelRight:B6,LucidePanelRightClose:_6,LucidePanelRightDashed:ar,LucidePanelRightInactive:ar,LucidePanelRightOpen:A6,LucidePanelTop:P6,LucidePanelTopBottomDashed:V6,LucidePanelTopClose:z6,LucidePanelTopDashed:nr,LucidePanelTopInactive:nr,LucidePanelTopOpen:q6,LucidePanelsLeftBottom:D6,LucidePanelsLeftRight:Wn,LucidePanelsRightBottom:E6,LucidePanelsTopBottom:ur,LucidePanelsTopLeft:or,LucidePaperclip:T6,LucideParentheses:H6,LucideParkingCircle:Bn,LucideParkingCircleOff:An,LucideParkingMeter:j6,LucideParkingSquare:oi,LucideParkingSquareOff:ni,LucidePartyPopper:O6,LucidePause:F6,LucidePauseCircle:Vn,LucidePauseOctagon:Ko,LucidePawPrint:R6,LucidePcCase:N6,LucidePen:ir,LucidePenBox:Xe,LucidePenLine:rr,LucidePenOff:$6,LucidePenSquare:Xe,LucidePenTool:U6,LucidePencil:sr,LucidePencilLine:W6,LucidePencilOff:G6,LucidePencilRuler:K6,LucidePentagon:X6,LucidePercent:Z6,LucidePercentCircle:zn,LucidePercentDiamond:Kn,LucidePercentSquare:ri,LucidePersonStanding:Y6,LucidePhilippinePeso:Q6,LucidePhone:Zs,LucidePhoneCall:J6,LucidePhoneForwarded:e7,LucidePhoneIncoming:t7,LucidePhoneMissed:n7,LucidePhoneOff:a7,LucidePhoneOutgoing:o7,LucidePi:r7,LucidePiSquare:ii,LucidePiano:i7,LucidePickaxe:s7,LucidePictureInPicture:c7,LucidePictureInPicture2:l7,LucidePieChart:sn,LucidePiggyBank:d7,LucidePilcrow:p7,LucidePilcrowLeft:h7,LucidePilcrowRight:u7,LucidePilcrowSquare:si,LucidePill:g7,LucidePillBottle:y7,LucidePin:k7,LucidePinOff:f7,LucidePipette:m7,LucidePizza:b7,LucidePlane:Ys,LucidePlaneLanding:M7,LucidePlaneTakeoff:x7,LucidePlay:w7,LucidePlayCircle:qn,LucidePlaySquare:li,LucidePlug:C7,LucidePlug2:v7,LucidePlugZap:lr,LucidePlugZap2:lr,LucidePlus:Qs,LucidePlusCircle:Pn,LucidePlusSquare:ci,LucidePocket:S7,LucidePocketKnife:L7,LucidePodcast:I7,LucidePointer:A7,LucidePointerOff:_7,LucidePopcorn:B7,LucidePopsicle:V7,LucidePoundSterling:q7,LucidePower:P7,LucidePowerCircle:Dn,LucidePowerOff:z7,LucidePowerSquare:di,LucidePresentation:D7,LucidePrinter:H7,LucidePrinterCheck:E7,LucidePrinterX:T7,LucideProjector:j7,LucideProportions:R7,LucidePuzzle:O7,LucidePyramid:F7,LucideQrCode:N7,LucideQuote:$7,LucideRabbit:W7,LucideRadar:U7,LucideRadiation:K7,LucideRadical:G7,LucideRadio:Y7,LucideRadioReceiver:X7,LucideRadioTower:Z7,LucideRadius:Q7,LucideRailSymbol:J7,LucideRainbow:eb,LucideRat:tb,LucideRatio:ab,LucideReceipt:ub,LucideReceiptCent:nb,LucideReceiptEuro:ob,LucideReceiptIndianRupee:rb,LucideReceiptJapaneseYen:ib,LucideReceiptPoundSterling:sb,LucideReceiptRussianRuble:lb,LucideReceiptSwissFranc:cb,LucideReceiptText:db,LucideReceiptTurkishLira:hb,LucideRectangleCircle:pb,LucideRectangleEllipsis:cr,LucideRectangleGoggles:yb,LucideRectangleHorizontal:fb,LucideRectangleVertical:kb,LucideRecycle:mb,LucideRedo:bb,LucideRedo2:gb,LucideRedoDot:Mb,LucideRefreshCcw:wb,LucideRefreshCcwDot:xb,LucideRefreshCw:ps,LucideRefreshCwOff:vb,LucideRefrigerator:Lb,LucideRegex:Cb,LucideRemoveFormatting:Sb,LucideRepeat:_b,LucideRepeat1:Ib,LucideRepeat2:Bb,LucideReplace:Vb,LucideReplaceAll:Ab,LucideReply:qb,LucideReplyAll:zb,LucideRewind:Db,LucideRibbon:Pb,LucideRocket:Eb,LucideRockingChair:Tb,LucideRollerCoaster:Hb,LucideRose:jb,LucideRotate3D:dr,LucideRotate3d:dr,LucideRotateCcw:Rb,LucideRotateCcwKey:Ob,LucideRotateCcwSquare:Fb,LucideRotateCw:$b,LucideRotateCwSquare:Nb,LucideRoute:Wb,LucideRouteOff:Ub,LucideRouter:Gb,LucideRows:hr,LucideRows2:hr,LucideRows3:ur,LucideRows4:Kb,LucideRss:Xb,LucideRuler:Zb,LucideRulerDimensionLine:Yb,LucideRussianRuble:Qb,LucideSailboat:Jb,LucideSalad:eM,LucideSandwich:aM,LucideSatellite:nM,LucideSatelliteDish:tM,LucideSaudiRiyal:oM,LucideSave:sM,LucideSaveAll:iM,LucideSaveOff:rM,LucideScale:lM,LucideScale3D:pr,LucideScale3d:pr,LucideScaling:cM,LucideScan:mM,LucideScanBarcode:dM,LucideScanEye:hM,LucideScanFace:uM,LucideScanHeart:pM,LucideScanLine:yM,LucideScanQrCode:kM,LucideScanSearch:fM,LucideScanText:gM,LucideScatterChart:cn,LucideSchool:bM,LucideSchool2:zi,LucideScissors:wM,LucideScissorsLineDashed:MM,LucideScissorsSquare:hi,LucideScissorsSquareDashedBottom:Pr,LucideScooter:xM,LucideScreenShare:CM,LucideScreenShareOff:vM,LucideScroll:SM,LucideScrollText:LM,LucideSearch:yr,LucideSearchAlert:IM,LucideSearchCheck:AM,LucideSearchCode:_M,LucideSearchSlash:BM,LucideSearchX:VM,LucideSection:zM,LucideSend:PM,LucideSendHorizonal:fr,LucideSendHorizontal:fr,LucideSendToBack:qM,LucideSeparatorHorizontal:DM,LucideSeparatorVertical:EM,LucideServer:Js,LucideServerCog:TM,LucideServerCrash:HM,LucideServerOff:OM,LucideSettings:FM,LucideSettings2:jM,LucideShapes:RM,LucideShare:NM,LucideShare2:e1,LucideSheet:$M,LucideShell:UM,LucideShelvingUnit:WM,LucideShield:ax,LucideShieldAlert:GM,LucideShieldBan:KM,LucideShieldCheck:XM,LucideShieldClose:mr,LucideShieldEllipsis:ZM,LucideShieldHalf:YM,LucideShieldMinus:ex,LucideShieldOff:QM,LucideShieldPlus:JM,LucideShieldQuestion:kr,LucideShieldQuestionMark:kr,LucideShieldUser:tx,LucideShieldX:mr,LucideShip:ox,LucideShipWheel:nx,LucideShirt:rx,LucideShoppingBag:ix,LucideShoppingBasket:sx,LucideShoppingCart:t1,LucideShovel:cx,LucideShowerHead:lx,LucideShredder:dx,LucideShrimp:hx,LucideShrink:ux,LucideShrub:px,LucideShuffle:yx,LucideSidebar:tr,LucideSidebarClose:Jo,LucideSidebarOpen:er,LucideSigma:fx,LucideSigmaSquare:ui,LucideSignal:Mx,LucideSignalHigh:kx,LucideSignalLow:mx,LucideSignalMedium:gx,LucideSignalZero:bx,LucideSignature:xx,LucideSignpost:vx,LucideSignpostBig:wx,LucideSiren:Cx,LucideSkipBack:Sx,LucideSkipForward:Lx,LucideSkull:_x,LucideSlack:Ix,LucideSlash:Ax,LucideSlashSquare:pi,LucideSlice:Bx,LucideSliders:gr,LucideSlidersHorizontal:a1,LucideSlidersVertical:gr,LucideSmartphone:qx,LucideSmartphoneCharging:Vx,LucideSmartphoneNfc:zx,LucideSmile:Dx,LucideSmilePlus:Px,LucideSnail:Ex,LucideSnowflake:Tx,LucideSoapDispenserDroplet:Hx,LucideSofa:jx,LucideSolarPanel:Ox,LucideSortAsc:Oa,LucideSortDesc:Ta,LucideSoup:Fx,LucideSpace:Rx,LucideSpade:Nx,LucideSparkle:$x,LucideSparkles:br,LucideSpeaker:Ux,LucideSpeech:Wx,LucideSpellCheck:Xx,LucideSpellCheck2:Gx,LucideSpline:Zx,LucideSplinePointer:Kx,LucideSplit:Yx,LucideSplitSquareHorizontal:yi,LucideSplitSquareVertical:fi,LucideSpool:Qx,LucideSpotlight:Jx,LucideSprayCan:e9,LucideSprout:t9,LucideSquare:f9,LucideSquareActivity:Mr,LucideSquareArrowDown:vr,LucideSquareArrowDownLeft:xr,LucideSquareArrowDownRight:wr,LucideSquareArrowLeft:Cr,LucideSquareArrowOutDownLeft:Lr,LucideSquareArrowOutDownRight:Sr,LucideSquareArrowOutUpLeft:Ir,LucideSquareArrowOutUpRight:_r,LucideSquareArrowRight:Ar,LucideSquareArrowRightEnter:a9,LucideSquareArrowRightExit:n9,LucideSquareArrowUp:zr,LucideSquareArrowUpLeft:Vr,LucideSquareArrowUpRight:Br,LucideSquareAsterisk:qr,LucideSquareBottomDashedScissors:Pr,LucideSquareCenterlineDashedHorizontal:Dr,LucideSquareCenterlineDashedVertical:Er,LucideSquareChartGantt:Pt,LucideSquareCheck:Hr,LucideSquareCheckBig:Tr,LucideSquareChevronDown:jr,LucideSquareChevronLeft:Or,LucideSquareChevronRight:Fr,LucideSquareChevronUp:Rr,LucideSquareCode:Nr,LucideSquareDashed:Wr,LucideSquareDashedBottom:r9,LucideSquareDashedBottomCode:o9,LucideSquareDashedKanban:$r,LucideSquareDashedMousePointer:Ur,LucideSquareDashedTopSolid:i9,LucideSquareDivide:Kr,LucideSquareDot:Gr,LucideSquareEqual:Xr,LucideSquareFunction:Zr,LucideSquareGanttChart:Pt,LucideSquareKanban:Yr,LucideSquareLibrary:Qr,LucideSquareM:Jr,LucideSquareMenu:ei,LucideSquareMinus:ti,LucideSquareMousePointer:ai,LucideSquareParking:oi,LucideSquareParkingOff:ni,LucideSquarePause:s9,LucideSquarePen:Xe,LucideSquarePercent:ri,LucideSquarePi:ii,LucideSquarePilcrow:si,LucideSquarePlay:li,LucideSquarePlus:ci,LucideSquarePower:di,LucideSquareRadical:c9,LucideSquareRoundCorner:l9,LucideSquareScissors:hi,LucideSquareSigma:ui,LucideSquareSlash:pi,LucideSquareSplitHorizontal:yi,LucideSquareSplitVertical:fi,LucideSquareSquare:d9,LucideSquareStack:h9,LucideSquareStar:p9,LucideSquareStop:u9,LucideSquareTerminal:ki,LucideSquareUser:bi,LucideSquareUserRound:mi,LucideSquareX:gi,LucideSquaresExclude:y9,LucideSquaresIntersect:k9,LucideSquaresSubtract:m9,LucideSquaresUnite:g9,LucideSquircle:M9,LucideSquircleDashed:b9,LucideSquirrel:x9,LucideStamp:w9,LucideStar:S9,LucideStarHalf:v9,LucideStarOff:C9,LucideStars:br,LucideStepBack:L9,LucideStepForward:I9,LucideStethoscope:_9,LucideSticker:A9,LucideStickyNote:B9,LucideStone:V9,LucideStopCircle:Tn,LucideStore:z9,LucideStretchHorizontal:P9,LucideStretchVertical:q9,LucideStrikethrough:D9,LucideSubscript:E9,LucideSubtitles:Xa,LucideSun:F9,LucideSunDim:T9,LucideSunMedium:H9,LucideSunMoon:O9,LucideSunSnow:j9,LucideSunrise:R9,LucideSunset:N9,LucideSuperscript:$9,LucideSwatchBook:U9,LucideSwissFranc:W9,LucideSwitchCamera:K9,LucideSword:G9,LucideSwords:X9,LucideSyringe:Z9,LucideTable:rw,LucideTable2:Y9,LucideTableCellsMerge:Q9,LucideTableCellsSplit:J9,LucideTableColumnsSplit:ew,LucideTableConfig:At,LucideTableOfContents:tw,LucideTableProperties:aw,LucideTableRowsSplit:nw,LucideTablet:ow,LucideTabletSmartphone:iw,LucideTablets:sw,LucideTag:lw,LucideTags:cw,LucideTally1:dw,LucideTally2:hw,LucideTally3:uw,LucideTally4:pw,LucideTally5:yw,LucideTangent:fw,LucideTarget:kw,LucideTelescope:mw,LucideTent:bw,LucideTentTree:gw,LucideTerminal:Mw,LucideTerminalSquare:ki,LucideTestTube:xw,LucideTestTube2:Mi,LucideTestTubeDiagonal:Mi,LucideTestTubes:ww,LucideText:Dt,LucideTextAlignCenter:vi,LucideTextAlignEnd:xi,LucideTextAlignJustify:wi,LucideTextAlignStart:Dt,LucideTextCursor:Cw,LucideTextCursorInput:vw,LucideTextInitial:Ci,LucideTextQuote:Sw,LucideTextSearch:Lw,LucideTextSelect:Si,LucideTextSelection:Si,LucideTextWrap:Li,LucideTheater:Iw,LucideThermometer:Bw,LucideThermometerSnowflake:_w,LucideThermometerSun:Aw,LucideThumbsDown:zw,LucideThumbsUp:Vw,LucideTicket:Ow,LucideTicketCheck:qw,LucideTicketMinus:Pw,LucideTicketPercent:Dw,LucideTicketPlus:Ew,LucideTicketSlash:Tw,LucideTicketX:Hw,LucideTickets:Fw,LucideTicketsPlane:jw,LucideTimer:$w,LucideTimerOff:Rw,LucideTimerReset:Nw,LucideToggleLeft:n1,LucideToggleRight:Uw,LucideToilet:Ww,LucideToolCase:Gw,LucideToolbox:Kw,LucideTornado:Xw,LucideTorus:Zw,LucideTouchpad:Qw,LucideTouchpadOff:Yw,LucideTowelRack:Jw,LucideTowerControl:ev,LucideToyBrick:tv,LucideTractor:av,LucideTrafficCone:nv,LucideTrain:Ii,LucideTrainFront:sv,LucideTrainFrontTunnel:ov,LucideTrainTrack:rv,LucideTramFront:Ii,LucideTransgender:iv,LucideTrash:lv,LucideTrash2:_i,LucideTreeDeciduous:cv,LucideTreePalm:Ai,LucideTreePine:dv,LucideTrees:hv,LucideTrello:uv,LucideTrendingDown:pv,LucideTrendingUp:fv,LucideTrendingUpDown:yv,LucideTriangle:bv,LucideTriangleAlert:Bi,LucideTriangleDashed:kv,LucideTriangleRight:gv,LucideTrophy:mv,LucideTruck:xv,LucideTruckElectric:Mv,LucideTurkishLira:wv,LucideTurntable:vv,LucideTurtle:Cv,LucideTv:Sv,LucideTv2:Vi,LucideTvMinimal:Vi,LucideTvMinimalPlay:Lv,LucideTwitch:Iv,LucideTwitter:Av,LucideType:Bv,LucideTypeOutline:_v,LucideUmbrella:zv,LucideUmbrellaOff:Vv,LucideUnderline:qv,LucideUndo:Dv,LucideUndo2:Pv,LucideUndoDot:Ev,LucideUnfoldHorizontal:Tv,LucideUnfoldVertical:Hv,LucideUngroup:jv,LucideUniversity:zi,LucideUnlink:Fv,LucideUnlink2:Ov,LucideUnlock:Fo,LucideUnlockKeyhole:Oo,LucideUnplug:Rv,LucideUpload:Nv,LucideUploadCloud:ha,LucideUsb:$v,LucideUser:o1,LucideUser2:Hi,LucideUserCheck:Uv,LucideUserCheck2:qi,LucideUserCircle:jn,LucideUserCircle2:Hn,LucideUserCog:Wv,LucideUserCog2:Pi,LucideUserKey:Gv,LucideUserLock:Kv,LucideUserMinus:Xv,LucideUserMinus2:Di,LucideUserPen:Zv,LucideUserPlus:Yv,LucideUserPlus2:Ei,LucideUserRound:Hi,LucideUserRoundCheck:qi,LucideUserRoundCog:Pi,LucideUserRoundKey:Qv,LucideUserRoundMinus:Di,LucideUserRoundPen:Jv,LucideUserRoundPlus:Ei,LucideUserRoundSearch:eC,LucideUserRoundX:Ti,LucideUserSearch:aC,LucideUserSquare:bi,LucideUserSquare2:mi,LucideUserStar:tC,LucideUserX:nC,LucideUserX2:Ti,LucideUsers:oC,LucideUsers2:ji,LucideUsersRound:ji,LucideUtensils:Fi,LucideUtensilsCrossed:Oi,LucideUtilityPole:rC,LucideVan:iC,LucideVariable:lC,LucideVault:sC,LucideVectorSquare:cC,LucideVegan:dC,LucideVenetianMask:hC,LucideVenus:uC,LucideVenusAndMars:pC,LucideVerified:Na,LucideVibrate:fC,LucideVibrateOff:yC,LucideVideo:mC,LucideVideoOff:kC,LucideVideotape:gC,LucideView:bC,LucideVoicemail:MC,LucideVolleyball:vC,LucideVolume:LC,LucideVolume1:xC,LucideVolume2:wC,LucideVolumeOff:CC,LucideVolumeX:SC,LucideVote:IC,LucideWallet:AC,LucideWallet2:Ri,LucideWalletCards:_C,LucideWalletMinimal:Ri,LucideWallpaper:BC,LucideWand:VC,LucideWand2:Ni,LucideWandSparkles:Ni,LucideWarehouse:zC,LucideWashingMachine:qC,LucideWatch:PC,LucideWaves:HC,LucideWavesArrowDown:DC,LucideWavesArrowUp:EC,LucideWavesLadder:TC,LucideWaypoints:jC,LucideWebcam:OC,LucideWebhook:RC,LucideWebhookOff:FC,LucideWeight:$C,LucideWeightTilde:NC,LucideWheat:WC,LucideWheatOff:UC,LucideWholeWord:GC,LucideWifi:tL,LucideWifiCog:KC,LucideWifiHigh:XC,LucideWifiLow:YC,LucideWifiOff:ZC,LucideWifiPen:QC,LucideWifiSync:JC,LucideWifiZero:eL,LucideWind:aL,LucideWindArrowDown:nL,LucideWine:oL,LucideWineOff:rL,LucideWorkflow:iL,LucideWorm:sL,LucideWrapText:Li,LucideWrench:lL,LucideX:it,LucideXCircle:On,LucideXLineTop:cL,LucideXOctagon:Xo,LucideXSquare:gi,LucideYoutube:dL,LucideZap:pL,LucideZapOff:hL,LucideZoomIn:uL,LucideZoomOut:yL,Luggage:Ig,LuggageIcon:Ig,MSquare:Jr,MSquareIcon:Jr,Magnet:_g,MagnetIcon:_g,Mail:Eg,MailCheck:Ag,MailCheckIcon:Ag,MailIcon:Eg,MailMinus:Vg,MailMinusIcon:Vg,MailOpen:Bg,MailOpenIcon:Bg,MailPlus:zg,MailPlusIcon:zg,MailQuestion:Ro,MailQuestionIcon:Ro,MailQuestionMark:Ro,MailQuestionMarkIcon:Ro,MailSearch:qg,MailSearchIcon:qg,MailWarning:Dg,MailWarningIcon:Dg,MailX:Pg,MailXIcon:Pg,Mailbox:jg,MailboxIcon:jg,Mails:Tg,MailsIcon:Tg,Map:Qg,MapIcon:Qg,MapMinus:Hg,MapMinusIcon:Hg,MapPin:Ks,MapPinCheck:Og,MapPinCheckIcon:Og,MapPinCheckInside:Fg,MapPinCheckInsideIcon:Fg,MapPinHouse:Rg,MapPinHouseIcon:Rg,MapPinIcon:Ks,MapPinMinus:$g,MapPinMinusIcon:$g,MapPinMinusInside:Ng,MapPinMinusInsideIcon:Ng,MapPinOff:Ug,MapPinOffIcon:Ug,MapPinPen:No,MapPinPenIcon:No,MapPinPlus:Gg,MapPinPlusIcon:Gg,MapPinPlusInside:Wg,MapPinPlusInsideIcon:Wg,MapPinX:Kg,MapPinXIcon:Kg,MapPinXInside:Xg,MapPinXInsideIcon:Xg,MapPinned:Zg,MapPinnedIcon:Zg,MapPlus:Yg,MapPlusIcon:Yg,Mars:t3,MarsIcon:t3,MarsStroke:Jg,MarsStrokeIcon:Jg,Martini:e3,MartiniIcon:e3,Maximize:n3,Maximize2:a3,Maximize2Icon:a3,MaximizeIcon:n3,Medal:o3,MedalIcon:o3,Megaphone:i3,MegaphoneIcon:i3,MegaphoneOff:r3,MegaphoneOffIcon:r3,Meh:s3,MehIcon:s3,MemoryStick:l3,MemoryStickIcon:l3,Menu:c3,MenuIcon:c3,MenuSquare:ei,MenuSquareIcon:ei,Merge:d3,MergeIcon:d3,MessageCircle:x3,MessageCircleCheck:h3,MessageCircleCheckIcon:h3,MessageCircleCode:u3,MessageCircleCodeIcon:u3,MessageCircleDashed:p3,MessageCircleDashedIcon:p3,MessageCircleHeart:y3,MessageCircleHeartIcon:y3,MessageCircleIcon:x3,MessageCircleMore:k3,MessageCircleMoreIcon:k3,MessageCircleOff:f3,MessageCircleOffIcon:f3,MessageCirclePlus:m3,MessageCirclePlusIcon:m3,MessageCircleQuestion:$o,MessageCircleQuestionIcon:$o,MessageCircleQuestionMark:$o,MessageCircleQuestionMarkIcon:$o,MessageCircleReply:g3,MessageCircleReplyIcon:g3,MessageCircleWarning:b3,MessageCircleWarningIcon:b3,MessageCircleX:M3,MessageCircleXIcon:M3,MessageSquare:us,MessageSquareCheck:w3,MessageSquareCheckIcon:w3,MessageSquareCode:v3,MessageSquareCodeIcon:v3,MessageSquareDashed:C3,MessageSquareDashedIcon:C3,MessageSquareDiff:L3,MessageSquareDiffIcon:L3,MessageSquareDot:S3,MessageSquareDotIcon:S3,MessageSquareHeart:I3,MessageSquareHeartIcon:I3,MessageSquareIcon:us,MessageSquareLock:_3,MessageSquareLockIcon:_3,MessageSquareMore:A3,MessageSquareMoreIcon:A3,MessageSquareOff:B3,MessageSquareOffIcon:B3,MessageSquarePlus:V3,MessageSquarePlusIcon:V3,MessageSquareQuote:z3,MessageSquareQuoteIcon:z3,MessageSquareReply:q3,MessageSquareReplyIcon:q3,MessageSquareShare:P3,MessageSquareShareIcon:P3,MessageSquareText:E3,MessageSquareTextIcon:E3,MessageSquareWarning:D3,MessageSquareWarningIcon:D3,MessageSquareX:T3,MessageSquareXIcon:T3,MessagesSquare:H3,MessagesSquareIcon:H3,Metronome:j3,MetronomeIcon:j3,Mic:F3,Mic2:Uo,Mic2Icon:Uo,MicIcon:F3,MicOff:O3,MicOffIcon:O3,MicVocal:Uo,MicVocalIcon:Uo,Microchip:R3,MicrochipIcon:R3,Microscope:N3,MicroscopeIcon:N3,Microwave:$3,MicrowaveIcon:$3,Milestone:U3,MilestoneIcon:U3,Milk:G3,MilkIcon:G3,MilkOff:W3,MilkOffIcon:W3,Minimize:K3,Minimize2:X3,Minimize2Icon:X3,MinimizeIcon:K3,Minus:Xs,MinusCircle:_n,MinusCircleIcon:_n,MinusIcon:Xs,MinusSquare:ti,MinusSquareIcon:ti,MirrorRectangular:Z3,MirrorRectangularIcon:Z3,MirrorRound:Y3,MirrorRoundIcon:Y3,Monitor:h8,MonitorCheck:Q3,MonitorCheckIcon:Q3,MonitorCloud:J3,MonitorCloudIcon:J3,MonitorCog:e8,MonitorCogIcon:e8,MonitorDot:t8,MonitorDotIcon:t8,MonitorDown:a8,MonitorDownIcon:a8,MonitorIcon:h8,MonitorOff:n8,MonitorOffIcon:n8,MonitorPause:o8,MonitorPauseIcon:o8,MonitorPlay:r8,MonitorPlayIcon:r8,MonitorSmartphone:i8,MonitorSmartphoneIcon:i8,MonitorSpeaker:s8,MonitorSpeakerIcon:s8,MonitorStop:l8,MonitorStopIcon:l8,MonitorUp:c8,MonitorUpIcon:c8,MonitorX:d8,MonitorXIcon:d8,Moon:p8,MoonIcon:p8,MoonStar:u8,MoonStarIcon:u8,MoreHorizontal:ua,MoreHorizontalIcon:ua,MoreVertical:Zn,MoreVerticalIcon:Zn,Motorbike:y8,MotorbikeIcon:y8,Mountain:k8,MountainIcon:k8,MountainSnow:f8,MountainSnowIcon:f8,Mouse:L8,MouseIcon:L8,MouseLeft:m8,MouseLeftIcon:m8,MouseOff:g8,MouseOffIcon:g8,MousePointer:v8,MousePointer2:M8,MousePointer2Icon:M8,MousePointer2Off:b8,MousePointer2OffIcon:b8,MousePointerBan:x8,MousePointerBanIcon:x8,MousePointerClick:w8,MousePointerClickIcon:w8,MousePointerIcon:v8,MousePointerSquareDashed:Ur,MousePointerSquareDashedIcon:Ur,MouseRight:C8,MouseRightIcon:C8,Move:H8,Move3D:Wo,Move3DIcon:Wo,Move3d:Wo,Move3dIcon:Wo,MoveDiagonal:I8,MoveDiagonal2:S8,MoveDiagonal2Icon:S8,MoveDiagonalIcon:I8,MoveDown:B8,MoveDownIcon:B8,MoveDownLeft:_8,MoveDownLeftIcon:_8,MoveDownRight:A8,MoveDownRightIcon:A8,MoveHorizontal:V8,MoveHorizontalIcon:V8,MoveIcon:H8,MoveLeft:z8,MoveLeftIcon:z8,MoveRight:P8,MoveRightIcon:P8,MoveUp:E8,MoveUpIcon:E8,MoveUpLeft:q8,MoveUpLeftIcon:q8,MoveUpRight:D8,MoveUpRightIcon:D8,MoveVertical:T8,MoveVerticalIcon:T8,Music:R8,Music2:j8,Music2Icon:j8,Music3:O8,Music3Icon:O8,Music4:F8,Music4Icon:F8,MusicIcon:R8,Navigation:W8,Navigation2:$8,Navigation2Icon:$8,Navigation2Off:N8,Navigation2OffIcon:N8,NavigationIcon:W8,NavigationOff:U8,NavigationOffIcon:U8,Network:G8,NetworkIcon:G8,Newspaper:K8,NewspaperIcon:K8,Nfc:X8,NfcIcon:X8,NonBinary:Z8,NonBinaryIcon:Z8,Notebook:e6,NotebookIcon:e6,NotebookPen:Q8,NotebookPenIcon:Q8,NotebookTabs:Y8,NotebookTabsIcon:Y8,NotebookText:J8,NotebookTextIcon:J8,NotepadText:a6,NotepadTextDashed:t6,NotepadTextDashedIcon:t6,NotepadTextIcon:a6,Nut:o6,NutIcon:o6,NutOff:n6,NutOffIcon:n6,Octagon:i6,OctagonAlert:Go,OctagonAlertIcon:Go,OctagonIcon:i6,OctagonMinus:r6,OctagonMinusIcon:r6,OctagonPause:Ko,OctagonPauseIcon:Ko,OctagonX:Xo,OctagonXIcon:Xo,Omega:s6,OmegaIcon:s6,Option:l6,OptionIcon:l6,Orbit:c6,OrbitIcon:c6,Origami:d6,OrigamiIcon:d6,Outdent:zt,OutdentIcon:zt,Package:g6,Package2:h6,Package2Icon:h6,PackageCheck:p6,PackageCheckIcon:p6,PackageIcon:g6,PackageMinus:u6,PackageMinusIcon:u6,PackageOpen:y6,PackageOpenIcon:y6,PackagePlus:f6,PackagePlusIcon:f6,PackageSearch:k6,PackageSearchIcon:k6,PackageX:m6,PackageXIcon:m6,PaintBucket:b6,PaintBucketIcon:b6,PaintRoller:M6,PaintRollerIcon:M6,Paintbrush:x6,Paintbrush2:Zo,Paintbrush2Icon:Zo,PaintbrushIcon:x6,PaintbrushVertical:Zo,PaintbrushVerticalIcon:Zo,Palette:w6,PaletteIcon:w6,Palmtree:Ai,PalmtreeIcon:Ai,Panda:v6,PandaIcon:v6,PanelBottom:S6,PanelBottomClose:C6,PanelBottomCloseIcon:C6,PanelBottomDashed:Yo,PanelBottomDashedIcon:Yo,PanelBottomIcon:S6,PanelBottomInactive:Yo,PanelBottomInactiveIcon:Yo,PanelBottomOpen:L6,PanelBottomOpenIcon:L6,PanelLeft:tr,PanelLeftClose:Jo,PanelLeftCloseIcon:Jo,PanelLeftDashed:Qo,PanelLeftDashedIcon:Qo,PanelLeftIcon:tr,PanelLeftInactive:Qo,PanelLeftInactiveIcon:Qo,PanelLeftOpen:er,PanelLeftOpenIcon:er,PanelLeftRightDashed:I6,PanelLeftRightDashedIcon:I6,PanelRight:B6,PanelRightClose:_6,PanelRightCloseIcon:_6,PanelRightDashed:ar,PanelRightDashedIcon:ar,PanelRightIcon:B6,PanelRightInactive:ar,PanelRightInactiveIcon:ar,PanelRightOpen:A6,PanelRightOpenIcon:A6,PanelTop:P6,PanelTopBottomDashed:V6,PanelTopBottomDashedIcon:V6,PanelTopClose:z6,PanelTopCloseIcon:z6,PanelTopDashed:nr,PanelTopDashedIcon:nr,PanelTopIcon:P6,PanelTopInactive:nr,PanelTopInactiveIcon:nr,PanelTopOpen:q6,PanelTopOpenIcon:q6,PanelsLeftBottom:D6,PanelsLeftBottomIcon:D6,PanelsLeftRight:Wn,PanelsLeftRightIcon:Wn,PanelsRightBottom:E6,PanelsRightBottomIcon:E6,PanelsTopBottom:ur,PanelsTopBottomIcon:ur,PanelsTopLeft:or,PanelsTopLeftIcon:or,Paperclip:T6,PaperclipIcon:T6,Parentheses:H6,ParenthesesIcon:H6,ParkingCircle:Bn,ParkingCircleIcon:Bn,ParkingCircleOff:An,ParkingCircleOffIcon:An,ParkingMeter:j6,ParkingMeterIcon:j6,ParkingSquare:oi,ParkingSquareIcon:oi,ParkingSquareOff:ni,ParkingSquareOffIcon:ni,PartyPopper:O6,PartyPopperIcon:O6,Pause:F6,PauseCircle:Vn,PauseCircleIcon:Vn,PauseIcon:F6,PauseOctagon:Ko,PauseOctagonIcon:Ko,PawPrint:R6,PawPrintIcon:R6,PcCase:N6,PcCaseIcon:N6,Pen:ir,PenBox:Xe,PenBoxIcon:Xe,PenIcon:ir,PenLine:rr,PenLineIcon:rr,PenOff:$6,PenOffIcon:$6,PenSquare:Xe,PenSquareIcon:Xe,PenTool:U6,PenToolIcon:U6,Pencil:sr,PencilIcon:sr,PencilLine:W6,PencilLineIcon:W6,PencilOff:G6,PencilOffIcon:G6,PencilRuler:K6,PencilRulerIcon:K6,Pentagon:X6,PentagonIcon:X6,Percent:Z6,PercentCircle:zn,PercentCircleIcon:zn,PercentDiamond:Kn,PercentDiamondIcon:Kn,PercentIcon:Z6,PercentSquare:ri,PercentSquareIcon:ri,PersonStanding:Y6,PersonStandingIcon:Y6,PhilippinePeso:Q6,PhilippinePesoIcon:Q6,Phone:Zs,PhoneCall:J6,PhoneCallIcon:J6,PhoneForwarded:e7,PhoneForwardedIcon:e7,PhoneIcon:Zs,PhoneIncoming:t7,PhoneIncomingIcon:t7,PhoneMissed:n7,PhoneMissedIcon:n7,PhoneOff:a7,PhoneOffIcon:a7,PhoneOutgoing:o7,PhoneOutgoingIcon:o7,Pi:r7,PiIcon:r7,PiSquare:ii,PiSquareIcon:ii,Piano:i7,PianoIcon:i7,Pickaxe:s7,PickaxeIcon:s7,PictureInPicture:c7,PictureInPicture2:l7,PictureInPicture2Icon:l7,PictureInPictureIcon:c7,PieChart:sn,PieChartIcon:sn,PiggyBank:d7,PiggyBankIcon:d7,Pilcrow:p7,PilcrowIcon:p7,PilcrowLeft:h7,PilcrowLeftIcon:h7,PilcrowRight:u7,PilcrowRightIcon:u7,PilcrowSquare:si,PilcrowSquareIcon:si,Pill:g7,PillBottle:y7,PillBottleIcon:y7,PillIcon:g7,Pin:k7,PinIcon:k7,PinOff:f7,PinOffIcon:f7,Pipette:m7,PipetteIcon:m7,Pizza:b7,PizzaIcon:b7,Plane:Ys,PlaneIcon:Ys,PlaneLanding:M7,PlaneLandingIcon:M7,PlaneTakeoff:x7,PlaneTakeoffIcon:x7,Play:w7,PlayCircle:qn,PlayCircleIcon:qn,PlayIcon:w7,PlaySquare:li,PlaySquareIcon:li,Plug:C7,Plug2:v7,Plug2Icon:v7,PlugIcon:C7,PlugZap:lr,PlugZap2:lr,PlugZap2Icon:lr,PlugZapIcon:lr,Plus:Qs,PlusCircle:Pn,PlusCircleIcon:Pn,PlusIcon:Qs,PlusSquare:ci,PlusSquareIcon:ci,Pocket:S7,PocketIcon:S7,PocketKnife:L7,PocketKnifeIcon:L7,Podcast:I7,PodcastIcon:I7,Pointer:A7,PointerIcon:A7,PointerOff:_7,PointerOffIcon:_7,Popcorn:B7,PopcornIcon:B7,Popsicle:V7,PopsicleIcon:V7,PoundSterling:q7,PoundSterlingIcon:q7,Power:P7,PowerCircle:Dn,PowerCircleIcon:Dn,PowerIcon:P7,PowerOff:z7,PowerOffIcon:z7,PowerSquare:di,PowerSquareIcon:di,Presentation:D7,PresentationIcon:D7,Printer:H7,PrinterCheck:E7,PrinterCheckIcon:E7,PrinterIcon:H7,PrinterX:T7,PrinterXIcon:T7,Projector:j7,ProjectorIcon:j7,Proportions:R7,ProportionsIcon:R7,Puzzle:O7,PuzzleIcon:O7,Pyramid:F7,PyramidIcon:F7,QrCode:N7,QrCodeIcon:N7,Quote:$7,QuoteIcon:$7,Rabbit:W7,RabbitIcon:W7,Radar:U7,RadarIcon:U7,Radiation:K7,RadiationIcon:K7,Radical:G7,RadicalIcon:G7,Radio:Y7,RadioIcon:Y7,RadioReceiver:X7,RadioReceiverIcon:X7,RadioTower:Z7,RadioTowerIcon:Z7,Radius:Q7,RadiusIcon:Q7,RailSymbol:J7,RailSymbolIcon:J7,Rainbow:eb,RainbowIcon:eb,Rat:tb,RatIcon:tb,Ratio:ab,RatioIcon:ab,Receipt:ub,ReceiptCent:nb,ReceiptCentIcon:nb,ReceiptEuro:ob,ReceiptEuroIcon:ob,ReceiptIcon:ub,ReceiptIndianRupee:rb,ReceiptIndianRupeeIcon:rb,ReceiptJapaneseYen:ib,ReceiptJapaneseYenIcon:ib,ReceiptPoundSterling:sb,ReceiptPoundSterlingIcon:sb,ReceiptRussianRuble:lb,ReceiptRussianRubleIcon:lb,ReceiptSwissFranc:cb,ReceiptSwissFrancIcon:cb,ReceiptText:db,ReceiptTextIcon:db,ReceiptTurkishLira:hb,ReceiptTurkishLiraIcon:hb,RectangleCircle:pb,RectangleCircleIcon:pb,RectangleEllipsis:cr,RectangleEllipsisIcon:cr,RectangleGoggles:yb,RectangleGogglesIcon:yb,RectangleHorizontal:fb,RectangleHorizontalIcon:fb,RectangleVertical:kb,RectangleVerticalIcon:kb,Recycle:mb,RecycleIcon:mb,Redo:bb,Redo2:gb,Redo2Icon:gb,RedoDot:Mb,RedoDotIcon:Mb,RedoIcon:bb,RefreshCcw:wb,RefreshCcwDot:xb,RefreshCcwDotIcon:xb,RefreshCcwIcon:wb,RefreshCw:ps,RefreshCwIcon:ps,RefreshCwOff:vb,RefreshCwOffIcon:vb,Refrigerator:Lb,RefrigeratorIcon:Lb,Regex:Cb,RegexIcon:Cb,RemoveFormatting:Sb,RemoveFormattingIcon:Sb,Repeat:_b,Repeat1:Ib,Repeat1Icon:Ib,Repeat2:Bb,Repeat2Icon:Bb,RepeatIcon:_b,Replace:Vb,ReplaceAll:Ab,ReplaceAllIcon:Ab,ReplaceIcon:Vb,Reply:qb,ReplyAll:zb,ReplyAllIcon:zb,ReplyIcon:qb,Rewind:Db,RewindIcon:Db,Ribbon:Pb,RibbonIcon:Pb,Rocket:Eb,RocketIcon:Eb,RockingChair:Tb,RockingChairIcon:Tb,RollerCoaster:Hb,RollerCoasterIcon:Hb,Rose:jb,RoseIcon:jb,Rotate3D:dr,Rotate3DIcon:dr,Rotate3d:dr,Rotate3dIcon:dr,RotateCcw:Rb,RotateCcwIcon:Rb,RotateCcwKey:Ob,RotateCcwKeyIcon:Ob,RotateCcwSquare:Fb,RotateCcwSquareIcon:Fb,RotateCw:$b,RotateCwIcon:$b,RotateCwSquare:Nb,RotateCwSquareIcon:Nb,Route:Wb,RouteIcon:Wb,RouteOff:Ub,RouteOffIcon:Ub,Router:Gb,RouterIcon:Gb,Rows:hr,Rows2:hr,Rows2Icon:hr,Rows3:ur,Rows3Icon:ur,Rows4:Kb,Rows4Icon:Kb,RowsIcon:hr,Rss:Xb,RssIcon:Xb,Ruler:Zb,RulerDimensionLine:Yb,RulerDimensionLineIcon:Yb,RulerIcon:Zb,RussianRuble:Qb,RussianRubleIcon:Qb,Sailboat:Jb,SailboatIcon:Jb,Salad:eM,SaladIcon:eM,Sandwich:aM,SandwichIcon:aM,Satellite:nM,SatelliteDish:tM,SatelliteDishIcon:tM,SatelliteIcon:nM,SaudiRiyal:oM,SaudiRiyalIcon:oM,Save:sM,SaveAll:iM,SaveAllIcon:iM,SaveIcon:sM,SaveOff:rM,SaveOffIcon:rM,Scale:lM,Scale3D:pr,Scale3DIcon:pr,Scale3d:pr,Scale3dIcon:pr,ScaleIcon:lM,Scaling:cM,ScalingIcon:cM,Scan:mM,ScanBarcode:dM,ScanBarcodeIcon:dM,ScanEye:hM,ScanEyeIcon:hM,ScanFace:uM,ScanFaceIcon:uM,ScanHeart:pM,ScanHeartIcon:pM,ScanIcon:mM,ScanLine:yM,ScanLineIcon:yM,ScanQrCode:kM,ScanQrCodeIcon:kM,ScanSearch:fM,ScanSearchIcon:fM,ScanText:gM,ScanTextIcon:gM,ScatterChart:cn,ScatterChartIcon:cn,School:bM,School2:zi,School2Icon:zi,SchoolIcon:bM,Scissors:wM,ScissorsIcon:wM,ScissorsLineDashed:MM,ScissorsLineDashedIcon:MM,ScissorsSquare:hi,ScissorsSquareDashedBottom:Pr,ScissorsSquareDashedBottomIcon:Pr,ScissorsSquareIcon:hi,Scooter:xM,ScooterIcon:xM,ScreenShare:CM,ScreenShareIcon:CM,ScreenShareOff:vM,ScreenShareOffIcon:vM,Scroll:SM,ScrollIcon:SM,ScrollText:LM,ScrollTextIcon:LM,Search:yr,SearchAlert:IM,SearchAlertIcon:IM,SearchCheck:AM,SearchCheckIcon:AM,SearchCode:_M,SearchCodeIcon:_M,SearchIcon:yr,SearchSlash:BM,SearchSlashIcon:BM,SearchX:VM,SearchXIcon:VM,Section:zM,SectionIcon:zM,Send:PM,SendHorizonal:fr,SendHorizonalIcon:fr,SendHorizontal:fr,SendHorizontalIcon:fr,SendIcon:PM,SendToBack:qM,SendToBackIcon:qM,SeparatorHorizontal:DM,SeparatorHorizontalIcon:DM,SeparatorVertical:EM,SeparatorVerticalIcon:EM,Server:Js,ServerCog:TM,ServerCogIcon:TM,ServerCrash:HM,ServerCrashIcon:HM,ServerIcon:Js,ServerOff:OM,ServerOffIcon:OM,Settings:FM,Settings2:jM,Settings2Icon:jM,SettingsIcon:FM,Shapes:RM,ShapesIcon:RM,Share:NM,Share2:e1,Share2Icon:e1,ShareIcon:NM,Sheet:$M,SheetIcon:$M,Shell:UM,ShellIcon:UM,ShelvingUnit:WM,ShelvingUnitIcon:WM,Shield:ax,ShieldAlert:GM,ShieldAlertIcon:GM,ShieldBan:KM,ShieldBanIcon:KM,ShieldCheck:XM,ShieldCheckIcon:XM,ShieldClose:mr,ShieldCloseIcon:mr,ShieldEllipsis:ZM,ShieldEllipsisIcon:ZM,ShieldHalf:YM,ShieldHalfIcon:YM,ShieldIcon:ax,ShieldMinus:ex,ShieldMinusIcon:ex,ShieldOff:QM,ShieldOffIcon:QM,ShieldPlus:JM,ShieldPlusIcon:JM,ShieldQuestion:kr,ShieldQuestionIcon:kr,ShieldQuestionMark:kr,ShieldQuestionMarkIcon:kr,ShieldUser:tx,ShieldUserIcon:tx,ShieldX:mr,ShieldXIcon:mr,Ship:ox,ShipIcon:ox,ShipWheel:nx,ShipWheelIcon:nx,Shirt:rx,ShirtIcon:rx,ShoppingBag:ix,ShoppingBagIcon:ix,ShoppingBasket:sx,ShoppingBasketIcon:sx,ShoppingCart:t1,ShoppingCartIcon:t1,Shovel:cx,ShovelIcon:cx,ShowerHead:lx,ShowerHeadIcon:lx,Shredder:dx,ShredderIcon:dx,Shrimp:hx,ShrimpIcon:hx,Shrink:ux,ShrinkIcon:ux,Shrub:px,ShrubIcon:px,Shuffle:yx,ShuffleIcon:yx,Sidebar:tr,SidebarClose:Jo,SidebarCloseIcon:Jo,SidebarIcon:tr,SidebarOpen:er,SidebarOpenIcon:er,Sigma:fx,SigmaIcon:fx,SigmaSquare:ui,SigmaSquareIcon:ui,Signal:Mx,SignalHigh:kx,SignalHighIcon:kx,SignalIcon:Mx,SignalLow:mx,SignalLowIcon:mx,SignalMedium:gx,SignalMediumIcon:gx,SignalZero:bx,SignalZeroIcon:bx,Signature:xx,SignatureIcon:xx,Signpost:vx,SignpostBig:wx,SignpostBigIcon:wx,SignpostIcon:vx,Siren:Cx,SirenIcon:Cx,SkipBack:Sx,SkipBackIcon:Sx,SkipForward:Lx,SkipForwardIcon:Lx,Skull:_x,SkullIcon:_x,Slack:Ix,SlackIcon:Ix,Slash:Ax,SlashIcon:Ax,SlashSquare:pi,SlashSquareIcon:pi,Slice:Bx,SliceIcon:Bx,Sliders:gr,SlidersHorizontal:a1,SlidersHorizontalIcon:a1,SlidersIcon:gr,SlidersVertical:gr,SlidersVerticalIcon:gr,Smartphone:qx,SmartphoneCharging:Vx,SmartphoneChargingIcon:Vx,SmartphoneIcon:qx,SmartphoneNfc:zx,SmartphoneNfcIcon:zx,Smile:Dx,SmileIcon:Dx,SmilePlus:Px,SmilePlusIcon:Px,Snail:Ex,SnailIcon:Ex,Snowflake:Tx,SnowflakeIcon:Tx,SoapDispenserDroplet:Hx,SoapDispenserDropletIcon:Hx,Sofa:jx,SofaIcon:jx,SolarPanel:Ox,SolarPanelIcon:Ox,SortAsc:Oa,SortAscIcon:Oa,SortDesc:Ta,SortDescIcon:Ta,Soup:Fx,SoupIcon:Fx,Space:Rx,SpaceIcon:Rx,Spade:Nx,SpadeIcon:Nx,Sparkle:$x,SparkleIcon:$x,Sparkles:br,SparklesIcon:br,Speaker:Ux,SpeakerIcon:Ux,Speech:Wx,SpeechIcon:Wx,SpellCheck:Xx,SpellCheck2:Gx,SpellCheck2Icon:Gx,SpellCheckIcon:Xx,Spline:Zx,SplineIcon:Zx,SplinePointer:Kx,SplinePointerIcon:Kx,Split:Yx,SplitIcon:Yx,SplitSquareHorizontal:yi,SplitSquareHorizontalIcon:yi,SplitSquareVertical:fi,SplitSquareVerticalIcon:fi,Spool:Qx,SpoolIcon:Qx,Spotlight:Jx,SpotlightIcon:Jx,SprayCan:e9,SprayCanIcon:e9,Sprout:t9,SproutIcon:t9,Square:f9,SquareActivity:Mr,SquareActivityIcon:Mr,SquareArrowDown:vr,SquareArrowDownIcon:vr,SquareArrowDownLeft:xr,SquareArrowDownLeftIcon:xr,SquareArrowDownRight:wr,SquareArrowDownRightIcon:wr,SquareArrowLeft:Cr,SquareArrowLeftIcon:Cr,SquareArrowOutDownLeft:Lr,SquareArrowOutDownLeftIcon:Lr,SquareArrowOutDownRight:Sr,SquareArrowOutDownRightIcon:Sr,SquareArrowOutUpLeft:Ir,SquareArrowOutUpLeftIcon:Ir,SquareArrowOutUpRight:_r,SquareArrowOutUpRightIcon:_r,SquareArrowRight:Ar,SquareArrowRightEnter:a9,SquareArrowRightEnterIcon:a9,SquareArrowRightExit:n9,SquareArrowRightExitIcon:n9,SquareArrowRightIcon:Ar,SquareArrowUp:zr,SquareArrowUpIcon:zr,SquareArrowUpLeft:Vr,SquareArrowUpLeftIcon:Vr,SquareArrowUpRight:Br,SquareArrowUpRightIcon:Br,SquareAsterisk:qr,SquareAsteriskIcon:qr,SquareBottomDashedScissors:Pr,SquareBottomDashedScissorsIcon:Pr,SquareCenterlineDashedHorizontal:Dr,SquareCenterlineDashedHorizontalIcon:Dr,SquareCenterlineDashedVertical:Er,SquareCenterlineDashedVerticalIcon:Er,SquareChartGantt:Pt,SquareChartGanttIcon:Pt,SquareCheck:Hr,SquareCheckBig:Tr,SquareCheckBigIcon:Tr,SquareCheckIcon:Hr,SquareChevronDown:jr,SquareChevronDownIcon:jr,SquareChevronLeft:Or,SquareChevronLeftIcon:Or,SquareChevronRight:Fr,SquareChevronRightIcon:Fr,SquareChevronUp:Rr,SquareChevronUpIcon:Rr,SquareCode:Nr,SquareCodeIcon:Nr,SquareDashed:Wr,SquareDashedBottom:r9,SquareDashedBottomCode:o9,SquareDashedBottomCodeIcon:o9,SquareDashedBottomIcon:r9,SquareDashedIcon:Wr,SquareDashedKanban:$r,SquareDashedKanbanIcon:$r,SquareDashedMousePointer:Ur,SquareDashedMousePointerIcon:Ur,SquareDashedTopSolid:i9,SquareDashedTopSolidIcon:i9,SquareDivide:Kr,SquareDivideIcon:Kr,SquareDot:Gr,SquareDotIcon:Gr,SquareEqual:Xr,SquareEqualIcon:Xr,SquareFunction:Zr,SquareFunctionIcon:Zr,SquareGanttChart:Pt,SquareGanttChartIcon:Pt,SquareIcon:f9,SquareKanban:Yr,SquareKanbanIcon:Yr,SquareLibrary:Qr,SquareLibraryIcon:Qr,SquareM:Jr,SquareMIcon:Jr,SquareMenu:ei,SquareMenuIcon:ei,SquareMinus:ti,SquareMinusIcon:ti,SquareMousePointer:ai,SquareMousePointerIcon:ai,SquareParking:oi,SquareParkingIcon:oi,SquareParkingOff:ni,SquareParkingOffIcon:ni,SquarePause:s9,SquarePauseIcon:s9,SquarePen:Xe,SquarePenIcon:Xe,SquarePercent:ri,SquarePercentIcon:ri,SquarePi:ii,SquarePiIcon:ii,SquarePilcrow:si,SquarePilcrowIcon:si,SquarePlay:li,SquarePlayIcon:li,SquarePlus:ci,SquarePlusIcon:ci,SquarePower:di,SquarePowerIcon:di,SquareRadical:c9,SquareRadicalIcon:c9,SquareRoundCorner:l9,SquareRoundCornerIcon:l9,SquareScissors:hi,SquareScissorsIcon:hi,SquareSigma:ui,SquareSigmaIcon:ui,SquareSlash:pi,SquareSlashIcon:pi,SquareSplitHorizontal:yi,SquareSplitHorizontalIcon:yi,SquareSplitVertical:fi,SquareSplitVerticalIcon:fi,SquareSquare:d9,SquareSquareIcon:d9,SquareStack:h9,SquareStackIcon:h9,SquareStar:p9,SquareStarIcon:p9,SquareStop:u9,SquareStopIcon:u9,SquareTerminal:ki,SquareTerminalIcon:ki,SquareUser:bi,SquareUserIcon:bi,SquareUserRound:mi,SquareUserRoundIcon:mi,SquareX:gi,SquareXIcon:gi,SquaresExclude:y9,SquaresExcludeIcon:y9,SquaresIntersect:k9,SquaresIntersectIcon:k9,SquaresSubtract:m9,SquaresSubtractIcon:m9,SquaresUnite:g9,SquaresUniteIcon:g9,Squircle:M9,SquircleDashed:b9,SquircleDashedIcon:b9,SquircleIcon:M9,Squirrel:x9,SquirrelIcon:x9,Stamp:w9,StampIcon:w9,Star:S9,StarHalf:v9,StarHalfIcon:v9,StarIcon:S9,StarOff:C9,StarOffIcon:C9,Stars:br,StarsIcon:br,StepBack:L9,StepBackIcon:L9,StepForward:I9,StepForwardIcon:I9,Stethoscope:_9,StethoscopeIcon:_9,Sticker:A9,StickerIcon:A9,StickyNote:B9,StickyNoteIcon:B9,Stone:V9,StoneIcon:V9,StopCircle:Tn,StopCircleIcon:Tn,Store:z9,StoreIcon:z9,StretchHorizontal:P9,StretchHorizontalIcon:P9,StretchVertical:q9,StretchVerticalIcon:q9,Strikethrough:D9,StrikethroughIcon:D9,Subscript:E9,SubscriptIcon:E9,Subtitles:Xa,SubtitlesIcon:Xa,Sun:F9,SunDim:T9,SunDimIcon:T9,SunIcon:F9,SunMedium:H9,SunMediumIcon:H9,SunMoon:O9,SunMoonIcon:O9,SunSnow:j9,SunSnowIcon:j9,Sunrise:R9,SunriseIcon:R9,Sunset:N9,SunsetIcon:N9,Superscript:$9,SuperscriptIcon:$9,SwatchBook:U9,SwatchBookIcon:U9,SwissFranc:W9,SwissFrancIcon:W9,SwitchCamera:K9,SwitchCameraIcon:K9,Sword:G9,SwordIcon:G9,Swords:X9,SwordsIcon:X9,Syringe:Z9,SyringeIcon:Z9,Table:rw,Table2:Y9,Table2Icon:Y9,TableCellsMerge:Q9,TableCellsMergeIcon:Q9,TableCellsSplit:J9,TableCellsSplitIcon:J9,TableColumnsSplit:ew,TableColumnsSplitIcon:ew,TableConfig:At,TableConfigIcon:At,TableIcon:rw,TableOfContents:tw,TableOfContentsIcon:tw,TableProperties:aw,TablePropertiesIcon:aw,TableRowsSplit:nw,TableRowsSplitIcon:nw,Tablet:ow,TabletIcon:ow,TabletSmartphone:iw,TabletSmartphoneIcon:iw,Tablets:sw,TabletsIcon:sw,Tag:lw,TagIcon:lw,Tags:cw,TagsIcon:cw,Tally1:dw,Tally1Icon:dw,Tally2:hw,Tally2Icon:hw,Tally3:uw,Tally3Icon:uw,Tally4:pw,Tally4Icon:pw,Tally5:yw,Tally5Icon:yw,Tangent:fw,TangentIcon:fw,Target:kw,TargetIcon:kw,Telescope:mw,TelescopeIcon:mw,Tent:bw,TentIcon:bw,TentTree:gw,TentTreeIcon:gw,Terminal:Mw,TerminalIcon:Mw,TerminalSquare:ki,TerminalSquareIcon:ki,TestTube:xw,TestTube2:Mi,TestTube2Icon:Mi,TestTubeDiagonal:Mi,TestTubeDiagonalIcon:Mi,TestTubeIcon:xw,TestTubes:ww,TestTubesIcon:ww,Text:Dt,TextAlignCenter:vi,TextAlignCenterIcon:vi,TextAlignEnd:xi,TextAlignEndIcon:xi,TextAlignJustify:wi,TextAlignJustifyIcon:wi,TextAlignStart:Dt,TextAlignStartIcon:Dt,TextCursor:Cw,TextCursorIcon:Cw,TextCursorInput:vw,TextCursorInputIcon:vw,TextIcon:Dt,TextInitial:Ci,TextInitialIcon:Ci,TextQuote:Sw,TextQuoteIcon:Sw,TextSearch:Lw,TextSearchIcon:Lw,TextSelect:Si,TextSelectIcon:Si,TextSelection:Si,TextSelectionIcon:Si,TextWrap:Li,TextWrapIcon:Li,Theater:Iw,TheaterIcon:Iw,Thermometer:Bw,ThermometerIcon:Bw,ThermometerSnowflake:_w,ThermometerSnowflakeIcon:_w,ThermometerSun:Aw,ThermometerSunIcon:Aw,ThumbsDown:zw,ThumbsDownIcon:zw,ThumbsUp:Vw,ThumbsUpIcon:Vw,Ticket:Ow,TicketCheck:qw,TicketCheckIcon:qw,TicketIcon:Ow,TicketMinus:Pw,TicketMinusIcon:Pw,TicketPercent:Dw,TicketPercentIcon:Dw,TicketPlus:Ew,TicketPlusIcon:Ew,TicketSlash:Tw,TicketSlashIcon:Tw,TicketX:Hw,TicketXIcon:Hw,Tickets:Fw,TicketsIcon:Fw,TicketsPlane:jw,TicketsPlaneIcon:jw,Timer:$w,TimerIcon:$w,TimerOff:Rw,TimerOffIcon:Rw,TimerReset:Nw,TimerResetIcon:Nw,ToggleLeft:n1,ToggleLeftIcon:n1,ToggleRight:Uw,ToggleRightIcon:Uw,Toilet:Ww,ToiletIcon:Ww,ToolCase:Gw,ToolCaseIcon:Gw,Toolbox:Kw,ToolboxIcon:Kw,Tornado:Xw,TornadoIcon:Xw,Torus:Zw,TorusIcon:Zw,Touchpad:Qw,TouchpadIcon:Qw,TouchpadOff:Yw,TouchpadOffIcon:Yw,TowelRack:Jw,TowelRackIcon:Jw,TowerControl:ev,TowerControlIcon:ev,ToyBrick:tv,ToyBrickIcon:tv,Tractor:av,TractorIcon:av,TrafficCone:nv,TrafficConeIcon:nv,Train:Ii,TrainFront:sv,TrainFrontIcon:sv,TrainFrontTunnel:ov,TrainFrontTunnelIcon:ov,TrainIcon:Ii,TrainTrack:rv,TrainTrackIcon:rv,TramFront:Ii,TramFrontIcon:Ii,Transgender:iv,TransgenderIcon:iv,Trash:lv,Trash2:_i,Trash2Icon:_i,TrashIcon:lv,TreeDeciduous:cv,TreeDeciduousIcon:cv,TreePalm:Ai,TreePalmIcon:Ai,TreePine:dv,TreePineIcon:dv,Trees:hv,TreesIcon:hv,Trello:uv,TrelloIcon:uv,TrendingDown:pv,TrendingDownIcon:pv,TrendingUp:fv,TrendingUpDown:yv,TrendingUpDownIcon:yv,TrendingUpIcon:fv,Triangle:bv,TriangleAlert:Bi,TriangleAlertIcon:Bi,TriangleDashed:kv,TriangleDashedIcon:kv,TriangleIcon:bv,TriangleRight:gv,TriangleRightIcon:gv,Trophy:mv,TrophyIcon:mv,Truck:xv,TruckElectric:Mv,TruckElectricIcon:Mv,TruckIcon:xv,TurkishLira:wv,TurkishLiraIcon:wv,Turntable:vv,TurntableIcon:vv,Turtle:Cv,TurtleIcon:Cv,Tv:Sv,Tv2:Vi,Tv2Icon:Vi,TvIcon:Sv,TvMinimal:Vi,TvMinimalIcon:Vi,TvMinimalPlay:Lv,TvMinimalPlayIcon:Lv,Twitch:Iv,TwitchIcon:Iv,Twitter:Av,TwitterIcon:Av,Type:Bv,TypeIcon:Bv,TypeOutline:_v,TypeOutlineIcon:_v,Umbrella:zv,UmbrellaIcon:zv,UmbrellaOff:Vv,UmbrellaOffIcon:Vv,Underline:qv,UnderlineIcon:qv,Undo:Dv,Undo2:Pv,Undo2Icon:Pv,UndoDot:Ev,UndoDotIcon:Ev,UndoIcon:Dv,UnfoldHorizontal:Tv,UnfoldHorizontalIcon:Tv,UnfoldVertical:Hv,UnfoldVerticalIcon:Hv,Ungroup:jv,UngroupIcon:jv,University:zi,UniversityIcon:zi,Unlink:Fv,Unlink2:Ov,Unlink2Icon:Ov,UnlinkIcon:Fv,Unlock:Fo,UnlockIcon:Fo,UnlockKeyhole:Oo,UnlockKeyholeIcon:Oo,Unplug:Rv,UnplugIcon:Rv,Upload:Nv,UploadCloud:ha,UploadCloudIcon:ha,UploadIcon:Nv,Usb:$v,UsbIcon:$v,User:o1,User2:Hi,User2Icon:Hi,UserCheck:Uv,UserCheck2:qi,UserCheck2Icon:qi,UserCheckIcon:Uv,UserCircle:jn,UserCircle2:Hn,UserCircle2Icon:Hn,UserCircleIcon:jn,UserCog:Wv,UserCog2:Pi,UserCog2Icon:Pi,UserCogIcon:Wv,UserIcon:o1,UserKey:Gv,UserKeyIcon:Gv,UserLock:Kv,UserLockIcon:Kv,UserMinus:Xv,UserMinus2:Di,UserMinus2Icon:Di,UserMinusIcon:Xv,UserPen:Zv,UserPenIcon:Zv,UserPlus:Yv,UserPlus2:Ei,UserPlus2Icon:Ei,UserPlusIcon:Yv,UserRound:Hi,UserRoundCheck:qi,UserRoundCheckIcon:qi,UserRoundCog:Pi,UserRoundCogIcon:Pi,UserRoundIcon:Hi,UserRoundKey:Qv,UserRoundKeyIcon:Qv,UserRoundMinus:Di,UserRoundMinusIcon:Di,UserRoundPen:Jv,UserRoundPenIcon:Jv,UserRoundPlus:Ei,UserRoundPlusIcon:Ei,UserRoundSearch:eC,UserRoundSearchIcon:eC,UserRoundX:Ti,UserRoundXIcon:Ti,UserSearch:aC,UserSearchIcon:aC,UserSquare:bi,UserSquare2:mi,UserSquare2Icon:mi,UserSquareIcon:bi,UserStar:tC,UserStarIcon:tC,UserX:nC,UserX2:Ti,UserX2Icon:Ti,UserXIcon:nC,Users:oC,Users2:ji,Users2Icon:ji,UsersIcon:oC,UsersRound:ji,UsersRoundIcon:ji,Utensils:Fi,UtensilsCrossed:Oi,UtensilsCrossedIcon:Oi,UtensilsIcon:Fi,UtilityPole:rC,UtilityPoleIcon:rC,Van:iC,VanIcon:iC,Variable:lC,VariableIcon:lC,Vault:sC,VaultIcon:sC,VectorSquare:cC,VectorSquareIcon:cC,Vegan:dC,VeganIcon:dC,VenetianMask:hC,VenetianMaskIcon:hC,Venus:uC,VenusAndMars:pC,VenusAndMarsIcon:pC,VenusIcon:uC,Verified:Na,VerifiedIcon:Na,Vibrate:fC,VibrateIcon:fC,VibrateOff:yC,VibrateOffIcon:yC,Video:mC,VideoIcon:mC,VideoOff:kC,VideoOffIcon:kC,Videotape:gC,VideotapeIcon:gC,View:bC,ViewIcon:bC,Voicemail:MC,VoicemailIcon:MC,Volleyball:vC,VolleyballIcon:vC,Volume:LC,Volume1:xC,Volume1Icon:xC,Volume2:wC,Volume2Icon:wC,VolumeIcon:LC,VolumeOff:CC,VolumeOffIcon:CC,VolumeX:SC,VolumeXIcon:SC,Vote:IC,VoteIcon:IC,Wallet:AC,Wallet2:Ri,Wallet2Icon:Ri,WalletCards:_C,WalletCardsIcon:_C,WalletIcon:AC,WalletMinimal:Ri,WalletMinimalIcon:Ri,Wallpaper:BC,WallpaperIcon:BC,Wand:VC,Wand2:Ni,Wand2Icon:Ni,WandIcon:VC,WandSparkles:Ni,WandSparklesIcon:Ni,Warehouse:zC,WarehouseIcon:zC,WashingMachine:qC,WashingMachineIcon:qC,Watch:PC,WatchIcon:PC,Waves:HC,WavesArrowDown:DC,WavesArrowDownIcon:DC,WavesArrowUp:EC,WavesArrowUpIcon:EC,WavesIcon:HC,WavesLadder:TC,WavesLadderIcon:TC,Waypoints:jC,WaypointsIcon:jC,Webcam:OC,WebcamIcon:OC,Webhook:RC,WebhookIcon:RC,WebhookOff:FC,WebhookOffIcon:FC,Weight:$C,WeightIcon:$C,WeightTilde:NC,WeightTildeIcon:NC,Wheat:WC,WheatIcon:WC,WheatOff:UC,WheatOffIcon:UC,WholeWord:GC,WholeWordIcon:GC,Wifi:tL,WifiCog:KC,WifiCogIcon:KC,WifiHigh:XC,WifiHighIcon:XC,WifiIcon:tL,WifiLow:YC,WifiLowIcon:YC,WifiOff:ZC,WifiOffIcon:ZC,WifiPen:QC,WifiPenIcon:QC,WifiSync:JC,WifiSyncIcon:JC,WifiZero:eL,WifiZeroIcon:eL,Wind:aL,WindArrowDown:nL,WindArrowDownIcon:nL,WindIcon:aL,Wine:oL,WineIcon:oL,WineOff:rL,WineOffIcon:rL,Workflow:iL,WorkflowIcon:iL,Worm:sL,WormIcon:sL,WrapText:Li,WrapTextIcon:Li,Wrench:lL,WrenchIcon:lL,X:it,XCircle:On,XCircleIcon:On,XIcon:it,XLineTop:cL,XLineTopIcon:cL,XOctagon:Xo,XOctagonIcon:Xo,XSquare:gi,XSquareIcon:gi,Youtube:dL,YoutubeIcon:dL,Zap:pL,ZapIcon:pL,ZapOff:hL,ZapOffIcon:hL,ZoomIn:uL,ZoomInIcon:uL,ZoomOut:yL,ZoomOutIcon:yL,createLucideIcon:l,icons:LP},Symbol.toStringTag,{value:"Module"})),SP=["aria-busy"],IP={key:0,class:"mb-1 h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},_P=["for"],AP={key:0,class:"ml-1 text-destructive"},BP={class:"relative"},VP={key:0,class:"flex items-center text-gray-500 gap-2"},zP=["id","placeholder","disabled","readonly","value"],qP={key:1,class:"h-6 w-6 animate-spin text-gray-500",viewBox:"0 0 24 24",fill:"none"},PP=["disabled"],DP={class:"overflow-y-auto overflow-x-hidden",style:{"max-height":"350px"}},EP=["onMouseenter","onClick"],TP={key:0},HP={class:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400"},jP={key:0},OP={key:1},FP={key:2},RP={key:1,class:"mt-1 text-xs text-red-600"},qS=t.defineComponent({name:"DCodeAutoComplete",inheritAttrs:!1,__name:"DCodeAutoComplete",props:{modelValue:{},apiModule:{},apiAction:{},apiOptions:{},autoFetchOnOpen:{type:Boolean,default:!0},autoFetchOnMount:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},error:{default:null},errorMessage:{default:null},itemTitle:{type:[String,Function],default:"name"},itemValue:{type:[String,Function],default:"id"},returnObject:{type:Boolean,default:!1},endpoint:{},apiParams:{default:()=>({})},fetchItems:{},icon:{}},emits:["update:modelValue"],setup(a,{emit:e}){const n=a,o=e,r=t.useAttrs(),i=t.computed(()=>r.label??void 0),s=O=>{const ae=r[O];return ae===""||ae===!0||ae==="true"||ae===1||ae==="1"},c=t.ref(!1),d=t.computed(()=>n.itemTitle||r["item-title"]||r.itemTitle||"name"),h=t.computed(()=>n.itemValue||r["item-value"]||r.itemValue||"id"),u=t.computed(()=>n.disabled),p=t.computed(()=>s("required")),y=t.computed(()=>s("readonly")),f=t.computed(()=>n.returnObject||s("return-object")||s("returnObject")),k=t.computed(()=>p.value||s("aria-required")),m=t.computed(()=>n.error||n.errorMessage||r["error-message"]),g=t.computed(()=>r.placeholder??""),v=t.computed(()=>{const O=r.minChars??r["min-chars"];if(O==null||O==="")return 0;const ae=typeof O=="number"?O:Number.parseInt(String(O),10);return Number.isFinite(ae)&&ae>0?ae:0}),L=t.computed(()=>{const O=r.rules;return Array.isArray(O)?O:[]}),w=t.computed(()=>{const O=r.id||r.label;return O?`app-autocomplete-${O}-${Math.random().toString(36).slice(2,7)}`:void 0}),M=t.ref(n.modelValue),C=t.ref([]),S=t.ref(!1),b=t.ref(!1),x=t.computed(()=>r.items),I=t.computed(()=>{const O=D.value;return O.apiModule&&O.apiAction||O.apiUrl||n.fetchItems?C.value:x.value??[]}),V=t.computed(()=>!!r.loading),B=t.computed(()=>V.value||S.value),A=t.computed(()=>{const{label:O,items:ae,loading:he,rules:_e,"item-title":Pe,"item-value":K,itemTitle:te,itemValue:ne,minChars:ye,"min-chars":Ve,clearable:ra,required:We,"aria-required":tq,disabled:yS,readonly:aq,visible:fS,"return-object":nq,returnObject:c_,class:oq,"fetch-items":rq,fetchItems:d_,error:iq,errorMessage:sq,"error-message":h_,...u_}=r||{};return u_}),P=()=>{if(n.apiOptions)return typeof n.apiOptions=="function"?n.apiOptions():n.apiOptions},D=t.computed(()=>{const O=n.endpoint||{};return{apiModule:n.apiModule||O.apiModule,apiAction:n.apiAction||O.apiAction,apiUrl:O.apiUrl,apiMethod:O.apiMethod||"GET"}}),U=t.ref(null),T=t.ref(null),H=t.ref(null),{floatingStyles:N}=Q1(T,H,{placement:"bottom-start",whileElementsMounted:K1,middleware:[X1(4),Ds(),Z1(),Y1({apply({rects:O,elements:ae,availableHeight:he}){Object.assign(ae.floating.style,{width:`${O.reference.width}px`,maxHeight:`${he}px`})}})]}),Q=t.ref(!1),j=t.ref(""),F=t.ref(-1),R=t.ref(null),Z=t.computed(()=>!v.value||(j.value||"").trim().length>=v.value?"":`Ketik minimal ${v.value} karakter`),J=O=>{if(O==null)return"";if(typeof O=="string"||typeof O=="number")return String(O);const ae=d.value;return typeof ae=="function"?ae(O):(O==null?void 0:O[ae])??(O==null?void 0:O.name)??(O==null?void 0:O.nama)??(O==null?void 0:O.label)??(O==null?void 0:O.title)??"-"},re=O=>{if(O==null)return null;if(typeof O=="string"||typeof O=="number")return O;const ae=h.value;return typeof ae=="function"?ae(O):(O==null?void 0:O[ae])??(O==null?void 0:O.id)??(O==null?void 0:O.value)??(O==null?void 0:O.code)??null},de=t.computed(()=>{const O=M.value;if(O==null||O==="")return"";if(Array.isArray(O))return O.length?O.map(_e=>{if(f.value&&typeof _e=="object"||typeof _e=="object")return J(_e);const Pe=I.value.find(K=>re(K)==_e);return Pe?J(Pe):String(_e)}).join(", "):"";if(typeof O=="object")return J(O);const ae=I.value.find(he=>re(he)==O);return ae?J(ae):String(O)}),ue=t.computed(()=>{const O=I.value||[],ae=(j.value||"").trim().toLowerCase(),he=(de.value||"").toLowerCase(),_e=!ae||ae===he;let Pe=O;if(_e||(Pe=O.filter(K=>J(K).toLowerCase().includes(ae))),Pe.length>0){const K=te=>{const ne=re(te);return Array.isArray(M.value)?M.value.some(ye=>ye==ne):M.value==ne};Pe=[...Pe].sort((te,ne)=>{const ye=K(te),Ve=K(ne);return ye&&!Ve?-1:!ye&&Ve?1:0})}return Pe}),ve=O=>Array.isArray(O)?O.length===0:O==null||O==="",le=O=>{if(R.value=null,p.value&&ve(O)&&!L.value.length)return R.value="This field is required",!1;for(const ae of L.value){const he=ae(O);if(he===!1)return R.value="Invalid value",!1;if(typeof he=="string")return R.value=he,!1}return!0},G=async()=>{if(u.value||y.value)return;Q.value=!0,F.value=ue.value.length?0:-1,j.value=de.value||"";const O=D.value,ae=O.apiModule&&O.apiAction||O.apiUrl||n.fetchItems;n.autoFetchOnOpen&&ae&&!b.value&&(await Mt(),F.value=ue.value.length?0:-1)},z=()=>{Q.value=!1,F.value=-1,j.value=de.value||""},W=O=>{const ae=f.value?O:re(O);let he=ae;Array.isArray(M.value)&&(he=[ae]),M.value=he,o("update:modelValue",he),R.value=null,le(he),j.value=J(O),z()},ee=()=>{C.value=[],b.value=!1,M.value=Array.isArray(M.value)?[]:null,o("update:modelValue",M.value),j.value="",R.value=null},pe=()=>{c.value=!0,ee(),z(),setTimeout(()=>{c.value=!1},0)},qe=O=>{if(u.value||y.value)return;const ae=O.target.value;j.value=ae,R.value&&(R.value=null),Q.value||(Q.value=!0),F.value=ue.value.length?0:-1;const he=D.value.apiModule&&D.value.apiAction||D.value.apiUrl||n.fetchItems;n.autoFetchOnOpen&&he&&!B.value&&!b.value&&Mt()},ot=O=>{var he;if(u.value||y.value)return;const ae={ArrowDown:()=>{if(O.preventDefault(),!Q.value){G();return}ue.value.length&&(F.value=Math.min(F.value+1,ue.value.length-1))},ArrowUp:()=>{!Q.value||!ue.value.length||(O.preventDefault(),F.value=Math.max(F.value-1,0))},Enter:()=>{if(!Q.value)return;O.preventDefault();const _e=ue.value[F.value];_e&&W(_e)},Escape:()=>{O.preventDefault(),z()},Tab:()=>{z()}};(he=ae[O.key])==null||he.call(ae)},Mt=async()=>{const O=D.value;if(O.apiModule&&O.apiAction||O.apiUrl||n.fetchItems){S.value=!0;try{let he;if(n.fetchItems){const _e=P()||{},Pe={page:1,perPage:100,search:(j.value||"").trim(),..._e,...n.apiParams},K=await n.fetchItems(Pe),te=(K==null?void 0:K.data)??K;he=(te==null?void 0:te.data)??te}else{const Pe=Ke().DCodeApi;if(typeof Pe!="function"){console.error("[DCodeAutoComplete] useApi() must expose DCodeApi()");return}const te={page:1,perPage:100,...P()||{},...n.apiParams};let ne;O.apiUrl?ne=await Pe("","",te,{_url:O.apiUrl,_method:O.apiMethod||"POST"}):ne=await Pe(O.apiModule,O.apiAction,te);const ye=(ne==null?void 0:ne.data)??ne;he=(ye==null?void 0:ye.data)??ye}C.value=Array.isArray(he)?he:[],b.value=!0}catch(he){console.error("[DCodeAutoComplete][fetchOptions] ERROR:",he),R.value=`[DCodeAutoComplete][fetchOptions] ERROR: Error: ${(he==null?void 0:he.message)||(he==null?void 0:he.toString())||"Failed to load options"}`,C.value=[],b.value=!0}finally{S.value=!1}}},oa=O=>{const ae=re(O);return f.value?M.value?Array.isArray(M.value)?M.value.some(he=>re(he)==ae):re(M.value)==ae:!1:Array.isArray(M.value)?M.value.some(he=>he==ae):M.value==ae};t.watch(()=>[P(),D.value,n.apiParams],([O,ae,he],[_e,Pe,K])=>{const te=D.value;if(!(te.apiModule&&te.apiAction||te.apiUrl||n.fetchItems)){ee();return}const ye=JSON.stringify(O??null)===JSON.stringify(_e??null),Ve=JSON.stringify(he??null)===JSON.stringify(K??null);ye&&Ve||(ee(),Ve||Mt())},{deep:!0}),t.watch(()=>n.modelValue,(O,ae)=>{M.value=O,!c.value&&(O==null||O==="")&&ae!=null&&n.apiModule&&n.apiAction&&(C.value=[],b.value=!1),j.value=de.value||""},{immediate:!0});const Aa=D.value;(Aa.apiModule&&Aa.apiAction||Aa.apiUrl||n.fetchItems)&&(n.autoFetchOnMount||!ve(n.modelValue))&&Mt();const $t=O=>{const ae=U.value,he=H.value,_e=O.target;ae&&ae.contains(_e)||he&&he.contains(_e)||Q.value&&z()},D1=t.computed(()=>{const O=n.modelValue;return O==null?!1:typeof O=="string"?O.trim().length>0:Array.isArray(O)?O.length>0:typeof O=="object"?Object.keys(O).length>0:!0}),E1=t.computed(()=>!!n.clearable&&D1.value&&!n.disabled);return t.onMounted(()=>{document.addEventListener("mousedown",$t)}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",$t)}),(O,ae)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"rootEl",ref:U,class:t.normalizeClass(["w-full",t.unref(r).class]),"aria-busy":a.skeleton},[a.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.value?(t.openBlock(),t.createElementBlock("div",IP)):t.createCommentVNode("",!0),ae[6]||(ae[6]=t.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.value?(t.openBlock(),t.createElementBlock("label",{key:0,for:w.value,class:"mb-1 block text-sm font-medium text-gray-900 dark:text-gray-100"},[t.createTextVNode(t.toDisplayString(i.value)+" ",1),k.value?(t.openBlock(),t.createElementBlock("span",AP,"*")):t.createCommentVNode("",!0)],8,_P)):t.createCommentVNode("",!0),t.createElementVNode("div",BP,[t.createElementVNode("div",{ref_key:"reference",ref:T,class:t.normalizeClass(["flex items-center gap-2 rounded-lg border px-3 py-2 bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 h-10 focus-within:ring-1 focus-within:ring-gray-700 dark:focus-within:ring-gray-300",[u.value||y.value?"opacity-60 cursor-not-allowed":"",R.value||m.value?"border-red-500 focus-within:ring-red-500":""]])},[n.icon||O.$slots["prepend-inner"]?(t.openBlock(),t.createElementBlock("div",VP,[t.renderSlot(O.$slots,"prepend-inner",{},()=>[n.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.icon),{key:0,class:"h-4 w-4"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("input",t.mergeProps(A.value,{id:w.value,type:"text",class:["w-full bg-transparent outline-none text-sm text-gray-900 dark:text-gray-100 placeholder:text-gray-400",u.value||y.value?"cursor-not-allowed":"cursor-text"],placeholder:g.value,disabled:u.value,readonly:y.value,value:Q.value?j.value:de.value||j.value,onFocus:ae[0]||(ae[0]=()=>{Q.value||G()}),onClick:ae[1]||(ae[1]=()=>{Q.value||G()}),onInput:qe,onKeydown:ot,onBlur:ae[2]||(ae[2]=()=>le(M.value))}),null,16,zP),B.value?(t.openBlock(),t.createElementBlock("svg",qP,[...ae[7]||(ae[7]=[t.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),t.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):E1.value?(t.openBlock(),t.createElementBlock("button",{key:2,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300",onMousedown:ae[3]||(ae[3]=t.withModifiers(()=>{},["prevent"])),onClick:t.withModifiers(pe,["stop"]),"aria-label":"Clear"}," ✕ ",32)):(t.openBlock(),t.createElementBlock("button",{key:3,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 disabled:opacity-50 disabled:cursor-not-allowed",disabled:u.value||y.value,onClick:ae[4]||(ae[4]=he=>Q.value?z():G()),"aria-label":"Toggle"},[t.createVNode(t.unref(St),{class:t.normalizeClass(["h-4 w-4 transition-transform duration-200 ease-in-out",{"rotate-180":Q.value}])},null,8,["class"])],8,PP))],2),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[Q.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"floating",ref:H,style:t.normalizeStyle(t.unref(N)),class:"z-[50] overflow-hidden rounded-lg border bg-white shadow-lg border-gray-200 dark:border-gray-700 dark:bg-neutral-900"},[t.createElementVNode("div",DP,[ue.value.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(ue.value,(he,_e)=>(t.openBlock(),t.createElementBlock("button",{key:re(he)??_e,type:"button",class:t.normalizeClass(["w-full flex justify-between text-left px-3 py-2 text-sm hover:bg-neutral-100 dark:hover:bg-neutral-800",_e===F.value?"bg-neutral-100 dark:bg-neutral-800":""]),onMouseenter:Pe=>F.value=_e,onMousedown:ae[5]||(ae[5]=t.withModifiers(()=>{},["prevent"])),onClick:Pe=>W(he)},[t.createTextVNode(t.toDisplayString(J(he))+" ",1),oa(he)?(t.openBlock(),t.createElementBlock("span",TP," ✓ ")):t.createCommentVNode("",!0)],42,EP))),128)):t.renderSlot(O.$slots,"no-data",{key:1},()=>[t.createElementVNode("div",HP,[B.value?(t.openBlock(),t.createElementBlock("span",jP,"Loading data…")):Z.value?(t.openBlock(),t.createElementBlock("span",OP,t.toDisplayString(Z.value),1)):(t.openBlock(),t.createElementBlock("span",FP,"No data available"))])])])],4)):t.createCommentVNode("",!0)]))]),R.value||m.value?(t.openBlock(),t.createElementBlock("p",RP,t.toDisplayString(R.value||m.value),1)):t.createCommentVNode("",!0)],64))],10,SP)),[[t.vShow,a.visible]])}}),NP=["aria-busy"],$P={key:0,class:"mb-1 h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},UP=["for"],WP={key:0,class:"ml-1 text-destructive"},GP={class:"relative"},KP={key:0,class:"flex items-center text-gray-500 gap-2"},XP=["id","placeholder","disabled","value"],ZP={key:1,class:"h-6 w-6 animate-spin text-gray-500",viewBox:"0 0 24 24",fill:"none"},YP=["disabled"],QP={key:0,class:"p-3 space-y-2"},JP=["onMouseenter","onClick"],eD={class:"flex items-center space-x-3"},tD={class:"flex-1"},aD={class:"text-sm font-medium text-gray-900 dark:text-gray-100"},nD={key:0,class:"text-xs text-gray-500 dark:text-gray-400"},oD={key:0},rD={key:2,class:"p-3 text-center"},iD={class:"inline-flex items-center space-x-2"},sD={class:"text-sm text-gray-500"},lD={key:3,class:"p-3 text-center"},cD={class:"text-xs text-gray-400"},dD={key:4,class:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400"},hD={key:1,class:"mt-1 text-xs text-red-600"},uD={key:2,class:"mt-1 text-xs text-gray-500"},j_=t.defineComponent({name:"DCodeInfiniteAutoComplete",inheritAttrs:!1,__name:"DCodeInfiniteAutoComplete",props:{modelValue:{},apiModule:{},apiAction:{},apiOptions:{},autoFetchOnOpen:{type:Boolean,default:!0},refreshOnOpen:{type:Boolean,default:!1},autoFetchOnMount:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},error:{default:null},errorMessage:{default:null},itemTitle:{type:[String,Function],default:"name"},itemValue:{type:[String,Function],default:"id"},itemSubtitle:{},returnObject:{type:Boolean,default:!1},endpoint:{},apiParams:{},fetchItems:{},icon:{},label:{},placeholder:{default:"Select an option"},required:{type:Boolean,default:!1},inputType:{default:"text"},helperText:{default:""},noResultsText:{default:"No results found"},loadingText:{default:"Loading more..."},endOfResultsText:{default:"End of results"},pageSize:{default:10},threshold:{default:100},debounceMs:{default:300}},emits:["update:modelValue","focus","blur","select","search","load-more","end-of-results","error"],setup(a,{emit:e}){const n=a,o=e,r=t.useAttrs(),i=t.ref(),s=t.ref(),c=t.ref(),d=t.ref(),h=t.ref(),u=t.computed(()=>{const F=n.label||n.placeholder;return F?`app-infinite-autocomplete-${F}-${Math.random().toString(36).slice(2,7)}`:void 0}),p=t.ref(""),y=t.ref([]),f=t.ref(!1),k=t.ref(!1),m=t.ref(-1),g=t.ref(1),v=t.ref(!0),L=t.ref(0),w=t.ref(),{floatingStyles:M}=Q1(d,h,{placement:"bottom-start",whileElementsMounted:K1,middleware:[X1(4),Ds(),Z1(),Y1({apply({rects:F,elements:R}){Object.assign(R.floating.style,{width:`${F.reference.width}px`})}})]});t.computed(()=>({"opacity-50 pointer-events-none":n.disabled,relative:!0}));const C=t.computed(()=>p.value?y.value.filter(F=>I(F).toLowerCase().includes(p.value.toLowerCase())):y.value),S=t.computed(()=>{if(k.value&&p.value)return p.value;if(n.modelValue){if(n.returnObject)return I(n.modelValue);{const F=y.value.find(R=>V(R)===n.modelValue);return F?I(F):String(n.modelValue)}}return""}),b=()=>{k.value=!0},x=()=>{k.value=!1},I=F=>typeof n.itemTitle=="function"?n.itemTitle(F):F[n.itemTitle]||"",V=F=>typeof n.itemValue=="function"?n.itemValue(F):F[n.itemValue]||F,B=F=>n.itemSubtitle?typeof n.itemSubtitle=="function"?n.itemSubtitle(F):F[n.itemSubtitle]||"":"",A=F=>n.modelValue?n.returnObject?V(F)===V(n.modelValue):V(F)===n.modelValue:!1,P=F=>{var Z;const R=n.returnObject?F:V(F);o("update:modelValue",R),o("select",F),k.value=!1,p.value="",(Z=i.value)==null||Z.blur()},D=()=>{var F;o("update:modelValue",null),p.value="",(F=i.value)==null||F.focus()},U=F=>{k.value=!0,o("focus",F),n.autoFetchOnOpen&&!f.value&&(n.refreshOnOpen||y.value.length===0)&&j(!0)},T=F=>{setTimeout(()=>{k.value=!1,o("blur",F)},200)},H=F=>{const R=F.target;p.value=R.value,w.value&&clearTimeout(w.value),w.value=setTimeout(()=>{o("search",p.value),g.value=1,v.value=!0,j(!0)},n.debounceMs)},N=F=>{if(k.value)switch(F.key){case"ArrowDown":F.preventDefault(),m.value=Math.min(m.value+1,C.value.length-1);break;case"ArrowUp":F.preventDefault(),m.value=Math.max(m.value-1,0);break;case"Enter":F.preventDefault(),m.value>=0&&C.value[m.value]&&P(C.value[m.value]);break;case"Escape":k.value=!1;break}},Q=F=>{if(!v.value||f.value)return;const R=F.target,{scrollTop:Z,scrollHeight:J,clientHeight:re}=R;Z+re>=J-n.threshold&&j()},j=async(F=!1)=>{var R,Z;if(!f.value){f.value=!0;try{let J=[];if(n.fetchItems)J=await n.fetchItems();else{const re=Ke(),de=((R=n.endpoint)==null?void 0:R.apiModule)||n.apiModule,ue=((Z=n.endpoint)==null?void 0:Z.apiAction)||n.apiAction;if(!de||!ue)throw new Error("API module and action are required");const ve={page:F?1:g.value,pageSize:n.pageSize,search:p.value,...n.apiParams},le=await re.apiUrl(`/${de}/${ue}`,"GET",ve);J=le.data||le.items||le||[],L.value=le.total||le.totalItems||J.length}F?(y.value=J,g.value=1):(y.value.push(...J),g.value++),v.value=J.length>=n.pageSize,v.value||o("end-of-results"),o("load-more",{items:J,page:g.value,hasMore:v.value,total:L.value})}catch(J){console.error("Error fetching items:",J),o("error",J)}finally{f.value=!1}}};return t.onMounted(()=>{n.autoFetchOnMount&&j()}),t.onUnmounted(()=>{w.value&&clearTimeout(w.value)}),t.watch(()=>n.modelValue,F=>{F||(p.value="")}),(F,R)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"rootEl",ref:c,class:t.normalizeClass(["w-full",t.unref(r).class]),"aria-busy":a.skeleton},[a.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.label?(t.openBlock(),t.createElementBlock("div",$P)):t.createCommentVNode("",!0),R[3]||(R[3]=t.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:u.value,class:"mb-1 block text-sm font-medium text-gray-900 dark:text-gray-100"},[t.createTextVNode(t.toDisplayString(a.label)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",WP,"*")):t.createCommentVNode("",!0)],8,UP)):t.createCommentVNode("",!0),t.createElementVNode("div",GP,[t.createElementVNode("div",{ref_key:"reference",ref:d,class:t.normalizeClass(["flex items-center gap-2 rounded-lg border px-3 py-2 bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 h-10 focus-within:ring-1 focus-within:ring-gray-700 dark:focus-within:ring-gray-300",[a.disabled?"opacity-60 cursor-not-allowed":"",a.error?"border-red-500 focus-within:ring-red-500":""]])},[n.icon?(t.openBlock(),t.createElementBlock("div",KP,[n.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.icon),{key:0,class:"h-4 w-4"})):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("input",t.mergeProps({ref_key:"inputRef",ref:i},F.$attrs,{id:u.value,type:"text",class:["w-full bg-transparent outline-none text-sm text-gray-900 dark:text-gray-100 placeholder:text-gray-400",a.disabled?"cursor-not-allowed":"cursor-text"],placeholder:a.placeholder,disabled:a.disabled,value:S.value,onFocus:U,onBlur:T,onInput:H,onKeydown:N}),null,16,XP),f.value?(t.openBlock(),t.createElementBlock("svg",ZP,[...R[4]||(R[4]=[t.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),t.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):a.clearable&&a.modelValue?(t.openBlock(),t.createElementBlock("button",{key:2,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300",onMousedown:R[0]||(R[0]=t.withModifiers(()=>{},["prevent"])),onClick:t.withModifiers(D,["stop"]),"aria-label":"Clear"}," ✕ ",32)):(t.openBlock(),t.createElementBlock("button",{key:3,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 disabled:opacity-50 disabled:cursor-not-allowed",disabled:a.disabled,onClick:R[1]||(R[1]=Z=>k.value?x():b()),"aria-label":"Toggle"},[t.createVNode(t.unref(St),{class:t.normalizeClass(["h-4 w-4 transition-transform duration-200 ease-in-out",{"rotate-180":k.value}])},null,8,["class"])],8,YP))],2),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[k.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"floating",ref:h,style:t.normalizeStyle(t.unref(M)),class:"z-[9999] overflow-hidden rounded-lg border bg-white shadow-lg border-gray-200 dark:border-gray-700 dark:bg-neutral-900"},[t.createElementVNode("div",{ref_key:"scrollContainer",ref:s,class:"max-h-64 overflow-auto",onScroll:Q},[f.value&&y.value.length===0?(t.openBlock(),t.createElementBlock("div",QP,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(5,Z=>t.createElementVNode("div",{key:Z,class:"flex items-center space-x-3"},[...R[5]||(R[5]=[t.createElementVNode("div",{class:"skeleton h-4 w-4 bg-gray-200 rounded"},null,-1),t.createElementVNode("div",{class:"skeleton h-4 flex-1 bg-gray-200 rounded"},null,-1)])])),64))])):C.value.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(C.value,(Z,J)=>(t.openBlock(),t.createElementBlock("button",{key:V(Z)??J,type:"button",class:t.normalizeClass(["w-full flex justify-between text-left px-3 py-2 text-sm hover:bg-neutral-100 dark:hover:bg-neutral-800",J===m.value?"bg-neutral-100 dark:bg-neutral-800":""]),onMouseenter:re=>m.value=J,onMousedown:R[2]||(R[2]=t.withModifiers(()=>{},["prevent"])),onClick:re=>P(Z)},[t.renderSlot(F.$slots,"item",{item:Z,index:J},()=>[t.createElementVNode("div",eD,[t.createElementVNode("div",tD,[t.createElementVNode("div",aD,t.toDisplayString(I(Z)),1),a.itemSubtitle?(t.openBlock(),t.createElementBlock("div",nD,t.toDisplayString(B(Z)),1)):t.createCommentVNode("",!0)])])]),A(Z)?(t.openBlock(),t.createElementBlock("span",oD," ✓ ")):t.createCommentVNode("",!0)],42,JP))),128)):t.createCommentVNode("",!0),f.value&&y.value.length>0?(t.openBlock(),t.createElementBlock("div",rD,[t.createElementVNode("div",iD,[R[6]||(R[6]=t.createElementVNode("div",{class:"animate-spin rounded-full h-4 w-4 border-b-2 border-blue-600"},null,-1)),t.createElementVNode("span",sD,t.toDisplayString(a.loadingText),1)])])):t.createCommentVNode("",!0),!v.value&&y.value.length>0?(t.openBlock(),t.createElementBlock("div",lD,[t.createElementVNode("div",cD,t.toDisplayString(a.endOfResultsText),1)])):!f.value&&y.value.length===0?(t.openBlock(),t.createElementBlock("div",dD,t.toDisplayString(a.noResultsText),1)):t.createCommentVNode("",!0)],544)],4)):t.createCommentVNode("",!0)]))]),a.error?(t.openBlock(),t.createElementBlock("p",hD,t.toDisplayString(a.errorMessage||a.error),1)):a.helperText?(t.openBlock(),t.createElementBlock("p",uD,t.toDisplayString(a.helperText),1)):t.createCommentVNode("",!0)],64))],10,NP)),[[t.vShow,a.visible]])}});function O_(a){var e,n,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var r=a.length;for(e=0;e<r;e++)a[e]&&(n=O_(a[e]))&&(o&&(o+=" "),o+=n)}else for(n in a)a[n]&&(o&&(o+=" "),o+=n);return o}function F_(){for(var a,e,n=0,o="",r=arguments.length;n<r;n++)(a=arguments[n])&&(e=O_(a))&&(o&&(o+=" "),o+=e);return o}const pD=(a,e)=>{const n=new Array(a.length+e.length);for(let o=0;o<a.length;o++)n[o]=a[o];for(let o=0;o<e.length;o++)n[a.length+o]=e[o];return n},yD=(a,e)=>({classGroupId:a,validator:e}),R_=(a=new Map,e=null,n)=>({nextPart:a,validators:e,classGroupId:n}),fL="-",N_=[],fD="arbitrary..",kD=a=>{const e=gD(a),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return mD(s);const c=s.split(fL),d=c[0]===""&&c.length>1?1:0;return $_(c,d,e)},getConflictingClassGroupIds:(s,c)=>{if(c){const d=o[s],h=n[s];return d?h?pD(h,d):d:h||N_}return n[s]||N_}}},$_=(a,e,n)=>{if(a.length-e===0)return n.classGroupId;const r=a[e],i=n.nextPart.get(r);if(i){const h=$_(a,e+1,i);if(h)return h}const s=n.validators;if(s===null)return;const c=e===0?a.join(fL):a.slice(e).join(fL),d=s.length;for(let h=0;h<d;h++){const u=s[h];if(u.validator(c))return u.classGroupId}},mD=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=a.slice(1,-1),n=e.indexOf(":"),o=e.slice(0,n);return o?fD+o:void 0})(),gD=a=>{const{theme:e,classGroups:n}=a;return bD(n,e)},bD=(a,e)=>{const n=R_();for(const o in a){const r=a[o];PS(r,n,o,e)}return n},PS=(a,e,n,o)=>{const r=a.length;for(let i=0;i<r;i++){const s=a[i];MD(s,e,n,o)}},MD=(a,e,n,o)=>{if(typeof a=="string"){xD(a,e,n);return}if(typeof a=="function"){wD(a,e,n,o);return}vD(a,e,n,o)},xD=(a,e,n)=>{const o=a===""?e:U_(e,a);o.classGroupId=n},wD=(a,e,n,o)=>{if(CD(a)){PS(a(o),e,n,o);return}e.validators===null&&(e.validators=[]),e.validators.push(yD(n,a))},vD=(a,e,n,o)=>{const r=Object.entries(a),i=r.length;for(let s=0;s<i;s++){const[c,d]=r[s];PS(d,U_(e,c),n,o)}},U_=(a,e)=>{let n=a;const o=e.split(fL),r=o.length;for(let i=0;i<r;i++){const s=o[i];let c=n.nextPart.get(s);c||(c=R_(),n.nextPart.set(s,c)),n=c}return n},CD=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,LD=a=>{if(a<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),o=Object.create(null);const r=(i,s)=>{n[i]=s,e++,e>a&&(e=0,o=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=o[i])!==void 0)return r(i,s),s},set(i,s){i in n?n[i]=s:r(i,s)}}},DS="!",W_=":",SD=[],G_=(a,e,n,o,r)=>({modifiers:a,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),ID=a=>{const{prefix:e,experimentalParseClassName:n}=a;let o=r=>{const i=[];let s=0,c=0,d=0,h;const u=r.length;for(let m=0;m<u;m++){const g=r[m];if(s===0&&c===0){if(g===W_){i.push(r.slice(d,m)),d=m+1;continue}if(g==="/"){h=m;continue}}g==="["?s++:g==="]"?s--:g==="("?c++:g===")"&&c--}const p=i.length===0?r:r.slice(d);let y=p,f=!1;p.endsWith(DS)?(y=p.slice(0,-1),f=!0):p.startsWith(DS)&&(y=p.slice(1),f=!0);const k=h&&h>d?h-d:void 0;return G_(i,f,y,k)};if(e){const r=e+W_,i=o;o=s=>s.startsWith(r)?i(s.slice(r.length)):G_(SD,!1,s,void 0,!0)}if(n){const r=o;o=i=>n({className:i,parseClassName:r})}return o},_D=a=>{const e=new Map;return a.orderSensitiveModifiers.forEach((n,o)=>{e.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let i=0;i<n.length;i++){const s=n[i],c=s[0]==="[",d=e.has(s);c||d?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},AD=a=>({cache:LD(a.cacheSize),parseClassName:ID(a),sortModifiers:_D(a),...kD(a)}),BD=/\s+/,VD=(a,e)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:i}=e,s=[],c=a.trim().split(BD);let d="";for(let h=c.length-1;h>=0;h-=1){const u=c[h],{isExternal:p,modifiers:y,hasImportantModifier:f,baseClassName:k,maybePostfixModifierPosition:m}=n(u);if(p){d=u+(d.length>0?" "+d:d);continue}let g=!!m,v=o(g?k.substring(0,m):k);if(!v){if(!g){d=u+(d.length>0?" "+d:d);continue}if(v=o(k),!v){d=u+(d.length>0?" "+d:d);continue}g=!1}const L=y.length===0?"":y.length===1?y[0]:i(y).join(":"),w=f?L+DS:L,M=w+v;if(s.indexOf(M)>-1)continue;s.push(M);const C=r(v,g);for(let S=0;S<C.length;++S){const b=C[S];s.push(w+b)}d=u+(d.length>0?" "+d:d)}return d},zD=(...a)=>{let e=0,n,o,r="";for(;e<a.length;)(n=a[e++])&&(o=K_(n))&&(r&&(r+=" "),r+=o);return r},K_=a=>{if(typeof a=="string")return a;let e,n="";for(let o=0;o<a.length;o++)a[o]&&(e=K_(a[o]))&&(n&&(n+=" "),n+=e);return n},qD=(a,...e)=>{let n,o,r,i;const s=d=>{const h=e.reduce((u,p)=>p(u),a());return n=AD(h),o=n.cache.get,r=n.cache.set,i=c,c(d)},c=d=>{const h=o(d);if(h)return h;const u=VD(d,n);return r(d,u),u};return i=s,(...d)=>i(zD(...d))},PD=[],je=a=>{const e=n=>n[a]||PD;return e.isThemeGetter=!0,e},X_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Z_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,DD=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ED=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,TD=/\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$/,HD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pa=a=>DD.test(a),ge=a=>!!a&&!Number.isNaN(Number(a)),ya=a=>!!a&&Number.isInteger(Number(a)),ES=a=>a.endsWith("%")&&ge(a.slice(0,-1)),Kt=a=>ED.test(a),Y_=()=>!0,FD=a=>TD.test(a)&&!HD.test(a),TS=()=>!1,RD=a=>jD.test(a),ND=a=>OD.test(a),$D=a=>!ie(a)&&!se(a),UD=a=>fa(a,nA,TS),ie=a=>X_.test(a),$i=a=>fa(a,oA,FD),Q_=a=>fa(a,JD,ge),WD=a=>fa(a,iA,Y_),GD=a=>fa(a,rA,TS),J_=a=>fa(a,tA,TS),KD=a=>fa(a,aA,ND),kL=a=>fa(a,sA,RD),se=a=>Z_.test(a),r1=a=>Ui(a,oA),XD=a=>Ui(a,rA),eA=a=>Ui(a,tA),ZD=a=>Ui(a,nA),YD=a=>Ui(a,aA),mL=a=>Ui(a,sA,!0),QD=a=>Ui(a,iA,!0),fa=(a,e,n)=>{const o=X_.exec(a);return o?o[1]?e(o[1]):n(o[2]):!1},Ui=(a,e,n=!1)=>{const o=Z_.exec(a);return o?o[1]?e(o[1]):n:!1},tA=a=>a==="position"||a==="percentage",aA=a=>a==="image"||a==="url",nA=a=>a==="length"||a==="size"||a==="bg-size",oA=a=>a==="length",JD=a=>a==="number",rA=a=>a==="family-name",iA=a=>a==="number"||a==="weight",sA=a=>a==="shadow",eE=qD(()=>{const a=je("color"),e=je("font"),n=je("text"),o=je("font-weight"),r=je("tracking"),i=je("leading"),s=je("breakpoint"),c=je("container"),d=je("spacing"),h=je("radius"),u=je("shadow"),p=je("inset-shadow"),y=je("text-shadow"),f=je("drop-shadow"),k=je("blur"),m=je("perspective"),g=je("aspect"),v=je("ease"),L=je("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...M(),se,ie],S=()=>["auto","hidden","clip","visible","scroll"],b=()=>["auto","contain","none"],x=()=>[se,ie,d],I=()=>[pa,"full","auto",...x()],V=()=>[ya,"none","subgrid",se,ie],B=()=>["auto",{span:["full",ya,se,ie]},ya,se,ie],A=()=>[ya,"auto",se,ie],P=()=>["auto","min","max","fr",se,ie],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...x()],H=()=>[pa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],N=()=>[pa,"screen","full","dvw","lvw","svw","min","max","fit",...x()],Q=()=>[pa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],j=()=>[a,se,ie],F=()=>[...M(),eA,J_,{position:[se,ie]}],R=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",ZD,UD,{size:[se,ie]}],J=()=>[ES,r1,$i],re=()=>["","none","full",h,se,ie],de=()=>["",ge,r1,$i],ue=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[ge,ES,eA,J_],G=()=>["","none",k,se,ie],z=()=>["none",ge,se,ie],W=()=>["none",ge,se,ie],ee=()=>[ge,se,ie],pe=()=>[pa,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kt],breakpoint:[Kt],color:[Y_],container:[Kt],"drop-shadow":[Kt],ease:["in","out","in-out"],font:[$D],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kt],shadow:[Kt],spacing:["px",ge],text:[Kt],"text-shadow":[Kt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pa,ie,se,g]}],container:["container"],columns:[{columns:[ge,ie,se,c]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:C()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:b()}],"overscroll-x":[{"overscroll-x":b()}],"overscroll-y":[{"overscroll-y":b()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[ya,"auto",se,ie]}],basis:[{basis:[pa,"full","auto",c,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ge,pa,"auto","initial","none",ie]}],grow:[{grow:["",ge,se,ie]}],shrink:[{shrink:["",ge,se,ie]}],order:[{order:[ya,"first","last","none",se,ie]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...N()]}],"min-inline-size":[{"min-inline":["auto",...N()]}],"max-inline-size":[{"max-inline":["none",...N()]}],"block-size":[{block:["auto",...Q()]}],"min-block-size":[{"min-block":["auto",...Q()]}],"max-block-size":[{"max-block":["none",...Q()]}],w:[{w:[c,"screen",...H()]}],"min-w":[{"min-w":[c,"screen","none",...H()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",n,r1,$i]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,QD,WD]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ES,ie]}],"font-family":[{font:[XD,GD,e]}],"font-features":[{"font-features":[ie]}],"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:[r,se,ie]}],"line-clamp":[{"line-clamp":[ge,"none",se,Q_]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",se,ie]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,ie]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[ge,"from-font","auto",se,$i]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[ge,"auto",se,ie]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,ie]}],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",se,ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:R()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ya,se,ie],radial:["",se,ie],conic:[ya,se,ie]},YD,KD]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-bs":[{"border-bs":de()}],"border-w-be":[{"border-be":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ge,se,ie]}],"outline-w":[{outline:["",ge,r1,$i]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",u,mL,kL]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",p,mL,kL]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[ge,$i]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",y,mL,kL]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[ge,se,ie]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"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":[ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[se,ie]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":M()}],"mask-image-conic-pos":[{"mask-conic":[ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:R()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,ie]}],filter:[{filter:["","none",se,ie]}],blur:[{blur:G()}],brightness:[{brightness:[ge,se,ie]}],contrast:[{contrast:[ge,se,ie]}],"drop-shadow":[{"drop-shadow":["","none",f,mL,kL]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",ge,se,ie]}],"hue-rotate":[{"hue-rotate":[ge,se,ie]}],invert:[{invert:["",ge,se,ie]}],saturate:[{saturate:[ge,se,ie]}],sepia:[{sepia:["",ge,se,ie]}],"backdrop-filter":[{"backdrop-filter":["","none",se,ie]}],"backdrop-blur":[{"backdrop-blur":G()}],"backdrop-brightness":[{"backdrop-brightness":[ge,se,ie]}],"backdrop-contrast":[{"backdrop-contrast":[ge,se,ie]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ge,se,ie]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ge,se,ie]}],"backdrop-invert":[{"backdrop-invert":["",ge,se,ie]}],"backdrop-opacity":[{"backdrop-opacity":[ge,se,ie]}],"backdrop-saturate":[{"backdrop-saturate":[ge,se,ie]}],"backdrop-sepia":[{"backdrop-sepia":["",ge,se,ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,ie]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ge,"initial",se,ie]}],ease:[{ease:["linear","initial",v,se,ie]}],delay:[{delay:[ge,se,ie]}],animate:[{animate:["none",L,se,ie]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,se,ie]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:z()}],"rotate-x":[{"rotate-x":z()}],"rotate-y":[{"rotate-y":z()}],"rotate-z":[{"rotate-z":z()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:ee()}],"skew-x":[{"skew-x":ee()}],"skew-y":[{"skew-y":ee()}],transform:[{transform:[se,ie,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"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",se,ie]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",se,ie]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[ge,r1,$i,Q_]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function be(...a){return eE(F_(a))}function tE(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var HS={},jS={},gL={exports:{}},lA;function aE(){if(lA)return gL.exports;lA=1;var a=String,e=function(){return{isColorSupported:!1,reset:a,bold:a,dim:a,italic:a,underline:a,inverse:a,hidden:a,strikethrough:a,black:a,red:a,green:a,yellow:a,blue:a,magenta:a,cyan:a,white:a,gray:a,bgBlack:a,bgRed:a,bgGreen:a,bgYellow:a,bgBlue:a,bgMagenta:a,bgCyan:a,bgWhite:a,blackBright:a,redBright:a,greenBright:a,yellowBright:a,blueBright:a,magentaBright:a,cyanBright:a,whiteBright:a,bgBlackBright:a,bgRedBright:a,bgGreenBright:a,bgYellowBright:a,bgBlueBright:a,bgMagentaBright:a,bgCyanBright:a,bgWhiteBright:a}};return gL.exports=e(),gL.exports.createColors=e,gL.exports}var cA;function nE(){return cA||(cA=1,(function(a){var e={};Object.defineProperty(a,"__esModule",{value:!0});function n(h,u){for(var p in u)Object.defineProperty(h,p,{enumerable:!0,get:u[p]})}n(a,{dim:function(){return c},default:function(){return d}});const o=r(aE());function r(h){return h&&h.__esModule?h:{default:h}}let i=new Set;function s(h,u,p){typeof process<"u"&&e.JEST_WORKER_ID||p&&i.has(p)||(p&&i.add(p),console.warn(""),u.forEach(y=>console.warn(h,"-",y)))}function c(h){return o.default.dim(h)}const d={info(h,u){s(o.default.bold(o.default.cyan("info")),...Array.isArray(h)?[h]:[u,h])},warn(h,u){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(h)?[h]:[u,h])},risk(h,u){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(h)?[h]:[u,h])}}})(jS)),jS}var dA;function oE(){return dA||(dA=1,(function(a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return r}});const e=n(nE());function n(i){return i&&i.__esModule?i:{default:i}}function o({version:i,from:s,to:c}){e.default.warn(`${s}-color-renamed`,[`As of Tailwind CSS ${i}, \`${s}\` has been renamed to \`${c}\`.`,"Update your configuration file to silence this warning."])}const r={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}})(HS)),HS}var OS,hA;function rE(){if(hA)return OS;hA=1;let a=oE();return OS=(a.__esModule?a:{default:a}).default,OS}var iE=rE();const sE=tE(iE),uA=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,pA=F_,i1=(a,e)=>n=>{var o;if((e==null?void 0:e.variants)==null)return pA(a,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=e,s=Object.keys(r).map(h=>{const u=n==null?void 0:n[h],p=i==null?void 0:i[h];if(u===null)return null;const y=uA(u)||uA(p);return r[h][y]}),c=n&&Object.entries(n).reduce((h,u)=>{let[p,y]=u;return y===void 0||(h[p]=y),h},{}),d=e==null||(o=e.compoundVariants)===null||o===void 0?void 0:o.reduce((h,u)=>{let{class:p,className:y,...f}=u;return Object.entries(f).every(k=>{let[m,g]=k;return Array.isArray(g)?g.includes({...i,...c}[m]):{...i,...c}[m]===g})?[...h,p,y]:h},[]);return pA(a,s,d,n==null?void 0:n.class,n==null?void 0:n.className)};function yA(a){return typeof a=="string"?`'${a}'`:new lE().serialize(a)}const lE=(function(){var e;class a{constructor(){yq(this,e,new Map)}compare(o,r){const i=typeof o,s=typeof r;return i==="string"&&s==="string"?o.localeCompare(r):i==="number"&&s==="number"?o-r:String.prototype.localeCompare.call(this.serialize(o,!0),this.serialize(r,!0))}serialize(o,r){if(o===null)return"null";switch(typeof o){case"string":return r?o:`'${o}'`;case"bigint":return`${o}n`;case"object":return this.$object(o);case"function":return this.$function(o)}return String(o)}serializeObject(o){const r=Object.prototype.toString.call(o);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),o);const i=o.constructor,s=i===Object||i===void 0?"":i.name;if(s!==""&&globalThis[s]===i)return this.serializeBuiltInType(s,o);if(typeof o.toJSON=="function"){const c=o.toJSON();return s+(c!==null&&typeof c=="object"?this.$object(c):`(${this.serialize(c)})`)}return this.serializeObjectEntries(s,Object.entries(o))}serializeBuiltInType(o,r){const i=this["$"+o];if(i)return i.call(this,r);if(typeof(r==null?void 0:r.entries)=="function")return this.serializeObjectEntries(o,r.entries());throw new Error(`Cannot serialize ${o}`)}serializeObjectEntries(o,r){const i=Array.from(r).sort((c,d)=>this.compare(c[0],d[0]));let s=`${o}{`;for(let c=0;c<i.length;c++){const[d,h]=i[c];s+=`${this.serialize(d,!0)}:${this.serialize(h)}`,c<i.length-1&&(s+=",")}return s+"}"}$object(o){let r=T1(this,e).get(o);return r===void 0&&(T1(this,e).set(o,`#${T1(this,e).size}`),r=this.serializeObject(o),T1(this,e).set(o,r)),r}$function(o){const r=Function.prototype.toString.call(o);return r.slice(-15)==="[native code] }"?`${o.name||""}()[native]`:`${o.name}(${o.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(o){let r="[";for(let i=0;i<o.length;i++)r+=this.serialize(o[i]),i<o.length-1&&(r+=",");return r+"]"}$Date(o){try{return`Date(${o.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(o){return`ArrayBuffer[${new Uint8Array(o).join(",")}]`}$Set(o){return`Set${this.$Array(Array.from(o).sort((r,i)=>this.compare(r,i)))}`}$Map(o){return this.serializeObjectEntries("Map",o.entries())}}e=new WeakMap;for(const n of["Error","RegExp","URL"])a.prototype["$"+n]=function(o){return`${n}(${o})`};for(const n of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])a.prototype["$"+n]=function(o){return`${n}[${o.join(",")}]`};for(const n of["BigInt64Array","BigUint64Array"])a.prototype["$"+n]=function(o){return`${n}[${o.join("n,")}${o.length>0?"n":""}]`};return a})();function cE(a,e){return a===e||yA(a)===yA(e)}function fA(a,e=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(e,a))}function st(a,e){const n=typeof a=="string"&&!e?`${a}Context`:e,o=Symbol(n);return[s=>{const c=t.inject(o,s);if(c||c===null)return c;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(a)?`one of the following components: ${a.join(", ")}`:`\`${a}\``}`)},s=>(t.provide(o,s),s)]}function at(){let a=document.activeElement;if(a==null)return null;for(;a!=null&&a.shadowRoot!=null&&a.shadowRoot.activeElement!=null;)a=a.shadowRoot.activeElement;return a}function FS(a,e,n){const o=n.originalEvent.target,r=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(a,e,{once:!0}),o.dispatchEvent(r)}function RS(a){return a==null}function NS(a){return a?a.flatMap(e=>e.type===t.Fragment?NS(e.children):[e]):[]}const[bL]=st("ConfigProvider");function dE(a,e){var n;const o=t.shallowRef();return t.watchEffect(()=>{o.value=a()},{...e,flush:(n=e==null?void 0:e.flush)!==null&&n!==void 0?n:"sync"}),t.readonly(o)}function ys(a,e){return t.getCurrentScope()?(t.onScopeDispose(a,e),!0):!1}function hE(){const a=new Set,e=i=>{a.delete(i)};return{on:i=>{a.add(i);const s=()=>e(i);return ys(s),{off:s}},off:e,trigger:(...i)=>Promise.all(Array.from(a).map(s=>s(...i))),clear:()=>{a.clear()}}}function uE(a){let e=!1,n;const o=t.effectScope(!0);return((...r)=>(e||(n=o.run(()=>a(...r)),e=!0),n))}const $S=new WeakMap,pE=(...a)=>{var e;const n=a[0],o=(e=t.getCurrentInstance())===null||e===void 0?void 0:e.proxy,r=o??t.getCurrentScope();if(r==null&&!t.hasInjectionContext())throw new Error("injectLocal must be called in setup");return r&&$S.has(r)&&n in $S.get(r)?$S.get(r)[n]:t.inject(...a)},lt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yE=a=>typeof a<"u",fE=Object.prototype.toString,kE=a=>fE.call(a)==="[object Object]",kA=mE();function mE(){var a,e,n;return lt&&!!(!((a=window)===null||a===void 0||(a=a.navigator)===null||a===void 0)&&a.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function gE(a,e){var n;if(typeof a=="number")return a+e;const o=((n=a.match(/^-?\d+\.?\d*/))===null||n===void 0?void 0:n[0])||"",r=a.slice(o.length),i=Number.parseFloat(o)+e;return Number.isNaN(i)?a:i+r}function s1(a){return a.endsWith("rem")?Number.parseFloat(a)*16:Number.parseFloat(a)}function US(a){return Array.isArray(a)?a:[a]}function mA(a){return t.getCurrentInstance()}function bE(a){if(!lt)return a;let e=0,n,o;const r=()=>{e-=1,o&&e<=0&&(o.stop(),n=void 0,o=void 0)};return((...i)=>(e+=1,o||(o=t.effectScope(!0),n=o.run(()=>a(...i))),ys(r),n))}function ME(a){return t.isRef(a)?t.reactive(new Proxy({},{get(e,n,o){return t.unref(Reflect.get(a.value,n,o))},set(e,n,o){return t.isRef(a.value[n])&&!t.isRef(o)?a.value[n].value=o:a.value[n]=o,!0},deleteProperty(e,n){return Reflect.deleteProperty(a.value,n)},has(e,n){return Reflect.has(a.value,n)},ownKeys(){return Object.keys(a.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):t.reactive(a)}function xE(a){return ME(t.computed(a))}function De(a,...e){const n=e.flat(),o=n[0];return xE(()=>Object.fromEntries(typeof o=="function"?Object.entries(t.toRefs(a)).filter(([r,i])=>!o(t.toValue(i),r)):Object.entries(t.toRefs(a)).filter(r=>!n.includes(r[0]))))}function gA(a,e=1e4){return t.customRef((n,o)=>{let r=t.toValue(a),i;const s=()=>setTimeout(()=>{r=t.toValue(a),o()},t.toValue(e));return ys(()=>{clearTimeout(i)}),{get(){return n(),r},set(c){r=c,o(),clearTimeout(i),i=s()}}})}function wE(a,e){mA()&&t.onBeforeUnmount(a,e)}function vE(a,e=!0,n){mA()?t.onMounted(a,n):e?a():t.nextTick(a)}function bA(a,e,n={}){const{immediate:o=!0,immediateCallback:r=!1}=n,i=t.shallowRef(!1);let s;function c(){s&&(clearTimeout(s),s=void 0)}function d(){i.value=!1,c()}function h(...u){r&&a(),c(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=void 0,a(...u)},t.toValue(e))}return o&&(i.value=!0,lt&&h()),ys(d),{isPending:t.shallowReadonly(i),start:h,stop:d}}function CE(a,e,n){return t.watch(a,e,{...n,immediate:!0})}const fs=lt?window:void 0;function Et(a){var e;const n=t.toValue(a);return(e=n==null?void 0:n.$el)!==null&&e!==void 0?e:n}function l1(...a){const e=(o,r,i,s)=>(o.addEventListener(r,i,s),()=>o.removeEventListener(r,i,s)),n=t.computed(()=>{const o=US(t.toValue(a[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0});return CE(()=>{var o,r;return[(o=(r=n.value)===null||r===void 0?void 0:r.map(i=>Et(i)))!==null&&o!==void 0?o:[fs].filter(i=>i!=null),US(t.toValue(n.value?a[1]:a[0])),US(t.unref(n.value?a[2]:a[1])),t.toValue(n.value?a[3]:a[2])]},([o,r,i,s],c,d)=>{if(!(o!=null&&o.length)||!(r!=null&&r.length)||!(i!=null&&i.length))return;const h=kE(s)?{...s}:s,u=o.flatMap(p=>r.flatMap(y=>i.map(f=>e(p,y,f,h))));d(()=>{u.forEach(p=>p())})},{flush:"post"})}function MA(){const a=t.shallowRef(!1),e=t.getCurrentInstance();return e&&t.onMounted(()=>{a.value=!0},e),a}function xA(a){const e=MA();return t.computed(()=>(e.value,!!a()))}function LE(a){return typeof a=="function"?a:typeof a=="string"?e=>e.key===a:Array.isArray(a)?e=>a.includes(e.key):()=>!0}function SE(...a){let e,n,o={};a.length===3?(e=a[0],n=a[1],o=a[2]):a.length===2?typeof a[1]=="object"?(e=!0,n=a[0],o=a[1]):(e=a[0],n=a[1]):(e=!0,n=a[0]);const{target:r=fs,eventName:i="keydown",passive:s=!1,dedupe:c=!1}=o,d=LE(e);return l1(r,i,u=>{u.repeat&&t.toValue(c)||d(u)&&n(u)},s)}const IE=Symbol("vueuse-ssr-width");function wA(){const a=t.hasInjectionContext()?pE(IE,null):null;return typeof a=="number"?a:void 0}function c1(a,e={}){const{window:n=fs,ssrWidth:o=wA()}=e,r=xA(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=t.shallowRef(typeof o=="number"),s=t.shallowRef(),c=t.shallowRef(!1),d=h=>{c.value=h.matches};return t.watchEffect(()=>{if(i.value){i.value=!r.value,c.value=t.toValue(a).split(",").some(h=>{const u=h.includes("not all"),p=h.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),y=h.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let f=!!(p||y);return p&&f&&(f=o>=s1(p[1])),y&&f&&(f=o<=s1(y[1])),u?!f:f});return}r.value&&(s.value=n.matchMedia(t.toValue(a)),c.value=s.value.matches)}),l1(s,"change",d,{passive:!0}),t.computed(()=>c.value)}const _E={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function AE(a,e={}){function n(f,k){let m=t.toValue(a[t.toValue(f)]);return k!=null&&(m=gE(m,k)),typeof m=="number"&&(m=`${m}px`),m}const{window:o=fs,strategy:r="min-width",ssrWidth:i=wA()}=e,s=typeof i=="number",c=s?t.shallowRef(!1):{value:!0};s&&vE(()=>c.value=!!o);function d(f,k){return!c.value&&s?f==="min"?i>=s1(k):i<=s1(k):o?o.matchMedia(`(${f}-width: ${k})`).matches:!1}const h=f=>c1(()=>`(min-width: ${n(f)})`,e),u=f=>c1(()=>`(max-width: ${n(f)})`,e),p=Object.keys(a).reduce((f,k)=>(Object.defineProperty(f,k,{get:()=>r==="min-width"?h(k):u(k),enumerable:!0,configurable:!0}),f),{});function y(){const f=Object.keys(a).map(k=>[k,p[k],s1(n(k))]).sort((k,m)=>k[2]-m[2]);return t.computed(()=>f.filter(([,k])=>k.value).map(([k])=>k))}return Object.assign(p,{greaterOrEqual:h,smallerOrEqual:u,greater(f){return c1(()=>`(min-width: ${n(f,.1)})`,e)},smaller(f){return c1(()=>`(max-width: ${n(f,-.1)})`,e)},between(f,k){return c1(()=>`(min-width: ${n(f)}) and (max-width: ${n(k,-.1)})`,e)},isGreater(f){return d("min",n(f,.1))},isGreaterOrEqual(f){return d("min",n(f))},isSmaller(f){return d("max",n(f,-.1))},isSmallerOrEqual(f){return d("max",n(f))},isInBetween(f,k){return d("min",n(f))&&d("max",n(k,-.1))},current:y,active(){const f=y();return t.computed(()=>f.value.length===0?"":f.value.at(r==="min-width"?-1:0))}})}function BE(a){return JSON.parse(JSON.stringify(a))}function VE(a,e,n={}){const{window:o=fs,...r}=n;let i;const s=xA(()=>o&&"ResizeObserver"in o),c=()=>{i&&(i.disconnect(),i=void 0)},d=t.watch(t.computed(()=>{const u=t.toValue(a);return Array.isArray(u)?u.map(p=>Et(p)):[Et(u)]}),u=>{if(c(),s.value&&o){i=new ResizeObserver(e);for(const p of u)p&&i.observe(p,r)}},{immediate:!0,flush:"post"}),h=()=>{c(),d()};return ys(h),{isSupported:s,stop:h}}function ks(a,e,n,o={}){var r,i;const{clone:s=!1,passive:c=!1,eventName:d,deep:h=!1,defaultValue:u,shouldEmit:p}=o,y=t.getCurrentInstance(),f=n||(y==null?void 0:y.emit)||(y==null||(r=y.$emit)===null||r===void 0?void 0:r.bind(y))||(y==null||(i=y.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(y==null?void 0:y.proxy));let k=d;e||(e="modelValue"),k=k||`update:${e.toString()}`;const m=L=>s?typeof s=="function"?s(L):BE(L):L,g=()=>yE(a[e])?m(a[e]):u,v=L=>{p?p(L)&&f(k,L):f(k,L)};if(c){const L=t.ref(g());let w=!1;return t.watch(()=>a[e],M=>{w||(w=!0,L.value=m(M),t.nextTick(()=>w=!1))}),t.watch(L,M=>{!w&&(M!==a[e]||h)&&v(M)},{deep:h}),L}else return t.computed({get(){return g()},set(L){v(L)}})}function WS(a){if(a===null||typeof a!="object")return!1;const e=Object.getPrototypeOf(a);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in a?!1:Symbol.toStringTag in a?Object.prototype.toString.call(a)==="[object Module]":!0}function GS(a,e,n=".",o){if(!WS(e))return GS(a,{},n,o);const r=Object.assign({},e);for(const i in a){if(i==="__proto__"||i==="constructor")continue;const s=a[i];s!=null&&(o&&o(r,i,s,n)||(Array.isArray(s)&&Array.isArray(r[i])?r[i]=[...s,...r[i]]:WS(s)&&WS(r[i])?r[i]=GS(s,r[i],(n?`${n}.`:"")+i.toString(),o):r[i]=s))}return r}function zE(a){return(...e)=>e.reduce((n,o)=>GS(n,o,"",a),{})}const qE=zE(),PE=bE(()=>{const a=t.ref(new Map),e=t.ref(),n=t.computed(()=>{for(const s of a.value.values())if(s)return!0;return!1}),o=bL({scrollBody:t.ref(!0)});let r=null;const i=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=e.value??"",kA&&(r==null||r()),e.value=void 0};return t.watch(n,(s,c)=>{var p;if(!lt)return;if(!s){c&&i();return}e.value===void 0&&(e.value=document.body.style.overflow);const d=window.innerWidth-document.documentElement.clientWidth,h={padding:d,margin:0},u=(p=o.scrollBody)!=null&&p.value?typeof o.scrollBody.value=="object"?qE({padding:o.scrollBody.value.padding===!0?d:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?d:o.scrollBody.value.margin},h):h:{padding:0,margin:0};d>0&&(document.body.style.paddingRight=typeof u.padding=="number"?`${u.padding}px`:String(u.padding),document.body.style.marginRight=typeof u.margin=="number"?`${u.margin}px`:String(u.margin),document.documentElement.style.setProperty("--scrollbar-width",`${d}px`),document.body.style.overflow="hidden"),kA&&(r=l1(document,"touchmove",y=>DE(y),{passive:!1})),t.nextTick(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),a});function vA(a){const e=Math.random().toString(36).substring(2,7),n=PE();n.value.set(e,a??!1);const o=t.computed({get:()=>n.value.get(e)??!1,set:r=>n.value.set(e,r)});return wE(()=>{n.value.delete(e)}),o}function CA(a){const e=window.getComputedStyle(a);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&a.clientWidth<a.scrollWidth||e.overflowY==="auto"&&a.clientHeight<a.scrollHeight)return!0;{const n=a.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:CA(n)}}function DE(a){const e=a||window.event,n=e.target;return n instanceof Element&&CA(n)?!1:e.touches.length>1?!0:(e.preventDefault&&e.cancelable&&e.preventDefault(),!1)}function EE(a){const e=bL({dir:t.ref("ltr")});return t.computed(()=>{var n;return(a==null?void 0:a.value)||((n=e.dir)==null?void 0:n.value)||"ltr"})}function ML(a){const e=t.getCurrentInstance(),n=e==null?void 0:e.type.emits,o={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${e==null?void 0:e.type.__name}`),n==null||n.forEach(r=>{o[t.toHandlerKey(t.camelize(r))]=(...i)=>a(r,...i)}),o}let KS=0;function TE(){t.watchEffect(a=>{if(!lt)return;const e=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",e[0]??LA()),document.body.insertAdjacentElement("beforeend",e[1]??LA()),KS++,a(()=>{KS===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),KS--})})}function LA(){const a=document.createElement("span");return a.setAttribute("data-reka-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}function HE(a){return t.computed(()=>{var e;return t.toValue(a)?!!((e=Et(a))!=null&&e.closest("form")):!0})}function ke(){const a=t.getCurrentInstance(),e=t.ref(),n=t.computed(()=>{var s,c;return["#text","#comment"].includes((s=e.value)==null?void 0:s.$el.nodeName)?(c=e.value)==null?void 0:c.$el.nextElementSibling:Et(e)}),o=Object.assign({},a.exposed),r={};for(const s in a.props)Object.defineProperty(r,s,{enumerable:!0,configurable:!0,get:()=>a.props[s]});if(Object.keys(o).length>0)for(const s in o)Object.defineProperty(r,s,{enumerable:!0,configurable:!0,get:()=>o[s]});Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>a.vnode.el}),a.exposed=r;function i(s){if(e.value=s,!!s&&(Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>s instanceof Element?s:s.$el}),!(s instanceof Element)&&!Object.prototype.hasOwnProperty.call(s,"$el"))){const c=s.$.exposed,d=Object.assign({},r);for(const h in c)Object.defineProperty(d,h,{enumerable:!0,configurable:!0,get:()=>c[h]});a.exposed=d}}return{forwardRef:i,currentRef:e,currentElement:n}}function Ze(a){const e=t.getCurrentInstance(),n=Object.keys((e==null?void 0:e.type.props)??{}).reduce((r,i)=>{const s=(e==null?void 0:e.type.props[i]).default;return s!==void 0&&(r[i]=s),r},{}),o=t.toRef(a);return t.computed(()=>{const r={},i=(e==null?void 0:e.vnode.props)??{};return Object.keys(i).forEach(s=>{r[t.camelize(s)]=i[s]}),Object.keys({...n,...r}).reduce((s,c)=>(o.value[c]!==void 0&&(s[c]=o.value[c]),s),{})})}function mt(a,e){const n=Ze(a),o=e?ML(e):{};return t.computed(()=>({...n.value,...o}))}function jE(a,e){const n=gA(!1,300);ys(()=>{n.value=!1});const o=t.ref(null),r=hE();function i(){o.value=null,n.value=!1}function s(c,d){const h=c.currentTarget,u={x:c.clientX,y:c.clientY},p=OE(u,h.getBoundingClientRect()),y=FE(u,p,1),f=RE(d.getBoundingClientRect()),k=$E([...y,...f]);o.value=k,n.value=!0}return t.watchEffect(c=>{if(a.value&&e.value){const d=u=>s(u,e.value),h=u=>s(u,a.value);a.value.addEventListener("pointerleave",d),e.value.addEventListener("pointerleave",h),c(()=>{var u,p;(u=a.value)==null||u.removeEventListener("pointerleave",d),(p=e.value)==null||p.removeEventListener("pointerleave",h)})}}),t.watchEffect(c=>{var d;if(o.value){const h=u=>{var g,v;if(!o.value||!(u.target instanceof Element))return;const p=u.target,y={x:u.clientX,y:u.clientY},f=((g=a.value)==null?void 0:g.contains(p))||((v=e.value)==null?void 0:v.contains(p)),k=!NE(y,o.value),m=!!p.closest("[data-grace-area-trigger]");f?i():(k||m)&&(i(),r.trigger())};(d=a.value)==null||d.ownerDocument.addEventListener("pointermove",h),c(()=>{var u;return(u=a.value)==null?void 0:u.ownerDocument.removeEventListener("pointermove",h)})}}),{isPointerInTransit:n,onPointerExit:r.on}}function OE(a,e){const n=Math.abs(e.top-a.y),o=Math.abs(e.bottom-a.y),r=Math.abs(e.right-a.x),i=Math.abs(e.left-a.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function FE(a,e,n=5){const o=[];switch(e){case"top":o.push({x:a.x-n,y:a.y+n},{x:a.x+n,y:a.y+n});break;case"bottom":o.push({x:a.x-n,y:a.y-n},{x:a.x+n,y:a.y-n});break;case"left":o.push({x:a.x+n,y:a.y-n},{x:a.x+n,y:a.y+n});break;case"right":o.push({x:a.x-n,y:a.y-n},{x:a.x-n,y:a.y+n});break}return o}function RE(a){const{top:e,right:n,bottom:o,left:r}=a;return[{x:r,y:e},{x:n,y:e},{x:n,y:o},{x:r,y:o}]}function NE(a,e){const{x:n,y:o}=a;let r=!1;for(let i=0,s=e.length-1;i<e.length;s=i++){const c=e[i].x,d=e[i].y,h=e[s].x,u=e[s].y;d>o!=u>o&&n<(h-c)*(o-d)/(u-d)+c&&(r=!r)}return r}function $E(a){const e=a.slice();return e.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),UE(e)}function UE(a){if(a.length<=1)return a.slice();const e=[];for(let o=0;o<a.length;o++){const r=a[o];for(;e.length>=2;){const i=e[e.length-1],s=e[e.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))e.pop();else break}e.push(r)}e.pop();const n=[];for(let o=a.length-1;o>=0;o--){const r=a[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var WE=function(a){if(typeof document>"u")return null;var e=Array.isArray(a)?a[0]:a;return e.ownerDocument.body},ms=new WeakMap,xL=new WeakMap,wL={},XS=0,SA=function(a){return a&&(a.host||SA(a.parentNode))},GE=function(a,e){return e.map(function(n){if(a.contains(n))return n;var o=SA(n);return o&&a.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",a,". Doing nothing"),null)}).filter(function(n){return!!n})},KE=function(a,e,n,o){var r=GE(e,Array.isArray(a)?a:[a]);wL[n]||(wL[n]=new WeakMap);var i=wL[n],s=[],c=new Set,d=new Set(r),h=function(p){!p||c.has(p)||(c.add(p),h(p.parentNode))};r.forEach(h);var u=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(y){if(c.has(y))u(y);else try{var f=y.getAttribute(o),k=f!==null&&f!=="false",m=(ms.get(y)||0)+1,g=(i.get(y)||0)+1;ms.set(y,m),i.set(y,g),s.push(y),m===1&&k&&xL.set(y,!0),g===1&&y.setAttribute(n,"true"),k||y.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",y,v)}})};return u(e),c.clear(),XS++,function(){s.forEach(function(p){var y=ms.get(p)-1,f=i.get(p)-1;ms.set(p,y),i.set(p,f),y||(xL.has(p)||p.removeAttribute(o),xL.delete(p)),f||p.removeAttribute(n)}),XS--,XS||(ms=new WeakMap,ms=new WeakMap,xL=new WeakMap,wL={})}},XE=function(a,e,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(a)?a:[a]),r=WE(a);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),KE(o,r,n,"aria-hidden")):function(){return null}};function IA(a){let e;t.watch(()=>Et(a),n=>{n?e=XE(n):e&&e()}),t.onUnmounted(()=>{e&&e()})}let ZE=0;function gs(a,e="reka"){var o;if("useId"in j1)return`${e}-${(o=j1.useId)==null?void 0:o.call(j1)}`;const n=bL({useId:void 0});return n.useId?`${e}-${n.useId()}`:`${e}-${++ZE}`}function YE(a){const e=t.ref(),n=t.computed(()=>{var r;return((r=e.value)==null?void 0:r.width)??0}),o=t.computed(()=>{var r;return((r=e.value)==null?void 0:r.height)??0});return t.onMounted(()=>{const r=Et(a);if(r){e.value={width:r.offsetWidth,height:r.offsetHeight};const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let d,h;if("borderBoxSize"in c){const u=c.borderBoxSize,p=Array.isArray(u)?u[0]:u;d=p.inlineSize,h=p.blockSize}else d=r.offsetWidth,h=r.offsetHeight;e.value={width:d,height:h}});return i.observe(r,{box:"border-box"}),()=>i.unobserve(r)}else e.value=void 0}),{width:n,height:o}}function QE(a,e){const n=t.ref(a);function o(i){return e[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=o(i)}}}function _A(a){const e=gA("",1e3);return{search:e,handleTypeaheadSearch:(r,i)=>{e.value=e.value+r;{const s=at(),c=i.map(y=>{var f,k;return{...y,textValue:((f=y.value)==null?void 0:f.textValue)??((k=y.ref.textContent)==null?void 0:k.trim())??""}}),d=c.find(y=>y.ref===s),h=c.map(y=>y.textValue),u=eT(h,e.value,d==null?void 0:d.textValue),p=c.find(y=>y.textValue===u);return p&&p.ref.focus(),p==null?void 0:p.ref}},resetTypeahead:()=>{e.value=""}}}function JE(a,e){return a.map((n,o)=>a[(e+o)%a.length])}function eT(a,e,n){const r=e.length>1&&Array.from(e).every(h=>h===e[0])?e[0]:e,i=n?a.indexOf(n):-1;let s=JE(a,Math.max(i,0));r.length===1&&(s=s.filter(h=>h!==n));const d=s.find(h=>h.toLowerCase().startsWith(r.toLowerCase()));return d!==n?d:void 0}function tT(a,e){var g;const n=t.ref({}),o=t.ref("none"),r=t.ref(a),i=a.value?"mounted":"unmounted";let s;const c=((g=e.value)==null?void 0:g.ownerDocument.defaultView)??fs,{state:d,dispatch:h}=QE(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=v=>{var L;if(lt){const w=new CustomEvent(v,{bubbles:!1,cancelable:!1});(L=e.value)==null||L.dispatchEvent(w)}};t.watch(a,async(v,L)=>{var M;const w=L!==v;if(await t.nextTick(),w){const C=o.value,S=vL(e.value);v?(h("MOUNT"),u("enter"),S==="none"&&u("after-enter")):S==="none"||S==="undefined"||((M=n.value)==null?void 0:M.display)==="none"?(h("UNMOUNT"),u("leave"),u("after-leave")):L&&C!==S?(h("ANIMATION_OUT"),u("leave")):(h("UNMOUNT"),u("after-leave"))}},{immediate:!0});const p=v=>{const L=vL(e.value),w=L.includes(CSS.escape(v.animationName)),M=d.value==="mounted"?"enter":"leave";if(v.target===e.value&&w&&(u(`after-${M}`),h("ANIMATION_END"),!r.value)){const C=e.value.style.animationFillMode;e.value.style.animationFillMode="forwards",s=c==null?void 0:c.setTimeout(()=>{var S;((S=e.value)==null?void 0:S.style.animationFillMode)==="forwards"&&(e.value.style.animationFillMode=C)})}v.target===e.value&&L==="none"&&h("ANIMATION_END")},y=v=>{v.target===e.value&&(o.value=vL(e.value))},f=t.watch(e,(v,L)=>{v?(n.value=getComputedStyle(v),v.addEventListener("animationstart",y),v.addEventListener("animationcancel",p),v.addEventListener("animationend",p)):(h("ANIMATION_END"),s!==void 0&&(c==null||c.clearTimeout(s)),L==null||L.removeEventListener("animationstart",y),L==null||L.removeEventListener("animationcancel",p),L==null||L.removeEventListener("animationend",p))},{immediate:!0}),k=t.watch(d,()=>{const v=vL(e.value);o.value=d.value==="mounted"?v:"none"});return t.onUnmounted(()=>{f(),k()}),{isPresent:t.computed(()=>["mounted","unmountSuspended"].includes(d.value))}}function vL(a){return a&&getComputedStyle(a).animationName||"none"}var CL=t.defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(a,{slots:e,expose:n}){var h;const{present:o,forceMount:r}=t.toRefs(a),i=t.ref(),{isPresent:s}=tT(o,i);n({present:s});let c=e.default({present:s.value});c=NS(c||[]);const d=t.getCurrentInstance();if(c&&(c==null?void 0:c.length)>1){const u=(h=d==null?void 0:d.parent)!=null&&h.type.name?`<${d.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(p=>` - ${p}`).join(`
|
|
8496
|
+
*/const Gt=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:J1,AArrowDownIcon:J1,AArrowUp:el,AArrowUpIcon:el,ALargeSmall:tl,ALargeSmallIcon:tl,Accessibility:al,AccessibilityIcon:al,Activity:nl,ActivityIcon:nl,ActivitySquare:Mr,ActivitySquareIcon:Mr,AirVent:ol,AirVentIcon:ol,Airplay:rl,AirplayIcon:rl,AlarmCheck:qa,AlarmCheckIcon:qa,AlarmClock:sl,AlarmClockCheck:qa,AlarmClockCheckIcon:qa,AlarmClockIcon:sl,AlarmClockMinus:Pa,AlarmClockMinusIcon:Pa,AlarmClockOff:il,AlarmClockOffIcon:il,AlarmClockPlus:Da,AlarmClockPlusIcon:Da,AlarmMinus:Pa,AlarmMinusIcon:Pa,AlarmPlus:Da,AlarmPlusIcon:Da,AlarmSmoke:ll,AlarmSmokeIcon:ll,Album:dl,AlbumIcon:dl,AlertCircle:It,AlertCircleIcon:It,AlertOctagon:Go,AlertOctagonIcon:Go,AlertTriangle:Bi,AlertTriangleIcon:Bi,AlignCenter:vi,AlignCenterHorizontal:cl,AlignCenterHorizontalIcon:cl,AlignCenterIcon:vi,AlignCenterVertical:hl,AlignCenterVerticalIcon:hl,AlignEndHorizontal:ul,AlignEndHorizontalIcon:ul,AlignEndVertical:pl,AlignEndVerticalIcon:pl,AlignHorizontalDistributeCenter:yl,AlignHorizontalDistributeCenterIcon:yl,AlignHorizontalDistributeEnd:fl,AlignHorizontalDistributeEndIcon:fl,AlignHorizontalDistributeStart:kl,AlignHorizontalDistributeStartIcon:kl,AlignHorizontalJustifyCenter:ml,AlignHorizontalJustifyCenterIcon:ml,AlignHorizontalJustifyEnd:gl,AlignHorizontalJustifyEndIcon:gl,AlignHorizontalJustifyStart:bl,AlignHorizontalJustifyStartIcon:bl,AlignHorizontalSpaceAround:Ml,AlignHorizontalSpaceAroundIcon:Ml,AlignHorizontalSpaceBetween:xl,AlignHorizontalSpaceBetweenIcon:xl,AlignJustify:wi,AlignJustifyIcon:wi,AlignLeft:Dt,AlignLeftIcon:Dt,AlignRight:xi,AlignRightIcon:xi,AlignStartHorizontal:wl,AlignStartHorizontalIcon:wl,AlignStartVertical:vl,AlignStartVerticalIcon:vl,AlignVerticalDistributeCenter:Cl,AlignVerticalDistributeCenterIcon:Cl,AlignVerticalDistributeEnd:Ll,AlignVerticalDistributeEndIcon:Ll,AlignVerticalDistributeStart:Sl,AlignVerticalDistributeStartIcon:Sl,AlignVerticalJustifyCenter:Il,AlignVerticalJustifyCenterIcon:Il,AlignVerticalJustifyEnd:_l,AlignVerticalJustifyEndIcon:_l,AlignVerticalJustifyStart:Al,AlignVerticalJustifyStartIcon:Al,AlignVerticalSpaceAround:Bl,AlignVerticalSpaceAroundIcon:Bl,AlignVerticalSpaceBetween:Vl,AlignVerticalSpaceBetweenIcon:Vl,Ambulance:zl,AmbulanceIcon:zl,Ampersand:ql,AmpersandIcon:ql,Ampersands:Pl,AmpersandsIcon:Pl,Amphora:El,AmphoraIcon:El,Anchor:Dl,AnchorIcon:Dl,Angry:Tl,AngryIcon:Tl,Annoyed:Hl,AnnoyedIcon:Hl,Antenna:jl,AntennaIcon:jl,Anvil:Ol,AnvilIcon:Ol,Aperture:Fl,ApertureIcon:Fl,AppWindow:Nl,AppWindowIcon:Nl,AppWindowMac:Rl,AppWindowMacIcon:Rl,Apple:$l,AppleIcon:$l,Archive:Gl,ArchiveIcon:Gl,ArchiveRestore:Ul,ArchiveRestoreIcon:Ul,ArchiveX:Wl,ArchiveXIcon:Wl,AreaChart:Za,AreaChartIcon:Za,Armchair:Kl,ArmchairIcon:Kl,ArrowBigDown:Zl,ArrowBigDownDash:Xl,ArrowBigDownDashIcon:Xl,ArrowBigDownIcon:Zl,ArrowBigLeft:Ql,ArrowBigLeftDash:Yl,ArrowBigLeftDashIcon:Yl,ArrowBigLeftIcon:Ql,ArrowBigRight:ec,ArrowBigRightDash:Jl,ArrowBigRightDashIcon:Jl,ArrowBigRightIcon:ec,ArrowBigUp:tc,ArrowBigUpDash:ac,ArrowBigUpDashIcon:ac,ArrowBigUpIcon:tc,ArrowDown:uc,ArrowDown01:oc,ArrowDown01Icon:oc,ArrowDown10:nc,ArrowDown10Icon:nc,ArrowDownAZ:Ea,ArrowDownAZIcon:Ea,ArrowDownAz:Ea,ArrowDownAzIcon:Ea,ArrowDownCircle:pn,ArrowDownCircleIcon:pn,ArrowDownFromLine:rc,ArrowDownFromLineIcon:rc,ArrowDownIcon:uc,ArrowDownLeft:ic,ArrowDownLeftFromCircle:fn,ArrowDownLeftFromCircleIcon:fn,ArrowDownLeftFromSquare:Lr,ArrowDownLeftFromSquareIcon:Lr,ArrowDownLeftIcon:ic,ArrowDownLeftSquare:xr,ArrowDownLeftSquareIcon:xr,ArrowDownNarrowWide:lc,ArrowDownNarrowWideIcon:lc,ArrowDownRight:sc,ArrowDownRightFromCircle:kn,ArrowDownRightFromCircleIcon:kn,ArrowDownRightFromSquare:Sr,ArrowDownRightFromSquareIcon:Sr,ArrowDownRightIcon:sc,ArrowDownRightSquare:wr,ArrowDownRightSquareIcon:wr,ArrowDownSquare:vr,ArrowDownSquareIcon:vr,ArrowDownToDot:cc,ArrowDownToDotIcon:cc,ArrowDownToLine:dc,ArrowDownToLineIcon:dc,ArrowDownUp:hc,ArrowDownUpIcon:hc,ArrowDownWideNarrow:Ta,ArrowDownWideNarrowIcon:Ta,ArrowDownZA:Ha,ArrowDownZAIcon:Ha,ArrowDownZa:Ha,ArrowDownZaIcon:Ha,ArrowLeft:kc,ArrowLeftCircle:yn,ArrowLeftCircleIcon:yn,ArrowLeftFromLine:pc,ArrowLeftFromLineIcon:pc,ArrowLeftIcon:kc,ArrowLeftRight:fc,ArrowLeftRightIcon:fc,ArrowLeftSquare:Cr,ArrowLeftSquareIcon:Cr,ArrowLeftToLine:yc,ArrowLeftToLineIcon:yc,ArrowRight:Ts,ArrowRightCircle:bn,ArrowRightCircleIcon:bn,ArrowRightFromLine:mc,ArrowRightFromLineIcon:mc,ArrowRightIcon:Ts,ArrowRightLeft:gc,ArrowRightLeftIcon:gc,ArrowRightSquare:Ar,ArrowRightSquareIcon:Ar,ArrowRightToLine:bc,ArrowRightToLineIcon:bc,ArrowUp:Bc,ArrowUp01:Mc,ArrowUp01Icon:Mc,ArrowUp10:xc,ArrowUp10Icon:xc,ArrowUpAZ:ja,ArrowUpAZIcon:ja,ArrowUpAz:ja,ArrowUpAzIcon:ja,ArrowUpCircle:Mn,ArrowUpCircleIcon:Mn,ArrowUpDown:wc,ArrowUpDownIcon:wc,ArrowUpFromDot:vc,ArrowUpFromDotIcon:vc,ArrowUpFromLine:Cc,ArrowUpFromLineIcon:Cc,ArrowUpIcon:Bc,ArrowUpLeft:Lc,ArrowUpLeftFromCircle:mn,ArrowUpLeftFromCircleIcon:mn,ArrowUpLeftFromSquare:Ir,ArrowUpLeftFromSquareIcon:Ir,ArrowUpLeftIcon:Lc,ArrowUpLeftSquare:Vr,ArrowUpLeftSquareIcon:Vr,ArrowUpNarrowWide:Oa,ArrowUpNarrowWideIcon:Oa,ArrowUpRight:Sc,ArrowUpRightFromCircle:gn,ArrowUpRightFromCircleIcon:gn,ArrowUpRightFromSquare:_r,ArrowUpRightFromSquareIcon:_r,ArrowUpRightIcon:Sc,ArrowUpRightSquare:Br,ArrowUpRightSquareIcon:Br,ArrowUpSquare:zr,ArrowUpSquareIcon:zr,ArrowUpToLine:Ic,ArrowUpToLineIcon:Ic,ArrowUpWideNarrow:_c,ArrowUpWideNarrowIcon:_c,ArrowUpZA:Fa,ArrowUpZAIcon:Fa,ArrowUpZa:Fa,ArrowUpZaIcon:Fa,ArrowsUpFromLine:Ac,ArrowsUpFromLineIcon:Ac,Asterisk:Vc,AsteriskIcon:Vc,AsteriskSquare:qr,AsteriskSquareIcon:qr,AtSign:zc,AtSignIcon:zc,Atom:qc,AtomIcon:qc,AudioLines:Pc,AudioLinesIcon:Pc,AudioWaveform:Dc,AudioWaveformIcon:Dc,Award:Ec,AwardIcon:Ec,Axe:Tc,AxeIcon:Tc,Axis3D:Ra,Axis3DIcon:Ra,Axis3d:Ra,Axis3dIcon:Ra,Baby:jc,BabyIcon:jc,Backpack:Hc,BackpackIcon:Hc,Badge:td,BadgeAlert:Oc,BadgeAlertIcon:Oc,BadgeCent:Fc,BadgeCentIcon:Fc,BadgeCheck:Na,BadgeCheckIcon:Na,BadgeDollarSign:Rc,BadgeDollarSignIcon:Rc,BadgeEuro:Nc,BadgeEuroIcon:Nc,BadgeHelp:$a,BadgeHelpIcon:$a,BadgeIcon:td,BadgeIndianRupee:$c,BadgeIndianRupeeIcon:$c,BadgeInfo:Uc,BadgeInfoIcon:Uc,BadgeJapaneseYen:Wc,BadgeJapaneseYenIcon:Wc,BadgeMinus:Gc,BadgeMinusIcon:Gc,BadgePercent:Kc,BadgePercentIcon:Kc,BadgePlus:Xc,BadgePlusIcon:Xc,BadgePoundSterling:Zc,BadgePoundSterlingIcon:Zc,BadgeQuestionMark:$a,BadgeQuestionMarkIcon:$a,BadgeRussianRuble:Yc,BadgeRussianRubleIcon:Yc,BadgeSwissFranc:Qc,BadgeSwissFrancIcon:Qc,BadgeTurkishLira:Jc,BadgeTurkishLiraIcon:Jc,BadgeX:ed,BadgeXIcon:ed,BaggageClaim:ad,BaggageClaimIcon:ad,Balloon:nd,BalloonIcon:nd,Ban:rd,BanIcon:rd,Banana:od,BananaIcon:od,Bandage:id,BandageIcon:id,Banknote:ud,BanknoteArrowDown:sd,BanknoteArrowDownIcon:sd,BanknoteArrowUp:ld,BanknoteArrowUpIcon:ld,BanknoteIcon:ud,BanknoteX:cd,BanknoteXIcon:cd,BarChart:on,BarChart2:rn,BarChart2Icon:rn,BarChart3:an,BarChart3Icon:an,BarChart4:tn,BarChart4Icon:tn,BarChartBig:en,BarChartBigIcon:en,BarChartHorizontal:Ja,BarChartHorizontalBig:Ya,BarChartHorizontalBigIcon:Ya,BarChartHorizontalIcon:Ja,BarChartIcon:on,Barcode:dd,BarcodeIcon:dd,Barrel:hd,BarrelIcon:hd,Baseline:pd,BaselineIcon:pd,Bath:yd,BathIcon:yd,Battery:xd,BatteryCharging:fd,BatteryChargingIcon:fd,BatteryFull:kd,BatteryFullIcon:kd,BatteryIcon:xd,BatteryLow:md,BatteryLowIcon:md,BatteryMedium:bd,BatteryMediumIcon:bd,BatteryPlus:gd,BatteryPlusIcon:gd,BatteryWarning:Md,BatteryWarningIcon:Md,Beaker:wd,BeakerIcon:wd,Bean:Cd,BeanIcon:Cd,BeanOff:vd,BeanOffIcon:vd,Bed:Id,BedDouble:Ld,BedDoubleIcon:Ld,BedIcon:Id,BedSingle:Sd,BedSingleIcon:Sd,Beef:_d,BeefIcon:_d,Beer:Bd,BeerIcon:Bd,BeerOff:Ad,BeerOffIcon:Ad,Bell:Ed,BellDot:Vd,BellDotIcon:Vd,BellElectric:zd,BellElectricIcon:zd,BellIcon:Ed,BellMinus:qd,BellMinusIcon:qd,BellOff:Pd,BellOffIcon:Pd,BellPlus:Dd,BellPlusIcon:Dd,BellRing:Td,BellRingIcon:Td,BetweenHorizonalEnd:Ua,BetweenHorizonalEndIcon:Ua,BetweenHorizonalStart:Wa,BetweenHorizonalStartIcon:Wa,BetweenHorizontalEnd:Ua,BetweenHorizontalEndIcon:Ua,BetweenHorizontalStart:Wa,BetweenHorizontalStartIcon:Wa,BetweenVerticalEnd:Hd,BetweenVerticalEndIcon:Hd,BetweenVerticalStart:jd,BetweenVerticalStartIcon:jd,BicepsFlexed:Od,BicepsFlexedIcon:Od,Bike:Fd,BikeIcon:Fd,Binary:Rd,BinaryIcon:Rd,Binoculars:$d,BinocularsIcon:$d,Biohazard:Nd,BiohazardIcon:Nd,Bird:Ud,BirdIcon:Ud,Birdhouse:Wd,BirdhouseIcon:Wd,Bitcoin:Gd,BitcoinIcon:Gd,Blend:Kd,BlendIcon:Kd,Blinds:Xd,BlindsIcon:Xd,Blocks:Yd,BlocksIcon:Yd,Bluetooth:e0,BluetoothConnected:Zd,BluetoothConnectedIcon:Zd,BluetoothIcon:e0,BluetoothOff:Qd,BluetoothOffIcon:Qd,BluetoothSearching:Jd,BluetoothSearchingIcon:Jd,Bold:t0,BoldIcon:t0,Bolt:a0,BoltIcon:a0,Bomb:n0,BombIcon:n0,Bone:o0,BoneIcon:o0,Book:A0,BookA:r0,BookAIcon:r0,BookAlert:i0,BookAlertIcon:i0,BookAudio:s0,BookAudioIcon:s0,BookCheck:c0,BookCheckIcon:c0,BookCopy:l0,BookCopyIcon:l0,BookDashed:Ga,BookDashedIcon:Ga,BookDown:d0,BookDownIcon:d0,BookHeadphones:h0,BookHeadphonesIcon:h0,BookHeart:u0,BookHeartIcon:u0,BookIcon:A0,BookImage:p0,BookImageIcon:p0,BookKey:y0,BookKeyIcon:y0,BookLock:f0,BookLockIcon:f0,BookMarked:k0,BookMarkedIcon:k0,BookMinus:m0,BookMinusIcon:m0,BookOpen:M0,BookOpenCheck:g0,BookOpenCheckIcon:g0,BookOpenIcon:M0,BookOpenText:b0,BookOpenTextIcon:b0,BookPlus:x0,BookPlusIcon:x0,BookSearch:w0,BookSearchIcon:w0,BookTemplate:Ga,BookTemplateIcon:Ga,BookText:v0,BookTextIcon:v0,BookType:C0,BookTypeIcon:C0,BookUp:L0,BookUp2:S0,BookUp2Icon:S0,BookUpIcon:L0,BookUser:I0,BookUserIcon:I0,BookX:_0,BookXIcon:_0,Bookmark:P0,BookmarkCheck:B0,BookmarkCheckIcon:B0,BookmarkIcon:P0,BookmarkMinus:V0,BookmarkMinusIcon:V0,BookmarkPlus:z0,BookmarkPlusIcon:z0,BookmarkX:q0,BookmarkXIcon:q0,BoomBox:E0,BoomBoxIcon:E0,Bot:H0,BotIcon:H0,BotMessageSquare:D0,BotMessageSquareIcon:D0,BotOff:T0,BotOffIcon:T0,BottleWine:O0,BottleWineIcon:O0,BowArrow:j0,BowArrowIcon:j0,Box:F0,BoxIcon:F0,BoxSelect:Wr,BoxSelectIcon:Wr,Boxes:R0,BoxesIcon:R0,Braces:Ka,BracesIcon:Ka,Brackets:N0,BracketsIcon:N0,Brain:W0,BrainCircuit:U0,BrainCircuitIcon:U0,BrainCog:$0,BrainCogIcon:$0,BrainIcon:W0,BrickWall:K0,BrickWallFire:G0,BrickWallFireIcon:G0,BrickWallIcon:K0,BrickWallShield:X0,BrickWallShieldIcon:X0,Briefcase:Q0,BriefcaseBusiness:Z0,BriefcaseBusinessIcon:Z0,BriefcaseConveyorBelt:Y0,BriefcaseConveyorBeltIcon:Y0,BriefcaseIcon:Q0,BriefcaseMedical:J0,BriefcaseMedicalIcon:J0,BringToFront:e2,BringToFrontIcon:e2,Brush:a2,BrushCleaning:t2,BrushCleaningIcon:t2,BrushIcon:a2,Bubbles:n2,BubblesIcon:n2,Bug:i2,BugIcon:i2,BugOff:o2,BugOffIcon:o2,BugPlay:r2,BugPlayIcon:r2,Building:l2,Building2:s2,Building2Icon:s2,BuildingIcon:l2,Bus:d2,BusFront:c2,BusFrontIcon:c2,BusIcon:d2,Cable:u2,CableCar:h2,CableCarIcon:h2,CableIcon:u2,Cake:y2,CakeIcon:y2,CakeSlice:p2,CakeSliceIcon:p2,Calculator:f2,CalculatorIcon:f2,Calendar:Hs,Calendar1:k2,Calendar1Icon:k2,CalendarArrowDown:b2,CalendarArrowDownIcon:b2,CalendarArrowUp:m2,CalendarArrowUpIcon:m2,CalendarCheck:M2,CalendarCheck2:g2,CalendarCheck2Icon:g2,CalendarCheckIcon:M2,CalendarClock:x2,CalendarClockIcon:x2,CalendarCog:v2,CalendarCogIcon:v2,CalendarDays:w2,CalendarDaysIcon:w2,CalendarFold:C2,CalendarFoldIcon:C2,CalendarHeart:L2,CalendarHeartIcon:L2,CalendarIcon:Hs,CalendarMinus:I2,CalendarMinus2:S2,CalendarMinus2Icon:S2,CalendarMinusIcon:I2,CalendarOff:_2,CalendarOffIcon:_2,CalendarPlus:B2,CalendarPlus2:A2,CalendarPlus2Icon:A2,CalendarPlusIcon:B2,CalendarRange:V2,CalendarRangeIcon:V2,CalendarSearch:z2,CalendarSearchIcon:z2,CalendarSync:q2,CalendarSyncIcon:q2,CalendarX:D2,CalendarX2:P2,CalendarX2Icon:P2,CalendarXIcon:D2,Calendars:E2,CalendarsIcon:E2,Camera:H2,CameraIcon:H2,CameraOff:T2,CameraOffIcon:T2,CandlestickChart:Qa,CandlestickChartIcon:Qa,Candy:F2,CandyCane:j2,CandyCaneIcon:j2,CandyIcon:F2,CandyOff:O2,CandyOffIcon:O2,Cannabis:N2,CannabisIcon:N2,CannabisOff:R2,CannabisOffIcon:R2,Captions:Xa,CaptionsIcon:Xa,CaptionsOff:$2,CaptionsOffIcon:$2,Car:G2,CarFront:U2,CarFrontIcon:U2,CarIcon:G2,CarTaxiFront:W2,CarTaxiFrontIcon:W2,Caravan:K2,CaravanIcon:K2,CardSim:X2,CardSimIcon:X2,Carrot:Z2,CarrotIcon:Z2,CaseLower:Y2,CaseLowerIcon:Y2,CaseSensitive:Q2,CaseSensitiveIcon:Q2,CaseUpper:J2,CaseUpperIcon:J2,CassetteTape:eh,CassetteTapeIcon:eh,Cast:th,CastIcon:th,Castle:ah,CastleIcon:ah,Cat:nh,CatIcon:nh,Cctv:oh,CctvIcon:oh,ChartArea:Za,ChartAreaIcon:Za,ChartBar:Ja,ChartBarBig:Ya,ChartBarBigIcon:Ya,ChartBarDecreasing:ih,ChartBarDecreasingIcon:ih,ChartBarIcon:Ja,ChartBarIncreasing:rh,ChartBarIncreasingIcon:rh,ChartBarStacked:sh,ChartBarStackedIcon:sh,ChartCandlestick:Qa,ChartCandlestickIcon:Qa,ChartColumn:an,ChartColumnBig:en,ChartColumnBigIcon:en,ChartColumnDecreasing:lh,ChartColumnDecreasingIcon:lh,ChartColumnIcon:an,ChartColumnIncreasing:tn,ChartColumnIncreasingIcon:tn,ChartColumnStacked:ch,ChartColumnStackedIcon:ch,ChartGantt:dh,ChartGanttIcon:dh,ChartLine:nn,ChartLineIcon:nn,ChartNetwork:hh,ChartNetworkIcon:hh,ChartNoAxesColumn:rn,ChartNoAxesColumnDecreasing:uh,ChartNoAxesColumnDecreasingIcon:uh,ChartNoAxesColumnIcon:rn,ChartNoAxesColumnIncreasing:on,ChartNoAxesColumnIncreasingIcon:on,ChartNoAxesCombined:ph,ChartNoAxesCombinedIcon:ph,ChartNoAxesGantt:ln,ChartNoAxesGanttIcon:ln,ChartPie:sn,ChartPieIcon:sn,ChartScatter:cn,ChartScatterIcon:cn,ChartSpline:fh,ChartSplineIcon:fh,Check:ca,CheckCheck:yh,CheckCheckIcon:yh,CheckCircle:da,CheckCircle2:xn,CheckCircle2Icon:xn,CheckCircleIcon:da,CheckIcon:ca,CheckLine:kh,CheckLineIcon:kh,CheckSquare:Tr,CheckSquare2:Hr,CheckSquare2Icon:Hr,CheckSquareIcon:Tr,ChefHat:mh,ChefHatIcon:mh,Cherry:gh,CherryIcon:gh,ChessBishop:bh,ChessBishopIcon:bh,ChessKing:Mh,ChessKingIcon:Mh,ChessKnight:xh,ChessKnightIcon:xh,ChessPawn:wh,ChessPawnIcon:wh,ChessQueen:vh,ChessQueenIcon:vh,ChessRook:Ch,ChessRookIcon:Ch,ChevronDown:St,ChevronDownCircle:vn,ChevronDownCircleIcon:vn,ChevronDownIcon:St,ChevronDownSquare:jr,ChevronDownSquareIcon:jr,ChevronFirst:Lh,ChevronFirstIcon:Lh,ChevronLast:Sh,ChevronLastIcon:Sh,ChevronLeft:dn,ChevronLeftCircle:Cn,ChevronLeftCircleIcon:Cn,ChevronLeftIcon:dn,ChevronLeftSquare:Or,ChevronLeftSquareIcon:Or,ChevronRight:hn,ChevronRightCircle:wn,ChevronRightCircleIcon:wn,ChevronRightIcon:hn,ChevronRightSquare:Fr,ChevronRightSquareIcon:Fr,ChevronUp:js,ChevronUpCircle:Ln,ChevronUpCircleIcon:Ln,ChevronUpIcon:js,ChevronUpSquare:Rr,ChevronUpSquareIcon:Rr,ChevronsDown:_h,ChevronsDownIcon:_h,ChevronsDownUp:Ih,ChevronsDownUpIcon:Ih,ChevronsLeft:Os,ChevronsLeftIcon:Os,ChevronsLeftRight:Bh,ChevronsLeftRightEllipsis:Ah,ChevronsLeftRightEllipsisIcon:Ah,ChevronsLeftRightIcon:Bh,ChevronsRight:Fs,ChevronsRightIcon:Fs,ChevronsRightLeft:Vh,ChevronsRightLeftIcon:Vh,ChevronsUp:qh,ChevronsUpDown:zh,ChevronsUpDownIcon:zh,ChevronsUpIcon:qh,Chrome:un,ChromeIcon:un,Chromium:un,ChromiumIcon:un,Church:Dh,ChurchIcon:Dh,Cigarette:Eh,CigaretteIcon:Eh,CigaretteOff:Ph,CigaretteOffIcon:Ph,Circle:Rs,CircleAlert:It,CircleAlertIcon:It,CircleArrowDown:pn,CircleArrowDownIcon:pn,CircleArrowLeft:yn,CircleArrowLeftIcon:yn,CircleArrowOutDownLeft:fn,CircleArrowOutDownLeftIcon:fn,CircleArrowOutDownRight:kn,CircleArrowOutDownRightIcon:kn,CircleArrowOutUpLeft:mn,CircleArrowOutUpLeftIcon:mn,CircleArrowOutUpRight:gn,CircleArrowOutUpRightIcon:gn,CircleArrowRight:bn,CircleArrowRightIcon:bn,CircleArrowUp:Mn,CircleArrowUpIcon:Mn,CircleCheck:xn,CircleCheckBig:da,CircleCheckBigIcon:da,CircleCheckIcon:xn,CircleChevronDown:vn,CircleChevronDownIcon:vn,CircleChevronLeft:Cn,CircleChevronLeftIcon:Cn,CircleChevronRight:wn,CircleChevronRightIcon:wn,CircleChevronUp:Ln,CircleChevronUpIcon:Ln,CircleDashed:Th,CircleDashedIcon:Th,CircleDivide:Sn,CircleDivideIcon:Sn,CircleDollarSign:Hh,CircleDollarSignIcon:Hh,CircleDot:Oh,CircleDotDashed:jh,CircleDotDashedIcon:jh,CircleDotIcon:Oh,CircleEllipsis:Rh,CircleEllipsisIcon:Rh,CircleEqual:Fh,CircleEqualIcon:Fh,CircleFadingArrowUp:Nh,CircleFadingArrowUpIcon:Nh,CircleFadingPlus:$h,CircleFadingPlusIcon:$h,CircleGauge:In,CircleGaugeIcon:In,CircleHelp:_t,CircleHelpIcon:_t,CircleIcon:Rs,CircleMinus:_n,CircleMinusIcon:_n,CircleOff:Uh,CircleOffIcon:Uh,CircleParking:Bn,CircleParkingIcon:Bn,CircleParkingOff:An,CircleParkingOffIcon:An,CirclePause:Vn,CirclePauseIcon:Vn,CirclePercent:zn,CirclePercentIcon:zn,CirclePile:Wh,CirclePileIcon:Wh,CirclePlay:qn,CirclePlayIcon:qn,CirclePlus:Pn,CirclePlusIcon:Pn,CirclePoundSterling:Gh,CirclePoundSterlingIcon:Gh,CirclePower:Dn,CirclePowerIcon:Dn,CircleQuestionMark:_t,CircleQuestionMarkIcon:_t,CircleSlash:Kh,CircleSlash2:En,CircleSlash2Icon:En,CircleSlashIcon:Kh,CircleSlashed:En,CircleSlashedIcon:En,CircleSmall:Xh,CircleSmallIcon:Xh,CircleStar:Zh,CircleStarIcon:Zh,CircleStop:Tn,CircleStopIcon:Tn,CircleUser:jn,CircleUserIcon:jn,CircleUserRound:Hn,CircleUserRoundIcon:Hn,CircleX:On,CircleXIcon:On,CircuitBoard:Yh,CircuitBoardIcon:Yh,Citrus:Qh,CitrusIcon:Qh,Clapperboard:Jh,ClapperboardIcon:Jh,Clipboard:cu,ClipboardCheck:tu,ClipboardCheckIcon:tu,ClipboardClock:eu,ClipboardClockIcon:eu,ClipboardCopy:au,ClipboardCopyIcon:au,ClipboardEdit:Rn,ClipboardEditIcon:Rn,ClipboardIcon:cu,ClipboardList:nu,ClipboardListIcon:nu,ClipboardMinus:ou,ClipboardMinusIcon:ou,ClipboardPaste:ru,ClipboardPasteIcon:ru,ClipboardPen:Rn,ClipboardPenIcon:Rn,ClipboardPenLine:Fn,ClipboardPenLineIcon:Fn,ClipboardPlus:iu,ClipboardPlusIcon:iu,ClipboardSignature:Fn,ClipboardSignatureIcon:Fn,ClipboardType:su,ClipboardTypeIcon:su,ClipboardX:lu,ClipboardXIcon:lu,Clock:Ns,Clock1:du,Clock10:hu,Clock10Icon:hu,Clock11:uu,Clock11Icon:uu,Clock12:pu,Clock12Icon:pu,Clock1Icon:du,Clock2:yu,Clock2Icon:yu,Clock3:fu,Clock3Icon:fu,Clock4:ku,Clock4Icon:ku,Clock5:mu,Clock5Icon:mu,Clock6:gu,Clock6Icon:gu,Clock7:bu,Clock7Icon:bu,Clock8:Mu,Clock8Icon:Mu,Clock9:xu,Clock9Icon:xu,ClockAlert:wu,ClockAlertIcon:wu,ClockArrowDown:vu,ClockArrowDownIcon:vu,ClockArrowUp:Cu,ClockArrowUpIcon:Cu,ClockCheck:Lu,ClockCheckIcon:Lu,ClockFading:Su,ClockFadingIcon:Su,ClockIcon:Ns,ClockPlus:Iu,ClockPlusIcon:Iu,ClosedCaption:_u,ClosedCaptionIcon:_u,Cloud:Wu,CloudAlert:Au,CloudAlertIcon:Au,CloudBackup:Bu,CloudBackupIcon:Bu,CloudCheck:Vu,CloudCheckIcon:Vu,CloudCog:zu,CloudCogIcon:zu,CloudDownload:Nn,CloudDownloadIcon:Nn,CloudDrizzle:qu,CloudDrizzleIcon:qu,CloudFog:Pu,CloudFogIcon:Pu,CloudHail:Du,CloudHailIcon:Du,CloudIcon:Wu,CloudLightning:Eu,CloudLightningIcon:Eu,CloudMoon:Hu,CloudMoonIcon:Hu,CloudMoonRain:Tu,CloudMoonRainIcon:Tu,CloudOff:ju,CloudOffIcon:ju,CloudRain:Fu,CloudRainIcon:Fu,CloudRainWind:Ou,CloudRainWindIcon:Ou,CloudSnow:Ru,CloudSnowIcon:Ru,CloudSun:$u,CloudSunIcon:$u,CloudSunRain:Nu,CloudSunRainIcon:Nu,CloudSync:Uu,CloudSyncIcon:Uu,CloudUpload:ha,CloudUploadIcon:ha,Cloudy:Gu,CloudyIcon:Gu,Clover:Ku,CloverIcon:Ku,Club:Xu,ClubIcon:Xu,Code:Zu,Code2:$n,Code2Icon:$n,CodeIcon:Zu,CodeSquare:Nr,CodeSquareIcon:Nr,CodeXml:$n,CodeXmlIcon:$n,Codepen:Yu,CodepenIcon:Yu,Codesandbox:Qu,CodesandboxIcon:Qu,Coffee:Ju,CoffeeIcon:Ju,Cog:ep,CogIcon:ep,Coins:tp,CoinsIcon:tp,Columns:Un,Columns2:Un,Columns2Icon:Un,Columns3:Wn,Columns3Cog:At,Columns3CogIcon:At,Columns3Icon:Wn,Columns4:ap,Columns4Icon:ap,ColumnsIcon:Un,ColumnsSettings:At,ColumnsSettingsIcon:At,Combine:np,CombineIcon:np,Command:op,CommandIcon:op,Compass:rp,CompassIcon:rp,Component:ip,ComponentIcon:ip,Computer:sp,ComputerIcon:sp,ConciergeBell:lp,ConciergeBellIcon:lp,Cone:cp,ConeIcon:cp,Construction:dp,ConstructionIcon:dp,Contact:hp,Contact2:Gn,Contact2Icon:Gn,ContactIcon:hp,ContactRound:Gn,ContactRoundIcon:Gn,Container:up,ContainerIcon:up,Contrast:pp,ContrastIcon:pp,Cookie:fp,CookieIcon:fp,CookingPot:yp,CookingPotIcon:yp,Copy:xp,CopyCheck:kp,CopyCheckIcon:kp,CopyIcon:xp,CopyMinus:mp,CopyMinusIcon:mp,CopyPlus:gp,CopyPlusIcon:gp,CopySlash:Mp,CopySlashIcon:Mp,CopyX:bp,CopyXIcon:bp,Copyleft:wp,CopyleftIcon:wp,Copyright:vp,CopyrightIcon:vp,CornerDownLeft:Cp,CornerDownLeftIcon:Cp,CornerDownRight:Sp,CornerDownRightIcon:Sp,CornerLeftDown:Lp,CornerLeftDownIcon:Lp,CornerLeftUp:Ip,CornerLeftUpIcon:Ip,CornerRightDown:_p,CornerRightDownIcon:_p,CornerRightUp:Ap,CornerRightUpIcon:Ap,CornerUpLeft:Bp,CornerUpLeftIcon:Bp,CornerUpRight:Vp,CornerUpRightIcon:Vp,Cpu:cs,CpuIcon:cs,CreativeCommons:zp,CreativeCommonsIcon:zp,CreditCard:qp,CreditCardIcon:qp,Croissant:Pp,CroissantIcon:Pp,Crop:Dp,CropIcon:Dp,Cross:Ep,CrossIcon:Ep,Crosshair:Hp,CrosshairIcon:Hp,Crown:Tp,CrownIcon:Tp,Cuboid:jp,CuboidIcon:jp,CupSoda:Op,CupSodaIcon:Op,CurlyBraces:Ka,CurlyBracesIcon:Ka,Currency:Fp,CurrencyIcon:Fp,Cylinder:Rp,CylinderIcon:Rp,Dam:Np,DamIcon:Np,Database:Gp,DatabaseBackup:$p,DatabaseBackupIcon:$p,DatabaseIcon:Gp,DatabaseSearch:Up,DatabaseSearchIcon:Up,DatabaseZap:Wp,DatabaseZapIcon:Wp,DecimalsArrowLeft:Kp,DecimalsArrowLeftIcon:Kp,DecimalsArrowRight:Xp,DecimalsArrowRightIcon:Xp,Delete:Zp,DeleteIcon:Zp,Dessert:Yp,DessertIcon:Yp,Diameter:Qp,DiameterIcon:Qp,Diamond:ty,DiamondIcon:ty,DiamondMinus:Jp,DiamondMinusIcon:Jp,DiamondPercent:Kn,DiamondPercentIcon:Kn,DiamondPlus:ey,DiamondPlusIcon:ey,Dice1:ay,Dice1Icon:ay,Dice2:ny,Dice2Icon:ny,Dice3:oy,Dice3Icon:oy,Dice4:ry,Dice4Icon:ry,Dice5:iy,Dice5Icon:iy,Dice6:sy,Dice6Icon:sy,Dices:ly,DicesIcon:ly,Diff:cy,DiffIcon:cy,Disc:py,Disc2:dy,Disc2Icon:dy,Disc3:hy,Disc3Icon:hy,DiscAlbum:uy,DiscAlbumIcon:uy,DiscIcon:py,Divide:yy,DivideCircle:Sn,DivideCircleIcon:Sn,DivideIcon:yy,DivideSquare:Kr,DivideSquareIcon:Kr,Dna:ky,DnaIcon:ky,DnaOff:fy,DnaOffIcon:fy,Dock:my,DockIcon:my,Dog:by,DogIcon:by,DollarSign:gy,DollarSignIcon:gy,Donut:xy,DonutIcon:xy,DoorClosed:wy,DoorClosedIcon:wy,DoorClosedLocked:My,DoorClosedLockedIcon:My,DoorOpen:vy,DoorOpenIcon:vy,Dot:Cy,DotIcon:Cy,DotSquare:Gr,DotSquareIcon:Gr,Download:$s,DownloadCloud:Nn,DownloadCloudIcon:Nn,DownloadIcon:$s,DraftingCompass:Ly,DraftingCompassIcon:Ly,Drama:Iy,DramaIcon:Iy,Dribbble:Sy,DribbbleIcon:Sy,Drill:_y,DrillIcon:_y,Drone:Ay,DroneIcon:Ay,Droplet:Vy,DropletIcon:Vy,DropletOff:By,DropletOffIcon:By,Droplets:zy,DropletsIcon:zy,Drum:qy,DrumIcon:qy,Drumstick:Py,DrumstickIcon:Py,Dumbbell:Dy,DumbbellIcon:Dy,Ear:Ty,EarIcon:Ty,EarOff:Ey,EarOffIcon:Ey,Earth:Xn,EarthIcon:Xn,EarthLock:Hy,EarthLockIcon:Hy,Eclipse:jy,EclipseIcon:jy,Edit:Xe,Edit2:ir,Edit2Icon:ir,Edit3:rr,Edit3Icon:rr,EditIcon:Xe,Egg:Fy,EggFried:Oy,EggFriedIcon:Oy,EggIcon:Fy,EggOff:Ry,EggOffIcon:Ry,Ellipsis:ua,EllipsisIcon:ua,EllipsisVertical:Zn,EllipsisVerticalIcon:Zn,Equal:Uy,EqualApproximately:$y,EqualApproximatelyIcon:$y,EqualIcon:Uy,EqualNot:Ny,EqualNotIcon:Ny,EqualSquare:Xr,EqualSquareIcon:Xr,Eraser:Wy,EraserIcon:Wy,EthernetPort:Gy,EthernetPortIcon:Gy,Euro:Ky,EuroIcon:Ky,EvCharger:Xy,EvChargerIcon:Xy,Expand:Zy,ExpandIcon:Zy,ExternalLink:Yy,ExternalLinkIcon:Yy,Eye:ds,EyeClosed:Qy,EyeClosedIcon:Qy,EyeIcon:ds,EyeOff:Us,EyeOffIcon:Us,Facebook:Jy,FacebookIcon:Jy,Factory:ef,FactoryIcon:ef,Fan:tf,FanIcon:tf,FastForward:af,FastForwardIcon:af,Feather:nf,FeatherIcon:nf,Fence:of,FenceIcon:of,FerrisWheel:rf,FerrisWheelIcon:rf,Figma:sf,FigmaIcon:sf,File:Df,FileArchive:lf,FileArchiveIcon:lf,FileAudio:Bt,FileAudio2:Bt,FileAudio2Icon:Bt,FileAudioIcon:Bt,FileAxis3D:Yn,FileAxis3DIcon:Yn,FileAxis3d:Yn,FileAxis3dIcon:Yn,FileBadge:Qn,FileBadge2:Qn,FileBadge2Icon:Qn,FileBadgeIcon:Qn,FileBarChart:to,FileBarChart2:ao,FileBarChart2Icon:ao,FileBarChartIcon:to,FileBox:cf,FileBoxIcon:cf,FileBraces:eo,FileBracesCorner:Jn,FileBracesCornerIcon:Jn,FileBracesIcon:eo,FileChartColumn:ao,FileChartColumnIcon:ao,FileChartColumnIncreasing:to,FileChartColumnIncreasingIcon:to,FileChartLine:no,FileChartLineIcon:no,FileChartPie:oo,FileChartPieIcon:oo,FileCheck:df,FileCheck2:ro,FileCheck2Icon:ro,FileCheckCorner:ro,FileCheckCornerIcon:ro,FileCheckIcon:df,FileClock:hf,FileClockIcon:hf,FileCode:uf,FileCode2:io,FileCode2Icon:io,FileCodeCorner:io,FileCodeCornerIcon:io,FileCodeIcon:uf,FileCog:so,FileCog2:so,FileCog2Icon:so,FileCogIcon:so,FileDiff:pf,FileDiffIcon:pf,FileDigit:ff,FileDigitIcon:ff,FileDown:yf,FileDownIcon:yf,FileEdit:fo,FileEditIcon:fo,FileExclamationPoint:lo,FileExclamationPointIcon:lo,FileHeadphone:Bt,FileHeadphoneIcon:Bt,FileHeart:kf,FileHeartIcon:kf,FileIcon:Df,FileImage:mf,FileImageIcon:mf,FileInput:gf,FileInputIcon:gf,FileJson:eo,FileJson2:Jn,FileJson2Icon:Jn,FileJsonIcon:eo,FileKey:co,FileKey2:co,FileKey2Icon:co,FileKeyIcon:co,FileLineChart:no,FileLineChartIcon:no,FileLock:ho,FileLock2:ho,FileLock2Icon:ho,FileLockIcon:ho,FileMinus:Mf,FileMinus2:uo,FileMinus2Icon:uo,FileMinusCorner:uo,FileMinusCornerIcon:uo,FileMinusIcon:Mf,FileMusic:bf,FileMusicIcon:bf,FileOutput:xf,FileOutputIcon:xf,FilePen:fo,FilePenIcon:fo,FilePenLine:po,FilePenLineIcon:po,FilePieChart:oo,FilePieChartIcon:oo,FilePlay:yo,FilePlayIcon:yo,FilePlus:wf,FilePlus2:ko,FilePlus2Icon:ko,FilePlusCorner:ko,FilePlusCornerIcon:ko,FilePlusIcon:wf,FileQuestion:mo,FileQuestionIcon:mo,FileQuestionMark:mo,FileQuestionMarkIcon:mo,FileScan:vf,FileScanIcon:vf,FileSearch:Cf,FileSearch2:go,FileSearch2Icon:go,FileSearchCorner:go,FileSearchCornerIcon:go,FileSearchIcon:Cf,FileSignal:bo,FileSignalIcon:bo,FileSignature:po,FileSignatureIcon:po,FileSliders:Lf,FileSlidersIcon:Lf,FileSpreadsheet:Sf,FileSpreadsheetIcon:Sf,FileStack:If,FileStackIcon:If,FileSymlink:_f,FileSymlinkIcon:_f,FileTerminal:Af,FileTerminalIcon:Af,FileText:hs,FileTextIcon:hs,FileType:Bf,FileType2:Mo,FileType2Icon:Mo,FileTypeCorner:Mo,FileTypeCornerIcon:Mo,FileTypeIcon:Bf,FileUp:Vf,FileUpIcon:Vf,FileUser:zf,FileUserIcon:zf,FileVideo:yo,FileVideo2:xo,FileVideo2Icon:xo,FileVideoCamera:xo,FileVideoCameraIcon:xo,FileVideoIcon:yo,FileVolume:qf,FileVolume2:bo,FileVolume2Icon:bo,FileVolumeIcon:qf,FileWarning:lo,FileWarningIcon:lo,FileX:Pf,FileX2:wo,FileX2Icon:wo,FileXCorner:wo,FileXCornerIcon:wo,FileXIcon:Pf,Files:Tf,FilesIcon:Tf,Film:Ef,FilmIcon:Ef,Filter:Io,FilterIcon:Io,FilterX:So,FilterXIcon:So,Fingerprint:vo,FingerprintIcon:vo,FingerprintPattern:vo,FingerprintPatternIcon:vo,FireExtinguisher:Hf,FireExtinguisherIcon:Hf,Fish:Ff,FishIcon:Ff,FishOff:jf,FishOffIcon:jf,FishSymbol:Of,FishSymbolIcon:Of,FishingHook:Rf,FishingHookIcon:Rf,Flag:Wf,FlagIcon:Wf,FlagOff:Nf,FlagOffIcon:Nf,FlagTriangleLeft:$f,FlagTriangleLeftIcon:$f,FlagTriangleRight:Uf,FlagTriangleRightIcon:Uf,Flame:Kf,FlameIcon:Kf,FlameKindling:Gf,FlameKindlingIcon:Gf,Flashlight:Zf,FlashlightIcon:Zf,FlashlightOff:Xf,FlashlightOffIcon:Xf,FlaskConical:Qf,FlaskConicalIcon:Qf,FlaskConicalOff:Yf,FlaskConicalOffIcon:Yf,FlaskRound:Jf,FlaskRoundIcon:Jf,FlipHorizontal:Dr,FlipHorizontal2:ek,FlipHorizontal2Icon:ek,FlipHorizontalIcon:Dr,FlipVertical:Er,FlipVertical2:tk,FlipVertical2Icon:tk,FlipVerticalIcon:Er,Flower:nk,Flower2:ak,Flower2Icon:ak,FlowerIcon:nk,Focus:ok,FocusIcon:ok,FoldHorizontal:rk,FoldHorizontalIcon:rk,FoldVertical:ik,FoldVerticalIcon:ik,Folder:Pk,FolderArchive:sk,FolderArchiveIcon:sk,FolderCheck:lk,FolderCheckIcon:lk,FolderClock:ck,FolderClockIcon:ck,FolderClosed:dk,FolderClosedIcon:dk,FolderCode:hk,FolderCodeIcon:hk,FolderCog:Co,FolderCog2:Co,FolderCog2Icon:Co,FolderCogIcon:Co,FolderDot:uk,FolderDotIcon:uk,FolderDown:pk,FolderDownIcon:pk,FolderEdit:Lo,FolderEditIcon:Lo,FolderGit:fk,FolderGit2:yk,FolderGit2Icon:yk,FolderGitIcon:fk,FolderHeart:kk,FolderHeartIcon:kk,FolderIcon:Pk,FolderInput:mk,FolderInputIcon:mk,FolderKanban:bk,FolderKanbanIcon:bk,FolderKey:gk,FolderKeyIcon:gk,FolderLock:Mk,FolderLockIcon:Mk,FolderMinus:vk,FolderMinusIcon:vk,FolderOpen:wk,FolderOpenDot:xk,FolderOpenDotIcon:xk,FolderOpenIcon:wk,FolderOutput:Ck,FolderOutputIcon:Ck,FolderPen:Lo,FolderPenIcon:Lo,FolderPlus:Ik,FolderPlusIcon:Ik,FolderRoot:Lk,FolderRootIcon:Lk,FolderSearch:_k,FolderSearch2:Sk,FolderSearch2Icon:Sk,FolderSearchIcon:_k,FolderSymlink:Bk,FolderSymlinkIcon:Bk,FolderSync:Ak,FolderSyncIcon:Ak,FolderTree:Vk,FolderTreeIcon:Vk,FolderUp:zk,FolderUpIcon:zk,FolderX:qk,FolderXIcon:qk,Folders:Dk,FoldersIcon:Dk,Footprints:Ek,FootprintsIcon:Ek,ForkKnife:Fi,ForkKnifeCrossed:Oi,ForkKnifeCrossedIcon:Oi,ForkKnifeIcon:Fi,Forklift:Tk,ForkliftIcon:Tk,Form:Hk,FormIcon:Hk,FormInput:cr,FormInputIcon:cr,Forward:Ok,ForwardIcon:Ok,Frame:jk,FrameIcon:jk,Framer:Fk,FramerIcon:Fk,Frown:Rk,FrownIcon:Rk,Fuel:Nk,FuelIcon:Nk,Fullscreen:$k,FullscreenIcon:$k,FunctionSquare:Zr,FunctionSquareIcon:Zr,Funnel:Io,FunnelIcon:Io,FunnelPlus:Uk,FunnelPlusIcon:Uk,FunnelX:So,FunnelXIcon:So,GalleryHorizontal:Gk,GalleryHorizontalEnd:Wk,GalleryHorizontalEndIcon:Wk,GalleryHorizontalIcon:Gk,GalleryThumbnails:Kk,GalleryThumbnailsIcon:Kk,GalleryVertical:Zk,GalleryVerticalEnd:Xk,GalleryVerticalEndIcon:Xk,GalleryVerticalIcon:Zk,Gamepad:em,Gamepad2:Yk,Gamepad2Icon:Yk,GamepadDirectional:Qk,GamepadDirectionalIcon:Qk,GamepadIcon:em,GanttChart:ln,GanttChartIcon:ln,GanttChartSquare:Pt,GanttChartSquareIcon:Pt,Gauge:Jk,GaugeCircle:In,GaugeCircleIcon:In,GaugeIcon:Jk,Gavel:tm,GavelIcon:tm,Gem:am,GemIcon:am,GeorgianLari:nm,GeorgianLariIcon:nm,Ghost:om,GhostIcon:om,Gift:rm,GiftIcon:rm,GitBranch:lm,GitBranchIcon:lm,GitBranchMinus:im,GitBranchMinusIcon:im,GitBranchPlus:sm,GitBranchPlusIcon:sm,GitCommit:_o,GitCommitHorizontal:_o,GitCommitHorizontalIcon:_o,GitCommitIcon:_o,GitCommitVertical:cm,GitCommitVerticalIcon:cm,GitCompare:hm,GitCompareArrows:dm,GitCompareArrowsIcon:dm,GitCompareIcon:hm,GitFork:um,GitForkIcon:um,GitGraph:pm,GitGraphIcon:pm,GitMerge:fm,GitMergeConflict:ym,GitMergeConflictIcon:ym,GitMergeIcon:fm,GitPullRequest:xm,GitPullRequestArrow:km,GitPullRequestArrowIcon:km,GitPullRequestClosed:mm,GitPullRequestClosedIcon:mm,GitPullRequestCreate:bm,GitPullRequestCreateArrow:gm,GitPullRequestCreateArrowIcon:gm,GitPullRequestCreateIcon:bm,GitPullRequestDraft:Mm,GitPullRequestDraftIcon:Mm,GitPullRequestIcon:xm,Github:wm,GithubIcon:wm,Gitlab:vm,GitlabIcon:vm,GlassWater:Cm,GlassWaterIcon:Cm,Glasses:Lm,GlassesIcon:Lm,Globe:Ws,Globe2:Xn,Globe2Icon:Xn,GlobeIcon:Ws,GlobeLock:Sm,GlobeLockIcon:Sm,GlobeOff:Im,GlobeOffIcon:Im,GlobeX:_m,GlobeXIcon:_m,Goal:Am,GoalIcon:Am,Gpu:Vm,GpuIcon:Vm,Grab:qo,GrabIcon:qo,GraduationCap:Bm,GraduationCapIcon:Bm,Grape:zm,GrapeIcon:zm,Grid:Vt,Grid2X2:zo,Grid2X2Check:Ao,Grid2X2CheckIcon:Ao,Grid2X2Icon:zo,Grid2X2Plus:Vo,Grid2X2PlusIcon:Vo,Grid2X2X:Bo,Grid2X2XIcon:Bo,Grid2x2:zo,Grid2x2Check:Ao,Grid2x2CheckIcon:Ao,Grid2x2Icon:zo,Grid2x2Plus:Vo,Grid2x2PlusIcon:Vo,Grid2x2X:Bo,Grid2x2XIcon:Bo,Grid3X3:Vt,Grid3X3Icon:Vt,Grid3x2:qm,Grid3x2Icon:qm,Grid3x3:Vt,Grid3x3Icon:Vt,GridIcon:Vt,Grip:Em,GripHorizontal:Pm,GripHorizontalIcon:Pm,GripIcon:Em,GripVertical:Dm,GripVerticalIcon:Dm,Group:Hm,GroupIcon:Hm,Guitar:Tm,GuitarIcon:Tm,Ham:jm,HamIcon:jm,Hamburger:Om,HamburgerIcon:Om,Hammer:Fm,HammerIcon:Fm,Hand:Gm,HandCoins:Rm,HandCoinsIcon:Rm,HandFist:Nm,HandFistIcon:Nm,HandGrab:qo,HandGrabIcon:qo,HandHeart:$m,HandHeartIcon:$m,HandHelping:Po,HandHelpingIcon:Po,HandIcon:Gm,HandMetal:Um,HandMetalIcon:Um,HandPlatter:Wm,HandPlatterIcon:Wm,Handbag:Km,HandbagIcon:Km,Handshake:Xm,HandshakeIcon:Xm,HardDrive:Qm,HardDriveDownload:Zm,HardDriveDownloadIcon:Zm,HardDriveIcon:Qm,HardDriveUpload:Ym,HardDriveUploadIcon:Ym,HardHat:Jm,HardHatIcon:Jm,Hash:e4,HashIcon:e4,HatGlasses:t4,HatGlassesIcon:t4,Haze:a4,HazeIcon:a4,Hd:n4,HdIcon:n4,HdmiPort:o4,HdmiPortIcon:o4,Heading:h4,Heading1:r4,Heading1Icon:r4,Heading2:i4,Heading2Icon:i4,Heading3:s4,Heading3Icon:s4,Heading4:l4,Heading4Icon:l4,Heading5:c4,Heading5Icon:c4,Heading6:d4,Heading6Icon:d4,HeadingIcon:h4,HeadphoneOff:u4,HeadphoneOffIcon:u4,Headphones:p4,HeadphonesIcon:p4,Headset:y4,HeadsetIcon:y4,Heart:x4,HeartCrack:f4,HeartCrackIcon:f4,HeartHandshake:m4,HeartHandshakeIcon:m4,HeartIcon:x4,HeartMinus:k4,HeartMinusIcon:k4,HeartOff:g4,HeartOffIcon:g4,HeartPlus:b4,HeartPlusIcon:b4,HeartPulse:M4,HeartPulseIcon:M4,Heater:w4,HeaterIcon:w4,Helicopter:v4,HelicopterIcon:v4,HelpCircle:_t,HelpCircleIcon:_t,HelpingHand:Po,HelpingHandIcon:Po,Hexagon:C4,HexagonIcon:C4,Highlighter:L4,HighlighterIcon:L4,History:S4,HistoryIcon:S4,Home:Do,HomeIcon:Do,Hop:_4,HopIcon:_4,HopOff:I4,HopOffIcon:I4,Hospital:A4,HospitalIcon:A4,Hotel:B4,HotelIcon:B4,Hourglass:V4,HourglassIcon:V4,House:Do,HouseHeart:z4,HouseHeartIcon:z4,HouseIcon:Do,HousePlug:q4,HousePlugIcon:q4,HousePlus:P4,HousePlusIcon:P4,HouseWifi:D4,HouseWifiIcon:D4,IceCream:To,IceCream2:Eo,IceCream2Icon:Eo,IceCreamBowl:Eo,IceCreamBowlIcon:Eo,IceCreamCone:To,IceCreamConeIcon:To,IceCreamIcon:To,Icon:j_,IdCard:T4,IdCardIcon:T4,IdCardLanyard:E4,IdCardLanyardIcon:E4,Image:U4,ImageDown:H4,ImageDownIcon:H4,ImageIcon:U4,ImageMinus:j4,ImageMinusIcon:j4,ImageOff:O4,ImageOffIcon:O4,ImagePlay:F4,ImagePlayIcon:F4,ImagePlus:R4,ImagePlusIcon:R4,ImageUp:N4,ImageUpIcon:N4,ImageUpscale:$4,ImageUpscaleIcon:$4,Images:W4,ImagesIcon:W4,Import:K4,ImportIcon:K4,Inbox:G4,InboxIcon:G4,Indent:qt,IndentDecrease:zt,IndentDecreaseIcon:zt,IndentIcon:qt,IndentIncrease:qt,IndentIncreaseIcon:qt,IndianRupee:X4,IndianRupeeIcon:X4,Infinity:Z4,InfinityIcon:Z4,Info:Y4,InfoIcon:Y4,Inspect:ai,InspectIcon:ai,InspectionPanel:Q4,InspectionPanelIcon:Q4,Instagram:J4,InstagramIcon:J4,Italic:e5,ItalicIcon:e5,IterationCcw:t5,IterationCcwIcon:t5,IterationCw:a5,IterationCwIcon:a5,JapaneseYen:n5,JapaneseYenIcon:n5,Joystick:o5,JoystickIcon:o5,Kanban:r5,KanbanIcon:r5,KanbanSquare:Yr,KanbanSquareDashed:$r,KanbanSquareDashedIcon:$r,KanbanSquareIcon:Yr,Kayak:i5,KayakIcon:i5,Key:d5,KeyIcon:d5,KeyRound:s5,KeyRoundIcon:s5,KeySquare:l5,KeySquareIcon:l5,Keyboard:u5,KeyboardIcon:u5,KeyboardMusic:c5,KeyboardMusicIcon:c5,KeyboardOff:h5,KeyboardOffIcon:h5,Lamp:g5,LampCeiling:p5,LampCeilingIcon:p5,LampDesk:y5,LampDeskIcon:y5,LampFloor:k5,LampFloorIcon:k5,LampIcon:g5,LampWallDown:f5,LampWallDownIcon:f5,LampWallUp:m5,LampWallUpIcon:m5,LandPlot:b5,LandPlotIcon:b5,Landmark:x5,LandmarkIcon:x5,Languages:M5,LanguagesIcon:M5,Laptop:v5,Laptop2:Ho,Laptop2Icon:Ho,LaptopIcon:v5,LaptopMinimal:Ho,LaptopMinimalCheck:w5,LaptopMinimalCheckIcon:w5,LaptopMinimalIcon:Ho,Lasso:L5,LassoIcon:L5,LassoSelect:C5,LassoSelectIcon:C5,Laugh:S5,LaughIcon:S5,Layers:jo,Layers2:I5,Layers2Icon:I5,Layers3:jo,Layers3Icon:jo,LayersIcon:jo,LayersPlus:_5,LayersPlusIcon:_5,Layout:or,LayoutDashboard:A5,LayoutDashboardIcon:A5,LayoutGrid:B5,LayoutGridIcon:B5,LayoutIcon:or,LayoutList:V5,LayoutListIcon:V5,LayoutPanelLeft:z5,LayoutPanelLeftIcon:z5,LayoutPanelTop:q5,LayoutPanelTopIcon:q5,LayoutTemplate:P5,LayoutTemplateIcon:P5,Leaf:D5,LeafIcon:D5,LeafyGreen:E5,LeafyGreenIcon:E5,Lectern:T5,LecternIcon:T5,LensConcave:H5,LensConcaveIcon:H5,LensConvex:j5,LensConvexIcon:j5,LetterText:Ci,LetterTextIcon:Ci,Library:N5,LibraryBig:O5,LibraryBigIcon:O5,LibraryIcon:N5,LibrarySquare:Qr,LibrarySquareIcon:Qr,LifeBuoy:R5,LifeBuoyIcon:R5,Ligature:F5,LigatureIcon:F5,Lightbulb:U5,LightbulbIcon:U5,LightbulbOff:$5,LightbulbOffIcon:$5,LineChart:nn,LineChartIcon:nn,LineDotRightHorizontal:W5,LineDotRightHorizontalIcon:W5,LineSquiggle:G5,LineSquiggleIcon:G5,Link:Gs,Link2:X5,Link2Icon:X5,Link2Off:K5,Link2OffIcon:K5,LinkIcon:Gs,Linkedin:Z5,LinkedinIcon:Z5,List:fg,ListCheck:Y5,ListCheckIcon:Y5,ListChecks:Q5,ListChecksIcon:Q5,ListChevronsDownUp:eg,ListChevronsDownUpIcon:eg,ListChevronsUpDown:J5,ListChevronsUpDownIcon:J5,ListCollapse:tg,ListCollapseIcon:tg,ListEnd:ag,ListEndIcon:ag,ListFilter:ng,ListFilterIcon:ng,ListFilterPlus:og,ListFilterPlusIcon:og,ListIcon:fg,ListIndentDecrease:zt,ListIndentDecreaseIcon:zt,ListIndentIncrease:qt,ListIndentIncreaseIcon:qt,ListMinus:lg,ListMinusIcon:lg,ListMusic:rg,ListMusicIcon:rg,ListOrdered:ig,ListOrderedIcon:ig,ListPlus:sg,ListPlusIcon:sg,ListRestart:cg,ListRestartIcon:cg,ListStart:dg,ListStartIcon:dg,ListTodo:ug,ListTodoIcon:ug,ListTree:hg,ListTreeIcon:hg,ListVideo:pg,ListVideoIcon:pg,ListX:yg,ListXIcon:yg,Loader:mg,Loader2:kt,Loader2Icon:kt,LoaderCircle:kt,LoaderCircleIcon:kt,LoaderIcon:mg,LoaderPinwheel:kg,LoaderPinwheelIcon:kg,Locate:Mg,LocateFixed:gg,LocateFixedIcon:gg,LocateIcon:Mg,LocateOff:bg,LocateOffIcon:bg,LocationEdit:No,LocationEditIcon:No,Lock:wg,LockIcon:wg,LockKeyhole:xg,LockKeyholeIcon:xg,LockKeyholeOpen:Oo,LockKeyholeOpenIcon:Oo,LockOpen:Fo,LockOpenIcon:Fo,LogIn:vg,LogInIcon:vg,LogOut:Cg,LogOutIcon:Cg,Logs:Lg,LogsIcon:Lg,Lollipop:Sg,LollipopIcon:Sg,LucideAArrowDown:J1,LucideAArrowUp:el,LucideALargeSmall:tl,LucideAccessibility:al,LucideActivity:nl,LucideActivitySquare:Mr,LucideAirVent:ol,LucideAirplay:rl,LucideAlarmCheck:qa,LucideAlarmClock:sl,LucideAlarmClockCheck:qa,LucideAlarmClockMinus:Pa,LucideAlarmClockOff:il,LucideAlarmClockPlus:Da,LucideAlarmMinus:Pa,LucideAlarmPlus:Da,LucideAlarmSmoke:ll,LucideAlbum:dl,LucideAlertCircle:It,LucideAlertOctagon:Go,LucideAlertTriangle:Bi,LucideAlignCenter:vi,LucideAlignCenterHorizontal:cl,LucideAlignCenterVertical:hl,LucideAlignEndHorizontal:ul,LucideAlignEndVertical:pl,LucideAlignHorizontalDistributeCenter:yl,LucideAlignHorizontalDistributeEnd:fl,LucideAlignHorizontalDistributeStart:kl,LucideAlignHorizontalJustifyCenter:ml,LucideAlignHorizontalJustifyEnd:gl,LucideAlignHorizontalJustifyStart:bl,LucideAlignHorizontalSpaceAround:Ml,LucideAlignHorizontalSpaceBetween:xl,LucideAlignJustify:wi,LucideAlignLeft:Dt,LucideAlignRight:xi,LucideAlignStartHorizontal:wl,LucideAlignStartVertical:vl,LucideAlignVerticalDistributeCenter:Cl,LucideAlignVerticalDistributeEnd:Ll,LucideAlignVerticalDistributeStart:Sl,LucideAlignVerticalJustifyCenter:Il,LucideAlignVerticalJustifyEnd:_l,LucideAlignVerticalJustifyStart:Al,LucideAlignVerticalSpaceAround:Bl,LucideAlignVerticalSpaceBetween:Vl,LucideAmbulance:zl,LucideAmpersand:ql,LucideAmpersands:Pl,LucideAmphora:El,LucideAnchor:Dl,LucideAngry:Tl,LucideAnnoyed:Hl,LucideAntenna:jl,LucideAnvil:Ol,LucideAperture:Fl,LucideAppWindow:Nl,LucideAppWindowMac:Rl,LucideApple:$l,LucideArchive:Gl,LucideArchiveRestore:Ul,LucideArchiveX:Wl,LucideAreaChart:Za,LucideArmchair:Kl,LucideArrowBigDown:Zl,LucideArrowBigDownDash:Xl,LucideArrowBigLeft:Ql,LucideArrowBigLeftDash:Yl,LucideArrowBigRight:ec,LucideArrowBigRightDash:Jl,LucideArrowBigUp:tc,LucideArrowBigUpDash:ac,LucideArrowDown:uc,LucideArrowDown01:oc,LucideArrowDown10:nc,LucideArrowDownAZ:Ea,LucideArrowDownAz:Ea,LucideArrowDownCircle:pn,LucideArrowDownFromLine:rc,LucideArrowDownLeft:ic,LucideArrowDownLeftFromCircle:fn,LucideArrowDownLeftFromSquare:Lr,LucideArrowDownLeftSquare:xr,LucideArrowDownNarrowWide:lc,LucideArrowDownRight:sc,LucideArrowDownRightFromCircle:kn,LucideArrowDownRightFromSquare:Sr,LucideArrowDownRightSquare:wr,LucideArrowDownSquare:vr,LucideArrowDownToDot:cc,LucideArrowDownToLine:dc,LucideArrowDownUp:hc,LucideArrowDownWideNarrow:Ta,LucideArrowDownZA:Ha,LucideArrowDownZa:Ha,LucideArrowLeft:kc,LucideArrowLeftCircle:yn,LucideArrowLeftFromLine:pc,LucideArrowLeftRight:fc,LucideArrowLeftSquare:Cr,LucideArrowLeftToLine:yc,LucideArrowRight:Ts,LucideArrowRightCircle:bn,LucideArrowRightFromLine:mc,LucideArrowRightLeft:gc,LucideArrowRightSquare:Ar,LucideArrowRightToLine:bc,LucideArrowUp:Bc,LucideArrowUp01:Mc,LucideArrowUp10:xc,LucideArrowUpAZ:ja,LucideArrowUpAz:ja,LucideArrowUpCircle:Mn,LucideArrowUpDown:wc,LucideArrowUpFromDot:vc,LucideArrowUpFromLine:Cc,LucideArrowUpLeft:Lc,LucideArrowUpLeftFromCircle:mn,LucideArrowUpLeftFromSquare:Ir,LucideArrowUpLeftSquare:Vr,LucideArrowUpNarrowWide:Oa,LucideArrowUpRight:Sc,LucideArrowUpRightFromCircle:gn,LucideArrowUpRightFromSquare:_r,LucideArrowUpRightSquare:Br,LucideArrowUpSquare:zr,LucideArrowUpToLine:Ic,LucideArrowUpWideNarrow:_c,LucideArrowUpZA:Fa,LucideArrowUpZa:Fa,LucideArrowsUpFromLine:Ac,LucideAsterisk:Vc,LucideAsteriskSquare:qr,LucideAtSign:zc,LucideAtom:qc,LucideAudioLines:Pc,LucideAudioWaveform:Dc,LucideAward:Ec,LucideAxe:Tc,LucideAxis3D:Ra,LucideAxis3d:Ra,LucideBaby:jc,LucideBackpack:Hc,LucideBadge:td,LucideBadgeAlert:Oc,LucideBadgeCent:Fc,LucideBadgeCheck:Na,LucideBadgeDollarSign:Rc,LucideBadgeEuro:Nc,LucideBadgeHelp:$a,LucideBadgeIndianRupee:$c,LucideBadgeInfo:Uc,LucideBadgeJapaneseYen:Wc,LucideBadgeMinus:Gc,LucideBadgePercent:Kc,LucideBadgePlus:Xc,LucideBadgePoundSterling:Zc,LucideBadgeQuestionMark:$a,LucideBadgeRussianRuble:Yc,LucideBadgeSwissFranc:Qc,LucideBadgeTurkishLira:Jc,LucideBadgeX:ed,LucideBaggageClaim:ad,LucideBalloon:nd,LucideBan:rd,LucideBanana:od,LucideBandage:id,LucideBanknote:ud,LucideBanknoteArrowDown:sd,LucideBanknoteArrowUp:ld,LucideBanknoteX:cd,LucideBarChart:on,LucideBarChart2:rn,LucideBarChart3:an,LucideBarChart4:tn,LucideBarChartBig:en,LucideBarChartHorizontal:Ja,LucideBarChartHorizontalBig:Ya,LucideBarcode:dd,LucideBarrel:hd,LucideBaseline:pd,LucideBath:yd,LucideBattery:xd,LucideBatteryCharging:fd,LucideBatteryFull:kd,LucideBatteryLow:md,LucideBatteryMedium:bd,LucideBatteryPlus:gd,LucideBatteryWarning:Md,LucideBeaker:wd,LucideBean:Cd,LucideBeanOff:vd,LucideBed:Id,LucideBedDouble:Ld,LucideBedSingle:Sd,LucideBeef:_d,LucideBeer:Bd,LucideBeerOff:Ad,LucideBell:Ed,LucideBellDot:Vd,LucideBellElectric:zd,LucideBellMinus:qd,LucideBellOff:Pd,LucideBellPlus:Dd,LucideBellRing:Td,LucideBetweenHorizonalEnd:Ua,LucideBetweenHorizonalStart:Wa,LucideBetweenHorizontalEnd:Ua,LucideBetweenHorizontalStart:Wa,LucideBetweenVerticalEnd:Hd,LucideBetweenVerticalStart:jd,LucideBicepsFlexed:Od,LucideBike:Fd,LucideBinary:Rd,LucideBinoculars:$d,LucideBiohazard:Nd,LucideBird:Ud,LucideBirdhouse:Wd,LucideBitcoin:Gd,LucideBlend:Kd,LucideBlinds:Xd,LucideBlocks:Yd,LucideBluetooth:e0,LucideBluetoothConnected:Zd,LucideBluetoothOff:Qd,LucideBluetoothSearching:Jd,LucideBold:t0,LucideBolt:a0,LucideBomb:n0,LucideBone:o0,LucideBook:A0,LucideBookA:r0,LucideBookAlert:i0,LucideBookAudio:s0,LucideBookCheck:c0,LucideBookCopy:l0,LucideBookDashed:Ga,LucideBookDown:d0,LucideBookHeadphones:h0,LucideBookHeart:u0,LucideBookImage:p0,LucideBookKey:y0,LucideBookLock:f0,LucideBookMarked:k0,LucideBookMinus:m0,LucideBookOpen:M0,LucideBookOpenCheck:g0,LucideBookOpenText:b0,LucideBookPlus:x0,LucideBookSearch:w0,LucideBookTemplate:Ga,LucideBookText:v0,LucideBookType:C0,LucideBookUp:L0,LucideBookUp2:S0,LucideBookUser:I0,LucideBookX:_0,LucideBookmark:P0,LucideBookmarkCheck:B0,LucideBookmarkMinus:V0,LucideBookmarkPlus:z0,LucideBookmarkX:q0,LucideBoomBox:E0,LucideBot:H0,LucideBotMessageSquare:D0,LucideBotOff:T0,LucideBottleWine:O0,LucideBowArrow:j0,LucideBox:F0,LucideBoxSelect:Wr,LucideBoxes:R0,LucideBraces:Ka,LucideBrackets:N0,LucideBrain:W0,LucideBrainCircuit:U0,LucideBrainCog:$0,LucideBrickWall:K0,LucideBrickWallFire:G0,LucideBrickWallShield:X0,LucideBriefcase:Q0,LucideBriefcaseBusiness:Z0,LucideBriefcaseConveyorBelt:Y0,LucideBriefcaseMedical:J0,LucideBringToFront:e2,LucideBrush:a2,LucideBrushCleaning:t2,LucideBubbles:n2,LucideBug:i2,LucideBugOff:o2,LucideBugPlay:r2,LucideBuilding:l2,LucideBuilding2:s2,LucideBus:d2,LucideBusFront:c2,LucideCable:u2,LucideCableCar:h2,LucideCake:y2,LucideCakeSlice:p2,LucideCalculator:f2,LucideCalendar:Hs,LucideCalendar1:k2,LucideCalendarArrowDown:b2,LucideCalendarArrowUp:m2,LucideCalendarCheck:M2,LucideCalendarCheck2:g2,LucideCalendarClock:x2,LucideCalendarCog:v2,LucideCalendarDays:w2,LucideCalendarFold:C2,LucideCalendarHeart:L2,LucideCalendarMinus:I2,LucideCalendarMinus2:S2,LucideCalendarOff:_2,LucideCalendarPlus:B2,LucideCalendarPlus2:A2,LucideCalendarRange:V2,LucideCalendarSearch:z2,LucideCalendarSync:q2,LucideCalendarX:D2,LucideCalendarX2:P2,LucideCalendars:E2,LucideCamera:H2,LucideCameraOff:T2,LucideCandlestickChart:Qa,LucideCandy:F2,LucideCandyCane:j2,LucideCandyOff:O2,LucideCannabis:N2,LucideCannabisOff:R2,LucideCaptions:Xa,LucideCaptionsOff:$2,LucideCar:G2,LucideCarFront:U2,LucideCarTaxiFront:W2,LucideCaravan:K2,LucideCardSim:X2,LucideCarrot:Z2,LucideCaseLower:Y2,LucideCaseSensitive:Q2,LucideCaseUpper:J2,LucideCassetteTape:eh,LucideCast:th,LucideCastle:ah,LucideCat:nh,LucideCctv:oh,LucideChartArea:Za,LucideChartBar:Ja,LucideChartBarBig:Ya,LucideChartBarDecreasing:ih,LucideChartBarIncreasing:rh,LucideChartBarStacked:sh,LucideChartCandlestick:Qa,LucideChartColumn:an,LucideChartColumnBig:en,LucideChartColumnDecreasing:lh,LucideChartColumnIncreasing:tn,LucideChartColumnStacked:ch,LucideChartGantt:dh,LucideChartLine:nn,LucideChartNetwork:hh,LucideChartNoAxesColumn:rn,LucideChartNoAxesColumnDecreasing:uh,LucideChartNoAxesColumnIncreasing:on,LucideChartNoAxesCombined:ph,LucideChartNoAxesGantt:ln,LucideChartPie:sn,LucideChartScatter:cn,LucideChartSpline:fh,LucideCheck:ca,LucideCheckCheck:yh,LucideCheckCircle:da,LucideCheckCircle2:xn,LucideCheckLine:kh,LucideCheckSquare:Tr,LucideCheckSquare2:Hr,LucideChefHat:mh,LucideCherry:gh,LucideChessBishop:bh,LucideChessKing:Mh,LucideChessKnight:xh,LucideChessPawn:wh,LucideChessQueen:vh,LucideChessRook:Ch,LucideChevronDown:St,LucideChevronDownCircle:vn,LucideChevronDownSquare:jr,LucideChevronFirst:Lh,LucideChevronLast:Sh,LucideChevronLeft:dn,LucideChevronLeftCircle:Cn,LucideChevronLeftSquare:Or,LucideChevronRight:hn,LucideChevronRightCircle:wn,LucideChevronRightSquare:Fr,LucideChevronUp:js,LucideChevronUpCircle:Ln,LucideChevronUpSquare:Rr,LucideChevronsDown:_h,LucideChevronsDownUp:Ih,LucideChevronsLeft:Os,LucideChevronsLeftRight:Bh,LucideChevronsLeftRightEllipsis:Ah,LucideChevronsRight:Fs,LucideChevronsRightLeft:Vh,LucideChevronsUp:qh,LucideChevronsUpDown:zh,LucideChrome:un,LucideChromium:un,LucideChurch:Dh,LucideCigarette:Eh,LucideCigaretteOff:Ph,LucideCircle:Rs,LucideCircleAlert:It,LucideCircleArrowDown:pn,LucideCircleArrowLeft:yn,LucideCircleArrowOutDownLeft:fn,LucideCircleArrowOutDownRight:kn,LucideCircleArrowOutUpLeft:mn,LucideCircleArrowOutUpRight:gn,LucideCircleArrowRight:bn,LucideCircleArrowUp:Mn,LucideCircleCheck:xn,LucideCircleCheckBig:da,LucideCircleChevronDown:vn,LucideCircleChevronLeft:Cn,LucideCircleChevronRight:wn,LucideCircleChevronUp:Ln,LucideCircleDashed:Th,LucideCircleDivide:Sn,LucideCircleDollarSign:Hh,LucideCircleDot:Oh,LucideCircleDotDashed:jh,LucideCircleEllipsis:Rh,LucideCircleEqual:Fh,LucideCircleFadingArrowUp:Nh,LucideCircleFadingPlus:$h,LucideCircleGauge:In,LucideCircleHelp:_t,LucideCircleMinus:_n,LucideCircleOff:Uh,LucideCircleParking:Bn,LucideCircleParkingOff:An,LucideCirclePause:Vn,LucideCirclePercent:zn,LucideCirclePile:Wh,LucideCirclePlay:qn,LucideCirclePlus:Pn,LucideCirclePoundSterling:Gh,LucideCirclePower:Dn,LucideCircleQuestionMark:_t,LucideCircleSlash:Kh,LucideCircleSlash2:En,LucideCircleSlashed:En,LucideCircleSmall:Xh,LucideCircleStar:Zh,LucideCircleStop:Tn,LucideCircleUser:jn,LucideCircleUserRound:Hn,LucideCircleX:On,LucideCircuitBoard:Yh,LucideCitrus:Qh,LucideClapperboard:Jh,LucideClipboard:cu,LucideClipboardCheck:tu,LucideClipboardClock:eu,LucideClipboardCopy:au,LucideClipboardEdit:Rn,LucideClipboardList:nu,LucideClipboardMinus:ou,LucideClipboardPaste:ru,LucideClipboardPen:Rn,LucideClipboardPenLine:Fn,LucideClipboardPlus:iu,LucideClipboardSignature:Fn,LucideClipboardType:su,LucideClipboardX:lu,LucideClock:Ns,LucideClock1:du,LucideClock10:hu,LucideClock11:uu,LucideClock12:pu,LucideClock2:yu,LucideClock3:fu,LucideClock4:ku,LucideClock5:mu,LucideClock6:gu,LucideClock7:bu,LucideClock8:Mu,LucideClock9:xu,LucideClockAlert:wu,LucideClockArrowDown:vu,LucideClockArrowUp:Cu,LucideClockCheck:Lu,LucideClockFading:Su,LucideClockPlus:Iu,LucideClosedCaption:_u,LucideCloud:Wu,LucideCloudAlert:Au,LucideCloudBackup:Bu,LucideCloudCheck:Vu,LucideCloudCog:zu,LucideCloudDownload:Nn,LucideCloudDrizzle:qu,LucideCloudFog:Pu,LucideCloudHail:Du,LucideCloudLightning:Eu,LucideCloudMoon:Hu,LucideCloudMoonRain:Tu,LucideCloudOff:ju,LucideCloudRain:Fu,LucideCloudRainWind:Ou,LucideCloudSnow:Ru,LucideCloudSun:$u,LucideCloudSunRain:Nu,LucideCloudSync:Uu,LucideCloudUpload:ha,LucideCloudy:Gu,LucideClover:Ku,LucideClub:Xu,LucideCode:Zu,LucideCode2:$n,LucideCodeSquare:Nr,LucideCodeXml:$n,LucideCodepen:Yu,LucideCodesandbox:Qu,LucideCoffee:Ju,LucideCog:ep,LucideCoins:tp,LucideColumns:Un,LucideColumns2:Un,LucideColumns3:Wn,LucideColumns3Cog:At,LucideColumns4:ap,LucideColumnsSettings:At,LucideCombine:np,LucideCommand:op,LucideCompass:rp,LucideComponent:ip,LucideComputer:sp,LucideConciergeBell:lp,LucideCone:cp,LucideConstruction:dp,LucideContact:hp,LucideContact2:Gn,LucideContactRound:Gn,LucideContainer:up,LucideContrast:pp,LucideCookie:fp,LucideCookingPot:yp,LucideCopy:xp,LucideCopyCheck:kp,LucideCopyMinus:mp,LucideCopyPlus:gp,LucideCopySlash:Mp,LucideCopyX:bp,LucideCopyleft:wp,LucideCopyright:vp,LucideCornerDownLeft:Cp,LucideCornerDownRight:Sp,LucideCornerLeftDown:Lp,LucideCornerLeftUp:Ip,LucideCornerRightDown:_p,LucideCornerRightUp:Ap,LucideCornerUpLeft:Bp,LucideCornerUpRight:Vp,LucideCpu:cs,LucideCreativeCommons:zp,LucideCreditCard:qp,LucideCroissant:Pp,LucideCrop:Dp,LucideCross:Ep,LucideCrosshair:Hp,LucideCrown:Tp,LucideCuboid:jp,LucideCupSoda:Op,LucideCurlyBraces:Ka,LucideCurrency:Fp,LucideCylinder:Rp,LucideDam:Np,LucideDatabase:Gp,LucideDatabaseBackup:$p,LucideDatabaseSearch:Up,LucideDatabaseZap:Wp,LucideDecimalsArrowLeft:Kp,LucideDecimalsArrowRight:Xp,LucideDelete:Zp,LucideDessert:Yp,LucideDiameter:Qp,LucideDiamond:ty,LucideDiamondMinus:Jp,LucideDiamondPercent:Kn,LucideDiamondPlus:ey,LucideDice1:ay,LucideDice2:ny,LucideDice3:oy,LucideDice4:ry,LucideDice5:iy,LucideDice6:sy,LucideDices:ly,LucideDiff:cy,LucideDisc:py,LucideDisc2:dy,LucideDisc3:hy,LucideDiscAlbum:uy,LucideDivide:yy,LucideDivideCircle:Sn,LucideDivideSquare:Kr,LucideDna:ky,LucideDnaOff:fy,LucideDock:my,LucideDog:by,LucideDollarSign:gy,LucideDonut:xy,LucideDoorClosed:wy,LucideDoorClosedLocked:My,LucideDoorOpen:vy,LucideDot:Cy,LucideDotSquare:Gr,LucideDownload:$s,LucideDownloadCloud:Nn,LucideDraftingCompass:Ly,LucideDrama:Iy,LucideDribbble:Sy,LucideDrill:_y,LucideDrone:Ay,LucideDroplet:Vy,LucideDropletOff:By,LucideDroplets:zy,LucideDrum:qy,LucideDrumstick:Py,LucideDumbbell:Dy,LucideEar:Ty,LucideEarOff:Ey,LucideEarth:Xn,LucideEarthLock:Hy,LucideEclipse:jy,LucideEdit:Xe,LucideEdit2:ir,LucideEdit3:rr,LucideEgg:Fy,LucideEggFried:Oy,LucideEggOff:Ry,LucideEllipsis:ua,LucideEllipsisVertical:Zn,LucideEqual:Uy,LucideEqualApproximately:$y,LucideEqualNot:Ny,LucideEqualSquare:Xr,LucideEraser:Wy,LucideEthernetPort:Gy,LucideEuro:Ky,LucideEvCharger:Xy,LucideExpand:Zy,LucideExternalLink:Yy,LucideEye:ds,LucideEyeClosed:Qy,LucideEyeOff:Us,LucideFacebook:Jy,LucideFactory:ef,LucideFan:tf,LucideFastForward:af,LucideFeather:nf,LucideFence:of,LucideFerrisWheel:rf,LucideFigma:sf,LucideFile:Df,LucideFileArchive:lf,LucideFileAudio:Bt,LucideFileAudio2:Bt,LucideFileAxis3D:Yn,LucideFileAxis3d:Yn,LucideFileBadge:Qn,LucideFileBadge2:Qn,LucideFileBarChart:to,LucideFileBarChart2:ao,LucideFileBox:cf,LucideFileBraces:eo,LucideFileBracesCorner:Jn,LucideFileChartColumn:ao,LucideFileChartColumnIncreasing:to,LucideFileChartLine:no,LucideFileChartPie:oo,LucideFileCheck:df,LucideFileCheck2:ro,LucideFileCheckCorner:ro,LucideFileClock:hf,LucideFileCode:uf,LucideFileCode2:io,LucideFileCodeCorner:io,LucideFileCog:so,LucideFileCog2:so,LucideFileDiff:pf,LucideFileDigit:ff,LucideFileDown:yf,LucideFileEdit:fo,LucideFileExclamationPoint:lo,LucideFileHeadphone:Bt,LucideFileHeart:kf,LucideFileImage:mf,LucideFileInput:gf,LucideFileJson:eo,LucideFileJson2:Jn,LucideFileKey:co,LucideFileKey2:co,LucideFileLineChart:no,LucideFileLock:ho,LucideFileLock2:ho,LucideFileMinus:Mf,LucideFileMinus2:uo,LucideFileMinusCorner:uo,LucideFileMusic:bf,LucideFileOutput:xf,LucideFilePen:fo,LucideFilePenLine:po,LucideFilePieChart:oo,LucideFilePlay:yo,LucideFilePlus:wf,LucideFilePlus2:ko,LucideFilePlusCorner:ko,LucideFileQuestion:mo,LucideFileQuestionMark:mo,LucideFileScan:vf,LucideFileSearch:Cf,LucideFileSearch2:go,LucideFileSearchCorner:go,LucideFileSignal:bo,LucideFileSignature:po,LucideFileSliders:Lf,LucideFileSpreadsheet:Sf,LucideFileStack:If,LucideFileSymlink:_f,LucideFileTerminal:Af,LucideFileText:hs,LucideFileType:Bf,LucideFileType2:Mo,LucideFileTypeCorner:Mo,LucideFileUp:Vf,LucideFileUser:zf,LucideFileVideo:yo,LucideFileVideo2:xo,LucideFileVideoCamera:xo,LucideFileVolume:qf,LucideFileVolume2:bo,LucideFileWarning:lo,LucideFileX:Pf,LucideFileX2:wo,LucideFileXCorner:wo,LucideFiles:Tf,LucideFilm:Ef,LucideFilter:Io,LucideFilterX:So,LucideFingerprint:vo,LucideFingerprintPattern:vo,LucideFireExtinguisher:Hf,LucideFish:Ff,LucideFishOff:jf,LucideFishSymbol:Of,LucideFishingHook:Rf,LucideFlag:Wf,LucideFlagOff:Nf,LucideFlagTriangleLeft:$f,LucideFlagTriangleRight:Uf,LucideFlame:Kf,LucideFlameKindling:Gf,LucideFlashlight:Zf,LucideFlashlightOff:Xf,LucideFlaskConical:Qf,LucideFlaskConicalOff:Yf,LucideFlaskRound:Jf,LucideFlipHorizontal:Dr,LucideFlipHorizontal2:ek,LucideFlipVertical:Er,LucideFlipVertical2:tk,LucideFlower:nk,LucideFlower2:ak,LucideFocus:ok,LucideFoldHorizontal:rk,LucideFoldVertical:ik,LucideFolder:Pk,LucideFolderArchive:sk,LucideFolderCheck:lk,LucideFolderClock:ck,LucideFolderClosed:dk,LucideFolderCode:hk,LucideFolderCog:Co,LucideFolderCog2:Co,LucideFolderDot:uk,LucideFolderDown:pk,LucideFolderEdit:Lo,LucideFolderGit:fk,LucideFolderGit2:yk,LucideFolderHeart:kk,LucideFolderInput:mk,LucideFolderKanban:bk,LucideFolderKey:gk,LucideFolderLock:Mk,LucideFolderMinus:vk,LucideFolderOpen:wk,LucideFolderOpenDot:xk,LucideFolderOutput:Ck,LucideFolderPen:Lo,LucideFolderPlus:Ik,LucideFolderRoot:Lk,LucideFolderSearch:_k,LucideFolderSearch2:Sk,LucideFolderSymlink:Bk,LucideFolderSync:Ak,LucideFolderTree:Vk,LucideFolderUp:zk,LucideFolderX:qk,LucideFolders:Dk,LucideFootprints:Ek,LucideForkKnife:Fi,LucideForkKnifeCrossed:Oi,LucideForklift:Tk,LucideForm:Hk,LucideFormInput:cr,LucideForward:Ok,LucideFrame:jk,LucideFramer:Fk,LucideFrown:Rk,LucideFuel:Nk,LucideFullscreen:$k,LucideFunctionSquare:Zr,LucideFunnel:Io,LucideFunnelPlus:Uk,LucideFunnelX:So,LucideGalleryHorizontal:Gk,LucideGalleryHorizontalEnd:Wk,LucideGalleryThumbnails:Kk,LucideGalleryVertical:Zk,LucideGalleryVerticalEnd:Xk,LucideGamepad:em,LucideGamepad2:Yk,LucideGamepadDirectional:Qk,LucideGanttChart:ln,LucideGanttChartSquare:Pt,LucideGauge:Jk,LucideGaugeCircle:In,LucideGavel:tm,LucideGem:am,LucideGeorgianLari:nm,LucideGhost:om,LucideGift:rm,LucideGitBranch:lm,LucideGitBranchMinus:im,LucideGitBranchPlus:sm,LucideGitCommit:_o,LucideGitCommitHorizontal:_o,LucideGitCommitVertical:cm,LucideGitCompare:hm,LucideGitCompareArrows:dm,LucideGitFork:um,LucideGitGraph:pm,LucideGitMerge:fm,LucideGitMergeConflict:ym,LucideGitPullRequest:xm,LucideGitPullRequestArrow:km,LucideGitPullRequestClosed:mm,LucideGitPullRequestCreate:bm,LucideGitPullRequestCreateArrow:gm,LucideGitPullRequestDraft:Mm,LucideGithub:wm,LucideGitlab:vm,LucideGlassWater:Cm,LucideGlasses:Lm,LucideGlobe:Ws,LucideGlobe2:Xn,LucideGlobeLock:Sm,LucideGlobeOff:Im,LucideGlobeX:_m,LucideGoal:Am,LucideGpu:Vm,LucideGrab:qo,LucideGraduationCap:Bm,LucideGrape:zm,LucideGrid:Vt,LucideGrid2X2:zo,LucideGrid2X2Check:Ao,LucideGrid2X2Plus:Vo,LucideGrid2X2X:Bo,LucideGrid2x2:zo,LucideGrid2x2Check:Ao,LucideGrid2x2Plus:Vo,LucideGrid2x2X:Bo,LucideGrid3X3:Vt,LucideGrid3x2:qm,LucideGrid3x3:Vt,LucideGrip:Em,LucideGripHorizontal:Pm,LucideGripVertical:Dm,LucideGroup:Hm,LucideGuitar:Tm,LucideHam:jm,LucideHamburger:Om,LucideHammer:Fm,LucideHand:Gm,LucideHandCoins:Rm,LucideHandFist:Nm,LucideHandGrab:qo,LucideHandHeart:$m,LucideHandHelping:Po,LucideHandMetal:Um,LucideHandPlatter:Wm,LucideHandbag:Km,LucideHandshake:Xm,LucideHardDrive:Qm,LucideHardDriveDownload:Zm,LucideHardDriveUpload:Ym,LucideHardHat:Jm,LucideHash:e4,LucideHatGlasses:t4,LucideHaze:a4,LucideHd:n4,LucideHdmiPort:o4,LucideHeading:h4,LucideHeading1:r4,LucideHeading2:i4,LucideHeading3:s4,LucideHeading4:l4,LucideHeading5:c4,LucideHeading6:d4,LucideHeadphoneOff:u4,LucideHeadphones:p4,LucideHeadset:y4,LucideHeart:x4,LucideHeartCrack:f4,LucideHeartHandshake:m4,LucideHeartMinus:k4,LucideHeartOff:g4,LucideHeartPlus:b4,LucideHeartPulse:M4,LucideHeater:w4,LucideHelicopter:v4,LucideHelpCircle:_t,LucideHelpingHand:Po,LucideHexagon:C4,LucideHighlighter:L4,LucideHistory:S4,LucideHome:Do,LucideHop:_4,LucideHopOff:I4,LucideHospital:A4,LucideHotel:B4,LucideHourglass:V4,LucideHouse:Do,LucideHouseHeart:z4,LucideHousePlug:q4,LucideHousePlus:P4,LucideHouseWifi:D4,LucideIceCream:To,LucideIceCream2:Eo,LucideIceCreamBowl:Eo,LucideIceCreamCone:To,LucideIdCard:T4,LucideIdCardLanyard:E4,LucideImage:U4,LucideImageDown:H4,LucideImageMinus:j4,LucideImageOff:O4,LucideImagePlay:F4,LucideImagePlus:R4,LucideImageUp:N4,LucideImageUpscale:$4,LucideImages:W4,LucideImport:K4,LucideInbox:G4,LucideIndent:qt,LucideIndentDecrease:zt,LucideIndentIncrease:qt,LucideIndianRupee:X4,LucideInfinity:Z4,LucideInfo:Y4,LucideInspect:ai,LucideInspectionPanel:Q4,LucideInstagram:J4,LucideItalic:e5,LucideIterationCcw:t5,LucideIterationCw:a5,LucideJapaneseYen:n5,LucideJoystick:o5,LucideKanban:r5,LucideKanbanSquare:Yr,LucideKanbanSquareDashed:$r,LucideKayak:i5,LucideKey:d5,LucideKeyRound:s5,LucideKeySquare:l5,LucideKeyboard:u5,LucideKeyboardMusic:c5,LucideKeyboardOff:h5,LucideLamp:g5,LucideLampCeiling:p5,LucideLampDesk:y5,LucideLampFloor:k5,LucideLampWallDown:f5,LucideLampWallUp:m5,LucideLandPlot:b5,LucideLandmark:x5,LucideLanguages:M5,LucideLaptop:v5,LucideLaptop2:Ho,LucideLaptopMinimal:Ho,LucideLaptopMinimalCheck:w5,LucideLasso:L5,LucideLassoSelect:C5,LucideLaugh:S5,LucideLayers:jo,LucideLayers2:I5,LucideLayers3:jo,LucideLayersPlus:_5,LucideLayout:or,LucideLayoutDashboard:A5,LucideLayoutGrid:B5,LucideLayoutList:V5,LucideLayoutPanelLeft:z5,LucideLayoutPanelTop:q5,LucideLayoutTemplate:P5,LucideLeaf:D5,LucideLeafyGreen:E5,LucideLectern:T5,LucideLensConcave:H5,LucideLensConvex:j5,LucideLetterText:Ci,LucideLibrary:N5,LucideLibraryBig:O5,LucideLibrarySquare:Qr,LucideLifeBuoy:R5,LucideLigature:F5,LucideLightbulb:U5,LucideLightbulbOff:$5,LucideLineChart:nn,LucideLineDotRightHorizontal:W5,LucideLineSquiggle:G5,LucideLink:Gs,LucideLink2:X5,LucideLink2Off:K5,LucideLinkedin:Z5,LucideList:fg,LucideListCheck:Y5,LucideListChecks:Q5,LucideListChevronsDownUp:eg,LucideListChevronsUpDown:J5,LucideListCollapse:tg,LucideListEnd:ag,LucideListFilter:ng,LucideListFilterPlus:og,LucideListIndentDecrease:zt,LucideListIndentIncrease:qt,LucideListMinus:lg,LucideListMusic:rg,LucideListOrdered:ig,LucideListPlus:sg,LucideListRestart:cg,LucideListStart:dg,LucideListTodo:ug,LucideListTree:hg,LucideListVideo:pg,LucideListX:yg,LucideLoader:mg,LucideLoader2:kt,LucideLoaderCircle:kt,LucideLoaderPinwheel:kg,LucideLocate:Mg,LucideLocateFixed:gg,LucideLocateOff:bg,LucideLocationEdit:No,LucideLock:wg,LucideLockKeyhole:xg,LucideLockKeyholeOpen:Oo,LucideLockOpen:Fo,LucideLogIn:vg,LucideLogOut:Cg,LucideLogs:Lg,LucideLollipop:Sg,LucideLuggage:Ig,LucideMSquare:Jr,LucideMagnet:_g,LucideMail:Eg,LucideMailCheck:Ag,LucideMailMinus:Vg,LucideMailOpen:Bg,LucideMailPlus:zg,LucideMailQuestion:Ro,LucideMailQuestionMark:Ro,LucideMailSearch:qg,LucideMailWarning:Dg,LucideMailX:Pg,LucideMailbox:jg,LucideMails:Tg,LucideMap:Qg,LucideMapMinus:Hg,LucideMapPin:Ks,LucideMapPinCheck:Og,LucideMapPinCheckInside:Fg,LucideMapPinHouse:Rg,LucideMapPinMinus:$g,LucideMapPinMinusInside:Ng,LucideMapPinOff:Ug,LucideMapPinPen:No,LucideMapPinPlus:Gg,LucideMapPinPlusInside:Wg,LucideMapPinX:Kg,LucideMapPinXInside:Xg,LucideMapPinned:Zg,LucideMapPlus:Yg,LucideMars:t3,LucideMarsStroke:Jg,LucideMartini:e3,LucideMaximize:n3,LucideMaximize2:a3,LucideMedal:o3,LucideMegaphone:i3,LucideMegaphoneOff:r3,LucideMeh:s3,LucideMemoryStick:l3,LucideMenu:c3,LucideMenuSquare:ei,LucideMerge:d3,LucideMessageCircle:x3,LucideMessageCircleCheck:h3,LucideMessageCircleCode:u3,LucideMessageCircleDashed:p3,LucideMessageCircleHeart:y3,LucideMessageCircleMore:k3,LucideMessageCircleOff:f3,LucideMessageCirclePlus:m3,LucideMessageCircleQuestion:$o,LucideMessageCircleQuestionMark:$o,LucideMessageCircleReply:g3,LucideMessageCircleWarning:b3,LucideMessageCircleX:M3,LucideMessageSquare:us,LucideMessageSquareCheck:w3,LucideMessageSquareCode:v3,LucideMessageSquareDashed:C3,LucideMessageSquareDiff:L3,LucideMessageSquareDot:S3,LucideMessageSquareHeart:I3,LucideMessageSquareLock:_3,LucideMessageSquareMore:A3,LucideMessageSquareOff:B3,LucideMessageSquarePlus:V3,LucideMessageSquareQuote:z3,LucideMessageSquareReply:q3,LucideMessageSquareShare:P3,LucideMessageSquareText:E3,LucideMessageSquareWarning:D3,LucideMessageSquareX:T3,LucideMessagesSquare:H3,LucideMetronome:j3,LucideMic:F3,LucideMic2:Uo,LucideMicOff:O3,LucideMicVocal:Uo,LucideMicrochip:R3,LucideMicroscope:N3,LucideMicrowave:$3,LucideMilestone:U3,LucideMilk:G3,LucideMilkOff:W3,LucideMinimize:K3,LucideMinimize2:X3,LucideMinus:Xs,LucideMinusCircle:_n,LucideMinusSquare:ti,LucideMirrorRectangular:Z3,LucideMirrorRound:Y3,LucideMonitor:h8,LucideMonitorCheck:Q3,LucideMonitorCloud:J3,LucideMonitorCog:e8,LucideMonitorDot:t8,LucideMonitorDown:a8,LucideMonitorOff:n8,LucideMonitorPause:o8,LucideMonitorPlay:r8,LucideMonitorSmartphone:i8,LucideMonitorSpeaker:s8,LucideMonitorStop:l8,LucideMonitorUp:c8,LucideMonitorX:d8,LucideMoon:p8,LucideMoonStar:u8,LucideMoreHorizontal:ua,LucideMoreVertical:Zn,LucideMotorbike:y8,LucideMountain:k8,LucideMountainSnow:f8,LucideMouse:L8,LucideMouseLeft:m8,LucideMouseOff:g8,LucideMousePointer:v8,LucideMousePointer2:M8,LucideMousePointer2Off:b8,LucideMousePointerBan:x8,LucideMousePointerClick:w8,LucideMousePointerSquareDashed:Ur,LucideMouseRight:C8,LucideMove:H8,LucideMove3D:Wo,LucideMove3d:Wo,LucideMoveDiagonal:I8,LucideMoveDiagonal2:S8,LucideMoveDown:B8,LucideMoveDownLeft:_8,LucideMoveDownRight:A8,LucideMoveHorizontal:V8,LucideMoveLeft:z8,LucideMoveRight:P8,LucideMoveUp:E8,LucideMoveUpLeft:q8,LucideMoveUpRight:D8,LucideMoveVertical:T8,LucideMusic:R8,LucideMusic2:j8,LucideMusic3:O8,LucideMusic4:F8,LucideNavigation:W8,LucideNavigation2:$8,LucideNavigation2Off:N8,LucideNavigationOff:U8,LucideNetwork:G8,LucideNewspaper:K8,LucideNfc:X8,LucideNonBinary:Z8,LucideNotebook:e6,LucideNotebookPen:Q8,LucideNotebookTabs:Y8,LucideNotebookText:J8,LucideNotepadText:a6,LucideNotepadTextDashed:t6,LucideNut:o6,LucideNutOff:n6,LucideOctagon:i6,LucideOctagonAlert:Go,LucideOctagonMinus:r6,LucideOctagonPause:Ko,LucideOctagonX:Xo,LucideOmega:s6,LucideOption:l6,LucideOrbit:c6,LucideOrigami:d6,LucideOutdent:zt,LucidePackage:g6,LucidePackage2:h6,LucidePackageCheck:p6,LucidePackageMinus:u6,LucidePackageOpen:y6,LucidePackagePlus:f6,LucidePackageSearch:k6,LucidePackageX:m6,LucidePaintBucket:b6,LucidePaintRoller:M6,LucidePaintbrush:x6,LucidePaintbrush2:Zo,LucidePaintbrushVertical:Zo,LucidePalette:w6,LucidePalmtree:Ai,LucidePanda:v6,LucidePanelBottom:S6,LucidePanelBottomClose:C6,LucidePanelBottomDashed:Yo,LucidePanelBottomInactive:Yo,LucidePanelBottomOpen:L6,LucidePanelLeft:tr,LucidePanelLeftClose:Jo,LucidePanelLeftDashed:Qo,LucidePanelLeftInactive:Qo,LucidePanelLeftOpen:er,LucidePanelLeftRightDashed:I6,LucidePanelRight:B6,LucidePanelRightClose:_6,LucidePanelRightDashed:ar,LucidePanelRightInactive:ar,LucidePanelRightOpen:A6,LucidePanelTop:P6,LucidePanelTopBottomDashed:V6,LucidePanelTopClose:z6,LucidePanelTopDashed:nr,LucidePanelTopInactive:nr,LucidePanelTopOpen:q6,LucidePanelsLeftBottom:D6,LucidePanelsLeftRight:Wn,LucidePanelsRightBottom:E6,LucidePanelsTopBottom:ur,LucidePanelsTopLeft:or,LucidePaperclip:T6,LucideParentheses:H6,LucideParkingCircle:Bn,LucideParkingCircleOff:An,LucideParkingMeter:j6,LucideParkingSquare:oi,LucideParkingSquareOff:ni,LucidePartyPopper:O6,LucidePause:F6,LucidePauseCircle:Vn,LucidePauseOctagon:Ko,LucidePawPrint:R6,LucidePcCase:N6,LucidePen:ir,LucidePenBox:Xe,LucidePenLine:rr,LucidePenOff:$6,LucidePenSquare:Xe,LucidePenTool:U6,LucidePencil:sr,LucidePencilLine:W6,LucidePencilOff:G6,LucidePencilRuler:K6,LucidePentagon:X6,LucidePercent:Z6,LucidePercentCircle:zn,LucidePercentDiamond:Kn,LucidePercentSquare:ri,LucidePersonStanding:Y6,LucidePhilippinePeso:Q6,LucidePhone:Zs,LucidePhoneCall:J6,LucidePhoneForwarded:e7,LucidePhoneIncoming:t7,LucidePhoneMissed:n7,LucidePhoneOff:a7,LucidePhoneOutgoing:o7,LucidePi:r7,LucidePiSquare:ii,LucidePiano:i7,LucidePickaxe:s7,LucidePictureInPicture:c7,LucidePictureInPicture2:l7,LucidePieChart:sn,LucidePiggyBank:d7,LucidePilcrow:p7,LucidePilcrowLeft:h7,LucidePilcrowRight:u7,LucidePilcrowSquare:si,LucidePill:g7,LucidePillBottle:y7,LucidePin:k7,LucidePinOff:f7,LucidePipette:m7,LucidePizza:b7,LucidePlane:Ys,LucidePlaneLanding:M7,LucidePlaneTakeoff:x7,LucidePlay:w7,LucidePlayCircle:qn,LucidePlaySquare:li,LucidePlug:C7,LucidePlug2:v7,LucidePlugZap:lr,LucidePlugZap2:lr,LucidePlus:Qs,LucidePlusCircle:Pn,LucidePlusSquare:ci,LucidePocket:S7,LucidePocketKnife:L7,LucidePodcast:I7,LucidePointer:A7,LucidePointerOff:_7,LucidePopcorn:B7,LucidePopsicle:V7,LucidePoundSterling:q7,LucidePower:P7,LucidePowerCircle:Dn,LucidePowerOff:z7,LucidePowerSquare:di,LucidePresentation:D7,LucidePrinter:H7,LucidePrinterCheck:E7,LucidePrinterX:T7,LucideProjector:j7,LucideProportions:R7,LucidePuzzle:O7,LucidePyramid:F7,LucideQrCode:N7,LucideQuote:$7,LucideRabbit:W7,LucideRadar:U7,LucideRadiation:K7,LucideRadical:G7,LucideRadio:Y7,LucideRadioReceiver:X7,LucideRadioTower:Z7,LucideRadius:Q7,LucideRailSymbol:J7,LucideRainbow:eb,LucideRat:tb,LucideRatio:ab,LucideReceipt:ub,LucideReceiptCent:nb,LucideReceiptEuro:ob,LucideReceiptIndianRupee:rb,LucideReceiptJapaneseYen:ib,LucideReceiptPoundSterling:sb,LucideReceiptRussianRuble:lb,LucideReceiptSwissFranc:cb,LucideReceiptText:db,LucideReceiptTurkishLira:hb,LucideRectangleCircle:pb,LucideRectangleEllipsis:cr,LucideRectangleGoggles:yb,LucideRectangleHorizontal:fb,LucideRectangleVertical:kb,LucideRecycle:mb,LucideRedo:bb,LucideRedo2:gb,LucideRedoDot:Mb,LucideRefreshCcw:wb,LucideRefreshCcwDot:xb,LucideRefreshCw:ps,LucideRefreshCwOff:vb,LucideRefrigerator:Lb,LucideRegex:Cb,LucideRemoveFormatting:Sb,LucideRepeat:_b,LucideRepeat1:Ib,LucideRepeat2:Bb,LucideReplace:Vb,LucideReplaceAll:Ab,LucideReply:qb,LucideReplyAll:zb,LucideRewind:Db,LucideRibbon:Pb,LucideRocket:Eb,LucideRockingChair:Tb,LucideRollerCoaster:Hb,LucideRose:jb,LucideRotate3D:dr,LucideRotate3d:dr,LucideRotateCcw:Rb,LucideRotateCcwKey:Ob,LucideRotateCcwSquare:Fb,LucideRotateCw:$b,LucideRotateCwSquare:Nb,LucideRoute:Wb,LucideRouteOff:Ub,LucideRouter:Gb,LucideRows:hr,LucideRows2:hr,LucideRows3:ur,LucideRows4:Kb,LucideRss:Xb,LucideRuler:Zb,LucideRulerDimensionLine:Yb,LucideRussianRuble:Qb,LucideSailboat:Jb,LucideSalad:eM,LucideSandwich:aM,LucideSatellite:nM,LucideSatelliteDish:tM,LucideSaudiRiyal:oM,LucideSave:sM,LucideSaveAll:iM,LucideSaveOff:rM,LucideScale:lM,LucideScale3D:pr,LucideScale3d:pr,LucideScaling:cM,LucideScan:mM,LucideScanBarcode:dM,LucideScanEye:hM,LucideScanFace:uM,LucideScanHeart:pM,LucideScanLine:yM,LucideScanQrCode:kM,LucideScanSearch:fM,LucideScanText:gM,LucideScatterChart:cn,LucideSchool:bM,LucideSchool2:zi,LucideScissors:wM,LucideScissorsLineDashed:MM,LucideScissorsSquare:hi,LucideScissorsSquareDashedBottom:Pr,LucideScooter:xM,LucideScreenShare:CM,LucideScreenShareOff:vM,LucideScroll:SM,LucideScrollText:LM,LucideSearch:yr,LucideSearchAlert:IM,LucideSearchCheck:AM,LucideSearchCode:_M,LucideSearchSlash:BM,LucideSearchX:VM,LucideSection:zM,LucideSend:PM,LucideSendHorizonal:fr,LucideSendHorizontal:fr,LucideSendToBack:qM,LucideSeparatorHorizontal:DM,LucideSeparatorVertical:EM,LucideServer:Js,LucideServerCog:TM,LucideServerCrash:HM,LucideServerOff:OM,LucideSettings:FM,LucideSettings2:jM,LucideShapes:RM,LucideShare:NM,LucideShare2:e1,LucideSheet:$M,LucideShell:UM,LucideShelvingUnit:WM,LucideShield:ax,LucideShieldAlert:GM,LucideShieldBan:KM,LucideShieldCheck:XM,LucideShieldClose:mr,LucideShieldEllipsis:ZM,LucideShieldHalf:YM,LucideShieldMinus:ex,LucideShieldOff:QM,LucideShieldPlus:JM,LucideShieldQuestion:kr,LucideShieldQuestionMark:kr,LucideShieldUser:tx,LucideShieldX:mr,LucideShip:ox,LucideShipWheel:nx,LucideShirt:rx,LucideShoppingBag:ix,LucideShoppingBasket:sx,LucideShoppingCart:t1,LucideShovel:cx,LucideShowerHead:lx,LucideShredder:dx,LucideShrimp:hx,LucideShrink:ux,LucideShrub:px,LucideShuffle:yx,LucideSidebar:tr,LucideSidebarClose:Jo,LucideSidebarOpen:er,LucideSigma:fx,LucideSigmaSquare:ui,LucideSignal:Mx,LucideSignalHigh:kx,LucideSignalLow:mx,LucideSignalMedium:gx,LucideSignalZero:bx,LucideSignature:xx,LucideSignpost:vx,LucideSignpostBig:wx,LucideSiren:Cx,LucideSkipBack:Sx,LucideSkipForward:Lx,LucideSkull:_x,LucideSlack:Ix,LucideSlash:Ax,LucideSlashSquare:pi,LucideSlice:Bx,LucideSliders:gr,LucideSlidersHorizontal:a1,LucideSlidersVertical:gr,LucideSmartphone:qx,LucideSmartphoneCharging:Vx,LucideSmartphoneNfc:zx,LucideSmile:Dx,LucideSmilePlus:Px,LucideSnail:Ex,LucideSnowflake:Tx,LucideSoapDispenserDroplet:Hx,LucideSofa:jx,LucideSolarPanel:Ox,LucideSortAsc:Oa,LucideSortDesc:Ta,LucideSoup:Fx,LucideSpace:Rx,LucideSpade:Nx,LucideSparkle:$x,LucideSparkles:br,LucideSpeaker:Ux,LucideSpeech:Wx,LucideSpellCheck:Xx,LucideSpellCheck2:Gx,LucideSpline:Zx,LucideSplinePointer:Kx,LucideSplit:Yx,LucideSplitSquareHorizontal:yi,LucideSplitSquareVertical:fi,LucideSpool:Qx,LucideSpotlight:Jx,LucideSprayCan:e9,LucideSprout:t9,LucideSquare:f9,LucideSquareActivity:Mr,LucideSquareArrowDown:vr,LucideSquareArrowDownLeft:xr,LucideSquareArrowDownRight:wr,LucideSquareArrowLeft:Cr,LucideSquareArrowOutDownLeft:Lr,LucideSquareArrowOutDownRight:Sr,LucideSquareArrowOutUpLeft:Ir,LucideSquareArrowOutUpRight:_r,LucideSquareArrowRight:Ar,LucideSquareArrowRightEnter:a9,LucideSquareArrowRightExit:n9,LucideSquareArrowUp:zr,LucideSquareArrowUpLeft:Vr,LucideSquareArrowUpRight:Br,LucideSquareAsterisk:qr,LucideSquareBottomDashedScissors:Pr,LucideSquareCenterlineDashedHorizontal:Dr,LucideSquareCenterlineDashedVertical:Er,LucideSquareChartGantt:Pt,LucideSquareCheck:Hr,LucideSquareCheckBig:Tr,LucideSquareChevronDown:jr,LucideSquareChevronLeft:Or,LucideSquareChevronRight:Fr,LucideSquareChevronUp:Rr,LucideSquareCode:Nr,LucideSquareDashed:Wr,LucideSquareDashedBottom:r9,LucideSquareDashedBottomCode:o9,LucideSquareDashedKanban:$r,LucideSquareDashedMousePointer:Ur,LucideSquareDashedTopSolid:i9,LucideSquareDivide:Kr,LucideSquareDot:Gr,LucideSquareEqual:Xr,LucideSquareFunction:Zr,LucideSquareGanttChart:Pt,LucideSquareKanban:Yr,LucideSquareLibrary:Qr,LucideSquareM:Jr,LucideSquareMenu:ei,LucideSquareMinus:ti,LucideSquareMousePointer:ai,LucideSquareParking:oi,LucideSquareParkingOff:ni,LucideSquarePause:s9,LucideSquarePen:Xe,LucideSquarePercent:ri,LucideSquarePi:ii,LucideSquarePilcrow:si,LucideSquarePlay:li,LucideSquarePlus:ci,LucideSquarePower:di,LucideSquareRadical:c9,LucideSquareRoundCorner:l9,LucideSquareScissors:hi,LucideSquareSigma:ui,LucideSquareSlash:pi,LucideSquareSplitHorizontal:yi,LucideSquareSplitVertical:fi,LucideSquareSquare:d9,LucideSquareStack:h9,LucideSquareStar:p9,LucideSquareStop:u9,LucideSquareTerminal:ki,LucideSquareUser:bi,LucideSquareUserRound:mi,LucideSquareX:gi,LucideSquaresExclude:y9,LucideSquaresIntersect:k9,LucideSquaresSubtract:m9,LucideSquaresUnite:g9,LucideSquircle:M9,LucideSquircleDashed:b9,LucideSquirrel:x9,LucideStamp:w9,LucideStar:S9,LucideStarHalf:v9,LucideStarOff:C9,LucideStars:br,LucideStepBack:L9,LucideStepForward:I9,LucideStethoscope:_9,LucideSticker:A9,LucideStickyNote:B9,LucideStone:V9,LucideStopCircle:Tn,LucideStore:z9,LucideStretchHorizontal:P9,LucideStretchVertical:q9,LucideStrikethrough:D9,LucideSubscript:E9,LucideSubtitles:Xa,LucideSun:F9,LucideSunDim:T9,LucideSunMedium:H9,LucideSunMoon:O9,LucideSunSnow:j9,LucideSunrise:R9,LucideSunset:N9,LucideSuperscript:$9,LucideSwatchBook:U9,LucideSwissFranc:W9,LucideSwitchCamera:K9,LucideSword:G9,LucideSwords:X9,LucideSyringe:Z9,LucideTable:rw,LucideTable2:Y9,LucideTableCellsMerge:Q9,LucideTableCellsSplit:J9,LucideTableColumnsSplit:ew,LucideTableConfig:At,LucideTableOfContents:tw,LucideTableProperties:aw,LucideTableRowsSplit:nw,LucideTablet:ow,LucideTabletSmartphone:iw,LucideTablets:sw,LucideTag:lw,LucideTags:cw,LucideTally1:dw,LucideTally2:hw,LucideTally3:uw,LucideTally4:pw,LucideTally5:yw,LucideTangent:fw,LucideTarget:kw,LucideTelescope:mw,LucideTent:bw,LucideTentTree:gw,LucideTerminal:Mw,LucideTerminalSquare:ki,LucideTestTube:xw,LucideTestTube2:Mi,LucideTestTubeDiagonal:Mi,LucideTestTubes:ww,LucideText:Dt,LucideTextAlignCenter:vi,LucideTextAlignEnd:xi,LucideTextAlignJustify:wi,LucideTextAlignStart:Dt,LucideTextCursor:Cw,LucideTextCursorInput:vw,LucideTextInitial:Ci,LucideTextQuote:Sw,LucideTextSearch:Lw,LucideTextSelect:Si,LucideTextSelection:Si,LucideTextWrap:Li,LucideTheater:Iw,LucideThermometer:Bw,LucideThermometerSnowflake:_w,LucideThermometerSun:Aw,LucideThumbsDown:zw,LucideThumbsUp:Vw,LucideTicket:Ow,LucideTicketCheck:qw,LucideTicketMinus:Pw,LucideTicketPercent:Dw,LucideTicketPlus:Ew,LucideTicketSlash:Tw,LucideTicketX:Hw,LucideTickets:Fw,LucideTicketsPlane:jw,LucideTimer:$w,LucideTimerOff:Rw,LucideTimerReset:Nw,LucideToggleLeft:n1,LucideToggleRight:Uw,LucideToilet:Ww,LucideToolCase:Gw,LucideToolbox:Kw,LucideTornado:Xw,LucideTorus:Zw,LucideTouchpad:Qw,LucideTouchpadOff:Yw,LucideTowelRack:Jw,LucideTowerControl:ev,LucideToyBrick:tv,LucideTractor:av,LucideTrafficCone:nv,LucideTrain:Ii,LucideTrainFront:sv,LucideTrainFrontTunnel:ov,LucideTrainTrack:rv,LucideTramFront:Ii,LucideTransgender:iv,LucideTrash:lv,LucideTrash2:_i,LucideTreeDeciduous:cv,LucideTreePalm:Ai,LucideTreePine:dv,LucideTrees:hv,LucideTrello:uv,LucideTrendingDown:pv,LucideTrendingUp:fv,LucideTrendingUpDown:yv,LucideTriangle:bv,LucideTriangleAlert:Bi,LucideTriangleDashed:kv,LucideTriangleRight:gv,LucideTrophy:mv,LucideTruck:xv,LucideTruckElectric:Mv,LucideTurkishLira:wv,LucideTurntable:vv,LucideTurtle:Cv,LucideTv:Sv,LucideTv2:Vi,LucideTvMinimal:Vi,LucideTvMinimalPlay:Lv,LucideTwitch:Iv,LucideTwitter:Av,LucideType:Bv,LucideTypeOutline:_v,LucideUmbrella:zv,LucideUmbrellaOff:Vv,LucideUnderline:qv,LucideUndo:Dv,LucideUndo2:Pv,LucideUndoDot:Ev,LucideUnfoldHorizontal:Tv,LucideUnfoldVertical:Hv,LucideUngroup:jv,LucideUniversity:zi,LucideUnlink:Fv,LucideUnlink2:Ov,LucideUnlock:Fo,LucideUnlockKeyhole:Oo,LucideUnplug:Rv,LucideUpload:Nv,LucideUploadCloud:ha,LucideUsb:$v,LucideUser:o1,LucideUser2:Hi,LucideUserCheck:Uv,LucideUserCheck2:qi,LucideUserCircle:jn,LucideUserCircle2:Hn,LucideUserCog:Wv,LucideUserCog2:Pi,LucideUserKey:Gv,LucideUserLock:Kv,LucideUserMinus:Xv,LucideUserMinus2:Di,LucideUserPen:Zv,LucideUserPlus:Yv,LucideUserPlus2:Ei,LucideUserRound:Hi,LucideUserRoundCheck:qi,LucideUserRoundCog:Pi,LucideUserRoundKey:Qv,LucideUserRoundMinus:Di,LucideUserRoundPen:Jv,LucideUserRoundPlus:Ei,LucideUserRoundSearch:eC,LucideUserRoundX:Ti,LucideUserSearch:aC,LucideUserSquare:bi,LucideUserSquare2:mi,LucideUserStar:tC,LucideUserX:nC,LucideUserX2:Ti,LucideUsers:oC,LucideUsers2:ji,LucideUsersRound:ji,LucideUtensils:Fi,LucideUtensilsCrossed:Oi,LucideUtilityPole:rC,LucideVan:iC,LucideVariable:lC,LucideVault:sC,LucideVectorSquare:cC,LucideVegan:dC,LucideVenetianMask:hC,LucideVenus:uC,LucideVenusAndMars:pC,LucideVerified:Na,LucideVibrate:fC,LucideVibrateOff:yC,LucideVideo:mC,LucideVideoOff:kC,LucideVideotape:gC,LucideView:bC,LucideVoicemail:MC,LucideVolleyball:vC,LucideVolume:LC,LucideVolume1:xC,LucideVolume2:wC,LucideVolumeOff:CC,LucideVolumeX:SC,LucideVote:IC,LucideWallet:AC,LucideWallet2:Ri,LucideWalletCards:_C,LucideWalletMinimal:Ri,LucideWallpaper:BC,LucideWand:VC,LucideWand2:Ni,LucideWandSparkles:Ni,LucideWarehouse:zC,LucideWashingMachine:qC,LucideWatch:PC,LucideWaves:HC,LucideWavesArrowDown:DC,LucideWavesArrowUp:EC,LucideWavesLadder:TC,LucideWaypoints:jC,LucideWebcam:OC,LucideWebhook:RC,LucideWebhookOff:FC,LucideWeight:$C,LucideWeightTilde:NC,LucideWheat:WC,LucideWheatOff:UC,LucideWholeWord:GC,LucideWifi:tL,LucideWifiCog:KC,LucideWifiHigh:XC,LucideWifiLow:YC,LucideWifiOff:ZC,LucideWifiPen:QC,LucideWifiSync:JC,LucideWifiZero:eL,LucideWind:aL,LucideWindArrowDown:nL,LucideWine:oL,LucideWineOff:rL,LucideWorkflow:iL,LucideWorm:sL,LucideWrapText:Li,LucideWrench:lL,LucideX:it,LucideXCircle:On,LucideXLineTop:cL,LucideXOctagon:Xo,LucideXSquare:gi,LucideYoutube:dL,LucideZap:pL,LucideZapOff:hL,LucideZoomIn:uL,LucideZoomOut:yL,Luggage:Ig,LuggageIcon:Ig,MSquare:Jr,MSquareIcon:Jr,Magnet:_g,MagnetIcon:_g,Mail:Eg,MailCheck:Ag,MailCheckIcon:Ag,MailIcon:Eg,MailMinus:Vg,MailMinusIcon:Vg,MailOpen:Bg,MailOpenIcon:Bg,MailPlus:zg,MailPlusIcon:zg,MailQuestion:Ro,MailQuestionIcon:Ro,MailQuestionMark:Ro,MailQuestionMarkIcon:Ro,MailSearch:qg,MailSearchIcon:qg,MailWarning:Dg,MailWarningIcon:Dg,MailX:Pg,MailXIcon:Pg,Mailbox:jg,MailboxIcon:jg,Mails:Tg,MailsIcon:Tg,Map:Qg,MapIcon:Qg,MapMinus:Hg,MapMinusIcon:Hg,MapPin:Ks,MapPinCheck:Og,MapPinCheckIcon:Og,MapPinCheckInside:Fg,MapPinCheckInsideIcon:Fg,MapPinHouse:Rg,MapPinHouseIcon:Rg,MapPinIcon:Ks,MapPinMinus:$g,MapPinMinusIcon:$g,MapPinMinusInside:Ng,MapPinMinusInsideIcon:Ng,MapPinOff:Ug,MapPinOffIcon:Ug,MapPinPen:No,MapPinPenIcon:No,MapPinPlus:Gg,MapPinPlusIcon:Gg,MapPinPlusInside:Wg,MapPinPlusInsideIcon:Wg,MapPinX:Kg,MapPinXIcon:Kg,MapPinXInside:Xg,MapPinXInsideIcon:Xg,MapPinned:Zg,MapPinnedIcon:Zg,MapPlus:Yg,MapPlusIcon:Yg,Mars:t3,MarsIcon:t3,MarsStroke:Jg,MarsStrokeIcon:Jg,Martini:e3,MartiniIcon:e3,Maximize:n3,Maximize2:a3,Maximize2Icon:a3,MaximizeIcon:n3,Medal:o3,MedalIcon:o3,Megaphone:i3,MegaphoneIcon:i3,MegaphoneOff:r3,MegaphoneOffIcon:r3,Meh:s3,MehIcon:s3,MemoryStick:l3,MemoryStickIcon:l3,Menu:c3,MenuIcon:c3,MenuSquare:ei,MenuSquareIcon:ei,Merge:d3,MergeIcon:d3,MessageCircle:x3,MessageCircleCheck:h3,MessageCircleCheckIcon:h3,MessageCircleCode:u3,MessageCircleCodeIcon:u3,MessageCircleDashed:p3,MessageCircleDashedIcon:p3,MessageCircleHeart:y3,MessageCircleHeartIcon:y3,MessageCircleIcon:x3,MessageCircleMore:k3,MessageCircleMoreIcon:k3,MessageCircleOff:f3,MessageCircleOffIcon:f3,MessageCirclePlus:m3,MessageCirclePlusIcon:m3,MessageCircleQuestion:$o,MessageCircleQuestionIcon:$o,MessageCircleQuestionMark:$o,MessageCircleQuestionMarkIcon:$o,MessageCircleReply:g3,MessageCircleReplyIcon:g3,MessageCircleWarning:b3,MessageCircleWarningIcon:b3,MessageCircleX:M3,MessageCircleXIcon:M3,MessageSquare:us,MessageSquareCheck:w3,MessageSquareCheckIcon:w3,MessageSquareCode:v3,MessageSquareCodeIcon:v3,MessageSquareDashed:C3,MessageSquareDashedIcon:C3,MessageSquareDiff:L3,MessageSquareDiffIcon:L3,MessageSquareDot:S3,MessageSquareDotIcon:S3,MessageSquareHeart:I3,MessageSquareHeartIcon:I3,MessageSquareIcon:us,MessageSquareLock:_3,MessageSquareLockIcon:_3,MessageSquareMore:A3,MessageSquareMoreIcon:A3,MessageSquareOff:B3,MessageSquareOffIcon:B3,MessageSquarePlus:V3,MessageSquarePlusIcon:V3,MessageSquareQuote:z3,MessageSquareQuoteIcon:z3,MessageSquareReply:q3,MessageSquareReplyIcon:q3,MessageSquareShare:P3,MessageSquareShareIcon:P3,MessageSquareText:E3,MessageSquareTextIcon:E3,MessageSquareWarning:D3,MessageSquareWarningIcon:D3,MessageSquareX:T3,MessageSquareXIcon:T3,MessagesSquare:H3,MessagesSquareIcon:H3,Metronome:j3,MetronomeIcon:j3,Mic:F3,Mic2:Uo,Mic2Icon:Uo,MicIcon:F3,MicOff:O3,MicOffIcon:O3,MicVocal:Uo,MicVocalIcon:Uo,Microchip:R3,MicrochipIcon:R3,Microscope:N3,MicroscopeIcon:N3,Microwave:$3,MicrowaveIcon:$3,Milestone:U3,MilestoneIcon:U3,Milk:G3,MilkIcon:G3,MilkOff:W3,MilkOffIcon:W3,Minimize:K3,Minimize2:X3,Minimize2Icon:X3,MinimizeIcon:K3,Minus:Xs,MinusCircle:_n,MinusCircleIcon:_n,MinusIcon:Xs,MinusSquare:ti,MinusSquareIcon:ti,MirrorRectangular:Z3,MirrorRectangularIcon:Z3,MirrorRound:Y3,MirrorRoundIcon:Y3,Monitor:h8,MonitorCheck:Q3,MonitorCheckIcon:Q3,MonitorCloud:J3,MonitorCloudIcon:J3,MonitorCog:e8,MonitorCogIcon:e8,MonitorDot:t8,MonitorDotIcon:t8,MonitorDown:a8,MonitorDownIcon:a8,MonitorIcon:h8,MonitorOff:n8,MonitorOffIcon:n8,MonitorPause:o8,MonitorPauseIcon:o8,MonitorPlay:r8,MonitorPlayIcon:r8,MonitorSmartphone:i8,MonitorSmartphoneIcon:i8,MonitorSpeaker:s8,MonitorSpeakerIcon:s8,MonitorStop:l8,MonitorStopIcon:l8,MonitorUp:c8,MonitorUpIcon:c8,MonitorX:d8,MonitorXIcon:d8,Moon:p8,MoonIcon:p8,MoonStar:u8,MoonStarIcon:u8,MoreHorizontal:ua,MoreHorizontalIcon:ua,MoreVertical:Zn,MoreVerticalIcon:Zn,Motorbike:y8,MotorbikeIcon:y8,Mountain:k8,MountainIcon:k8,MountainSnow:f8,MountainSnowIcon:f8,Mouse:L8,MouseIcon:L8,MouseLeft:m8,MouseLeftIcon:m8,MouseOff:g8,MouseOffIcon:g8,MousePointer:v8,MousePointer2:M8,MousePointer2Icon:M8,MousePointer2Off:b8,MousePointer2OffIcon:b8,MousePointerBan:x8,MousePointerBanIcon:x8,MousePointerClick:w8,MousePointerClickIcon:w8,MousePointerIcon:v8,MousePointerSquareDashed:Ur,MousePointerSquareDashedIcon:Ur,MouseRight:C8,MouseRightIcon:C8,Move:H8,Move3D:Wo,Move3DIcon:Wo,Move3d:Wo,Move3dIcon:Wo,MoveDiagonal:I8,MoveDiagonal2:S8,MoveDiagonal2Icon:S8,MoveDiagonalIcon:I8,MoveDown:B8,MoveDownIcon:B8,MoveDownLeft:_8,MoveDownLeftIcon:_8,MoveDownRight:A8,MoveDownRightIcon:A8,MoveHorizontal:V8,MoveHorizontalIcon:V8,MoveIcon:H8,MoveLeft:z8,MoveLeftIcon:z8,MoveRight:P8,MoveRightIcon:P8,MoveUp:E8,MoveUpIcon:E8,MoveUpLeft:q8,MoveUpLeftIcon:q8,MoveUpRight:D8,MoveUpRightIcon:D8,MoveVertical:T8,MoveVerticalIcon:T8,Music:R8,Music2:j8,Music2Icon:j8,Music3:O8,Music3Icon:O8,Music4:F8,Music4Icon:F8,MusicIcon:R8,Navigation:W8,Navigation2:$8,Navigation2Icon:$8,Navigation2Off:N8,Navigation2OffIcon:N8,NavigationIcon:W8,NavigationOff:U8,NavigationOffIcon:U8,Network:G8,NetworkIcon:G8,Newspaper:K8,NewspaperIcon:K8,Nfc:X8,NfcIcon:X8,NonBinary:Z8,NonBinaryIcon:Z8,Notebook:e6,NotebookIcon:e6,NotebookPen:Q8,NotebookPenIcon:Q8,NotebookTabs:Y8,NotebookTabsIcon:Y8,NotebookText:J8,NotebookTextIcon:J8,NotepadText:a6,NotepadTextDashed:t6,NotepadTextDashedIcon:t6,NotepadTextIcon:a6,Nut:o6,NutIcon:o6,NutOff:n6,NutOffIcon:n6,Octagon:i6,OctagonAlert:Go,OctagonAlertIcon:Go,OctagonIcon:i6,OctagonMinus:r6,OctagonMinusIcon:r6,OctagonPause:Ko,OctagonPauseIcon:Ko,OctagonX:Xo,OctagonXIcon:Xo,Omega:s6,OmegaIcon:s6,Option:l6,OptionIcon:l6,Orbit:c6,OrbitIcon:c6,Origami:d6,OrigamiIcon:d6,Outdent:zt,OutdentIcon:zt,Package:g6,Package2:h6,Package2Icon:h6,PackageCheck:p6,PackageCheckIcon:p6,PackageIcon:g6,PackageMinus:u6,PackageMinusIcon:u6,PackageOpen:y6,PackageOpenIcon:y6,PackagePlus:f6,PackagePlusIcon:f6,PackageSearch:k6,PackageSearchIcon:k6,PackageX:m6,PackageXIcon:m6,PaintBucket:b6,PaintBucketIcon:b6,PaintRoller:M6,PaintRollerIcon:M6,Paintbrush:x6,Paintbrush2:Zo,Paintbrush2Icon:Zo,PaintbrushIcon:x6,PaintbrushVertical:Zo,PaintbrushVerticalIcon:Zo,Palette:w6,PaletteIcon:w6,Palmtree:Ai,PalmtreeIcon:Ai,Panda:v6,PandaIcon:v6,PanelBottom:S6,PanelBottomClose:C6,PanelBottomCloseIcon:C6,PanelBottomDashed:Yo,PanelBottomDashedIcon:Yo,PanelBottomIcon:S6,PanelBottomInactive:Yo,PanelBottomInactiveIcon:Yo,PanelBottomOpen:L6,PanelBottomOpenIcon:L6,PanelLeft:tr,PanelLeftClose:Jo,PanelLeftCloseIcon:Jo,PanelLeftDashed:Qo,PanelLeftDashedIcon:Qo,PanelLeftIcon:tr,PanelLeftInactive:Qo,PanelLeftInactiveIcon:Qo,PanelLeftOpen:er,PanelLeftOpenIcon:er,PanelLeftRightDashed:I6,PanelLeftRightDashedIcon:I6,PanelRight:B6,PanelRightClose:_6,PanelRightCloseIcon:_6,PanelRightDashed:ar,PanelRightDashedIcon:ar,PanelRightIcon:B6,PanelRightInactive:ar,PanelRightInactiveIcon:ar,PanelRightOpen:A6,PanelRightOpenIcon:A6,PanelTop:P6,PanelTopBottomDashed:V6,PanelTopBottomDashedIcon:V6,PanelTopClose:z6,PanelTopCloseIcon:z6,PanelTopDashed:nr,PanelTopDashedIcon:nr,PanelTopIcon:P6,PanelTopInactive:nr,PanelTopInactiveIcon:nr,PanelTopOpen:q6,PanelTopOpenIcon:q6,PanelsLeftBottom:D6,PanelsLeftBottomIcon:D6,PanelsLeftRight:Wn,PanelsLeftRightIcon:Wn,PanelsRightBottom:E6,PanelsRightBottomIcon:E6,PanelsTopBottom:ur,PanelsTopBottomIcon:ur,PanelsTopLeft:or,PanelsTopLeftIcon:or,Paperclip:T6,PaperclipIcon:T6,Parentheses:H6,ParenthesesIcon:H6,ParkingCircle:Bn,ParkingCircleIcon:Bn,ParkingCircleOff:An,ParkingCircleOffIcon:An,ParkingMeter:j6,ParkingMeterIcon:j6,ParkingSquare:oi,ParkingSquareIcon:oi,ParkingSquareOff:ni,ParkingSquareOffIcon:ni,PartyPopper:O6,PartyPopperIcon:O6,Pause:F6,PauseCircle:Vn,PauseCircleIcon:Vn,PauseIcon:F6,PauseOctagon:Ko,PauseOctagonIcon:Ko,PawPrint:R6,PawPrintIcon:R6,PcCase:N6,PcCaseIcon:N6,Pen:ir,PenBox:Xe,PenBoxIcon:Xe,PenIcon:ir,PenLine:rr,PenLineIcon:rr,PenOff:$6,PenOffIcon:$6,PenSquare:Xe,PenSquareIcon:Xe,PenTool:U6,PenToolIcon:U6,Pencil:sr,PencilIcon:sr,PencilLine:W6,PencilLineIcon:W6,PencilOff:G6,PencilOffIcon:G6,PencilRuler:K6,PencilRulerIcon:K6,Pentagon:X6,PentagonIcon:X6,Percent:Z6,PercentCircle:zn,PercentCircleIcon:zn,PercentDiamond:Kn,PercentDiamondIcon:Kn,PercentIcon:Z6,PercentSquare:ri,PercentSquareIcon:ri,PersonStanding:Y6,PersonStandingIcon:Y6,PhilippinePeso:Q6,PhilippinePesoIcon:Q6,Phone:Zs,PhoneCall:J6,PhoneCallIcon:J6,PhoneForwarded:e7,PhoneForwardedIcon:e7,PhoneIcon:Zs,PhoneIncoming:t7,PhoneIncomingIcon:t7,PhoneMissed:n7,PhoneMissedIcon:n7,PhoneOff:a7,PhoneOffIcon:a7,PhoneOutgoing:o7,PhoneOutgoingIcon:o7,Pi:r7,PiIcon:r7,PiSquare:ii,PiSquareIcon:ii,Piano:i7,PianoIcon:i7,Pickaxe:s7,PickaxeIcon:s7,PictureInPicture:c7,PictureInPicture2:l7,PictureInPicture2Icon:l7,PictureInPictureIcon:c7,PieChart:sn,PieChartIcon:sn,PiggyBank:d7,PiggyBankIcon:d7,Pilcrow:p7,PilcrowIcon:p7,PilcrowLeft:h7,PilcrowLeftIcon:h7,PilcrowRight:u7,PilcrowRightIcon:u7,PilcrowSquare:si,PilcrowSquareIcon:si,Pill:g7,PillBottle:y7,PillBottleIcon:y7,PillIcon:g7,Pin:k7,PinIcon:k7,PinOff:f7,PinOffIcon:f7,Pipette:m7,PipetteIcon:m7,Pizza:b7,PizzaIcon:b7,Plane:Ys,PlaneIcon:Ys,PlaneLanding:M7,PlaneLandingIcon:M7,PlaneTakeoff:x7,PlaneTakeoffIcon:x7,Play:w7,PlayCircle:qn,PlayCircleIcon:qn,PlayIcon:w7,PlaySquare:li,PlaySquareIcon:li,Plug:C7,Plug2:v7,Plug2Icon:v7,PlugIcon:C7,PlugZap:lr,PlugZap2:lr,PlugZap2Icon:lr,PlugZapIcon:lr,Plus:Qs,PlusCircle:Pn,PlusCircleIcon:Pn,PlusIcon:Qs,PlusSquare:ci,PlusSquareIcon:ci,Pocket:S7,PocketIcon:S7,PocketKnife:L7,PocketKnifeIcon:L7,Podcast:I7,PodcastIcon:I7,Pointer:A7,PointerIcon:A7,PointerOff:_7,PointerOffIcon:_7,Popcorn:B7,PopcornIcon:B7,Popsicle:V7,PopsicleIcon:V7,PoundSterling:q7,PoundSterlingIcon:q7,Power:P7,PowerCircle:Dn,PowerCircleIcon:Dn,PowerIcon:P7,PowerOff:z7,PowerOffIcon:z7,PowerSquare:di,PowerSquareIcon:di,Presentation:D7,PresentationIcon:D7,Printer:H7,PrinterCheck:E7,PrinterCheckIcon:E7,PrinterIcon:H7,PrinterX:T7,PrinterXIcon:T7,Projector:j7,ProjectorIcon:j7,Proportions:R7,ProportionsIcon:R7,Puzzle:O7,PuzzleIcon:O7,Pyramid:F7,PyramidIcon:F7,QrCode:N7,QrCodeIcon:N7,Quote:$7,QuoteIcon:$7,Rabbit:W7,RabbitIcon:W7,Radar:U7,RadarIcon:U7,Radiation:K7,RadiationIcon:K7,Radical:G7,RadicalIcon:G7,Radio:Y7,RadioIcon:Y7,RadioReceiver:X7,RadioReceiverIcon:X7,RadioTower:Z7,RadioTowerIcon:Z7,Radius:Q7,RadiusIcon:Q7,RailSymbol:J7,RailSymbolIcon:J7,Rainbow:eb,RainbowIcon:eb,Rat:tb,RatIcon:tb,Ratio:ab,RatioIcon:ab,Receipt:ub,ReceiptCent:nb,ReceiptCentIcon:nb,ReceiptEuro:ob,ReceiptEuroIcon:ob,ReceiptIcon:ub,ReceiptIndianRupee:rb,ReceiptIndianRupeeIcon:rb,ReceiptJapaneseYen:ib,ReceiptJapaneseYenIcon:ib,ReceiptPoundSterling:sb,ReceiptPoundSterlingIcon:sb,ReceiptRussianRuble:lb,ReceiptRussianRubleIcon:lb,ReceiptSwissFranc:cb,ReceiptSwissFrancIcon:cb,ReceiptText:db,ReceiptTextIcon:db,ReceiptTurkishLira:hb,ReceiptTurkishLiraIcon:hb,RectangleCircle:pb,RectangleCircleIcon:pb,RectangleEllipsis:cr,RectangleEllipsisIcon:cr,RectangleGoggles:yb,RectangleGogglesIcon:yb,RectangleHorizontal:fb,RectangleHorizontalIcon:fb,RectangleVertical:kb,RectangleVerticalIcon:kb,Recycle:mb,RecycleIcon:mb,Redo:bb,Redo2:gb,Redo2Icon:gb,RedoDot:Mb,RedoDotIcon:Mb,RedoIcon:bb,RefreshCcw:wb,RefreshCcwDot:xb,RefreshCcwDotIcon:xb,RefreshCcwIcon:wb,RefreshCw:ps,RefreshCwIcon:ps,RefreshCwOff:vb,RefreshCwOffIcon:vb,Refrigerator:Lb,RefrigeratorIcon:Lb,Regex:Cb,RegexIcon:Cb,RemoveFormatting:Sb,RemoveFormattingIcon:Sb,Repeat:_b,Repeat1:Ib,Repeat1Icon:Ib,Repeat2:Bb,Repeat2Icon:Bb,RepeatIcon:_b,Replace:Vb,ReplaceAll:Ab,ReplaceAllIcon:Ab,ReplaceIcon:Vb,Reply:qb,ReplyAll:zb,ReplyAllIcon:zb,ReplyIcon:qb,Rewind:Db,RewindIcon:Db,Ribbon:Pb,RibbonIcon:Pb,Rocket:Eb,RocketIcon:Eb,RockingChair:Tb,RockingChairIcon:Tb,RollerCoaster:Hb,RollerCoasterIcon:Hb,Rose:jb,RoseIcon:jb,Rotate3D:dr,Rotate3DIcon:dr,Rotate3d:dr,Rotate3dIcon:dr,RotateCcw:Rb,RotateCcwIcon:Rb,RotateCcwKey:Ob,RotateCcwKeyIcon:Ob,RotateCcwSquare:Fb,RotateCcwSquareIcon:Fb,RotateCw:$b,RotateCwIcon:$b,RotateCwSquare:Nb,RotateCwSquareIcon:Nb,Route:Wb,RouteIcon:Wb,RouteOff:Ub,RouteOffIcon:Ub,Router:Gb,RouterIcon:Gb,Rows:hr,Rows2:hr,Rows2Icon:hr,Rows3:ur,Rows3Icon:ur,Rows4:Kb,Rows4Icon:Kb,RowsIcon:hr,Rss:Xb,RssIcon:Xb,Ruler:Zb,RulerDimensionLine:Yb,RulerDimensionLineIcon:Yb,RulerIcon:Zb,RussianRuble:Qb,RussianRubleIcon:Qb,Sailboat:Jb,SailboatIcon:Jb,Salad:eM,SaladIcon:eM,Sandwich:aM,SandwichIcon:aM,Satellite:nM,SatelliteDish:tM,SatelliteDishIcon:tM,SatelliteIcon:nM,SaudiRiyal:oM,SaudiRiyalIcon:oM,Save:sM,SaveAll:iM,SaveAllIcon:iM,SaveIcon:sM,SaveOff:rM,SaveOffIcon:rM,Scale:lM,Scale3D:pr,Scale3DIcon:pr,Scale3d:pr,Scale3dIcon:pr,ScaleIcon:lM,Scaling:cM,ScalingIcon:cM,Scan:mM,ScanBarcode:dM,ScanBarcodeIcon:dM,ScanEye:hM,ScanEyeIcon:hM,ScanFace:uM,ScanFaceIcon:uM,ScanHeart:pM,ScanHeartIcon:pM,ScanIcon:mM,ScanLine:yM,ScanLineIcon:yM,ScanQrCode:kM,ScanQrCodeIcon:kM,ScanSearch:fM,ScanSearchIcon:fM,ScanText:gM,ScanTextIcon:gM,ScatterChart:cn,ScatterChartIcon:cn,School:bM,School2:zi,School2Icon:zi,SchoolIcon:bM,Scissors:wM,ScissorsIcon:wM,ScissorsLineDashed:MM,ScissorsLineDashedIcon:MM,ScissorsSquare:hi,ScissorsSquareDashedBottom:Pr,ScissorsSquareDashedBottomIcon:Pr,ScissorsSquareIcon:hi,Scooter:xM,ScooterIcon:xM,ScreenShare:CM,ScreenShareIcon:CM,ScreenShareOff:vM,ScreenShareOffIcon:vM,Scroll:SM,ScrollIcon:SM,ScrollText:LM,ScrollTextIcon:LM,Search:yr,SearchAlert:IM,SearchAlertIcon:IM,SearchCheck:AM,SearchCheckIcon:AM,SearchCode:_M,SearchCodeIcon:_M,SearchIcon:yr,SearchSlash:BM,SearchSlashIcon:BM,SearchX:VM,SearchXIcon:VM,Section:zM,SectionIcon:zM,Send:PM,SendHorizonal:fr,SendHorizonalIcon:fr,SendHorizontal:fr,SendHorizontalIcon:fr,SendIcon:PM,SendToBack:qM,SendToBackIcon:qM,SeparatorHorizontal:DM,SeparatorHorizontalIcon:DM,SeparatorVertical:EM,SeparatorVerticalIcon:EM,Server:Js,ServerCog:TM,ServerCogIcon:TM,ServerCrash:HM,ServerCrashIcon:HM,ServerIcon:Js,ServerOff:OM,ServerOffIcon:OM,Settings:FM,Settings2:jM,Settings2Icon:jM,SettingsIcon:FM,Shapes:RM,ShapesIcon:RM,Share:NM,Share2:e1,Share2Icon:e1,ShareIcon:NM,Sheet:$M,SheetIcon:$M,Shell:UM,ShellIcon:UM,ShelvingUnit:WM,ShelvingUnitIcon:WM,Shield:ax,ShieldAlert:GM,ShieldAlertIcon:GM,ShieldBan:KM,ShieldBanIcon:KM,ShieldCheck:XM,ShieldCheckIcon:XM,ShieldClose:mr,ShieldCloseIcon:mr,ShieldEllipsis:ZM,ShieldEllipsisIcon:ZM,ShieldHalf:YM,ShieldHalfIcon:YM,ShieldIcon:ax,ShieldMinus:ex,ShieldMinusIcon:ex,ShieldOff:QM,ShieldOffIcon:QM,ShieldPlus:JM,ShieldPlusIcon:JM,ShieldQuestion:kr,ShieldQuestionIcon:kr,ShieldQuestionMark:kr,ShieldQuestionMarkIcon:kr,ShieldUser:tx,ShieldUserIcon:tx,ShieldX:mr,ShieldXIcon:mr,Ship:ox,ShipIcon:ox,ShipWheel:nx,ShipWheelIcon:nx,Shirt:rx,ShirtIcon:rx,ShoppingBag:ix,ShoppingBagIcon:ix,ShoppingBasket:sx,ShoppingBasketIcon:sx,ShoppingCart:t1,ShoppingCartIcon:t1,Shovel:cx,ShovelIcon:cx,ShowerHead:lx,ShowerHeadIcon:lx,Shredder:dx,ShredderIcon:dx,Shrimp:hx,ShrimpIcon:hx,Shrink:ux,ShrinkIcon:ux,Shrub:px,ShrubIcon:px,Shuffle:yx,ShuffleIcon:yx,Sidebar:tr,SidebarClose:Jo,SidebarCloseIcon:Jo,SidebarIcon:tr,SidebarOpen:er,SidebarOpenIcon:er,Sigma:fx,SigmaIcon:fx,SigmaSquare:ui,SigmaSquareIcon:ui,Signal:Mx,SignalHigh:kx,SignalHighIcon:kx,SignalIcon:Mx,SignalLow:mx,SignalLowIcon:mx,SignalMedium:gx,SignalMediumIcon:gx,SignalZero:bx,SignalZeroIcon:bx,Signature:xx,SignatureIcon:xx,Signpost:vx,SignpostBig:wx,SignpostBigIcon:wx,SignpostIcon:vx,Siren:Cx,SirenIcon:Cx,SkipBack:Sx,SkipBackIcon:Sx,SkipForward:Lx,SkipForwardIcon:Lx,Skull:_x,SkullIcon:_x,Slack:Ix,SlackIcon:Ix,Slash:Ax,SlashIcon:Ax,SlashSquare:pi,SlashSquareIcon:pi,Slice:Bx,SliceIcon:Bx,Sliders:gr,SlidersHorizontal:a1,SlidersHorizontalIcon:a1,SlidersIcon:gr,SlidersVertical:gr,SlidersVerticalIcon:gr,Smartphone:qx,SmartphoneCharging:Vx,SmartphoneChargingIcon:Vx,SmartphoneIcon:qx,SmartphoneNfc:zx,SmartphoneNfcIcon:zx,Smile:Dx,SmileIcon:Dx,SmilePlus:Px,SmilePlusIcon:Px,Snail:Ex,SnailIcon:Ex,Snowflake:Tx,SnowflakeIcon:Tx,SoapDispenserDroplet:Hx,SoapDispenserDropletIcon:Hx,Sofa:jx,SofaIcon:jx,SolarPanel:Ox,SolarPanelIcon:Ox,SortAsc:Oa,SortAscIcon:Oa,SortDesc:Ta,SortDescIcon:Ta,Soup:Fx,SoupIcon:Fx,Space:Rx,SpaceIcon:Rx,Spade:Nx,SpadeIcon:Nx,Sparkle:$x,SparkleIcon:$x,Sparkles:br,SparklesIcon:br,Speaker:Ux,SpeakerIcon:Ux,Speech:Wx,SpeechIcon:Wx,SpellCheck:Xx,SpellCheck2:Gx,SpellCheck2Icon:Gx,SpellCheckIcon:Xx,Spline:Zx,SplineIcon:Zx,SplinePointer:Kx,SplinePointerIcon:Kx,Split:Yx,SplitIcon:Yx,SplitSquareHorizontal:yi,SplitSquareHorizontalIcon:yi,SplitSquareVertical:fi,SplitSquareVerticalIcon:fi,Spool:Qx,SpoolIcon:Qx,Spotlight:Jx,SpotlightIcon:Jx,SprayCan:e9,SprayCanIcon:e9,Sprout:t9,SproutIcon:t9,Square:f9,SquareActivity:Mr,SquareActivityIcon:Mr,SquareArrowDown:vr,SquareArrowDownIcon:vr,SquareArrowDownLeft:xr,SquareArrowDownLeftIcon:xr,SquareArrowDownRight:wr,SquareArrowDownRightIcon:wr,SquareArrowLeft:Cr,SquareArrowLeftIcon:Cr,SquareArrowOutDownLeft:Lr,SquareArrowOutDownLeftIcon:Lr,SquareArrowOutDownRight:Sr,SquareArrowOutDownRightIcon:Sr,SquareArrowOutUpLeft:Ir,SquareArrowOutUpLeftIcon:Ir,SquareArrowOutUpRight:_r,SquareArrowOutUpRightIcon:_r,SquareArrowRight:Ar,SquareArrowRightEnter:a9,SquareArrowRightEnterIcon:a9,SquareArrowRightExit:n9,SquareArrowRightExitIcon:n9,SquareArrowRightIcon:Ar,SquareArrowUp:zr,SquareArrowUpIcon:zr,SquareArrowUpLeft:Vr,SquareArrowUpLeftIcon:Vr,SquareArrowUpRight:Br,SquareArrowUpRightIcon:Br,SquareAsterisk:qr,SquareAsteriskIcon:qr,SquareBottomDashedScissors:Pr,SquareBottomDashedScissorsIcon:Pr,SquareCenterlineDashedHorizontal:Dr,SquareCenterlineDashedHorizontalIcon:Dr,SquareCenterlineDashedVertical:Er,SquareCenterlineDashedVerticalIcon:Er,SquareChartGantt:Pt,SquareChartGanttIcon:Pt,SquareCheck:Hr,SquareCheckBig:Tr,SquareCheckBigIcon:Tr,SquareCheckIcon:Hr,SquareChevronDown:jr,SquareChevronDownIcon:jr,SquareChevronLeft:Or,SquareChevronLeftIcon:Or,SquareChevronRight:Fr,SquareChevronRightIcon:Fr,SquareChevronUp:Rr,SquareChevronUpIcon:Rr,SquareCode:Nr,SquareCodeIcon:Nr,SquareDashed:Wr,SquareDashedBottom:r9,SquareDashedBottomCode:o9,SquareDashedBottomCodeIcon:o9,SquareDashedBottomIcon:r9,SquareDashedIcon:Wr,SquareDashedKanban:$r,SquareDashedKanbanIcon:$r,SquareDashedMousePointer:Ur,SquareDashedMousePointerIcon:Ur,SquareDashedTopSolid:i9,SquareDashedTopSolidIcon:i9,SquareDivide:Kr,SquareDivideIcon:Kr,SquareDot:Gr,SquareDotIcon:Gr,SquareEqual:Xr,SquareEqualIcon:Xr,SquareFunction:Zr,SquareFunctionIcon:Zr,SquareGanttChart:Pt,SquareGanttChartIcon:Pt,SquareIcon:f9,SquareKanban:Yr,SquareKanbanIcon:Yr,SquareLibrary:Qr,SquareLibraryIcon:Qr,SquareM:Jr,SquareMIcon:Jr,SquareMenu:ei,SquareMenuIcon:ei,SquareMinus:ti,SquareMinusIcon:ti,SquareMousePointer:ai,SquareMousePointerIcon:ai,SquareParking:oi,SquareParkingIcon:oi,SquareParkingOff:ni,SquareParkingOffIcon:ni,SquarePause:s9,SquarePauseIcon:s9,SquarePen:Xe,SquarePenIcon:Xe,SquarePercent:ri,SquarePercentIcon:ri,SquarePi:ii,SquarePiIcon:ii,SquarePilcrow:si,SquarePilcrowIcon:si,SquarePlay:li,SquarePlayIcon:li,SquarePlus:ci,SquarePlusIcon:ci,SquarePower:di,SquarePowerIcon:di,SquareRadical:c9,SquareRadicalIcon:c9,SquareRoundCorner:l9,SquareRoundCornerIcon:l9,SquareScissors:hi,SquareScissorsIcon:hi,SquareSigma:ui,SquareSigmaIcon:ui,SquareSlash:pi,SquareSlashIcon:pi,SquareSplitHorizontal:yi,SquareSplitHorizontalIcon:yi,SquareSplitVertical:fi,SquareSplitVerticalIcon:fi,SquareSquare:d9,SquareSquareIcon:d9,SquareStack:h9,SquareStackIcon:h9,SquareStar:p9,SquareStarIcon:p9,SquareStop:u9,SquareStopIcon:u9,SquareTerminal:ki,SquareTerminalIcon:ki,SquareUser:bi,SquareUserIcon:bi,SquareUserRound:mi,SquareUserRoundIcon:mi,SquareX:gi,SquareXIcon:gi,SquaresExclude:y9,SquaresExcludeIcon:y9,SquaresIntersect:k9,SquaresIntersectIcon:k9,SquaresSubtract:m9,SquaresSubtractIcon:m9,SquaresUnite:g9,SquaresUniteIcon:g9,Squircle:M9,SquircleDashed:b9,SquircleDashedIcon:b9,SquircleIcon:M9,Squirrel:x9,SquirrelIcon:x9,Stamp:w9,StampIcon:w9,Star:S9,StarHalf:v9,StarHalfIcon:v9,StarIcon:S9,StarOff:C9,StarOffIcon:C9,Stars:br,StarsIcon:br,StepBack:L9,StepBackIcon:L9,StepForward:I9,StepForwardIcon:I9,Stethoscope:_9,StethoscopeIcon:_9,Sticker:A9,StickerIcon:A9,StickyNote:B9,StickyNoteIcon:B9,Stone:V9,StoneIcon:V9,StopCircle:Tn,StopCircleIcon:Tn,Store:z9,StoreIcon:z9,StretchHorizontal:P9,StretchHorizontalIcon:P9,StretchVertical:q9,StretchVerticalIcon:q9,Strikethrough:D9,StrikethroughIcon:D9,Subscript:E9,SubscriptIcon:E9,Subtitles:Xa,SubtitlesIcon:Xa,Sun:F9,SunDim:T9,SunDimIcon:T9,SunIcon:F9,SunMedium:H9,SunMediumIcon:H9,SunMoon:O9,SunMoonIcon:O9,SunSnow:j9,SunSnowIcon:j9,Sunrise:R9,SunriseIcon:R9,Sunset:N9,SunsetIcon:N9,Superscript:$9,SuperscriptIcon:$9,SwatchBook:U9,SwatchBookIcon:U9,SwissFranc:W9,SwissFrancIcon:W9,SwitchCamera:K9,SwitchCameraIcon:K9,Sword:G9,SwordIcon:G9,Swords:X9,SwordsIcon:X9,Syringe:Z9,SyringeIcon:Z9,Table:rw,Table2:Y9,Table2Icon:Y9,TableCellsMerge:Q9,TableCellsMergeIcon:Q9,TableCellsSplit:J9,TableCellsSplitIcon:J9,TableColumnsSplit:ew,TableColumnsSplitIcon:ew,TableConfig:At,TableConfigIcon:At,TableIcon:rw,TableOfContents:tw,TableOfContentsIcon:tw,TableProperties:aw,TablePropertiesIcon:aw,TableRowsSplit:nw,TableRowsSplitIcon:nw,Tablet:ow,TabletIcon:ow,TabletSmartphone:iw,TabletSmartphoneIcon:iw,Tablets:sw,TabletsIcon:sw,Tag:lw,TagIcon:lw,Tags:cw,TagsIcon:cw,Tally1:dw,Tally1Icon:dw,Tally2:hw,Tally2Icon:hw,Tally3:uw,Tally3Icon:uw,Tally4:pw,Tally4Icon:pw,Tally5:yw,Tally5Icon:yw,Tangent:fw,TangentIcon:fw,Target:kw,TargetIcon:kw,Telescope:mw,TelescopeIcon:mw,Tent:bw,TentIcon:bw,TentTree:gw,TentTreeIcon:gw,Terminal:Mw,TerminalIcon:Mw,TerminalSquare:ki,TerminalSquareIcon:ki,TestTube:xw,TestTube2:Mi,TestTube2Icon:Mi,TestTubeDiagonal:Mi,TestTubeDiagonalIcon:Mi,TestTubeIcon:xw,TestTubes:ww,TestTubesIcon:ww,Text:Dt,TextAlignCenter:vi,TextAlignCenterIcon:vi,TextAlignEnd:xi,TextAlignEndIcon:xi,TextAlignJustify:wi,TextAlignJustifyIcon:wi,TextAlignStart:Dt,TextAlignStartIcon:Dt,TextCursor:Cw,TextCursorIcon:Cw,TextCursorInput:vw,TextCursorInputIcon:vw,TextIcon:Dt,TextInitial:Ci,TextInitialIcon:Ci,TextQuote:Sw,TextQuoteIcon:Sw,TextSearch:Lw,TextSearchIcon:Lw,TextSelect:Si,TextSelectIcon:Si,TextSelection:Si,TextSelectionIcon:Si,TextWrap:Li,TextWrapIcon:Li,Theater:Iw,TheaterIcon:Iw,Thermometer:Bw,ThermometerIcon:Bw,ThermometerSnowflake:_w,ThermometerSnowflakeIcon:_w,ThermometerSun:Aw,ThermometerSunIcon:Aw,ThumbsDown:zw,ThumbsDownIcon:zw,ThumbsUp:Vw,ThumbsUpIcon:Vw,Ticket:Ow,TicketCheck:qw,TicketCheckIcon:qw,TicketIcon:Ow,TicketMinus:Pw,TicketMinusIcon:Pw,TicketPercent:Dw,TicketPercentIcon:Dw,TicketPlus:Ew,TicketPlusIcon:Ew,TicketSlash:Tw,TicketSlashIcon:Tw,TicketX:Hw,TicketXIcon:Hw,Tickets:Fw,TicketsIcon:Fw,TicketsPlane:jw,TicketsPlaneIcon:jw,Timer:$w,TimerIcon:$w,TimerOff:Rw,TimerOffIcon:Rw,TimerReset:Nw,TimerResetIcon:Nw,ToggleLeft:n1,ToggleLeftIcon:n1,ToggleRight:Uw,ToggleRightIcon:Uw,Toilet:Ww,ToiletIcon:Ww,ToolCase:Gw,ToolCaseIcon:Gw,Toolbox:Kw,ToolboxIcon:Kw,Tornado:Xw,TornadoIcon:Xw,Torus:Zw,TorusIcon:Zw,Touchpad:Qw,TouchpadIcon:Qw,TouchpadOff:Yw,TouchpadOffIcon:Yw,TowelRack:Jw,TowelRackIcon:Jw,TowerControl:ev,TowerControlIcon:ev,ToyBrick:tv,ToyBrickIcon:tv,Tractor:av,TractorIcon:av,TrafficCone:nv,TrafficConeIcon:nv,Train:Ii,TrainFront:sv,TrainFrontIcon:sv,TrainFrontTunnel:ov,TrainFrontTunnelIcon:ov,TrainIcon:Ii,TrainTrack:rv,TrainTrackIcon:rv,TramFront:Ii,TramFrontIcon:Ii,Transgender:iv,TransgenderIcon:iv,Trash:lv,Trash2:_i,Trash2Icon:_i,TrashIcon:lv,TreeDeciduous:cv,TreeDeciduousIcon:cv,TreePalm:Ai,TreePalmIcon:Ai,TreePine:dv,TreePineIcon:dv,Trees:hv,TreesIcon:hv,Trello:uv,TrelloIcon:uv,TrendingDown:pv,TrendingDownIcon:pv,TrendingUp:fv,TrendingUpDown:yv,TrendingUpDownIcon:yv,TrendingUpIcon:fv,Triangle:bv,TriangleAlert:Bi,TriangleAlertIcon:Bi,TriangleDashed:kv,TriangleDashedIcon:kv,TriangleIcon:bv,TriangleRight:gv,TriangleRightIcon:gv,Trophy:mv,TrophyIcon:mv,Truck:xv,TruckElectric:Mv,TruckElectricIcon:Mv,TruckIcon:xv,TurkishLira:wv,TurkishLiraIcon:wv,Turntable:vv,TurntableIcon:vv,Turtle:Cv,TurtleIcon:Cv,Tv:Sv,Tv2:Vi,Tv2Icon:Vi,TvIcon:Sv,TvMinimal:Vi,TvMinimalIcon:Vi,TvMinimalPlay:Lv,TvMinimalPlayIcon:Lv,Twitch:Iv,TwitchIcon:Iv,Twitter:Av,TwitterIcon:Av,Type:Bv,TypeIcon:Bv,TypeOutline:_v,TypeOutlineIcon:_v,Umbrella:zv,UmbrellaIcon:zv,UmbrellaOff:Vv,UmbrellaOffIcon:Vv,Underline:qv,UnderlineIcon:qv,Undo:Dv,Undo2:Pv,Undo2Icon:Pv,UndoDot:Ev,UndoDotIcon:Ev,UndoIcon:Dv,UnfoldHorizontal:Tv,UnfoldHorizontalIcon:Tv,UnfoldVertical:Hv,UnfoldVerticalIcon:Hv,Ungroup:jv,UngroupIcon:jv,University:zi,UniversityIcon:zi,Unlink:Fv,Unlink2:Ov,Unlink2Icon:Ov,UnlinkIcon:Fv,Unlock:Fo,UnlockIcon:Fo,UnlockKeyhole:Oo,UnlockKeyholeIcon:Oo,Unplug:Rv,UnplugIcon:Rv,Upload:Nv,UploadCloud:ha,UploadCloudIcon:ha,UploadIcon:Nv,Usb:$v,UsbIcon:$v,User:o1,User2:Hi,User2Icon:Hi,UserCheck:Uv,UserCheck2:qi,UserCheck2Icon:qi,UserCheckIcon:Uv,UserCircle:jn,UserCircle2:Hn,UserCircle2Icon:Hn,UserCircleIcon:jn,UserCog:Wv,UserCog2:Pi,UserCog2Icon:Pi,UserCogIcon:Wv,UserIcon:o1,UserKey:Gv,UserKeyIcon:Gv,UserLock:Kv,UserLockIcon:Kv,UserMinus:Xv,UserMinus2:Di,UserMinus2Icon:Di,UserMinusIcon:Xv,UserPen:Zv,UserPenIcon:Zv,UserPlus:Yv,UserPlus2:Ei,UserPlus2Icon:Ei,UserPlusIcon:Yv,UserRound:Hi,UserRoundCheck:qi,UserRoundCheckIcon:qi,UserRoundCog:Pi,UserRoundCogIcon:Pi,UserRoundIcon:Hi,UserRoundKey:Qv,UserRoundKeyIcon:Qv,UserRoundMinus:Di,UserRoundMinusIcon:Di,UserRoundPen:Jv,UserRoundPenIcon:Jv,UserRoundPlus:Ei,UserRoundPlusIcon:Ei,UserRoundSearch:eC,UserRoundSearchIcon:eC,UserRoundX:Ti,UserRoundXIcon:Ti,UserSearch:aC,UserSearchIcon:aC,UserSquare:bi,UserSquare2:mi,UserSquare2Icon:mi,UserSquareIcon:bi,UserStar:tC,UserStarIcon:tC,UserX:nC,UserX2:Ti,UserX2Icon:Ti,UserXIcon:nC,Users:oC,Users2:ji,Users2Icon:ji,UsersIcon:oC,UsersRound:ji,UsersRoundIcon:ji,Utensils:Fi,UtensilsCrossed:Oi,UtensilsCrossedIcon:Oi,UtensilsIcon:Fi,UtilityPole:rC,UtilityPoleIcon:rC,Van:iC,VanIcon:iC,Variable:lC,VariableIcon:lC,Vault:sC,VaultIcon:sC,VectorSquare:cC,VectorSquareIcon:cC,Vegan:dC,VeganIcon:dC,VenetianMask:hC,VenetianMaskIcon:hC,Venus:uC,VenusAndMars:pC,VenusAndMarsIcon:pC,VenusIcon:uC,Verified:Na,VerifiedIcon:Na,Vibrate:fC,VibrateIcon:fC,VibrateOff:yC,VibrateOffIcon:yC,Video:mC,VideoIcon:mC,VideoOff:kC,VideoOffIcon:kC,Videotape:gC,VideotapeIcon:gC,View:bC,ViewIcon:bC,Voicemail:MC,VoicemailIcon:MC,Volleyball:vC,VolleyballIcon:vC,Volume:LC,Volume1:xC,Volume1Icon:xC,Volume2:wC,Volume2Icon:wC,VolumeIcon:LC,VolumeOff:CC,VolumeOffIcon:CC,VolumeX:SC,VolumeXIcon:SC,Vote:IC,VoteIcon:IC,Wallet:AC,Wallet2:Ri,Wallet2Icon:Ri,WalletCards:_C,WalletCardsIcon:_C,WalletIcon:AC,WalletMinimal:Ri,WalletMinimalIcon:Ri,Wallpaper:BC,WallpaperIcon:BC,Wand:VC,Wand2:Ni,Wand2Icon:Ni,WandIcon:VC,WandSparkles:Ni,WandSparklesIcon:Ni,Warehouse:zC,WarehouseIcon:zC,WashingMachine:qC,WashingMachineIcon:qC,Watch:PC,WatchIcon:PC,Waves:HC,WavesArrowDown:DC,WavesArrowDownIcon:DC,WavesArrowUp:EC,WavesArrowUpIcon:EC,WavesIcon:HC,WavesLadder:TC,WavesLadderIcon:TC,Waypoints:jC,WaypointsIcon:jC,Webcam:OC,WebcamIcon:OC,Webhook:RC,WebhookIcon:RC,WebhookOff:FC,WebhookOffIcon:FC,Weight:$C,WeightIcon:$C,WeightTilde:NC,WeightTildeIcon:NC,Wheat:WC,WheatIcon:WC,WheatOff:UC,WheatOffIcon:UC,WholeWord:GC,WholeWordIcon:GC,Wifi:tL,WifiCog:KC,WifiCogIcon:KC,WifiHigh:XC,WifiHighIcon:XC,WifiIcon:tL,WifiLow:YC,WifiLowIcon:YC,WifiOff:ZC,WifiOffIcon:ZC,WifiPen:QC,WifiPenIcon:QC,WifiSync:JC,WifiSyncIcon:JC,WifiZero:eL,WifiZeroIcon:eL,Wind:aL,WindArrowDown:nL,WindArrowDownIcon:nL,WindIcon:aL,Wine:oL,WineIcon:oL,WineOff:rL,WineOffIcon:rL,Workflow:iL,WorkflowIcon:iL,Worm:sL,WormIcon:sL,WrapText:Li,WrapTextIcon:Li,Wrench:lL,WrenchIcon:lL,X:it,XCircle:On,XCircleIcon:On,XIcon:it,XLineTop:cL,XLineTopIcon:cL,XOctagon:Xo,XOctagonIcon:Xo,XSquare:gi,XSquareIcon:gi,Youtube:dL,YoutubeIcon:dL,Zap:pL,ZapIcon:pL,ZapOff:hL,ZapOffIcon:hL,ZoomIn:uL,ZoomInIcon:uL,ZoomOut:yL,ZoomOutIcon:yL,createLucideIcon:l,icons:LP},Symbol.toStringTag,{value:"Module"})),SP=["aria-busy"],IP={key:0,class:"mb-1 h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},_P=["for"],AP={key:0,class:"ml-1 text-destructive"},BP={class:"relative"},VP={key:0,class:"flex items-center text-gray-500 gap-2"},zP=["id","placeholder","disabled","readonly","value"],qP={key:1,class:"h-6 w-6 animate-spin text-gray-500",viewBox:"0 0 24 24",fill:"none"},PP=["disabled"],DP={class:"overflow-y-auto overflow-x-hidden",style:{"max-height":"350px"}},EP=["onMouseenter","onClick"],TP={key:0},HP={class:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400"},jP={key:0},OP={key:1},FP={key:2},RP={key:1,class:"mt-1 text-xs text-red-600"},qS=t.defineComponent({name:"DCodeAutoComplete",inheritAttrs:!1,__name:"DCodeAutoComplete",props:{modelValue:{},apiModule:{},apiAction:{},apiOptions:{},autoFetchOnOpen:{type:Boolean,default:!0},autoFetchOnMount:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},error:{default:null},errorMessage:{default:null},itemTitle:{type:[String,Function],default:"name"},itemValue:{type:[String,Function],default:"id"},returnObject:{type:Boolean,default:!1},endpoint:{},apiParams:{default:()=>({})},fetchItems:{},icon:{}},emits:["update:modelValue"],setup(a,{emit:e}){const n=a,o=e,r=t.useAttrs(),i=t.computed(()=>r.label??void 0),s=O=>{const ae=r[O];return ae===""||ae===!0||ae==="true"||ae===1||ae==="1"},c=t.ref(!1),d=t.computed(()=>n.itemTitle||r["item-title"]||r.itemTitle||"name"),h=t.computed(()=>n.itemValue||r["item-value"]||r.itemValue||"id"),u=t.computed(()=>n.disabled),p=t.computed(()=>s("required")),y=t.computed(()=>s("readonly")),f=t.computed(()=>n.returnObject||s("return-object")||s("returnObject")),k=t.computed(()=>p.value||s("aria-required")),m=t.computed(()=>n.error||n.errorMessage||r["error-message"]),g=t.computed(()=>r.placeholder??""),v=t.computed(()=>{const O=r.minChars??r["min-chars"];if(O==null||O==="")return 0;const ae=typeof O=="number"?O:Number.parseInt(String(O),10);return Number.isFinite(ae)&&ae>0?ae:0}),L=t.computed(()=>{const O=r.rules;return Array.isArray(O)?O:[]}),w=t.computed(()=>{const O=r.id||r.label;return O?`app-autocomplete-${O}-${Math.random().toString(36).slice(2,7)}`:void 0}),M=t.ref(n.modelValue),C=t.ref([]),S=t.ref(!1),b=t.ref(!1),x=t.computed(()=>r.items),I=t.computed(()=>{const O=D.value;return O.apiModule&&O.apiAction||O.apiUrl||n.fetchItems?C.value:x.value??[]}),V=t.computed(()=>!!r.loading),B=t.computed(()=>V.value||S.value),A=t.computed(()=>{const{label:O,items:ae,loading:he,rules:_e,"item-title":Pe,"item-value":K,itemTitle:te,itemValue:ne,minChars:ye,"min-chars":Ve,clearable:ra,required:We,"aria-required":aq,disabled:yS,readonly:nq,visible:fS,"return-object":oq,returnObject:c_,class:rq,"fetch-items":iq,fetchItems:d_,error:sq,errorMessage:lq,"error-message":h_,...u_}=r||{};return u_}),P=()=>{if(n.apiOptions)return typeof n.apiOptions=="function"?n.apiOptions():n.apiOptions},D=t.computed(()=>{const O=n.endpoint||{};return{apiModule:n.apiModule||O.apiModule,apiAction:n.apiAction||O.apiAction,apiUrl:O.apiUrl,apiMethod:O.apiMethod||"GET"}}),U=t.ref(null),T=t.ref(null),H=t.ref(null),{floatingStyles:N}=Q1(T,H,{placement:"bottom-start",whileElementsMounted:K1,middleware:[X1(4),Ds(),Z1(),Y1({apply({rects:O,elements:ae,availableHeight:he}){Object.assign(ae.floating.style,{width:`${O.reference.width}px`,maxHeight:`${he}px`})}})]}),Q=t.ref(!1),j=t.ref(""),F=t.ref(-1),R=t.ref(null),Z=t.computed(()=>!v.value||(j.value||"").trim().length>=v.value?"":`Ketik minimal ${v.value} karakter`),J=O=>{if(O==null)return"";if(typeof O=="string"||typeof O=="number")return String(O);const ae=d.value;return typeof ae=="function"?ae(O):(O==null?void 0:O[ae])??(O==null?void 0:O.name)??(O==null?void 0:O.nama)??(O==null?void 0:O.label)??(O==null?void 0:O.title)??"-"},re=O=>{if(O==null)return null;if(typeof O=="string"||typeof O=="number")return O;const ae=h.value;return typeof ae=="function"?ae(O):(O==null?void 0:O[ae])??(O==null?void 0:O.id)??(O==null?void 0:O.value)??(O==null?void 0:O.code)??null},de=t.computed(()=>{const O=M.value;if(O==null||O==="")return"";if(Array.isArray(O))return O.length?O.map(_e=>{if(f.value&&typeof _e=="object"||typeof _e=="object")return J(_e);const Pe=I.value.find(K=>re(K)==_e);return Pe?J(Pe):String(_e)}).join(", "):"";if(typeof O=="object")return J(O);const ae=I.value.find(he=>re(he)==O);return ae?J(ae):String(O)}),ue=t.computed(()=>{const O=I.value||[],ae=(j.value||"").trim().toLowerCase(),he=(de.value||"").toLowerCase(),_e=!ae||ae===he;let Pe=O;if(_e||(Pe=O.filter(K=>J(K).toLowerCase().includes(ae))),Pe.length>0){const K=te=>{const ne=re(te);return Array.isArray(M.value)?M.value.some(ye=>ye==ne):M.value==ne};Pe=[...Pe].sort((te,ne)=>{const ye=K(te),Ve=K(ne);return ye&&!Ve?-1:!ye&&Ve?1:0})}return Pe}),ve=O=>Array.isArray(O)?O.length===0:O==null||O==="",le=O=>{if(R.value=null,p.value&&ve(O)&&!L.value.length)return R.value="This field is required",!1;for(const ae of L.value){const he=ae(O);if(he===!1)return R.value="Invalid value",!1;if(typeof he=="string")return R.value=he,!1}return!0},G=async()=>{if(u.value||y.value)return;Q.value=!0,F.value=ue.value.length?0:-1,j.value=de.value||"";const O=D.value,ae=O.apiModule&&O.apiAction||O.apiUrl||n.fetchItems;n.autoFetchOnOpen&&ae&&!b.value&&(await Mt(),F.value=ue.value.length?0:-1)},z=()=>{Q.value=!1,F.value=-1,j.value=de.value||""},W=O=>{const ae=f.value?O:re(O);let he=ae;Array.isArray(M.value)&&(he=[ae]),M.value=he,o("update:modelValue",he),R.value=null,le(he),j.value=J(O),z()},ee=()=>{C.value=[],b.value=!1,M.value=Array.isArray(M.value)?[]:null,o("update:modelValue",M.value),j.value="",R.value=null},pe=()=>{c.value=!0,ee(),z(),setTimeout(()=>{c.value=!1},0)},qe=O=>{if(u.value||y.value)return;const ae=O.target.value;j.value=ae,R.value&&(R.value=null),Q.value||(Q.value=!0),F.value=ue.value.length?0:-1;const he=D.value.apiModule&&D.value.apiAction||D.value.apiUrl||n.fetchItems;n.autoFetchOnOpen&&he&&!B.value&&!b.value&&Mt()},ot=O=>{var he;if(u.value||y.value)return;const ae={ArrowDown:()=>{if(O.preventDefault(),!Q.value){G();return}ue.value.length&&(F.value=Math.min(F.value+1,ue.value.length-1))},ArrowUp:()=>{!Q.value||!ue.value.length||(O.preventDefault(),F.value=Math.max(F.value-1,0))},Enter:()=>{if(!Q.value)return;O.preventDefault();const _e=ue.value[F.value];_e&&W(_e)},Escape:()=>{O.preventDefault(),z()},Tab:()=>{z()}};(he=ae[O.key])==null||he.call(ae)},Mt=async()=>{const O=D.value;if(O.apiModule&&O.apiAction||O.apiUrl||n.fetchItems){S.value=!0;try{let he;if(n.fetchItems){const _e=P()||{},Pe={page:1,perPage:100,search:(j.value||"").trim(),..._e,...n.apiParams},K=await n.fetchItems(Pe),te=(K==null?void 0:K.data)??K;he=(te==null?void 0:te.data)??te}else{const Pe=Ke().DCodeApi;if(typeof Pe!="function"){console.error("[DCodeAutoComplete] useApi() must expose DCodeApi()");return}const te={page:1,perPage:100,...P()||{},...n.apiParams};let ne;O.apiUrl?ne=await Pe("","",te,{_url:O.apiUrl,_method:O.apiMethod||"POST"}):ne=await Pe(O.apiModule,O.apiAction,te);const ye=(ne==null?void 0:ne.data)??ne;he=(ye==null?void 0:ye.data)??ye}C.value=Array.isArray(he)?he:[],b.value=!0}catch(he){console.error("[DCodeAutoComplete][fetchOptions] ERROR:",he),R.value=`[DCodeAutoComplete][fetchOptions] ERROR: Error: ${(he==null?void 0:he.message)||(he==null?void 0:he.toString())||"Failed to load options"}`,C.value=[],b.value=!0}finally{S.value=!1}}},oa=O=>{const ae=re(O);return f.value?M.value?Array.isArray(M.value)?M.value.some(he=>re(he)==ae):re(M.value)==ae:!1:Array.isArray(M.value)?M.value.some(he=>he==ae):M.value==ae};t.watch(()=>[P(),D.value,n.apiParams],([O,ae,he],[_e,Pe,K])=>{const te=D.value;if(!(te.apiModule&&te.apiAction||te.apiUrl||n.fetchItems)){ee();return}const ye=JSON.stringify(O??null)===JSON.stringify(_e??null),Ve=JSON.stringify(he??null)===JSON.stringify(K??null);ye&&Ve||(ee(),Ve||Mt())},{deep:!0}),t.watch(()=>n.modelValue,(O,ae)=>{M.value=O,!c.value&&(O==null||O==="")&&ae!=null&&n.apiModule&&n.apiAction&&(C.value=[],b.value=!1),j.value=de.value||""},{immediate:!0});const Aa=D.value;(Aa.apiModule&&Aa.apiAction||Aa.apiUrl||n.fetchItems)&&(n.autoFetchOnMount||!ve(n.modelValue))&&Mt();const $t=O=>{const ae=U.value,he=H.value,_e=O.target;ae&&ae.contains(_e)||he&&he.contains(_e)||Q.value&&z()},D1=t.computed(()=>{const O=n.modelValue;return O==null?!1:typeof O=="string"?O.trim().length>0:Array.isArray(O)?O.length>0:typeof O=="object"?Object.keys(O).length>0:!0}),E1=t.computed(()=>!!n.clearable&&D1.value&&!n.disabled);return t.onMounted(()=>{document.addEventListener("mousedown",$t)}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",$t)}),(O,ae)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"rootEl",ref:U,class:t.normalizeClass(["w-full",t.unref(r).class]),"aria-busy":a.skeleton},[a.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.value?(t.openBlock(),t.createElementBlock("div",IP)):t.createCommentVNode("",!0),ae[6]||(ae[6]=t.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.value?(t.openBlock(),t.createElementBlock("label",{key:0,for:w.value,class:"mb-1 block text-sm font-medium text-gray-900 dark:text-gray-100"},[t.createTextVNode(t.toDisplayString(i.value)+" ",1),k.value?(t.openBlock(),t.createElementBlock("span",AP,"*")):t.createCommentVNode("",!0)],8,_P)):t.createCommentVNode("",!0),t.createElementVNode("div",BP,[t.createElementVNode("div",{ref_key:"reference",ref:T,class:t.normalizeClass(["flex items-center gap-2 rounded-lg border px-3 py-2 bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 h-10 focus-within:ring-1 focus-within:ring-gray-700 dark:focus-within:ring-gray-300",[u.value||y.value?"opacity-60 cursor-not-allowed":"",R.value||m.value?"border-red-500 focus-within:ring-red-500":""]])},[n.icon||O.$slots["prepend-inner"]?(t.openBlock(),t.createElementBlock("div",VP,[t.renderSlot(O.$slots,"prepend-inner",{},()=>[n.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.icon),{key:0,class:"h-4 w-4"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("input",t.mergeProps(A.value,{id:w.value,type:"text",class:["w-full bg-transparent outline-none text-sm text-gray-900 dark:text-gray-100 placeholder:text-gray-400",u.value||y.value?"cursor-not-allowed":"cursor-text"],placeholder:g.value,disabled:u.value,readonly:y.value,value:Q.value?j.value:de.value||j.value,onFocus:ae[0]||(ae[0]=()=>{Q.value||G()}),onClick:ae[1]||(ae[1]=()=>{Q.value||G()}),onInput:qe,onKeydown:ot,onBlur:ae[2]||(ae[2]=()=>le(M.value))}),null,16,zP),B.value?(t.openBlock(),t.createElementBlock("svg",qP,[...ae[7]||(ae[7]=[t.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),t.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):E1.value?(t.openBlock(),t.createElementBlock("button",{key:2,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300",onMousedown:ae[3]||(ae[3]=t.withModifiers(()=>{},["prevent"])),onClick:t.withModifiers(pe,["stop"]),"aria-label":"Clear"}," ✕ ",32)):(t.openBlock(),t.createElementBlock("button",{key:3,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 disabled:opacity-50 disabled:cursor-not-allowed",disabled:u.value||y.value,onClick:ae[4]||(ae[4]=he=>Q.value?z():G()),"aria-label":"Toggle"},[t.createVNode(t.unref(St),{class:t.normalizeClass(["h-4 w-4 transition-transform duration-200 ease-in-out",{"rotate-180":Q.value}])},null,8,["class"])],8,PP))],2),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[Q.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"floating",ref:H,style:t.normalizeStyle(t.unref(N)),class:"z-[50] overflow-hidden rounded-lg border bg-white shadow-lg border-gray-200 dark:border-gray-700 dark:bg-neutral-900"},[t.createElementVNode("div",DP,[ue.value.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(ue.value,(he,_e)=>(t.openBlock(),t.createElementBlock("button",{key:re(he)??_e,type:"button",class:t.normalizeClass(["w-full flex justify-between text-left px-3 py-2 text-sm hover:bg-neutral-100 dark:hover:bg-neutral-800",_e===F.value?"bg-neutral-100 dark:bg-neutral-800":""]),onMouseenter:Pe=>F.value=_e,onMousedown:ae[5]||(ae[5]=t.withModifiers(()=>{},["prevent"])),onClick:Pe=>W(he)},[t.createTextVNode(t.toDisplayString(J(he))+" ",1),oa(he)?(t.openBlock(),t.createElementBlock("span",TP," ✓ ")):t.createCommentVNode("",!0)],42,EP))),128)):t.renderSlot(O.$slots,"no-data",{key:1},()=>[t.createElementVNode("div",HP,[B.value?(t.openBlock(),t.createElementBlock("span",jP,"Loading data…")):Z.value?(t.openBlock(),t.createElementBlock("span",OP,t.toDisplayString(Z.value),1)):(t.openBlock(),t.createElementBlock("span",FP,"No data available"))])])])],4)):t.createCommentVNode("",!0)]))]),R.value||m.value?(t.openBlock(),t.createElementBlock("p",RP,t.toDisplayString(R.value||m.value),1)):t.createCommentVNode("",!0)],64))],10,SP)),[[t.vShow,a.visible]])}}),NP=["aria-busy"],$P={key:0,class:"mb-1 h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},UP=["for"],WP={key:0,class:"ml-1 text-destructive"},GP={class:"relative"},KP={key:0,class:"flex items-center text-gray-500 gap-2"},XP=["id","placeholder","disabled","value"],ZP={key:1,class:"h-6 w-6 animate-spin text-gray-500",viewBox:"0 0 24 24",fill:"none"},YP=["disabled"],QP={key:0,class:"p-3 space-y-2"},JP=["onMouseenter","onClick"],eD={class:"flex items-center space-x-3"},tD={class:"flex-1"},aD={class:"text-sm font-medium text-gray-900 dark:text-gray-100"},nD={key:0,class:"text-xs text-gray-500 dark:text-gray-400"},oD={key:0},rD={key:2,class:"p-3 text-center"},iD={class:"inline-flex items-center space-x-2"},sD={class:"text-sm text-gray-500"},lD={key:3,class:"p-3 text-center"},cD={class:"text-xs text-gray-400"},dD={key:4,class:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400"},hD={key:1,class:"mt-1 text-xs text-red-600"},uD={key:2,class:"mt-1 text-xs text-gray-500"},O_=t.defineComponent({name:"DCodeInfiniteAutoComplete",inheritAttrs:!1,__name:"DCodeInfiniteAutoComplete",props:{modelValue:{},apiModule:{},apiAction:{},apiOptions:{},autoFetchOnOpen:{type:Boolean,default:!0},refreshOnOpen:{type:Boolean,default:!1},autoFetchOnMount:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},error:{default:null},errorMessage:{default:null},itemTitle:{type:[String,Function],default:"name"},itemValue:{type:[String,Function],default:"id"},itemSubtitle:{},returnObject:{type:Boolean,default:!1},endpoint:{},apiParams:{},fetchItems:{},icon:{},label:{},placeholder:{default:"Select an option"},required:{type:Boolean,default:!1},inputType:{default:"text"},helperText:{default:""},noResultsText:{default:"No results found"},loadingText:{default:"Loading more..."},endOfResultsText:{default:"End of results"},pageSize:{default:10},threshold:{default:100},debounceMs:{default:300}},emits:["update:modelValue","focus","blur","select","search","load-more","end-of-results","error"],setup(a,{emit:e}){const n=a,o=e,r=t.useAttrs(),i=t.ref(),s=t.ref(),c=t.ref(),d=t.ref(),h=t.ref(),u=t.computed(()=>{const F=n.label||n.placeholder;return F?`app-infinite-autocomplete-${F}-${Math.random().toString(36).slice(2,7)}`:void 0}),p=t.ref(""),y=t.ref([]),f=t.ref(!1),k=t.ref(!1),m=t.ref(-1),g=t.ref(1),v=t.ref(!0),L=t.ref(0),w=t.ref(),{floatingStyles:M}=Q1(d,h,{placement:"bottom-start",whileElementsMounted:K1,middleware:[X1(4),Ds(),Z1(),Y1({apply({rects:F,elements:R}){Object.assign(R.floating.style,{width:`${F.reference.width}px`})}})]});t.computed(()=>({"opacity-50 pointer-events-none":n.disabled,relative:!0}));const C=t.computed(()=>p.value?y.value.filter(F=>I(F).toLowerCase().includes(p.value.toLowerCase())):y.value),S=t.computed(()=>{if(k.value&&p.value)return p.value;if(n.modelValue){if(n.returnObject)return I(n.modelValue);{const F=y.value.find(R=>V(R)===n.modelValue);return F?I(F):String(n.modelValue)}}return""}),b=()=>{k.value=!0},x=()=>{k.value=!1},I=F=>typeof n.itemTitle=="function"?n.itemTitle(F):F[n.itemTitle]||"",V=F=>typeof n.itemValue=="function"?n.itemValue(F):F[n.itemValue]||F,B=F=>n.itemSubtitle?typeof n.itemSubtitle=="function"?n.itemSubtitle(F):F[n.itemSubtitle]||"":"",A=F=>n.modelValue?n.returnObject?V(F)===V(n.modelValue):V(F)===n.modelValue:!1,P=F=>{var Z;const R=n.returnObject?F:V(F);o("update:modelValue",R),o("select",F),k.value=!1,p.value="",(Z=i.value)==null||Z.blur()},D=()=>{var F;o("update:modelValue",null),p.value="",(F=i.value)==null||F.focus()},U=F=>{k.value=!0,o("focus",F),n.autoFetchOnOpen&&!f.value&&(n.refreshOnOpen||y.value.length===0)&&j(!0)},T=F=>{setTimeout(()=>{k.value=!1,o("blur",F)},200)},H=F=>{const R=F.target;p.value=R.value,w.value&&clearTimeout(w.value),w.value=setTimeout(()=>{o("search",p.value),g.value=1,v.value=!0,j(!0)},n.debounceMs)},N=F=>{if(k.value)switch(F.key){case"ArrowDown":F.preventDefault(),m.value=Math.min(m.value+1,C.value.length-1);break;case"ArrowUp":F.preventDefault(),m.value=Math.max(m.value-1,0);break;case"Enter":F.preventDefault(),m.value>=0&&C.value[m.value]&&P(C.value[m.value]);break;case"Escape":k.value=!1;break}},Q=F=>{if(!v.value||f.value)return;const R=F.target,{scrollTop:Z,scrollHeight:J,clientHeight:re}=R;Z+re>=J-n.threshold&&j()},j=async(F=!1)=>{var R,Z;if(!f.value){f.value=!0;try{let J=[];if(n.fetchItems)J=await n.fetchItems();else{const re=Ke(),de=((R=n.endpoint)==null?void 0:R.apiModule)||n.apiModule,ue=((Z=n.endpoint)==null?void 0:Z.apiAction)||n.apiAction;if(!de||!ue)throw new Error("API module and action are required");const ve={page:F?1:g.value,pageSize:n.pageSize,search:p.value,...n.apiParams},le=await re.apiUrl(`/${de}/${ue}`,"GET",ve);J=le.data||le.items||le||[],L.value=le.total||le.totalItems||J.length}F?(y.value=J,g.value=1):(y.value.push(...J),g.value++),v.value=J.length>=n.pageSize,v.value||o("end-of-results"),o("load-more",{items:J,page:g.value,hasMore:v.value,total:L.value})}catch(J){console.error("Error fetching items:",J),o("error",J)}finally{f.value=!1}}};return t.onMounted(()=>{n.autoFetchOnMount&&j()}),t.onUnmounted(()=>{w.value&&clearTimeout(w.value)}),t.watch(()=>n.modelValue,F=>{F||(p.value="")}),(F,R)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"rootEl",ref:c,class:t.normalizeClass(["w-full",t.unref(r).class]),"aria-busy":a.skeleton},[a.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.label?(t.openBlock(),t.createElementBlock("div",$P)):t.createCommentVNode("",!0),R[3]||(R[3]=t.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:u.value,class:"mb-1 block text-sm font-medium text-gray-900 dark:text-gray-100"},[t.createTextVNode(t.toDisplayString(a.label)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",WP,"*")):t.createCommentVNode("",!0)],8,UP)):t.createCommentVNode("",!0),t.createElementVNode("div",GP,[t.createElementVNode("div",{ref_key:"reference",ref:d,class:t.normalizeClass(["flex items-center gap-2 rounded-lg border px-3 py-2 bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 h-10 focus-within:ring-1 focus-within:ring-gray-700 dark:focus-within:ring-gray-300",[a.disabled?"opacity-60 cursor-not-allowed":"",a.error?"border-red-500 focus-within:ring-red-500":""]])},[n.icon?(t.openBlock(),t.createElementBlock("div",KP,[n.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.icon),{key:0,class:"h-4 w-4"})):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("input",t.mergeProps({ref_key:"inputRef",ref:i},F.$attrs,{id:u.value,type:"text",class:["w-full bg-transparent outline-none text-sm text-gray-900 dark:text-gray-100 placeholder:text-gray-400",a.disabled?"cursor-not-allowed":"cursor-text"],placeholder:a.placeholder,disabled:a.disabled,value:S.value,onFocus:U,onBlur:T,onInput:H,onKeydown:N}),null,16,XP),f.value?(t.openBlock(),t.createElementBlock("svg",ZP,[...R[4]||(R[4]=[t.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),t.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):a.clearable&&a.modelValue?(t.openBlock(),t.createElementBlock("button",{key:2,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300",onMousedown:R[0]||(R[0]=t.withModifiers(()=>{},["prevent"])),onClick:t.withModifiers(D,["stop"]),"aria-label":"Clear"}," ✕ ",32)):(t.openBlock(),t.createElementBlock("button",{key:3,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 disabled:opacity-50 disabled:cursor-not-allowed",disabled:a.disabled,onClick:R[1]||(R[1]=Z=>k.value?x():b()),"aria-label":"Toggle"},[t.createVNode(t.unref(St),{class:t.normalizeClass(["h-4 w-4 transition-transform duration-200 ease-in-out",{"rotate-180":k.value}])},null,8,["class"])],8,YP))],2),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[k.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"floating",ref:h,style:t.normalizeStyle(t.unref(M)),class:"z-[9999] overflow-hidden rounded-lg border bg-white shadow-lg border-gray-200 dark:border-gray-700 dark:bg-neutral-900"},[t.createElementVNode("div",{ref_key:"scrollContainer",ref:s,class:"max-h-64 overflow-auto",onScroll:Q},[f.value&&y.value.length===0?(t.openBlock(),t.createElementBlock("div",QP,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(5,Z=>t.createElementVNode("div",{key:Z,class:"flex items-center space-x-3"},[...R[5]||(R[5]=[t.createElementVNode("div",{class:"skeleton h-4 w-4 bg-gray-200 rounded"},null,-1),t.createElementVNode("div",{class:"skeleton h-4 flex-1 bg-gray-200 rounded"},null,-1)])])),64))])):C.value.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(C.value,(Z,J)=>(t.openBlock(),t.createElementBlock("button",{key:V(Z)??J,type:"button",class:t.normalizeClass(["w-full flex justify-between text-left px-3 py-2 text-sm hover:bg-neutral-100 dark:hover:bg-neutral-800",J===m.value?"bg-neutral-100 dark:bg-neutral-800":""]),onMouseenter:re=>m.value=J,onMousedown:R[2]||(R[2]=t.withModifiers(()=>{},["prevent"])),onClick:re=>P(Z)},[t.renderSlot(F.$slots,"item",{item:Z,index:J},()=>[t.createElementVNode("div",eD,[t.createElementVNode("div",tD,[t.createElementVNode("div",aD,t.toDisplayString(I(Z)),1),a.itemSubtitle?(t.openBlock(),t.createElementBlock("div",nD,t.toDisplayString(B(Z)),1)):t.createCommentVNode("",!0)])])]),A(Z)?(t.openBlock(),t.createElementBlock("span",oD," ✓ ")):t.createCommentVNode("",!0)],42,JP))),128)):t.createCommentVNode("",!0),f.value&&y.value.length>0?(t.openBlock(),t.createElementBlock("div",rD,[t.createElementVNode("div",iD,[R[6]||(R[6]=t.createElementVNode("div",{class:"animate-spin rounded-full h-4 w-4 border-b-2 border-blue-600"},null,-1)),t.createElementVNode("span",sD,t.toDisplayString(a.loadingText),1)])])):t.createCommentVNode("",!0),!v.value&&y.value.length>0?(t.openBlock(),t.createElementBlock("div",lD,[t.createElementVNode("div",cD,t.toDisplayString(a.endOfResultsText),1)])):!f.value&&y.value.length===0?(t.openBlock(),t.createElementBlock("div",dD,t.toDisplayString(a.noResultsText),1)):t.createCommentVNode("",!0)],544)],4)):t.createCommentVNode("",!0)]))]),a.error?(t.openBlock(),t.createElementBlock("p",hD,t.toDisplayString(a.errorMessage||a.error),1)):a.helperText?(t.openBlock(),t.createElementBlock("p",uD,t.toDisplayString(a.helperText),1)):t.createCommentVNode("",!0)],64))],10,NP)),[[t.vShow,a.visible]])}});function F_(a){var e,n,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var r=a.length;for(e=0;e<r;e++)a[e]&&(n=F_(a[e]))&&(o&&(o+=" "),o+=n)}else for(n in a)a[n]&&(o&&(o+=" "),o+=n);return o}function R_(){for(var a,e,n=0,o="",r=arguments.length;n<r;n++)(a=arguments[n])&&(e=F_(a))&&(o&&(o+=" "),o+=e);return o}const pD=(a,e)=>{const n=new Array(a.length+e.length);for(let o=0;o<a.length;o++)n[o]=a[o];for(let o=0;o<e.length;o++)n[a.length+o]=e[o];return n},yD=(a,e)=>({classGroupId:a,validator:e}),N_=(a=new Map,e=null,n)=>({nextPart:a,validators:e,classGroupId:n}),fL="-",$_=[],fD="arbitrary..",kD=a=>{const e=gD(a),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return mD(s);const c=s.split(fL),d=c[0]===""&&c.length>1?1:0;return U_(c,d,e)},getConflictingClassGroupIds:(s,c)=>{if(c){const d=o[s],h=n[s];return d?h?pD(h,d):d:h||$_}return n[s]||$_}}},U_=(a,e,n)=>{if(a.length-e===0)return n.classGroupId;const r=a[e],i=n.nextPart.get(r);if(i){const h=U_(a,e+1,i);if(h)return h}const s=n.validators;if(s===null)return;const c=e===0?a.join(fL):a.slice(e).join(fL),d=s.length;for(let h=0;h<d;h++){const u=s[h];if(u.validator(c))return u.classGroupId}},mD=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=a.slice(1,-1),n=e.indexOf(":"),o=e.slice(0,n);return o?fD+o:void 0})(),gD=a=>{const{theme:e,classGroups:n}=a;return bD(n,e)},bD=(a,e)=>{const n=N_();for(const o in a){const r=a[o];PS(r,n,o,e)}return n},PS=(a,e,n,o)=>{const r=a.length;for(let i=0;i<r;i++){const s=a[i];MD(s,e,n,o)}},MD=(a,e,n,o)=>{if(typeof a=="string"){xD(a,e,n);return}if(typeof a=="function"){wD(a,e,n,o);return}vD(a,e,n,o)},xD=(a,e,n)=>{const o=a===""?e:W_(e,a);o.classGroupId=n},wD=(a,e,n,o)=>{if(CD(a)){PS(a(o),e,n,o);return}e.validators===null&&(e.validators=[]),e.validators.push(yD(n,a))},vD=(a,e,n,o)=>{const r=Object.entries(a),i=r.length;for(let s=0;s<i;s++){const[c,d]=r[s];PS(d,W_(e,c),n,o)}},W_=(a,e)=>{let n=a;const o=e.split(fL),r=o.length;for(let i=0;i<r;i++){const s=o[i];let c=n.nextPart.get(s);c||(c=N_(),n.nextPart.set(s,c)),n=c}return n},CD=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,LD=a=>{if(a<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),o=Object.create(null);const r=(i,s)=>{n[i]=s,e++,e>a&&(e=0,o=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=o[i])!==void 0)return r(i,s),s},set(i,s){i in n?n[i]=s:r(i,s)}}},DS="!",G_=":",SD=[],K_=(a,e,n,o,r)=>({modifiers:a,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),ID=a=>{const{prefix:e,experimentalParseClassName:n}=a;let o=r=>{const i=[];let s=0,c=0,d=0,h;const u=r.length;for(let m=0;m<u;m++){const g=r[m];if(s===0&&c===0){if(g===G_){i.push(r.slice(d,m)),d=m+1;continue}if(g==="/"){h=m;continue}}g==="["?s++:g==="]"?s--:g==="("?c++:g===")"&&c--}const p=i.length===0?r:r.slice(d);let y=p,f=!1;p.endsWith(DS)?(y=p.slice(0,-1),f=!0):p.startsWith(DS)&&(y=p.slice(1),f=!0);const k=h&&h>d?h-d:void 0;return K_(i,f,y,k)};if(e){const r=e+G_,i=o;o=s=>s.startsWith(r)?i(s.slice(r.length)):K_(SD,!1,s,void 0,!0)}if(n){const r=o;o=i=>n({className:i,parseClassName:r})}return o},_D=a=>{const e=new Map;return a.orderSensitiveModifiers.forEach((n,o)=>{e.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let i=0;i<n.length;i++){const s=n[i],c=s[0]==="[",d=e.has(s);c||d?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},AD=a=>({cache:LD(a.cacheSize),parseClassName:ID(a),sortModifiers:_D(a),...kD(a)}),BD=/\s+/,VD=(a,e)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:i}=e,s=[],c=a.trim().split(BD);let d="";for(let h=c.length-1;h>=0;h-=1){const u=c[h],{isExternal:p,modifiers:y,hasImportantModifier:f,baseClassName:k,maybePostfixModifierPosition:m}=n(u);if(p){d=u+(d.length>0?" "+d:d);continue}let g=!!m,v=o(g?k.substring(0,m):k);if(!v){if(!g){d=u+(d.length>0?" "+d:d);continue}if(v=o(k),!v){d=u+(d.length>0?" "+d:d);continue}g=!1}const L=y.length===0?"":y.length===1?y[0]:i(y).join(":"),w=f?L+DS:L,M=w+v;if(s.indexOf(M)>-1)continue;s.push(M);const C=r(v,g);for(let S=0;S<C.length;++S){const b=C[S];s.push(w+b)}d=u+(d.length>0?" "+d:d)}return d},zD=(...a)=>{let e=0,n,o,r="";for(;e<a.length;)(n=a[e++])&&(o=X_(n))&&(r&&(r+=" "),r+=o);return r},X_=a=>{if(typeof a=="string")return a;let e,n="";for(let o=0;o<a.length;o++)a[o]&&(e=X_(a[o]))&&(n&&(n+=" "),n+=e);return n},qD=(a,...e)=>{let n,o,r,i;const s=d=>{const h=e.reduce((u,p)=>p(u),a());return n=AD(h),o=n.cache.get,r=n.cache.set,i=c,c(d)},c=d=>{const h=o(d);if(h)return h;const u=VD(d,n);return r(d,u),u};return i=s,(...d)=>i(zD(...d))},PD=[],je=a=>{const e=n=>n[a]||PD;return e.isThemeGetter=!0,e},Z_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Y_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,DD=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ED=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,TD=/\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$/,HD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pa=a=>DD.test(a),ge=a=>!!a&&!Number.isNaN(Number(a)),ya=a=>!!a&&Number.isInteger(Number(a)),ES=a=>a.endsWith("%")&&ge(a.slice(0,-1)),Kt=a=>ED.test(a),Q_=()=>!0,FD=a=>TD.test(a)&&!HD.test(a),TS=()=>!1,RD=a=>jD.test(a),ND=a=>OD.test(a),$D=a=>!ie(a)&&!se(a),UD=a=>fa(a,oA,TS),ie=a=>Z_.test(a),$i=a=>fa(a,rA,FD),J_=a=>fa(a,JD,ge),WD=a=>fa(a,sA,Q_),GD=a=>fa(a,iA,TS),eA=a=>fa(a,aA,TS),KD=a=>fa(a,nA,ND),kL=a=>fa(a,lA,RD),se=a=>Y_.test(a),r1=a=>Ui(a,rA),XD=a=>Ui(a,iA),tA=a=>Ui(a,aA),ZD=a=>Ui(a,oA),YD=a=>Ui(a,nA),mL=a=>Ui(a,lA,!0),QD=a=>Ui(a,sA,!0),fa=(a,e,n)=>{const o=Z_.exec(a);return o?o[1]?e(o[1]):n(o[2]):!1},Ui=(a,e,n=!1)=>{const o=Y_.exec(a);return o?o[1]?e(o[1]):n:!1},aA=a=>a==="position"||a==="percentage",nA=a=>a==="image"||a==="url",oA=a=>a==="length"||a==="size"||a==="bg-size",rA=a=>a==="length",JD=a=>a==="number",iA=a=>a==="family-name",sA=a=>a==="number"||a==="weight",lA=a=>a==="shadow",eE=qD(()=>{const a=je("color"),e=je("font"),n=je("text"),o=je("font-weight"),r=je("tracking"),i=je("leading"),s=je("breakpoint"),c=je("container"),d=je("spacing"),h=je("radius"),u=je("shadow"),p=je("inset-shadow"),y=je("text-shadow"),f=je("drop-shadow"),k=je("blur"),m=je("perspective"),g=je("aspect"),v=je("ease"),L=je("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...M(),se,ie],S=()=>["auto","hidden","clip","visible","scroll"],b=()=>["auto","contain","none"],x=()=>[se,ie,d],I=()=>[pa,"full","auto",...x()],V=()=>[ya,"none","subgrid",se,ie],B=()=>["auto",{span:["full",ya,se,ie]},ya,se,ie],A=()=>[ya,"auto",se,ie],P=()=>["auto","min","max","fr",se,ie],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...x()],H=()=>[pa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],N=()=>[pa,"screen","full","dvw","lvw","svw","min","max","fit",...x()],Q=()=>[pa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],j=()=>[a,se,ie],F=()=>[...M(),tA,eA,{position:[se,ie]}],R=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",ZD,UD,{size:[se,ie]}],J=()=>[ES,r1,$i],re=()=>["","none","full",h,se,ie],de=()=>["",ge,r1,$i],ue=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[ge,ES,tA,eA],G=()=>["","none",k,se,ie],z=()=>["none",ge,se,ie],W=()=>["none",ge,se,ie],ee=()=>[ge,se,ie],pe=()=>[pa,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kt],breakpoint:[Kt],color:[Q_],container:[Kt],"drop-shadow":[Kt],ease:["in","out","in-out"],font:[$D],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kt],shadow:[Kt],spacing:["px",ge],text:[Kt],"text-shadow":[Kt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pa,ie,se,g]}],container:["container"],columns:[{columns:[ge,ie,se,c]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:C()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:b()}],"overscroll-x":[{"overscroll-x":b()}],"overscroll-y":[{"overscroll-y":b()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[ya,"auto",se,ie]}],basis:[{basis:[pa,"full","auto",c,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ge,pa,"auto","initial","none",ie]}],grow:[{grow:["",ge,se,ie]}],shrink:[{shrink:["",ge,se,ie]}],order:[{order:[ya,"first","last","none",se,ie]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...N()]}],"min-inline-size":[{"min-inline":["auto",...N()]}],"max-inline-size":[{"max-inline":["none",...N()]}],"block-size":[{block:["auto",...Q()]}],"min-block-size":[{"min-block":["auto",...Q()]}],"max-block-size":[{"max-block":["none",...Q()]}],w:[{w:[c,"screen",...H()]}],"min-w":[{"min-w":[c,"screen","none",...H()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",n,r1,$i]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,QD,WD]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ES,ie]}],"font-family":[{font:[XD,GD,e]}],"font-features":[{"font-features":[ie]}],"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:[r,se,ie]}],"line-clamp":[{"line-clamp":[ge,"none",se,J_]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",se,ie]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,ie]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[ge,"from-font","auto",se,$i]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[ge,"auto",se,ie]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,ie]}],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",se,ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:R()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ya,se,ie],radial:["",se,ie],conic:[ya,se,ie]},YD,KD]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-bs":[{"border-bs":de()}],"border-w-be":[{"border-be":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ge,se,ie]}],"outline-w":[{outline:["",ge,r1,$i]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",u,mL,kL]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",p,mL,kL]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[ge,$i]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",y,mL,kL]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[ge,se,ie]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"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":[ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[se,ie]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":M()}],"mask-image-conic-pos":[{"mask-conic":[ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:R()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,ie]}],filter:[{filter:["","none",se,ie]}],blur:[{blur:G()}],brightness:[{brightness:[ge,se,ie]}],contrast:[{contrast:[ge,se,ie]}],"drop-shadow":[{"drop-shadow":["","none",f,mL,kL]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",ge,se,ie]}],"hue-rotate":[{"hue-rotate":[ge,se,ie]}],invert:[{invert:["",ge,se,ie]}],saturate:[{saturate:[ge,se,ie]}],sepia:[{sepia:["",ge,se,ie]}],"backdrop-filter":[{"backdrop-filter":["","none",se,ie]}],"backdrop-blur":[{"backdrop-blur":G()}],"backdrop-brightness":[{"backdrop-brightness":[ge,se,ie]}],"backdrop-contrast":[{"backdrop-contrast":[ge,se,ie]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ge,se,ie]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ge,se,ie]}],"backdrop-invert":[{"backdrop-invert":["",ge,se,ie]}],"backdrop-opacity":[{"backdrop-opacity":[ge,se,ie]}],"backdrop-saturate":[{"backdrop-saturate":[ge,se,ie]}],"backdrop-sepia":[{"backdrop-sepia":["",ge,se,ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,ie]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ge,"initial",se,ie]}],ease:[{ease:["linear","initial",v,se,ie]}],delay:[{delay:[ge,se,ie]}],animate:[{animate:["none",L,se,ie]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,se,ie]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:z()}],"rotate-x":[{"rotate-x":z()}],"rotate-y":[{"rotate-y":z()}],"rotate-z":[{"rotate-z":z()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:ee()}],"skew-x":[{"skew-x":ee()}],"skew-y":[{"skew-y":ee()}],transform:[{transform:[se,ie,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"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",se,ie]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",se,ie]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[ge,r1,$i,J_]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function be(...a){return eE(R_(a))}function tE(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var HS={},jS={},gL={exports:{}},cA;function aE(){if(cA)return gL.exports;cA=1;var a=String,e=function(){return{isColorSupported:!1,reset:a,bold:a,dim:a,italic:a,underline:a,inverse:a,hidden:a,strikethrough:a,black:a,red:a,green:a,yellow:a,blue:a,magenta:a,cyan:a,white:a,gray:a,bgBlack:a,bgRed:a,bgGreen:a,bgYellow:a,bgBlue:a,bgMagenta:a,bgCyan:a,bgWhite:a,blackBright:a,redBright:a,greenBright:a,yellowBright:a,blueBright:a,magentaBright:a,cyanBright:a,whiteBright:a,bgBlackBright:a,bgRedBright:a,bgGreenBright:a,bgYellowBright:a,bgBlueBright:a,bgMagentaBright:a,bgCyanBright:a,bgWhiteBright:a}};return gL.exports=e(),gL.exports.createColors=e,gL.exports}var dA;function nE(){return dA||(dA=1,(function(a){var e={};Object.defineProperty(a,"__esModule",{value:!0});function n(h,u){for(var p in u)Object.defineProperty(h,p,{enumerable:!0,get:u[p]})}n(a,{dim:function(){return c},default:function(){return d}});const o=r(aE());function r(h){return h&&h.__esModule?h:{default:h}}let i=new Set;function s(h,u,p){typeof process<"u"&&e.JEST_WORKER_ID||p&&i.has(p)||(p&&i.add(p),console.warn(""),u.forEach(y=>console.warn(h,"-",y)))}function c(h){return o.default.dim(h)}const d={info(h,u){s(o.default.bold(o.default.cyan("info")),...Array.isArray(h)?[h]:[u,h])},warn(h,u){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(h)?[h]:[u,h])},risk(h,u){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(h)?[h]:[u,h])}}})(jS)),jS}var hA;function oE(){return hA||(hA=1,(function(a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return r}});const e=n(nE());function n(i){return i&&i.__esModule?i:{default:i}}function o({version:i,from:s,to:c}){e.default.warn(`${s}-color-renamed`,[`As of Tailwind CSS ${i}, \`${s}\` has been renamed to \`${c}\`.`,"Update your configuration file to silence this warning."])}const r={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}})(HS)),HS}var OS,uA;function rE(){if(uA)return OS;uA=1;let a=oE();return OS=(a.__esModule?a:{default:a}).default,OS}var iE=rE();const sE=tE(iE),pA=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,yA=R_,i1=(a,e)=>n=>{var o;if((e==null?void 0:e.variants)==null)return yA(a,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=e,s=Object.keys(r).map(h=>{const u=n==null?void 0:n[h],p=i==null?void 0:i[h];if(u===null)return null;const y=pA(u)||pA(p);return r[h][y]}),c=n&&Object.entries(n).reduce((h,u)=>{let[p,y]=u;return y===void 0||(h[p]=y),h},{}),d=e==null||(o=e.compoundVariants)===null||o===void 0?void 0:o.reduce((h,u)=>{let{class:p,className:y,...f}=u;return Object.entries(f).every(k=>{let[m,g]=k;return Array.isArray(g)?g.includes({...i,...c}[m]):{...i,...c}[m]===g})?[...h,p,y]:h},[]);return yA(a,s,d,n==null?void 0:n.class,n==null?void 0:n.className)};function fA(a){return typeof a=="string"?`'${a}'`:new lE().serialize(a)}const lE=(function(){var e;class a{constructor(){fq(this,e,new Map)}compare(o,r){const i=typeof o,s=typeof r;return i==="string"&&s==="string"?o.localeCompare(r):i==="number"&&s==="number"?o-r:String.prototype.localeCompare.call(this.serialize(o,!0),this.serialize(r,!0))}serialize(o,r){if(o===null)return"null";switch(typeof o){case"string":return r?o:`'${o}'`;case"bigint":return`${o}n`;case"object":return this.$object(o);case"function":return this.$function(o)}return String(o)}serializeObject(o){const r=Object.prototype.toString.call(o);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),o);const i=o.constructor,s=i===Object||i===void 0?"":i.name;if(s!==""&&globalThis[s]===i)return this.serializeBuiltInType(s,o);if(typeof o.toJSON=="function"){const c=o.toJSON();return s+(c!==null&&typeof c=="object"?this.$object(c):`(${this.serialize(c)})`)}return this.serializeObjectEntries(s,Object.entries(o))}serializeBuiltInType(o,r){const i=this["$"+o];if(i)return i.call(this,r);if(typeof(r==null?void 0:r.entries)=="function")return this.serializeObjectEntries(o,r.entries());throw new Error(`Cannot serialize ${o}`)}serializeObjectEntries(o,r){const i=Array.from(r).sort((c,d)=>this.compare(c[0],d[0]));let s=`${o}{`;for(let c=0;c<i.length;c++){const[d,h]=i[c];s+=`${this.serialize(d,!0)}:${this.serialize(h)}`,c<i.length-1&&(s+=",")}return s+"}"}$object(o){let r=T1(this,e).get(o);return r===void 0&&(T1(this,e).set(o,`#${T1(this,e).size}`),r=this.serializeObject(o),T1(this,e).set(o,r)),r}$function(o){const r=Function.prototype.toString.call(o);return r.slice(-15)==="[native code] }"?`${o.name||""}()[native]`:`${o.name}(${o.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(o){let r="[";for(let i=0;i<o.length;i++)r+=this.serialize(o[i]),i<o.length-1&&(r+=",");return r+"]"}$Date(o){try{return`Date(${o.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(o){return`ArrayBuffer[${new Uint8Array(o).join(",")}]`}$Set(o){return`Set${this.$Array(Array.from(o).sort((r,i)=>this.compare(r,i)))}`}$Map(o){return this.serializeObjectEntries("Map",o.entries())}}e=new WeakMap;for(const n of["Error","RegExp","URL"])a.prototype["$"+n]=function(o){return`${n}(${o})`};for(const n of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])a.prototype["$"+n]=function(o){return`${n}[${o.join(",")}]`};for(const n of["BigInt64Array","BigUint64Array"])a.prototype["$"+n]=function(o){return`${n}[${o.join("n,")}${o.length>0?"n":""}]`};return a})();function cE(a,e){return a===e||fA(a)===fA(e)}function kA(a,e=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(e,a))}function st(a,e){const n=typeof a=="string"&&!e?`${a}Context`:e,o=Symbol(n);return[s=>{const c=t.inject(o,s);if(c||c===null)return c;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(a)?`one of the following components: ${a.join(", ")}`:`\`${a}\``}`)},s=>(t.provide(o,s),s)]}function at(){let a=document.activeElement;if(a==null)return null;for(;a!=null&&a.shadowRoot!=null&&a.shadowRoot.activeElement!=null;)a=a.shadowRoot.activeElement;return a}function FS(a,e,n){const o=n.originalEvent.target,r=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(a,e,{once:!0}),o.dispatchEvent(r)}function RS(a){return a==null}function NS(a){return a?a.flatMap(e=>e.type===t.Fragment?NS(e.children):[e]):[]}const[bL]=st("ConfigProvider");function dE(a,e){var n;const o=t.shallowRef();return t.watchEffect(()=>{o.value=a()},{...e,flush:(n=e==null?void 0:e.flush)!==null&&n!==void 0?n:"sync"}),t.readonly(o)}function ys(a,e){return t.getCurrentScope()?(t.onScopeDispose(a,e),!0):!1}function hE(){const a=new Set,e=i=>{a.delete(i)};return{on:i=>{a.add(i);const s=()=>e(i);return ys(s),{off:s}},off:e,trigger:(...i)=>Promise.all(Array.from(a).map(s=>s(...i))),clear:()=>{a.clear()}}}function uE(a){let e=!1,n;const o=t.effectScope(!0);return((...r)=>(e||(n=o.run(()=>a(...r)),e=!0),n))}const $S=new WeakMap,pE=(...a)=>{var e;const n=a[0],o=(e=t.getCurrentInstance())===null||e===void 0?void 0:e.proxy,r=o??t.getCurrentScope();if(r==null&&!t.hasInjectionContext())throw new Error("injectLocal must be called in setup");return r&&$S.has(r)&&n in $S.get(r)?$S.get(r)[n]:t.inject(...a)},lt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yE=a=>typeof a<"u",fE=Object.prototype.toString,kE=a=>fE.call(a)==="[object Object]",mA=mE();function mE(){var a,e,n;return lt&&!!(!((a=window)===null||a===void 0||(a=a.navigator)===null||a===void 0)&&a.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function gE(a,e){var n;if(typeof a=="number")return a+e;const o=((n=a.match(/^-?\d+\.?\d*/))===null||n===void 0?void 0:n[0])||"",r=a.slice(o.length),i=Number.parseFloat(o)+e;return Number.isNaN(i)?a:i+r}function s1(a){return a.endsWith("rem")?Number.parseFloat(a)*16:Number.parseFloat(a)}function US(a){return Array.isArray(a)?a:[a]}function gA(a){return t.getCurrentInstance()}function bE(a){if(!lt)return a;let e=0,n,o;const r=()=>{e-=1,o&&e<=0&&(o.stop(),n=void 0,o=void 0)};return((...i)=>(e+=1,o||(o=t.effectScope(!0),n=o.run(()=>a(...i))),ys(r),n))}function ME(a){return t.isRef(a)?t.reactive(new Proxy({},{get(e,n,o){return t.unref(Reflect.get(a.value,n,o))},set(e,n,o){return t.isRef(a.value[n])&&!t.isRef(o)?a.value[n].value=o:a.value[n]=o,!0},deleteProperty(e,n){return Reflect.deleteProperty(a.value,n)},has(e,n){return Reflect.has(a.value,n)},ownKeys(){return Object.keys(a.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):t.reactive(a)}function xE(a){return ME(t.computed(a))}function De(a,...e){const n=e.flat(),o=n[0];return xE(()=>Object.fromEntries(typeof o=="function"?Object.entries(t.toRefs(a)).filter(([r,i])=>!o(t.toValue(i),r)):Object.entries(t.toRefs(a)).filter(r=>!n.includes(r[0]))))}function bA(a,e=1e4){return t.customRef((n,o)=>{let r=t.toValue(a),i;const s=()=>setTimeout(()=>{r=t.toValue(a),o()},t.toValue(e));return ys(()=>{clearTimeout(i)}),{get(){return n(),r},set(c){r=c,o(),clearTimeout(i),i=s()}}})}function wE(a,e){gA()&&t.onBeforeUnmount(a,e)}function vE(a,e=!0,n){gA()?t.onMounted(a,n):e?a():t.nextTick(a)}function MA(a,e,n={}){const{immediate:o=!0,immediateCallback:r=!1}=n,i=t.shallowRef(!1);let s;function c(){s&&(clearTimeout(s),s=void 0)}function d(){i.value=!1,c()}function h(...u){r&&a(),c(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=void 0,a(...u)},t.toValue(e))}return o&&(i.value=!0,lt&&h()),ys(d),{isPending:t.shallowReadonly(i),start:h,stop:d}}function CE(a,e,n){return t.watch(a,e,{...n,immediate:!0})}const fs=lt?window:void 0;function Et(a){var e;const n=t.toValue(a);return(e=n==null?void 0:n.$el)!==null&&e!==void 0?e:n}function l1(...a){const e=(o,r,i,s)=>(o.addEventListener(r,i,s),()=>o.removeEventListener(r,i,s)),n=t.computed(()=>{const o=US(t.toValue(a[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0});return CE(()=>{var o,r;return[(o=(r=n.value)===null||r===void 0?void 0:r.map(i=>Et(i)))!==null&&o!==void 0?o:[fs].filter(i=>i!=null),US(t.toValue(n.value?a[1]:a[0])),US(t.unref(n.value?a[2]:a[1])),t.toValue(n.value?a[3]:a[2])]},([o,r,i,s],c,d)=>{if(!(o!=null&&o.length)||!(r!=null&&r.length)||!(i!=null&&i.length))return;const h=kE(s)?{...s}:s,u=o.flatMap(p=>r.flatMap(y=>i.map(f=>e(p,y,f,h))));d(()=>{u.forEach(p=>p())})},{flush:"post"})}function xA(){const a=t.shallowRef(!1),e=t.getCurrentInstance();return e&&t.onMounted(()=>{a.value=!0},e),a}function wA(a){const e=xA();return t.computed(()=>(e.value,!!a()))}function LE(a){return typeof a=="function"?a:typeof a=="string"?e=>e.key===a:Array.isArray(a)?e=>a.includes(e.key):()=>!0}function SE(...a){let e,n,o={};a.length===3?(e=a[0],n=a[1],o=a[2]):a.length===2?typeof a[1]=="object"?(e=!0,n=a[0],o=a[1]):(e=a[0],n=a[1]):(e=!0,n=a[0]);const{target:r=fs,eventName:i="keydown",passive:s=!1,dedupe:c=!1}=o,d=LE(e);return l1(r,i,u=>{u.repeat&&t.toValue(c)||d(u)&&n(u)},s)}const IE=Symbol("vueuse-ssr-width");function vA(){const a=t.hasInjectionContext()?pE(IE,null):null;return typeof a=="number"?a:void 0}function c1(a,e={}){const{window:n=fs,ssrWidth:o=vA()}=e,r=wA(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=t.shallowRef(typeof o=="number"),s=t.shallowRef(),c=t.shallowRef(!1),d=h=>{c.value=h.matches};return t.watchEffect(()=>{if(i.value){i.value=!r.value,c.value=t.toValue(a).split(",").some(h=>{const u=h.includes("not all"),p=h.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),y=h.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let f=!!(p||y);return p&&f&&(f=o>=s1(p[1])),y&&f&&(f=o<=s1(y[1])),u?!f:f});return}r.value&&(s.value=n.matchMedia(t.toValue(a)),c.value=s.value.matches)}),l1(s,"change",d,{passive:!0}),t.computed(()=>c.value)}const _E={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function AE(a,e={}){function n(f,k){let m=t.toValue(a[t.toValue(f)]);return k!=null&&(m=gE(m,k)),typeof m=="number"&&(m=`${m}px`),m}const{window:o=fs,strategy:r="min-width",ssrWidth:i=vA()}=e,s=typeof i=="number",c=s?t.shallowRef(!1):{value:!0};s&&vE(()=>c.value=!!o);function d(f,k){return!c.value&&s?f==="min"?i>=s1(k):i<=s1(k):o?o.matchMedia(`(${f}-width: ${k})`).matches:!1}const h=f=>c1(()=>`(min-width: ${n(f)})`,e),u=f=>c1(()=>`(max-width: ${n(f)})`,e),p=Object.keys(a).reduce((f,k)=>(Object.defineProperty(f,k,{get:()=>r==="min-width"?h(k):u(k),enumerable:!0,configurable:!0}),f),{});function y(){const f=Object.keys(a).map(k=>[k,p[k],s1(n(k))]).sort((k,m)=>k[2]-m[2]);return t.computed(()=>f.filter(([,k])=>k.value).map(([k])=>k))}return Object.assign(p,{greaterOrEqual:h,smallerOrEqual:u,greater(f){return c1(()=>`(min-width: ${n(f,.1)})`,e)},smaller(f){return c1(()=>`(max-width: ${n(f,-.1)})`,e)},between(f,k){return c1(()=>`(min-width: ${n(f)}) and (max-width: ${n(k,-.1)})`,e)},isGreater(f){return d("min",n(f,.1))},isGreaterOrEqual(f){return d("min",n(f))},isSmaller(f){return d("max",n(f,-.1))},isSmallerOrEqual(f){return d("max",n(f))},isInBetween(f,k){return d("min",n(f))&&d("max",n(k,-.1))},current:y,active(){const f=y();return t.computed(()=>f.value.length===0?"":f.value.at(r==="min-width"?-1:0))}})}function BE(a){return JSON.parse(JSON.stringify(a))}function VE(a,e,n={}){const{window:o=fs,...r}=n;let i;const s=wA(()=>o&&"ResizeObserver"in o),c=()=>{i&&(i.disconnect(),i=void 0)},d=t.watch(t.computed(()=>{const u=t.toValue(a);return Array.isArray(u)?u.map(p=>Et(p)):[Et(u)]}),u=>{if(c(),s.value&&o){i=new ResizeObserver(e);for(const p of u)p&&i.observe(p,r)}},{immediate:!0,flush:"post"}),h=()=>{c(),d()};return ys(h),{isSupported:s,stop:h}}function ks(a,e,n,o={}){var r,i;const{clone:s=!1,passive:c=!1,eventName:d,deep:h=!1,defaultValue:u,shouldEmit:p}=o,y=t.getCurrentInstance(),f=n||(y==null?void 0:y.emit)||(y==null||(r=y.$emit)===null||r===void 0?void 0:r.bind(y))||(y==null||(i=y.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(y==null?void 0:y.proxy));let k=d;e||(e="modelValue"),k=k||`update:${e.toString()}`;const m=L=>s?typeof s=="function"?s(L):BE(L):L,g=()=>yE(a[e])?m(a[e]):u,v=L=>{p?p(L)&&f(k,L):f(k,L)};if(c){const L=t.ref(g());let w=!1;return t.watch(()=>a[e],M=>{w||(w=!0,L.value=m(M),t.nextTick(()=>w=!1))}),t.watch(L,M=>{!w&&(M!==a[e]||h)&&v(M)},{deep:h}),L}else return t.computed({get(){return g()},set(L){v(L)}})}function WS(a){if(a===null||typeof a!="object")return!1;const e=Object.getPrototypeOf(a);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in a?!1:Symbol.toStringTag in a?Object.prototype.toString.call(a)==="[object Module]":!0}function GS(a,e,n=".",o){if(!WS(e))return GS(a,{},n,o);const r=Object.assign({},e);for(const i in a){if(i==="__proto__"||i==="constructor")continue;const s=a[i];s!=null&&(o&&o(r,i,s,n)||(Array.isArray(s)&&Array.isArray(r[i])?r[i]=[...s,...r[i]]:WS(s)&&WS(r[i])?r[i]=GS(s,r[i],(n?`${n}.`:"")+i.toString(),o):r[i]=s))}return r}function zE(a){return(...e)=>e.reduce((n,o)=>GS(n,o,"",a),{})}const qE=zE(),PE=bE(()=>{const a=t.ref(new Map),e=t.ref(),n=t.computed(()=>{for(const s of a.value.values())if(s)return!0;return!1}),o=bL({scrollBody:t.ref(!0)});let r=null;const i=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=e.value??"",mA&&(r==null||r()),e.value=void 0};return t.watch(n,(s,c)=>{var p;if(!lt)return;if(!s){c&&i();return}e.value===void 0&&(e.value=document.body.style.overflow);const d=window.innerWidth-document.documentElement.clientWidth,h={padding:d,margin:0},u=(p=o.scrollBody)!=null&&p.value?typeof o.scrollBody.value=="object"?qE({padding:o.scrollBody.value.padding===!0?d:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?d:o.scrollBody.value.margin},h):h:{padding:0,margin:0};d>0&&(document.body.style.paddingRight=typeof u.padding=="number"?`${u.padding}px`:String(u.padding),document.body.style.marginRight=typeof u.margin=="number"?`${u.margin}px`:String(u.margin),document.documentElement.style.setProperty("--scrollbar-width",`${d}px`),document.body.style.overflow="hidden"),mA&&(r=l1(document,"touchmove",y=>DE(y),{passive:!1})),t.nextTick(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),a});function CA(a){const e=Math.random().toString(36).substring(2,7),n=PE();n.value.set(e,a??!1);const o=t.computed({get:()=>n.value.get(e)??!1,set:r=>n.value.set(e,r)});return wE(()=>{n.value.delete(e)}),o}function LA(a){const e=window.getComputedStyle(a);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&a.clientWidth<a.scrollWidth||e.overflowY==="auto"&&a.clientHeight<a.scrollHeight)return!0;{const n=a.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:LA(n)}}function DE(a){const e=a||window.event,n=e.target;return n instanceof Element&&LA(n)?!1:e.touches.length>1?!0:(e.preventDefault&&e.cancelable&&e.preventDefault(),!1)}function EE(a){const e=bL({dir:t.ref("ltr")});return t.computed(()=>{var n;return(a==null?void 0:a.value)||((n=e.dir)==null?void 0:n.value)||"ltr"})}function ML(a){const e=t.getCurrentInstance(),n=e==null?void 0:e.type.emits,o={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${e==null?void 0:e.type.__name}`),n==null||n.forEach(r=>{o[t.toHandlerKey(t.camelize(r))]=(...i)=>a(r,...i)}),o}let KS=0;function TE(){t.watchEffect(a=>{if(!lt)return;const e=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",e[0]??SA()),document.body.insertAdjacentElement("beforeend",e[1]??SA()),KS++,a(()=>{KS===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),KS--})})}function SA(){const a=document.createElement("span");return a.setAttribute("data-reka-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}function HE(a){return t.computed(()=>{var e;return t.toValue(a)?!!((e=Et(a))!=null&&e.closest("form")):!0})}function ke(){const a=t.getCurrentInstance(),e=t.ref(),n=t.computed(()=>{var s,c;return["#text","#comment"].includes((s=e.value)==null?void 0:s.$el.nodeName)?(c=e.value)==null?void 0:c.$el.nextElementSibling:Et(e)}),o=Object.assign({},a.exposed),r={};for(const s in a.props)Object.defineProperty(r,s,{enumerable:!0,configurable:!0,get:()=>a.props[s]});if(Object.keys(o).length>0)for(const s in o)Object.defineProperty(r,s,{enumerable:!0,configurable:!0,get:()=>o[s]});Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>a.vnode.el}),a.exposed=r;function i(s){if(e.value=s,!!s&&(Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>s instanceof Element?s:s.$el}),!(s instanceof Element)&&!Object.prototype.hasOwnProperty.call(s,"$el"))){const c=s.$.exposed,d=Object.assign({},r);for(const h in c)Object.defineProperty(d,h,{enumerable:!0,configurable:!0,get:()=>c[h]});a.exposed=d}}return{forwardRef:i,currentRef:e,currentElement:n}}function Ze(a){const e=t.getCurrentInstance(),n=Object.keys((e==null?void 0:e.type.props)??{}).reduce((r,i)=>{const s=(e==null?void 0:e.type.props[i]).default;return s!==void 0&&(r[i]=s),r},{}),o=t.toRef(a);return t.computed(()=>{const r={},i=(e==null?void 0:e.vnode.props)??{};return Object.keys(i).forEach(s=>{r[t.camelize(s)]=i[s]}),Object.keys({...n,...r}).reduce((s,c)=>(o.value[c]!==void 0&&(s[c]=o.value[c]),s),{})})}function mt(a,e){const n=Ze(a),o=e?ML(e):{};return t.computed(()=>({...n.value,...o}))}function jE(a,e){const n=bA(!1,300);ys(()=>{n.value=!1});const o=t.ref(null),r=hE();function i(){o.value=null,n.value=!1}function s(c,d){const h=c.currentTarget,u={x:c.clientX,y:c.clientY},p=OE(u,h.getBoundingClientRect()),y=FE(u,p,1),f=RE(d.getBoundingClientRect()),k=$E([...y,...f]);o.value=k,n.value=!0}return t.watchEffect(c=>{if(a.value&&e.value){const d=u=>s(u,e.value),h=u=>s(u,a.value);a.value.addEventListener("pointerleave",d),e.value.addEventListener("pointerleave",h),c(()=>{var u,p;(u=a.value)==null||u.removeEventListener("pointerleave",d),(p=e.value)==null||p.removeEventListener("pointerleave",h)})}}),t.watchEffect(c=>{var d;if(o.value){const h=u=>{var g,v;if(!o.value||!(u.target instanceof Element))return;const p=u.target,y={x:u.clientX,y:u.clientY},f=((g=a.value)==null?void 0:g.contains(p))||((v=e.value)==null?void 0:v.contains(p)),k=!NE(y,o.value),m=!!p.closest("[data-grace-area-trigger]");f?i():(k||m)&&(i(),r.trigger())};(d=a.value)==null||d.ownerDocument.addEventListener("pointermove",h),c(()=>{var u;return(u=a.value)==null?void 0:u.ownerDocument.removeEventListener("pointermove",h)})}}),{isPointerInTransit:n,onPointerExit:r.on}}function OE(a,e){const n=Math.abs(e.top-a.y),o=Math.abs(e.bottom-a.y),r=Math.abs(e.right-a.x),i=Math.abs(e.left-a.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function FE(a,e,n=5){const o=[];switch(e){case"top":o.push({x:a.x-n,y:a.y+n},{x:a.x+n,y:a.y+n});break;case"bottom":o.push({x:a.x-n,y:a.y-n},{x:a.x+n,y:a.y-n});break;case"left":o.push({x:a.x+n,y:a.y-n},{x:a.x+n,y:a.y+n});break;case"right":o.push({x:a.x-n,y:a.y-n},{x:a.x-n,y:a.y+n});break}return o}function RE(a){const{top:e,right:n,bottom:o,left:r}=a;return[{x:r,y:e},{x:n,y:e},{x:n,y:o},{x:r,y:o}]}function NE(a,e){const{x:n,y:o}=a;let r=!1;for(let i=0,s=e.length-1;i<e.length;s=i++){const c=e[i].x,d=e[i].y,h=e[s].x,u=e[s].y;d>o!=u>o&&n<(h-c)*(o-d)/(u-d)+c&&(r=!r)}return r}function $E(a){const e=a.slice();return e.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),UE(e)}function UE(a){if(a.length<=1)return a.slice();const e=[];for(let o=0;o<a.length;o++){const r=a[o];for(;e.length>=2;){const i=e[e.length-1],s=e[e.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))e.pop();else break}e.push(r)}e.pop();const n=[];for(let o=a.length-1;o>=0;o--){const r=a[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var WE=function(a){if(typeof document>"u")return null;var e=Array.isArray(a)?a[0]:a;return e.ownerDocument.body},ms=new WeakMap,xL=new WeakMap,wL={},XS=0,IA=function(a){return a&&(a.host||IA(a.parentNode))},GE=function(a,e){return e.map(function(n){if(a.contains(n))return n;var o=IA(n);return o&&a.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",a,". Doing nothing"),null)}).filter(function(n){return!!n})},KE=function(a,e,n,o){var r=GE(e,Array.isArray(a)?a:[a]);wL[n]||(wL[n]=new WeakMap);var i=wL[n],s=[],c=new Set,d=new Set(r),h=function(p){!p||c.has(p)||(c.add(p),h(p.parentNode))};r.forEach(h);var u=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(y){if(c.has(y))u(y);else try{var f=y.getAttribute(o),k=f!==null&&f!=="false",m=(ms.get(y)||0)+1,g=(i.get(y)||0)+1;ms.set(y,m),i.set(y,g),s.push(y),m===1&&k&&xL.set(y,!0),g===1&&y.setAttribute(n,"true"),k||y.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",y,v)}})};return u(e),c.clear(),XS++,function(){s.forEach(function(p){var y=ms.get(p)-1,f=i.get(p)-1;ms.set(p,y),i.set(p,f),y||(xL.has(p)||p.removeAttribute(o),xL.delete(p)),f||p.removeAttribute(n)}),XS--,XS||(ms=new WeakMap,ms=new WeakMap,xL=new WeakMap,wL={})}},XE=function(a,e,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(a)?a:[a]),r=WE(a);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),KE(o,r,n,"aria-hidden")):function(){return null}};function _A(a){let e;t.watch(()=>Et(a),n=>{n?e=XE(n):e&&e()}),t.onUnmounted(()=>{e&&e()})}let ZE=0;function gs(a,e="reka"){var o;if("useId"in j1)return`${e}-${(o=j1.useId)==null?void 0:o.call(j1)}`;const n=bL({useId:void 0});return n.useId?`${e}-${n.useId()}`:`${e}-${++ZE}`}function YE(a){const e=t.ref(),n=t.computed(()=>{var r;return((r=e.value)==null?void 0:r.width)??0}),o=t.computed(()=>{var r;return((r=e.value)==null?void 0:r.height)??0});return t.onMounted(()=>{const r=Et(a);if(r){e.value={width:r.offsetWidth,height:r.offsetHeight};const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let d,h;if("borderBoxSize"in c){const u=c.borderBoxSize,p=Array.isArray(u)?u[0]:u;d=p.inlineSize,h=p.blockSize}else d=r.offsetWidth,h=r.offsetHeight;e.value={width:d,height:h}});return i.observe(r,{box:"border-box"}),()=>i.unobserve(r)}else e.value=void 0}),{width:n,height:o}}function QE(a,e){const n=t.ref(a);function o(i){return e[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=o(i)}}}function AA(a){const e=bA("",1e3);return{search:e,handleTypeaheadSearch:(r,i)=>{e.value=e.value+r;{const s=at(),c=i.map(y=>{var f,k;return{...y,textValue:((f=y.value)==null?void 0:f.textValue)??((k=y.ref.textContent)==null?void 0:k.trim())??""}}),d=c.find(y=>y.ref===s),h=c.map(y=>y.textValue),u=eT(h,e.value,d==null?void 0:d.textValue),p=c.find(y=>y.textValue===u);return p&&p.ref.focus(),p==null?void 0:p.ref}},resetTypeahead:()=>{e.value=""}}}function JE(a,e){return a.map((n,o)=>a[(e+o)%a.length])}function eT(a,e,n){const r=e.length>1&&Array.from(e).every(h=>h===e[0])?e[0]:e,i=n?a.indexOf(n):-1;let s=JE(a,Math.max(i,0));r.length===1&&(s=s.filter(h=>h!==n));const d=s.find(h=>h.toLowerCase().startsWith(r.toLowerCase()));return d!==n?d:void 0}function tT(a,e){var g;const n=t.ref({}),o=t.ref("none"),r=t.ref(a),i=a.value?"mounted":"unmounted";let s;const c=((g=e.value)==null?void 0:g.ownerDocument.defaultView)??fs,{state:d,dispatch:h}=QE(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=v=>{var L;if(lt){const w=new CustomEvent(v,{bubbles:!1,cancelable:!1});(L=e.value)==null||L.dispatchEvent(w)}};t.watch(a,async(v,L)=>{var M;const w=L!==v;if(await t.nextTick(),w){const C=o.value,S=vL(e.value);v?(h("MOUNT"),u("enter"),S==="none"&&u("after-enter")):S==="none"||S==="undefined"||((M=n.value)==null?void 0:M.display)==="none"?(h("UNMOUNT"),u("leave"),u("after-leave")):L&&C!==S?(h("ANIMATION_OUT"),u("leave")):(h("UNMOUNT"),u("after-leave"))}},{immediate:!0});const p=v=>{const L=vL(e.value),w=L.includes(CSS.escape(v.animationName)),M=d.value==="mounted"?"enter":"leave";if(v.target===e.value&&w&&(u(`after-${M}`),h("ANIMATION_END"),!r.value)){const C=e.value.style.animationFillMode;e.value.style.animationFillMode="forwards",s=c==null?void 0:c.setTimeout(()=>{var S;((S=e.value)==null?void 0:S.style.animationFillMode)==="forwards"&&(e.value.style.animationFillMode=C)})}v.target===e.value&&L==="none"&&h("ANIMATION_END")},y=v=>{v.target===e.value&&(o.value=vL(e.value))},f=t.watch(e,(v,L)=>{v?(n.value=getComputedStyle(v),v.addEventListener("animationstart",y),v.addEventListener("animationcancel",p),v.addEventListener("animationend",p)):(h("ANIMATION_END"),s!==void 0&&(c==null||c.clearTimeout(s)),L==null||L.removeEventListener("animationstart",y),L==null||L.removeEventListener("animationcancel",p),L==null||L.removeEventListener("animationend",p))},{immediate:!0}),k=t.watch(d,()=>{const v=vL(e.value);o.value=d.value==="mounted"?v:"none"});return t.onUnmounted(()=>{f(),k()}),{isPresent:t.computed(()=>["mounted","unmountSuspended"].includes(d.value))}}function vL(a){return a&&getComputedStyle(a).animationName||"none"}var CL=t.defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(a,{slots:e,expose:n}){var h;const{present:o,forceMount:r}=t.toRefs(a),i=t.ref(),{isPresent:s}=tT(o,i);n({present:s});let c=e.default({present:s.value});c=NS(c||[]);const d=t.getCurrentInstance();if(c&&(c==null?void 0:c.length)>1){const u=(h=d==null?void 0:d.parent)!=null&&h.type.name?`<${d.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(p=>` - ${p}`).join(`
|
|
8497
8497
|
`)].join(`
|
|
8498
|
-
`))}return()=>r.value||o.value||s.value?t.h(e.default({present:s.value})[0],{ref:u=>{const p=Et(u);return typeof(p==null?void 0:p.hasAttribute)>"u"||(p!=null&&p.hasAttribute("data-reka-popper-content-wrapper")?i.value=p.firstElementChild:i.value=p),p}}):null}});const ZS=t.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(a,{attrs:e,slots:n}){return()=>{var d;if(!n.default)return null;const o=NS(n.default()),r=o.findIndex(h=>h.type!==t.Comment);if(r===-1)return o;const i=o[r];(d=i.props)==null||delete d.ref;const s=i.props?t.mergeProps(e,i.props):e,c=t.cloneVNode({...i,props:{}},s);return o.length===1?c:(o[r]=c,o)}}}),aT=["area","img","input"],we=t.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(a,{attrs:e,slots:n}){const o=a.asChild?"template":a.as;return typeof o=="string"&&aT.includes(o)?()=>t.h(o,e):o!=="template"?()=>t.h(a.as,e,{default:n.default}):()=>t.h(ZS,e,{default:n.default})}});function AA(){const a=t.ref(),e=t.computed(()=>{var n,o;return["#text","#comment"].includes((n=a.value)==null?void 0:n.$el.nodeName)?(o=a.value)==null?void 0:o.$el.nextElementSibling:Et(a)});return{primitiveElement:a,currentElement:e}}const[Tt,nT]=st("DialogRoot");var oT=t.defineComponent({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(a,{emit:e}){const n=a,r=ks(n,"open",e,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=t.ref(),s=t.ref(),{modal:c}=t.toRefs(n);return nT({open:r,modal:c,openModal:()=>{r.value=!0},onOpenChange:d=>{r.value=d},onOpenToggle:()=>{r.value=!r.value},contentId:"",titleId:"",descriptionId:"",triggerElement:i,contentElement:s}),(d,h)=>t.renderSlot(d.$slots,"default",{open:t.unref(r),close:()=>r.value=!1})}}),BA=oT,rT=t.defineComponent({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a;ke();const n=Tt();return(o,r)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{type:o.as==="button"?"button":void 0,onClick:r[0]||(r[0]=i=>t.unref(n).onOpenChange(!1))}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["type"]))}}),VA=rT;const iT="dismissableLayer.pointerDownOutside",sT="dismissableLayer.focusOutside";function zA(a,e){const n=e.closest("[data-dismissable-layer]"),o=a.dataset.dismissableLayer===""?a:a.querySelector("[data-dismissable-layer]"),r=Array.from(a.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(o===n||r.indexOf(o)<r.indexOf(n)))}function lT(a,e,n=!0){var s;const o=((s=e==null?void 0:e.value)==null?void 0:s.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=t.ref(!1),i=t.ref(()=>{});return t.watchEffect(c=>{if(!lt||!t.toValue(n))return;const d=async u=>{const p=u.target;if(!(!(e!=null&&e.value)||!p)){if(zA(e.value,p)){r.value=!1;return}if(u.target&&!r.value){let f=function(){FS(iT,a,y)};const y={originalEvent:u};u.pointerType==="touch"?(o.removeEventListener("click",i.value),i.value=f,o.addEventListener("click",i.value,{once:!0})):f()}else o.removeEventListener("click",i.value);r.value=!1}},h=window.setTimeout(()=>{o.addEventListener("pointerdown",d)},0);c(()=>{window.clearTimeout(h),o.removeEventListener("pointerdown",d),o.removeEventListener("click",i.value)})}),{onPointerDownCapture:()=>{t.toValue(n)&&(r.value=!0)}}}function cT(a,e,n=!0){var i;const o=((i=e==null?void 0:e.value)==null?void 0:i.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=t.ref(!1);return t.watchEffect(s=>{if(!lt||!t.toValue(n))return;const c=async d=>{if(!(e!=null&&e.value))return;await t.nextTick(),await t.nextTick();const h=d.target;!e.value||!h||zA(e.value,h)||d.target&&!r.value&&FS(sT,a,{originalEvent:d})};o.addEventListener("focusin",c),s(()=>o.removeEventListener("focusin",c))}),{onFocusCapture:()=>{t.toValue(n)&&(r.value=!0)},onBlurCapture:()=>{t.toValue(n)&&(r.value=!1)}}}const ct=t.reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var dT=t.defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(a,{emit:e}){const n=a,o=e,{forwardRef:r,currentElement:i}=ke(),s=t.computed(()=>{var f;return((f=i.value)==null?void 0:f.ownerDocument)??globalThis.document}),c=t.computed(()=>ct.layersRoot),d=t.computed(()=>i.value?Array.from(c.value).indexOf(i.value):-1),h=t.computed(()=>ct.layersWithOutsidePointerEventsDisabled.size>0),u=t.computed(()=>{const f=Array.from(c.value),[k]=[...ct.layersWithOutsidePointerEventsDisabled].slice(-1),m=f.indexOf(k);return d.value>=m}),p=lT(async f=>{const k=[...ct.branches].some(m=>m==null?void 0:m.contains(f.target));!u.value||k||(o("pointerDownOutside",f),o("interactOutside",f),await t.nextTick(),f.defaultPrevented||o("dismiss"))},i),y=cT(f=>{[...ct.branches].some(m=>m==null?void 0:m.contains(f.target))||(o("focusOutside",f),o("interactOutside",f),f.defaultPrevented||o("dismiss"))},i);return SE("Escape",f=>{d.value===c.value.size-1&&(o("escapeKeyDown",f),f.defaultPrevented||o("dismiss"))}),t.watchEffect(f=>{i.value&&(n.disableOutsidePointerEvents&&(ct.layersWithOutsidePointerEventsDisabled.size===0&&(ct.originalBodyPointerEvents=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents="none"),ct.layersWithOutsidePointerEventsDisabled.add(i.value)),c.value.add(i.value),f(()=>{n.disableOutsidePointerEvents&&ct.layersWithOutsidePointerEventsDisabled.size===1&&!RS(ct.originalBodyPointerEvents)&&(s.value.body.style.pointerEvents=ct.originalBodyPointerEvents)}))}),t.watchEffect(f=>{f(()=>{i.value&&(c.value.delete(i.value),ct.layersWithOutsidePointerEventsDisabled.delete(i.value))})}),(f,k)=>(t.openBlock(),t.createBlock(t.unref(we),{ref:t.unref(r),"as-child":f.asChild,as:f.as,"data-dismissable-layer":"",style:t.normalizeStyle({pointerEvents:h.value?u.value?"auto":"none":void 0}),onFocusCapture:t.unref(y).onFocusCapture,onBlurCapture:t.unref(y).onBlurCapture,onPointerdownCapture:t.unref(p).onPointerDownCapture},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),YS=dT;const hT=uE(()=>t.ref([]));function uT(){const a=hT();return{add(e){const n=a.value[0];e!==n&&(n==null||n.pause()),a.value=qA(a.value,e),a.value.unshift(e)},remove(e){var n;a.value=qA(a.value,e),(n=a.value[0])==null||n.resume()}}}function qA(a,e){const n=[...a],o=n.indexOf(e);return o!==-1&&n.splice(o,1),n}const QS="focusScope.autoFocusOnMount",JS="focusScope.autoFocusOnUnmount",PA={bubbles:!1,cancelable:!0};function pT(a,{select:e=!1}={}){const n=at();for(const o of a)if(ka(o,{select:e}),at()!==n)return!0}function yT(a){const e=DA(a),n=EA(e,a),o=EA(e.reverse(),a);return[n,o]}function DA(a){const e=[],n=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function EA(a,e){for(const n of a)if(!fT(n,{upTo:e}))return n}function fT(a,{upTo:e}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(e!==void 0&&a===e)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function kT(a){return a instanceof HTMLInputElement&&"select"in a}function ka(a,{select:e=!1}={}){if(a&&a.focus){const n=at();a.focus({preventScroll:!0}),a!==n&&kT(a)&&e&&a.select()}}var mT=t.defineComponent({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(a,{emit:e}){const n=a,o=e,{currentRef:r,currentElement:i}=ke(),s=t.ref(null),c=uT(),d=t.reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});t.watchEffect(u=>{if(!lt)return;const p=i.value;if(!n.trapped)return;function y(g){if(d.paused||!p)return;const v=g.target;p.contains(v)?s.value=v:ka(s.value,{select:!0})}function f(g){if(d.paused||!p)return;const v=g.relatedTarget;v!==null&&(p.contains(v)||ka(s.value,{select:!0}))}function k(g){p.contains(s.value)||ka(p)}document.addEventListener("focusin",y),document.addEventListener("focusout",f);const m=new MutationObserver(k);p&&m.observe(p,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",f),m.disconnect()})}),t.watchEffect(async u=>{const p=i.value;if(await t.nextTick(),!p)return;c.add(d);const y=at();if(!p.contains(y)){const k=new CustomEvent(QS,PA);p.addEventListener(QS,m=>o("mountAutoFocus",m)),p.dispatchEvent(k),k.defaultPrevented||(pT(DA(p),{select:!0}),at()===y&&ka(p))}u(()=>{p.removeEventListener(QS,g=>o("mountAutoFocus",g));const k=new CustomEvent(JS,PA),m=g=>{o("unmountAutoFocus",g)};p.addEventListener(JS,m),p.dispatchEvent(k),setTimeout(()=>{k.defaultPrevented||ka(y??document.body,{select:!0}),p.removeEventListener(JS,m),c.remove(d)},0)})});function h(u){if(!n.loop&&!n.trapped||d.paused)return;const p=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=at();if(p&&y){const f=u.currentTarget,[k,m]=yT(f);k&&m?!u.shiftKey&&y===m?(u.preventDefault(),n.loop&&ka(k,{select:!0})):u.shiftKey&&y===k&&(u.preventDefault(),n.loop&&ka(m,{select:!0})):y===f&&u.preventDefault()}}return(u,p)=>(t.openBlock(),t.createBlock(t.unref(we),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:h},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),TA=mT;function gT(a){return a?"open":"closed"}function HA(a){const e=at();for(const n of a)if(n===e||(n.focus(),at()!==e))return}const bT="DialogTitle",MT="DialogContent";function xT({titleName:a=bT,contentName:e=MT,componentLink:n="dialog.html#title",titleId:o,descriptionId:r,contentElement:i}){const s=`Warning: \`${e}\` requires a \`${a}\` for the component to be accessible for screen reader users.
|
|
8498
|
+
`))}return()=>r.value||o.value||s.value?t.h(e.default({present:s.value})[0],{ref:u=>{const p=Et(u);return typeof(p==null?void 0:p.hasAttribute)>"u"||(p!=null&&p.hasAttribute("data-reka-popper-content-wrapper")?i.value=p.firstElementChild:i.value=p),p}}):null}});const ZS=t.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(a,{attrs:e,slots:n}){return()=>{var d;if(!n.default)return null;const o=NS(n.default()),r=o.findIndex(h=>h.type!==t.Comment);if(r===-1)return o;const i=o[r];(d=i.props)==null||delete d.ref;const s=i.props?t.mergeProps(e,i.props):e,c=t.cloneVNode({...i,props:{}},s);return o.length===1?c:(o[r]=c,o)}}}),aT=["area","img","input"],we=t.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(a,{attrs:e,slots:n}){const o=a.asChild?"template":a.as;return typeof o=="string"&&aT.includes(o)?()=>t.h(o,e):o!=="template"?()=>t.h(a.as,e,{default:n.default}):()=>t.h(ZS,e,{default:n.default})}});function BA(){const a=t.ref(),e=t.computed(()=>{var n,o;return["#text","#comment"].includes((n=a.value)==null?void 0:n.$el.nodeName)?(o=a.value)==null?void 0:o.$el.nextElementSibling:Et(a)});return{primitiveElement:a,currentElement:e}}const[Tt,nT]=st("DialogRoot");var oT=t.defineComponent({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(a,{emit:e}){const n=a,r=ks(n,"open",e,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=t.ref(),s=t.ref(),{modal:c}=t.toRefs(n);return nT({open:r,modal:c,openModal:()=>{r.value=!0},onOpenChange:d=>{r.value=d},onOpenToggle:()=>{r.value=!r.value},contentId:"",titleId:"",descriptionId:"",triggerElement:i,contentElement:s}),(d,h)=>t.renderSlot(d.$slots,"default",{open:t.unref(r),close:()=>r.value=!1})}}),VA=oT,rT=t.defineComponent({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a;ke();const n=Tt();return(o,r)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{type:o.as==="button"?"button":void 0,onClick:r[0]||(r[0]=i=>t.unref(n).onOpenChange(!1))}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["type"]))}}),zA=rT;const iT="dismissableLayer.pointerDownOutside",sT="dismissableLayer.focusOutside";function qA(a,e){const n=e.closest("[data-dismissable-layer]"),o=a.dataset.dismissableLayer===""?a:a.querySelector("[data-dismissable-layer]"),r=Array.from(a.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(o===n||r.indexOf(o)<r.indexOf(n)))}function lT(a,e,n=!0){var s;const o=((s=e==null?void 0:e.value)==null?void 0:s.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=t.ref(!1),i=t.ref(()=>{});return t.watchEffect(c=>{if(!lt||!t.toValue(n))return;const d=async u=>{const p=u.target;if(!(!(e!=null&&e.value)||!p)){if(qA(e.value,p)){r.value=!1;return}if(u.target&&!r.value){let f=function(){FS(iT,a,y)};const y={originalEvent:u};u.pointerType==="touch"?(o.removeEventListener("click",i.value),i.value=f,o.addEventListener("click",i.value,{once:!0})):f()}else o.removeEventListener("click",i.value);r.value=!1}},h=window.setTimeout(()=>{o.addEventListener("pointerdown",d)},0);c(()=>{window.clearTimeout(h),o.removeEventListener("pointerdown",d),o.removeEventListener("click",i.value)})}),{onPointerDownCapture:()=>{t.toValue(n)&&(r.value=!0)}}}function cT(a,e,n=!0){var i;const o=((i=e==null?void 0:e.value)==null?void 0:i.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=t.ref(!1);return t.watchEffect(s=>{if(!lt||!t.toValue(n))return;const c=async d=>{if(!(e!=null&&e.value))return;await t.nextTick(),await t.nextTick();const h=d.target;!e.value||!h||qA(e.value,h)||d.target&&!r.value&&FS(sT,a,{originalEvent:d})};o.addEventListener("focusin",c),s(()=>o.removeEventListener("focusin",c))}),{onFocusCapture:()=>{t.toValue(n)&&(r.value=!0)},onBlurCapture:()=>{t.toValue(n)&&(r.value=!1)}}}const ct=t.reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var dT=t.defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(a,{emit:e}){const n=a,o=e,{forwardRef:r,currentElement:i}=ke(),s=t.computed(()=>{var f;return((f=i.value)==null?void 0:f.ownerDocument)??globalThis.document}),c=t.computed(()=>ct.layersRoot),d=t.computed(()=>i.value?Array.from(c.value).indexOf(i.value):-1),h=t.computed(()=>ct.layersWithOutsidePointerEventsDisabled.size>0),u=t.computed(()=>{const f=Array.from(c.value),[k]=[...ct.layersWithOutsidePointerEventsDisabled].slice(-1),m=f.indexOf(k);return d.value>=m}),p=lT(async f=>{const k=[...ct.branches].some(m=>m==null?void 0:m.contains(f.target));!u.value||k||(o("pointerDownOutside",f),o("interactOutside",f),await t.nextTick(),f.defaultPrevented||o("dismiss"))},i),y=cT(f=>{[...ct.branches].some(m=>m==null?void 0:m.contains(f.target))||(o("focusOutside",f),o("interactOutside",f),f.defaultPrevented||o("dismiss"))},i);return SE("Escape",f=>{d.value===c.value.size-1&&(o("escapeKeyDown",f),f.defaultPrevented||o("dismiss"))}),t.watchEffect(f=>{i.value&&(n.disableOutsidePointerEvents&&(ct.layersWithOutsidePointerEventsDisabled.size===0&&(ct.originalBodyPointerEvents=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents="none"),ct.layersWithOutsidePointerEventsDisabled.add(i.value)),c.value.add(i.value),f(()=>{n.disableOutsidePointerEvents&&ct.layersWithOutsidePointerEventsDisabled.size===1&&!RS(ct.originalBodyPointerEvents)&&(s.value.body.style.pointerEvents=ct.originalBodyPointerEvents)}))}),t.watchEffect(f=>{f(()=>{i.value&&(c.value.delete(i.value),ct.layersWithOutsidePointerEventsDisabled.delete(i.value))})}),(f,k)=>(t.openBlock(),t.createBlock(t.unref(we),{ref:t.unref(r),"as-child":f.asChild,as:f.as,"data-dismissable-layer":"",style:t.normalizeStyle({pointerEvents:h.value?u.value?"auto":"none":void 0}),onFocusCapture:t.unref(y).onFocusCapture,onBlurCapture:t.unref(y).onBlurCapture,onPointerdownCapture:t.unref(p).onPointerDownCapture},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),YS=dT;const hT=uE(()=>t.ref([]));function uT(){const a=hT();return{add(e){const n=a.value[0];e!==n&&(n==null||n.pause()),a.value=PA(a.value,e),a.value.unshift(e)},remove(e){var n;a.value=PA(a.value,e),(n=a.value[0])==null||n.resume()}}}function PA(a,e){const n=[...a],o=n.indexOf(e);return o!==-1&&n.splice(o,1),n}const QS="focusScope.autoFocusOnMount",JS="focusScope.autoFocusOnUnmount",DA={bubbles:!1,cancelable:!0};function pT(a,{select:e=!1}={}){const n=at();for(const o of a)if(ka(o,{select:e}),at()!==n)return!0}function yT(a){const e=EA(a),n=TA(e,a),o=TA(e.reverse(),a);return[n,o]}function EA(a){const e=[],n=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function TA(a,e){for(const n of a)if(!fT(n,{upTo:e}))return n}function fT(a,{upTo:e}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(e!==void 0&&a===e)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function kT(a){return a instanceof HTMLInputElement&&"select"in a}function ka(a,{select:e=!1}={}){if(a&&a.focus){const n=at();a.focus({preventScroll:!0}),a!==n&&kT(a)&&e&&a.select()}}var mT=t.defineComponent({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(a,{emit:e}){const n=a,o=e,{currentRef:r,currentElement:i}=ke(),s=t.ref(null),c=uT(),d=t.reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});t.watchEffect(u=>{if(!lt)return;const p=i.value;if(!n.trapped)return;function y(g){if(d.paused||!p)return;const v=g.target;p.contains(v)?s.value=v:ka(s.value,{select:!0})}function f(g){if(d.paused||!p)return;const v=g.relatedTarget;v!==null&&(p.contains(v)||ka(s.value,{select:!0}))}function k(g){p.contains(s.value)||ka(p)}document.addEventListener("focusin",y),document.addEventListener("focusout",f);const m=new MutationObserver(k);p&&m.observe(p,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",f),m.disconnect()})}),t.watchEffect(async u=>{const p=i.value;if(await t.nextTick(),!p)return;c.add(d);const y=at();if(!p.contains(y)){const k=new CustomEvent(QS,DA);p.addEventListener(QS,m=>o("mountAutoFocus",m)),p.dispatchEvent(k),k.defaultPrevented||(pT(EA(p),{select:!0}),at()===y&&ka(p))}u(()=>{p.removeEventListener(QS,g=>o("mountAutoFocus",g));const k=new CustomEvent(JS,DA),m=g=>{o("unmountAutoFocus",g)};p.addEventListener(JS,m),p.dispatchEvent(k),setTimeout(()=>{k.defaultPrevented||ka(y??document.body,{select:!0}),p.removeEventListener(JS,m),c.remove(d)},0)})});function h(u){if(!n.loop&&!n.trapped||d.paused)return;const p=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=at();if(p&&y){const f=u.currentTarget,[k,m]=yT(f);k&&m?!u.shiftKey&&y===m?(u.preventDefault(),n.loop&&ka(k,{select:!0})):u.shiftKey&&y===k&&(u.preventDefault(),n.loop&&ka(m,{select:!0})):y===f&&u.preventDefault()}}return(u,p)=>(t.openBlock(),t.createBlock(t.unref(we),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:h},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),HA=mT;function gT(a){return a?"open":"closed"}function jA(a){const e=at();for(const n of a)if(n===e||(n.focus(),at()!==e))return}const bT="DialogTitle",MT="DialogContent";function xT({titleName:a=bT,contentName:e=MT,componentLink:n="dialog.html#title",titleId:o,descriptionId:r,contentElement:i}){const s=`Warning: \`${e}\` requires a \`${a}\` for the component to be accessible for screen reader users.
|
|
8499
8499
|
|
|
8500
8500
|
If you want to hide the \`${a}\`, you can wrap it with our VisuallyHidden component.
|
|
8501
8501
|
|
|
8502
|
-
For more information, see https://www.reka-ui.com/docs/components/${n}`,c=`Warning: Missing \`Description\` or \`aria-describedby="undefined"\` for ${e}.`;t.onMounted(()=>{var u;document.getElementById(o)||console.warn(s);const h=(u=i.value)==null?void 0:u.getAttribute("aria-describedby");r&&h&&(document.getElementById(r)||console.warn(c))})}var wT={},vT=t.defineComponent({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:e}){const n=a,o=e,r=Tt(),{forwardRef:i,currentElement:s}=ke();return r.titleId||(r.titleId=gs(void 0,"reka-dialog-title")),r.descriptionId||(r.descriptionId=gs(void 0,"reka-dialog-description")),t.onMounted(()=>{r.contentElement=s,at()!==document.body&&(r.triggerElement.value=at())}),wT.NODE_ENV!=="production"&&xT({titleName:"DialogTitle",contentName:"DialogContent",componentLink:"dialog.html#title",titleId:r.titleId,descriptionId:r.descriptionId,contentElement:s}),(c,d)=>(t.openBlock(),t.createBlock(t.unref(TA),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:d[5]||(d[5]=h=>o("openAutoFocus",h)),onUnmountAutoFocus:d[6]||(d[6]=h=>o("closeAutoFocus",h))},{default:t.withCtx(()=>[t.createVNode(t.unref(YS),t.mergeProps({id:t.unref(r).contentId,ref:t.unref(i),as:c.as,"as-child":c.asChild,"disable-outside-pointer-events":c.disableOutsidePointerEvents,role:"dialog","aria-describedby":t.unref(r).descriptionId,"aria-labelledby":t.unref(r).titleId,"data-state":t.unref(gT)(t.unref(r).open.value)},c.$attrs,{onDismiss:d[0]||(d[0]=h=>t.unref(r).onOpenChange(!1)),onEscapeKeyDown:d[1]||(d[1]=h=>o("escapeKeyDown",h)),onFocusOutside:d[2]||(d[2]=h=>o("focusOutside",h)),onInteractOutside:d[3]||(d[3]=h=>o("interactOutside",h)),onPointerDownOutside:d[4]||(d[4]=h=>o("pointerDownOutside",h))}),{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),jA=vT,CT=t.defineComponent({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:e}){const n=a,o=e,r=Tt(),i=ML(o),{forwardRef:s,currentElement:c}=ke();return IA(c),(d,h)=>(t.openBlock(),t.createBlock(jA,t.mergeProps({...n,...t.unref(i)},{ref:t.unref(s),"trap-focus":t.unref(r).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:h[0]||(h[0]=u=>{var p;u.defaultPrevented||(u.preventDefault(),(p=t.unref(r).triggerElement.value)==null||p.focus())}),onPointerDownOutside:h[1]||(h[1]=u=>{const p=u.detail.originalEvent,y=p.button===0&&p.ctrlKey===!0;(p.button===2||y)&&u.preventDefault()}),onFocusOutside:h[2]||(h[2]=u=>{u.preventDefault()})}),{default:t.withCtx(()=>[t.renderSlot(d.$slots,"default")]),_:3},16,["trap-focus"]))}}),LT=CT,ST=t.defineComponent({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:e}){const n=a,r=ML(e);ke();const i=Tt(),s=t.ref(!1),c=t.ref(!1);return(d,h)=>(t.openBlock(),t.createBlock(jA,t.mergeProps({...n,...t.unref(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:h[0]||(h[0]=u=>{var p;u.defaultPrevented||(s.value||(p=t.unref(i).triggerElement.value)==null||p.focus(),u.preventDefault()),s.value=!1,c.value=!1}),onInteractOutside:h[1]||(h[1]=u=>{var f;u.defaultPrevented||(s.value=!0,u.detail.originalEvent.type==="pointerdown"&&(c.value=!0));const p=u.target;((f=t.unref(i).triggerElement.value)==null?void 0:f.contains(p))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.value&&u.preventDefault()})}),{default:t.withCtx(()=>[t.renderSlot(d.$slots,"default")]),_:3},16))}}),IT=ST,_T=t.defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:e}){const n=a,o=e,r=Tt(),i=ML(o),{forwardRef:s}=ke();return(c,d)=>(t.openBlock(),t.createBlock(t.unref(CL),{present:c.forceMount||t.unref(r).open.value},{default:t.withCtx(()=>[t.unref(r).modal.value?(t.openBlock(),t.createBlock(LT,t.mergeProps({key:0,ref:t.unref(s)},{...n,...t.unref(i),...c.$attrs}),{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:3},16)):(t.openBlock(),t.createBlock(IT,t.mergeProps({key:1,ref:t.unref(s)},{...n,...t.unref(i),...c.$attrs}),{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),OA=_T,AT=t.defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(a){const e=a;ke();const n=Tt();return(o,r)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{id:t.unref(n).descriptionId}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["id"]))}}),FA=AT,BT=t.defineComponent({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=Tt();return vA(!0),ke(),(n,o)=>(t.openBlock(),t.createBlock(t.unref(we),{as:n.as,"as-child":n.asChild,"data-state":t.unref(e).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),VT=BT,zT=t.defineComponent({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=Tt(),{forwardRef:n}=ke();return(o,r)=>{var i;return(i=t.unref(e))!=null&&i.modal.value?(t.openBlock(),t.createBlock(t.unref(CL),{key:0,present:o.forceMount||t.unref(e).open.value},{default:t.withCtx(()=>[t.createVNode(VT,t.mergeProps(o.$attrs,{ref:t.unref(n),as:o.as,"as-child":o.asChild}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):t.createCommentVNode("v-if",!0)}}}),RA=zT,qT=t.defineComponent({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(a){const e=MA();return(n,o)=>t.unref(e)||n.forceMount?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[t.renderSlot(n.$slots,"default")],8,["to","disabled","defer"])):t.createCommentVNode("v-if",!0)}}),eI=qT,PT=t.defineComponent({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(eI),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),NA=PT,DT=t.defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(a){const e=a,n=Tt();return ke(),(o,r)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{id:t.unref(n).titleId}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["id"]))}}),$A=DT,ET=t.defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a,n=Tt(),{forwardRef:o,currentElement:r}=ke();return n.contentId||(n.contentId=gs(void 0,"reka-dialog-content")),t.onMounted(()=>{n.triggerElement.value=r.value}),(i,s)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{ref:t.unref(o),type:i.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":t.unref(n).open.value||!1,"aria-controls":t.unref(n).open.value?t.unref(n).contentId:void 0,"data-state":t.unref(n).open.value?"open":"closed",onClick:t.unref(n).onOpenToggle}),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),TT=ET;const[UA,HT]=st("AvatarRoot");var jT=t.defineComponent({__name:"AvatarRoot",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){return ke(),HT({imageLoadingStatus:t.ref("idle")}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(we),{"as-child":e.asChild,as:e.as},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["as-child","as"]))}}),OT=jT,FT=t.defineComponent({__name:"AvatarFallback",props:{delayMs:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){const e=a,n=UA();ke();const o=t.ref(e.delayMs===void 0);return t.watchEffect(r=>{if(e.delayMs&<){const i=window.setTimeout(()=>{o.value=!0},e.delayMs);r(()=>{window.clearTimeout(i)})}}),(r,i)=>o.value&&t.unref(n).imageLoadingStatus.value!=="loaded"?(t.openBlock(),t.createBlock(t.unref(we),{key:0,"as-child":r.asChild,as:r.as},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3},8,["as-child","as"])):t.createCommentVNode("v-if",!0)}}),RT=FT;function WA(a,e){return a?e?(a.src!==e&&(a.src=e),a.complete&&a.naturalWidth>0?"loaded":"loading"):"error":"idle"}function NT(a,{referrerPolicy:e,crossOrigin:n}={}){const o=t.ref(!1),r=t.ref(null),i=t.computed(()=>o.value?(!r.value&<&&(r.value=new window.Image),r.value):null),s=t.ref(WA(i.value,a.value)),c=d=>()=>{o.value&&(s.value=d)};return t.onMounted(()=>{o.value=!0,t.watchEffect(d=>{const h=i.value;if(!h)return;s.value=WA(h,a.value);const u=c("loaded"),p=c("error");h.addEventListener("load",u),h.addEventListener("error",p),e!=null&&e.value&&(h.referrerPolicy=e.value),typeof(n==null?void 0:n.value)=="string"&&(h.crossOrigin=n.value),d(()=>{h.removeEventListener("load",u),h.removeEventListener("error",p)})})}),t.onUnmounted(()=>{o.value=!1}),s}var $T=t.defineComponent({__name:"AvatarImage",props:{src:{type:String,required:!0},referrerPolicy:{type:null,required:!1},crossOrigin:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"img"}},emits:["loadingStatusChange"],setup(a,{emit:e}){const n=a,o=e,{src:r,referrerPolicy:i,crossOrigin:s}=t.toRefs(n);ke();const c=UA(),d=NT(r,{referrerPolicy:i,crossOrigin:s});return t.watch(d,h=>{o("loadingStatusChange",h),h!=="idle"&&(c.imageLoadingStatus.value=h)},{immediate:!0}),(h,u)=>t.withDirectives((t.openBlock(),t.createBlock(t.unref(we),{role:"img","as-child":h.asChild,as:h.as,src:t.unref(r),referrerpolicy:t.unref(i),crossorigin:t.unref(s)},{default:t.withCtx(()=>[t.renderSlot(h.$slots,"default")]),_:3},8,["as-child","as","src","referrerpolicy","crossorigin"])),[[t.vShow,t.unref(d)==="loaded"]])}}),UT=$T;const GA="data-reka-collection-item";function bs(a={}){const{key:e="",isProvider:n=!1}=a,o=`${e}CollectionProvider`;let r;if(n){const u=t.ref(new Map);r={collectionRef:t.ref(),itemMap:u},t.provide(o,r)}else r=t.inject(o);const i=(u=!1)=>{const p=r.collectionRef.value;if(!p)return[];const y=Array.from(p.querySelectorAll(`[${GA}]`)),k=Array.from(r.itemMap.value.values()).sort((m,g)=>y.indexOf(m.ref)-y.indexOf(g.ref));return u?k:k.filter(m=>m.ref.dataset.disabled!=="")},s=t.defineComponent({name:"CollectionSlot",inheritAttrs:!1,setup(u,{slots:p,attrs:y}){const{primitiveElement:f,currentElement:k}=AA();return t.watch(k,()=>{r.collectionRef.value=k.value}),()=>t.h(ZS,{ref:f,...y},p)}}),c=t.defineComponent({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(u,{slots:p,attrs:y}){const{primitiveElement:f,currentElement:k}=AA();return t.watchEffect(m=>{if(k.value){const g=t.markRaw(k.value);r.itemMap.value.set(g,{ref:k.value,value:u.value}),m(()=>r.itemMap.value.delete(g))}}),()=>t.h(ZS,{...y,[GA]:"",ref:f},p)}}),d=t.computed(()=>Array.from(r.itemMap.value.values())),h=t.computed(()=>r.itemMap.value.size);return{getItems:i,reactiveItems:d,itemMapSize:h,CollectionSlot:s,CollectionItem:c}}var WT=t.defineComponent({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){return(e,n)=>(t.openBlock(),t.createBlock(t.unref(we),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature==="focusable"?"true":void 0,"data-hidden":e.feature==="fully-hidden"?"":void 0,tabindex:e.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),KA=WT;const[XA,GT]=st("PopperRoot");var KT=t.defineComponent({inheritAttrs:!1,__name:"PopperRoot",setup(a){const e=t.ref();return GT({anchor:e,onAnchorChange:n=>e.value=n}),(n,o)=>t.renderSlot(n.$slots,"default")}}),ZA=KT,XT=t.defineComponent({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a,{forwardRef:n,currentElement:o}=ke(),r=XA();return t.watchPostEffect(()=>{r.onAnchorChange(e.reference??o.value)}),(i,s)=>(t.openBlock(),t.createBlock(t.unref(we),{ref:t.unref(n),as:i.as,"as-child":i.asChild},{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},8,["as","as-child"]))}}),YA=XT;function ZT(a){return a!==null}function YT(a){return{name:"transformOrigin",options:a,fn(e){var g,v,L;const{placement:n,rects:o,middlewareData:r}=e,s=((g=r.arrow)==null?void 0:g.centerOffset)!==0,c=s?0:a.arrowWidth,d=s?0:a.arrowHeight,[h,u]=tI(n),p={start:"0%",center:"50%",end:"100%"}[u],y=(((v=r.arrow)==null?void 0:v.x)??0)+c/2,f=(((L=r.arrow)==null?void 0:L.y)??0)+d/2;let k="",m="";return h==="bottom"?(k=s?p:`${y}px`,m=`${-d}px`):h==="top"?(k=s?p:`${y}px`,m=`${o.floating.height+d}px`):h==="right"?(k=`${-d}px`,m=s?p:`${f}px`):h==="left"&&(k=`${o.floating.width+d}px`,m=s?p:`${f}px`),{data:{x:k,y:m}}}}}function tI(a){const[e,n="center"]=a.split("-");return[e,n]}const QT={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[NQ,JT]=st("PopperContent");var eH=t.defineComponent({inheritAttrs:!1,__name:"PopperContent",props:t.mergeDefaults({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...QT}),emits:["placed"],setup(a,{emit:e}){const n=a,o=e,r=XA(),{forwardRef:i,currentElement:s}=ke(),c=t.ref(),d=t.ref(),{width:h,height:u}=YE(d),p=t.computed(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),y=t.computed(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),f=t.computed(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),k=t.computed(()=>({padding:y.value,boundary:f.value.filter(ZT),altBoundary:f.value.length>0})),m=t.computed(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),g=dE(()=>[X1({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Ds({...k.value,...m.value}),n.avoidCollisions&&Z1({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?mP():void 0,...k.value}),!n.prioritizePosition&&n.avoidCollisions&&Ds({...k.value,...m.value}),Y1({...k.value,apply:({elements:A,rects:P,availableWidth:D,availableHeight:U})=>{const{width:T,height:H}=P.reference,N=A.floating.style;N.setProperty("--reka-popper-available-width",`${D}px`),N.setProperty("--reka-popper-available-height",`${U}px`),N.setProperty("--reka-popper-anchor-width",`${T}px`),N.setProperty("--reka-popper-anchor-height",`${H}px`)}}),d.value&&MP({element:d.value,padding:n.arrowPadding}),YT({arrowWidth:h.value,arrowHeight:u.value}),n.hideWhenDetached&&fP({strategy:"referenceHidden",...k.value})]),v=t.computed(()=>n.reference??r.anchor.value),{floatingStyles:L,placement:w,isPositioned:M,middlewareData:C}=Q1(v,c,{strategy:n.positionStrategy,placement:p,whileElementsMounted:(...A)=>K1(...A,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:g}),S=t.computed(()=>tI(w.value)[0]),b=t.computed(()=>tI(w.value)[1]);t.watchPostEffect(()=>{M.value&&o("placed")});const x=t.computed(()=>{var P;const A=((P=C.value.arrow)==null?void 0:P.centerOffset)!==0;return n.hideShiftedArrow&&A}),I=t.ref("");t.watchEffect(()=>{s.value&&(I.value=window.getComputedStyle(s.value).zIndex)});const V=t.computed(()=>{var A;return((A=C.value.arrow)==null?void 0:A.x)??0}),B=t.computed(()=>{var A;return((A=C.value.arrow)==null?void 0:A.y)??0});return JT({placedSide:S,onArrowChange:A=>d.value=A,arrowX:V,arrowY:B,shouldHideArrow:x}),(A,P)=>{var D,U,T;return t.openBlock(),t.createElementBlock("div",{ref_key:"floatingRef",ref:c,"data-reka-popper-content-wrapper":"",style:t.normalizeStyle({...t.unref(L),transform:t.unref(M)?t.unref(L).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:I.value,"--reka-popper-transform-origin":[(D=t.unref(C).transformOrigin)==null?void 0:D.x,(U=t.unref(C).transformOrigin)==null?void 0:U.y].join(" "),...((T=t.unref(C).hide)==null?void 0:T.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[t.createVNode(t.unref(we),t.mergeProps({ref:t.unref(i)},A.$attrs,{"as-child":n.asChild,as:A.as,"data-side":S.value,"data-align":b.value,style:{animation:t.unref(M)?void 0:"none"}}),{default:t.withCtx(()=>[t.renderSlot(A.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),QA=eH;function tH(a){const e=bL({nonce:t.ref()});return t.computed(()=>{var n;return(a==null?void 0:a.value)||((n=e.nonce)==null?void 0:n.value)})}var aH=t.defineComponent({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(a){const e=a;return ke(),(n,o)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{onMousedown:o[0]||(o[0]=r=>{!r.defaultPrevented&&r.detail>1&&r.preventDefault()})}),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),nH=aH,oH=t.defineComponent({__name:"PaginationEllipsis",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a;return ke(),(n,o)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{"data-type":"ellipsis"}),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default",{},()=>[o[0]||(o[0]=t.createTextVNode("…"))])]),_:3},16))}}),rH=oH;const[Ms,iH]=st("PaginationRoot");var sH=t.defineComponent({__name:"PaginationRoot",props:{page:{type:Number,required:!1},defaultPage:{type:Number,required:!1,default:1},itemsPerPage:{type:Number,required:!0},total:{type:Number,required:!1,default:0},siblingCount:{type:Number,required:!1,default:2},disabled:{type:Boolean,required:!1},showEdges:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"nav"}},emits:["update:page"],setup(a,{emit:e}){const n=a,o=e,{siblingCount:r,disabled:i,showEdges:s}=t.toRefs(n);ke();const c=ks(n,"page",o,{defaultValue:n.defaultPage,passive:n.page===void 0}),d=t.computed(()=>Math.max(1,Math.ceil(n.total/(n.itemsPerPage||1))));return iH({page:c,onPageChange(h){c.value=h},pageCount:d,siblingCount:r,disabled:i,showEdges:s}),(h,u)=>(t.openBlock(),t.createBlock(t.unref(we),{as:h.as,"as-child":h.asChild},{default:t.withCtx(()=>[t.renderSlot(h.$slots,"default",{page:t.unref(c),pageCount:d.value})]),_:3},8,["as","as-child"]))}}),lH=sH,cH=t.defineComponent({__name:"PaginationFirst",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a,n=Ms();ke();const o=t.computed(()=>n.page.value===1||n.disabled.value);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{"aria-label":"First Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&t.unref(n).onPageChange(1))}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=t.createTextVNode("First page"))])]),_:3},16,["type","disabled"]))}}),dH=cH,hH=t.defineComponent({__name:"PaginationLast",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a,n=Ms();ke();const o=t.computed(()=>n.page.value===n.pageCount.value||n.disabled.value);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{"aria-label":"Last Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&t.unref(n).onPageChange(t.unref(n).pageCount.value))}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=t.createTextVNode("Last page"))])]),_:3},16,["type","disabled"]))}}),uH=hH;function ma(a,e){const n=e-a+1;return Array.from({length:n},(o,r)=>r+a)}function pH(a){return a.map(e=>typeof e=="number"?{type:"page",value:e}:{type:"ellipsis"})}const LL="ellipsis";function yH(a,e,n,o){const i=e,s=Math.max(a-n,1),c=Math.min(a+n,i);if(o){const h=Math.min(2*n+5,e)-2,u=s>3&&Math.abs(i-h-1+1)>2&&Math.abs(s-1)>2,p=c<i-2&&Math.abs(i-h)>2&&Math.abs(i-c)>2;if(!u&&p)return[...ma(1,h),LL,i];if(u&&!p){const f=ma(i-h+1,i);return[1,LL,...f]}if(u&&p){const f=ma(s,c);return[1,LL,...f,LL,i]}return ma(1,i)}else{const d=n*2+1;return e<d?ma(1,i):a<=n+1?ma(1,d):e-a<=n?ma(e-d+1,i):ma(s,c)}}var fH=t.defineComponent({__name:"PaginationList",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a;ke();const n=Ms(),o=t.computed(()=>pH(yH(n.page.value,n.pageCount.value,n.siblingCount.value,n.showEdges.value)));return(r,i)=>(t.openBlock(),t.createBlock(t.unref(we),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{items:o.value})]),_:3},16))}}),kH=fH,mH=t.defineComponent({__name:"PaginationListItem",props:{value:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a;ke();const n=Ms(),o=t.computed(()=>n.page.value===e.value),r=t.computed(()=>n.disabled.value);return(i,s)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{"data-type":"page","aria-label":`Page ${i.value}`,"aria-current":o.value?"page":void 0,"data-selected":o.value?"true":void 0,disabled:r.value,type:i.as==="button"?"button":void 0,onClick:s[0]||(s[0]=c=>!r.value&&t.unref(n).onPageChange(i.value))}),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(i.value),1)])]),_:3},16,["aria-label","aria-current","data-selected","disabled","type"]))}}),gH=mH,bH=t.defineComponent({__name:"PaginationNext",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a;ke();const n=Ms(),o=t.computed(()=>n.page.value===n.pageCount.value||n.disabled.value);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{"aria-label":"Next Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&t.unref(n).onPageChange(t.unref(n).page.value+1))}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=t.createTextVNode("Next page"))])]),_:3},16,["type","disabled"]))}}),MH=bH,xH=t.defineComponent({__name:"PaginationPrev",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a;ke();const n=Ms(),o=t.computed(()=>n.page.value===1||n.disabled.value);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{"aria-label":"Previous Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&t.unref(n).onPageChange(t.unref(n).page.value-1))}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=t.createTextVNode("Prev page"))])]),_:3},16,["type","disabled"]))}}),wH=xH;const vH=[" ","Enter","ArrowUp","ArrowDown"],CH=[" ","Enter"],gt=10;function d1(a,e,n){return a===void 0?!1:Array.isArray(a)?a.some(o=>aI(o,e,n)):aI(a,e,n)}function aI(a,e,n){return a===void 0||e===void 0?!1:typeof a=="string"?a===e:typeof n=="function"?n(a,e):typeof n=="string"?(a==null?void 0:a[n])===(e==null?void 0:e[n]):cE(a,e)}function LH(a){return a==null||a===""||Array.isArray(a)&&a.length===0}const SH={key:0,value:""},[ga,JA]=st("SelectRoot");var IH=t.defineComponent({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(a,{emit:e}){const n=a,o=e,{required:r,disabled:i,multiple:s,dir:c}=t.toRefs(n),d=ks(n,"modelValue",o,{defaultValue:n.defaultValue??(s.value?[]:void 0),passive:n.modelValue===void 0,deep:!0}),h=ks(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0}),u=t.ref(),p=t.ref(),y=t.ref({x:0,y:0}),f=t.computed(()=>{var M;return s.value&&Array.isArray(d.value)?((M=d.value)==null?void 0:M.length)===0:RS(d.value)});bs({isProvider:!0});const k=EE(c),m=HE(u),g=t.ref(new Set),v=t.computed(()=>Array.from(g.value).map(M=>M.value).join(";"));function L(M){if(s.value){const C=Array.isArray(d.value)?[...d.value]:[],S=C.findIndex(b=>aI(b,M,n.by));S===-1?C.push(M):C.splice(S,1),d.value=[...C]}else d.value=M}function w(M){return Array.from(g.value).find(C=>d1(M,C.value,n.by))}return JA({triggerElement:u,onTriggerChange:M=>{u.value=M},valueElement:p,onValueElementChange:M=>{p.value=M},contentId:"",modelValue:d,onValueChange:L,by:n.by,open:h,multiple:s,required:r,onOpenChange:M=>{h.value=M},dir:k,triggerPointerDownPosRef:y,disabled:i,isEmptyModelValue:f,optionsSet:g,onOptionAdd:M=>{const C=w(M.value);C&&g.value.delete(C),g.value.add(M)},onOptionRemove:M=>{const C=w(M.value);C&&g.value.delete(C)}}),(M,C)=>(t.openBlock(),t.createBlock(t.unref(ZA),null,{default:t.withCtx(()=>[t.renderSlot(M.$slots,"default",{modelValue:t.unref(d),open:t.unref(h)}),t.unref(m)?(t.openBlock(),t.createBlock(BH,{key:v.value,"aria-hidden":"true",tabindex:"-1",multiple:t.unref(s),required:t.unref(r),name:M.name,autocomplete:M.autocomplete,disabled:t.unref(i),value:t.unref(d)},{default:t.withCtx(()=>[t.unref(RS)(t.unref(d))?(t.openBlock(),t.createElementBlock("option",SH)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Array.from(g.value),S=>(t.openBlock(),t.createElementBlock("option",t.mergeProps({key:S.value??""},{ref_for:!0},S),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):t.createCommentVNode("v-if",!0)]),_:3}))}}),_H=IH,AH=t.defineComponent({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(a){const e=a,n=t.ref(),o=ga();t.watch(()=>e.value,(i,s)=>{const c=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==s&&h&&n.value){const u=new Event("change",{bubbles:!0});h.call(n.value,i),n.value.dispatchEvent(u)}});function r(i){o.onValueChange(i.target.value)}return(i,s)=>(t.openBlock(),t.createBlock(t.unref(KA),{"as-child":""},{default:t.withCtx(()=>[t.createElementVNode("select",t.mergeProps({ref_key:"selectElement",ref:n},e,{onInput:r}),[t.renderSlot(i.$slots,"default")],16)]),_:3}))}}),BH=AH,VH=t.defineComponent({__name:"SelectPopperPosition",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1,default:gt},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=Ze(a);return(o,r)=>(t.openBlock(),t.createBlock(t.unref(QA),t.mergeProps(t.unref(n),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16))}}),zH=VH;const qH={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[Wi,eB]=st("SelectContent");var PH=t.defineComponent({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(a,{emit:e}){const n=a,o=e,r=ga();TE(),vA(n.bodyLock);const{CollectionSlot:i,getItems:s}=bs(),c=t.ref();IA(c);const{search:d,handleTypeaheadSearch:h}=_A(),u=t.ref(),p=t.ref(),y=t.ref(),f=t.ref(!1),k=t.ref(!1),m=t.ref(!1);function g(){p.value&&c.value&&HA([p.value,c.value])}t.watch(f,()=>{g()});const{onOpenChange:v,triggerPointerDownPosRef:L}=r;t.watchEffect(S=>{if(!c.value)return;let b={x:0,y:0};const x=V=>{var B,A;b={x:Math.abs(Math.round(V.pageX)-(((B=L.value)==null?void 0:B.x)??0)),y:Math.abs(Math.round(V.pageY)-(((A=L.value)==null?void 0:A.y)??0))}},I=V=>{var B;V.pointerType!=="touch"&&(b.x<=10&&b.y<=10?V.preventDefault():(B=c.value)!=null&&B.contains(V.target)||v(!1),document.removeEventListener("pointermove",x),L.value=null)};L.value!==null&&(document.addEventListener("pointermove",x),document.addEventListener("pointerup",I,{capture:!0,once:!0})),S(()=>{document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",I,{capture:!0})})});function w(S){const b=S.ctrlKey||S.altKey||S.metaKey;if(S.key==="Tab"&&S.preventDefault(),!b&&S.key.length===1&&h(S.key,s()),["ArrowUp","ArrowDown","Home","End"].includes(S.key)){let I=[...s().map(V=>V.ref)];if(["ArrowUp","End"].includes(S.key)&&(I=I.slice().reverse()),["ArrowUp","ArrowDown"].includes(S.key)){const V=S.target,B=I.indexOf(V);I=I.slice(B+1)}setTimeout(()=>HA(I)),S.preventDefault()}}const M=t.computed(()=>n.position==="popper"?n:{}),C=Ze(M.value);return eB({content:c,viewport:u,onViewportChange:S=>{u.value=S},itemRefCallback:(S,b,x)=>{const I=!k.value&&!x,V=d1(r.modelValue.value,b,r.by);if(r.multiple.value){if(m.value)return;(V||I)&&(p.value=S,V&&(m.value=!0))}else(V||I)&&(p.value=S);I&&(k.value=!0)},selectedItem:p,selectedItemText:y,onItemLeave:()=>{var S;(S=c.value)==null||S.focus()},itemTextRefCallback:(S,b,x)=>{const I=!k.value&&!x;(d1(r.modelValue.value,b,r.by)||I)&&(y.value=S)},focusSelectedItem:g,position:n.position,isPositioned:f,searchRef:d}),(S,b)=>(t.openBlock(),t.createBlock(t.unref(i),null,{default:t.withCtx(()=>[t.createVNode(t.unref(TA),{"as-child":"",onMountAutoFocus:b[6]||(b[6]=t.withModifiers(()=>{},["prevent"])),onUnmountAutoFocus:b[7]||(b[7]=x=>{var I;o("closeAutoFocus",x),!x.defaultPrevented&&((I=t.unref(r).triggerElement.value)==null||I.focus({preventScroll:!0}),x.preventDefault())})},{default:t.withCtx(()=>[t.createVNode(t.unref(YS),{"as-child":"","disable-outside-pointer-events":S.disableOutsidePointerEvents,onFocusOutside:b[2]||(b[2]=t.withModifiers(()=>{},["prevent"])),onDismiss:b[3]||(b[3]=x=>t.unref(r).onOpenChange(!1)),onEscapeKeyDown:b[4]||(b[4]=x=>o("escapeKeyDown",x)),onPointerDownOutside:b[5]||(b[5]=x=>o("pointerDownOutside",x))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.position==="popper"?zH:HH),t.mergeProps({...S.$attrs,...t.unref(C)},{id:t.unref(r).contentId,ref:x=>{const I=t.unref(Et)(x);I!=null&&I.hasAttribute("data-reka-popper-content-wrapper")?c.value=I.firstElementChild:c.value=I},role:"listbox","data-state":t.unref(r).open.value?"open":"closed",dir:t.unref(r).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:b[0]||(b[0]=t.withModifiers(()=>{},["prevent"])),onPlaced:b[1]||(b[1]=x=>f.value=!0),onKeydown:w}),{default:t.withCtx(()=>[t.renderSlot(S.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),DH=PH;const[nI,EH]=st("SelectItemAlignedPosition");var TH=t.defineComponent({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(a,{emit:e}){const n=a,o=e,{getItems:r}=bs(),i=ga(),s=Wi(),c=t.ref(!1),d=t.ref(!0),h=t.ref(),{forwardRef:u,currentElement:p}=ke(),{viewport:y,selectedItem:f,selectedItemText:k,focusSelectedItem:m}=s;function g(){if(i.triggerElement.value&&i.valueElement.value&&h.value&&p.value&&(y!=null&&y.value)&&(f!=null&&f.value)&&(k!=null&&k.value)){const w=i.triggerElement.value.getBoundingClientRect(),M=p.value.getBoundingClientRect(),C=i.valueElement.value.getBoundingClientRect(),S=k.value.getBoundingClientRect();if(i.dir.value!=="rtl"){const ue=S.left-M.left,ve=C.left-ue,le=w.left-ve,G=w.width+le,z=Math.max(G,M.width),W=window.innerWidth-gt,ee=fA(ve,gt,Math.max(gt,W-z));h.value.style.minWidth=`${G}px`,h.value.style.left=`${ee}px`}else{const ue=M.right-S.right,ve=window.innerWidth-C.right-ue,le=window.innerWidth-w.right-ve,G=w.width+le,z=Math.max(G,M.width),W=window.innerWidth-gt,ee=fA(ve,gt,Math.max(gt,W-z));h.value.style.minWidth=`${G}px`,h.value.style.right=`${ee}px`}const b=r().map(ue=>ue.ref),x=window.innerHeight-gt*2,I=y.value.scrollHeight,V=window.getComputedStyle(p.value),B=Number.parseInt(V.borderTopWidth,10),A=Number.parseInt(V.paddingTop,10),P=Number.parseInt(V.borderBottomWidth,10),D=Number.parseInt(V.paddingBottom,10),U=B+A+I+D+P,T=Math.min(f.value.offsetHeight*5,U),H=window.getComputedStyle(y.value),N=Number.parseInt(H.paddingTop,10),Q=Number.parseInt(H.paddingBottom,10),j=w.top+w.height/2-gt,F=x-j,R=f.value.offsetHeight/2,Z=f.value.offsetTop+R,J=B+A+Z,re=U-J;if(J<=j){const ue=f.value===b[b.length-1];h.value.style.bottom="0px";const ve=p.value.clientHeight-y.value.offsetTop-y.value.offsetHeight,le=Math.max(F,R+(ue?Q:0)+ve+P),G=J+le;h.value.style.height=`${G}px`}else{const ue=f.value===b[0];h.value.style.top="0px";const le=Math.max(j,B+y.value.offsetTop+(ue?N:0)+R)+re;h.value.style.height=`${le}px`,y.value.scrollTop=J-j+y.value.offsetTop}h.value.style.margin=`${gt}px 0`,h.value.style.minHeight=`${T}px`,h.value.style.maxHeight=`${x}px`,o("placed"),requestAnimationFrame(()=>c.value=!0)}}const v=t.ref("");t.onMounted(async()=>{await t.nextTick(),g(),p.value&&(v.value=window.getComputedStyle(p.value).zIndex)});function L(w){w&&d.value===!0&&(g(),m==null||m(),d.value=!1)}return VE(i.triggerElement,()=>{g()}),EH({contentWrapper:h,shouldExpandOnScrollRef:c,onScrollButtonChange:L}),(w,M)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"contentWrapperElement",ref:h,style:t.normalizeStyle({display:"flex",flexDirection:"column",position:"fixed",zIndex:v.value})},[t.createVNode(t.unref(we),t.mergeProps({ref:t.unref(u),style:{boxSizing:"border-box",maxHeight:"100%"}},{...w.$attrs,...n}),{default:t.withCtx(()=>[t.renderSlot(w.$slots,"default")]),_:3},16)],4))}}),HH=TH,jH=t.defineComponent({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(a){return JA(a.context),eB(qH),(n,o)=>t.renderSlot(n.$slots,"default")}}),OH=jH;const FH={key:1};var RH=t.defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(a,{emit:e}){const n=a,r=mt(n,e),i=ga(),s=t.ref();t.onMounted(()=>{s.value=new DocumentFragment});const c=t.ref(),d=t.computed(()=>n.forceMount||i.open.value),h=t.ref(d.value);return t.watch(d,()=>{setTimeout(()=>h.value=d.value)}),(u,p)=>{var y;return d.value||h.value||(y=c.value)!=null&&y.present?(t.openBlock(),t.createBlock(t.unref(CL),{key:0,ref_key:"presenceRef",ref:c,present:d.value},{default:t.withCtx(()=>[t.createVNode(DH,t.normalizeProps(t.guardReactiveProps({...t.unref(r),...u.$attrs})),{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default")]),_:3},16)]),_:3},8,["present"])):s.value?(t.openBlock(),t.createElementBlock("div",FH,[(t.openBlock(),t.createBlock(t.Teleport,{to:s.value},[t.createVNode(OH,{context:t.unref(i)},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):t.createCommentVNode("v-if",!0)}}}),NH=RH,$H=t.defineComponent({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){return(e,n)=>(t.openBlock(),t.createBlock(t.unref(we),{"aria-hidden":"true",as:e.as,"as-child":e.asChild},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[n[0]||(n[0]=t.createTextVNode("▼"))])]),_:3},8,["as","as-child"]))}}),UH=$H;const[tB,WH]=st("SelectItem");var GH=t.defineComponent({__name:"SelectItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(a,{emit:e}){const n=a,o=e,{disabled:r}=t.toRefs(n),i=ga(),s=Wi(),{forwardRef:c,currentElement:d}=ke(),{CollectionItem:h}=bs(),u=t.computed(()=>{var M;return d1((M=i.modelValue)==null?void 0:M.value,n.value,i.by)}),p=t.ref(!1),y=t.ref(n.textValue??""),f=gs(void 0,"reka-select-item-text"),k="select.select";async function m(M){if(M.defaultPrevented)return;const C={originalEvent:M,value:n.value};FS(k,g,C)}async function g(M){await t.nextTick(),o("select",M),!M.defaultPrevented&&(r.value||(i.onValueChange(n.value),i.multiple.value||i.onOpenChange(!1)))}async function v(M){var C,S;await t.nextTick(),!M.defaultPrevented&&(r.value?(C=s.onItemLeave)==null||C.call(s):(S=M.currentTarget)==null||S.focus({preventScroll:!0}))}async function L(M){var C;await t.nextTick(),!M.defaultPrevented&&M.currentTarget===at()&&((C=s.onItemLeave)==null||C.call(s))}async function w(M){var S;await t.nextTick(),!(M.defaultPrevented||((S=s.searchRef)==null?void 0:S.value)!==""&&M.key===" ")&&(CH.includes(M.key)&&m(M),M.key===" "&&M.preventDefault())}if(n.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return t.onMounted(()=>{d.value&&s.itemRefCallback(d.value,n.value,n.disabled)}),WH({value:n.value,disabled:r,textId:f,isSelected:u,onItemTextChange:M=>{y.value=((y.value||(M==null?void 0:M.textContent))??"").trim()}}),(M,C)=>(t.openBlock(),t.createBlock(t.unref(h),{value:{textValue:y.value}},{default:t.withCtx(()=>[t.createVNode(t.unref(we),{ref:t.unref(c),role:"option","aria-labelledby":t.unref(f),"data-highlighted":p.value?"":void 0,"aria-selected":u.value,"data-state":u.value?"checked":"unchecked","aria-disabled":t.unref(r)||void 0,"data-disabled":t.unref(r)?"":void 0,tabindex:t.unref(r)?void 0:-1,as:M.as,"as-child":M.asChild,onFocus:C[0]||(C[0]=S=>p.value=!0),onBlur:C[1]||(C[1]=S=>p.value=!1),onPointerup:m,onPointerdown:C[2]||(C[2]=S=>{S.currentTarget.focus({preventScroll:!0})}),onTouchend:C[3]||(C[3]=t.withModifiers(()=>{},["prevent","stop"])),onPointermove:v,onPointerleave:L,onKeydown:w},{default:t.withCtx(()=>[t.renderSlot(M.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),KH=GH,XH=t.defineComponent({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){const e=a,n=tB();return(o,r)=>t.unref(n).isSelected.value?(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps({key:0,"aria-hidden":"true"},e),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16)):t.createCommentVNode("v-if",!0)}}),ZH=XH,YH=t.defineComponent({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){const e=a,n=ga(),o=Wi(),r=tB(),{forwardRef:i,currentElement:s}=ke(),c=t.computed(()=>{var d,h;return{value:r.value,disabled:r.disabled.value,textContent:((d=s.value)==null?void 0:d.textContent)??((h=r.value)==null?void 0:h.toString())??""}});return t.onMounted(()=>{s.value&&(r.onItemTextChange(s.value),o.itemTextRefCallback(s.value,r.value,r.disabled.value),n.onOptionAdd(c.value))}),t.onUnmounted(()=>{n.onOptionRemove(c.value)}),(d,h)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps({id:t.unref(r).textId,ref:t.unref(i)},{...e,...d.$attrs}),{default:t.withCtx(()=>[t.renderSlot(d.$slots,"default")]),_:3},16,["id"]))}}),QH=YH,JH=t.defineComponent({__name:"SelectPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(eI),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),ej=JH,tj=t.defineComponent({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(a,{emit:e}){const n=e,{getItems:o}=bs(),r=Wi(),i=t.ref(null);function s(){i.value!==null&&(window.clearInterval(i.value),i.value=null)}t.watchEffect(()=>{const h=o().map(u=>u.ref).find(u=>u===at());h==null||h.scrollIntoView({block:"nearest"})});function c(){i.value===null&&(i.value=window.setInterval(()=>{n("autoScroll")},50))}function d(){var h;(h=r.onItemLeave)==null||h.call(r),i.value===null&&(i.value=window.setInterval(()=>{n("autoScroll")},50))}return t.onBeforeUnmount(()=>s()),(h,u)=>{var p;return t.openBlock(),t.createBlock(t.unref(we),t.mergeProps({"aria-hidden":"true",style:{flexShrink:0}},(p=h.$parent)==null?void 0:p.$props,{onPointerdown:c,onPointermove:d,onPointerleave:u[0]||(u[0]=()=>{s()})}),{default:t.withCtx(()=>[t.renderSlot(h.$slots,"default")]),_:3},16)}}}),aB=tj,aj=t.defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=Wi(),n=e.position==="item-aligned"?nI():void 0,{forwardRef:o,currentElement:r}=ke(),i=t.ref(!1);return t.watchEffect(s=>{var c,d;if((c=e.viewport)!=null&&c.value&&((d=e.isPositioned)!=null&&d.value)){let u=function(){const p=h.scrollHeight-h.clientHeight;i.value=Math.ceil(h.scrollTop)<p};const h=e.viewport.value;u(),h.addEventListener("scroll",u),s(()=>h.removeEventListener("scroll",u))}}),t.watch(r,()=>{r.value&&(n==null||n.onScrollButtonChange(r.value))}),(s,c)=>i.value?(t.openBlock(),t.createBlock(aB,{key:0,ref:t.unref(o),onAutoScroll:c[0]||(c[0]=()=>{const{viewport:d,selectedItem:h}=t.unref(e);d!=null&&d.value&&(h!=null&&h.value)&&(d.value.scrollTop=d.value.scrollTop+h.value.offsetHeight)})},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},512)):t.createCommentVNode("v-if",!0)}}),nj=aj,oj=t.defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=Wi(),n=e.position==="item-aligned"?nI():void 0,{forwardRef:o,currentElement:r}=ke(),i=t.ref(!1);return t.watchEffect(s=>{var c,d;if((c=e.viewport)!=null&&c.value&&((d=e.isPositioned)!=null&&d.value)){let u=function(){i.value=h.scrollTop>0};const h=e.viewport.value;u(),h.addEventListener("scroll",u),s(()=>h.removeEventListener("scroll",u))}}),t.watch(r,()=>{r.value&&(n==null||n.onScrollButtonChange(r.value))}),(s,c)=>i.value?(t.openBlock(),t.createBlock(aB,{key:0,ref:t.unref(o),onAutoScroll:c[0]||(c[0]=()=>{const{viewport:d,selectedItem:h}=t.unref(e);d!=null&&d.value&&(h!=null&&h.value)&&(d.value.scrollTop=d.value.scrollTop-h.value.offsetHeight)})},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},512)):t.createCommentVNode("v-if",!0)}}),rj=oj,ij=t.defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a,n=ga(),{forwardRef:o,currentElement:r}=ke(),i=t.computed(()=>{var y;return((y=n.disabled)==null?void 0:y.value)||e.disabled});n.contentId||(n.contentId=gs(void 0,"reka-select-content")),t.onMounted(()=>{n.onTriggerChange(r.value)});const{getItems:s}=bs(),{search:c,handleTypeaheadSearch:d,resetTypeahead:h}=_A();function u(){i.value||(n.onOpenChange(!0),h())}function p(y){u(),n.triggerPointerDownPosRef.value={x:Math.round(y.pageX),y:Math.round(y.pageY)}}return(y,f)=>(t.openBlock(),t.createBlock(t.unref(YA),{"as-child":"",reference:y.reference},{default:t.withCtx(()=>{var k,m,g,v;return[t.createVNode(t.unref(we),{ref:t.unref(o),role:"combobox",type:y.as==="button"?"button":void 0,"aria-controls":t.unref(n).contentId,"aria-expanded":t.unref(n).open.value||!1,"aria-required":(k=t.unref(n).required)==null?void 0:k.value,"aria-autocomplete":"none",disabled:i.value,dir:(m=t.unref(n))==null?void 0:m.dir.value,"data-state":(g=t.unref(n))!=null&&g.open.value?"open":"closed","data-disabled":i.value?"":void 0,"data-placeholder":t.unref(LH)((v=t.unref(n).modelValue)==null?void 0:v.value)?"":void 0,"as-child":y.asChild,as:y.as,onClick:f[0]||(f[0]=L=>{var w;(w=L==null?void 0:L.currentTarget)==null||w.focus()}),onPointerdown:f[1]||(f[1]=L=>{if(L.pointerType==="touch")return L.preventDefault();const w=L.target;w.hasPointerCapture(L.pointerId)&&w.releasePointerCapture(L.pointerId),L.button===0&&L.ctrlKey===!1&&(p(L),L.preventDefault())}),onPointerup:f[2]||(f[2]=t.withModifiers(L=>{L.pointerType==="touch"&&p(L)},["prevent"])),onKeydown:f[3]||(f[3]=L=>{const w=t.unref(c)!=="";!(L.ctrlKey||L.altKey||L.metaKey)&&L.key.length===1&&w&&L.key===" "||(t.unref(d)(L.key,t.unref(s)()),t.unref(vH).includes(L.key)&&(u(),L.preventDefault()))})},{default:t.withCtx(()=>[t.renderSlot(y.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3},8,["reference"]))}}),sj=ij,lj=t.defineComponent({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){const e=a,{forwardRef:n,currentElement:o}=ke(),r=ga();t.onMounted(()=>{r.valueElement=o});const i=t.computed(()=>{var u;let c=[];const d=Array.from(r.optionsSet.value),h=p=>d.find(y=>d1(p,y.value,r.by));return Array.isArray(r.modelValue.value)?c=r.modelValue.value.map(p=>{var y;return((y=h(p))==null?void 0:y.textContent)??""}):c=[((u=h(r.modelValue.value))==null?void 0:u.textContent)??""],c.filter(Boolean)}),s=t.computed(()=>i.value.length?i.value.join(", "):e.placeholder);return(c,d)=>(t.openBlock(),t.createBlock(t.unref(we),{ref:t.unref(n),as:c.as,"as-child":c.asChild,style:{pointerEvents:"none"},"data-placeholder":i.value.length?void 0:e.placeholder},{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default",{selectedLabel:i.value,modelValue:t.unref(r).modelValue.value},()=>[t.createTextVNode(t.toDisplayString(s.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),cj=lj,dj=t.defineComponent({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a,{nonce:n}=t.toRefs(e),o=tH(n),r=Wi(),i=r.position==="item-aligned"?nI():void 0,{forwardRef:s,currentElement:c}=ke();t.onMounted(()=>{r==null||r.onViewportChange(c.value)});const d=t.ref(0);function h(u){const p=u.currentTarget,{shouldExpandOnScrollRef:y,contentWrapper:f}=i??{};if(y!=null&&y.value&&(f!=null&&f.value)){const k=Math.abs(d.value-p.scrollTop);if(k>0){const m=window.innerHeight-gt*2,g=Number.parseFloat(f.value.style.minHeight),v=Number.parseFloat(f.value.style.height),L=Math.max(g,v);if(L<m){const w=L+k,M=Math.min(m,w),C=w-M;f.value.style.height=`${M}px`,f.value.style.bottom==="0px"&&(p.scrollTop=C>0?C:0,f.value.style.justifyContent="flex-end")}}}d.value=p.scrollTop}return(u,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(we),t.mergeProps({ref:t.unref(s),"data-reka-select-viewport":"",role:"presentation"},{...u.$attrs,...e},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:h}),{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default")]),_:3},16),t.createVNode(t.unref(we),{as:"style",nonce:t.unref(o)},{default:t.withCtx(()=>p[0]||(p[0]=[t.createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),hj=dj,uj=t.defineComponent({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a,n=["horizontal","vertical"];function o(c){return n.includes(c)}const r=t.computed(()=>o(e.orientation)?e.orientation:"horizontal"),i=t.computed(()=>r.value==="vertical"?e.orientation:void 0),s=t.computed(()=>e.decorative?{role:"none"}:{"aria-orientation":i.value,role:"separator"});return(c,d)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps({as:c.as,"as-child":c.asChild,"data-orientation":r.value},s.value),{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),pj=uj,yj=t.defineComponent({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(pj,t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),fj=yj;const[oI,kj]=st("TooltipProvider");var mj=t.defineComponent({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1}},setup(a){const e=a,{delayDuration:n,skipDelayDuration:o,disableHoverableContent:r,disableClosingTrigger:i,ignoreNonKeyboardFocus:s,disabled:c}=t.toRefs(e);ke();const d=t.ref(!0),h=t.ref(!1),{start:u,stop:p}=bA(()=>{d.value=!0},o,{immediate:!1});return kj({isOpenDelayed:d,delayDuration:n,onOpen(){p(),d.value=!1},onClose(){u()},isPointerInTransitRef:h,disableHoverableContent:r,disableClosingTrigger:i,disabled:c,ignoreNonKeyboardFocus:s}),(y,f)=>t.renderSlot(y.$slots,"default")}}),gj=mj;const nB="tooltip.open",[SL,bj]=st("TooltipRoot");var Mj=t.defineComponent({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(a,{emit:e}){const n=a,o=e;ke();const r=oI(),i=t.computed(()=>n.disableHoverableContent??r.disableHoverableContent.value),s=t.computed(()=>n.disableClosingTrigger??r.disableClosingTrigger.value),c=t.computed(()=>n.disabled??r.disabled.value),d=t.computed(()=>n.delayDuration??r.delayDuration.value),h=t.computed(()=>n.ignoreNonKeyboardFocus??r.ignoreNonKeyboardFocus.value),u=ks(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});t.watch(u,w=>{r.onClose&&(w?(r.onOpen(),document.dispatchEvent(new CustomEvent(nB))):r.onClose())});const p=t.ref(!1),y=t.ref(),f=t.computed(()=>u.value?p.value?"delayed-open":"instant-open":"closed"),{start:k,stop:m}=bA(()=>{p.value=!0,u.value=!0},d,{immediate:!1});function g(){m(),p.value=!1,u.value=!0}function v(){m(),u.value=!1}function L(){k()}return bj({contentId:"",open:u,stateAttribute:f,trigger:y,onTriggerChange(w){y.value=w},onTriggerEnter(){r.isOpenDelayed.value?L():g()},onTriggerLeave(){i.value?v():m()},onOpen:g,onClose:v,disableHoverableContent:i,disableClosingTrigger:s,disabled:c,ignoreNonKeyboardFocus:h}),(w,M)=>(t.openBlock(),t.createBlock(t.unref(ZA),null,{default:t.withCtx(()=>[t.renderSlot(w.$slots,"default",{open:t.unref(u)})]),_:3}))}}),xj=Mj,wj=t.defineComponent({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1,default:0},align:{type:null,required:!1,default:"center"},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:!0},collisionBoundary:{type:null,required:!1,default:()=>[]},collisionPadding:{type:[Number,Object],required:!1,default:0},arrowPadding:{type:Number,required:!1,default:0},sticky:{type:String,required:!1,default:"partial"},hideWhenDetached:{type:Boolean,required:!1,default:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(a,{emit:e}){const n=a,o=e,r=SL(),{forwardRef:i,currentElement:s}=ke(),c=t.computed(()=>{var h;return n.ariaLabel||((h=s.value)==null?void 0:h.textContent)}),d=t.computed(()=>{const{ariaLabel:h,...u}=n;return u});return t.onMounted(()=>{l1(window,"scroll",h=>{const u=h.target;u!=null&&u.contains(r.trigger.value)&&r.onClose()}),l1(window,nB,r.onClose)}),(h,u)=>(t.openBlock(),t.createBlock(t.unref(YS),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:u[0]||(u[0]=p=>o("escapeKeyDown",p)),onPointerDownOutside:u[1]||(u[1]=p=>{var y;t.unref(r).disableClosingTrigger.value&&((y=t.unref(r).trigger.value)!=null&&y.contains(p.target))&&p.preventDefault(),o("pointerDownOutside",p)}),onFocusOutside:u[2]||(u[2]=t.withModifiers(()=>{},["prevent"])),onDismiss:u[3]||(u[3]=p=>t.unref(r).onClose())},{default:t.withCtx(()=>[t.createVNode(t.unref(QA),t.mergeProps({ref:t.unref(i),"data-state":t.unref(r).stateAttribute.value},{...h.$attrs,...d.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:t.withCtx(()=>[t.renderSlot(h.$slots,"default"),t.createVNode(t.unref(KA),{id:t.unref(r).contentId,role:"tooltip"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),oB=wj,vj=t.defineComponent({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(a){const n=Ze(a),{forwardRef:o,currentElement:r}=ke(),{trigger:i,onClose:s}=SL(),c=oI(),{isPointerInTransit:d,onPointerExit:h}=jE(i,r);return c.isPointerInTransitRef=d,h(()=>{s()}),(u,p)=>(t.openBlock(),t.createBlock(oB,t.mergeProps({ref:t.unref(o)},t.unref(n)),{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default")]),_:3},16))}}),Cj=vj,Lj=t.defineComponent({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(a,{emit:e}){const n=a,o=e,r=SL(),i=mt(n,o),{forwardRef:s}=ke();return(c,d)=>(t.openBlock(),t.createBlock(t.unref(CL),{present:c.forceMount||t.unref(r).open.value},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(r).disableHoverableContent.value?oB:Cj),t.mergeProps({ref:t.unref(s)},t.unref(i)),{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Sj=Lj,Ij=t.defineComponent({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(eI),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),_j=Ij,Aj=t.defineComponent({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a,n=SL(),o=oI();n.contentId||(n.contentId=gs(void 0,"reka-tooltip-content"));const{forwardRef:r,currentElement:i}=ke(),s=t.ref(!1),c=t.ref(!1),d=t.computed(()=>n.disabled.value?{}:{click:m,focus:f,pointermove:p,pointerleave:y,pointerdown:u,blur:k});t.onMounted(()=>{n.onTriggerChange(i.value)});function h(){setTimeout(()=>{s.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),s.value=!0,document.addEventListener("pointerup",h,{once:!0})}function p(g){g.pointerType!=="touch"&&!c.value&&!o.isPointerInTransitRef.value&&(n.onTriggerEnter(),c.value=!0)}function y(){n.onTriggerLeave(),c.value=!1}function f(g){var v,L;s.value||n.ignoreNonKeyboardFocus.value&&!((L=(v=g.target).matches)!=null&&L.call(v,":focus-visible"))||n.onOpen()}function k(){n.onClose()}function m(){n.disableClosingTrigger.value||n.onClose()}return(g,v)=>(t.openBlock(),t.createBlock(t.unref(YA),{"as-child":"",reference:g.reference},{default:t.withCtx(()=>[t.createVNode(t.unref(we),t.mergeProps({ref:t.unref(r),"aria-describedby":t.unref(n).open.value?t.unref(n).contentId:void 0,"data-state":t.unref(n).stateAttribute.value,as:g.as,"as-child":e.asChild,"data-grace-area-trigger":""},t.toHandlers(d.value)),{default:t.withCtx(()=>[t.renderSlot(g.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),Bj=Aj;const Ee=t.defineComponent({__name:"Button",props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},asChild:{type:Boolean},as:{default:"button"}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(we),{as:a.as,"as-child":a.asChild,class:t.normalizeClass(t.unref(be)(t.unref(xs)({variant:a.variant,size:a.size}),e.class))},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),xs=i1("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",xs:"h-7 rounded px-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-8 w-8","icon-sm":"size-7","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),rB=t.defineComponent({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(a,{emit:e}){const r=mt(a,e);return(i,s)=>(t.openBlock(),t.createBlock(t.unref(xj),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16))}}),iB=t.defineComponent({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside"],setup(a,{emit:e}){const n=a,o=e,r=De(n,"class"),i=mt(r,o);return(s,c)=>(t.openBlock(),t.createBlock(t.unref(_j),null,{default:t.withCtx(()=>[t.createVNode(t.unref(Sj),t.mergeProps({...t.unref(i),...s.$attrs},{class:t.unref(be)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),sB=t.defineComponent({__name:"TooltipProvider",props:{delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(gj),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),lB=t.defineComponent({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(Bj),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),Vj={class:"relative z-10"},zj="font-medium transition-all duration-300 ease-in-out hover:-translate-y-0.5 hover:scale-[1.02] active:translate-y-0 active:scale-[0.98] shadow-[0_3px_0_0_rgba(0,0,0,0.12),0_12px_22px_-10px_rgba(0,0,0,0.35)] hover:shadow-[0_6px_20px_-4px_rgba(0,0,0,0.3),0_10px_40px_-10px_rgba(0,0,0,0.2)] active:shadow-[0_1px_0_0_rgba(0,0,0,0.2),0_4px_8px_-4px_rgba(0,0,0,0.35)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-60 disabled:cursor-not-allowed disabled:shadow-none disabled:translate-y-0 disabled:scale-100 relative overflow-hidden before:absolute before:inset-0 before:bg-white/20 before:translate-y-full before:transition-transform before:duration-300 hover:before:translate-y-0",qj=t.defineComponent({name:"DCodeButton",inheritAttrs:!1,__name:"DCodeButton",props:{icon:{},text:{default:""},variant:{default:"default"},size:{default:"default"},tooltip:{default:""},bgColor:{default:""},textColor:{default:""},borderColor:{default:""},rounded:{default:"lg"},borderStyle:{default:"solid"},disabled:{type:Boolean,default:!1},type:{default:"button"},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1}},setup(a){const e=t.useAttrs(),n=a,o=t.computed(()=>n.icon&&Gt[n.icon]||null),r=t.computed(()=>!!n.tooltip),i=t.computed(()=>n.visible??!0),s=t.computed(()=>{const R=String(n.variant||"default").toLowerCase();return R==="tonal"?"secondary":R==="elevated"?"default":R}),c=t.computed(()=>String(n.bgColor||"").toLowerCase()),d=t.computed(()=>String(n.type||"button").toLowerCase()),h=t.computed(()=>{const{class:R,...Z}=e;return Z}),u=t.computed(()=>be(e.class)),p=t.computed(()=>((u.value??"").match(/\b(?:w|h|min-w|min-h|max-w|max-h)-[^\s]+\b/g)??[]).join(" ")),y=t.computed(()=>n.size==="sm"?"h-9":n.size==="lg"?"h-11":n.size==="icon"?"h-10 w-10":"h-10"),f=t.computed(()=>n.size==="icon"?"":!n.text&&n.icon?"w-10":"w-28"),k=t.computed(()=>n.rounded?n.rounded.startsWith("rounded")?n.rounded:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"}[n.rounded]||`rounded-${n.rounded}`:""),m=t.computed(()=>!n.borderStyle||n.borderStyle==="solid"?"":{dashed:"border-2 border-dashed",dotted:"border-2 border-dotted",double:"border-4 border-double",none:"border-0 border-none"}[n.borderStyle]||""),g=t.computed(()=>be("inline-flex items-center justify-center bg-gray-200 dark:bg-gray-700 animate-pulse",k.value,y.value,f.value,p.value)),v=t.computed(()=>{const Z=(u.value??"").match(/\bbg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u);return Z?Z[0]:null}),L=t.computed(()=>{const Z=(u.value??"").match(/\bhover:bg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u);return Z?Z[0]:null}),w=t.computed(()=>!!v.value),M=t.computed(()=>/\bborder-/.test(u.value??"")),C=t.computed(()=>/\bhover:/.test(u.value??"")),S=t.computed(()=>{const R=u.value??"";return s.value!=="outline"?R:R.replaceAll(/\bbg-(?!gradient)[^\s]+\b/gu,"").replaceAll(/\bhover:bg-(?!gradient)[^\s]+\b/gu,"").replaceAll(/\s+/gu," ").trim()}),b=t.ref(null),x=R=>{const Z=R.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([0-9.]+))?\)/u);return Z?{r:Number(Z[1]),g:Number(Z[2]),b:Number(Z[3]),a:Z[4]?Number(Z[4]):1}:null},I=(R,Z)=>{const J=x(R);if(!J)return R;const re=de=>Math.max(0,Math.min(255,Math.round(de)));return`rgba(${re(J.r*(1-Z))}, ${re(J.g*(1-Z))}, ${re(J.b*(1-Z))}, ${J.a})`},V=R=>{if(globalThis.window===void 0)return null;const Z=document.createElement("div");Z.className=R,Z.style.position="absolute",Z.style.visibility="hidden",Z.style.pointerEvents="none",Z.style.width="1px",Z.style.height="1px",document.body.appendChild(Z);const J=globalThis.getComputedStyle(Z).backgroundColor;return Z.remove(),!J||J==="transparent"||J==="rgba(0, 0, 0, 0)"?null:J},B=[50,100,200,300,400,500,600,700,800,900,950],A=R=>{const Z=B.indexOf(R);return Z===-1?R:B[Math.min(B.length-1,Z+2)]},P=(R,Z)=>{const J=sE[R];if(!J)return null;if(typeof J=="string")return J;if(!Z)return null;const re=J[Z];return typeof re=="string"?re:null},D=(R,Z=!1)=>{if(!R)return null;const J=Z?/\bhover:bg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u:/\bbg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u,re=R.match(J);return re?{colorName:re[1],shade:re[2]?Number.parseInt(re[2],10):null}:null},U=()=>{const R=v.value;if(!R){b.value=null;return}const Z=D(R),J=Z==null?void 0:Z.colorName,re=(Z==null?void 0:Z.shade)??null,de=(J?P(J,re):null)??V(R);if(!de){b.value=null;return}let ue;const ve=D(L.value,!0),le=ve?P(ve.colorName,ve.shade??null):null;if(le)ue=le;else if(J&&re){const G=A(re);ue=P(J,G)??I(de,.2)}else ue=I(de,.2);b.value={"--btn-color":de,"--btn-color-hover":ue}};t.onMounted(()=>{U()}),t.watch([v,L],async()=>{await t.nextTick(),U()});const T=t.computed(()=>{const R=/\bdark:bg-/.test(u.value??"");return!w.value||s.value==="outline"||R?"":b.value?"dcode-btn--fill dcode-btn--fill-hover":C.value?"":"hover:brightness-90"}),H=t.computed(()=>{if(!w.value||s.value!=="outline")return"";const R=["dcode-btn--outline","dcode-btn--outline-hover"];return M.value||R.push("border"),!b.value&&!C.value&&R.push("hover:brightness-90"),R.join(" ")}),N=t.computed(()=>b.value??void 0),Q={primary:{bg:"bg-blue-600",text:"text-white",hover:"hover:bg-blue-700",border:"border-blue-600"},success:{bg:"bg-green-600",text:"text-white",hover:"hover:bg-green-700",border:"border-green-600"},warning:{bg:"bg-yellow-500",text:"text-white",hover:"hover:bg-yellow-600",border:"border-yellow-500"},danger:{bg:"bg-red-600",text:"text-white",hover:"hover:bg-red-700",border:"border-red-600"},info:{bg:"bg-cyan-600",text:"text-white",hover:"hover:bg-cyan-700",border:"border-cyan-600"},purple:{bg:"bg-purple-600",text:"text-white",hover:"hover:bg-purple-700",border:"border-purple-600"},pink:{bg:"bg-pink-600",text:"text-white",hover:"hover:bg-pink-700",border:"border-pink-600"},"gradient-blue":{bg:"bg-gradient-to-r from-blue-500 to-cyan-500",text:"text-white",hover:"hover:from-blue-600 hover:to-cyan-600"},"gradient-purple":{bg:"bg-gradient-to-r from-purple-500 to-pink-500",text:"text-white",hover:"hover:from-purple-600 hover:to-pink-600"},"gradient-sunset":{bg:"bg-gradient-to-r from-orange-500 to-red-500",text:"text-white",hover:"hover:from-orange-600 hover:to-red-600"},"gradient-emerald":{bg:"bg-gradient-to-r from-emerald-500 to-teal-500",text:"text-white",hover:"hover:from-emerald-600 hover:to-teal-600"},transparent:{bg:"bg-transparent",text:"text-inherit",hover:"hover:bg-gray-100/10 hover:text-inherit dark:hover:bg-gray-800/10 dark:hover:text-inherit",border:"border-current"}},j=t.computed(()=>{const R=[],Z=c.value?Q[c.value]:null;if(Z)R.push(Z.bg,Z.hover),R.push(n.textColor||Z.text),n.borderColor?R.push(n.borderColor):Z.border&&R.push(Z.border);else if(c.value&&R.push(c.value),n.textColor&&R.push(n.textColor),n.borderColor)R.push(n.borderColor);else if(c.value&&c.value.startsWith("bg-")){const J=c.value.replace(/^bg-/,"border-");J!==c.value&&R.push(J)}return R.join(" ")}),F=t.computed(()=>be(zj,k.value,m.value,S.value,T.value,H.value,j.value));return(R,Z)=>i.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.skeleton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(g.value),"aria-hidden":"true"},null,2)):(t.openBlock(),t.createBlock(t.unref(sB),{key:1,"delay-duration":0},{default:t.withCtx(()=>[r.value?(t.openBlock(),t.createBlock(t.unref(rB),{key:0},{default:t.withCtx(()=>[t.createVNode(t.unref(lB),{"as-child":""},{default:t.withCtx(()=>[t.createVNode(t.unref(Ee),t.mergeProps({variant:s.value,size:n.size,disabled:n.disabled,type:d.value,class:F.value,style:N.value},h.value),{default:t.withCtx(()=>[o.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{key:0,class:"h-[18px] w-[18px]"})):t.createCommentVNode("",!0),n.text?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(o.value?"ml-1":"")},t.toDisplayString(n.text),3)):t.createCommentVNode("",!0)]),_:1},16,["variant","size","disabled","type","class","style"])]),_:1}),t.createVNode(t.unref(iB),{side:"top","side-offset":8,class:"animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 px-3 py-2 rounded-lg text-sm font-medium shadow-xl border-0"},{default:t.withCtx(()=>[t.createElementVNode("span",Vj,t.toDisplayString(n.tooltip),1)]),_:1})]),_:1})):(t.openBlock(),t.createBlock(t.unref(Ee),t.mergeProps({key:1,variant:s.value,size:n.size,disabled:n.disabled,type:d.value,class:F.value,style:N.value},h.value),{default:t.withCtx(()=>[t.renderSlot(R.$slots,"default",{},()=>[o.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{key:0,class:"h-[18px] w-[18px]"})):t.createCommentVNode("",!0),n.text?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(o.value?"ml-1":"")},t.toDisplayString(n.text),3)):t.createCommentVNode("",!0)],!0)]),_:3},16,["variant","size","disabled","type","class","style"]))]),_:3}))],64)):t.createCommentVNode("",!0)}}),Xt=(a,e)=>{const n=a.__vccOpts||a;for(const[o,r]of e)n[o]=r;return n},ws=Xt(qj,[["__scopeId","data-v-bae48fba"]]),Pj={key:0,class:"flex items-center justify-between mb-4"},Dj={class:"flex flex-col gap-1"},Ej={key:0,class:"text-lg font-semibold text-neutral-900 dark:text-neutral-50 leading-tight"},Tj={key:1,class:"text-sm text-neutral-500 dark:text-neutral-400"},Hj={key:0,class:"flex items-center gap-2"},jj={class:"relative z-10"},Oj={key:1,class:"mt-6 pt-6 border-t border-neutral-200 dark:border-neutral-800"},Fj={name:"DCodeCard"},rI=t.defineComponent({...Fj,props:{level:{default:1},title:{},subtitle:{},shadow:{type:Boolean,default:!1},border:{type:Boolean,default:!0},padding:{default:"p-6"}},setup(a){const e=a,n=t.computed(()=>{switch(e.level){case 2:return"bg-neutral-50 dark:bg-neutral-800";case 3:return"bg-neutral-100 dark:bg-neutral-700";case 1:default:return"bg-white dark:bg-neutral-900"}});return(o,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["transition-shadow duration-300 dcode-card",[n.value,a.padding,{"shadow-md":a.shadow},{"border-transparent":!a.border},{"border-neutral-200 dark:border-neutral-800":a.border&&a.level===1},{"border-neutral-300 dark:border-neutral-700":a.border&&a.level!==1}]])},[a.title||o.$slots.header||o.$slots.actions?(t.openBlock(),t.createElementBlock("div",Pj,[t.createElementVNode("div",Dj,[t.renderSlot(o.$slots,"header",{},()=>[a.title?(t.openBlock(),t.createElementBlock("h3",Ej,t.toDisplayString(a.title),1)):t.createCommentVNode("",!0),a.subtitle?(t.openBlock(),t.createElementBlock("p",Tj,t.toDisplayString(a.subtitle),1)):t.createCommentVNode("",!0)])]),o.$slots.actions?(t.openBlock(),t.createElementBlock("div",Hj,[t.renderSlot(o.$slots,"actions")])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",jj,[t.renderSlot(o.$slots,"default")]),o.$slots.footer?(t.openBlock(),t.createElementBlock("div",Oj,[t.renderSlot(o.$slots,"footer")])):t.createCommentVNode("",!0)],2))}});/*!
|
|
8502
|
+
For more information, see https://www.reka-ui.com/docs/components/${n}`,c=`Warning: Missing \`Description\` or \`aria-describedby="undefined"\` for ${e}.`;t.onMounted(()=>{var u;document.getElementById(o)||console.warn(s);const h=(u=i.value)==null?void 0:u.getAttribute("aria-describedby");r&&h&&(document.getElementById(r)||console.warn(c))})}var wT={},vT=t.defineComponent({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:e}){const n=a,o=e,r=Tt(),{forwardRef:i,currentElement:s}=ke();return r.titleId||(r.titleId=gs(void 0,"reka-dialog-title")),r.descriptionId||(r.descriptionId=gs(void 0,"reka-dialog-description")),t.onMounted(()=>{r.contentElement=s,at()!==document.body&&(r.triggerElement.value=at())}),wT.NODE_ENV!=="production"&&xT({titleName:"DialogTitle",contentName:"DialogContent",componentLink:"dialog.html#title",titleId:r.titleId,descriptionId:r.descriptionId,contentElement:s}),(c,d)=>(t.openBlock(),t.createBlock(t.unref(HA),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:d[5]||(d[5]=h=>o("openAutoFocus",h)),onUnmountAutoFocus:d[6]||(d[6]=h=>o("closeAutoFocus",h))},{default:t.withCtx(()=>[t.createVNode(t.unref(YS),t.mergeProps({id:t.unref(r).contentId,ref:t.unref(i),as:c.as,"as-child":c.asChild,"disable-outside-pointer-events":c.disableOutsidePointerEvents,role:"dialog","aria-describedby":t.unref(r).descriptionId,"aria-labelledby":t.unref(r).titleId,"data-state":t.unref(gT)(t.unref(r).open.value)},c.$attrs,{onDismiss:d[0]||(d[0]=h=>t.unref(r).onOpenChange(!1)),onEscapeKeyDown:d[1]||(d[1]=h=>o("escapeKeyDown",h)),onFocusOutside:d[2]||(d[2]=h=>o("focusOutside",h)),onInteractOutside:d[3]||(d[3]=h=>o("interactOutside",h)),onPointerDownOutside:d[4]||(d[4]=h=>o("pointerDownOutside",h))}),{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),OA=vT,CT=t.defineComponent({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:e}){const n=a,o=e,r=Tt(),i=ML(o),{forwardRef:s,currentElement:c}=ke();return _A(c),(d,h)=>(t.openBlock(),t.createBlock(OA,t.mergeProps({...n,...t.unref(i)},{ref:t.unref(s),"trap-focus":t.unref(r).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:h[0]||(h[0]=u=>{var p;u.defaultPrevented||(u.preventDefault(),(p=t.unref(r).triggerElement.value)==null||p.focus())}),onPointerDownOutside:h[1]||(h[1]=u=>{const p=u.detail.originalEvent,y=p.button===0&&p.ctrlKey===!0;(p.button===2||y)&&u.preventDefault()}),onFocusOutside:h[2]||(h[2]=u=>{u.preventDefault()})}),{default:t.withCtx(()=>[t.renderSlot(d.$slots,"default")]),_:3},16,["trap-focus"]))}}),LT=CT,ST=t.defineComponent({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:e}){const n=a,r=ML(e);ke();const i=Tt(),s=t.ref(!1),c=t.ref(!1);return(d,h)=>(t.openBlock(),t.createBlock(OA,t.mergeProps({...n,...t.unref(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:h[0]||(h[0]=u=>{var p;u.defaultPrevented||(s.value||(p=t.unref(i).triggerElement.value)==null||p.focus(),u.preventDefault()),s.value=!1,c.value=!1}),onInteractOutside:h[1]||(h[1]=u=>{var f;u.defaultPrevented||(s.value=!0,u.detail.originalEvent.type==="pointerdown"&&(c.value=!0));const p=u.target;((f=t.unref(i).triggerElement.value)==null?void 0:f.contains(p))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.value&&u.preventDefault()})}),{default:t.withCtx(()=>[t.renderSlot(d.$slots,"default")]),_:3},16))}}),IT=ST,_T=t.defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:e}){const n=a,o=e,r=Tt(),i=ML(o),{forwardRef:s}=ke();return(c,d)=>(t.openBlock(),t.createBlock(t.unref(CL),{present:c.forceMount||t.unref(r).open.value},{default:t.withCtx(()=>[t.unref(r).modal.value?(t.openBlock(),t.createBlock(LT,t.mergeProps({key:0,ref:t.unref(s)},{...n,...t.unref(i),...c.$attrs}),{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:3},16)):(t.openBlock(),t.createBlock(IT,t.mergeProps({key:1,ref:t.unref(s)},{...n,...t.unref(i),...c.$attrs}),{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),FA=_T,AT=t.defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(a){const e=a;ke();const n=Tt();return(o,r)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{id:t.unref(n).descriptionId}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["id"]))}}),RA=AT,BT=t.defineComponent({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=Tt();return CA(!0),ke(),(n,o)=>(t.openBlock(),t.createBlock(t.unref(we),{as:n.as,"as-child":n.asChild,"data-state":t.unref(e).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),VT=BT,zT=t.defineComponent({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=Tt(),{forwardRef:n}=ke();return(o,r)=>{var i;return(i=t.unref(e))!=null&&i.modal.value?(t.openBlock(),t.createBlock(t.unref(CL),{key:0,present:o.forceMount||t.unref(e).open.value},{default:t.withCtx(()=>[t.createVNode(VT,t.mergeProps(o.$attrs,{ref:t.unref(n),as:o.as,"as-child":o.asChild}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):t.createCommentVNode("v-if",!0)}}}),NA=zT,qT=t.defineComponent({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(a){const e=xA();return(n,o)=>t.unref(e)||n.forceMount?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[t.renderSlot(n.$slots,"default")],8,["to","disabled","defer"])):t.createCommentVNode("v-if",!0)}}),eI=qT,PT=t.defineComponent({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(eI),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),$A=PT,DT=t.defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(a){const e=a,n=Tt();return ke(),(o,r)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{id:t.unref(n).titleId}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["id"]))}}),UA=DT,ET=t.defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a,n=Tt(),{forwardRef:o,currentElement:r}=ke();return n.contentId||(n.contentId=gs(void 0,"reka-dialog-content")),t.onMounted(()=>{n.triggerElement.value=r.value}),(i,s)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{ref:t.unref(o),type:i.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":t.unref(n).open.value||!1,"aria-controls":t.unref(n).open.value?t.unref(n).contentId:void 0,"data-state":t.unref(n).open.value?"open":"closed",onClick:t.unref(n).onOpenToggle}),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),TT=ET;const[WA,HT]=st("AvatarRoot");var jT=t.defineComponent({__name:"AvatarRoot",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){return ke(),HT({imageLoadingStatus:t.ref("idle")}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(we),{"as-child":e.asChild,as:e.as},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["as-child","as"]))}}),OT=jT,FT=t.defineComponent({__name:"AvatarFallback",props:{delayMs:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){const e=a,n=WA();ke();const o=t.ref(e.delayMs===void 0);return t.watchEffect(r=>{if(e.delayMs&<){const i=window.setTimeout(()=>{o.value=!0},e.delayMs);r(()=>{window.clearTimeout(i)})}}),(r,i)=>o.value&&t.unref(n).imageLoadingStatus.value!=="loaded"?(t.openBlock(),t.createBlock(t.unref(we),{key:0,"as-child":r.asChild,as:r.as},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3},8,["as-child","as"])):t.createCommentVNode("v-if",!0)}}),RT=FT;function GA(a,e){return a?e?(a.src!==e&&(a.src=e),a.complete&&a.naturalWidth>0?"loaded":"loading"):"error":"idle"}function NT(a,{referrerPolicy:e,crossOrigin:n}={}){const o=t.ref(!1),r=t.ref(null),i=t.computed(()=>o.value?(!r.value&<&&(r.value=new window.Image),r.value):null),s=t.ref(GA(i.value,a.value)),c=d=>()=>{o.value&&(s.value=d)};return t.onMounted(()=>{o.value=!0,t.watchEffect(d=>{const h=i.value;if(!h)return;s.value=GA(h,a.value);const u=c("loaded"),p=c("error");h.addEventListener("load",u),h.addEventListener("error",p),e!=null&&e.value&&(h.referrerPolicy=e.value),typeof(n==null?void 0:n.value)=="string"&&(h.crossOrigin=n.value),d(()=>{h.removeEventListener("load",u),h.removeEventListener("error",p)})})}),t.onUnmounted(()=>{o.value=!1}),s}var $T=t.defineComponent({__name:"AvatarImage",props:{src:{type:String,required:!0},referrerPolicy:{type:null,required:!1},crossOrigin:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"img"}},emits:["loadingStatusChange"],setup(a,{emit:e}){const n=a,o=e,{src:r,referrerPolicy:i,crossOrigin:s}=t.toRefs(n);ke();const c=WA(),d=NT(r,{referrerPolicy:i,crossOrigin:s});return t.watch(d,h=>{o("loadingStatusChange",h),h!=="idle"&&(c.imageLoadingStatus.value=h)},{immediate:!0}),(h,u)=>t.withDirectives((t.openBlock(),t.createBlock(t.unref(we),{role:"img","as-child":h.asChild,as:h.as,src:t.unref(r),referrerpolicy:t.unref(i),crossorigin:t.unref(s)},{default:t.withCtx(()=>[t.renderSlot(h.$slots,"default")]),_:3},8,["as-child","as","src","referrerpolicy","crossorigin"])),[[t.vShow,t.unref(d)==="loaded"]])}}),UT=$T;const KA="data-reka-collection-item";function bs(a={}){const{key:e="",isProvider:n=!1}=a,o=`${e}CollectionProvider`;let r;if(n){const u=t.ref(new Map);r={collectionRef:t.ref(),itemMap:u},t.provide(o,r)}else r=t.inject(o);const i=(u=!1)=>{const p=r.collectionRef.value;if(!p)return[];const y=Array.from(p.querySelectorAll(`[${KA}]`)),k=Array.from(r.itemMap.value.values()).sort((m,g)=>y.indexOf(m.ref)-y.indexOf(g.ref));return u?k:k.filter(m=>m.ref.dataset.disabled!=="")},s=t.defineComponent({name:"CollectionSlot",inheritAttrs:!1,setup(u,{slots:p,attrs:y}){const{primitiveElement:f,currentElement:k}=BA();return t.watch(k,()=>{r.collectionRef.value=k.value}),()=>t.h(ZS,{ref:f,...y},p)}}),c=t.defineComponent({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(u,{slots:p,attrs:y}){const{primitiveElement:f,currentElement:k}=BA();return t.watchEffect(m=>{if(k.value){const g=t.markRaw(k.value);r.itemMap.value.set(g,{ref:k.value,value:u.value}),m(()=>r.itemMap.value.delete(g))}}),()=>t.h(ZS,{...y,[KA]:"",ref:f},p)}}),d=t.computed(()=>Array.from(r.itemMap.value.values())),h=t.computed(()=>r.itemMap.value.size);return{getItems:i,reactiveItems:d,itemMapSize:h,CollectionSlot:s,CollectionItem:c}}var WT=t.defineComponent({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){return(e,n)=>(t.openBlock(),t.createBlock(t.unref(we),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature==="focusable"?"true":void 0,"data-hidden":e.feature==="fully-hidden"?"":void 0,tabindex:e.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),XA=WT;const[ZA,GT]=st("PopperRoot");var KT=t.defineComponent({inheritAttrs:!1,__name:"PopperRoot",setup(a){const e=t.ref();return GT({anchor:e,onAnchorChange:n=>e.value=n}),(n,o)=>t.renderSlot(n.$slots,"default")}}),YA=KT,XT=t.defineComponent({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a,{forwardRef:n,currentElement:o}=ke(),r=ZA();return t.watchPostEffect(()=>{r.onAnchorChange(e.reference??o.value)}),(i,s)=>(t.openBlock(),t.createBlock(t.unref(we),{ref:t.unref(n),as:i.as,"as-child":i.asChild},{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},8,["as","as-child"]))}}),QA=XT;function ZT(a){return a!==null}function YT(a){return{name:"transformOrigin",options:a,fn(e){var g,v,L;const{placement:n,rects:o,middlewareData:r}=e,s=((g=r.arrow)==null?void 0:g.centerOffset)!==0,c=s?0:a.arrowWidth,d=s?0:a.arrowHeight,[h,u]=tI(n),p={start:"0%",center:"50%",end:"100%"}[u],y=(((v=r.arrow)==null?void 0:v.x)??0)+c/2,f=(((L=r.arrow)==null?void 0:L.y)??0)+d/2;let k="",m="";return h==="bottom"?(k=s?p:`${y}px`,m=`${-d}px`):h==="top"?(k=s?p:`${y}px`,m=`${o.floating.height+d}px`):h==="right"?(k=`${-d}px`,m=s?p:`${f}px`):h==="left"&&(k=`${o.floating.width+d}px`,m=s?p:`${f}px`),{data:{x:k,y:m}}}}}function tI(a){const[e,n="center"]=a.split("-");return[e,n]}const QT={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[NQ,JT]=st("PopperContent");var eH=t.defineComponent({inheritAttrs:!1,__name:"PopperContent",props:t.mergeDefaults({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...QT}),emits:["placed"],setup(a,{emit:e}){const n=a,o=e,r=ZA(),{forwardRef:i,currentElement:s}=ke(),c=t.ref(),d=t.ref(),{width:h,height:u}=YE(d),p=t.computed(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),y=t.computed(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),f=t.computed(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),k=t.computed(()=>({padding:y.value,boundary:f.value.filter(ZT),altBoundary:f.value.length>0})),m=t.computed(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),g=dE(()=>[X1({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Ds({...k.value,...m.value}),n.avoidCollisions&&Z1({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?mP():void 0,...k.value}),!n.prioritizePosition&&n.avoidCollisions&&Ds({...k.value,...m.value}),Y1({...k.value,apply:({elements:A,rects:P,availableWidth:D,availableHeight:U})=>{const{width:T,height:H}=P.reference,N=A.floating.style;N.setProperty("--reka-popper-available-width",`${D}px`),N.setProperty("--reka-popper-available-height",`${U}px`),N.setProperty("--reka-popper-anchor-width",`${T}px`),N.setProperty("--reka-popper-anchor-height",`${H}px`)}}),d.value&&MP({element:d.value,padding:n.arrowPadding}),YT({arrowWidth:h.value,arrowHeight:u.value}),n.hideWhenDetached&&fP({strategy:"referenceHidden",...k.value})]),v=t.computed(()=>n.reference??r.anchor.value),{floatingStyles:L,placement:w,isPositioned:M,middlewareData:C}=Q1(v,c,{strategy:n.positionStrategy,placement:p,whileElementsMounted:(...A)=>K1(...A,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:g}),S=t.computed(()=>tI(w.value)[0]),b=t.computed(()=>tI(w.value)[1]);t.watchPostEffect(()=>{M.value&&o("placed")});const x=t.computed(()=>{var P;const A=((P=C.value.arrow)==null?void 0:P.centerOffset)!==0;return n.hideShiftedArrow&&A}),I=t.ref("");t.watchEffect(()=>{s.value&&(I.value=window.getComputedStyle(s.value).zIndex)});const V=t.computed(()=>{var A;return((A=C.value.arrow)==null?void 0:A.x)??0}),B=t.computed(()=>{var A;return((A=C.value.arrow)==null?void 0:A.y)??0});return JT({placedSide:S,onArrowChange:A=>d.value=A,arrowX:V,arrowY:B,shouldHideArrow:x}),(A,P)=>{var D,U,T;return t.openBlock(),t.createElementBlock("div",{ref_key:"floatingRef",ref:c,"data-reka-popper-content-wrapper":"",style:t.normalizeStyle({...t.unref(L),transform:t.unref(M)?t.unref(L).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:I.value,"--reka-popper-transform-origin":[(D=t.unref(C).transformOrigin)==null?void 0:D.x,(U=t.unref(C).transformOrigin)==null?void 0:U.y].join(" "),...((T=t.unref(C).hide)==null?void 0:T.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[t.createVNode(t.unref(we),t.mergeProps({ref:t.unref(i)},A.$attrs,{"as-child":n.asChild,as:A.as,"data-side":S.value,"data-align":b.value,style:{animation:t.unref(M)?void 0:"none"}}),{default:t.withCtx(()=>[t.renderSlot(A.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),JA=eH;function tH(a){const e=bL({nonce:t.ref()});return t.computed(()=>{var n;return(a==null?void 0:a.value)||((n=e.nonce)==null?void 0:n.value)})}var aH=t.defineComponent({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(a){const e=a;return ke(),(n,o)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{onMousedown:o[0]||(o[0]=r=>{!r.defaultPrevented&&r.detail>1&&r.preventDefault()})}),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),nH=aH,oH=t.defineComponent({__name:"PaginationEllipsis",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a;return ke(),(n,o)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{"data-type":"ellipsis"}),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default",{},()=>[o[0]||(o[0]=t.createTextVNode("…"))])]),_:3},16))}}),rH=oH;const[Ms,iH]=st("PaginationRoot");var sH=t.defineComponent({__name:"PaginationRoot",props:{page:{type:Number,required:!1},defaultPage:{type:Number,required:!1,default:1},itemsPerPage:{type:Number,required:!0},total:{type:Number,required:!1,default:0},siblingCount:{type:Number,required:!1,default:2},disabled:{type:Boolean,required:!1},showEdges:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"nav"}},emits:["update:page"],setup(a,{emit:e}){const n=a,o=e,{siblingCount:r,disabled:i,showEdges:s}=t.toRefs(n);ke();const c=ks(n,"page",o,{defaultValue:n.defaultPage,passive:n.page===void 0}),d=t.computed(()=>Math.max(1,Math.ceil(n.total/(n.itemsPerPage||1))));return iH({page:c,onPageChange(h){c.value=h},pageCount:d,siblingCount:r,disabled:i,showEdges:s}),(h,u)=>(t.openBlock(),t.createBlock(t.unref(we),{as:h.as,"as-child":h.asChild},{default:t.withCtx(()=>[t.renderSlot(h.$slots,"default",{page:t.unref(c),pageCount:d.value})]),_:3},8,["as","as-child"]))}}),lH=sH,cH=t.defineComponent({__name:"PaginationFirst",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a,n=Ms();ke();const o=t.computed(()=>n.page.value===1||n.disabled.value);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{"aria-label":"First Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&t.unref(n).onPageChange(1))}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=t.createTextVNode("First page"))])]),_:3},16,["type","disabled"]))}}),dH=cH,hH=t.defineComponent({__name:"PaginationLast",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a,n=Ms();ke();const o=t.computed(()=>n.page.value===n.pageCount.value||n.disabled.value);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{"aria-label":"Last Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&t.unref(n).onPageChange(t.unref(n).pageCount.value))}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=t.createTextVNode("Last page"))])]),_:3},16,["type","disabled"]))}}),uH=hH;function ma(a,e){const n=e-a+1;return Array.from({length:n},(o,r)=>r+a)}function pH(a){return a.map(e=>typeof e=="number"?{type:"page",value:e}:{type:"ellipsis"})}const LL="ellipsis";function yH(a,e,n,o){const i=e,s=Math.max(a-n,1),c=Math.min(a+n,i);if(o){const h=Math.min(2*n+5,e)-2,u=s>3&&Math.abs(i-h-1+1)>2&&Math.abs(s-1)>2,p=c<i-2&&Math.abs(i-h)>2&&Math.abs(i-c)>2;if(!u&&p)return[...ma(1,h),LL,i];if(u&&!p){const f=ma(i-h+1,i);return[1,LL,...f]}if(u&&p){const f=ma(s,c);return[1,LL,...f,LL,i]}return ma(1,i)}else{const d=n*2+1;return e<d?ma(1,i):a<=n+1?ma(1,d):e-a<=n?ma(e-d+1,i):ma(s,c)}}var fH=t.defineComponent({__name:"PaginationList",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a;ke();const n=Ms(),o=t.computed(()=>pH(yH(n.page.value,n.pageCount.value,n.siblingCount.value,n.showEdges.value)));return(r,i)=>(t.openBlock(),t.createBlock(t.unref(we),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{items:o.value})]),_:3},16))}}),kH=fH,mH=t.defineComponent({__name:"PaginationListItem",props:{value:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a;ke();const n=Ms(),o=t.computed(()=>n.page.value===e.value),r=t.computed(()=>n.disabled.value);return(i,s)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{"data-type":"page","aria-label":`Page ${i.value}`,"aria-current":o.value?"page":void 0,"data-selected":o.value?"true":void 0,disabled:r.value,type:i.as==="button"?"button":void 0,onClick:s[0]||(s[0]=c=>!r.value&&t.unref(n).onPageChange(i.value))}),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(i.value),1)])]),_:3},16,["aria-label","aria-current","data-selected","disabled","type"]))}}),gH=mH,bH=t.defineComponent({__name:"PaginationNext",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a;ke();const n=Ms(),o=t.computed(()=>n.page.value===n.pageCount.value||n.disabled.value);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{"aria-label":"Next Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&t.unref(n).onPageChange(t.unref(n).page.value+1))}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=t.createTextVNode("Next page"))])]),_:3},16,["type","disabled"]))}}),MH=bH,xH=t.defineComponent({__name:"PaginationPrev",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a;ke();const n=Ms(),o=t.computed(()=>n.page.value===1||n.disabled.value);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps(e,{"aria-label":"Previous Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&t.unref(n).onPageChange(t.unref(n).page.value-1))}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=t.createTextVNode("Prev page"))])]),_:3},16,["type","disabled"]))}}),wH=xH;const vH=[" ","Enter","ArrowUp","ArrowDown"],CH=[" ","Enter"],gt=10;function d1(a,e,n){return a===void 0?!1:Array.isArray(a)?a.some(o=>aI(o,e,n)):aI(a,e,n)}function aI(a,e,n){return a===void 0||e===void 0?!1:typeof a=="string"?a===e:typeof n=="function"?n(a,e):typeof n=="string"?(a==null?void 0:a[n])===(e==null?void 0:e[n]):cE(a,e)}function LH(a){return a==null||a===""||Array.isArray(a)&&a.length===0}const SH={key:0,value:""},[ga,eB]=st("SelectRoot");var IH=t.defineComponent({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(a,{emit:e}){const n=a,o=e,{required:r,disabled:i,multiple:s,dir:c}=t.toRefs(n),d=ks(n,"modelValue",o,{defaultValue:n.defaultValue??(s.value?[]:void 0),passive:n.modelValue===void 0,deep:!0}),h=ks(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0}),u=t.ref(),p=t.ref(),y=t.ref({x:0,y:0}),f=t.computed(()=>{var M;return s.value&&Array.isArray(d.value)?((M=d.value)==null?void 0:M.length)===0:RS(d.value)});bs({isProvider:!0});const k=EE(c),m=HE(u),g=t.ref(new Set),v=t.computed(()=>Array.from(g.value).map(M=>M.value).join(";"));function L(M){if(s.value){const C=Array.isArray(d.value)?[...d.value]:[],S=C.findIndex(b=>aI(b,M,n.by));S===-1?C.push(M):C.splice(S,1),d.value=[...C]}else d.value=M}function w(M){return Array.from(g.value).find(C=>d1(M,C.value,n.by))}return eB({triggerElement:u,onTriggerChange:M=>{u.value=M},valueElement:p,onValueElementChange:M=>{p.value=M},contentId:"",modelValue:d,onValueChange:L,by:n.by,open:h,multiple:s,required:r,onOpenChange:M=>{h.value=M},dir:k,triggerPointerDownPosRef:y,disabled:i,isEmptyModelValue:f,optionsSet:g,onOptionAdd:M=>{const C=w(M.value);C&&g.value.delete(C),g.value.add(M)},onOptionRemove:M=>{const C=w(M.value);C&&g.value.delete(C)}}),(M,C)=>(t.openBlock(),t.createBlock(t.unref(YA),null,{default:t.withCtx(()=>[t.renderSlot(M.$slots,"default",{modelValue:t.unref(d),open:t.unref(h)}),t.unref(m)?(t.openBlock(),t.createBlock(BH,{key:v.value,"aria-hidden":"true",tabindex:"-1",multiple:t.unref(s),required:t.unref(r),name:M.name,autocomplete:M.autocomplete,disabled:t.unref(i),value:t.unref(d)},{default:t.withCtx(()=>[t.unref(RS)(t.unref(d))?(t.openBlock(),t.createElementBlock("option",SH)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Array.from(g.value),S=>(t.openBlock(),t.createElementBlock("option",t.mergeProps({key:S.value??""},{ref_for:!0},S),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):t.createCommentVNode("v-if",!0)]),_:3}))}}),_H=IH,AH=t.defineComponent({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(a){const e=a,n=t.ref(),o=ga();t.watch(()=>e.value,(i,s)=>{const c=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==s&&h&&n.value){const u=new Event("change",{bubbles:!0});h.call(n.value,i),n.value.dispatchEvent(u)}});function r(i){o.onValueChange(i.target.value)}return(i,s)=>(t.openBlock(),t.createBlock(t.unref(XA),{"as-child":""},{default:t.withCtx(()=>[t.createElementVNode("select",t.mergeProps({ref_key:"selectElement",ref:n},e,{onInput:r}),[t.renderSlot(i.$slots,"default")],16)]),_:3}))}}),BH=AH,VH=t.defineComponent({__name:"SelectPopperPosition",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1,default:gt},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const n=Ze(a);return(o,r)=>(t.openBlock(),t.createBlock(t.unref(JA),t.mergeProps(t.unref(n),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16))}}),zH=VH;const qH={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[Wi,tB]=st("SelectContent");var PH=t.defineComponent({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(a,{emit:e}){const n=a,o=e,r=ga();TE(),CA(n.bodyLock);const{CollectionSlot:i,getItems:s}=bs(),c=t.ref();_A(c);const{search:d,handleTypeaheadSearch:h}=AA(),u=t.ref(),p=t.ref(),y=t.ref(),f=t.ref(!1),k=t.ref(!1),m=t.ref(!1);function g(){p.value&&c.value&&jA([p.value,c.value])}t.watch(f,()=>{g()});const{onOpenChange:v,triggerPointerDownPosRef:L}=r;t.watchEffect(S=>{if(!c.value)return;let b={x:0,y:0};const x=V=>{var B,A;b={x:Math.abs(Math.round(V.pageX)-(((B=L.value)==null?void 0:B.x)??0)),y:Math.abs(Math.round(V.pageY)-(((A=L.value)==null?void 0:A.y)??0))}},I=V=>{var B;V.pointerType!=="touch"&&(b.x<=10&&b.y<=10?V.preventDefault():(B=c.value)!=null&&B.contains(V.target)||v(!1),document.removeEventListener("pointermove",x),L.value=null)};L.value!==null&&(document.addEventListener("pointermove",x),document.addEventListener("pointerup",I,{capture:!0,once:!0})),S(()=>{document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",I,{capture:!0})})});function w(S){const b=S.ctrlKey||S.altKey||S.metaKey;if(S.key==="Tab"&&S.preventDefault(),!b&&S.key.length===1&&h(S.key,s()),["ArrowUp","ArrowDown","Home","End"].includes(S.key)){let I=[...s().map(V=>V.ref)];if(["ArrowUp","End"].includes(S.key)&&(I=I.slice().reverse()),["ArrowUp","ArrowDown"].includes(S.key)){const V=S.target,B=I.indexOf(V);I=I.slice(B+1)}setTimeout(()=>jA(I)),S.preventDefault()}}const M=t.computed(()=>n.position==="popper"?n:{}),C=Ze(M.value);return tB({content:c,viewport:u,onViewportChange:S=>{u.value=S},itemRefCallback:(S,b,x)=>{const I=!k.value&&!x,V=d1(r.modelValue.value,b,r.by);if(r.multiple.value){if(m.value)return;(V||I)&&(p.value=S,V&&(m.value=!0))}else(V||I)&&(p.value=S);I&&(k.value=!0)},selectedItem:p,selectedItemText:y,onItemLeave:()=>{var S;(S=c.value)==null||S.focus()},itemTextRefCallback:(S,b,x)=>{const I=!k.value&&!x;(d1(r.modelValue.value,b,r.by)||I)&&(y.value=S)},focusSelectedItem:g,position:n.position,isPositioned:f,searchRef:d}),(S,b)=>(t.openBlock(),t.createBlock(t.unref(i),null,{default:t.withCtx(()=>[t.createVNode(t.unref(HA),{"as-child":"",onMountAutoFocus:b[6]||(b[6]=t.withModifiers(()=>{},["prevent"])),onUnmountAutoFocus:b[7]||(b[7]=x=>{var I;o("closeAutoFocus",x),!x.defaultPrevented&&((I=t.unref(r).triggerElement.value)==null||I.focus({preventScroll:!0}),x.preventDefault())})},{default:t.withCtx(()=>[t.createVNode(t.unref(YS),{"as-child":"","disable-outside-pointer-events":S.disableOutsidePointerEvents,onFocusOutside:b[2]||(b[2]=t.withModifiers(()=>{},["prevent"])),onDismiss:b[3]||(b[3]=x=>t.unref(r).onOpenChange(!1)),onEscapeKeyDown:b[4]||(b[4]=x=>o("escapeKeyDown",x)),onPointerDownOutside:b[5]||(b[5]=x=>o("pointerDownOutside",x))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.position==="popper"?zH:HH),t.mergeProps({...S.$attrs,...t.unref(C)},{id:t.unref(r).contentId,ref:x=>{const I=t.unref(Et)(x);I!=null&&I.hasAttribute("data-reka-popper-content-wrapper")?c.value=I.firstElementChild:c.value=I},role:"listbox","data-state":t.unref(r).open.value?"open":"closed",dir:t.unref(r).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:b[0]||(b[0]=t.withModifiers(()=>{},["prevent"])),onPlaced:b[1]||(b[1]=x=>f.value=!0),onKeydown:w}),{default:t.withCtx(()=>[t.renderSlot(S.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),DH=PH;const[nI,EH]=st("SelectItemAlignedPosition");var TH=t.defineComponent({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(a,{emit:e}){const n=a,o=e,{getItems:r}=bs(),i=ga(),s=Wi(),c=t.ref(!1),d=t.ref(!0),h=t.ref(),{forwardRef:u,currentElement:p}=ke(),{viewport:y,selectedItem:f,selectedItemText:k,focusSelectedItem:m}=s;function g(){if(i.triggerElement.value&&i.valueElement.value&&h.value&&p.value&&(y!=null&&y.value)&&(f!=null&&f.value)&&(k!=null&&k.value)){const w=i.triggerElement.value.getBoundingClientRect(),M=p.value.getBoundingClientRect(),C=i.valueElement.value.getBoundingClientRect(),S=k.value.getBoundingClientRect();if(i.dir.value!=="rtl"){const ue=S.left-M.left,ve=C.left-ue,le=w.left-ve,G=w.width+le,z=Math.max(G,M.width),W=window.innerWidth-gt,ee=kA(ve,gt,Math.max(gt,W-z));h.value.style.minWidth=`${G}px`,h.value.style.left=`${ee}px`}else{const ue=M.right-S.right,ve=window.innerWidth-C.right-ue,le=window.innerWidth-w.right-ve,G=w.width+le,z=Math.max(G,M.width),W=window.innerWidth-gt,ee=kA(ve,gt,Math.max(gt,W-z));h.value.style.minWidth=`${G}px`,h.value.style.right=`${ee}px`}const b=r().map(ue=>ue.ref),x=window.innerHeight-gt*2,I=y.value.scrollHeight,V=window.getComputedStyle(p.value),B=Number.parseInt(V.borderTopWidth,10),A=Number.parseInt(V.paddingTop,10),P=Number.parseInt(V.borderBottomWidth,10),D=Number.parseInt(V.paddingBottom,10),U=B+A+I+D+P,T=Math.min(f.value.offsetHeight*5,U),H=window.getComputedStyle(y.value),N=Number.parseInt(H.paddingTop,10),Q=Number.parseInt(H.paddingBottom,10),j=w.top+w.height/2-gt,F=x-j,R=f.value.offsetHeight/2,Z=f.value.offsetTop+R,J=B+A+Z,re=U-J;if(J<=j){const ue=f.value===b[b.length-1];h.value.style.bottom="0px";const ve=p.value.clientHeight-y.value.offsetTop-y.value.offsetHeight,le=Math.max(F,R+(ue?Q:0)+ve+P),G=J+le;h.value.style.height=`${G}px`}else{const ue=f.value===b[0];h.value.style.top="0px";const le=Math.max(j,B+y.value.offsetTop+(ue?N:0)+R)+re;h.value.style.height=`${le}px`,y.value.scrollTop=J-j+y.value.offsetTop}h.value.style.margin=`${gt}px 0`,h.value.style.minHeight=`${T}px`,h.value.style.maxHeight=`${x}px`,o("placed"),requestAnimationFrame(()=>c.value=!0)}}const v=t.ref("");t.onMounted(async()=>{await t.nextTick(),g(),p.value&&(v.value=window.getComputedStyle(p.value).zIndex)});function L(w){w&&d.value===!0&&(g(),m==null||m(),d.value=!1)}return VE(i.triggerElement,()=>{g()}),EH({contentWrapper:h,shouldExpandOnScrollRef:c,onScrollButtonChange:L}),(w,M)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"contentWrapperElement",ref:h,style:t.normalizeStyle({display:"flex",flexDirection:"column",position:"fixed",zIndex:v.value})},[t.createVNode(t.unref(we),t.mergeProps({ref:t.unref(u),style:{boxSizing:"border-box",maxHeight:"100%"}},{...w.$attrs,...n}),{default:t.withCtx(()=>[t.renderSlot(w.$slots,"default")]),_:3},16)],4))}}),HH=TH,jH=t.defineComponent({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(a){return eB(a.context),tB(qH),(n,o)=>t.renderSlot(n.$slots,"default")}}),OH=jH;const FH={key:1};var RH=t.defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(a,{emit:e}){const n=a,r=mt(n,e),i=ga(),s=t.ref();t.onMounted(()=>{s.value=new DocumentFragment});const c=t.ref(),d=t.computed(()=>n.forceMount||i.open.value),h=t.ref(d.value);return t.watch(d,()=>{setTimeout(()=>h.value=d.value)}),(u,p)=>{var y;return d.value||h.value||(y=c.value)!=null&&y.present?(t.openBlock(),t.createBlock(t.unref(CL),{key:0,ref_key:"presenceRef",ref:c,present:d.value},{default:t.withCtx(()=>[t.createVNode(DH,t.normalizeProps(t.guardReactiveProps({...t.unref(r),...u.$attrs})),{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default")]),_:3},16)]),_:3},8,["present"])):s.value?(t.openBlock(),t.createElementBlock("div",FH,[(t.openBlock(),t.createBlock(t.Teleport,{to:s.value},[t.createVNode(OH,{context:t.unref(i)},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):t.createCommentVNode("v-if",!0)}}}),NH=RH,$H=t.defineComponent({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){return(e,n)=>(t.openBlock(),t.createBlock(t.unref(we),{"aria-hidden":"true",as:e.as,"as-child":e.asChild},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[n[0]||(n[0]=t.createTextVNode("▼"))])]),_:3},8,["as","as-child"]))}}),UH=$H;const[aB,WH]=st("SelectItem");var GH=t.defineComponent({__name:"SelectItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(a,{emit:e}){const n=a,o=e,{disabled:r}=t.toRefs(n),i=ga(),s=Wi(),{forwardRef:c,currentElement:d}=ke(),{CollectionItem:h}=bs(),u=t.computed(()=>{var M;return d1((M=i.modelValue)==null?void 0:M.value,n.value,i.by)}),p=t.ref(!1),y=t.ref(n.textValue??""),f=gs(void 0,"reka-select-item-text"),k="select.select";async function m(M){if(M.defaultPrevented)return;const C={originalEvent:M,value:n.value};FS(k,g,C)}async function g(M){await t.nextTick(),o("select",M),!M.defaultPrevented&&(r.value||(i.onValueChange(n.value),i.multiple.value||i.onOpenChange(!1)))}async function v(M){var C,S;await t.nextTick(),!M.defaultPrevented&&(r.value?(C=s.onItemLeave)==null||C.call(s):(S=M.currentTarget)==null||S.focus({preventScroll:!0}))}async function L(M){var C;await t.nextTick(),!M.defaultPrevented&&M.currentTarget===at()&&((C=s.onItemLeave)==null||C.call(s))}async function w(M){var S;await t.nextTick(),!(M.defaultPrevented||((S=s.searchRef)==null?void 0:S.value)!==""&&M.key===" ")&&(CH.includes(M.key)&&m(M),M.key===" "&&M.preventDefault())}if(n.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return t.onMounted(()=>{d.value&&s.itemRefCallback(d.value,n.value,n.disabled)}),WH({value:n.value,disabled:r,textId:f,isSelected:u,onItemTextChange:M=>{y.value=((y.value||(M==null?void 0:M.textContent))??"").trim()}}),(M,C)=>(t.openBlock(),t.createBlock(t.unref(h),{value:{textValue:y.value}},{default:t.withCtx(()=>[t.createVNode(t.unref(we),{ref:t.unref(c),role:"option","aria-labelledby":t.unref(f),"data-highlighted":p.value?"":void 0,"aria-selected":u.value,"data-state":u.value?"checked":"unchecked","aria-disabled":t.unref(r)||void 0,"data-disabled":t.unref(r)?"":void 0,tabindex:t.unref(r)?void 0:-1,as:M.as,"as-child":M.asChild,onFocus:C[0]||(C[0]=S=>p.value=!0),onBlur:C[1]||(C[1]=S=>p.value=!1),onPointerup:m,onPointerdown:C[2]||(C[2]=S=>{S.currentTarget.focus({preventScroll:!0})}),onTouchend:C[3]||(C[3]=t.withModifiers(()=>{},["prevent","stop"])),onPointermove:v,onPointerleave:L,onKeydown:w},{default:t.withCtx(()=>[t.renderSlot(M.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),KH=GH,XH=t.defineComponent({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){const e=a,n=aB();return(o,r)=>t.unref(n).isSelected.value?(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps({key:0,"aria-hidden":"true"},e),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16)):t.createCommentVNode("v-if",!0)}}),ZH=XH,YH=t.defineComponent({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){const e=a,n=ga(),o=Wi(),r=aB(),{forwardRef:i,currentElement:s}=ke(),c=t.computed(()=>{var d,h;return{value:r.value,disabled:r.disabled.value,textContent:((d=s.value)==null?void 0:d.textContent)??((h=r.value)==null?void 0:h.toString())??""}});return t.onMounted(()=>{s.value&&(r.onItemTextChange(s.value),o.itemTextRefCallback(s.value,r.value,r.disabled.value),n.onOptionAdd(c.value))}),t.onUnmounted(()=>{n.onOptionRemove(c.value)}),(d,h)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps({id:t.unref(r).textId,ref:t.unref(i)},{...e,...d.$attrs}),{default:t.withCtx(()=>[t.renderSlot(d.$slots,"default")]),_:3},16,["id"]))}}),QH=YH,JH=t.defineComponent({__name:"SelectPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(eI),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),ej=JH,tj=t.defineComponent({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(a,{emit:e}){const n=e,{getItems:o}=bs(),r=Wi(),i=t.ref(null);function s(){i.value!==null&&(window.clearInterval(i.value),i.value=null)}t.watchEffect(()=>{const h=o().map(u=>u.ref).find(u=>u===at());h==null||h.scrollIntoView({block:"nearest"})});function c(){i.value===null&&(i.value=window.setInterval(()=>{n("autoScroll")},50))}function d(){var h;(h=r.onItemLeave)==null||h.call(r),i.value===null&&(i.value=window.setInterval(()=>{n("autoScroll")},50))}return t.onBeforeUnmount(()=>s()),(h,u)=>{var p;return t.openBlock(),t.createBlock(t.unref(we),t.mergeProps({"aria-hidden":"true",style:{flexShrink:0}},(p=h.$parent)==null?void 0:p.$props,{onPointerdown:c,onPointermove:d,onPointerleave:u[0]||(u[0]=()=>{s()})}),{default:t.withCtx(()=>[t.renderSlot(h.$slots,"default")]),_:3},16)}}}),nB=tj,aj=t.defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=Wi(),n=e.position==="item-aligned"?nI():void 0,{forwardRef:o,currentElement:r}=ke(),i=t.ref(!1);return t.watchEffect(s=>{var c,d;if((c=e.viewport)!=null&&c.value&&((d=e.isPositioned)!=null&&d.value)){let u=function(){const p=h.scrollHeight-h.clientHeight;i.value=Math.ceil(h.scrollTop)<p};const h=e.viewport.value;u(),h.addEventListener("scroll",u),s(()=>h.removeEventListener("scroll",u))}}),t.watch(r,()=>{r.value&&(n==null||n.onScrollButtonChange(r.value))}),(s,c)=>i.value?(t.openBlock(),t.createBlock(nB,{key:0,ref:t.unref(o),onAutoScroll:c[0]||(c[0]=()=>{const{viewport:d,selectedItem:h}=t.unref(e);d!=null&&d.value&&(h!=null&&h.value)&&(d.value.scrollTop=d.value.scrollTop+h.value.offsetHeight)})},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},512)):t.createCommentVNode("v-if",!0)}}),nj=aj,oj=t.defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=Wi(),n=e.position==="item-aligned"?nI():void 0,{forwardRef:o,currentElement:r}=ke(),i=t.ref(!1);return t.watchEffect(s=>{var c,d;if((c=e.viewport)!=null&&c.value&&((d=e.isPositioned)!=null&&d.value)){let u=function(){i.value=h.scrollTop>0};const h=e.viewport.value;u(),h.addEventListener("scroll",u),s(()=>h.removeEventListener("scroll",u))}}),t.watch(r,()=>{r.value&&(n==null||n.onScrollButtonChange(r.value))}),(s,c)=>i.value?(t.openBlock(),t.createBlock(nB,{key:0,ref:t.unref(o),onAutoScroll:c[0]||(c[0]=()=>{const{viewport:d,selectedItem:h}=t.unref(e);d!=null&&d.value&&(h!=null&&h.value)&&(d.value.scrollTop=d.value.scrollTop-h.value.offsetHeight)})},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},512)):t.createCommentVNode("v-if",!0)}}),rj=oj,ij=t.defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a,n=ga(),{forwardRef:o,currentElement:r}=ke(),i=t.computed(()=>{var y;return((y=n.disabled)==null?void 0:y.value)||e.disabled});n.contentId||(n.contentId=gs(void 0,"reka-select-content")),t.onMounted(()=>{n.onTriggerChange(r.value)});const{getItems:s}=bs(),{search:c,handleTypeaheadSearch:d,resetTypeahead:h}=AA();function u(){i.value||(n.onOpenChange(!0),h())}function p(y){u(),n.triggerPointerDownPosRef.value={x:Math.round(y.pageX),y:Math.round(y.pageY)}}return(y,f)=>(t.openBlock(),t.createBlock(t.unref(QA),{"as-child":"",reference:y.reference},{default:t.withCtx(()=>{var k,m,g,v;return[t.createVNode(t.unref(we),{ref:t.unref(o),role:"combobox",type:y.as==="button"?"button":void 0,"aria-controls":t.unref(n).contentId,"aria-expanded":t.unref(n).open.value||!1,"aria-required":(k=t.unref(n).required)==null?void 0:k.value,"aria-autocomplete":"none",disabled:i.value,dir:(m=t.unref(n))==null?void 0:m.dir.value,"data-state":(g=t.unref(n))!=null&&g.open.value?"open":"closed","data-disabled":i.value?"":void 0,"data-placeholder":t.unref(LH)((v=t.unref(n).modelValue)==null?void 0:v.value)?"":void 0,"as-child":y.asChild,as:y.as,onClick:f[0]||(f[0]=L=>{var w;(w=L==null?void 0:L.currentTarget)==null||w.focus()}),onPointerdown:f[1]||(f[1]=L=>{if(L.pointerType==="touch")return L.preventDefault();const w=L.target;w.hasPointerCapture(L.pointerId)&&w.releasePointerCapture(L.pointerId),L.button===0&&L.ctrlKey===!1&&(p(L),L.preventDefault())}),onPointerup:f[2]||(f[2]=t.withModifiers(L=>{L.pointerType==="touch"&&p(L)},["prevent"])),onKeydown:f[3]||(f[3]=L=>{const w=t.unref(c)!=="";!(L.ctrlKey||L.altKey||L.metaKey)&&L.key.length===1&&w&&L.key===" "||(t.unref(d)(L.key,t.unref(s)()),t.unref(vH).includes(L.key)&&(u(),L.preventDefault()))})},{default:t.withCtx(()=>[t.renderSlot(y.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3},8,["reference"]))}}),sj=ij,lj=t.defineComponent({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){const e=a,{forwardRef:n,currentElement:o}=ke(),r=ga();t.onMounted(()=>{r.valueElement=o});const i=t.computed(()=>{var u;let c=[];const d=Array.from(r.optionsSet.value),h=p=>d.find(y=>d1(p,y.value,r.by));return Array.isArray(r.modelValue.value)?c=r.modelValue.value.map(p=>{var y;return((y=h(p))==null?void 0:y.textContent)??""}):c=[((u=h(r.modelValue.value))==null?void 0:u.textContent)??""],c.filter(Boolean)}),s=t.computed(()=>i.value.length?i.value.join(", "):e.placeholder);return(c,d)=>(t.openBlock(),t.createBlock(t.unref(we),{ref:t.unref(n),as:c.as,"as-child":c.asChild,style:{pointerEvents:"none"},"data-placeholder":i.value.length?void 0:e.placeholder},{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default",{selectedLabel:i.value,modelValue:t.unref(r).modelValue.value},()=>[t.createTextVNode(t.toDisplayString(s.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),cj=lj,dj=t.defineComponent({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a,{nonce:n}=t.toRefs(e),o=tH(n),r=Wi(),i=r.position==="item-aligned"?nI():void 0,{forwardRef:s,currentElement:c}=ke();t.onMounted(()=>{r==null||r.onViewportChange(c.value)});const d=t.ref(0);function h(u){const p=u.currentTarget,{shouldExpandOnScrollRef:y,contentWrapper:f}=i??{};if(y!=null&&y.value&&(f!=null&&f.value)){const k=Math.abs(d.value-p.scrollTop);if(k>0){const m=window.innerHeight-gt*2,g=Number.parseFloat(f.value.style.minHeight),v=Number.parseFloat(f.value.style.height),L=Math.max(g,v);if(L<m){const w=L+k,M=Math.min(m,w),C=w-M;f.value.style.height=`${M}px`,f.value.style.bottom==="0px"&&(p.scrollTop=C>0?C:0,f.value.style.justifyContent="flex-end")}}}d.value=p.scrollTop}return(u,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(we),t.mergeProps({ref:t.unref(s),"data-reka-select-viewport":"",role:"presentation"},{...u.$attrs,...e},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:h}),{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default")]),_:3},16),t.createVNode(t.unref(we),{as:"style",nonce:t.unref(o)},{default:t.withCtx(()=>p[0]||(p[0]=[t.createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),hj=dj,uj=t.defineComponent({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a,n=["horizontal","vertical"];function o(c){return n.includes(c)}const r=t.computed(()=>o(e.orientation)?e.orientation:"horizontal"),i=t.computed(()=>r.value==="vertical"?e.orientation:void 0),s=t.computed(()=>e.decorative?{role:"none"}:{"aria-orientation":i.value,role:"separator"});return(c,d)=>(t.openBlock(),t.createBlock(t.unref(we),t.mergeProps({as:c.as,"as-child":c.asChild,"data-orientation":r.value},s.value),{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),pj=uj,yj=t.defineComponent({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(pj,t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),fj=yj;const[oI,kj]=st("TooltipProvider");var mj=t.defineComponent({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1}},setup(a){const e=a,{delayDuration:n,skipDelayDuration:o,disableHoverableContent:r,disableClosingTrigger:i,ignoreNonKeyboardFocus:s,disabled:c}=t.toRefs(e);ke();const d=t.ref(!0),h=t.ref(!1),{start:u,stop:p}=MA(()=>{d.value=!0},o,{immediate:!1});return kj({isOpenDelayed:d,delayDuration:n,onOpen(){p(),d.value=!1},onClose(){u()},isPointerInTransitRef:h,disableHoverableContent:r,disableClosingTrigger:i,disabled:c,ignoreNonKeyboardFocus:s}),(y,f)=>t.renderSlot(y.$slots,"default")}}),gj=mj;const oB="tooltip.open",[SL,bj]=st("TooltipRoot");var Mj=t.defineComponent({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(a,{emit:e}){const n=a,o=e;ke();const r=oI(),i=t.computed(()=>n.disableHoverableContent??r.disableHoverableContent.value),s=t.computed(()=>n.disableClosingTrigger??r.disableClosingTrigger.value),c=t.computed(()=>n.disabled??r.disabled.value),d=t.computed(()=>n.delayDuration??r.delayDuration.value),h=t.computed(()=>n.ignoreNonKeyboardFocus??r.ignoreNonKeyboardFocus.value),u=ks(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});t.watch(u,w=>{r.onClose&&(w?(r.onOpen(),document.dispatchEvent(new CustomEvent(oB))):r.onClose())});const p=t.ref(!1),y=t.ref(),f=t.computed(()=>u.value?p.value?"delayed-open":"instant-open":"closed"),{start:k,stop:m}=MA(()=>{p.value=!0,u.value=!0},d,{immediate:!1});function g(){m(),p.value=!1,u.value=!0}function v(){m(),u.value=!1}function L(){k()}return bj({contentId:"",open:u,stateAttribute:f,trigger:y,onTriggerChange(w){y.value=w},onTriggerEnter(){r.isOpenDelayed.value?L():g()},onTriggerLeave(){i.value?v():m()},onOpen:g,onClose:v,disableHoverableContent:i,disableClosingTrigger:s,disabled:c,ignoreNonKeyboardFocus:h}),(w,M)=>(t.openBlock(),t.createBlock(t.unref(YA),null,{default:t.withCtx(()=>[t.renderSlot(w.$slots,"default",{open:t.unref(u)})]),_:3}))}}),xj=Mj,wj=t.defineComponent({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1,default:0},align:{type:null,required:!1,default:"center"},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:!0},collisionBoundary:{type:null,required:!1,default:()=>[]},collisionPadding:{type:[Number,Object],required:!1,default:0},arrowPadding:{type:Number,required:!1,default:0},sticky:{type:String,required:!1,default:"partial"},hideWhenDetached:{type:Boolean,required:!1,default:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(a,{emit:e}){const n=a,o=e,r=SL(),{forwardRef:i,currentElement:s}=ke(),c=t.computed(()=>{var h;return n.ariaLabel||((h=s.value)==null?void 0:h.textContent)}),d=t.computed(()=>{const{ariaLabel:h,...u}=n;return u});return t.onMounted(()=>{l1(window,"scroll",h=>{const u=h.target;u!=null&&u.contains(r.trigger.value)&&r.onClose()}),l1(window,oB,r.onClose)}),(h,u)=>(t.openBlock(),t.createBlock(t.unref(YS),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:u[0]||(u[0]=p=>o("escapeKeyDown",p)),onPointerDownOutside:u[1]||(u[1]=p=>{var y;t.unref(r).disableClosingTrigger.value&&((y=t.unref(r).trigger.value)!=null&&y.contains(p.target))&&p.preventDefault(),o("pointerDownOutside",p)}),onFocusOutside:u[2]||(u[2]=t.withModifiers(()=>{},["prevent"])),onDismiss:u[3]||(u[3]=p=>t.unref(r).onClose())},{default:t.withCtx(()=>[t.createVNode(t.unref(JA),t.mergeProps({ref:t.unref(i),"data-state":t.unref(r).stateAttribute.value},{...h.$attrs,...d.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:t.withCtx(()=>[t.renderSlot(h.$slots,"default"),t.createVNode(t.unref(XA),{id:t.unref(r).contentId,role:"tooltip"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),rB=wj,vj=t.defineComponent({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(a){const n=Ze(a),{forwardRef:o,currentElement:r}=ke(),{trigger:i,onClose:s}=SL(),c=oI(),{isPointerInTransit:d,onPointerExit:h}=jE(i,r);return c.isPointerInTransitRef=d,h(()=>{s()}),(u,p)=>(t.openBlock(),t.createBlock(rB,t.mergeProps({ref:t.unref(o)},t.unref(n)),{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default")]),_:3},16))}}),Cj=vj,Lj=t.defineComponent({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(a,{emit:e}){const n=a,o=e,r=SL(),i=mt(n,o),{forwardRef:s}=ke();return(c,d)=>(t.openBlock(),t.createBlock(t.unref(CL),{present:c.forceMount||t.unref(r).open.value},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(r).disableHoverableContent.value?rB:Cj),t.mergeProps({ref:t.unref(s)},t.unref(i)),{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Sj=Lj,Ij=t.defineComponent({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(eI),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),_j=Ij,Aj=t.defineComponent({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const e=a,n=SL(),o=oI();n.contentId||(n.contentId=gs(void 0,"reka-tooltip-content"));const{forwardRef:r,currentElement:i}=ke(),s=t.ref(!1),c=t.ref(!1),d=t.computed(()=>n.disabled.value?{}:{click:m,focus:f,pointermove:p,pointerleave:y,pointerdown:u,blur:k});t.onMounted(()=>{n.onTriggerChange(i.value)});function h(){setTimeout(()=>{s.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),s.value=!0,document.addEventListener("pointerup",h,{once:!0})}function p(g){g.pointerType!=="touch"&&!c.value&&!o.isPointerInTransitRef.value&&(n.onTriggerEnter(),c.value=!0)}function y(){n.onTriggerLeave(),c.value=!1}function f(g){var v,L;s.value||n.ignoreNonKeyboardFocus.value&&!((L=(v=g.target).matches)!=null&&L.call(v,":focus-visible"))||n.onOpen()}function k(){n.onClose()}function m(){n.disableClosingTrigger.value||n.onClose()}return(g,v)=>(t.openBlock(),t.createBlock(t.unref(QA),{"as-child":"",reference:g.reference},{default:t.withCtx(()=>[t.createVNode(t.unref(we),t.mergeProps({ref:t.unref(r),"aria-describedby":t.unref(n).open.value?t.unref(n).contentId:void 0,"data-state":t.unref(n).stateAttribute.value,as:g.as,"as-child":e.asChild,"data-grace-area-trigger":""},t.toHandlers(d.value)),{default:t.withCtx(()=>[t.renderSlot(g.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),Bj=Aj;const Ee=t.defineComponent({__name:"Button",props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},asChild:{type:Boolean},as:{default:"button"}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(we),{as:a.as,"as-child":a.asChild,class:t.normalizeClass(t.unref(be)(t.unref(xs)({variant:a.variant,size:a.size}),e.class))},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),xs=i1("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",xs:"h-7 rounded px-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-8 w-8","icon-sm":"size-7","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),iB=t.defineComponent({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(a,{emit:e}){const r=mt(a,e);return(i,s)=>(t.openBlock(),t.createBlock(t.unref(xj),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16))}}),sB=t.defineComponent({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside"],setup(a,{emit:e}){const n=a,o=e,r=De(n,"class"),i=mt(r,o);return(s,c)=>(t.openBlock(),t.createBlock(t.unref(_j),null,{default:t.withCtx(()=>[t.createVNode(t.unref(Sj),t.mergeProps({...t.unref(i),...s.$attrs},{class:t.unref(be)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),lB=t.defineComponent({__name:"TooltipProvider",props:{delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(gj),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),cB=t.defineComponent({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(Bj),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),Vj={class:"relative z-10"},zj="font-medium transition-all duration-300 ease-in-out hover:-translate-y-0.5 hover:scale-[1.02] active:translate-y-0 active:scale-[0.98] shadow-[0_3px_0_0_rgba(0,0,0,0.12),0_12px_22px_-10px_rgba(0,0,0,0.35)] hover:shadow-[0_6px_20px_-4px_rgba(0,0,0,0.3),0_10px_40px_-10px_rgba(0,0,0,0.2)] active:shadow-[0_1px_0_0_rgba(0,0,0,0.2),0_4px_8px_-4px_rgba(0,0,0,0.35)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-60 disabled:cursor-not-allowed disabled:shadow-none disabled:translate-y-0 disabled:scale-100 relative overflow-hidden before:absolute before:inset-0 before:bg-white/20 before:translate-y-full before:transition-transform before:duration-300 hover:before:translate-y-0",qj=t.defineComponent({name:"DCodeButton",inheritAttrs:!1,__name:"DCodeButton",props:{icon:{},text:{default:""},variant:{default:"default"},size:{default:"default"},tooltip:{default:""},bgColor:{default:""},textColor:{default:""},borderColor:{default:""},rounded:{default:"lg"},borderStyle:{default:"solid"},disabled:{type:Boolean,default:!1},type:{default:"button"},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1}},setup(a){const e=t.useAttrs(),n=a,o=t.computed(()=>n.icon&&Gt[n.icon]||null),r=t.computed(()=>!!n.tooltip),i=t.computed(()=>n.visible??!0),s=t.computed(()=>{const R=String(n.variant||"default").toLowerCase();return R==="tonal"?"secondary":R==="elevated"?"default":R}),c=t.computed(()=>String(n.bgColor||"").toLowerCase()),d=t.computed(()=>String(n.type||"button").toLowerCase()),h=t.computed(()=>{const{class:R,...Z}=e;return Z}),u=t.computed(()=>be(e.class)),p=t.computed(()=>((u.value??"").match(/\b(?:w|h|min-w|min-h|max-w|max-h)-[^\s]+\b/g)??[]).join(" ")),y=t.computed(()=>n.size==="sm"?"h-9":n.size==="lg"?"h-11":n.size==="icon"?"h-10 w-10":"h-10"),f=t.computed(()=>n.size==="icon"?"":!n.text&&n.icon?"w-10":"w-28"),k=t.computed(()=>n.rounded?n.rounded.startsWith("rounded")?n.rounded:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"}[n.rounded]||`rounded-${n.rounded}`:""),m=t.computed(()=>!n.borderStyle||n.borderStyle==="solid"?"":{dashed:"border-2 border-dashed",dotted:"border-2 border-dotted",double:"border-4 border-double",none:"border-0 border-none"}[n.borderStyle]||""),g=t.computed(()=>be("inline-flex items-center justify-center bg-gray-200 dark:bg-gray-700 animate-pulse",k.value,y.value,f.value,p.value)),v=t.computed(()=>{const Z=(u.value??"").match(/\bbg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u);return Z?Z[0]:null}),L=t.computed(()=>{const Z=(u.value??"").match(/\bhover:bg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u);return Z?Z[0]:null}),w=t.computed(()=>!!v.value),M=t.computed(()=>/\bborder-/.test(u.value??"")),C=t.computed(()=>/\bhover:/.test(u.value??"")),S=t.computed(()=>{const R=u.value??"";return s.value!=="outline"?R:R.replaceAll(/\bbg-(?!gradient)[^\s]+\b/gu,"").replaceAll(/\bhover:bg-(?!gradient)[^\s]+\b/gu,"").replaceAll(/\s+/gu," ").trim()}),b=t.ref(null),x=R=>{const Z=R.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([0-9.]+))?\)/u);return Z?{r:Number(Z[1]),g:Number(Z[2]),b:Number(Z[3]),a:Z[4]?Number(Z[4]):1}:null},I=(R,Z)=>{const J=x(R);if(!J)return R;const re=de=>Math.max(0,Math.min(255,Math.round(de)));return`rgba(${re(J.r*(1-Z))}, ${re(J.g*(1-Z))}, ${re(J.b*(1-Z))}, ${J.a})`},V=R=>{if(globalThis.window===void 0)return null;const Z=document.createElement("div");Z.className=R,Z.style.position="absolute",Z.style.visibility="hidden",Z.style.pointerEvents="none",Z.style.width="1px",Z.style.height="1px",document.body.appendChild(Z);const J=globalThis.getComputedStyle(Z).backgroundColor;return Z.remove(),!J||J==="transparent"||J==="rgba(0, 0, 0, 0)"?null:J},B=[50,100,200,300,400,500,600,700,800,900,950],A=R=>{const Z=B.indexOf(R);return Z===-1?R:B[Math.min(B.length-1,Z+2)]},P=(R,Z)=>{const J=sE[R];if(!J)return null;if(typeof J=="string")return J;if(!Z)return null;const re=J[Z];return typeof re=="string"?re:null},D=(R,Z=!1)=>{if(!R)return null;const J=Z?/\bhover:bg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u:/\bbg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u,re=R.match(J);return re?{colorName:re[1],shade:re[2]?Number.parseInt(re[2],10):null}:null},U=()=>{const R=v.value;if(!R){b.value=null;return}const Z=D(R),J=Z==null?void 0:Z.colorName,re=(Z==null?void 0:Z.shade)??null,de=(J?P(J,re):null)??V(R);if(!de){b.value=null;return}let ue;const ve=D(L.value,!0),le=ve?P(ve.colorName,ve.shade??null):null;if(le)ue=le;else if(J&&re){const G=A(re);ue=P(J,G)??I(de,.2)}else ue=I(de,.2);b.value={"--btn-color":de,"--btn-color-hover":ue}};t.onMounted(()=>{U()}),t.watch([v,L],async()=>{await t.nextTick(),U()});const T=t.computed(()=>{const R=/\bdark:bg-/.test(u.value??"");return!w.value||s.value==="outline"||R?"":b.value?"dcode-btn--fill dcode-btn--fill-hover":C.value?"":"hover:brightness-90"}),H=t.computed(()=>{if(!w.value||s.value!=="outline")return"";const R=["dcode-btn--outline","dcode-btn--outline-hover"];return M.value||R.push("border"),!b.value&&!C.value&&R.push("hover:brightness-90"),R.join(" ")}),N=t.computed(()=>b.value??void 0),Q={primary:{bg:"bg-blue-600",text:"text-white",hover:"hover:bg-blue-700",border:"border-blue-600"},success:{bg:"bg-green-600",text:"text-white",hover:"hover:bg-green-700",border:"border-green-600"},warning:{bg:"bg-yellow-500",text:"text-white",hover:"hover:bg-yellow-600",border:"border-yellow-500"},danger:{bg:"bg-red-600",text:"text-white",hover:"hover:bg-red-700",border:"border-red-600"},info:{bg:"bg-cyan-600",text:"text-white",hover:"hover:bg-cyan-700",border:"border-cyan-600"},purple:{bg:"bg-purple-600",text:"text-white",hover:"hover:bg-purple-700",border:"border-purple-600"},pink:{bg:"bg-pink-600",text:"text-white",hover:"hover:bg-pink-700",border:"border-pink-600"},"gradient-blue":{bg:"bg-gradient-to-r from-blue-500 to-cyan-500",text:"text-white",hover:"hover:from-blue-600 hover:to-cyan-600"},"gradient-purple":{bg:"bg-gradient-to-r from-purple-500 to-pink-500",text:"text-white",hover:"hover:from-purple-600 hover:to-pink-600"},"gradient-sunset":{bg:"bg-gradient-to-r from-orange-500 to-red-500",text:"text-white",hover:"hover:from-orange-600 hover:to-red-600"},"gradient-emerald":{bg:"bg-gradient-to-r from-emerald-500 to-teal-500",text:"text-white",hover:"hover:from-emerald-600 hover:to-teal-600"},transparent:{bg:"bg-transparent",text:"text-inherit",hover:"hover:bg-gray-100/10 hover:text-inherit dark:hover:bg-gray-800/10 dark:hover:text-inherit",border:"border-current"}},j=t.computed(()=>{const R=[],Z=c.value?Q[c.value]:null;if(Z)R.push(Z.bg,Z.hover),R.push(n.textColor||Z.text),n.borderColor?R.push(n.borderColor):Z.border&&R.push(Z.border);else if(c.value&&R.push(c.value),n.textColor&&R.push(n.textColor),n.borderColor)R.push(n.borderColor);else if(c.value&&c.value.startsWith("bg-")){const J=c.value.replace(/^bg-/,"border-");J!==c.value&&R.push(J)}return R.join(" ")}),F=t.computed(()=>be(zj,k.value,m.value,S.value,T.value,H.value,j.value));return(R,Z)=>i.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.skeleton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(g.value),"aria-hidden":"true"},null,2)):(t.openBlock(),t.createBlock(t.unref(lB),{key:1,"delay-duration":0},{default:t.withCtx(()=>[r.value?(t.openBlock(),t.createBlock(t.unref(iB),{key:0},{default:t.withCtx(()=>[t.createVNode(t.unref(cB),{"as-child":""},{default:t.withCtx(()=>[t.createVNode(t.unref(Ee),t.mergeProps({variant:s.value,size:n.size,disabled:n.disabled,type:d.value,class:F.value,style:N.value},h.value),{default:t.withCtx(()=>[o.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{key:0,class:"h-[18px] w-[18px]"})):t.createCommentVNode("",!0),n.text?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(o.value?"ml-1":"")},t.toDisplayString(n.text),3)):t.createCommentVNode("",!0)]),_:1},16,["variant","size","disabled","type","class","style"])]),_:1}),t.createVNode(t.unref(sB),{side:"top","side-offset":8,class:"animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 px-3 py-2 rounded-lg text-sm font-medium shadow-xl border-0"},{default:t.withCtx(()=>[t.createElementVNode("span",Vj,t.toDisplayString(n.tooltip),1)]),_:1})]),_:1})):(t.openBlock(),t.createBlock(t.unref(Ee),t.mergeProps({key:1,variant:s.value,size:n.size,disabled:n.disabled,type:d.value,class:F.value,style:N.value},h.value),{default:t.withCtx(()=>[t.renderSlot(R.$slots,"default",{},()=>[o.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{key:0,class:"h-[18px] w-[18px]"})):t.createCommentVNode("",!0),n.text?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(o.value?"ml-1":"")},t.toDisplayString(n.text),3)):t.createCommentVNode("",!0)],!0)]),_:3},16,["variant","size","disabled","type","class","style"]))]),_:3}))],64)):t.createCommentVNode("",!0)}}),Xt=(a,e)=>{const n=a.__vccOpts||a;for(const[o,r]of e)n[o]=r;return n},ws=Xt(qj,[["__scopeId","data-v-bae48fba"]]),Pj={key:0,class:"flex items-center justify-between mb-4"},Dj={class:"flex flex-col gap-1"},Ej={key:0,class:"text-lg font-semibold text-neutral-900 dark:text-neutral-50 leading-tight"},Tj={key:1,class:"text-sm text-neutral-500 dark:text-neutral-400"},Hj={key:0,class:"flex items-center gap-2"},jj={class:"relative z-10"},Oj={key:1,class:"mt-6 pt-6 border-t border-neutral-200 dark:border-neutral-800"},Fj={name:"DCodeCard"},rI=t.defineComponent({...Fj,props:{level:{default:1},title:{},subtitle:{},shadow:{type:Boolean,default:!1},border:{type:Boolean,default:!0},padding:{default:"p-6"}},setup(a){const e=a,n=t.computed(()=>{switch(e.level){case 2:return"bg-neutral-50 dark:bg-neutral-800";case 3:return"bg-neutral-100 dark:bg-neutral-700";case 1:default:return"bg-white dark:bg-neutral-900"}});return(o,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["transition-shadow duration-300 dcode-card",[n.value,a.padding,{"shadow-md":a.shadow},{"border-transparent":!a.border},{"border-neutral-200 dark:border-neutral-800":a.border&&a.level===1},{"border-neutral-300 dark:border-neutral-700":a.border&&a.level!==1}]])},[a.title||o.$slots.header||o.$slots.actions?(t.openBlock(),t.createElementBlock("div",Pj,[t.createElementVNode("div",Dj,[t.renderSlot(o.$slots,"header",{},()=>[a.title?(t.openBlock(),t.createElementBlock("h3",Ej,t.toDisplayString(a.title),1)):t.createCommentVNode("",!0),a.subtitle?(t.openBlock(),t.createElementBlock("p",Tj,t.toDisplayString(a.subtitle),1)):t.createCommentVNode("",!0)])]),o.$slots.actions?(t.openBlock(),t.createElementBlock("div",Hj,[t.renderSlot(o.$slots,"actions")])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",jj,[t.renderSlot(o.$slots,"default")]),o.$slots.footer?(t.openBlock(),t.createElementBlock("div",Oj,[t.renderSlot(o.$slots,"footer")])):t.createCommentVNode("",!0)],2))}});/*!
|
|
8503
8503
|
* @kurkle/color v0.3.4
|
|
8504
8504
|
* https://github.com/kurkle/color#readme
|
|
8505
8505
|
* (c) 2024 Jukka Kurkela
|
|
8506
8506
|
* Released under the MIT License
|
|
8507
|
-
*/function h1(a){return a+.5|0}const ba=(a,e,n)=>Math.max(Math.min(a,n),e);function u1(a){return ba(h1(a*2.55),0,255)}function Ma(a){return ba(h1(a*255),0,255)}function Zt(a){return ba(h1(a/2.55)/100,0,1)}function
|
|
8507
|
+
*/function h1(a){return a+.5|0}const ba=(a,e,n)=>Math.max(Math.min(a,n),e);function u1(a){return ba(h1(a*2.55),0,255)}function Ma(a){return ba(h1(a*255),0,255)}function Zt(a){return ba(h1(a/2.55)/100,0,1)}function dB(a){return ba(h1(a*100),0,100)}const dt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},iI=[..."0123456789ABCDEF"],Rj=a=>iI[a&15],Nj=a=>iI[(a&240)>>4]+iI[a&15],IL=a=>(a&240)>>4===(a&15),$j=a=>IL(a.r)&&IL(a.g)&&IL(a.b)&&IL(a.a);function Uj(a){var e=a.length,n;return a[0]==="#"&&(e===4||e===5?n={r:255&dt[a[1]]*17,g:255&dt[a[2]]*17,b:255&dt[a[3]]*17,a:e===5?dt[a[4]]*17:255}:(e===7||e===9)&&(n={r:dt[a[1]]<<4|dt[a[2]],g:dt[a[3]]<<4|dt[a[4]],b:dt[a[5]]<<4|dt[a[6]],a:e===9?dt[a[7]]<<4|dt[a[8]]:255})),n}const Wj=(a,e)=>a<255?e(a):"";function Gj(a){var e=$j(a)?Rj:Nj;return a?"#"+e(a.r)+e(a.g)+e(a.b)+Wj(a.a,e):void 0}const Kj=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function hB(a,e,n){const o=e*Math.min(n,1-n),r=(i,s=(i+a/30)%12)=>n-o*Math.max(Math.min(s-3,9-s,1),-1);return[r(0),r(8),r(4)]}function Xj(a,e,n){const o=(r,i=(r+a/60)%6)=>n-n*e*Math.max(Math.min(i,4-i,1),0);return[o(5),o(3),o(1)]}function Zj(a,e,n){const o=hB(a,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)o[r]*=1-e-n,o[r]+=e;return o}function Yj(a,e,n,o,r){return a===r?(e-n)/o+(e<n?6:0):e===r?(n-a)/o+2:(a-e)/o+4}function sI(a){const n=a.r/255,o=a.g/255,r=a.b/255,i=Math.max(n,o,r),s=Math.min(n,o,r),c=(i+s)/2;let d,h,u;return i!==s&&(u=i-s,h=c>.5?u/(2-i-s):u/(i+s),d=Yj(n,o,r,u,i),d=d*60+.5),[d|0,h||0,c]}function lI(a,e,n,o){return(Array.isArray(e)?a(e[0],e[1],e[2]):a(e,n,o)).map(Ma)}function cI(a,e,n){return lI(hB,a,e,n)}function Qj(a,e,n){return lI(Zj,a,e,n)}function Jj(a,e,n){return lI(Xj,a,e,n)}function uB(a){return(a%360+360)%360}function eO(a){const e=Kj.exec(a);let n=255,o;if(!e)return;e[5]!==o&&(n=e[6]?u1(+e[5]):Ma(+e[5]));const r=uB(+e[2]),i=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?o=Qj(r,i,s):e[1]==="hsv"?o=Jj(r,i,s):o=cI(r,i,s),{r:o[0],g:o[1],b:o[2],a:n}}function tO(a,e){var n=sI(a);n[0]=uB(n[0]+e),n=cI(n),a.r=n[0],a.g=n[1],a.b=n[2]}function aO(a){if(!a)return;const e=sI(a),n=e[0],o=dB(e[1]),r=dB(e[2]);return a.a<255?`hsla(${n}, ${o}%, ${r}%, ${Zt(a.a)})`:`hsl(${n}, ${o}%, ${r}%)`}const pB={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},yB={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function nO(){const a={},e=Object.keys(yB),n=Object.keys(pB);let o,r,i,s,c;for(o=0;o<e.length;o++){for(s=c=e[o],r=0;r<n.length;r++)i=n[r],c=c.replace(i,pB[i]);i=parseInt(yB[s],16),a[c]=[i>>16&255,i>>8&255,i&255]}return a}let _L;function oO(a){_L||(_L=nO(),_L.transparent=[0,0,0,0]);const e=_L[a.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const rO=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function iO(a){const e=rO.exec(a);let n=255,o,r,i;if(e){if(e[7]!==o){const s=+e[7];n=e[8]?u1(s):ba(s*255,0,255)}return o=+e[1],r=+e[3],i=+e[5],o=255&(e[2]?u1(o):ba(o,0,255)),r=255&(e[4]?u1(r):ba(r,0,255)),i=255&(e[6]?u1(i):ba(i,0,255)),{r:o,g:r,b:i,a:n}}}function sO(a){return a&&(a.a<255?`rgba(${a.r}, ${a.g}, ${a.b}, ${Zt(a.a)})`:`rgb(${a.r}, ${a.g}, ${a.b})`)}const dI=a=>a<=.0031308?a*12.92:Math.pow(a,1/2.4)*1.055-.055,vs=a=>a<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4);function lO(a,e,n){const o=vs(Zt(a.r)),r=vs(Zt(a.g)),i=vs(Zt(a.b));return{r:Ma(dI(o+n*(vs(Zt(e.r))-o))),g:Ma(dI(r+n*(vs(Zt(e.g))-r))),b:Ma(dI(i+n*(vs(Zt(e.b))-i))),a:a.a+n*(e.a-a.a)}}function AL(a,e,n){if(a){let o=sI(a);o[e]=Math.max(0,Math.min(o[e]+o[e]*n,e===0?360:1)),o=cI(o),a.r=o[0],a.g=o[1],a.b=o[2]}}function fB(a,e){return a&&Object.assign(e||{},a)}function kB(a){var e={r:0,g:0,b:0,a:255};return Array.isArray(a)?a.length>=3&&(e={r:a[0],g:a[1],b:a[2],a:255},a.length>3&&(e.a=Ma(a[3]))):(e=fB(a,{r:0,g:0,b:0,a:1}),e.a=Ma(e.a)),e}function cO(a){return a.charAt(0)==="r"?iO(a):eO(a)}class p1{constructor(e){if(e instanceof p1)return e;const n=typeof e;let o;n==="object"?o=kB(e):n==="string"&&(o=Uj(e)||oO(e)||cO(e)),this._rgb=o,this._valid=!!o}get valid(){return this._valid}get rgb(){var e=fB(this._rgb);return e&&(e.a=Zt(e.a)),e}set rgb(e){this._rgb=kB(e)}rgbString(){return this._valid?sO(this._rgb):void 0}hexString(){return this._valid?Gj(this._rgb):void 0}hslString(){return this._valid?aO(this._rgb):void 0}mix(e,n){if(e){const o=this.rgb,r=e.rgb;let i;const s=n===i?.5:n,c=2*s-1,d=o.a-r.a,h=((c*d===-1?c:(c+d)/(1+c*d))+1)/2;i=1-h,o.r=255&h*o.r+i*r.r+.5,o.g=255&h*o.g+i*r.g+.5,o.b=255&h*o.b+i*r.b+.5,o.a=s*o.a+(1-s)*r.a,this.rgb=o}return this}interpolate(e,n){return e&&(this._rgb=lO(this._rgb,e._rgb,n)),this}clone(){return new p1(this.rgb)}alpha(e){return this._rgb.a=Ma(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=h1(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return AL(this._rgb,2,e),this}darken(e){return AL(this._rgb,2,-e),this}saturate(e){return AL(this._rgb,1,e),this}desaturate(e){return AL(this._rgb,1,-e),this}rotate(e){return tO(this._rgb,e),this}}/*!
|
|
8508
8508
|
* Chart.js v4.5.1
|
|
8509
8509
|
* https://www.chartjs.org
|
|
8510
8510
|
* (c) 2025 Chart.js Contributors
|
|
8511
8511
|
* Released under the MIT License
|
|
8512
|
-
*/function Yt(){}const dO=(()=>{let a=0;return()=>a++})();function Ce(a){return a==null}function He(a){if(Array.isArray&&Array.isArray(a))return!0;const e=Object.prototype.toString.call(a);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function Me(a){return a!==null&&Object.prototype.toString.call(a)==="[object Object]"}function Re(a){return(typeof a=="number"||a instanceof Number)&&isFinite(+a)}function Ht(a,e){return Re(a)?a:e}function me(a,e){return typeof a>"u"?e:a}const hO=(a,e)=>typeof a=="string"&&a.endsWith("%")?parseFloat(a)/100:+a/e,kB=(a,e)=>typeof a=="string"&&a.endsWith("%")?parseFloat(a)/100*e:+a;function Ae(a,e,n){if(a&&typeof a.call=="function")return a.apply(n,e)}function Le(a,e,n,o){let r,i,s;if(He(a))for(i=a.length,r=0;r<i;r++)e.call(n,a[r],r);else if(Me(a))for(s=Object.keys(a),i=s.length,r=0;r<i;r++)e.call(n,a[s[r]],s[r])}function BL(a,e){let n,o,r,i;if(!a||!e||a.length!==e.length)return!1;for(n=0,o=a.length;n<o;++n)if(r=a[n],i=e[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function VL(a){if(He(a))return a.map(VL);if(Me(a)){const e=Object.create(null),n=Object.keys(a),o=n.length;let r=0;for(;r<o;++r)e[n[r]]=VL(a[n[r]]);return e}return a}function mB(a){return["__proto__","prototype","constructor"].indexOf(a)===-1}function uO(a,e,n,o){if(!mB(a))return;const r=e[a],i=n[a];Me(r)&&Me(i)?y1(r,i,o):e[a]=VL(i)}function y1(a,e,n){const o=He(e)?e:[e],r=o.length;if(!Me(a))return a;n=n||{};const i=n.merger||uO;let s;for(let c=0;c<r;++c){if(s=o[c],!Me(s))continue;const d=Object.keys(s);for(let h=0,u=d.length;h<u;++h)i(d[h],a,s,n)}return a}function f1(a,e){return y1(a,e,{merger:pO})}function pO(a,e,n){if(!mB(a))return;const o=e[a],r=n[a];Me(o)&&Me(r)?f1(o,r):Object.prototype.hasOwnProperty.call(e,a)||(e[a]=VL(r))}const gB={"":a=>a,x:a=>a.x,y:a=>a.y};function yO(a){const e=a.split("."),n=[];let o="";for(const r of e)o+=r,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}function fO(a){const e=yO(a);return n=>{for(const o of e){if(o==="")break;n=n&&n[o]}return n}}function Gi(a,e){return(gB[e]||(gB[e]=fO(e)))(a)}function hI(a){return a.charAt(0).toUpperCase()+a.slice(1)}const k1=a=>typeof a<"u",xa=a=>typeof a=="function",bB=(a,e)=>{if(a.size!==e.size)return!1;for(const n of a)if(!e.has(n))return!1;return!0};function kO(a){return a.type==="mouseup"||a.type==="click"||a.type==="contextmenu"}const Se=Math.PI,ze=2*Se,mO=ze+Se,zL=Number.POSITIVE_INFINITY,gO=Se/180,Oe=Se/2,Ki=Se/4,MB=Se*2/3,xB=Math.log10,jt=Math.sign;function m1(a,e,n){return Math.abs(a-e)<n}function wB(a){const e=Math.round(a);a=m1(a,e,a/1e3)?e:a;const n=Math.pow(10,Math.floor(xB(a))),o=a/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function bO(a){const e=[],n=Math.sqrt(a);let o;for(o=1;o<n;o++)a%o===0&&(e.push(o),e.push(a/o));return n===(n|0)&&e.push(n),e.sort((r,i)=>r-i).pop(),e}function MO(a){return typeof a=="symbol"||typeof a=="object"&&a!==null&&!(Symbol.toPrimitive in a||"toString"in a||"valueOf"in a)}function g1(a){return!MO(a)&&!isNaN(parseFloat(a))&&isFinite(a)}function xO(a,e){const n=Math.round(a);return n-e<=a&&n+e>=a}function wO(a,e,n){let o,r,i;for(o=0,r=a.length;o<r;o++)i=a[o][n],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function Qt(a){return a*(Se/180)}function vO(a){return a*(180/Se)}function vB(a){if(!Re(a))return;let e=1,n=0;for(;Math.round(a*e)/e!==a;)e*=10,n++;return n}function CB(a,e){const n=e.x-a.x,o=e.y-a.y,r=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i<-.5*Se&&(i+=ze),{angle:i,distance:r}}function uI(a,e){return Math.sqrt(Math.pow(e.x-a.x,2)+Math.pow(e.y-a.y,2))}function CO(a,e){return(a-e+mO)%ze-Se}function nt(a){return(a%ze+ze)%ze}function b1(a,e,n,o){const r=nt(a),i=nt(e),s=nt(n),c=nt(i-r),d=nt(s-r),h=nt(r-i),u=nt(r-s);return r===i||r===s||o&&i===s||c>d&&h<u}function Ne(a,e,n){return Math.max(e,Math.min(n,a))}function LO(a){return Ne(a,-32768,32767)}function Jt(a,e,n,o=1e-6){return a>=Math.min(e,n)-o&&a<=Math.max(e,n)+o}function pI(a,e,n){n=n||(s=>a[s]<e);let o=a.length-1,r=0,i;for(;o-r>1;)i=r+o>>1,n(i)?r=i:o=i;return{lo:r,hi:o}}const Xi=(a,e,n,o)=>pI(a,n,o?r=>{const i=a[r][e];return i<n||i===n&&a[r+1][e]===n}:r=>a[r][e]<n),SO=(a,e,n)=>pI(a,n,o=>a[o][e]>=n);function IO(a,e,n){let o=0,r=a.length;for(;o<r&&a[o]<e;)o++;for(;r>o&&a[r-1]>n;)r--;return o>0||r<a.length?a.slice(o,r):a}const LB=["push","pop","shift","splice","unshift"];function _O(a,e){if(a._chartjs){a._chartjs.listeners.push(e);return}Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),LB.forEach(n=>{const o="_onData"+hI(n),r=a[n];Object.defineProperty(a,n,{configurable:!0,enumerable:!1,value(...i){const s=r.apply(this,i);return a._chartjs.listeners.forEach(c=>{typeof c[o]=="function"&&c[o](...i)}),s}})})}function SB(a,e){const n=a._chartjs;if(!n)return;const o=n.listeners,r=o.indexOf(e);r!==-1&&o.splice(r,1),!(o.length>0)&&(LB.forEach(i=>{delete a[i]}),delete a._chartjs)}function IB(a){const e=new Set(a);return e.size===a.length?a:Array.from(e)}const _B=(function(){return typeof window>"u"?function(a){return a()}:window.requestAnimationFrame})();function AB(a,e){let n=[],o=!1;return function(...r){n=r,o||(o=!0,_B.call(window,()=>{o=!1,a.apply(e,n)}))}}function AO(a,e){let n;return function(...o){return e?(clearTimeout(n),n=setTimeout(a,e,o)):a.apply(this,o),e}}const yI=a=>a==="start"?"left":a==="end"?"right":"center",$e=(a,e,n)=>a==="start"?e:a==="end"?n:(e+n)/2,BO=(a,e,n,o)=>a===(o?"left":"right")?n:a==="center"?(e+n)/2:e;function VO(a,e,n){const o=e.length;let r=0,i=o;if(a._sorted){const{iScale:s,vScale:c,_parsed:d}=a,h=a.dataset&&a.dataset.options?a.dataset.options.spanGaps:null,u=s.axis,{min:p,max:y,minDefined:f,maxDefined:k}=s.getUserBounds();if(f){if(r=Math.min(Xi(d,u,p).lo,n?o:Xi(e,u,s.getPixelForValue(p)).lo),h){const m=d.slice(0,r+1).reverse().findIndex(g=>!Ce(g[c.axis]));r-=Math.max(0,m)}r=Ne(r,0,o-1)}if(k){let m=Math.max(Xi(d,s.axis,y,!0).hi+1,n?0:Xi(e,u,s.getPixelForValue(y),!0).hi+1);if(h){const g=d.slice(m-1).findIndex(v=>!Ce(v[c.axis]));m+=Math.max(0,g)}i=Ne(m,r,o)-r}else i=o-r}return{start:r,count:i}}function zO(a){const{xScale:e,yScale:n,_scaleRanges:o}=a,r={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!o)return a._scaleRanges=r,!0;const i=o.xmin!==e.min||o.xmax!==e.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,r),i}const qL=a=>a===0||a===1,BB=(a,e,n)=>-(Math.pow(2,10*(a-=1))*Math.sin((a-e)*ze/n)),VB=(a,e,n)=>Math.pow(2,-10*a)*Math.sin((a-e)*ze/n)+1,M1={linear:a=>a,easeInQuad:a=>a*a,easeOutQuad:a=>-a*(a-2),easeInOutQuad:a=>(a/=.5)<1?.5*a*a:-.5*(--a*(a-2)-1),easeInCubic:a=>a*a*a,easeOutCubic:a=>(a-=1)*a*a+1,easeInOutCubic:a=>(a/=.5)<1?.5*a*a*a:.5*((a-=2)*a*a+2),easeInQuart:a=>a*a*a*a,easeOutQuart:a=>-((a-=1)*a*a*a-1),easeInOutQuart:a=>(a/=.5)<1?.5*a*a*a*a:-.5*((a-=2)*a*a*a-2),easeInQuint:a=>a*a*a*a*a,easeOutQuint:a=>(a-=1)*a*a*a*a+1,easeInOutQuint:a=>(a/=.5)<1?.5*a*a*a*a*a:.5*((a-=2)*a*a*a*a+2),easeInSine:a=>-Math.cos(a*Oe)+1,easeOutSine:a=>Math.sin(a*Oe),easeInOutSine:a=>-.5*(Math.cos(Se*a)-1),easeInExpo:a=>a===0?0:Math.pow(2,10*(a-1)),easeOutExpo:a=>a===1?1:-Math.pow(2,-10*a)+1,easeInOutExpo:a=>qL(a)?a:a<.5?.5*Math.pow(2,10*(a*2-1)):.5*(-Math.pow(2,-10*(a*2-1))+2),easeInCirc:a=>a>=1?a:-(Math.sqrt(1-a*a)-1),easeOutCirc:a=>Math.sqrt(1-(a-=1)*a),easeInOutCirc:a=>(a/=.5)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1),easeInElastic:a=>qL(a)?a:BB(a,.075,.3),easeOutElastic:a=>qL(a)?a:VB(a,.075,.3),easeInOutElastic(a){return qL(a)?a:a<.5?.5*BB(a*2,.1125,.45):.5+.5*VB(a*2-1,.1125,.45)},easeInBack(a){return a*a*((1.70158+1)*a-1.70158)},easeOutBack(a){return(a-=1)*a*((1.70158+1)*a+1.70158)+1},easeInOutBack(a){let e=1.70158;return(a/=.5)<1?.5*(a*a*(((e*=1.525)+1)*a-e)):.5*((a-=2)*a*(((e*=1.525)+1)*a+e)+2)},easeInBounce:a=>1-M1.easeOutBounce(1-a),easeOutBounce(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},easeInOutBounce:a=>a<.5?M1.easeInBounce(a*2)*.5:M1.easeOutBounce(a*2-1)*.5+.5};function fI(a){if(a&&typeof a=="object"){const e=a.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function zB(a){return fI(a)?a:new p1(a)}function kI(a){return fI(a)?a:new p1(a).saturate(.5).darken(.1).hexString()}const qO=["x","y","borderWidth","radius","tension"],PO=["color","borderColor","backgroundColor"];function DO(a){a.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),a.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),a.set("animations",{colors:{type:"color",properties:PO},numbers:{type:"number",properties:qO}}),a.describe("animations",{_fallback:"animation"}),a.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function EO(a){a.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const qB=new Map;function TO(a,e){e=e||{};const n=a+JSON.stringify(e);let o=qB.get(n);return o||(o=new Intl.NumberFormat(a,e),qB.set(n,o)),o}function mI(a,e,n){return TO(e,n).format(a)}const HO={values(a){return He(a)?a:""+a},numeric(a,e,n){if(a===0)return"0";const o=this.chart.options.locale;let r,i=a;if(n.length>1){const h=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(h<1e-4||h>1e15)&&(r="scientific"),i=jO(a,n)}const s=xB(Math.abs(i)),c=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),d={notation:r,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(d,this.options.ticks.format),mI(a,o,d)}};function jO(a,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&a!==Math.floor(a)&&(n=a-Math.floor(a)),n}var PB={formatters:HO};function OO(a){a.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:PB.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),a.route("scale.ticks","color","","color"),a.route("scale.grid","color","","borderColor"),a.route("scale.border","color","","borderColor"),a.route("scale.title","color","","color"),a.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),a.describe("scales",{_fallback:"scale"}),a.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Zi=Object.create(null),gI=Object.create(null);function x1(a,e){if(!e)return a;const n=e.split(".");for(let o=0,r=n.length;o<r;++o){const i=n[o];a=a[i]||(a[i]=Object.create(null))}return a}function bI(a,e,n){return typeof e=="string"?y1(x1(a,e),n):y1(x1(a,""),e)}class FO{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=o=>o.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(o,r)=>kI(r.backgroundColor),this.hoverBorderColor=(o,r)=>kI(r.borderColor),this.hoverColor=(o,r)=>kI(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return bI(this,e,n)}get(e){return x1(this,e)}describe(e,n){return bI(gI,e,n)}override(e,n){return bI(Zi,e,n)}route(e,n,o,r){const i=x1(this,e),s=x1(this,o),c="_"+n;Object.defineProperties(i,{[c]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const d=this[c],h=s[r];return Me(d)?Object.assign({},h,d):me(d,h)},set(d){this[c]=d}}})}apply(e){e.forEach(n=>n(this))}}var Te=new FO({_scriptable:a=>!a.startsWith("on"),_indexable:a=>a!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[DO,EO,OO]);function RO(a){return!a||Ce(a.size)||Ce(a.family)?null:(a.style?a.style+" ":"")+(a.weight?a.weight+" ":"")+a.size+"px "+a.family}function DB(a,e,n,o,r){let i=e[r];return i||(i=e[r]=a.measureText(r).width,n.push(r)),i>o&&(o=i),o}function Yi(a,e,n){const o=a.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((e-r)*o)/o+r}function EB(a,e){!e&&!a||(e=e||a.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,a.width,a.height),e.restore())}function MI(a,e,n,o){TB(a,e,n,o,null)}function TB(a,e,n,o,r){let i,s,c,d,h,u,p,y;const f=e.pointStyle,k=e.rotation,m=e.radius;let g=(k||0)*gO;if(f&&typeof f=="object"&&(i=f.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){a.save(),a.translate(n,o),a.rotate(g),a.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),a.restore();return}if(!(isNaN(m)||m<=0)){switch(a.beginPath(),f){default:r?a.ellipse(n,o,r/2,m,0,0,ze):a.arc(n,o,m,0,ze),a.closePath();break;case"triangle":u=r?r/2:m,a.moveTo(n+Math.sin(g)*u,o-Math.cos(g)*m),g+=MB,a.lineTo(n+Math.sin(g)*u,o-Math.cos(g)*m),g+=MB,a.lineTo(n+Math.sin(g)*u,o-Math.cos(g)*m),a.closePath();break;case"rectRounded":h=m*.516,d=m-h,s=Math.cos(g+Ki)*d,p=Math.cos(g+Ki)*(r?r/2-h:d),c=Math.sin(g+Ki)*d,y=Math.sin(g+Ki)*(r?r/2-h:d),a.arc(n-p,o-c,h,g-Se,g-Oe),a.arc(n+y,o-s,h,g-Oe,g),a.arc(n+p,o+c,h,g,g+Oe),a.arc(n-y,o+s,h,g+Oe,g+Se),a.closePath();break;case"rect":if(!k){d=Math.SQRT1_2*m,u=r?r/2:d,a.rect(n-u,o-d,2*u,2*d);break}g+=Ki;case"rectRot":p=Math.cos(g)*(r?r/2:m),s=Math.cos(g)*m,c=Math.sin(g)*m,y=Math.sin(g)*(r?r/2:m),a.moveTo(n-p,o-c),a.lineTo(n+y,o-s),a.lineTo(n+p,o+c),a.lineTo(n-y,o+s),a.closePath();break;case"crossRot":g+=Ki;case"cross":p=Math.cos(g)*(r?r/2:m),s=Math.cos(g)*m,c=Math.sin(g)*m,y=Math.sin(g)*(r?r/2:m),a.moveTo(n-p,o-c),a.lineTo(n+p,o+c),a.moveTo(n+y,o-s),a.lineTo(n-y,o+s);break;case"star":p=Math.cos(g)*(r?r/2:m),s=Math.cos(g)*m,c=Math.sin(g)*m,y=Math.sin(g)*(r?r/2:m),a.moveTo(n-p,o-c),a.lineTo(n+p,o+c),a.moveTo(n+y,o-s),a.lineTo(n-y,o+s),g+=Ki,p=Math.cos(g)*(r?r/2:m),s=Math.cos(g)*m,c=Math.sin(g)*m,y=Math.sin(g)*(r?r/2:m),a.moveTo(n-p,o-c),a.lineTo(n+p,o+c),a.moveTo(n+y,o-s),a.lineTo(n-y,o+s);break;case"line":s=r?r/2:Math.cos(g)*m,c=Math.sin(g)*m,a.moveTo(n-s,o-c),a.lineTo(n+s,o+c);break;case"dash":a.moveTo(n,o),a.lineTo(n+Math.cos(g)*(r?r/2:m),o+Math.sin(g)*m);break;case!1:a.closePath();break}a.fill(),e.borderWidth>0&&a.stroke()}}function w1(a,e,n){return n=n||.5,!e||a&&a.x>e.left-n&&a.x<e.right+n&&a.y>e.top-n&&a.y<e.bottom+n}function PL(a,e){a.save(),a.beginPath(),a.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),a.clip()}function DL(a){a.restore()}function NO(a,e,n,o,r){if(!e)return a.lineTo(n.x,n.y);if(r==="middle"){const i=(e.x+n.x)/2;a.lineTo(i,e.y),a.lineTo(i,n.y)}else r==="after"!=!!o?a.lineTo(e.x,n.y):a.lineTo(n.x,e.y);a.lineTo(n.x,n.y)}function $O(a,e,n,o){if(!e)return a.lineTo(n.x,n.y);a.bezierCurveTo(o?e.cp1x:e.cp2x,o?e.cp1y:e.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function UO(a,e){e.translation&&a.translate(e.translation[0],e.translation[1]),Ce(e.rotation)||a.rotate(e.rotation),e.color&&(a.fillStyle=e.color),e.textAlign&&(a.textAlign=e.textAlign),e.textBaseline&&(a.textBaseline=e.textBaseline)}function WO(a,e,n,o,r){if(r.strikethrough||r.underline){const i=a.measureText(o),s=e-i.actualBoundingBoxLeft,c=e+i.actualBoundingBoxRight,d=n-i.actualBoundingBoxAscent,h=n+i.actualBoundingBoxDescent,u=r.strikethrough?(d+h)/2:h;a.strokeStyle=a.fillStyle,a.beginPath(),a.lineWidth=r.decorationWidth||2,a.moveTo(s,u),a.lineTo(c,u),a.stroke()}}function GO(a,e){const n=a.fillStyle;a.fillStyle=e.color,a.fillRect(e.left,e.top,e.width,e.height),a.fillStyle=n}function v1(a,e,n,o,r,i={}){const s=He(e)?e:[e],c=i.strokeWidth>0&&i.strokeColor!=="";let d,h;for(a.save(),a.font=r.string,UO(a,i),d=0;d<s.length;++d)h=s[d],i.backdrop&&GO(a,i.backdrop),c&&(i.strokeColor&&(a.strokeStyle=i.strokeColor),Ce(i.strokeWidth)||(a.lineWidth=i.strokeWidth),a.strokeText(h,n,o,i.maxWidth)),a.fillText(h,n,o,i.maxWidth),WO(a,n,o,h,i),o+=Number(r.lineHeight);a.restore()}function EL(a,e){const{x:n,y:o,w:r,h:i,radius:s}=e;a.arc(n+s.topLeft,o+s.topLeft,s.topLeft,1.5*Se,Se,!0),a.lineTo(n,o+i-s.bottomLeft),a.arc(n+s.bottomLeft,o+i-s.bottomLeft,s.bottomLeft,Se,Oe,!0),a.lineTo(n+r-s.bottomRight,o+i),a.arc(n+r-s.bottomRight,o+i-s.bottomRight,s.bottomRight,Oe,0,!0),a.lineTo(n+r,o+s.topRight),a.arc(n+r-s.topRight,o+s.topRight,s.topRight,0,-Oe,!0),a.lineTo(n+s.topLeft,o)}const KO=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,XO=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ZO(a,e){const n=(""+a).match(KO);if(!n||n[1]==="normal")return e*1.2;switch(a=+n[2],n[3]){case"px":return a;case"%":a/=100;break}return e*a}const YO=a=>+a||0;function xI(a,e){const n={},o=Me(e),r=o?Object.keys(e):e,i=Me(a)?o?s=>me(a[s],a[e[s]]):s=>a[s]:()=>a;for(const s of r)n[s]=YO(i(s));return n}function HB(a){return xI(a,{top:"y",right:"x",bottom:"y",left:"x"})}function Cs(a){return xI(a,["topLeft","topRight","bottomLeft","bottomRight"])}function ht(a){const e=HB(a);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ue(a,e){a=a||{},e=e||Te.font;let n=me(a.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let o=me(a.style,e.style);o&&!(""+o).match(XO)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:me(a.family,e.family),lineHeight:ZO(me(a.lineHeight,e.lineHeight),n),size:n,style:o,weight:me(a.weight,e.weight),string:""};return r.string=RO(r),r}function TL(a,e,n,o){let r,i,s;for(r=0,i=a.length;r<i;++r)if(s=a[r],s!==void 0&&s!==void 0)return s}function QO(a,e,n){const{min:o,max:r}=a,i=kB(e,(r-o)/2),s=(c,d)=>n&&c===0?0:c+d;return{min:s(o,-Math.abs(i)),max:s(r,i)}}function Qi(a,e){return Object.assign(Object.create(a),e)}function wI(a,e=[""],n,o,r=()=>a[0]){const i=n||a;typeof o>"u"&&(o=NB("_fallback",a));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:a,_rootScopes:i,_fallback:o,_getTarget:r,override:c=>wI([c,...a],e,i,o)};return new Proxy(s,{deleteProperty(c,d){return delete c[d],delete c._keys,delete a[0][d],!0},get(c,d){return OB(c,d,()=>iF(d,e,a,c))},getOwnPropertyDescriptor(c,d){return Reflect.getOwnPropertyDescriptor(c._scopes[0],d)},getPrototypeOf(){return Reflect.getPrototypeOf(a[0])},has(c,d){return $B(c).includes(d)},ownKeys(c){return $B(c)},set(c,d,h){const u=c._storage||(c._storage=r());return c[d]=u[d]=h,delete c._keys,!0}})}function Ls(a,e,n,o){const r={_cacheable:!1,_proxy:a,_context:e,_subProxy:n,_stack:new Set,_descriptors:jB(a,o),setContext:i=>Ls(a,i,n,o),override:i=>Ls(a.override(i),e,n,o)};return new Proxy(r,{deleteProperty(i,s){return delete i[s],delete a[s],!0},get(i,s,c){return OB(i,s,()=>eF(i,s,c))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(a,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(a,s)},getPrototypeOf(){return Reflect.getPrototypeOf(a)},has(i,s){return Reflect.has(a,s)},ownKeys(){return Reflect.ownKeys(a)},set(i,s,c){return a[s]=c,delete i[s],!0}})}function jB(a,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:o=e.indexable,_allKeys:r=e.allKeys}=a;return{allKeys:r,scriptable:n,indexable:o,isScriptable:xa(n)?n:()=>n,isIndexable:xa(o)?o:()=>o}}const JO=(a,e)=>a?a+hI(e):e,vI=(a,e)=>Me(e)&&a!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function OB(a,e,n){if(Object.prototype.hasOwnProperty.call(a,e)||e==="constructor")return a[e];const o=n();return a[e]=o,o}function eF(a,e,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:s}=a;let c=o[e];return xa(c)&&s.isScriptable(e)&&(c=tF(e,c,a,n)),He(c)&&c.length&&(c=aF(e,c,a,s.isIndexable)),vI(e,c)&&(c=Ls(c,r,i&&i[e],s)),c}function tF(a,e,n,o){const{_proxy:r,_context:i,_subProxy:s,_stack:c}=n;if(c.has(a))throw new Error("Recursion detected: "+Array.from(c).join("->")+"->"+a);c.add(a);let d=e(i,s||o);return c.delete(a),vI(a,d)&&(d=CI(r._scopes,r,a,d)),d}function aF(a,e,n,o){const{_proxy:r,_context:i,_subProxy:s,_descriptors:c}=n;if(typeof i.index<"u"&&o(a))return e[i.index%e.length];if(Me(e[0])){const d=e,h=r._scopes.filter(u=>u!==d);e=[];for(const u of d){const p=CI(h,r,a,u);e.push(Ls(p,i,s&&s[a],c))}}return e}function FB(a,e,n){return xa(a)?a(e,n):a}const nF=(a,e)=>a===!0?e:typeof a=="string"?Gi(e,a):void 0;function oF(a,e,n,o,r){for(const i of e){const s=nF(n,i);if(s){a.add(s);const c=FB(s._fallback,n,r);if(typeof c<"u"&&c!==n&&c!==o)return c}else if(s===!1&&typeof o<"u"&&n!==o)return null}return!1}function CI(a,e,n,o){const r=e._rootScopes,i=FB(e._fallback,n,o),s=[...a,...r],c=new Set;c.add(o);let d=RB(c,s,n,i||n,o);return d===null||typeof i<"u"&&i!==n&&(d=RB(c,s,i,d,o),d===null)?!1:wI(Array.from(c),[""],r,i,()=>rF(e,n,o))}function RB(a,e,n,o,r){for(;n;)n=oF(a,e,n,o,r);return n}function rF(a,e,n){const o=a._getTarget();e in o||(o[e]={});const r=o[e];return He(r)&&Me(n)?n:r||{}}function iF(a,e,n,o){let r;for(const i of e)if(r=NB(JO(i,a),n),typeof r<"u")return vI(a,r)?CI(n,o,a,r):r}function NB(a,e){for(const n of e){if(!n)continue;const o=n[a];if(typeof o<"u")return o}}function $B(a){let e=a._keys;return e||(e=a._keys=sF(a._scopes)),e}function sF(a){const e=new Set;for(const n of a)for(const o of Object.keys(n).filter(r=>!r.startsWith("_")))e.add(o);return Array.from(e)}const lF=Number.EPSILON||1e-14,Ss=(a,e)=>e<a.length&&!a[e].skip&&a[e],UB=a=>a==="x"?"y":"x";function cF(a,e,n,o){const r=a.skip?e:a,i=e,s=n.skip?e:n,c=uI(i,r),d=uI(s,i);let h=c/(c+d),u=d/(c+d);h=isNaN(h)?0:h,u=isNaN(u)?0:u;const p=o*h,y=o*u;return{previous:{x:i.x-p*(s.x-r.x),y:i.y-p*(s.y-r.y)},next:{x:i.x+y*(s.x-r.x),y:i.y+y*(s.y-r.y)}}}function dF(a,e,n){const o=a.length;let r,i,s,c,d,h=Ss(a,0);for(let u=0;u<o-1;++u)if(d=h,h=Ss(a,u+1),!(!d||!h)){if(m1(e[u],0,lF)){n[u]=n[u+1]=0;continue}r=n[u]/e[u],i=n[u+1]/e[u],c=Math.pow(r,2)+Math.pow(i,2),!(c<=9)&&(s=3/Math.sqrt(c),n[u]=r*s*e[u],n[u+1]=i*s*e[u])}}function hF(a,e,n="x"){const o=UB(n),r=a.length;let i,s,c,d=Ss(a,0);for(let h=0;h<r;++h){if(s=c,c=d,d=Ss(a,h+1),!c)continue;const u=c[n],p=c[o];s&&(i=(u-s[n])/3,c[`cp1${n}`]=u-i,c[`cp1${o}`]=p-i*e[h]),d&&(i=(d[n]-u)/3,c[`cp2${n}`]=u+i,c[`cp2${o}`]=p+i*e[h])}}function uF(a,e="x"){const n=UB(e),o=a.length,r=Array(o).fill(0),i=Array(o);let s,c,d,h=Ss(a,0);for(s=0;s<o;++s)if(c=d,d=h,h=Ss(a,s+1),!!d){if(h){const u=h[e]-d[e];r[s]=u!==0?(h[n]-d[n])/u:0}i[s]=c?h?jt(r[s-1])!==jt(r[s])?0:(r[s-1]+r[s])/2:r[s-1]:r[s]}dF(a,r,i),hF(a,i,e)}function HL(a,e,n){return Math.max(Math.min(a,n),e)}function pF(a,e){let n,o,r,i,s,c=w1(a[0],e);for(n=0,o=a.length;n<o;++n)s=i,i=c,c=n<o-1&&w1(a[n+1],e),i&&(r=a[n],s&&(r.cp1x=HL(r.cp1x,e.left,e.right),r.cp1y=HL(r.cp1y,e.top,e.bottom)),c&&(r.cp2x=HL(r.cp2x,e.left,e.right),r.cp2y=HL(r.cp2y,e.top,e.bottom)))}function yF(a,e,n,o,r){let i,s,c,d;if(e.spanGaps&&(a=a.filter(h=>!h.skip)),e.cubicInterpolationMode==="monotone")uF(a,r);else{let h=o?a[a.length-1]:a[0];for(i=0,s=a.length;i<s;++i)c=a[i],d=cF(h,c,a[Math.min(i+1,s-(o?0:1))%s],e.tension),c.cp1x=d.previous.x,c.cp1y=d.previous.y,c.cp2x=d.next.x,c.cp2y=d.next.y,h=c}e.capBezierPoints&&pF(a,n)}function LI(){return typeof window<"u"&&typeof document<"u"}function SI(a){let e=a.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function jL(a,e,n){let o;return typeof a=="string"?(o=parseInt(a,10),a.indexOf("%")!==-1&&(o=o/100*e.parentNode[n])):o=a,o}const OL=a=>a.ownerDocument.defaultView.getComputedStyle(a,null);function fF(a,e){return OL(a).getPropertyValue(e)}const kF=["top","right","bottom","left"];function Ji(a,e,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=kF[r];o[i]=parseFloat(a[e+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const mF=(a,e,n)=>(a>0||e>0)&&(!n||!n.shadowRoot);function gF(a,e){const n=a.touches,o=n&&n.length?n[0]:a,{offsetX:r,offsetY:i}=o;let s=!1,c,d;if(mF(r,i,a.target))c=r,d=i;else{const h=e.getBoundingClientRect();c=o.clientX-h.left,d=o.clientY-h.top,s=!0}return{x:c,y:d,box:s}}function es(a,e){if("native"in a)return a;const{canvas:n,currentDevicePixelRatio:o}=e,r=OL(n),i=r.boxSizing==="border-box",s=Ji(r,"padding"),c=Ji(r,"border","width"),{x:d,y:h,box:u}=gF(a,n),p=s.left+(u&&c.left),y=s.top+(u&&c.top);let{width:f,height:k}=e;return i&&(f-=s.width+c.width,k-=s.height+c.height),{x:Math.round((d-p)/f*n.width/o),y:Math.round((h-y)/k*n.height/o)}}function bF(a,e,n){let o,r;if(e===void 0||n===void 0){const i=a&&SI(a);if(!i)e=a.clientWidth,n=a.clientHeight;else{const s=i.getBoundingClientRect(),c=OL(i),d=Ji(c,"border","width"),h=Ji(c,"padding");e=s.width-h.width-d.width,n=s.height-h.height-d.height,o=jL(c.maxWidth,i,"clientWidth"),r=jL(c.maxHeight,i,"clientHeight")}}return{width:e,height:n,maxWidth:o||zL,maxHeight:r||zL}}const wa=a=>Math.round(a*10)/10;function MF(a,e,n,o){const r=OL(a),i=Ji(r,"margin"),s=jL(r.maxWidth,a,"clientWidth")||zL,c=jL(r.maxHeight,a,"clientHeight")||zL,d=bF(a,e,n);let{width:h,height:u}=d;if(r.boxSizing==="content-box"){const y=Ji(r,"border","width"),f=Ji(r,"padding");h-=f.width+y.width,u-=f.height+y.height}return h=Math.max(0,h-i.width),u=Math.max(0,o?h/o:u-i.height),h=wa(Math.min(h,s,d.maxWidth)),u=wa(Math.min(u,c,d.maxHeight)),h&&!u&&(u=wa(h/2)),(e!==void 0||n!==void 0)&&o&&d.height&&u>d.height&&(u=d.height,h=wa(Math.floor(u*o))),{width:h,height:u}}function WB(a,e,n){const o=e||1,r=wa(a.height*o),i=wa(a.width*o);a.height=wa(a.height),a.width=wa(a.width);const s=a.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${a.height}px`,s.style.width=`${a.width}px`),a.currentDevicePixelRatio!==o||s.height!==r||s.width!==i?(a.currentDevicePixelRatio=o,s.height=r,s.width=i,a.ctx.setTransform(o,0,0,o,0,0),!0):!1}const xF=(function(){let a=!1;try{const e={get passive(){return a=!0,!1}};LI()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return a})();function GB(a,e){const n=fF(a,e),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function ts(a,e,n,o){return{x:a.x+n*(e.x-a.x),y:a.y+n*(e.y-a.y)}}function wF(a,e,n,o){return{x:a.x+n*(e.x-a.x),y:o==="middle"?n<.5?a.y:e.y:o==="after"?n<1?a.y:e.y:n>0?e.y:a.y}}function vF(a,e,n,o){const r={x:a.cp2x,y:a.cp2y},i={x:e.cp1x,y:e.cp1y},s=ts(a,r,n),c=ts(r,i,n),d=ts(i,e,n),h=ts(s,c,n),u=ts(c,d,n);return ts(h,u,n)}const CF=function(a,e){return{x(n){return a+a+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,o){return n-o},leftForLtr(n,o){return n-o}}},LF=function(){return{x(a){return a},setWidth(a){},textAlign(a){return a},xPlus(a,e){return a+e},leftForLtr(a,e){return a}}};function Is(a,e,n){return a?CF(e,n):LF()}function KB(a,e){let n,o;(e==="ltr"||e==="rtl")&&(n=a.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),a.prevTextDirection=o)}function XB(a,e){e!==void 0&&(delete a.prevTextDirection,a.canvas.style.setProperty("direction",e[0],e[1]))}function ZB(a){return a==="angle"?{between:b1,compare:CO,normalize:nt}:{between:Jt,compare:(e,n)=>e-n,normalize:e=>e}}function YB({start:a,end:e,count:n,loop:o,style:r}){return{start:a%n,end:e%n,loop:o&&(e-a+1)%n===0,style:r}}function SF(a,e,n){const{property:o,start:r,end:i}=n,{between:s,normalize:c}=ZB(o),d=e.length;let{start:h,end:u,loop:p}=a,y,f;if(p){for(h+=d,u+=d,y=0,f=d;y<f&&s(c(e[h%d][o]),r,i);++y)h--,u--;h%=d,u%=d}return u<h&&(u+=d),{start:h,end:u,loop:p,style:a.style}}function QB(a,e,n){if(!n)return[a];const{property:o,start:r,end:i}=n,s=e.length,{compare:c,between:d,normalize:h}=ZB(o),{start:u,end:p,loop:y,style:f}=SF(a,e,n),k=[];let m=!1,g=null,v,L,w;const M=()=>d(r,w,v)&&c(r,w)!==0,C=()=>c(i,v)===0||d(i,w,v),S=()=>m||M(),b=()=>!m||C();for(let x=u,I=u;x<=p;++x)L=e[x%s],!L.skip&&(v=h(L[o]),v!==w&&(m=d(v,r,i),g===null&&S()&&(g=c(v,r)===0?x:I),g!==null&&b()&&(k.push(YB({start:g,end:x,loop:y,count:s,style:f})),g=null),I=x,w=v));return g!==null&&k.push(YB({start:g,end:p,loop:y,count:s,style:f})),k}function JB(a,e){const n=[],o=a.segments;for(let r=0;r<o.length;r++){const i=QB(o[r],a.points,e);i.length&&n.push(...i)}return n}function IF(a,e,n,o){let r=0,i=e-1;if(n&&!o)for(;r<e&&!a[r].skip;)r++;for(;r<e&&a[r].skip;)r++;for(r%=e,n&&(i+=r);i>r&&a[i%e].skip;)i--;return i%=e,{start:r,end:i}}function _F(a,e,n,o){const r=a.length,i=[];let s=e,c=a[e],d;for(d=e+1;d<=n;++d){const h=a[d%r];h.skip||h.stop?c.skip||(o=!1,i.push({start:e%r,end:(d-1)%r,loop:o}),e=s=h.stop?d:null):(s=d,c.skip&&(e=d)),c=h}return s!==null&&i.push({start:e%r,end:s%r,loop:o}),i}function AF(a,e){const n=a.points,o=a.options.spanGaps,r=n.length;if(!r)return[];const i=!!a._loop,{start:s,end:c}=IF(n,r,i,o);if(o===!0)return eV(a,[{start:s,end:c,loop:i}],n,e);const d=c<s?c+r:c,h=!!a._fullLoop&&s===0&&c===r-1;return eV(a,_F(n,s,d,h),n,e)}function eV(a,e,n,o){return!o||!o.setContext||!n?e:BF(a,e,n,o)}function BF(a,e,n,o){const r=a._chart.getContext(),i=tV(a.options),{_datasetIndex:s,options:{spanGaps:c}}=a,d=n.length,h=[];let u=i,p=e[0].start,y=p;function f(k,m,g,v){const L=c?-1:1;if(k!==m){for(k+=d;n[k%d].skip;)k-=L;for(;n[m%d].skip;)m+=L;k%d!==m%d&&(h.push({start:k%d,end:m%d,loop:g,style:v}),u=v,p=m%d)}}for(const k of e){p=c?p:k.start;let m=n[p%d],g;for(y=p+1;y<=k.end;y++){const v=n[y%d];g=tV(o.setContext(Qi(r,{type:"segment",p0:m,p1:v,p0DataIndex:(y-1)%d,p1DataIndex:y%d,datasetIndex:s}))),VF(g,u)&&f(p,y-1,k.loop,u),m=v,u=g}p<y-1&&f(p,y-1,k.loop,u)}return h}function tV(a){return{backgroundColor:a.backgroundColor,borderCapStyle:a.borderCapStyle,borderDash:a.borderDash,borderDashOffset:a.borderDashOffset,borderJoinStyle:a.borderJoinStyle,borderWidth:a.borderWidth,borderColor:a.borderColor}}function VF(a,e){if(!e)return!1;const n=[],o=function(r,i){return fI(i)?(n.includes(i)||n.push(i),n.indexOf(i)):i};return JSON.stringify(a,o)!==JSON.stringify(e,o)}function FL(a,e,n){return a.options.clip?a[n]:e[n]}function zF(a,e){const{xScale:n,yScale:o}=a;return n&&o?{left:FL(n,e,"left"),right:FL(n,e,"right"),top:FL(o,e,"top"),bottom:FL(o,e,"bottom")}:e}function aV(a,e){const n=e._clip;if(n.disabled)return!1;const o=zF(e,a.chartArea);return{left:n.left===!1?0:o.left-(n.left===!0?0:n.left),right:n.right===!1?a.width:o.right+(n.right===!0?0:n.right),top:n.top===!1?0:o.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?a.height:o.bottom+(n.bottom===!0?0:n.bottom)}}/*!
|
|
8512
|
+
*/function Yt(){}const dO=(()=>{let a=0;return()=>a++})();function Ce(a){return a==null}function He(a){if(Array.isArray&&Array.isArray(a))return!0;const e=Object.prototype.toString.call(a);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function Me(a){return a!==null&&Object.prototype.toString.call(a)==="[object Object]"}function Re(a){return(typeof a=="number"||a instanceof Number)&&isFinite(+a)}function Ht(a,e){return Re(a)?a:e}function me(a,e){return typeof a>"u"?e:a}const hO=(a,e)=>typeof a=="string"&&a.endsWith("%")?parseFloat(a)/100:+a/e,mB=(a,e)=>typeof a=="string"&&a.endsWith("%")?parseFloat(a)/100*e:+a;function Ae(a,e,n){if(a&&typeof a.call=="function")return a.apply(n,e)}function Le(a,e,n,o){let r,i,s;if(He(a))for(i=a.length,r=0;r<i;r++)e.call(n,a[r],r);else if(Me(a))for(s=Object.keys(a),i=s.length,r=0;r<i;r++)e.call(n,a[s[r]],s[r])}function BL(a,e){let n,o,r,i;if(!a||!e||a.length!==e.length)return!1;for(n=0,o=a.length;n<o;++n)if(r=a[n],i=e[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function VL(a){if(He(a))return a.map(VL);if(Me(a)){const e=Object.create(null),n=Object.keys(a),o=n.length;let r=0;for(;r<o;++r)e[n[r]]=VL(a[n[r]]);return e}return a}function gB(a){return["__proto__","prototype","constructor"].indexOf(a)===-1}function uO(a,e,n,o){if(!gB(a))return;const r=e[a],i=n[a];Me(r)&&Me(i)?y1(r,i,o):e[a]=VL(i)}function y1(a,e,n){const o=He(e)?e:[e],r=o.length;if(!Me(a))return a;n=n||{};const i=n.merger||uO;let s;for(let c=0;c<r;++c){if(s=o[c],!Me(s))continue;const d=Object.keys(s);for(let h=0,u=d.length;h<u;++h)i(d[h],a,s,n)}return a}function f1(a,e){return y1(a,e,{merger:pO})}function pO(a,e,n){if(!gB(a))return;const o=e[a],r=n[a];Me(o)&&Me(r)?f1(o,r):Object.prototype.hasOwnProperty.call(e,a)||(e[a]=VL(r))}const bB={"":a=>a,x:a=>a.x,y:a=>a.y};function yO(a){const e=a.split("."),n=[];let o="";for(const r of e)o+=r,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}function fO(a){const e=yO(a);return n=>{for(const o of e){if(o==="")break;n=n&&n[o]}return n}}function Gi(a,e){return(bB[e]||(bB[e]=fO(e)))(a)}function hI(a){return a.charAt(0).toUpperCase()+a.slice(1)}const k1=a=>typeof a<"u",xa=a=>typeof a=="function",MB=(a,e)=>{if(a.size!==e.size)return!1;for(const n of a)if(!e.has(n))return!1;return!0};function kO(a){return a.type==="mouseup"||a.type==="click"||a.type==="contextmenu"}const Se=Math.PI,ze=2*Se,mO=ze+Se,zL=Number.POSITIVE_INFINITY,gO=Se/180,Oe=Se/2,Ki=Se/4,xB=Se*2/3,wB=Math.log10,jt=Math.sign;function m1(a,e,n){return Math.abs(a-e)<n}function vB(a){const e=Math.round(a);a=m1(a,e,a/1e3)?e:a;const n=Math.pow(10,Math.floor(wB(a))),o=a/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function bO(a){const e=[],n=Math.sqrt(a);let o;for(o=1;o<n;o++)a%o===0&&(e.push(o),e.push(a/o));return n===(n|0)&&e.push(n),e.sort((r,i)=>r-i).pop(),e}function MO(a){return typeof a=="symbol"||typeof a=="object"&&a!==null&&!(Symbol.toPrimitive in a||"toString"in a||"valueOf"in a)}function g1(a){return!MO(a)&&!isNaN(parseFloat(a))&&isFinite(a)}function xO(a,e){const n=Math.round(a);return n-e<=a&&n+e>=a}function wO(a,e,n){let o,r,i;for(o=0,r=a.length;o<r;o++)i=a[o][n],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function Qt(a){return a*(Se/180)}function vO(a){return a*(180/Se)}function CB(a){if(!Re(a))return;let e=1,n=0;for(;Math.round(a*e)/e!==a;)e*=10,n++;return n}function LB(a,e){const n=e.x-a.x,o=e.y-a.y,r=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i<-.5*Se&&(i+=ze),{angle:i,distance:r}}function uI(a,e){return Math.sqrt(Math.pow(e.x-a.x,2)+Math.pow(e.y-a.y,2))}function CO(a,e){return(a-e+mO)%ze-Se}function nt(a){return(a%ze+ze)%ze}function b1(a,e,n,o){const r=nt(a),i=nt(e),s=nt(n),c=nt(i-r),d=nt(s-r),h=nt(r-i),u=nt(r-s);return r===i||r===s||o&&i===s||c>d&&h<u}function Ne(a,e,n){return Math.max(e,Math.min(n,a))}function LO(a){return Ne(a,-32768,32767)}function Jt(a,e,n,o=1e-6){return a>=Math.min(e,n)-o&&a<=Math.max(e,n)+o}function pI(a,e,n){n=n||(s=>a[s]<e);let o=a.length-1,r=0,i;for(;o-r>1;)i=r+o>>1,n(i)?r=i:o=i;return{lo:r,hi:o}}const Xi=(a,e,n,o)=>pI(a,n,o?r=>{const i=a[r][e];return i<n||i===n&&a[r+1][e]===n}:r=>a[r][e]<n),SO=(a,e,n)=>pI(a,n,o=>a[o][e]>=n);function IO(a,e,n){let o=0,r=a.length;for(;o<r&&a[o]<e;)o++;for(;r>o&&a[r-1]>n;)r--;return o>0||r<a.length?a.slice(o,r):a}const SB=["push","pop","shift","splice","unshift"];function _O(a,e){if(a._chartjs){a._chartjs.listeners.push(e);return}Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),SB.forEach(n=>{const o="_onData"+hI(n),r=a[n];Object.defineProperty(a,n,{configurable:!0,enumerable:!1,value(...i){const s=r.apply(this,i);return a._chartjs.listeners.forEach(c=>{typeof c[o]=="function"&&c[o](...i)}),s}})})}function IB(a,e){const n=a._chartjs;if(!n)return;const o=n.listeners,r=o.indexOf(e);r!==-1&&o.splice(r,1),!(o.length>0)&&(SB.forEach(i=>{delete a[i]}),delete a._chartjs)}function _B(a){const e=new Set(a);return e.size===a.length?a:Array.from(e)}const AB=(function(){return typeof window>"u"?function(a){return a()}:window.requestAnimationFrame})();function BB(a,e){let n=[],o=!1;return function(...r){n=r,o||(o=!0,AB.call(window,()=>{o=!1,a.apply(e,n)}))}}function AO(a,e){let n;return function(...o){return e?(clearTimeout(n),n=setTimeout(a,e,o)):a.apply(this,o),e}}const yI=a=>a==="start"?"left":a==="end"?"right":"center",$e=(a,e,n)=>a==="start"?e:a==="end"?n:(e+n)/2,BO=(a,e,n,o)=>a===(o?"left":"right")?n:a==="center"?(e+n)/2:e;function VO(a,e,n){const o=e.length;let r=0,i=o;if(a._sorted){const{iScale:s,vScale:c,_parsed:d}=a,h=a.dataset&&a.dataset.options?a.dataset.options.spanGaps:null,u=s.axis,{min:p,max:y,minDefined:f,maxDefined:k}=s.getUserBounds();if(f){if(r=Math.min(Xi(d,u,p).lo,n?o:Xi(e,u,s.getPixelForValue(p)).lo),h){const m=d.slice(0,r+1).reverse().findIndex(g=>!Ce(g[c.axis]));r-=Math.max(0,m)}r=Ne(r,0,o-1)}if(k){let m=Math.max(Xi(d,s.axis,y,!0).hi+1,n?0:Xi(e,u,s.getPixelForValue(y),!0).hi+1);if(h){const g=d.slice(m-1).findIndex(v=>!Ce(v[c.axis]));m+=Math.max(0,g)}i=Ne(m,r,o)-r}else i=o-r}return{start:r,count:i}}function zO(a){const{xScale:e,yScale:n,_scaleRanges:o}=a,r={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!o)return a._scaleRanges=r,!0;const i=o.xmin!==e.min||o.xmax!==e.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,r),i}const qL=a=>a===0||a===1,VB=(a,e,n)=>-(Math.pow(2,10*(a-=1))*Math.sin((a-e)*ze/n)),zB=(a,e,n)=>Math.pow(2,-10*a)*Math.sin((a-e)*ze/n)+1,M1={linear:a=>a,easeInQuad:a=>a*a,easeOutQuad:a=>-a*(a-2),easeInOutQuad:a=>(a/=.5)<1?.5*a*a:-.5*(--a*(a-2)-1),easeInCubic:a=>a*a*a,easeOutCubic:a=>(a-=1)*a*a+1,easeInOutCubic:a=>(a/=.5)<1?.5*a*a*a:.5*((a-=2)*a*a+2),easeInQuart:a=>a*a*a*a,easeOutQuart:a=>-((a-=1)*a*a*a-1),easeInOutQuart:a=>(a/=.5)<1?.5*a*a*a*a:-.5*((a-=2)*a*a*a-2),easeInQuint:a=>a*a*a*a*a,easeOutQuint:a=>(a-=1)*a*a*a*a+1,easeInOutQuint:a=>(a/=.5)<1?.5*a*a*a*a*a:.5*((a-=2)*a*a*a*a+2),easeInSine:a=>-Math.cos(a*Oe)+1,easeOutSine:a=>Math.sin(a*Oe),easeInOutSine:a=>-.5*(Math.cos(Se*a)-1),easeInExpo:a=>a===0?0:Math.pow(2,10*(a-1)),easeOutExpo:a=>a===1?1:-Math.pow(2,-10*a)+1,easeInOutExpo:a=>qL(a)?a:a<.5?.5*Math.pow(2,10*(a*2-1)):.5*(-Math.pow(2,-10*(a*2-1))+2),easeInCirc:a=>a>=1?a:-(Math.sqrt(1-a*a)-1),easeOutCirc:a=>Math.sqrt(1-(a-=1)*a),easeInOutCirc:a=>(a/=.5)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1),easeInElastic:a=>qL(a)?a:VB(a,.075,.3),easeOutElastic:a=>qL(a)?a:zB(a,.075,.3),easeInOutElastic(a){return qL(a)?a:a<.5?.5*VB(a*2,.1125,.45):.5+.5*zB(a*2-1,.1125,.45)},easeInBack(a){return a*a*((1.70158+1)*a-1.70158)},easeOutBack(a){return(a-=1)*a*((1.70158+1)*a+1.70158)+1},easeInOutBack(a){let e=1.70158;return(a/=.5)<1?.5*(a*a*(((e*=1.525)+1)*a-e)):.5*((a-=2)*a*(((e*=1.525)+1)*a+e)+2)},easeInBounce:a=>1-M1.easeOutBounce(1-a),easeOutBounce(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},easeInOutBounce:a=>a<.5?M1.easeInBounce(a*2)*.5:M1.easeOutBounce(a*2-1)*.5+.5};function fI(a){if(a&&typeof a=="object"){const e=a.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function qB(a){return fI(a)?a:new p1(a)}function kI(a){return fI(a)?a:new p1(a).saturate(.5).darken(.1).hexString()}const qO=["x","y","borderWidth","radius","tension"],PO=["color","borderColor","backgroundColor"];function DO(a){a.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),a.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),a.set("animations",{colors:{type:"color",properties:PO},numbers:{type:"number",properties:qO}}),a.describe("animations",{_fallback:"animation"}),a.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function EO(a){a.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const PB=new Map;function TO(a,e){e=e||{};const n=a+JSON.stringify(e);let o=PB.get(n);return o||(o=new Intl.NumberFormat(a,e),PB.set(n,o)),o}function mI(a,e,n){return TO(e,n).format(a)}const HO={values(a){return He(a)?a:""+a},numeric(a,e,n){if(a===0)return"0";const o=this.chart.options.locale;let r,i=a;if(n.length>1){const h=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(h<1e-4||h>1e15)&&(r="scientific"),i=jO(a,n)}const s=wB(Math.abs(i)),c=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),d={notation:r,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(d,this.options.ticks.format),mI(a,o,d)}};function jO(a,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&a!==Math.floor(a)&&(n=a-Math.floor(a)),n}var DB={formatters:HO};function OO(a){a.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:DB.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),a.route("scale.ticks","color","","color"),a.route("scale.grid","color","","borderColor"),a.route("scale.border","color","","borderColor"),a.route("scale.title","color","","color"),a.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),a.describe("scales",{_fallback:"scale"}),a.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Zi=Object.create(null),gI=Object.create(null);function x1(a,e){if(!e)return a;const n=e.split(".");for(let o=0,r=n.length;o<r;++o){const i=n[o];a=a[i]||(a[i]=Object.create(null))}return a}function bI(a,e,n){return typeof e=="string"?y1(x1(a,e),n):y1(x1(a,""),e)}class FO{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=o=>o.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(o,r)=>kI(r.backgroundColor),this.hoverBorderColor=(o,r)=>kI(r.borderColor),this.hoverColor=(o,r)=>kI(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return bI(this,e,n)}get(e){return x1(this,e)}describe(e,n){return bI(gI,e,n)}override(e,n){return bI(Zi,e,n)}route(e,n,o,r){const i=x1(this,e),s=x1(this,o),c="_"+n;Object.defineProperties(i,{[c]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const d=this[c],h=s[r];return Me(d)?Object.assign({},h,d):me(d,h)},set(d){this[c]=d}}})}apply(e){e.forEach(n=>n(this))}}var Te=new FO({_scriptable:a=>!a.startsWith("on"),_indexable:a=>a!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[DO,EO,OO]);function RO(a){return!a||Ce(a.size)||Ce(a.family)?null:(a.style?a.style+" ":"")+(a.weight?a.weight+" ":"")+a.size+"px "+a.family}function EB(a,e,n,o,r){let i=e[r];return i||(i=e[r]=a.measureText(r).width,n.push(r)),i>o&&(o=i),o}function Yi(a,e,n){const o=a.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((e-r)*o)/o+r}function TB(a,e){!e&&!a||(e=e||a.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,a.width,a.height),e.restore())}function MI(a,e,n,o){HB(a,e,n,o,null)}function HB(a,e,n,o,r){let i,s,c,d,h,u,p,y;const f=e.pointStyle,k=e.rotation,m=e.radius;let g=(k||0)*gO;if(f&&typeof f=="object"&&(i=f.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){a.save(),a.translate(n,o),a.rotate(g),a.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),a.restore();return}if(!(isNaN(m)||m<=0)){switch(a.beginPath(),f){default:r?a.ellipse(n,o,r/2,m,0,0,ze):a.arc(n,o,m,0,ze),a.closePath();break;case"triangle":u=r?r/2:m,a.moveTo(n+Math.sin(g)*u,o-Math.cos(g)*m),g+=xB,a.lineTo(n+Math.sin(g)*u,o-Math.cos(g)*m),g+=xB,a.lineTo(n+Math.sin(g)*u,o-Math.cos(g)*m),a.closePath();break;case"rectRounded":h=m*.516,d=m-h,s=Math.cos(g+Ki)*d,p=Math.cos(g+Ki)*(r?r/2-h:d),c=Math.sin(g+Ki)*d,y=Math.sin(g+Ki)*(r?r/2-h:d),a.arc(n-p,o-c,h,g-Se,g-Oe),a.arc(n+y,o-s,h,g-Oe,g),a.arc(n+p,o+c,h,g,g+Oe),a.arc(n-y,o+s,h,g+Oe,g+Se),a.closePath();break;case"rect":if(!k){d=Math.SQRT1_2*m,u=r?r/2:d,a.rect(n-u,o-d,2*u,2*d);break}g+=Ki;case"rectRot":p=Math.cos(g)*(r?r/2:m),s=Math.cos(g)*m,c=Math.sin(g)*m,y=Math.sin(g)*(r?r/2:m),a.moveTo(n-p,o-c),a.lineTo(n+y,o-s),a.lineTo(n+p,o+c),a.lineTo(n-y,o+s),a.closePath();break;case"crossRot":g+=Ki;case"cross":p=Math.cos(g)*(r?r/2:m),s=Math.cos(g)*m,c=Math.sin(g)*m,y=Math.sin(g)*(r?r/2:m),a.moveTo(n-p,o-c),a.lineTo(n+p,o+c),a.moveTo(n+y,o-s),a.lineTo(n-y,o+s);break;case"star":p=Math.cos(g)*(r?r/2:m),s=Math.cos(g)*m,c=Math.sin(g)*m,y=Math.sin(g)*(r?r/2:m),a.moveTo(n-p,o-c),a.lineTo(n+p,o+c),a.moveTo(n+y,o-s),a.lineTo(n-y,o+s),g+=Ki,p=Math.cos(g)*(r?r/2:m),s=Math.cos(g)*m,c=Math.sin(g)*m,y=Math.sin(g)*(r?r/2:m),a.moveTo(n-p,o-c),a.lineTo(n+p,o+c),a.moveTo(n+y,o-s),a.lineTo(n-y,o+s);break;case"line":s=r?r/2:Math.cos(g)*m,c=Math.sin(g)*m,a.moveTo(n-s,o-c),a.lineTo(n+s,o+c);break;case"dash":a.moveTo(n,o),a.lineTo(n+Math.cos(g)*(r?r/2:m),o+Math.sin(g)*m);break;case!1:a.closePath();break}a.fill(),e.borderWidth>0&&a.stroke()}}function w1(a,e,n){return n=n||.5,!e||a&&a.x>e.left-n&&a.x<e.right+n&&a.y>e.top-n&&a.y<e.bottom+n}function PL(a,e){a.save(),a.beginPath(),a.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),a.clip()}function DL(a){a.restore()}function NO(a,e,n,o,r){if(!e)return a.lineTo(n.x,n.y);if(r==="middle"){const i=(e.x+n.x)/2;a.lineTo(i,e.y),a.lineTo(i,n.y)}else r==="after"!=!!o?a.lineTo(e.x,n.y):a.lineTo(n.x,e.y);a.lineTo(n.x,n.y)}function $O(a,e,n,o){if(!e)return a.lineTo(n.x,n.y);a.bezierCurveTo(o?e.cp1x:e.cp2x,o?e.cp1y:e.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function UO(a,e){e.translation&&a.translate(e.translation[0],e.translation[1]),Ce(e.rotation)||a.rotate(e.rotation),e.color&&(a.fillStyle=e.color),e.textAlign&&(a.textAlign=e.textAlign),e.textBaseline&&(a.textBaseline=e.textBaseline)}function WO(a,e,n,o,r){if(r.strikethrough||r.underline){const i=a.measureText(o),s=e-i.actualBoundingBoxLeft,c=e+i.actualBoundingBoxRight,d=n-i.actualBoundingBoxAscent,h=n+i.actualBoundingBoxDescent,u=r.strikethrough?(d+h)/2:h;a.strokeStyle=a.fillStyle,a.beginPath(),a.lineWidth=r.decorationWidth||2,a.moveTo(s,u),a.lineTo(c,u),a.stroke()}}function GO(a,e){const n=a.fillStyle;a.fillStyle=e.color,a.fillRect(e.left,e.top,e.width,e.height),a.fillStyle=n}function v1(a,e,n,o,r,i={}){const s=He(e)?e:[e],c=i.strokeWidth>0&&i.strokeColor!=="";let d,h;for(a.save(),a.font=r.string,UO(a,i),d=0;d<s.length;++d)h=s[d],i.backdrop&&GO(a,i.backdrop),c&&(i.strokeColor&&(a.strokeStyle=i.strokeColor),Ce(i.strokeWidth)||(a.lineWidth=i.strokeWidth),a.strokeText(h,n,o,i.maxWidth)),a.fillText(h,n,o,i.maxWidth),WO(a,n,o,h,i),o+=Number(r.lineHeight);a.restore()}function EL(a,e){const{x:n,y:o,w:r,h:i,radius:s}=e;a.arc(n+s.topLeft,o+s.topLeft,s.topLeft,1.5*Se,Se,!0),a.lineTo(n,o+i-s.bottomLeft),a.arc(n+s.bottomLeft,o+i-s.bottomLeft,s.bottomLeft,Se,Oe,!0),a.lineTo(n+r-s.bottomRight,o+i),a.arc(n+r-s.bottomRight,o+i-s.bottomRight,s.bottomRight,Oe,0,!0),a.lineTo(n+r,o+s.topRight),a.arc(n+r-s.topRight,o+s.topRight,s.topRight,0,-Oe,!0),a.lineTo(n+s.topLeft,o)}const KO=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,XO=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ZO(a,e){const n=(""+a).match(KO);if(!n||n[1]==="normal")return e*1.2;switch(a=+n[2],n[3]){case"px":return a;case"%":a/=100;break}return e*a}const YO=a=>+a||0;function xI(a,e){const n={},o=Me(e),r=o?Object.keys(e):e,i=Me(a)?o?s=>me(a[s],a[e[s]]):s=>a[s]:()=>a;for(const s of r)n[s]=YO(i(s));return n}function jB(a){return xI(a,{top:"y",right:"x",bottom:"y",left:"x"})}function Cs(a){return xI(a,["topLeft","topRight","bottomLeft","bottomRight"])}function ht(a){const e=jB(a);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ue(a,e){a=a||{},e=e||Te.font;let n=me(a.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let o=me(a.style,e.style);o&&!(""+o).match(XO)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:me(a.family,e.family),lineHeight:ZO(me(a.lineHeight,e.lineHeight),n),size:n,style:o,weight:me(a.weight,e.weight),string:""};return r.string=RO(r),r}function TL(a,e,n,o){let r,i,s;for(r=0,i=a.length;r<i;++r)if(s=a[r],s!==void 0&&s!==void 0)return s}function QO(a,e,n){const{min:o,max:r}=a,i=mB(e,(r-o)/2),s=(c,d)=>n&&c===0?0:c+d;return{min:s(o,-Math.abs(i)),max:s(r,i)}}function Qi(a,e){return Object.assign(Object.create(a),e)}function wI(a,e=[""],n,o,r=()=>a[0]){const i=n||a;typeof o>"u"&&(o=$B("_fallback",a));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:a,_rootScopes:i,_fallback:o,_getTarget:r,override:c=>wI([c,...a],e,i,o)};return new Proxy(s,{deleteProperty(c,d){return delete c[d],delete c._keys,delete a[0][d],!0},get(c,d){return FB(c,d,()=>iF(d,e,a,c))},getOwnPropertyDescriptor(c,d){return Reflect.getOwnPropertyDescriptor(c._scopes[0],d)},getPrototypeOf(){return Reflect.getPrototypeOf(a[0])},has(c,d){return UB(c).includes(d)},ownKeys(c){return UB(c)},set(c,d,h){const u=c._storage||(c._storage=r());return c[d]=u[d]=h,delete c._keys,!0}})}function Ls(a,e,n,o){const r={_cacheable:!1,_proxy:a,_context:e,_subProxy:n,_stack:new Set,_descriptors:OB(a,o),setContext:i=>Ls(a,i,n,o),override:i=>Ls(a.override(i),e,n,o)};return new Proxy(r,{deleteProperty(i,s){return delete i[s],delete a[s],!0},get(i,s,c){return FB(i,s,()=>eF(i,s,c))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(a,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(a,s)},getPrototypeOf(){return Reflect.getPrototypeOf(a)},has(i,s){return Reflect.has(a,s)},ownKeys(){return Reflect.ownKeys(a)},set(i,s,c){return a[s]=c,delete i[s],!0}})}function OB(a,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:o=e.indexable,_allKeys:r=e.allKeys}=a;return{allKeys:r,scriptable:n,indexable:o,isScriptable:xa(n)?n:()=>n,isIndexable:xa(o)?o:()=>o}}const JO=(a,e)=>a?a+hI(e):e,vI=(a,e)=>Me(e)&&a!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function FB(a,e,n){if(Object.prototype.hasOwnProperty.call(a,e)||e==="constructor")return a[e];const o=n();return a[e]=o,o}function eF(a,e,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:s}=a;let c=o[e];return xa(c)&&s.isScriptable(e)&&(c=tF(e,c,a,n)),He(c)&&c.length&&(c=aF(e,c,a,s.isIndexable)),vI(e,c)&&(c=Ls(c,r,i&&i[e],s)),c}function tF(a,e,n,o){const{_proxy:r,_context:i,_subProxy:s,_stack:c}=n;if(c.has(a))throw new Error("Recursion detected: "+Array.from(c).join("->")+"->"+a);c.add(a);let d=e(i,s||o);return c.delete(a),vI(a,d)&&(d=CI(r._scopes,r,a,d)),d}function aF(a,e,n,o){const{_proxy:r,_context:i,_subProxy:s,_descriptors:c}=n;if(typeof i.index<"u"&&o(a))return e[i.index%e.length];if(Me(e[0])){const d=e,h=r._scopes.filter(u=>u!==d);e=[];for(const u of d){const p=CI(h,r,a,u);e.push(Ls(p,i,s&&s[a],c))}}return e}function RB(a,e,n){return xa(a)?a(e,n):a}const nF=(a,e)=>a===!0?e:typeof a=="string"?Gi(e,a):void 0;function oF(a,e,n,o,r){for(const i of e){const s=nF(n,i);if(s){a.add(s);const c=RB(s._fallback,n,r);if(typeof c<"u"&&c!==n&&c!==o)return c}else if(s===!1&&typeof o<"u"&&n!==o)return null}return!1}function CI(a,e,n,o){const r=e._rootScopes,i=RB(e._fallback,n,o),s=[...a,...r],c=new Set;c.add(o);let d=NB(c,s,n,i||n,o);return d===null||typeof i<"u"&&i!==n&&(d=NB(c,s,i,d,o),d===null)?!1:wI(Array.from(c),[""],r,i,()=>rF(e,n,o))}function NB(a,e,n,o,r){for(;n;)n=oF(a,e,n,o,r);return n}function rF(a,e,n){const o=a._getTarget();e in o||(o[e]={});const r=o[e];return He(r)&&Me(n)?n:r||{}}function iF(a,e,n,o){let r;for(const i of e)if(r=$B(JO(i,a),n),typeof r<"u")return vI(a,r)?CI(n,o,a,r):r}function $B(a,e){for(const n of e){if(!n)continue;const o=n[a];if(typeof o<"u")return o}}function UB(a){let e=a._keys;return e||(e=a._keys=sF(a._scopes)),e}function sF(a){const e=new Set;for(const n of a)for(const o of Object.keys(n).filter(r=>!r.startsWith("_")))e.add(o);return Array.from(e)}const lF=Number.EPSILON||1e-14,Ss=(a,e)=>e<a.length&&!a[e].skip&&a[e],WB=a=>a==="x"?"y":"x";function cF(a,e,n,o){const r=a.skip?e:a,i=e,s=n.skip?e:n,c=uI(i,r),d=uI(s,i);let h=c/(c+d),u=d/(c+d);h=isNaN(h)?0:h,u=isNaN(u)?0:u;const p=o*h,y=o*u;return{previous:{x:i.x-p*(s.x-r.x),y:i.y-p*(s.y-r.y)},next:{x:i.x+y*(s.x-r.x),y:i.y+y*(s.y-r.y)}}}function dF(a,e,n){const o=a.length;let r,i,s,c,d,h=Ss(a,0);for(let u=0;u<o-1;++u)if(d=h,h=Ss(a,u+1),!(!d||!h)){if(m1(e[u],0,lF)){n[u]=n[u+1]=0;continue}r=n[u]/e[u],i=n[u+1]/e[u],c=Math.pow(r,2)+Math.pow(i,2),!(c<=9)&&(s=3/Math.sqrt(c),n[u]=r*s*e[u],n[u+1]=i*s*e[u])}}function hF(a,e,n="x"){const o=WB(n),r=a.length;let i,s,c,d=Ss(a,0);for(let h=0;h<r;++h){if(s=c,c=d,d=Ss(a,h+1),!c)continue;const u=c[n],p=c[o];s&&(i=(u-s[n])/3,c[`cp1${n}`]=u-i,c[`cp1${o}`]=p-i*e[h]),d&&(i=(d[n]-u)/3,c[`cp2${n}`]=u+i,c[`cp2${o}`]=p+i*e[h])}}function uF(a,e="x"){const n=WB(e),o=a.length,r=Array(o).fill(0),i=Array(o);let s,c,d,h=Ss(a,0);for(s=0;s<o;++s)if(c=d,d=h,h=Ss(a,s+1),!!d){if(h){const u=h[e]-d[e];r[s]=u!==0?(h[n]-d[n])/u:0}i[s]=c?h?jt(r[s-1])!==jt(r[s])?0:(r[s-1]+r[s])/2:r[s-1]:r[s]}dF(a,r,i),hF(a,i,e)}function HL(a,e,n){return Math.max(Math.min(a,n),e)}function pF(a,e){let n,o,r,i,s,c=w1(a[0],e);for(n=0,o=a.length;n<o;++n)s=i,i=c,c=n<o-1&&w1(a[n+1],e),i&&(r=a[n],s&&(r.cp1x=HL(r.cp1x,e.left,e.right),r.cp1y=HL(r.cp1y,e.top,e.bottom)),c&&(r.cp2x=HL(r.cp2x,e.left,e.right),r.cp2y=HL(r.cp2y,e.top,e.bottom)))}function yF(a,e,n,o,r){let i,s,c,d;if(e.spanGaps&&(a=a.filter(h=>!h.skip)),e.cubicInterpolationMode==="monotone")uF(a,r);else{let h=o?a[a.length-1]:a[0];for(i=0,s=a.length;i<s;++i)c=a[i],d=cF(h,c,a[Math.min(i+1,s-(o?0:1))%s],e.tension),c.cp1x=d.previous.x,c.cp1y=d.previous.y,c.cp2x=d.next.x,c.cp2y=d.next.y,h=c}e.capBezierPoints&&pF(a,n)}function LI(){return typeof window<"u"&&typeof document<"u"}function SI(a){let e=a.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function jL(a,e,n){let o;return typeof a=="string"?(o=parseInt(a,10),a.indexOf("%")!==-1&&(o=o/100*e.parentNode[n])):o=a,o}const OL=a=>a.ownerDocument.defaultView.getComputedStyle(a,null);function fF(a,e){return OL(a).getPropertyValue(e)}const kF=["top","right","bottom","left"];function Ji(a,e,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=kF[r];o[i]=parseFloat(a[e+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const mF=(a,e,n)=>(a>0||e>0)&&(!n||!n.shadowRoot);function gF(a,e){const n=a.touches,o=n&&n.length?n[0]:a,{offsetX:r,offsetY:i}=o;let s=!1,c,d;if(mF(r,i,a.target))c=r,d=i;else{const h=e.getBoundingClientRect();c=o.clientX-h.left,d=o.clientY-h.top,s=!0}return{x:c,y:d,box:s}}function es(a,e){if("native"in a)return a;const{canvas:n,currentDevicePixelRatio:o}=e,r=OL(n),i=r.boxSizing==="border-box",s=Ji(r,"padding"),c=Ji(r,"border","width"),{x:d,y:h,box:u}=gF(a,n),p=s.left+(u&&c.left),y=s.top+(u&&c.top);let{width:f,height:k}=e;return i&&(f-=s.width+c.width,k-=s.height+c.height),{x:Math.round((d-p)/f*n.width/o),y:Math.round((h-y)/k*n.height/o)}}function bF(a,e,n){let o,r;if(e===void 0||n===void 0){const i=a&&SI(a);if(!i)e=a.clientWidth,n=a.clientHeight;else{const s=i.getBoundingClientRect(),c=OL(i),d=Ji(c,"border","width"),h=Ji(c,"padding");e=s.width-h.width-d.width,n=s.height-h.height-d.height,o=jL(c.maxWidth,i,"clientWidth"),r=jL(c.maxHeight,i,"clientHeight")}}return{width:e,height:n,maxWidth:o||zL,maxHeight:r||zL}}const wa=a=>Math.round(a*10)/10;function MF(a,e,n,o){const r=OL(a),i=Ji(r,"margin"),s=jL(r.maxWidth,a,"clientWidth")||zL,c=jL(r.maxHeight,a,"clientHeight")||zL,d=bF(a,e,n);let{width:h,height:u}=d;if(r.boxSizing==="content-box"){const y=Ji(r,"border","width"),f=Ji(r,"padding");h-=f.width+y.width,u-=f.height+y.height}return h=Math.max(0,h-i.width),u=Math.max(0,o?h/o:u-i.height),h=wa(Math.min(h,s,d.maxWidth)),u=wa(Math.min(u,c,d.maxHeight)),h&&!u&&(u=wa(h/2)),(e!==void 0||n!==void 0)&&o&&d.height&&u>d.height&&(u=d.height,h=wa(Math.floor(u*o))),{width:h,height:u}}function GB(a,e,n){const o=e||1,r=wa(a.height*o),i=wa(a.width*o);a.height=wa(a.height),a.width=wa(a.width);const s=a.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${a.height}px`,s.style.width=`${a.width}px`),a.currentDevicePixelRatio!==o||s.height!==r||s.width!==i?(a.currentDevicePixelRatio=o,s.height=r,s.width=i,a.ctx.setTransform(o,0,0,o,0,0),!0):!1}const xF=(function(){let a=!1;try{const e={get passive(){return a=!0,!1}};LI()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return a})();function KB(a,e){const n=fF(a,e),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function ts(a,e,n,o){return{x:a.x+n*(e.x-a.x),y:a.y+n*(e.y-a.y)}}function wF(a,e,n,o){return{x:a.x+n*(e.x-a.x),y:o==="middle"?n<.5?a.y:e.y:o==="after"?n<1?a.y:e.y:n>0?e.y:a.y}}function vF(a,e,n,o){const r={x:a.cp2x,y:a.cp2y},i={x:e.cp1x,y:e.cp1y},s=ts(a,r,n),c=ts(r,i,n),d=ts(i,e,n),h=ts(s,c,n),u=ts(c,d,n);return ts(h,u,n)}const CF=function(a,e){return{x(n){return a+a+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,o){return n-o},leftForLtr(n,o){return n-o}}},LF=function(){return{x(a){return a},setWidth(a){},textAlign(a){return a},xPlus(a,e){return a+e},leftForLtr(a,e){return a}}};function Is(a,e,n){return a?CF(e,n):LF()}function XB(a,e){let n,o;(e==="ltr"||e==="rtl")&&(n=a.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),a.prevTextDirection=o)}function ZB(a,e){e!==void 0&&(delete a.prevTextDirection,a.canvas.style.setProperty("direction",e[0],e[1]))}function YB(a){return a==="angle"?{between:b1,compare:CO,normalize:nt}:{between:Jt,compare:(e,n)=>e-n,normalize:e=>e}}function QB({start:a,end:e,count:n,loop:o,style:r}){return{start:a%n,end:e%n,loop:o&&(e-a+1)%n===0,style:r}}function SF(a,e,n){const{property:o,start:r,end:i}=n,{between:s,normalize:c}=YB(o),d=e.length;let{start:h,end:u,loop:p}=a,y,f;if(p){for(h+=d,u+=d,y=0,f=d;y<f&&s(c(e[h%d][o]),r,i);++y)h--,u--;h%=d,u%=d}return u<h&&(u+=d),{start:h,end:u,loop:p,style:a.style}}function JB(a,e,n){if(!n)return[a];const{property:o,start:r,end:i}=n,s=e.length,{compare:c,between:d,normalize:h}=YB(o),{start:u,end:p,loop:y,style:f}=SF(a,e,n),k=[];let m=!1,g=null,v,L,w;const M=()=>d(r,w,v)&&c(r,w)!==0,C=()=>c(i,v)===0||d(i,w,v),S=()=>m||M(),b=()=>!m||C();for(let x=u,I=u;x<=p;++x)L=e[x%s],!L.skip&&(v=h(L[o]),v!==w&&(m=d(v,r,i),g===null&&S()&&(g=c(v,r)===0?x:I),g!==null&&b()&&(k.push(QB({start:g,end:x,loop:y,count:s,style:f})),g=null),I=x,w=v));return g!==null&&k.push(QB({start:g,end:p,loop:y,count:s,style:f})),k}function eV(a,e){const n=[],o=a.segments;for(let r=0;r<o.length;r++){const i=JB(o[r],a.points,e);i.length&&n.push(...i)}return n}function IF(a,e,n,o){let r=0,i=e-1;if(n&&!o)for(;r<e&&!a[r].skip;)r++;for(;r<e&&a[r].skip;)r++;for(r%=e,n&&(i+=r);i>r&&a[i%e].skip;)i--;return i%=e,{start:r,end:i}}function _F(a,e,n,o){const r=a.length,i=[];let s=e,c=a[e],d;for(d=e+1;d<=n;++d){const h=a[d%r];h.skip||h.stop?c.skip||(o=!1,i.push({start:e%r,end:(d-1)%r,loop:o}),e=s=h.stop?d:null):(s=d,c.skip&&(e=d)),c=h}return s!==null&&i.push({start:e%r,end:s%r,loop:o}),i}function AF(a,e){const n=a.points,o=a.options.spanGaps,r=n.length;if(!r)return[];const i=!!a._loop,{start:s,end:c}=IF(n,r,i,o);if(o===!0)return tV(a,[{start:s,end:c,loop:i}],n,e);const d=c<s?c+r:c,h=!!a._fullLoop&&s===0&&c===r-1;return tV(a,_F(n,s,d,h),n,e)}function tV(a,e,n,o){return!o||!o.setContext||!n?e:BF(a,e,n,o)}function BF(a,e,n,o){const r=a._chart.getContext(),i=aV(a.options),{_datasetIndex:s,options:{spanGaps:c}}=a,d=n.length,h=[];let u=i,p=e[0].start,y=p;function f(k,m,g,v){const L=c?-1:1;if(k!==m){for(k+=d;n[k%d].skip;)k-=L;for(;n[m%d].skip;)m+=L;k%d!==m%d&&(h.push({start:k%d,end:m%d,loop:g,style:v}),u=v,p=m%d)}}for(const k of e){p=c?p:k.start;let m=n[p%d],g;for(y=p+1;y<=k.end;y++){const v=n[y%d];g=aV(o.setContext(Qi(r,{type:"segment",p0:m,p1:v,p0DataIndex:(y-1)%d,p1DataIndex:y%d,datasetIndex:s}))),VF(g,u)&&f(p,y-1,k.loop,u),m=v,u=g}p<y-1&&f(p,y-1,k.loop,u)}return h}function aV(a){return{backgroundColor:a.backgroundColor,borderCapStyle:a.borderCapStyle,borderDash:a.borderDash,borderDashOffset:a.borderDashOffset,borderJoinStyle:a.borderJoinStyle,borderWidth:a.borderWidth,borderColor:a.borderColor}}function VF(a,e){if(!e)return!1;const n=[],o=function(r,i){return fI(i)?(n.includes(i)||n.push(i),n.indexOf(i)):i};return JSON.stringify(a,o)!==JSON.stringify(e,o)}function FL(a,e,n){return a.options.clip?a[n]:e[n]}function zF(a,e){const{xScale:n,yScale:o}=a;return n&&o?{left:FL(n,e,"left"),right:FL(n,e,"right"),top:FL(o,e,"top"),bottom:FL(o,e,"bottom")}:e}function nV(a,e){const n=e._clip;if(n.disabled)return!1;const o=zF(e,a.chartArea);return{left:n.left===!1?0:o.left-(n.left===!0?0:n.left),right:n.right===!1?a.width:o.right+(n.right===!0?0:n.right),top:n.top===!1?0:o.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?a.height:o.bottom+(n.bottom===!0?0:n.bottom)}}/*!
|
|
8513
8513
|
* Chart.js v4.5.1
|
|
8514
8514
|
* https://www.chartjs.org
|
|
8515
8515
|
* (c) 2025 Chart.js Contributors
|
|
8516
8516
|
* Released under the MIT License
|
|
8517
|
-
*/class qF{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,o,r){const i=n.listeners[r],s=n.duration;i.forEach(c=>c({chart:e,initial:n.initial,numSteps:s,currentStep:Math.min(o-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=_B.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((o,r)=>{if(!o.running||!o.items.length)return;const i=o.items;let s=i.length-1,c=!1,d;for(;s>=0;--s)d=i[s],d._active?(d._total>o.duration&&(o.duration=d._total),d.tick(e),c=!0):(i[s]=i[i.length-1],i.pop());c&&(r.draw(),this._notify(r,o,e,"progress")),i.length||(o.running=!1,this._notify(r,o,e,"complete"),o.initial=!1),n+=i.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let o=n.get(e);return o||(o={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,o)),o}listen(e,n,o){this._getAnims(e).listeners[n].push(o)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((o,r)=>Math.max(o,r._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const o=n.items;let r=o.length-1;for(;r>=0;--r)o[r].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var ea=new qF;const nV="transparent",PF={boolean(a,e,n){return n>.5?e:a},color(a,e,n){const o=zB(a||nV),r=o.valid&&zB(e||nV);return r&&r.valid?r.mix(o,n).hexString():e},number(a,e,n){return a+(e-a)*n}};class DF{constructor(e,n,o,r){const i=n[o];r=TL([e.to,r,i,e.from]);const s=TL([e.from,i,r]);this._active=!0,this._fn=e.fn||PF[e.type||typeof s],this._easing=M1[e.easing]||M1.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=o,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(e,n,o){if(this._active){this._notify(!1);const r=this._target[this._prop],i=o-this._start,s=this._duration-i;this._start=o,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=TL([e.to,n,r,e.from]),this._from=TL([e.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,o=this._duration,r=this._prop,i=this._from,s=this._loop,c=this._to;let d;if(this._active=i!==c&&(s||n<o),!this._active){this._target[r]=c,this._notify(!0);return}if(n<0){this._target[r]=i;return}d=n/o%2,d=s&&d>1?2-d:d,d=this._easing(Math.min(1,Math.max(0,d))),this._target[r]=this._fn(i,c,d)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,o)=>{e.push({res:n,rej:o})})}_notify(e){const n=e?"res":"rej",o=this._promises||[];for(let r=0;r<o.length;r++)o[r][n]()}}class oV{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!Me(e))return;const n=Object.keys(Te.animation),o=this._properties;Object.getOwnPropertyNames(e).forEach(r=>{const i=e[r];if(!Me(i))return;const s={};for(const c of n)s[c]=i[c];(He(i.properties)&&i.properties||[r]).forEach(c=>{(c===r||!o.has(c))&&o.set(c,s)})})}_animateOptions(e,n){const o=n.options,r=TF(e,o);if(!r)return[];const i=this._createAnimations(r,o);return o.$shared&&EF(e.options.$animations,o).then(()=>{e.options=o},()=>{}),i}_createAnimations(e,n){const o=this._properties,r=[],i=e.$animations||(e.$animations={}),s=Object.keys(n),c=Date.now();let d;for(d=s.length-1;d>=0;--d){const h=s[d];if(h.charAt(0)==="$")continue;if(h==="options"){r.push(...this._animateOptions(e,n));continue}const u=n[h];let p=i[h];const y=o.get(h);if(p)if(y&&p.active()){p.update(y,u,c);continue}else p.cancel();if(!y||!y.duration){e[h]=u;continue}i[h]=p=new DF(y,e,h,u),r.push(p)}return r}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const o=this._createAnimations(e,n);if(o.length)return ea.add(this._chart,o),!0}}function EF(a,e){const n=[],o=Object.keys(e);for(let r=0;r<o.length;r++){const i=a[o[r]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function TF(a,e){if(!e)return;let n=a.options;if(!n){a.options=e;return}return n.$shared&&(a.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function rV(a,e){const n=a&&a.options||{},o=n.reverse,r=n.min===void 0?e:0,i=n.max===void 0?e:0;return{start:o?i:r,end:o?r:i}}function HF(a,e,n){if(n===!1)return!1;const o=rV(a,n),r=rV(e,n);return{top:r.end,right:o.end,bottom:r.start,left:o.start}}function jF(a){let e,n,o,r;return Me(a)?(e=a.top,n=a.right,o=a.bottom,r=a.left):e=n=o=r=a,{top:e,right:n,bottom:o,left:r,disabled:a===!1}}function iV(a,e){const n=[],o=a._getSortedDatasetMetas(e);let r,i;for(r=0,i=o.length;r<i;++r)n.push(o[r].index);return n}function sV(a,e,n,o={}){const r=a.keys,i=o.mode==="single";let s,c,d,h;if(e===null)return;let u=!1;for(s=0,c=r.length;s<c;++s){if(d=+r[s],d===n){if(u=!0,o.all)continue;break}h=a.values[d],Re(h)&&(i||e===0||jt(e)===jt(h))&&(e+=h)}return!u&&!o.all?0:e}function OF(a,e){const{iScale:n,vScale:o}=e,r=n.axis==="x"?"x":"y",i=o.axis==="x"?"x":"y",s=Object.keys(a),c=new Array(s.length);let d,h,u;for(d=0,h=s.length;d<h;++d)u=s[d],c[d]={[r]:u,[i]:a[u]};return c}function II(a,e){const n=a&&a.options.stacked;return n||n===void 0&&e.stack!==void 0}function FF(a,e,n){return`${a.id}.${e.id}.${n.stack||n.type}`}function RF(a){const{min:e,max:n,minDefined:o,maxDefined:r}=a.getUserBounds();return{min:o?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}function NF(a,e,n){const o=a[e]||(a[e]={});return o[n]||(o[n]={})}function lV(a,e,n,o){for(const r of e.getMatchingVisibleMetas(o).reverse()){const i=a[r.index];if(n&&i>0||!n&&i<0)return r.index}return null}function cV(a,e){const{chart:n,_cachedMeta:o}=a,r=n._stacks||(n._stacks={}),{iScale:i,vScale:s,index:c}=o,d=i.axis,h=s.axis,u=FF(i,s,o),p=e.length;let y;for(let f=0;f<p;++f){const k=e[f],{[d]:m,[h]:g}=k,v=k._stacks||(k._stacks={});y=v[h]=NF(r,u,m),y[c]=g,y._top=lV(y,s,!0,o.type),y._bottom=lV(y,s,!1,o.type);const L=y._visualValues||(y._visualValues={});L[c]=g}}function _I(a,e){const n=a.scales;return Object.keys(n).filter(o=>n[o].axis===e).shift()}function $F(a,e){return Qi(a,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function UF(a,e,n){return Qi(a,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function C1(a,e){const n=a.controller.index,o=a.vScale&&a.vScale.axis;if(o){e=e||a._parsed;for(const r of e){const i=r._stacks;if(!i||i[o]===void 0||i[o][n]===void 0)return;delete i[o][n],i[o]._visualValues!==void 0&&i[o]._visualValues[n]!==void 0&&delete i[o]._visualValues[n]}}}const AI=a=>a==="reset"||a==="none",dV=(a,e)=>e?a:Object.assign({},a),WF=(a,e,n)=>a&&!e.hidden&&e._stacked&&{keys:iV(n,!0),values:null};class as{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=II(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&C1(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,o=this.getDataset(),r=(p,y,f,k)=>p==="x"?y:p==="r"?k:f,i=n.xAxisID=me(o.xAxisID,_I(e,"x")),s=n.yAxisID=me(o.yAxisID,_I(e,"y")),c=n.rAxisID=me(o.rAxisID,_I(e,"r")),d=n.indexAxis,h=n.iAxisID=r(d,i,s,c),u=n.vAxisID=r(d,s,i,c);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(c),n.iScale=this.getScaleForId(h),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&SB(this._data,this),e._stacked&&C1(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),o=this._data;if(Me(n)){const r=this._cachedMeta;this._data=OF(n,r)}else if(o!==n){if(o){SB(o,this);const r=this._cachedMeta;C1(r),r._parsed=[]}n&&Object.isExtensible(n)&&_O(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,o=this.getDataset();let r=!1;this._dataCheck();const i=n._stacked;n._stacked=II(n.vScale,n),n.stack!==o.stack&&(r=!0,C1(n),n.stack=o.stack),this._resyncElements(e),(r||i!==n._stacked)&&(cV(this,n._parsed),n._stacked=II(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),o=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:o,_data:r}=this,{iScale:i,_stacked:s}=o,c=i.axis;let d=e===0&&n===r.length?!0:o._sorted,h=e>0&&o._parsed[e-1],u,p,y;if(this._parsing===!1)o._parsed=r,o._sorted=!0,y=r;else{He(r[e])?y=this.parseArrayData(o,r,e,n):Me(r[e])?y=this.parseObjectData(o,r,e,n):y=this.parsePrimitiveData(o,r,e,n);const f=()=>p[c]===null||h&&p[c]<h[c];for(u=0;u<n;++u)o._parsed[u+e]=p=y[u],d&&(f()&&(d=!1),h=p);o._sorted=d}s&&cV(this,y)}parsePrimitiveData(e,n,o,r){const{iScale:i,vScale:s}=e,c=i.axis,d=s.axis,h=i.getLabels(),u=i===s,p=new Array(r);let y,f,k;for(y=0,f=r;y<f;++y)k=y+o,p[y]={[c]:u||i.parse(h[k],k),[d]:s.parse(n[k],k)};return p}parseArrayData(e,n,o,r){const{xScale:i,yScale:s}=e,c=new Array(r);let d,h,u,p;for(d=0,h=r;d<h;++d)u=d+o,p=n[u],c[d]={x:i.parse(p[0],u),y:s.parse(p[1],u)};return c}parseObjectData(e,n,o,r){const{xScale:i,yScale:s}=e,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=new Array(r);let u,p,y,f;for(u=0,p=r;u<p;++u)y=u+o,f=n[y],h[u]={x:i.parse(Gi(f,c),y),y:s.parse(Gi(f,d),y)};return h}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,o){const r=this.chart,i=this._cachedMeta,s=n[e.axis],c={keys:iV(r,!0),values:n._stacks[e.axis]._visualValues};return sV(c,s,i.index,{mode:o})}updateRangeFromParsed(e,n,o,r){const i=o[n.axis];let s=i===null?NaN:i;const c=r&&o._stacks[n.axis];r&&c&&(r.values=c,s=sV(r,i,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,n){const o=this._cachedMeta,r=o._parsed,i=o._sorted&&e===o.iScale,s=r.length,c=this._getOtherScale(e),d=WF(n,o,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:p}=RF(c);let y,f;function k(){f=r[y];const m=f[c.axis];return!Re(f[e.axis])||u>m||p<m}for(y=0;y<s&&!(!k()&&(this.updateRangeFromParsed(h,e,f,d),i));++y);if(i){for(y=s-1;y>=0;--y)if(!k()){this.updateRangeFromParsed(h,e,f,d);break}}return h}getAllParsedValues(e){const n=this._cachedMeta._parsed,o=[];let r,i,s;for(r=0,i=n.length;r<i;++r)s=n[r][e.axis],Re(s)&&o.push(s);return o}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,o=n.iScale,r=n.vScale,i=this.getParsed(e);return{label:o?""+o.getLabelForValue(i[o.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=jF(me(this.options.clip,HF(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,o=this._cachedMeta,r=o.data||[],i=n.chartArea,s=[],c=this._drawStart||0,d=this._drawCount||r.length-c,h=this.options.drawActiveElementsOnTop;let u;for(o.dataset&&o.dataset.draw(e,i,c,d),u=c;u<c+d;++u){const p=r[u];p.hidden||(p.active&&h?s.push(p):p.draw(e,i))}for(u=0;u<s.length;++u)s[u].draw(e,i)}getStyle(e,n){const o=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(o):this.resolveDataElementOptions(e||0,o)}getContext(e,n,o){const r=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];i=s.$context||(s.$context=UF(this.getContext(),e,s)),i.parsed=this.getParsed(e),i.raw=r.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=$F(this.chart.getContext(),this.index)),i.dataset=r,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=o,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",o){const r=n==="active",i=this._cachedDataOpts,s=e+"-"+n,c=i[s],d=this.enableOptionSharing&&k1(o);if(c)return dV(c,d);const h=this.chart.config,u=h.datasetElementScopeKeys(this._type,e),p=r?[`${e}Hover`,"hover",e,""]:[e,""],y=h.getOptionScopes(this.getDataset(),u),f=Object.keys(Te.elements[e]),k=()=>this.getContext(o,r,n),m=h.resolveNamedOptions(y,f,k,p);return m.$shared&&(m.$shared=d,i[s]=Object.freeze(dV(m,d))),m}_resolveAnimations(e,n,o){const r=this.chart,i=this._cachedDataOpts,s=`animation-${n}`,c=i[s];if(c)return c;let d;if(r.options.animation!==!1){const u=this.chart.config,p=u.datasetAnimationScopeKeys(this._type,n),y=u.getOptionScopes(this.getDataset(),p);d=u.createResolver(y,this.getContext(e,o,n))}const h=new oV(r,d&&d.animations);return d&&d._cacheable&&(i[s]=Object.freeze(h)),h}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||AI(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const o=this.resolveDataElementOptions(e,n),r=this._sharedOptions,i=this.getSharedOptions(o),s=this.includeOptions(n,i)||i!==r;return this.updateSharedOptions(i,n,o),{sharedOptions:i,includeOptions:s}}updateElement(e,n,o,r){AI(r)?Object.assign(e,o):this._resolveAnimations(n,r).update(e,o)}updateSharedOptions(e,n,o){e&&!AI(n)&&this._resolveAnimations(void 0,n).update(e,o)}_setStyle(e,n,o,r){e.active=r;const i=this.getStyle(n,r);this._resolveAnimations(n,o,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,n,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,n,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,o=this._cachedMeta.data;for(const[c,d,h]of this._syncList)this[c](d,h);this._syncList=[];const r=o.length,i=n.length,s=Math.min(i,r);s&&this.parse(0,s),i>r?this._insertElements(r,i-r,e):i<r&&this._removeElements(i,r-i)}_insertElements(e,n,o=!0){const r=this._cachedMeta,i=r.data,s=e+n;let c;const d=h=>{for(h.length+=n,c=h.length-1;c>=s;c--)h[c]=h[c-n]};for(d(i),c=e;c<s;++c)i[c]=new this.dataElementType;this._parsing&&d(r._parsed),this.parse(e,n),o&&this.updateElements(i,e,n,"reset")}updateElements(e,n,o,r){}_removeElements(e,n){const o=this._cachedMeta;if(this._parsing){const r=o._parsed.splice(e,n);o._stacked&&C1(o,r)}o.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,o,r]=e;this[n](o,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const o=arguments.length-2;o&&this._sync(["_insertElements",e,o])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ce(as,"defaults",{}),ce(as,"datasetElementType",null),ce(as,"dataElementType",null);function GF(a,e){if(!a._cache.$bar){const n=a.getMatchingVisibleMetas(e);let o=[];for(let r=0,i=n.length;r<i;r++)o=o.concat(n[r].controller.getAllParsedValues(a));a._cache.$bar=IB(o.sort((r,i)=>r-i))}return a._cache.$bar}function KF(a){const e=a.iScale,n=GF(e,a.type);let o=e._length,r,i,s,c;const d=()=>{s===32767||s===-32768||(k1(c)&&(o=Math.min(o,Math.abs(s-c)||o)),c=s)};for(r=0,i=n.length;r<i;++r)s=e.getPixelForValue(n[r]),d();for(c=void 0,r=0,i=e.ticks.length;r<i;++r)s=e.getPixelForTick(r),d();return o}function XF(a,e,n,o){const r=n.barThickness;let i,s;return Ce(r)?(i=e.min*n.categoryPercentage,s=n.barPercentage):(i=r*o,s=1),{chunk:i/o,ratio:s,start:e.pixels[a]-i/2}}function ZF(a,e,n,o){const r=e.pixels,i=r[a];let s=a>0?r[a-1]:null,c=a<r.length-1?r[a+1]:null;const d=n.categoryPercentage;s===null&&(s=i-(c===null?e.end-e.start:c-i)),c===null&&(c=i+i-s);const h=i-(i-Math.min(s,c))/2*d;return{chunk:Math.abs(c-s)/2*d/o,ratio:n.barPercentage,start:h}}function YF(a,e,n,o){const r=n.parse(a[0],o),i=n.parse(a[1],o),s=Math.min(r,i),c=Math.max(r,i);let d=s,h=c;Math.abs(s)>Math.abs(c)&&(d=c,h=s),e[n.axis]=h,e._custom={barStart:d,barEnd:h,start:r,end:i,min:s,max:c}}function hV(a,e,n,o){return He(a)?YF(a,e,n,o):e[n.axis]=n.parse(a,o),e}function uV(a,e,n,o){const r=a.iScale,i=a.vScale,s=r.getLabels(),c=r===i,d=[];let h,u,p,y;for(h=n,u=n+o;h<u;++h)y=e[h],p={},p[r.axis]=c||r.parse(s[h],h),d.push(hV(y,p,i,h));return d}function BI(a){return a&&a.barStart!==void 0&&a.barEnd!==void 0}function QF(a,e,n){return a!==0?jt(a):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function JF(a){let e,n,o,r,i;return a.horizontal?(e=a.base>a.x,n="left",o="right"):(e=a.base<a.y,n="bottom",o="top"),e?(r="end",i="start"):(r="start",i="end"),{start:n,end:o,reverse:e,top:r,bottom:i}}function eR(a,e,n,o){let r=e.borderSkipped;const i={};if(!r){a.borderSkipped=i;return}if(r===!0){a.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:c,reverse:d,top:h,bottom:u}=JF(a);r==="middle"&&n&&(a.enableBorderRadius=!0,(n._top||0)===o?r=h:(n._bottom||0)===o?r=u:(i[pV(u,s,c,d)]=!0,r=h)),i[pV(r,s,c,d)]=!0,a.borderSkipped=i}function pV(a,e,n,o){return o?(a=tR(a,e,n),a=yV(a,n,e)):a=yV(a,e,n),a}function tR(a,e,n){return a===e?n:a===n?e:a}function yV(a,e,n){return a==="start"?e:a==="end"?n:a}function aR(a,{inflateAmount:e},n){a.inflateAmount=e==="auto"?n===1?.33:0:e}class RL extends as{parsePrimitiveData(e,n,o,r){return uV(e,n,o,r)}parseArrayData(e,n,o,r){return uV(e,n,o,r)}parseObjectData(e,n,o,r){const{iScale:i,vScale:s}=e,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=i.axis==="x"?c:d,u=s.axis==="x"?c:d,p=[];let y,f,k,m;for(y=o,f=o+r;y<f;++y)m=n[y],k={},k[i.axis]=i.parse(Gi(m,h),y),p.push(hV(Gi(m,u),k,s,y));return p}updateRangeFromParsed(e,n,o,r){super.updateRangeFromParsed(e,n,o,r);const i=o._custom;i&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:o,vScale:r}=n,i=this.getParsed(e),s=i._custom,c=BI(s)?"["+s.start+", "+s.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+o.getLabelForValue(i[o.axis]),value:c}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,o,r){const i=r==="reset",{index:s,_cachedMeta:{vScale:c}}=this,d=c.getBasePixel(),h=c.isHorizontal(),u=this._getRuler(),{sharedOptions:p,includeOptions:y}=this._getSharedOptions(n,r);for(let f=n;f<n+o;f++){const k=this.getParsed(f),m=i||Ce(k[c.axis])?{base:d,head:d}:this._calculateBarValuePixels(f),g=this._calculateBarIndexPixels(f,u),v=(k._stacks||{})[c.axis],L={horizontal:h,base:m.base,enableBorderRadius:!v||BI(k._custom)||s===v._top||s===v._bottom,x:h?m.head:g.center,y:h?g.center:m.head,height:h?g.size:Math.abs(m.size),width:h?Math.abs(m.size):g.size};y&&(L.options=p||this.resolveDataElementOptions(f,e[f].active?"active":r));const w=L.options||e[f].options;eR(L,w,v,s),aR(L,w,u.ratio),this.updateElement(e[f],f,L,r)}}_getStacks(e,n){const{iScale:o}=this._cachedMeta,r=o.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),i=o.options.stacked,s=[],c=this._cachedMeta.controller.getParsed(n),d=c&&c[o.axis],h=u=>{const p=u._parsed.find(f=>f[o.axis]===d),y=p&&p[u.vScale.axis];if(Ce(y)||isNaN(y))return!0};for(const u of r)if(!(n!==void 0&&h(u))&&((i===!1||s.indexOf(u.stack)===-1||i===void 0&&u.stack===void 0)&&s.push(u.stack),u.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const e=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(e).filter(o=>e[o].axis===n).shift()}_getAxis(){const e={},n=this.getFirstScaleIdForIndexAxis();for(const o of this.chart.data.datasets)e[me(this.chart.options.indexAxis==="x"?o.xAxisID:o.yAxisID,n)]=!0;return Object.keys(e)}_getStackIndex(e,n,o){const r=this._getStacks(e,o),i=n!==void 0?r.indexOf(n):-1;return i===-1?r.length-1:i}_getRuler(){const e=this.options,n=this._cachedMeta,o=n.iScale,r=[];let i,s;for(i=0,s=n.data.length;i<s;++i)r.push(o.getPixelForValue(this.getParsed(i)[o.axis],i));const c=e.barThickness;return{min:c||KF(n),pixels:r,start:o._startPixel,end:o._endPixel,stackCount:this._getStackCount(),scale:o,grouped:e.grouped,ratio:c?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:o,index:r},options:{base:i,minBarLength:s}}=this,c=i||0,d=this.getParsed(e),h=d._custom,u=BI(h);let p=d[n.axis],y=0,f=o?this.applyStack(n,d,o):p,k,m;f!==p&&(y=f-p,f=p),u&&(p=h.barStart,f=h.barEnd-h.barStart,p!==0&&jt(p)!==jt(h.barEnd)&&(y=0),y+=p);const g=!Ce(i)&&!u?i:y;let v=n.getPixelForValue(g);if(this.chart.getDataVisibility(e)?k=n.getPixelForValue(y+f):k=v,m=k-v,Math.abs(m)<s){m=QF(m,n,c)*s,p===c&&(v-=m/2);const L=n.getPixelForDecimal(0),w=n.getPixelForDecimal(1),M=Math.min(L,w),C=Math.max(L,w);v=Math.max(Math.min(v,C),M),k=v+m,o&&!u&&(d._stacks[n.axis]._visualValues[r]=n.getValueForPixel(k)-n.getValueForPixel(v))}if(v===n.getPixelForValue(c)){const L=jt(m)*n.getLineWidthForValue(c)/2;v+=L,m-=L}return{size:m,base:v,head:k,center:k+m/2}}_calculateBarIndexPixels(e,n){const o=n.scale,r=this.options,i=r.skipNull,s=me(r.maxBarThickness,1/0);let c,d;const h=this._getAxisCount();if(n.grouped){const u=i?this._getStackCount(e):n.stackCount,p=r.barThickness==="flex"?ZF(e,n,r,u*h):XF(e,n,r,u*h),y=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,f=this._getAxis().indexOf(me(y,this.getFirstScaleIdForIndexAxis())),k=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0)+f;c=p.start+p.chunk*k+p.chunk/2,d=Math.min(s,p.chunk*p.ratio)}else c=o.getPixelForValue(this.getParsed(e)[o.axis],e),d=Math.min(s,n.min*n.ratio);return{base:c-d/2,head:c+d/2,center:c,size:d}}draw(){const e=this._cachedMeta,n=e.vScale,o=e.data,r=o.length;let i=0;for(;i<r;++i)this.getParsed(i)[n.axis]!==null&&!o[i].hidden&&o[i].draw(this._ctx)}}ce(RL,"id","bar"),ce(RL,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),ce(RL,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function nR(a,e,n){let o=1,r=1,i=0,s=0;if(e<ze){const c=a,d=c+e,h=Math.cos(c),u=Math.sin(c),p=Math.cos(d),y=Math.sin(d),f=(w,M,C)=>b1(w,c,d,!0)?1:Math.max(M,M*n,C,C*n),k=(w,M,C)=>b1(w,c,d,!0)?-1:Math.min(M,M*n,C,C*n),m=f(0,h,p),g=f(Oe,u,y),v=k(Se,h,p),L=k(Se+Oe,u,y);o=(m-v)/2,r=(g-L)/2,i=-(m+v)/2,s=-(g+L)/2}return{ratioX:o,ratioY:r,offsetX:i,offsetY:s}}class _s extends as{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const o=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=o;else{let i=d=>+o[d];if(Me(o[e])){const{key:d="value"}=this._parsing;i=h=>+Gi(o[h],d)}let s,c;for(s=e,c=e+n;s<c;++s)r._parsed[s]=i(s)}}_getRotation(){return Qt(this.options.rotation-90)}_getCircumference(){return Qt(this.options.circumference)}_getRotationExtents(){let e=ze,n=-ze;for(let o=0;o<this.chart.data.datasets.length;++o)if(this.chart.isDatasetVisible(o)&&this.chart.getDatasetMeta(o).type===this._type){const r=this.chart.getDatasetMeta(o).controller,i=r._getRotation(),s=r._getCircumference();e=Math.min(e,i),n=Math.max(n,i+s)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:o}=n,r=this._cachedMeta,i=r.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,c=Math.max((Math.min(o.width,o.height)-s)/2,0),d=Math.min(hO(this.options.cutout,c),1),h=this._getRingWeight(this.index),{circumference:u,rotation:p}=this._getRotationExtents(),{ratioX:y,ratioY:f,offsetX:k,offsetY:m}=nR(p,u,d),g=(o.width-s)/y,v=(o.height-s)/f,L=Math.max(Math.min(g,v)/2,0),w=kB(this.options.radius,L),M=Math.max(w*d,0),C=(w-M)/this._getVisibleDatasetWeightTotal();this.offsetX=k*w,this.offsetY=m*w,r.total=this.calculateTotal(),this.outerRadius=w-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*h,0),this.updateElements(i,0,i.length,e)}_circumference(e,n){const o=this.options,r=this._cachedMeta,i=this._getCircumference();return n&&o.animation.animateRotate||!this.chart.getDataVisibility(e)||r._parsed[e]===null||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*i/ze)}updateElements(e,n,o,r){const i=r==="reset",s=this.chart,c=s.chartArea,h=s.options.animation,u=(c.left+c.right)/2,p=(c.top+c.bottom)/2,y=i&&h.animateScale,f=y?0:this.innerRadius,k=y?0:this.outerRadius,{sharedOptions:m,includeOptions:g}=this._getSharedOptions(n,r);let v=this._getRotation(),L;for(L=0;L<n;++L)v+=this._circumference(L,i);for(L=n;L<n+o;++L){const w=this._circumference(L,i),M=e[L],C={x:u+this.offsetX,y:p+this.offsetY,startAngle:v,endAngle:v+w,circumference:w,outerRadius:k,innerRadius:f};g&&(C.options=m||this.resolveDataElementOptions(L,M.active?"active":r)),v+=w,this.updateElement(M,L,C,r)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let o=0,r;for(r=0;r<n.length;r++){const i=e._parsed[r];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(r)&&!n[r].hidden&&(o+=Math.abs(i))}return o}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?ze*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,o=this.chart,r=o.data.labels||[],i=mI(n._parsed[e],o.options.locale);return{label:r[e]||"",value:i}}getMaxBorderWidth(e){let n=0;const o=this.chart;let r,i,s,c,d;if(!e){for(r=0,i=o.data.datasets.length;r<i;++r)if(o.isDatasetVisible(r)){s=o.getDatasetMeta(r),e=s.data,c=s.controller;break}}if(!e)return 0;for(r=0,i=e.length;r<i;++r)d=c.resolveDataElementOptions(r),d.borderAlign!=="inner"&&(n=Math.max(n,d.borderWidth||0,d.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let o=0,r=e.length;o<r;++o){const i=this.resolveDataElementOptions(o);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let o=0;o<e;++o)this.chart.isDatasetVisible(o)&&(n+=this._getRingWeight(o));return n}_getRingWeight(e){return Math.max(me(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ce(_s,"id","doughnut"),ce(_s,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ce(_s,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),ce(_s,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data,{labels:{pointStyle:o,textAlign:r,color:i,useBorderRadius:s,borderRadius:c}}=e.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((d,h)=>{const p=e.getDatasetMeta(0).controller.getStyle(h);return{text:d,fillStyle:p.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(h),lineDash:p.borderDash,lineDashOffset:p.borderDashOffset,lineJoin:p.borderJoinStyle,lineWidth:p.borderWidth,strokeStyle:p.borderColor,textAlign:r,pointStyle:o,borderRadius:s&&(c||p.borderRadius),index:h}}):[]}},onClick(e,n,o){o.chart.toggleDataVisibility(n.index),o.chart.update()}}}});class NL extends as{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:o,data:r=[],_dataset:i}=n,s=this.chart._animationsDisabled;let{start:c,count:d}=VO(n,r,s);this._drawStart=c,this._drawCount=d,zO(n)&&(c=0,d=r.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!i._decimated,o.points=r;const h=this.resolveDatasetElementOptions(e);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(o,void 0,{animated:!s,options:h},e),this.updateElements(r,c,d,e)}updateElements(e,n,o,r){const i=r==="reset",{iScale:s,vScale:c,_stacked:d,_dataset:h}=this._cachedMeta,{sharedOptions:u,includeOptions:p}=this._getSharedOptions(n,r),y=s.axis,f=c.axis,{spanGaps:k,segment:m}=this.options,g=g1(k)?k:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||i||r==="none",L=n+o,w=e.length;let M=n>0&&this.getParsed(n-1);for(let C=0;C<w;++C){const S=e[C],b=v?S:{};if(C<n||C>=L){b.skip=!0;continue}const x=this.getParsed(C),I=Ce(x[f]),V=b[y]=s.getPixelForValue(x[y],C),B=b[f]=i||I?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,x,d):x[f],C);b.skip=isNaN(V)||isNaN(B)||I,b.stop=C>0&&Math.abs(x[y]-M[y])>g,m&&(b.parsed=x,b.raw=h.data[C]),p&&(b.options=u||this.resolveDataElementOptions(C,S.active?"active":r)),v||this.updateElement(S,C,b,r),M=x}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,o=n.options&&n.options.borderWidth||0,r=e.data||[];if(!r.length)return o;const i=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(o,i,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}ce(NL,"id","line"),ce(NL,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ce(NL,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class VI extends _s{}ce(VI,"id","pie"),ce(VI,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});function ns(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class zI{constructor(e){ce(this,"options");this.options=e||{}}static override(e){Object.assign(zI.prototype,e)}init(){}formats(){return ns()}parse(){return ns()}format(){return ns()}add(){return ns()}diff(){return ns()}startOf(){return ns()}endOf(){return ns()}}var oR={_date:zI};function rR(a,e,n,o){const{controller:r,data:i,_sorted:s}=a,c=r._cachedMeta.iScale,d=a.dataset&&a.dataset.options?a.dataset.options.spanGaps:null;if(c&&e===c.axis&&e!=="r"&&s&&i.length){const h=c._reversePixels?SO:Xi;if(o){if(r._sharedOptions){const u=i[0],p=typeof u.getRange=="function"&&u.getRange(e);if(p){const y=h(i,e,n-p),f=h(i,e,n+p);return{lo:y.lo,hi:f.hi}}}}else{const u=h(i,e,n);if(d){const{vScale:p}=r._cachedMeta,{_parsed:y}=a,f=y.slice(0,u.lo+1).reverse().findIndex(m=>!Ce(m[p.axis]));u.lo-=Math.max(0,f);const k=y.slice(u.hi).findIndex(m=>!Ce(m[p.axis]));u.hi+=Math.max(0,k)}return u}}return{lo:0,hi:i.length-1}}function $L(a,e,n,o,r){const i=a.getSortedVisibleDatasetMetas(),s=n[e];for(let c=0,d=i.length;c<d;++c){const{index:h,data:u}=i[c],{lo:p,hi:y}=rR(i[c],e,s,r);for(let f=p;f<=y;++f){const k=u[f];k.skip||o(k,h,f)}}}function iR(a){const e=a.indexOf("x")!==-1,n=a.indexOf("y")!==-1;return function(o,r){const i=e?Math.abs(o.x-r.x):0,s=n?Math.abs(o.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function qI(a,e,n,o,r){const i=[];return!r&&!a.isPointInArea(e)||$L(a,n,e,function(c,d,h){!r&&!w1(c,a.chartArea,0)||c.inRange(e.x,e.y,o)&&i.push({element:c,datasetIndex:d,index:h})},!0),i}function sR(a,e,n,o){let r=[];function i(s,c,d){const{startAngle:h,endAngle:u}=s.getProps(["startAngle","endAngle"],o),{angle:p}=CB(s,{x:e.x,y:e.y});b1(p,h,u)&&r.push({element:s,datasetIndex:c,index:d})}return $L(a,n,e,i),r}function lR(a,e,n,o,r,i){let s=[];const c=iR(n);let d=Number.POSITIVE_INFINITY;function h(u,p,y){const f=u.inRange(e.x,e.y,r);if(o&&!f)return;const k=u.getCenterPoint(r);if(!(!!i||a.isPointInArea(k))&&!f)return;const g=c(e,k);g<d?(s=[{element:u,datasetIndex:p,index:y}],d=g):g===d&&s.push({element:u,datasetIndex:p,index:y})}return $L(a,n,e,h),s}function PI(a,e,n,o,r,i){return!i&&!a.isPointInArea(e)?[]:n==="r"&&!o?sR(a,e,n,r):lR(a,e,n,o,r,i)}function fV(a,e,n,o,r){const i=[],s=n==="x"?"inXRange":"inYRange";let c=!1;return $L(a,n,e,(d,h,u)=>{d[s]&&d[s](e[n],r)&&(i.push({element:d,datasetIndex:h,index:u}),c=c||d.inRange(e.x,e.y,r))}),o&&!c?[]:i}var cR={modes:{index(a,e,n,o){const r=es(e,a),i=n.axis||"x",s=n.includeInvisible||!1,c=n.intersect?qI(a,r,i,o,s):PI(a,r,i,!1,o,s),d=[];return c.length?(a.getSortedVisibleDatasetMetas().forEach(h=>{const u=c[0].index,p=h.data[u];p&&!p.skip&&d.push({element:p,datasetIndex:h.index,index:u})}),d):[]},dataset(a,e,n,o){const r=es(e,a),i=n.axis||"xy",s=n.includeInvisible||!1;let c=n.intersect?qI(a,r,i,o,s):PI(a,r,i,!1,o,s);if(c.length>0){const d=c[0].datasetIndex,h=a.getDatasetMeta(d).data;c=[];for(let u=0;u<h.length;++u)c.push({element:h[u],datasetIndex:d,index:u})}return c},point(a,e,n,o){const r=es(e,a),i=n.axis||"xy",s=n.includeInvisible||!1;return qI(a,r,i,o,s)},nearest(a,e,n,o){const r=es(e,a),i=n.axis||"xy",s=n.includeInvisible||!1;return PI(a,r,i,n.intersect,o,s)},x(a,e,n,o){const r=es(e,a);return fV(a,r,"x",n.intersect,o)},y(a,e,n,o){const r=es(e,a);return fV(a,r,"y",n.intersect,o)}}};const kV=["left","top","right","bottom"];function L1(a,e){return a.filter(n=>n.pos===e)}function mV(a,e){return a.filter(n=>kV.indexOf(n.pos)===-1&&n.box.axis===e)}function S1(a,e){return a.sort((n,o)=>{const r=e?o:n,i=e?n:o;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function dR(a){const e=[];let n,o,r,i,s,c;for(n=0,o=(a||[]).length;n<o;++n)r=a[n],{position:i,options:{stack:s,stackWeight:c=1}}=r,e.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&i+s,stackWeight:c});return e}function hR(a){const e={};for(const n of a){const{stack:o,pos:r,stackWeight:i}=n;if(!o||!kV.includes(r))continue;const s=e[o]||(e[o]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return e}function uR(a,e){const n=hR(a),{vBoxMaxWidth:o,hBoxMaxHeight:r}=e;let i,s,c;for(i=0,s=a.length;i<s;++i){c=a[i];const{fullSize:d}=c.box,h=n[c.stack],u=h&&c.stackWeight/h.weight;c.horizontal?(c.width=u?u*o:d&&e.availableWidth,c.height=r):(c.width=o,c.height=u?u*r:d&&e.availableHeight)}return n}function pR(a){const e=dR(a),n=S1(e.filter(h=>h.box.fullSize),!0),o=S1(L1(e,"left"),!0),r=S1(L1(e,"right")),i=S1(L1(e,"top"),!0),s=S1(L1(e,"bottom")),c=mV(e,"x"),d=mV(e,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(d).concat(s).concat(c),chartArea:L1(e,"chartArea"),vertical:o.concat(r).concat(d),horizontal:i.concat(s).concat(c)}}function gV(a,e,n,o){return Math.max(a[n],e[n])+Math.max(a[o],e[o])}function bV(a,e){a.top=Math.max(a.top,e.top),a.left=Math.max(a.left,e.left),a.bottom=Math.max(a.bottom,e.bottom),a.right=Math.max(a.right,e.right)}function yR(a,e,n,o){const{pos:r,box:i}=n,s=a.maxPadding;if(!Me(r)){n.size&&(a[r]-=n.size);const p=o[n.stack]||{size:0,count:1};p.size=Math.max(p.size,n.horizontal?i.height:i.width),n.size=p.size/p.count,a[r]+=n.size}i.getPadding&&bV(s,i.getPadding());const c=Math.max(0,e.outerWidth-gV(s,a,"left","right")),d=Math.max(0,e.outerHeight-gV(s,a,"top","bottom")),h=c!==a.w,u=d!==a.h;return a.w=c,a.h=d,n.horizontal?{same:h,other:u}:{same:u,other:h}}function fR(a){const e=a.maxPadding;function n(o){const r=Math.max(e[o]-a[o],0);return a[o]+=r,r}a.y+=n("top"),a.x+=n("left"),n("right"),n("bottom")}function kR(a,e){const n=e.maxPadding;function o(r){const i={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{i[s]=Math.max(e[s],n[s])}),i}return o(a?["left","right"]:["top","bottom"])}function I1(a,e,n,o){const r=[];let i,s,c,d,h,u;for(i=0,s=a.length,h=0;i<s;++i){c=a[i],d=c.box,d.update(c.width||e.w,c.height||e.h,kR(c.horizontal,e));const{same:p,other:y}=yR(e,n,c,o);h|=p&&r.length,u=u||y,d.fullSize||r.push(c)}return h&&I1(r,e,n,o)||u}function UL(a,e,n,o,r){a.top=n,a.left=e,a.right=e+o,a.bottom=n+r,a.width=o,a.height=r}function MV(a,e,n,o){const r=n.padding;let{x:i,y:s}=e;for(const c of a){const d=c.box,h=o[c.stack]||{placed:0,weight:1},u=c.stackWeight/h.weight||1;if(c.horizontal){const p=e.w*u,y=h.size||d.height;k1(h.start)&&(s=h.start),d.fullSize?UL(d,r.left,s,n.outerWidth-r.right-r.left,y):UL(d,e.left+h.placed,s,p,y),h.start=s,h.placed+=p,s=d.bottom}else{const p=e.h*u,y=h.size||d.width;k1(h.start)&&(i=h.start),d.fullSize?UL(d,i,r.top,y,n.outerHeight-r.bottom-r.top):UL(d,i,e.top+h.placed,y,p),h.start=i,h.placed+=p,i=d.right}}e.x=i,e.y=s}var ut={addBox(a,e){a.boxes||(a.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},a.boxes.push(e)},removeBox(a,e){const n=a.boxes?a.boxes.indexOf(e):-1;n!==-1&&a.boxes.splice(n,1)},configure(a,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(a,e,n,o){if(!a)return;const r=ht(a.options.layout.padding),i=Math.max(e-r.width,0),s=Math.max(n-r.height,0),c=pR(a.boxes),d=c.vertical,h=c.horizontal;Le(a.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=d.reduce((m,g)=>g.box.options&&g.box.options.display===!1?m:m+1,0)||1,p=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/u,hBoxMaxHeight:s/2}),y=Object.assign({},r);bV(y,ht(o));const f=Object.assign({maxPadding:y,w:i,h:s,x:r.left,y:r.top},r),k=uR(d.concat(h),p);I1(c.fullSize,f,p,k),I1(d,f,p,k),I1(h,f,p,k)&&I1(d,f,p,k),fR(f),MV(c.leftAndTop,f,p,k),f.x+=f.w,f.y+=f.h,MV(c.rightAndBottom,f,p,k),a.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Le(c.chartArea,m=>{const g=m.box;Object.assign(g,a.chartArea),g.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class xV{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,o){}removeEventListener(e,n,o){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,o,r){return n=Math.max(0,n||e.width),o=o||e.height,{width:n,height:Math.max(0,r?Math.floor(n/r):o)}}isAttached(e){return!0}updateConfig(e){}}class mR extends xV{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const WL="$chartjs",gR={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},wV=a=>a===null||a==="";function bR(a,e){const n=a.style,o=a.getAttribute("height"),r=a.getAttribute("width");if(a[WL]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",wV(r)){const i=GB(a,"width");i!==void 0&&(a.width=i)}if(wV(o))if(a.style.height==="")a.height=a.width/(e||2);else{const i=GB(a,"height");i!==void 0&&(a.height=i)}return a}const vV=xF?{passive:!0}:!1;function MR(a,e,n){a&&a.addEventListener(e,n,vV)}function xR(a,e,n){a&&a.canvas&&a.canvas.removeEventListener(e,n,vV)}function wR(a,e){const n=gR[a.type]||a.type,{x:o,y:r}=es(a,e);return{type:n,chart:e,native:a,x:o!==void 0?o:null,y:r!==void 0?r:null}}function GL(a,e){for(const n of a)if(n===e||n.contains(e))return!0}function vR(a,e,n){const o=a.canvas,r=new MutationObserver(i=>{let s=!1;for(const c of i)s=s||GL(c.addedNodes,o),s=s&&!GL(c.removedNodes,o);s&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function CR(a,e,n){const o=a.canvas,r=new MutationObserver(i=>{let s=!1;for(const c of i)s=s||GL(c.removedNodes,o),s=s&&!GL(c.addedNodes,o);s&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const _1=new Map;let CV=0;function LV(){const a=window.devicePixelRatio;a!==CV&&(CV=a,_1.forEach((e,n)=>{n.currentDevicePixelRatio!==a&&e()}))}function LR(a,e){_1.size||window.addEventListener("resize",LV),_1.set(a,e)}function SR(a){_1.delete(a),_1.size||window.removeEventListener("resize",LV)}function IR(a,e,n){const o=a.canvas,r=o&&SI(o);if(!r)return;const i=AB((c,d)=>{const h=r.clientWidth;n(c,d),h<r.clientWidth&&n()},window),s=new ResizeObserver(c=>{const d=c[0],h=d.contentRect.width,u=d.contentRect.height;h===0&&u===0||i(h,u)});return s.observe(r),LR(a,i),s}function DI(a,e,n){n&&n.disconnect(),e==="resize"&&SR(a)}function _R(a,e,n){const o=a.canvas,r=AB(i=>{a.ctx!==null&&n(wR(i,a))},a);return MR(o,e,r),r}class AR extends xV{acquireContext(e,n){const o=e&&e.getContext&&e.getContext("2d");return o&&o.canvas===e?(bR(e,n),o):null}releaseContext(e){const n=e.canvas;if(!n[WL])return!1;const o=n[WL].initial;["height","width"].forEach(i=>{const s=o[i];Ce(s)?n.removeAttribute(i):n.setAttribute(i,s)});const r=o.style||{};return Object.keys(r).forEach(i=>{n.style[i]=r[i]}),n.width=n.width,delete n[WL],!0}addEventListener(e,n,o){this.removeEventListener(e,n);const r=e.$proxies||(e.$proxies={}),s={attach:vR,detach:CR,resize:IR}[n]||_R;r[n]=s(e,n,o)}removeEventListener(e,n){const o=e.$proxies||(e.$proxies={}),r=o[n];if(!r)return;({attach:DI,detach:DI,resize:DI}[n]||xR)(e,n,r),o[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,o,r){return MF(e,n,o,r)}isAttached(e){const n=e&&SI(e);return!!(n&&n.isConnected)}}function BR(a){return!LI()||typeof OffscreenCanvas<"u"&&a instanceof OffscreenCanvas?mR:AR}let ta=(pS=class{constructor(){ce(this,"x");ce(this,"y");ce(this,"active",!1);ce(this,"options");ce(this,"$animations")}tooltipPosition(e){const{x:n,y:o}=this.getProps(["x","y"],e);return{x:n,y:o}}hasValue(){return g1(this.x)&&g1(this.y)}getProps(e,n){const o=this.$animations;if(!n||!o)return this;const r={};return e.forEach(i=>{r[i]=o[i]&&o[i].active()?o[i]._to:this[i]}),r}},ce(pS,"defaults",{}),ce(pS,"defaultRoutes"),pS);function VR(a,e){const n=a.options.ticks,o=zR(a),r=Math.min(n.maxTicksLimit||o,o),i=n.major.enabled?PR(e):[],s=i.length,c=i[0],d=i[s-1],h=[];if(s>r)return DR(e,h,i,s/r),h;const u=qR(i,e,r);if(s>0){let p,y;const f=s>1?Math.round((d-c)/(s-1)):null;for(KL(e,h,u,Ce(f)?0:c-f,c),p=0,y=s-1;p<y;p++)KL(e,h,u,i[p],i[p+1]);return KL(e,h,u,d,Ce(f)?e.length:d+f),h}return KL(e,h,u),h}function zR(a){const e=a.options.offset,n=a._tickSize(),o=a._length/n+(e?0:1),r=a._maxLength/n;return Math.floor(Math.min(o,r))}function qR(a,e,n){const o=ER(a),r=e.length/n;if(!o)return Math.max(r,1);const i=bO(o);for(let s=0,c=i.length-1;s<c;s++){const d=i[s];if(d>r)return d}return Math.max(r,1)}function PR(a){const e=[];let n,o;for(n=0,o=a.length;n<o;n++)a[n].major&&e.push(n);return e}function DR(a,e,n,o){let r=0,i=n[0],s;for(o=Math.ceil(o),s=0;s<a.length;s++)s===i&&(e.push(a[s]),r++,i=n[r*o])}function KL(a,e,n,o,r){const i=me(o,0),s=Math.min(me(r,a.length),a.length);let c=0,d,h,u;for(n=Math.ceil(n),r&&(d=r-o,n=d/Math.floor(d/n)),u=i;u<0;)c++,u=Math.round(i+c*n);for(h=Math.max(i,0);h<s;h++)h===u&&(e.push(a[h]),c++,u=Math.round(i+c*n))}function ER(a){const e=a.length;let n,o;if(e<2)return!1;for(o=a[0],n=1;n<e;++n)if(a[n]-a[n-1]!==o)return!1;return o}const TR=a=>a==="left"?"right":a==="right"?"left":a,SV=(a,e,n)=>e==="top"||e==="left"?a[e]+n:a[e]-n,IV=(a,e)=>Math.min(e||a,a);function _V(a,e){const n=[],o=a.length/e,r=a.length;let i=0;for(;i<r;i+=o)n.push(a[Math.floor(i)]);return n}function HR(a,e,n){const o=a.ticks.length,r=Math.min(e,o-1),i=a._startPixel,s=a._endPixel,c=1e-6;let d=a.getPixelForTick(r),h;if(!(n&&(o===1?h=Math.max(d-i,s-d):e===0?h=(a.getPixelForTick(1)-d)/2:h=(d-a.getPixelForTick(r-1))/2,d+=r<e?h:-h,d<i-c||d>s+c)))return d}function jR(a,e){Le(a,n=>{const o=n.gc,r=o.length/2;let i;if(r>e){for(i=0;i<r;++i)delete n.data[o[i]];o.splice(0,r)}})}function A1(a){return a.drawTicks?a.tickLength:0}function AV(a,e){if(!a.display)return 0;const n=Ue(a.font,e),o=ht(a.padding);return(He(a.text)?a.text.length:1)*n.lineHeight+o.height}function OR(a,e){return Qi(a,{scale:e,type:"scale"})}function FR(a,e,n){return Qi(a,{tick:n,index:e,type:"tick"})}function RR(a,e,n){let o=yI(a);return(n&&e!=="right"||!n&&e==="right")&&(o=TR(o)),o}function NR(a,e,n,o){const{top:r,left:i,bottom:s,right:c,chart:d}=a,{chartArea:h,scales:u}=d;let p=0,y,f,k;const m=s-r,g=c-i;if(a.isHorizontal()){if(f=$e(o,i,c),Me(n)){const v=Object.keys(n)[0],L=n[v];k=u[v].getPixelForValue(L)+m-e}else n==="center"?k=(h.bottom+h.top)/2+m-e:k=SV(a,n,e);y=c-i}else{if(Me(n)){const v=Object.keys(n)[0],L=n[v];f=u[v].getPixelForValue(L)-g+e}else n==="center"?f=(h.left+h.right)/2-g+e:f=SV(a,n,e);k=$e(o,s,r),p=n==="left"?-Oe:Oe}return{titleX:f,titleY:k,maxWidth:y,rotation:p}}class As extends ta{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:o,_suggestedMax:r}=this;return e=Ht(e,Number.POSITIVE_INFINITY),n=Ht(n,Number.NEGATIVE_INFINITY),o=Ht(o,Number.POSITIVE_INFINITY),r=Ht(r,Number.NEGATIVE_INFINITY),{min:Ht(e,o),max:Ht(n,r),minDefined:Re(e),maxDefined:Re(n)}}getMinMax(e){let{min:n,max:o,minDefined:r,maxDefined:i}=this.getUserBounds(),s;if(r&&i)return{min:n,max:o};const c=this.getMatchingVisibleMetas();for(let d=0,h=c.length;d<h;++d)s=c[d].controller.getMinMax(this,e),r||(n=Math.min(n,s.min)),i||(o=Math.max(o,s.max));return n=i&&n>o?o:n,o=r&&n>o?n:o,{min:Ht(n,Ht(o,n)),max:Ht(o,Ht(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ae(this.options.beforeUpdate,[this])}update(e,n,o){const{beginAtZero:r,grace:i,ticks:s}=this.options,c=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=o=Object.assign({left:0,right:0,top:0,bottom:0},o),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+o.left+o.right:this.height+o.top+o.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=QO(this,i,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const d=c<this.ticks.length;this._convertTicksToLabels(d?_V(this.ticks,c):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=VR(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),d&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,o;this.isHorizontal()?(n=this.left,o=this.right):(n=this.top,o=this.bottom,e=!e),this._startPixel=n,this._endPixel=o,this._reversePixels=e,this._length=o-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ae(this.options.afterUpdate,[this])}beforeSetDimensions(){Ae(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ae(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Ae(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ae(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let o,r,i;for(o=0,r=e.length;o<r;o++)i=e[o],i.label=Ae(n.callback,[i.value,o,e],this)}afterTickToLabelConversion(){Ae(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ae(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,o=IV(this.ticks.length,e.ticks.maxTicksLimit),r=n.minRotation||0,i=n.maxRotation;let s=r,c,d,h;if(!this._isVisible()||!n.display||r>=i||o<=1||!this.isHorizontal()){this.labelRotation=r;return}const u=this._getLabelSizes(),p=u.widest.width,y=u.highest.height,f=Ne(this.chart.width-p,0,this.maxWidth);c=e.offset?this.maxWidth/o:f/(o-1),p+6>c&&(c=f/(o-(e.offset?.5:1)),d=this.maxHeight-A1(e.grid)-n.padding-AV(e.title,this.chart.options.font),h=Math.sqrt(p*p+y*y),s=vO(Math.min(Math.asin(Ne((u.highest.height+6)/c,-1,1)),Math.asin(Ne(d/h,-1,1))-Math.asin(Ne(y/h,-1,1)))),s=Math.max(r,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){Ae(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ae(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:o,title:r,grid:i}}=this,s=this._isVisible(),c=this.isHorizontal();if(s){const d=AV(r,n.options.font);if(c?(e.width=this.maxWidth,e.height=A1(i)+d):(e.height=this.maxHeight,e.width=A1(i)+d),o.display&&this.ticks.length){const{first:h,last:u,widest:p,highest:y}=this._getLabelSizes(),f=o.padding*2,k=Qt(this.labelRotation),m=Math.cos(k),g=Math.sin(k);if(c){const v=o.mirror?0:g*p.width+m*y.height;e.height=Math.min(this.maxHeight,e.height+v+f)}else{const v=o.mirror?0:m*p.width+g*y.height;e.width=Math.min(this.maxWidth,e.width+v+f)}this._calculatePadding(h,u,g,m)}}this._handleMargins(),c?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,o,r){const{ticks:{align:i,padding:s},position:c}=this.options,d=this.labelRotation!==0,h=c!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let y=0,f=0;d?h?(y=r*e.width,f=o*n.height):(y=o*e.height,f=r*n.width):i==="start"?f=n.width:i==="end"?y=e.width:i!=="inner"&&(y=e.width/2,f=n.width/2),this.paddingLeft=Math.max((y-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-p+s)*this.width/(this.width-p),0)}else{let u=n.height/2,p=e.height/2;i==="start"?(u=0,p=e.height):i==="end"&&(u=n.height,p=0),this.paddingTop=u+s,this.paddingBottom=p+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ae(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,o;for(n=0,o=e.length;n<o;n++)Ce(e[n].label)&&(e.splice(n,1),o--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let o=this.ticks;n<o.length&&(o=_V(o,n)),this._labelSizes=e=this._computeLabelSizes(o,o.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,o){const{ctx:r,_longestTextCache:i}=this,s=[],c=[],d=Math.floor(n/IV(n,o));let h=0,u=0,p,y,f,k,m,g,v,L,w,M,C;for(p=0;p<n;p+=d){if(k=e[p].label,m=this._resolveTickFontOptions(p),r.font=g=m.string,v=i[g]=i[g]||{data:{},gc:[]},L=m.lineHeight,w=M=0,!Ce(k)&&!He(k))w=DB(r,v.data,v.gc,w,k),M=L;else if(He(k))for(y=0,f=k.length;y<f;++y)C=k[y],!Ce(C)&&!He(C)&&(w=DB(r,v.data,v.gc,w,C),M+=L);s.push(w),c.push(M),h=Math.max(w,h),u=Math.max(M,u)}jR(i,n);const S=s.indexOf(h),b=c.indexOf(u),x=I=>({width:s[I]||0,height:c[I]||0});return{first:x(0),last:x(n-1),widest:x(S),highest:x(b),widths:s,heights:c}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return LO(this._alignToPixels?Yi(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const o=n[e];return o.$context||(o.$context=FR(this.getContext(),e,o))}return this.$context||(this.$context=OR(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Qt(this.labelRotation),o=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),i=this._getLabelSizes(),s=e.autoSkipPadding||0,c=i?i.widest.width+s:0,d=i?i.highest.height+s:0;return this.isHorizontal()?d*o>c*r?c/o:d/r:d*r<c*o?d/o:c/r}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,o=this.chart,r=this.options,{grid:i,position:s,border:c}=r,d=i.offset,h=this.isHorizontal(),p=this.ticks.length+(d?1:0),y=A1(i),f=[],k=c.setContext(this.getContext()),m=k.display?k.width:0,g=m/2,v=function(T){return Yi(o,T,m)};let L,w,M,C,S,b,x,I,V,B,A,P;if(s==="top")L=v(this.bottom),b=this.bottom-y,I=L-g,B=v(e.top)+g,P=e.bottom;else if(s==="bottom")L=v(this.top),B=e.top,P=v(e.bottom)-g,b=L+g,I=this.top+y;else if(s==="left")L=v(this.right),S=this.right-y,x=L-g,V=v(e.left)+g,A=e.right;else if(s==="right")L=v(this.left),V=e.left,A=v(e.right)-g,S=L+g,x=this.left+y;else if(n==="x"){if(s==="center")L=v((e.top+e.bottom)/2+.5);else if(Me(s)){const T=Object.keys(s)[0],H=s[T];L=v(this.chart.scales[T].getPixelForValue(H))}B=e.top,P=e.bottom,b=L+g,I=b+y}else if(n==="y"){if(s==="center")L=v((e.left+e.right)/2);else if(Me(s)){const T=Object.keys(s)[0],H=s[T];L=v(this.chart.scales[T].getPixelForValue(H))}S=L-g,x=S-y,V=e.left,A=e.right}const D=me(r.ticks.maxTicksLimit,p),U=Math.max(1,Math.ceil(p/D));for(w=0;w<p;w+=U){const T=this.getContext(w),H=i.setContext(T),N=c.setContext(T),Q=H.lineWidth,j=H.color,F=N.dash||[],R=N.dashOffset,Z=H.tickWidth,J=H.tickColor,re=H.tickBorderDash||[],de=H.tickBorderDashOffset;M=HR(this,w,d),M!==void 0&&(C=Yi(o,M,Q),h?S=x=V=A=C:b=I=B=P=C,f.push({tx1:S,ty1:b,tx2:x,ty2:I,x1:V,y1:B,x2:A,y2:P,width:Q,color:j,borderDash:F,borderDashOffset:R,tickWidth:Z,tickColor:J,tickBorderDash:re,tickBorderDashOffset:de}))}return this._ticksLength=p,this._borderValue=L,f}_computeLabelItems(e){const n=this.axis,o=this.options,{position:r,ticks:i}=o,s=this.isHorizontal(),c=this.ticks,{align:d,crossAlign:h,padding:u,mirror:p}=i,y=A1(o.grid),f=y+u,k=p?-u:f,m=-Qt(this.labelRotation),g=[];let v,L,w,M,C,S,b,x,I,V,B,A,P="middle";if(r==="top")S=this.bottom-k,b=this._getXAxisLabelAlignment();else if(r==="bottom")S=this.top+k,b=this._getXAxisLabelAlignment();else if(r==="left"){const U=this._getYAxisLabelAlignment(y);b=U.textAlign,C=U.x}else if(r==="right"){const U=this._getYAxisLabelAlignment(y);b=U.textAlign,C=U.x}else if(n==="x"){if(r==="center")S=(e.top+e.bottom)/2+f;else if(Me(r)){const U=Object.keys(r)[0],T=r[U];S=this.chart.scales[U].getPixelForValue(T)+f}b=this._getXAxisLabelAlignment()}else if(n==="y"){if(r==="center")C=(e.left+e.right)/2-f;else if(Me(r)){const U=Object.keys(r)[0],T=r[U];C=this.chart.scales[U].getPixelForValue(T)}b=this._getYAxisLabelAlignment(y).textAlign}n==="y"&&(d==="start"?P="top":d==="end"&&(P="bottom"));const D=this._getLabelSizes();for(v=0,L=c.length;v<L;++v){w=c[v],M=w.label;const U=i.setContext(this.getContext(v));x=this.getPixelForTick(v)+i.labelOffset,I=this._resolveTickFontOptions(v),V=I.lineHeight,B=He(M)?M.length:1;const T=B/2,H=U.color,N=U.textStrokeColor,Q=U.textStrokeWidth;let j=b;s?(C=x,b==="inner"&&(v===L-1?j=this.options.reverse?"left":"right":v===0?j=this.options.reverse?"right":"left":j="center"),r==="top"?h==="near"||m!==0?A=-B*V+V/2:h==="center"?A=-D.highest.height/2-T*V+V:A=-D.highest.height+V/2:h==="near"||m!==0?A=V/2:h==="center"?A=D.highest.height/2-T*V:A=D.highest.height-B*V,p&&(A*=-1),m!==0&&!U.showLabelBackdrop&&(C+=V/2*Math.sin(m))):(S=x,A=(1-B)*V/2);let F;if(U.showLabelBackdrop){const R=ht(U.backdropPadding),Z=D.heights[v],J=D.widths[v];let re=A-R.top,de=0-R.left;switch(P){case"middle":re-=Z/2;break;case"bottom":re-=Z;break}switch(b){case"center":de-=J/2;break;case"right":de-=J;break;case"inner":v===L-1?de-=J:v>0&&(de-=J/2);break}F={left:de,top:re,width:J+R.width,height:Z+R.height,color:U.backdropColor}}g.push({label:M,font:I,textOffset:A,options:{rotation:m,color:H,strokeColor:N,strokeWidth:Q,textAlign:j,textBaseline:P,translation:[C,S],backdrop:F}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Qt(this.labelRotation))return e==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:o,mirror:r,padding:i}}=this.options,s=this._getLabelSizes(),c=e+i,d=s.widest.width;let h,u;return n==="left"?r?(u=this.right+i,o==="near"?h="left":o==="center"?(h="center",u+=d/2):(h="right",u+=d)):(u=this.right-c,o==="near"?h="right":o==="center"?(h="center",u-=d/2):(h="left",u=this.left)):n==="right"?r?(u=this.left+i,o==="near"?h="right":o==="center"?(h="center",u-=d/2):(h="left",u-=d)):(u=this.left+c,o==="near"?h="left":o==="center"?(h="center",u+=d/2):(h="right",u=this.right)):h="right",{textAlign:h,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:o,top:r,width:i,height:s}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(o,r,i,s),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(i=>i.value===e);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(e){const n=this.options.grid,o=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,s;const c=(d,h,u)=>{!u.width||!u.color||(o.save(),o.lineWidth=u.width,o.strokeStyle=u.color,o.setLineDash(u.borderDash||[]),o.lineDashOffset=u.borderDashOffset,o.beginPath(),o.moveTo(d.x,d.y),o.lineTo(h.x,h.y),o.stroke(),o.restore())};if(n.display)for(i=0,s=r.length;i<s;++i){const d=r[i];n.drawOnChartArea&&c({x:d.x1,y:d.y1},{x:d.x2,y:d.y2},d),n.drawTicks&&c({x:d.tx1,y:d.ty1},{x:d.tx2,y:d.ty2},{color:d.tickColor,width:d.tickWidth,borderDash:d.tickBorderDash,borderDashOffset:d.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:o,grid:r}}=this,i=o.setContext(this.getContext()),s=o.display?i.width:0;if(!s)return;const c=r.setContext(this.getContext(0)).lineWidth,d=this._borderValue;let h,u,p,y;this.isHorizontal()?(h=Yi(e,this.left,s)-s/2,u=Yi(e,this.right,c)+c/2,p=y=d):(p=Yi(e,this.top,s)-s/2,y=Yi(e,this.bottom,c)+c/2,h=u=d),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(h,p),n.lineTo(u,y),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const o=this.ctx,r=this._computeLabelArea();r&&PL(o,r);const i=this.getLabelItems(e);for(const s of i){const c=s.options,d=s.font,h=s.label,u=s.textOffset;v1(o,h,0,u,d,c)}r&&DL(o)}drawTitle(){const{ctx:e,options:{position:n,title:o,reverse:r}}=this;if(!o.display)return;const i=Ue(o.font),s=ht(o.padding),c=o.align;let d=i.lineHeight/2;n==="bottom"||n==="center"||Me(n)?(d+=s.bottom,He(o.text)&&(d+=i.lineHeight*(o.text.length-1))):d+=s.top;const{titleX:h,titleY:u,maxWidth:p,rotation:y}=NR(this,d,n,c);v1(e,o.text,0,0,i,{color:o.color,maxWidth:p,rotation:y,textAlign:RR(c,n,r),textBaseline:"middle",translation:[h,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,o=me(e.grid&&e.grid.z,-1),r=me(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==As.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:o,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),o=this.axis+"AxisID",r=[];let i,s;for(i=0,s=n.length;i<s;++i){const c=n[i];c[o]===this.id&&(!e||c.type===e)&&r.push(c)}return r}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return Ue(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class XL{constructor(e,n,o){this.type=e,this.scope=n,this.override=o,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let o;WR(n)&&(o=this.register(n));const r=this.items,i=e.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in r||(r[i]=e,$R(e,s,o),this.override&&Te.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const n=this.items,o=e.id,r=this.scope;o in n&&delete n[o],r&&o in Te[r]&&(delete Te[r][o],this.override&&delete Zi[o])}}function $R(a,e,n){const o=y1(Object.create(null),[n?Te.get(n):{},Te.get(e),a.defaults]);Te.set(e,o),a.defaultRoutes&&UR(e,a.defaultRoutes),a.descriptors&&Te.describe(e,a.descriptors)}function UR(a,e){Object.keys(e).forEach(n=>{const o=n.split("."),r=o.pop(),i=[a].concat(o).join("."),s=e[n].split("."),c=s.pop(),d=s.join(".");Te.route(i,r,d,c)})}function WR(a){return"id"in a&&"defaults"in a}class GR{constructor(){this.controllers=new XL(as,"datasets",!0),this.elements=new XL(ta,"elements"),this.plugins=new XL(Object,"plugins"),this.scales=new XL(As,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,o){[...n].forEach(r=>{const i=o||this._getRegistryForType(r);o||i.isForType(r)||i===this.plugins&&r.id?this._exec(e,i,r):Le(r,s=>{const c=o||this._getRegistryForType(s);this._exec(e,c,s)})})}_exec(e,n,o){const r=hI(e);Ae(o["before"+r],[],o),n[e](o),Ae(o["after"+r],[],o)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const o=this._typedRegistries[n];if(o.isForType(e))return o}return this.plugins}_get(e,n,o){const r=n.get(e);if(r===void 0)throw new Error('"'+e+'" is not a registered '+o+".");return r}}var Ot=new GR;class KR{constructor(){this._init=void 0}notify(e,n,o,r){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const i=r?this._descriptors(e).filter(r):this._descriptors(e),s=this._notify(i,e,n,o);return n==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),s}_notify(e,n,o,r){r=r||{};for(const i of e){const s=i.plugin,c=s[o],d=[n,r,i.options];if(Ae(c,d,s)===!1&&r.cancelable)return!1}return!0}invalidate(){Ce(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const o=e&&e.config,r=me(o.options&&o.options.plugins,{}),i=XR(o);return r===!1&&!n?[]:YR(e,i,r,n)}_notifyStateChanges(e){const n=this._oldCache||[],o=this._cache,r=(i,s)=>i.filter(c=>!s.some(d=>c.plugin.id===d.plugin.id));this._notify(r(n,o),e,"stop"),this._notify(r(o,n),e,"start")}}function XR(a){const e={},n=[],o=Object.keys(Ot.plugins.items);for(let i=0;i<o.length;i++)n.push(Ot.getPlugin(o[i]));const r=a.plugins||[];for(let i=0;i<r.length;i++){const s=r[i];n.indexOf(s)===-1&&(n.push(s),e[s.id]=!0)}return{plugins:n,localIds:e}}function ZR(a,e){return!e&&a===!1?null:a===!0?{}:a}function YR(a,{plugins:e,localIds:n},o,r){const i=[],s=a.getContext();for(const c of e){const d=c.id,h=ZR(o[d],r);h!==null&&i.push({plugin:c,options:QR(a.config,{plugin:c,local:n[d]},h,s)})}return i}function QR(a,{plugin:e,local:n},o,r){const i=a.pluginScopeKeys(e),s=a.getOptionScopes(o,i);return n&&e.defaults&&s.push(e.defaults),a.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function EI(a,e){const n=Te.datasets[a]||{};return((e.datasets||{})[a]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function JR(a,e){let n=a;return a==="_index_"?n=e:a==="_value_"&&(n=e==="x"?"y":"x"),n}function eN(a,e){return a===e?"_index_":"_value_"}function BV(a){if(a==="x"||a==="y"||a==="r")return a}function tN(a){if(a==="top"||a==="bottom")return"x";if(a==="left"||a==="right")return"y"}function TI(a,...e){if(BV(a))return a;for(const n of e){const o=n.axis||tN(n.position)||a.length>1&&BV(a[0].toLowerCase());if(o)return o}throw new Error(`Cannot determine type of '${a}' axis. Please provide 'axis' or 'position' option.`)}function VV(a,e,n){if(n[e+"AxisID"]===a)return{axis:e}}function aN(a,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(o=>o.xAxisID===a||o.yAxisID===a);if(n.length)return VV(a,"x",n[0])||VV(a,"y",n[0])}return{}}function nN(a,e){const n=Zi[a.type]||{scales:{}},o=e.scales||{},r=EI(a.type,e),i=Object.create(null);return Object.keys(o).forEach(s=>{const c=o[s];if(!Me(c))return console.error(`Invalid scale configuration for scale: ${s}`);if(c._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const d=TI(s,c,aN(s,a),Te.scales[c.type]),h=eN(d,r),u=n.scales||{};i[s]=f1(Object.create(null),[{axis:d},c,u[d],u[h]])}),a.data.datasets.forEach(s=>{const c=s.type||a.type,d=s.indexAxis||EI(c,e),u=(Zi[c]||{}).scales||{};Object.keys(u).forEach(p=>{const y=JR(p,d),f=s[y+"AxisID"]||y;i[f]=i[f]||Object.create(null),f1(i[f],[{axis:y},o[f],u[p]])})}),Object.keys(i).forEach(s=>{const c=i[s];f1(c,[Te.scales[c.type],Te.scale])}),i}function zV(a){const e=a.options||(a.options={});e.plugins=me(e.plugins,{}),e.scales=nN(a,e)}function qV(a){return a=a||{},a.datasets=a.datasets||[],a.labels=a.labels||[],a}function oN(a){return a=a||{},a.data=qV(a.data),zV(a),a}const PV=new Map,DV=new Set;function ZL(a,e){let n=PV.get(a);return n||(n=e(),PV.set(a,n),DV.add(n)),n}const B1=(a,e,n)=>{const o=Gi(e,n);o!==void 0&&a.add(o)};class rN{constructor(e){this._config=oN(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=qV(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),zV(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return ZL(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return ZL(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return ZL(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,o=this.type;return ZL(`${o}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const o=this._scopeCache;let r=o.get(e);return(!r||n)&&(r=new Map,o.set(e,r)),r}getOptionScopes(e,n,o){const{options:r,type:i}=this,s=this._cachedScopes(e,o),c=s.get(n);if(c)return c;const d=new Set;n.forEach(u=>{e&&(d.add(e),u.forEach(p=>B1(d,e,p))),u.forEach(p=>B1(d,r,p)),u.forEach(p=>B1(d,Zi[i]||{},p)),u.forEach(p=>B1(d,Te,p)),u.forEach(p=>B1(d,gI,p))});const h=Array.from(d);return h.length===0&&h.push(Object.create(null)),DV.has(n)&&s.set(n,h),h}chartOptionScopes(){const{options:e,type:n}=this;return[e,Zi[n]||{},Te.datasets[n]||{},{type:n},Te,gI]}resolveNamedOptions(e,n,o,r=[""]){const i={$shared:!0},{resolver:s,subPrefixes:c}=EV(this._resolverCache,e,r);let d=s;if(sN(s,n)){i.$shared=!1,o=xa(o)?o():o;const h=this.createResolver(e,o,c);d=Ls(s,o,h)}for(const h of n)i[h]=d[h];return i}createResolver(e,n,o=[""],r){const{resolver:i}=EV(this._resolverCache,e,o);return Me(n)?Ls(i,n,void 0,r):i}}function EV(a,e,n){let o=a.get(e);o||(o=new Map,a.set(e,o));const r=n.join();let i=o.get(r);return i||(i={resolver:wI(e,n),subPrefixes:n.filter(c=>!c.toLowerCase().includes("hover"))},o.set(r,i)),i}const iN=a=>Me(a)&&Object.getOwnPropertyNames(a).some(e=>xa(a[e]));function sN(a,e){const{isScriptable:n,isIndexable:o}=jB(a);for(const r of e){const i=n(r),s=o(r),c=(s||i)&&a[r];if(i&&(xa(c)||iN(c))||s&&He(c))return!0}return!1}var lN="4.5.1";const cN=["top","bottom","left","right","chartArea"];function TV(a,e){return a==="top"||a==="bottom"||cN.indexOf(a)===-1&&e==="x"}function HV(a,e){return function(n,o){return n[a]===o[a]?n[e]-o[e]:n[a]-o[a]}}function jV(a){const e=a.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Ae(n&&n.onComplete,[a],e)}function dN(a){const e=a.chart,n=e.options.animation;Ae(n&&n.onProgress,[a],e)}function OV(a){return LI()&&typeof a=="string"?a=document.getElementById(a):a&&a.length&&(a=a[0]),a&&a.canvas&&(a=a.canvas),a}const YL={},FV=a=>{const e=OV(a);return Object.values(YL).filter(n=>n.canvas===e).pop()};function hN(a,e,n){const o=Object.keys(a);for(const r of o){const i=+r;if(i>=e){const s=a[r];delete a[r],(n>0||i>e)&&(a[i+n]=s)}}}function uN(a,e,n,o){return!n||a.type==="mouseout"?null:o?e:a}class aa{static register(...e){Ot.add(...e),RV()}static unregister(...e){Ot.remove(...e),RV()}constructor(e,n){const o=this.config=new rN(n),r=OV(e),i=FV(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=o.createResolver(o.chartOptionScopes(),this.getContext());this.platform=new(o.platform||BR(r)),this.platform.updateConfig(o);const c=this.platform.acquireContext(r,s.aspectRatio),d=c&&c.canvas,h=d&&d.height,u=d&&d.width;if(this.id=dO(),this.ctx=c,this.canvas=d,this.width=u,this.height=h,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new KR,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=AO(p=>this.update(p),s.resizeDelay||0),this._dataChanges=[],YL[this.id]=this,!c||!d){console.error("Failed to create chart: can't acquire context from the given item");return}ea.listen(this,"complete",jV),ea.listen(this,"progress",dN),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:o,height:r,_aspectRatio:i}=this;return Ce(e)?n&&i?i:r?o/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Ot}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():WB(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return EB(this.canvas,this.ctx),this}stop(){return ea.stop(this),this}resize(e,n){ea.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const o=this.options,r=this.canvas,i=o.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,e,n,i),c=o.devicePixelRatio||this.platform.getDevicePixelRatio(),d=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,WB(this,c,!0)&&(this.notifyPlugins("resize",{size:s}),Ae(o.onResize,[this,s],this),this.attached&&this._doResize(d)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Le(n,(o,r)=>{o.id=r})}buildOrUpdateScales(){const e=this.options,n=e.scales,o=this.scales,r=Object.keys(o).reduce((s,c)=>(s[c]=!1,s),{});let i=[];n&&(i=i.concat(Object.keys(n).map(s=>{const c=n[s],d=TI(s,c),h=d==="r",u=d==="x";return{options:c,dposition:h?"chartArea":u?"bottom":"left",dtype:h?"radialLinear":u?"category":"linear"}}))),Le(i,s=>{const c=s.options,d=c.id,h=TI(d,c),u=me(c.type,s.dtype);(c.position===void 0||TV(c.position,h)!==TV(s.dposition))&&(c.position=s.dposition),r[d]=!0;let p=null;if(d in o&&o[d].type===u)p=o[d];else{const y=Ot.getScale(u);p=new y({id:d,type:u,ctx:this.ctx,chart:this}),o[p.id]=p}p.init(c,e)}),Le(r,(s,c)=>{s||delete o[c]}),Le(o,s=>{ut.configure(this,s,s.options),ut.addBox(this,s)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,o=e.length;if(e.sort((r,i)=>r.index-i.index),o>n){for(let r=n;r<o;++r)this._destroyDatasetMeta(r);e.splice(n,o-n)}this._sortedMetasets=e.slice(0).sort(HV("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((o,r)=>{n.filter(i=>i===o._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let o,r;for(this._removeUnreferencedMetasets(),o=0,r=n.length;o<r;o++){const i=n[o];let s=this.getDatasetMeta(o);const c=i.type||this.config.type;if(s.type&&s.type!==c&&(this._destroyDatasetMeta(o),s=this.getDatasetMeta(o)),s.type=c,s.indexAxis=i.indexAxis||EI(c,this.options),s.order=i.order||0,s.index=o,s.label=""+i.label,s.visible=this.isDatasetVisible(o),s.controller)s.controller.updateIndex(o),s.controller.linkScales();else{const d=Ot.getController(c),{datasetElementType:h,dataElementType:u}=Te.datasets[c];Object.assign(d,{dataElementType:Ot.getElement(u),datasetElementType:h&&Ot.getElement(h)}),s.controller=new d(this,o),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){Le(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const o=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!o.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let h=0,u=this.data.datasets.length;h<u;h++){const{controller:p}=this.getDatasetMeta(h),y=!r&&i.indexOf(p)===-1;p.buildOrUpdateElements(y),s=Math.max(+p.getMaxOverflow(),s)}s=this._minPadding=o.layout.autoPadding?s:0,this._updateLayout(s),r||Le(i,h=>{h.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(HV("z","_idx"));const{_active:c,_lastEvent:d}=this;d?this._eventHandler(d,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){Le(this.scales,e=>{ut.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),o=new Set(e.events);(!bB(n,o)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:o,start:r,count:i}of n){const s=o==="_removeElements"?-i:i;hN(e,r,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,o=i=>new Set(e.filter(s=>s[0]===i).map((s,c)=>c+","+s.splice(1).join(","))),r=o(0);for(let i=1;i<n;i++)if(!bB(r,o(i)))return;return Array.from(r).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ut.update(this,this.width,this.height,e);const n=this.chartArea,o=n.width<=0||n.height<=0;this._layers=[],Le(this.boxes,r=>{o&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,o=this.data.datasets.length;n<o;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,o=this.data.datasets.length;n<o;++n)this._updateDataset(n,xa(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const o=this.getDatasetMeta(e),r={meta:o,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(o.controller._update(n),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ea.has(this)?this.attached&&!ea.running(this)&&ea.start(this):(this.draw(),jV({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:o,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(o,r)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,o=[];let r,i;for(r=0,i=n.length;r<i;++r){const s=n[r];(!e||s.visible)&&o.push(s)}return o}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,o={meta:e,index:e.index,cancelable:!0},r=aV(this,e);this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&PL(n,r),e.controller.draw(),r&&DL(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return w1(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,o,r){const i=cR.modes[n];return typeof i=="function"?i(this,e,o,r):[]}getDatasetMeta(e){const n=this.data.datasets[e],o=this._metasets;let r=o.filter(i=>i&&i._dataset===n).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},o.push(r)),r}getContext(){return this.$context||(this.$context=Qi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const o=this.getDatasetMeta(e);return typeof o.hidden=="boolean"?!o.hidden:!n.hidden}setDatasetVisibility(e,n){const o=this.getDatasetMeta(e);o.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,o){const r=o?"show":"hide",i=this.getDatasetMeta(e),s=i.controller._resolveAnimations(void 0,r);k1(n)?(i.data[n].hidden=!o,this.update()):(this.setDatasetVisibility(e,o),s.update(i,{visible:o}),this.update(c=>c.datasetIndex===e?r:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),ea.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),EB(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete YL[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,o=(i,s)=>{n.addEventListener(this,i,s),e[i]=s},r=(i,s,c)=>{i.offsetX=s,i.offsetY=c,this._eventHandler(i)};Le(this.options.events,i=>o(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,o=(d,h)=>{n.addEventListener(this,d,h),e[d]=h},r=(d,h)=>{e[d]&&(n.removeEventListener(this,d,h),delete e[d])},i=(d,h)=>{this.canvas&&this.resize(d,h)};let s;const c=()=>{r("attach",c),this.attached=!0,this.resize(),o("resize",i),o("detach",s)};s=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),o("attach",c)},n.isAttached(this.canvas)?c():s()}unbindEvents(){Le(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Le(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,o){const r=o?"set":"remove";let i,s,c,d;for(n==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),c=0,d=e.length;c<d;++c){s=e[c];const h=s&&this.getDatasetMeta(s.datasetIndex).controller;h&&h[r+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],o=e.map(({datasetIndex:i,index:s})=>{const c=this.getDatasetMeta(i);if(!c)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:c.data[s],index:s}});!BL(o,n)&&(this._active=o,this._lastEvent=null,this._updateHoverStyles(o,n))}notifyPlugins(e,n,o){return this._plugins.notify(this,e,n,o)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,o){const r=this.options.hover,i=(d,h)=>d.filter(u=>!h.some(p=>u.datasetIndex===p.datasetIndex&&u.index===p.index)),s=i(n,e),c=o?e:i(e,n);s.length&&this.updateHoverStyle(s,r.mode,!1),c.length&&r.mode&&this.updateHoverStyle(c,r.mode,!0)}_eventHandler(e,n){const o={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},r=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",o,r)===!1)return;const i=this._handleEvent(e,n,o.inChartArea);return o.cancelable=!1,this.notifyPlugins("afterEvent",o,r),(i||o.changed)&&this.render(),this}_handleEvent(e,n,o){const{_active:r=[],options:i}=this,s=n,c=this._getActiveElements(e,r,o,s),d=kO(e),h=uN(e,this._lastEvent,o,d);o&&(this._lastEvent=null,Ae(i.onHover,[e,c,this],this),d&&Ae(i.onClick,[e,c,this],this));const u=!BL(c,r);return(u||n)&&(this._active=c,this._updateHoverStyles(c,r,n)),this._lastEvent=h,u}_getActiveElements(e,n,o,r){if(e.type==="mouseout")return[];if(!o)return n;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}}ce(aa,"defaults",Te),ce(aa,"instances",YL),ce(aa,"overrides",Zi),ce(aa,"registry",Ot),ce(aa,"version",lN),ce(aa,"getChart",FV);function RV(){return Le(aa.instances,a=>a._plugins.invalidate())}function pN(a,e,n){const{startAngle:o,x:r,y:i,outerRadius:s,innerRadius:c,options:d}=e,{borderWidth:h,borderJoinStyle:u}=d,p=Math.min(h/s,nt(o-n));if(a.beginPath(),a.arc(r,i,s-h/2,o+p/2,n-p/2),c>0){const y=Math.min(h/c,nt(o-n));a.arc(r,i,c+h/2,n-y/2,o+y/2,!0)}else{const y=Math.min(h/2,s*nt(o-n));if(u==="round")a.arc(r,i,y,n-Se/2,o+Se/2,!0);else if(u==="bevel"){const f=2*y*y,k=-f*Math.cos(n+Se/2)+r,m=-f*Math.sin(n+Se/2)+i,g=f*Math.cos(o+Se/2)+r,v=f*Math.sin(o+Se/2)+i;a.lineTo(k,m),a.lineTo(g,v)}}a.closePath(),a.moveTo(0,0),a.rect(0,0,a.canvas.width,a.canvas.height),a.clip("evenodd")}function yN(a,e,n){const{startAngle:o,pixelMargin:r,x:i,y:s,outerRadius:c,innerRadius:d}=e;let h=r/c;a.beginPath(),a.arc(i,s,c,o-h,n+h),d>r?(h=r/d,a.arc(i,s,d,n+h,o-h,!0)):a.arc(i,s,r,n+Oe,o-Oe),a.closePath(),a.clip()}function fN(a){return xI(a,["outerStart","outerEnd","innerStart","innerEnd"])}function kN(a,e,n,o){const r=fN(a.options.borderRadius),i=(n-e)/2,s=Math.min(i,o*e/2),c=d=>{const h=(n-Math.min(i,d))*o/2;return Ne(d,0,Math.min(i,h))};return{outerStart:c(r.outerStart),outerEnd:c(r.outerEnd),innerStart:Ne(r.innerStart,0,s),innerEnd:Ne(r.innerEnd,0,s)}}function Bs(a,e,n,o){return{x:n+a*Math.cos(e),y:o+a*Math.sin(e)}}function QL(a,e,n,o,r,i){const{x:s,y:c,startAngle:d,pixelMargin:h,innerRadius:u}=e,p=Math.max(e.outerRadius+o+n-h,0),y=u>0?u+o+n+h:0;let f=0;const k=r-d;if(o){const U=u>0?u-o:0,T=p>0?p-o:0,H=(U+T)/2,N=H!==0?k*H/(H+o):k;f=(k-N)/2}const m=Math.max(.001,k*p-n/Se)/p,g=(k-m)/2,v=d+g+f,L=r-g-f,{outerStart:w,outerEnd:M,innerStart:C,innerEnd:S}=kN(e,y,p,L-v),b=p-w,x=p-M,I=v+w/b,V=L-M/x,B=y+C,A=y+S,P=v+C/B,D=L-S/A;if(a.beginPath(),i){const U=(I+V)/2;if(a.arc(s,c,p,I,U),a.arc(s,c,p,U,V),M>0){const Q=Bs(x,V,s,c);a.arc(Q.x,Q.y,M,V,L+Oe)}const T=Bs(A,L,s,c);if(a.lineTo(T.x,T.y),S>0){const Q=Bs(A,D,s,c);a.arc(Q.x,Q.y,S,L+Oe,D+Math.PI)}const H=(L-S/y+(v+C/y))/2;if(a.arc(s,c,y,L-S/y,H,!0),a.arc(s,c,y,H,v+C/y,!0),C>0){const Q=Bs(B,P,s,c);a.arc(Q.x,Q.y,C,P+Math.PI,v-Oe)}const N=Bs(b,v,s,c);if(a.lineTo(N.x,N.y),w>0){const Q=Bs(b,I,s,c);a.arc(Q.x,Q.y,w,v-Oe,I)}}else{a.moveTo(s,c);const U=Math.cos(I)*p+s,T=Math.sin(I)*p+c;a.lineTo(U,T);const H=Math.cos(V)*p+s,N=Math.sin(V)*p+c;a.lineTo(H,N)}a.closePath()}function mN(a,e,n,o,r){const{fullCircles:i,startAngle:s,circumference:c}=e;let d=e.endAngle;if(i){QL(a,e,n,o,d,r);for(let h=0;h<i;++h)a.fill();isNaN(c)||(d=s+(c%ze||ze))}return QL(a,e,n,o,d,r),a.fill(),d}function gN(a,e,n,o,r){const{fullCircles:i,startAngle:s,circumference:c,options:d}=e,{borderWidth:h,borderJoinStyle:u,borderDash:p,borderDashOffset:y,borderRadius:f}=d,k=d.borderAlign==="inner";if(!h)return;a.setLineDash(p||[]),a.lineDashOffset=y,k?(a.lineWidth=h*2,a.lineJoin=u||"round"):(a.lineWidth=h,a.lineJoin=u||"bevel");let m=e.endAngle;if(i){QL(a,e,n,o,m,r);for(let g=0;g<i;++g)a.stroke();isNaN(c)||(m=s+(c%ze||ze))}k&&yN(a,e,m),d.selfJoin&&m-s>=Se&&f===0&&u!=="miter"&&pN(a,e,m),i||(QL(a,e,n,o,m,r),a.stroke())}class V1 extends ta{constructor(n){super();ce(this,"circumference");ce(this,"endAngle");ce(this,"fullCircles");ce(this,"innerRadius");ce(this,"outerRadius");ce(this,"pixelMargin");ce(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,o,r){const i=this.getProps(["x","y"],r),{angle:s,distance:c}=CB(i,{x:n,y:o}),{startAngle:d,endAngle:h,innerRadius:u,outerRadius:p,circumference:y}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),f=(this.options.spacing+this.options.borderWidth)/2,k=me(y,h-d),m=b1(s,d,h)&&d!==h,g=k>=ze||m,v=Jt(c,u+f,p+f);return g&&v}getCenterPoint(n){const{x:o,y:r,startAngle:i,endAngle:s,innerRadius:c,outerRadius:d}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:h,spacing:u}=this.options,p=(i+s)/2,y=(c+d+u+h)/2;return{x:o+Math.cos(p)*y,y:r+Math.sin(p)*y}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:o,circumference:r}=this,i=(o.offset||0)/4,s=(o.spacing||0)/2,c=o.circular;if(this.pixelMargin=o.borderAlign==="inner"?.33:0,this.fullCircles=r>ze?Math.floor(r/ze):0,r===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const d=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(d)*i,Math.sin(d)*i);const h=1-Math.sin(Math.min(Se,r||0)),u=i*h;n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,mN(n,this,u,s,c),gN(n,this,u,s,c),n.restore()}}ce(V1,"id","arc"),ce(V1,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),ce(V1,"defaultRoutes",{backgroundColor:"backgroundColor"}),ce(V1,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function NV(a,e,n=e){a.lineCap=me(n.borderCapStyle,e.borderCapStyle),a.setLineDash(me(n.borderDash,e.borderDash)),a.lineDashOffset=me(n.borderDashOffset,e.borderDashOffset),a.lineJoin=me(n.borderJoinStyle,e.borderJoinStyle),a.lineWidth=me(n.borderWidth,e.borderWidth),a.strokeStyle=me(n.borderColor,e.borderColor)}function bN(a,e,n){a.lineTo(n.x,n.y)}function MN(a){return a.stepped?NO:a.tension||a.cubicInterpolationMode==="monotone"?$O:bN}function $V(a,e,n={}){const o=a.length,{start:r=0,end:i=o-1}=n,{start:s,end:c}=e,d=Math.max(r,s),h=Math.min(i,c),u=r<s&&i<s||r>c&&i>c;return{count:o,start:d,loop:e.loop,ilen:h<d&&!u?o+h-d:h-d}}function xN(a,e,n,o){const{points:r,options:i}=e,{count:s,start:c,loop:d,ilen:h}=$V(r,n,o),u=MN(i);let{move:p=!0,reverse:y}=o||{},f,k,m;for(f=0;f<=h;++f)k=r[(c+(y?h-f:f))%s],!k.skip&&(p?(a.moveTo(k.x,k.y),p=!1):u(a,m,k,y,i.stepped),m=k);return d&&(k=r[(c+(y?h:0))%s],u(a,m,k,y,i.stepped)),!!d}function wN(a,e,n,o){const r=e.points,{count:i,start:s,ilen:c}=$V(r,n,o),{move:d=!0,reverse:h}=o||{};let u=0,p=0,y,f,k,m,g,v;const L=M=>(s+(h?c-M:M))%i,w=()=>{m!==g&&(a.lineTo(u,g),a.lineTo(u,m),a.lineTo(u,v))};for(d&&(f=r[L(0)],a.moveTo(f.x,f.y)),y=0;y<=c;++y){if(f=r[L(y)],f.skip)continue;const M=f.x,C=f.y,S=M|0;S===k?(C<m?m=C:C>g&&(g=C),u=(p*u+M)/++p):(w(),a.lineTo(M,C),k=S,p=0,m=g=C),v=C}w()}function HI(a){const e=a.options,n=e.borderDash&&e.borderDash.length;return!a._decimated&&!a._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?wN:xN}function vN(a){return a.stepped?wF:a.tension||a.cubicInterpolationMode==="monotone"?vF:ts}function CN(a,e,n,o){let r=e._path;r||(r=e._path=new Path2D,e.path(r,n,o)&&r.closePath()),NV(a,e.options),a.stroke(r)}function LN(a,e,n,o){const{segments:r,options:i}=e,s=HI(e);for(const c of r)NV(a,i,c.style),a.beginPath(),s(a,e,c,{start:n,end:n+o-1})&&a.closePath(),a.stroke()}const SN=typeof Path2D=="function";function IN(a,e,n,o){SN&&!e.options.segment?CN(a,e,n,o):LN(a,e,n,o)}class va extends ta{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const o=this.options;if((o.tension||o.cubicInterpolationMode==="monotone")&&!o.stepped&&!this._pointsUpdated){const r=o.spanGaps?this._loop:this._fullLoop;yF(this._points,o,e,r,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=AF(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,o=e.length;return o&&n[e[o-1].end]}interpolate(e,n){const o=this.options,r=e[n],i=this.points,s=JB(this,{property:n,start:r,end:r});if(!s.length)return;const c=[],d=vN(o);let h,u;for(h=0,u=s.length;h<u;++h){const{start:p,end:y}=s[h],f=i[p],k=i[y];if(f===k){c.push(f);continue}const m=Math.abs((r-f[n])/(k[n]-f[n])),g=d(f,k,m,o.stepped);g[n]=e[n],c.push(g)}return c.length===1?c[0]:c}pathSegment(e,n,o){return HI(this)(e,this,n,o)}path(e,n,o){const r=this.segments,i=HI(this);let s=this._loop;n=n||0,o=o||this.points.length-n;for(const c of r)s&=i(e,this,c,{start:n,end:n+o-1});return!!s}draw(e,n,o,r){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),IN(e,this,o,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ce(va,"id","line"),ce(va,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ce(va,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ce(va,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function UV(a,e,n,o){const r=a.options,{[n]:i}=a.getProps([n],o);return Math.abs(e-i)<r.radius+r.hitRadius}class JL extends ta{constructor(n){super();ce(this,"parsed");ce(this,"skip");ce(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,o,r){const i=this.options,{x:s,y:c}=this.getProps(["x","y"],r);return Math.pow(n-s,2)+Math.pow(o-c,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(n,o){return UV(this,n,"x",o)}inYRange(n,o){return UV(this,n,"y",o)}getCenterPoint(n){const{x:o,y:r}=this.getProps(["x","y"],n);return{x:o,y:r}}size(n){n=n||this.options||{};let o=n.radius||0;o=Math.max(o,o&&n.hoverRadius||0);const r=o&&n.borderWidth||0;return(o+r)*2}draw(n,o){const r=this.options;this.skip||r.radius<.1||!w1(this,o,this.size(r)/2)||(n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.fillStyle=r.backgroundColor,MI(n,r,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ce(JL,"id","point"),ce(JL,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ce(JL,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function WV(a,e){const{x:n,y:o,base:r,width:i,height:s}=a.getProps(["x","y","base","width","height"],e);let c,d,h,u,p;return a.horizontal?(p=s/2,c=Math.min(n,r),d=Math.max(n,r),h=o-p,u=o+p):(p=i/2,c=n-p,d=n+p,h=Math.min(o,r),u=Math.max(o,r)),{left:c,top:h,right:d,bottom:u}}function Ca(a,e,n,o){return a?0:Ne(e,n,o)}function _N(a,e,n){const o=a.options.borderWidth,r=a.borderSkipped,i=HB(o);return{t:Ca(r.top,i.top,0,n),r:Ca(r.right,i.right,0,e),b:Ca(r.bottom,i.bottom,0,n),l:Ca(r.left,i.left,0,e)}}function AN(a,e,n){const{enableBorderRadius:o}=a.getProps(["enableBorderRadius"]),r=a.options.borderRadius,i=Cs(r),s=Math.min(e,n),c=a.borderSkipped,d=o||Me(r);return{topLeft:Ca(!d||c.top||c.left,i.topLeft,0,s),topRight:Ca(!d||c.top||c.right,i.topRight,0,s),bottomLeft:Ca(!d||c.bottom||c.left,i.bottomLeft,0,s),bottomRight:Ca(!d||c.bottom||c.right,i.bottomRight,0,s)}}function BN(a){const e=WV(a),n=e.right-e.left,o=e.bottom-e.top,r=_N(a,n/2,o/2),i=AN(a,n/2,o/2);return{outer:{x:e.left,y:e.top,w:n,h:o,radius:i},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:o-r.t-r.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,i.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(r.b,r.r))}}}}function jI(a,e,n,o){const r=e===null,i=n===null,c=a&&!(r&&i)&&WV(a,o);return c&&(r||Jt(e,c.left,c.right))&&(i||Jt(n,c.top,c.bottom))}function VN(a){return a.topLeft||a.topRight||a.bottomLeft||a.bottomRight}function zN(a,e){a.rect(e.x,e.y,e.w,e.h)}function OI(a,e,n={}){const o=a.x!==n.x?-e:0,r=a.y!==n.y?-e:0,i=(a.x+a.w!==n.x+n.w?e:0)-o,s=(a.y+a.h!==n.y+n.h?e:0)-r;return{x:a.x+o,y:a.y+r,w:a.w+i,h:a.h+s,radius:a.radius}}class eS extends ta{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:o,backgroundColor:r}}=this,{inner:i,outer:s}=BN(this),c=VN(s.radius)?EL:zN;e.save(),(s.w!==i.w||s.h!==i.h)&&(e.beginPath(),c(e,OI(s,n,i)),e.clip(),c(e,OI(i,-n,s)),e.fillStyle=o,e.fill("evenodd")),e.beginPath(),c(e,OI(i,n)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,n,o){return jI(this,e,n,o)}inXRange(e,n){return jI(this,e,null,n)}inYRange(e,n){return jI(this,null,e,n)}getCenterPoint(e){const{x:n,y:o,base:r,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(n+r)/2:n,y:i?o:(o+r)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}ce(eS,"id","bar"),ce(eS,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),ce(eS,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function qN(a,e,n){const o=a.segments,r=a.points,i=e.points,s=[];for(const c of o){let{start:d,end:h}=c;h=tS(d,h,r);const u=FI(n,r[d],r[h],c.loop);if(!e.segments){s.push({source:c,target:u,start:r[d],end:r[h]});continue}const p=JB(e,u);for(const y of p){const f=FI(n,i[y.start],i[y.end],y.loop),k=QB(c,r,f);for(const m of k)s.push({source:m,target:y,start:{[n]:GV(u,f,"start",Math.max)},end:{[n]:GV(u,f,"end",Math.min)}})}}return s}function FI(a,e,n,o){if(o)return;let r=e[a],i=n[a];return a==="angle"&&(r=nt(r),i=nt(i)),{property:a,start:r,end:i}}function PN(a,e){const{x:n=null,y:o=null}=a||{},r=e.points,i=[];return e.segments.forEach(({start:s,end:c})=>{c=tS(s,c,r);const d=r[s],h=r[c];o!==null?(i.push({x:d.x,y:o}),i.push({x:h.x,y:o})):n!==null&&(i.push({x:n,y:d.y}),i.push({x:n,y:h.y}))}),i}function tS(a,e,n){for(;e>a;e--){const o=n[e];if(!isNaN(o.x)&&!isNaN(o.y))break}return e}function GV(a,e,n,o){return a&&e?o(a[n],e[n]):a?a[n]:e?e[n]:0}function KV(a,e){let n=[],o=!1;return He(a)?(o=!0,n=a):n=PN(a,e),n.length?new va({points:n,options:{tension:0},_loop:o,_fullLoop:o}):null}function XV(a){return a&&a.fill!==!1}function DN(a,e,n){let r=a[e].fill;const i=[e];let s;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!Re(r))return r;if(s=a[r],!s)return!1;if(s.visible)return r;i.push(r),r=s.fill}return!1}function EN(a,e,n){const o=ON(a);if(Me(o))return isNaN(o.value)?!1:o;let r=parseFloat(o);return Re(r)&&Math.floor(r)===r?TN(o[0],e,r,n):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}function TN(a,e,n,o){return(a==="-"||a==="+")&&(n=e+n),n===e||n<0||n>=o?!1:n}function HN(a,e){let n=null;return a==="start"?n=e.bottom:a==="end"?n=e.top:Me(a)?n=e.getPixelForValue(a.value):e.getBasePixel&&(n=e.getBasePixel()),n}function jN(a,e,n){let o;return a==="start"?o=n:a==="end"?o=e.options.reverse?e.min:e.max:Me(a)?o=a.value:o=e.getBaseValue(),o}function ON(a){const e=a.options,n=e.fill;let o=me(n&&n.target,n);return o===void 0&&(o=!!e.backgroundColor),o===!1||o===null?!1:o===!0?"origin":o}function FN(a){const{scale:e,index:n,line:o}=a,r=[],i=o.segments,s=o.points,c=RN(e,n);c.push(KV({x:null,y:e.bottom},o));for(let d=0;d<i.length;d++){const h=i[d];for(let u=h.start;u<=h.end;u++)NN(r,s[u],c)}return new va({points:r,options:{}})}function RN(a,e){const n=[],o=a.getMatchingVisibleMetas("line");for(let r=0;r<o.length;r++){const i=o[r];if(i.index===e)break;i.hidden||n.unshift(i.dataset)}return n}function NN(a,e,n){const o=[];for(let r=0;r<n.length;r++){const i=n[r],{first:s,last:c,point:d}=$N(i,e,"x");if(!(!d||s&&c)){if(s)o.unshift(d);else if(a.push(d),!c)break}}a.push(...o)}function $N(a,e,n){const o=a.interpolate(e,n);if(!o)return{};const r=o[n],i=a.segments,s=a.points;let c=!1,d=!1;for(let h=0;h<i.length;h++){const u=i[h],p=s[u.start][n],y=s[u.end][n];if(Jt(r,p,y)){c=r===p,d=r===y;break}}return{first:c,last:d,point:o}}class ZV{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,o){const{x:r,y:i,radius:s}=this;return n=n||{start:0,end:ze},e.arc(r,i,s,n.end,n.start,!0),!o.bounds}interpolate(e){const{x:n,y:o,radius:r}=this,i=e.angle;return{x:n+Math.cos(i)*r,y:o+Math.sin(i)*r,angle:i}}}function UN(a){const{chart:e,fill:n,line:o}=a;if(Re(n))return WN(e,n);if(n==="stack")return FN(a);if(n==="shape")return!0;const r=GN(a);return r instanceof ZV?r:KV(r,o)}function WN(a,e){const n=a.getDatasetMeta(e);return n&&a.isDatasetVisible(e)?n.dataset:null}function GN(a){return(a.scale||{}).getPointPositionForValue?XN(a):KN(a)}function KN(a){const{scale:e={},fill:n}=a,o=HN(n,e);if(Re(o)){const r=e.isHorizontal();return{x:r?o:null,y:r?null:o}}return null}function XN(a){const{scale:e,fill:n}=a,o=e.options,r=e.getLabels().length,i=o.reverse?e.max:e.min,s=jN(n,e,i),c=[];if(o.grid.circular){const d=e.getPointPositionForValue(0,i);return new ZV({x:d.x,y:d.y,radius:e.getDistanceFromCenterForValue(s)})}for(let d=0;d<r;++d)c.push(e.getPointPositionForValue(d,s));return c}function RI(a,e,n){const o=UN(e),{chart:r,index:i,line:s,scale:c,axis:d}=e,h=s.options,u=h.fill,p=h.backgroundColor,{above:y=p,below:f=p}=u||{},k=r.getDatasetMeta(i),m=aV(r,k);o&&s.points.length&&(PL(a,n),ZN(a,{line:s,target:o,above:y,below:f,area:n,scale:c,axis:d,clip:m}),DL(a))}function ZN(a,e){const{line:n,target:o,above:r,below:i,area:s,scale:c,clip:d}=e,h=n._loop?"angle":e.axis;a.save();let u=i;i!==r&&(h==="x"?(YV(a,o,s.top),NI(a,{line:n,target:o,color:r,scale:c,property:h,clip:d}),a.restore(),a.save(),YV(a,o,s.bottom)):h==="y"&&(QV(a,o,s.left),NI(a,{line:n,target:o,color:i,scale:c,property:h,clip:d}),a.restore(),a.save(),QV(a,o,s.right),u=r)),NI(a,{line:n,target:o,color:u,scale:c,property:h,clip:d}),a.restore()}function YV(a,e,n){const{segments:o,points:r}=e;let i=!0,s=!1;a.beginPath();for(const c of o){const{start:d,end:h}=c,u=r[d],p=r[tS(d,h,r)];i?(a.moveTo(u.x,u.y),i=!1):(a.lineTo(u.x,n),a.lineTo(u.x,u.y)),s=!!e.pathSegment(a,c,{move:s}),s?a.closePath():a.lineTo(p.x,n)}a.lineTo(e.first().x,n),a.closePath(),a.clip()}function QV(a,e,n){const{segments:o,points:r}=e;let i=!0,s=!1;a.beginPath();for(const c of o){const{start:d,end:h}=c,u=r[d],p=r[tS(d,h,r)];i?(a.moveTo(u.x,u.y),i=!1):(a.lineTo(n,u.y),a.lineTo(u.x,u.y)),s=!!e.pathSegment(a,c,{move:s}),s?a.closePath():a.lineTo(n,p.y)}a.lineTo(n,e.first().y),a.closePath(),a.clip()}function NI(a,e){const{line:n,target:o,property:r,color:i,scale:s,clip:c}=e,d=qN(n,o,r);for(const{source:h,target:u,start:p,end:y}of d){const{style:{backgroundColor:f=i}={}}=h,k=o!==!0;a.save(),a.fillStyle=f,YN(a,s,c,k&&FI(r,p,y)),a.beginPath();const m=!!n.pathSegment(a,h);let g;if(k){m?a.closePath():JV(a,o,y,r);const v=!!o.pathSegment(a,u,{move:m,reverse:!0});g=m&&v,g||JV(a,o,p,r)}a.closePath(),a.fill(g?"evenodd":"nonzero"),a.restore()}}function YN(a,e,n,o){const r=e.chart.chartArea,{property:i,start:s,end:c}=o||{};if(i==="x"||i==="y"){let d,h,u,p;i==="x"?(d=s,h=r.top,u=c,p=r.bottom):(d=r.left,h=s,u=r.right,p=c),a.beginPath(),n&&(d=Math.max(d,n.left),u=Math.min(u,n.right),h=Math.max(h,n.top),p=Math.min(p,n.bottom)),a.rect(d,h,u-d,p-h),a.clip()}}function JV(a,e,n,o){const r=e.interpolate(n,o);r&&a.lineTo(r.x,r.y)}var QN={id:"filler",afterDatasetsUpdate(a,e,n){const o=(a.data.datasets||[]).length,r=[];let i,s,c,d;for(s=0;s<o;++s)i=a.getDatasetMeta(s),c=i.dataset,d=null,c&&c.options&&c instanceof va&&(d={visible:a.isDatasetVisible(s),index:s,fill:EN(c,s,o),chart:a,axis:i.controller.options.indexAxis,scale:i.vScale,line:c}),i.$filler=d,r.push(d);for(s=0;s<o;++s)d=r[s],!(!d||d.fill===!1)&&(d.fill=DN(r,s,n.propagate))},beforeDraw(a,e,n){const o=n.drawTime==="beforeDraw",r=a.getSortedVisibleDatasetMetas(),i=a.chartArea;for(let s=r.length-1;s>=0;--s){const c=r[s].$filler;c&&(c.line.updateControlPoints(i,c.axis),o&&c.fill&&RI(a.ctx,c,i))}},beforeDatasetsDraw(a,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const o=a.getSortedVisibleDatasetMetas();for(let r=o.length-1;r>=0;--r){const i=o[r].$filler;XV(i)&&RI(a.ctx,i,a.chartArea)}},beforeDatasetDraw(a,e,n){const o=e.meta.$filler;!XV(o)||n.drawTime!=="beforeDatasetDraw"||RI(a.ctx,o,a.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ez=(a,e)=>{let{boxHeight:n=e,boxWidth:o=e}=a;return a.usePointStyle&&(n=Math.min(n,e),o=a.pointStyleWidth||Math.min(o,e)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(e,n)}},JN=(a,e)=>a!==null&&e!==null&&a.datasetIndex===e.datasetIndex&&a.index===e.index;class tz extends ta{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,o){this.maxWidth=e,this.maxHeight=n,this._margins=o,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Ae(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(o=>e.filter(o,this.chart.data))),e.sort&&(n=n.sort((o,r)=>e.sort(o,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const o=e.labels,r=Ue(o.font),i=r.size,s=this._computeTitleHeight(),{boxWidth:c,itemHeight:d}=ez(o,i);let h,u;n.font=r.string,this.isHorizontal()?(h=this.maxWidth,u=this._fitRows(s,i,c,d)+10):(u=this.maxHeight,h=this._fitCols(s,r,c,d)+10),this.width=Math.min(h,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,o,r){const{ctx:i,maxWidth:s,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.lineWidths=[0],u=r+c;let p=e;i.textAlign="left",i.textBaseline="middle";let y=-1,f=-u;return this.legendItems.forEach((k,m)=>{const g=o+n/2+i.measureText(k.text).width;(m===0||h[h.length-1]+g+2*c>s)&&(p+=u,h[h.length-(m>0?0:1)]=0,f+=u,y++),d[m]={left:0,top:f,row:y,width:g,height:r},h[h.length-1]+=g+c}),p}_fitCols(e,n,o,r){const{ctx:i,maxHeight:s,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.columnSizes=[],u=s-e;let p=c,y=0,f=0,k=0,m=0;return this.legendItems.forEach((g,v)=>{const{itemWidth:L,itemHeight:w}=e$(o,n,i,g,r);v>0&&f+w+2*c>u&&(p+=y+c,h.push({width:y,height:f}),k+=y+c,m++,y=f=0),d[v]={left:k,top:f,col:m,width:L,height:w},y=Math.max(y,L),f+=w+c}),p+=y,h.push({width:y,height:f}),p}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:o,labels:{padding:r},rtl:i}}=this,s=Is(i,this.left,this.width);if(this.isHorizontal()){let c=0,d=$e(o,this.left+r,this.right-this.lineWidths[c]);for(const h of n)c!==h.row&&(c=h.row,d=$e(o,this.left+r,this.right-this.lineWidths[c])),h.top+=this.top+e+r,h.left=s.leftForLtr(s.x(d),h.width),d+=h.width+r}else{let c=0,d=$e(o,this.top+e+r,this.bottom-this.columnSizes[c].height);for(const h of n)h.col!==c&&(c=h.col,d=$e(o,this.top+e+r,this.bottom-this.columnSizes[c].height)),h.top=d,h.left+=this.left+r,h.left=s.leftForLtr(s.x(h.left),h.width),d+=h.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;PL(e,this),this._draw(),DL(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:o,ctx:r}=this,{align:i,labels:s}=e,c=Te.color,d=Is(e.rtl,this.left,this.width),h=Ue(s.font),{padding:u}=s,p=h.size,y=p/2;let f;this.drawTitle(),r.textAlign=d.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=h.string;const{boxWidth:k,boxHeight:m,itemHeight:g}=ez(s,p),v=function(S,b,x){if(isNaN(k)||k<=0||isNaN(m)||m<0)return;r.save();const I=me(x.lineWidth,1);if(r.fillStyle=me(x.fillStyle,c),r.lineCap=me(x.lineCap,"butt"),r.lineDashOffset=me(x.lineDashOffset,0),r.lineJoin=me(x.lineJoin,"miter"),r.lineWidth=I,r.strokeStyle=me(x.strokeStyle,c),r.setLineDash(me(x.lineDash,[])),s.usePointStyle){const V={radius:m*Math.SQRT2/2,pointStyle:x.pointStyle,rotation:x.rotation,borderWidth:I},B=d.xPlus(S,k/2),A=b+y;TB(r,V,B,A,s.pointStyleWidth&&k)}else{const V=b+Math.max((p-m)/2,0),B=d.leftForLtr(S,k),A=Cs(x.borderRadius);r.beginPath(),Object.values(A).some(P=>P!==0)?EL(r,{x:B,y:V,w:k,h:m,radius:A}):r.rect(B,V,k,m),r.fill(),I!==0&&r.stroke()}r.restore()},L=function(S,b,x){v1(r,x.text,S,b+g/2,h,{strikethrough:x.hidden,textAlign:d.textAlign(x.textAlign)})},w=this.isHorizontal(),M=this._computeTitleHeight();w?f={x:$e(i,this.left+u,this.right-o[0]),y:this.top+u+M,line:0}:f={x:this.left+u,y:$e(i,this.top+M+u,this.bottom-n[0].height),line:0},KB(this.ctx,e.textDirection);const C=g+u;this.legendItems.forEach((S,b)=>{r.strokeStyle=S.fontColor,r.fillStyle=S.fontColor;const x=r.measureText(S.text).width,I=d.textAlign(S.textAlign||(S.textAlign=s.textAlign)),V=k+y+x;let B=f.x,A=f.y;d.setWidth(this.width),w?b>0&&B+V+u>this.right&&(A=f.y+=C,f.line++,B=f.x=$e(i,this.left+u,this.right-o[f.line])):b>0&&A+C>this.bottom&&(B=f.x=B+n[f.line].width+u,f.line++,A=f.y=$e(i,this.top+M+u,this.bottom-n[f.line].height));const P=d.x(B);if(v(P,A,S),B=BO(I,B+k+y,w?B+V:this.right,e.rtl),L(d.x(B),A,S),w)f.x+=V+u;else if(typeof S.text!="string"){const D=h.lineHeight;f.y+=az(S,D)+u}else f.y+=C}),XB(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,o=Ue(n.font),r=ht(n.padding);if(!n.display)return;const i=Is(e.rtl,this.left,this.width),s=this.ctx,c=n.position,d=o.size/2,h=r.top+d;let u,p=this.left,y=this.width;if(this.isHorizontal())y=Math.max(...this.lineWidths),u=this.top+h,p=$e(e.align,p,this.right-y);else{const k=this.columnSizes.reduce((m,g)=>Math.max(m,g.height),0);u=h+$e(e.align,this.top,this.bottom-k-e.labels.padding-this._computeTitleHeight())}const f=$e(c,p,p+y);s.textAlign=i.textAlign(yI(c)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=o.string,v1(s,n.text,f,u,o)}_computeTitleHeight(){const e=this.options.title,n=Ue(e.font),o=ht(e.padding);return e.display?n.lineHeight+o.height:0}_getLegendItemAt(e,n){let o,r,i;if(Jt(e,this.left,this.right)&&Jt(n,this.top,this.bottom)){for(i=this.legendHitBoxes,o=0;o<i.length;++o)if(r=i[o],Jt(e,r.left,r.left+r.width)&&Jt(n,r.top,r.top+r.height))return this.legendItems[o]}return null}handleEvent(e){const n=this.options;if(!n$(e.type,n))return;const o=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const r=this._hoveredItem,i=JN(r,o);r&&!i&&Ae(n.onLeave,[e,r,this],this),this._hoveredItem=o,o&&!i&&Ae(n.onHover,[e,o,this],this)}else o&&Ae(n.onClick,[e,o,this],this)}}function e$(a,e,n,o,r){const i=t$(o,a,e,n),s=a$(r,o,e.lineHeight);return{itemWidth:i,itemHeight:s}}function t$(a,e,n,o){let r=a.text;return r&&typeof r!="string"&&(r=r.reduce((i,s)=>i.length>s.length?i:s)),e+n.size/2+o.measureText(r).width}function a$(a,e,n){let o=a;return typeof e.text!="string"&&(o=az(e,n)),o}function az(a,e){const n=a.text?a.text.length:0;return e*n}function n$(a,e){return!!((a==="mousemove"||a==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(a==="click"||a==="mouseup"))}var o$={id:"legend",_element:tz,start(a,e,n){const o=a.legend=new tz({ctx:a.ctx,options:n,chart:a});ut.configure(a,o,n),ut.addBox(a,o)},stop(a){ut.removeBox(a,a.legend),delete a.legend},beforeUpdate(a,e,n){const o=a.legend;ut.configure(a,o,n),o.options=n},afterUpdate(a){const e=a.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(a,e){e.replay||a.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(a,e,n){const o=e.datasetIndex,r=n.chart;r.isDatasetVisible(o)?(r.hide(o),e.hidden=!0):(r.show(o),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:a=>a.chart.options.color,boxWidth:40,padding:10,generateLabels(a){const e=a.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:r,color:i,useBorderRadius:s,borderRadius:c}}=a.legend.options;return a._getSortedDatasetMetas().map(d=>{const h=d.controller.getStyle(n?0:void 0),u=ht(h.borderWidth);return{text:e[d.index].label,fillStyle:h.backgroundColor,fontColor:i,hidden:!d.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:h.borderColor,pointStyle:o||h.pointStyle,rotation:h.rotation,textAlign:r||h.textAlign,borderRadius:s&&(c||h.borderRadius),datasetIndex:d.index}},this)}},title:{color:a=>a.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:a=>!a.startsWith("on"),labels:{_scriptable:a=>!["generateLabels","filter","sort"].includes(a)}}};class nz extends ta{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const o=this.options;if(this.left=0,this.top=0,!o.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const r=He(o.text)?o.text.length:1;this._padding=ht(o.padding);const i=r*Ue(o.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:o,bottom:r,right:i,options:s}=this,c=s.align;let d=0,h,u,p;return this.isHorizontal()?(u=$e(c,o,i),p=n+e,h=i-o):(s.position==="left"?(u=o+e,p=$e(c,r,n),d=Se*-.5):(u=i-e,p=$e(c,n,r),d=Se*.5),h=r-n),{titleX:u,titleY:p,maxWidth:h,rotation:d}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const o=Ue(n.font),i=o.lineHeight/2+this._padding.top,{titleX:s,titleY:c,maxWidth:d,rotation:h}=this._drawArgs(i);v1(e,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:yI(n.align),textBaseline:"middle",translation:[s,c]})}}function r$(a,e){const n=new nz({ctx:a.ctx,options:e,chart:a});ut.configure(a,n,e),ut.addBox(a,n),a.titleBlock=n}var i$={id:"title",_element:nz,start(a,e,n){r$(a,n)},stop(a){const e=a.titleBlock;ut.removeBox(a,e),delete a.titleBlock},beforeUpdate(a,e,n){const o=a.titleBlock;ut.configure(a,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const z1={average(a){if(!a.length)return!1;let e,n,o=new Set,r=0,i=0;for(e=0,n=a.length;e<n;++e){const c=a[e].element;if(c&&c.hasValue()){const d=c.tooltipPosition();o.add(d.x),r+=d.y,++i}}return i===0||o.size===0?!1:{x:[...o].reduce((c,d)=>c+d)/o.size,y:r/i}},nearest(a,e){if(!a.length)return!1;let n=e.x,o=e.y,r=Number.POSITIVE_INFINITY,i,s,c;for(i=0,s=a.length;i<s;++i){const d=a[i].element;if(d&&d.hasValue()){const h=d.getCenterPoint(),u=uI(e,h);u<r&&(r=u,c=d)}}if(c){const d=c.tooltipPosition();n=d.x,o=d.y}return{x:n,y:o}}};function Ft(a,e){return e&&(He(e)?Array.prototype.push.apply(a,e):a.push(e)),a}function na(a){return(typeof a=="string"||a instanceof String)&&a.indexOf(`
|
|
8517
|
+
*/class qF{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,o,r){const i=n.listeners[r],s=n.duration;i.forEach(c=>c({chart:e,initial:n.initial,numSteps:s,currentStep:Math.min(o-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=AB.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((o,r)=>{if(!o.running||!o.items.length)return;const i=o.items;let s=i.length-1,c=!1,d;for(;s>=0;--s)d=i[s],d._active?(d._total>o.duration&&(o.duration=d._total),d.tick(e),c=!0):(i[s]=i[i.length-1],i.pop());c&&(r.draw(),this._notify(r,o,e,"progress")),i.length||(o.running=!1,this._notify(r,o,e,"complete"),o.initial=!1),n+=i.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let o=n.get(e);return o||(o={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,o)),o}listen(e,n,o){this._getAnims(e).listeners[n].push(o)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((o,r)=>Math.max(o,r._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const o=n.items;let r=o.length-1;for(;r>=0;--r)o[r].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var ea=new qF;const oV="transparent",PF={boolean(a,e,n){return n>.5?e:a},color(a,e,n){const o=qB(a||oV),r=o.valid&&qB(e||oV);return r&&r.valid?r.mix(o,n).hexString():e},number(a,e,n){return a+(e-a)*n}};class DF{constructor(e,n,o,r){const i=n[o];r=TL([e.to,r,i,e.from]);const s=TL([e.from,i,r]);this._active=!0,this._fn=e.fn||PF[e.type||typeof s],this._easing=M1[e.easing]||M1.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=o,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(e,n,o){if(this._active){this._notify(!1);const r=this._target[this._prop],i=o-this._start,s=this._duration-i;this._start=o,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=TL([e.to,n,r,e.from]),this._from=TL([e.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,o=this._duration,r=this._prop,i=this._from,s=this._loop,c=this._to;let d;if(this._active=i!==c&&(s||n<o),!this._active){this._target[r]=c,this._notify(!0);return}if(n<0){this._target[r]=i;return}d=n/o%2,d=s&&d>1?2-d:d,d=this._easing(Math.min(1,Math.max(0,d))),this._target[r]=this._fn(i,c,d)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,o)=>{e.push({res:n,rej:o})})}_notify(e){const n=e?"res":"rej",o=this._promises||[];for(let r=0;r<o.length;r++)o[r][n]()}}class rV{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!Me(e))return;const n=Object.keys(Te.animation),o=this._properties;Object.getOwnPropertyNames(e).forEach(r=>{const i=e[r];if(!Me(i))return;const s={};for(const c of n)s[c]=i[c];(He(i.properties)&&i.properties||[r]).forEach(c=>{(c===r||!o.has(c))&&o.set(c,s)})})}_animateOptions(e,n){const o=n.options,r=TF(e,o);if(!r)return[];const i=this._createAnimations(r,o);return o.$shared&&EF(e.options.$animations,o).then(()=>{e.options=o},()=>{}),i}_createAnimations(e,n){const o=this._properties,r=[],i=e.$animations||(e.$animations={}),s=Object.keys(n),c=Date.now();let d;for(d=s.length-1;d>=0;--d){const h=s[d];if(h.charAt(0)==="$")continue;if(h==="options"){r.push(...this._animateOptions(e,n));continue}const u=n[h];let p=i[h];const y=o.get(h);if(p)if(y&&p.active()){p.update(y,u,c);continue}else p.cancel();if(!y||!y.duration){e[h]=u;continue}i[h]=p=new DF(y,e,h,u),r.push(p)}return r}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const o=this._createAnimations(e,n);if(o.length)return ea.add(this._chart,o),!0}}function EF(a,e){const n=[],o=Object.keys(e);for(let r=0;r<o.length;r++){const i=a[o[r]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function TF(a,e){if(!e)return;let n=a.options;if(!n){a.options=e;return}return n.$shared&&(a.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function iV(a,e){const n=a&&a.options||{},o=n.reverse,r=n.min===void 0?e:0,i=n.max===void 0?e:0;return{start:o?i:r,end:o?r:i}}function HF(a,e,n){if(n===!1)return!1;const o=iV(a,n),r=iV(e,n);return{top:r.end,right:o.end,bottom:r.start,left:o.start}}function jF(a){let e,n,o,r;return Me(a)?(e=a.top,n=a.right,o=a.bottom,r=a.left):e=n=o=r=a,{top:e,right:n,bottom:o,left:r,disabled:a===!1}}function sV(a,e){const n=[],o=a._getSortedDatasetMetas(e);let r,i;for(r=0,i=o.length;r<i;++r)n.push(o[r].index);return n}function lV(a,e,n,o={}){const r=a.keys,i=o.mode==="single";let s,c,d,h;if(e===null)return;let u=!1;for(s=0,c=r.length;s<c;++s){if(d=+r[s],d===n){if(u=!0,o.all)continue;break}h=a.values[d],Re(h)&&(i||e===0||jt(e)===jt(h))&&(e+=h)}return!u&&!o.all?0:e}function OF(a,e){const{iScale:n,vScale:o}=e,r=n.axis==="x"?"x":"y",i=o.axis==="x"?"x":"y",s=Object.keys(a),c=new Array(s.length);let d,h,u;for(d=0,h=s.length;d<h;++d)u=s[d],c[d]={[r]:u,[i]:a[u]};return c}function II(a,e){const n=a&&a.options.stacked;return n||n===void 0&&e.stack!==void 0}function FF(a,e,n){return`${a.id}.${e.id}.${n.stack||n.type}`}function RF(a){const{min:e,max:n,minDefined:o,maxDefined:r}=a.getUserBounds();return{min:o?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}function NF(a,e,n){const o=a[e]||(a[e]={});return o[n]||(o[n]={})}function cV(a,e,n,o){for(const r of e.getMatchingVisibleMetas(o).reverse()){const i=a[r.index];if(n&&i>0||!n&&i<0)return r.index}return null}function dV(a,e){const{chart:n,_cachedMeta:o}=a,r=n._stacks||(n._stacks={}),{iScale:i,vScale:s,index:c}=o,d=i.axis,h=s.axis,u=FF(i,s,o),p=e.length;let y;for(let f=0;f<p;++f){const k=e[f],{[d]:m,[h]:g}=k,v=k._stacks||(k._stacks={});y=v[h]=NF(r,u,m),y[c]=g,y._top=cV(y,s,!0,o.type),y._bottom=cV(y,s,!1,o.type);const L=y._visualValues||(y._visualValues={});L[c]=g}}function _I(a,e){const n=a.scales;return Object.keys(n).filter(o=>n[o].axis===e).shift()}function $F(a,e){return Qi(a,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function UF(a,e,n){return Qi(a,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function C1(a,e){const n=a.controller.index,o=a.vScale&&a.vScale.axis;if(o){e=e||a._parsed;for(const r of e){const i=r._stacks;if(!i||i[o]===void 0||i[o][n]===void 0)return;delete i[o][n],i[o]._visualValues!==void 0&&i[o]._visualValues[n]!==void 0&&delete i[o]._visualValues[n]}}}const AI=a=>a==="reset"||a==="none",hV=(a,e)=>e?a:Object.assign({},a),WF=(a,e,n)=>a&&!e.hidden&&e._stacked&&{keys:sV(n,!0),values:null};class as{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=II(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&C1(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,o=this.getDataset(),r=(p,y,f,k)=>p==="x"?y:p==="r"?k:f,i=n.xAxisID=me(o.xAxisID,_I(e,"x")),s=n.yAxisID=me(o.yAxisID,_I(e,"y")),c=n.rAxisID=me(o.rAxisID,_I(e,"r")),d=n.indexAxis,h=n.iAxisID=r(d,i,s,c),u=n.vAxisID=r(d,s,i,c);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(c),n.iScale=this.getScaleForId(h),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&IB(this._data,this),e._stacked&&C1(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),o=this._data;if(Me(n)){const r=this._cachedMeta;this._data=OF(n,r)}else if(o!==n){if(o){IB(o,this);const r=this._cachedMeta;C1(r),r._parsed=[]}n&&Object.isExtensible(n)&&_O(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,o=this.getDataset();let r=!1;this._dataCheck();const i=n._stacked;n._stacked=II(n.vScale,n),n.stack!==o.stack&&(r=!0,C1(n),n.stack=o.stack),this._resyncElements(e),(r||i!==n._stacked)&&(dV(this,n._parsed),n._stacked=II(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),o=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:o,_data:r}=this,{iScale:i,_stacked:s}=o,c=i.axis;let d=e===0&&n===r.length?!0:o._sorted,h=e>0&&o._parsed[e-1],u,p,y;if(this._parsing===!1)o._parsed=r,o._sorted=!0,y=r;else{He(r[e])?y=this.parseArrayData(o,r,e,n):Me(r[e])?y=this.parseObjectData(o,r,e,n):y=this.parsePrimitiveData(o,r,e,n);const f=()=>p[c]===null||h&&p[c]<h[c];for(u=0;u<n;++u)o._parsed[u+e]=p=y[u],d&&(f()&&(d=!1),h=p);o._sorted=d}s&&dV(this,y)}parsePrimitiveData(e,n,o,r){const{iScale:i,vScale:s}=e,c=i.axis,d=s.axis,h=i.getLabels(),u=i===s,p=new Array(r);let y,f,k;for(y=0,f=r;y<f;++y)k=y+o,p[y]={[c]:u||i.parse(h[k],k),[d]:s.parse(n[k],k)};return p}parseArrayData(e,n,o,r){const{xScale:i,yScale:s}=e,c=new Array(r);let d,h,u,p;for(d=0,h=r;d<h;++d)u=d+o,p=n[u],c[d]={x:i.parse(p[0],u),y:s.parse(p[1],u)};return c}parseObjectData(e,n,o,r){const{xScale:i,yScale:s}=e,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=new Array(r);let u,p,y,f;for(u=0,p=r;u<p;++u)y=u+o,f=n[y],h[u]={x:i.parse(Gi(f,c),y),y:s.parse(Gi(f,d),y)};return h}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,o){const r=this.chart,i=this._cachedMeta,s=n[e.axis],c={keys:sV(r,!0),values:n._stacks[e.axis]._visualValues};return lV(c,s,i.index,{mode:o})}updateRangeFromParsed(e,n,o,r){const i=o[n.axis];let s=i===null?NaN:i;const c=r&&o._stacks[n.axis];r&&c&&(r.values=c,s=lV(r,i,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,n){const o=this._cachedMeta,r=o._parsed,i=o._sorted&&e===o.iScale,s=r.length,c=this._getOtherScale(e),d=WF(n,o,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:p}=RF(c);let y,f;function k(){f=r[y];const m=f[c.axis];return!Re(f[e.axis])||u>m||p<m}for(y=0;y<s&&!(!k()&&(this.updateRangeFromParsed(h,e,f,d),i));++y);if(i){for(y=s-1;y>=0;--y)if(!k()){this.updateRangeFromParsed(h,e,f,d);break}}return h}getAllParsedValues(e){const n=this._cachedMeta._parsed,o=[];let r,i,s;for(r=0,i=n.length;r<i;++r)s=n[r][e.axis],Re(s)&&o.push(s);return o}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,o=n.iScale,r=n.vScale,i=this.getParsed(e);return{label:o?""+o.getLabelForValue(i[o.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=jF(me(this.options.clip,HF(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,o=this._cachedMeta,r=o.data||[],i=n.chartArea,s=[],c=this._drawStart||0,d=this._drawCount||r.length-c,h=this.options.drawActiveElementsOnTop;let u;for(o.dataset&&o.dataset.draw(e,i,c,d),u=c;u<c+d;++u){const p=r[u];p.hidden||(p.active&&h?s.push(p):p.draw(e,i))}for(u=0;u<s.length;++u)s[u].draw(e,i)}getStyle(e,n){const o=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(o):this.resolveDataElementOptions(e||0,o)}getContext(e,n,o){const r=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];i=s.$context||(s.$context=UF(this.getContext(),e,s)),i.parsed=this.getParsed(e),i.raw=r.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=$F(this.chart.getContext(),this.index)),i.dataset=r,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=o,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",o){const r=n==="active",i=this._cachedDataOpts,s=e+"-"+n,c=i[s],d=this.enableOptionSharing&&k1(o);if(c)return hV(c,d);const h=this.chart.config,u=h.datasetElementScopeKeys(this._type,e),p=r?[`${e}Hover`,"hover",e,""]:[e,""],y=h.getOptionScopes(this.getDataset(),u),f=Object.keys(Te.elements[e]),k=()=>this.getContext(o,r,n),m=h.resolveNamedOptions(y,f,k,p);return m.$shared&&(m.$shared=d,i[s]=Object.freeze(hV(m,d))),m}_resolveAnimations(e,n,o){const r=this.chart,i=this._cachedDataOpts,s=`animation-${n}`,c=i[s];if(c)return c;let d;if(r.options.animation!==!1){const u=this.chart.config,p=u.datasetAnimationScopeKeys(this._type,n),y=u.getOptionScopes(this.getDataset(),p);d=u.createResolver(y,this.getContext(e,o,n))}const h=new rV(r,d&&d.animations);return d&&d._cacheable&&(i[s]=Object.freeze(h)),h}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||AI(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const o=this.resolveDataElementOptions(e,n),r=this._sharedOptions,i=this.getSharedOptions(o),s=this.includeOptions(n,i)||i!==r;return this.updateSharedOptions(i,n,o),{sharedOptions:i,includeOptions:s}}updateElement(e,n,o,r){AI(r)?Object.assign(e,o):this._resolveAnimations(n,r).update(e,o)}updateSharedOptions(e,n,o){e&&!AI(n)&&this._resolveAnimations(void 0,n).update(e,o)}_setStyle(e,n,o,r){e.active=r;const i=this.getStyle(n,r);this._resolveAnimations(n,o,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,n,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,n,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,o=this._cachedMeta.data;for(const[c,d,h]of this._syncList)this[c](d,h);this._syncList=[];const r=o.length,i=n.length,s=Math.min(i,r);s&&this.parse(0,s),i>r?this._insertElements(r,i-r,e):i<r&&this._removeElements(i,r-i)}_insertElements(e,n,o=!0){const r=this._cachedMeta,i=r.data,s=e+n;let c;const d=h=>{for(h.length+=n,c=h.length-1;c>=s;c--)h[c]=h[c-n]};for(d(i),c=e;c<s;++c)i[c]=new this.dataElementType;this._parsing&&d(r._parsed),this.parse(e,n),o&&this.updateElements(i,e,n,"reset")}updateElements(e,n,o,r){}_removeElements(e,n){const o=this._cachedMeta;if(this._parsing){const r=o._parsed.splice(e,n);o._stacked&&C1(o,r)}o.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,o,r]=e;this[n](o,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const o=arguments.length-2;o&&this._sync(["_insertElements",e,o])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ce(as,"defaults",{}),ce(as,"datasetElementType",null),ce(as,"dataElementType",null);function GF(a,e){if(!a._cache.$bar){const n=a.getMatchingVisibleMetas(e);let o=[];for(let r=0,i=n.length;r<i;r++)o=o.concat(n[r].controller.getAllParsedValues(a));a._cache.$bar=_B(o.sort((r,i)=>r-i))}return a._cache.$bar}function KF(a){const e=a.iScale,n=GF(e,a.type);let o=e._length,r,i,s,c;const d=()=>{s===32767||s===-32768||(k1(c)&&(o=Math.min(o,Math.abs(s-c)||o)),c=s)};for(r=0,i=n.length;r<i;++r)s=e.getPixelForValue(n[r]),d();for(c=void 0,r=0,i=e.ticks.length;r<i;++r)s=e.getPixelForTick(r),d();return o}function XF(a,e,n,o){const r=n.barThickness;let i,s;return Ce(r)?(i=e.min*n.categoryPercentage,s=n.barPercentage):(i=r*o,s=1),{chunk:i/o,ratio:s,start:e.pixels[a]-i/2}}function ZF(a,e,n,o){const r=e.pixels,i=r[a];let s=a>0?r[a-1]:null,c=a<r.length-1?r[a+1]:null;const d=n.categoryPercentage;s===null&&(s=i-(c===null?e.end-e.start:c-i)),c===null&&(c=i+i-s);const h=i-(i-Math.min(s,c))/2*d;return{chunk:Math.abs(c-s)/2*d/o,ratio:n.barPercentage,start:h}}function YF(a,e,n,o){const r=n.parse(a[0],o),i=n.parse(a[1],o),s=Math.min(r,i),c=Math.max(r,i);let d=s,h=c;Math.abs(s)>Math.abs(c)&&(d=c,h=s),e[n.axis]=h,e._custom={barStart:d,barEnd:h,start:r,end:i,min:s,max:c}}function uV(a,e,n,o){return He(a)?YF(a,e,n,o):e[n.axis]=n.parse(a,o),e}function pV(a,e,n,o){const r=a.iScale,i=a.vScale,s=r.getLabels(),c=r===i,d=[];let h,u,p,y;for(h=n,u=n+o;h<u;++h)y=e[h],p={},p[r.axis]=c||r.parse(s[h],h),d.push(uV(y,p,i,h));return d}function BI(a){return a&&a.barStart!==void 0&&a.barEnd!==void 0}function QF(a,e,n){return a!==0?jt(a):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function JF(a){let e,n,o,r,i;return a.horizontal?(e=a.base>a.x,n="left",o="right"):(e=a.base<a.y,n="bottom",o="top"),e?(r="end",i="start"):(r="start",i="end"),{start:n,end:o,reverse:e,top:r,bottom:i}}function eR(a,e,n,o){let r=e.borderSkipped;const i={};if(!r){a.borderSkipped=i;return}if(r===!0){a.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:c,reverse:d,top:h,bottom:u}=JF(a);r==="middle"&&n&&(a.enableBorderRadius=!0,(n._top||0)===o?r=h:(n._bottom||0)===o?r=u:(i[yV(u,s,c,d)]=!0,r=h)),i[yV(r,s,c,d)]=!0,a.borderSkipped=i}function yV(a,e,n,o){return o?(a=tR(a,e,n),a=fV(a,n,e)):a=fV(a,e,n),a}function tR(a,e,n){return a===e?n:a===n?e:a}function fV(a,e,n){return a==="start"?e:a==="end"?n:a}function aR(a,{inflateAmount:e},n){a.inflateAmount=e==="auto"?n===1?.33:0:e}class RL extends as{parsePrimitiveData(e,n,o,r){return pV(e,n,o,r)}parseArrayData(e,n,o,r){return pV(e,n,o,r)}parseObjectData(e,n,o,r){const{iScale:i,vScale:s}=e,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=i.axis==="x"?c:d,u=s.axis==="x"?c:d,p=[];let y,f,k,m;for(y=o,f=o+r;y<f;++y)m=n[y],k={},k[i.axis]=i.parse(Gi(m,h),y),p.push(uV(Gi(m,u),k,s,y));return p}updateRangeFromParsed(e,n,o,r){super.updateRangeFromParsed(e,n,o,r);const i=o._custom;i&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:o,vScale:r}=n,i=this.getParsed(e),s=i._custom,c=BI(s)?"["+s.start+", "+s.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+o.getLabelForValue(i[o.axis]),value:c}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,o,r){const i=r==="reset",{index:s,_cachedMeta:{vScale:c}}=this,d=c.getBasePixel(),h=c.isHorizontal(),u=this._getRuler(),{sharedOptions:p,includeOptions:y}=this._getSharedOptions(n,r);for(let f=n;f<n+o;f++){const k=this.getParsed(f),m=i||Ce(k[c.axis])?{base:d,head:d}:this._calculateBarValuePixels(f),g=this._calculateBarIndexPixels(f,u),v=(k._stacks||{})[c.axis],L={horizontal:h,base:m.base,enableBorderRadius:!v||BI(k._custom)||s===v._top||s===v._bottom,x:h?m.head:g.center,y:h?g.center:m.head,height:h?g.size:Math.abs(m.size),width:h?Math.abs(m.size):g.size};y&&(L.options=p||this.resolveDataElementOptions(f,e[f].active?"active":r));const w=L.options||e[f].options;eR(L,w,v,s),aR(L,w,u.ratio),this.updateElement(e[f],f,L,r)}}_getStacks(e,n){const{iScale:o}=this._cachedMeta,r=o.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),i=o.options.stacked,s=[],c=this._cachedMeta.controller.getParsed(n),d=c&&c[o.axis],h=u=>{const p=u._parsed.find(f=>f[o.axis]===d),y=p&&p[u.vScale.axis];if(Ce(y)||isNaN(y))return!0};for(const u of r)if(!(n!==void 0&&h(u))&&((i===!1||s.indexOf(u.stack)===-1||i===void 0&&u.stack===void 0)&&s.push(u.stack),u.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const e=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(e).filter(o=>e[o].axis===n).shift()}_getAxis(){const e={},n=this.getFirstScaleIdForIndexAxis();for(const o of this.chart.data.datasets)e[me(this.chart.options.indexAxis==="x"?o.xAxisID:o.yAxisID,n)]=!0;return Object.keys(e)}_getStackIndex(e,n,o){const r=this._getStacks(e,o),i=n!==void 0?r.indexOf(n):-1;return i===-1?r.length-1:i}_getRuler(){const e=this.options,n=this._cachedMeta,o=n.iScale,r=[];let i,s;for(i=0,s=n.data.length;i<s;++i)r.push(o.getPixelForValue(this.getParsed(i)[o.axis],i));const c=e.barThickness;return{min:c||KF(n),pixels:r,start:o._startPixel,end:o._endPixel,stackCount:this._getStackCount(),scale:o,grouped:e.grouped,ratio:c?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:o,index:r},options:{base:i,minBarLength:s}}=this,c=i||0,d=this.getParsed(e),h=d._custom,u=BI(h);let p=d[n.axis],y=0,f=o?this.applyStack(n,d,o):p,k,m;f!==p&&(y=f-p,f=p),u&&(p=h.barStart,f=h.barEnd-h.barStart,p!==0&&jt(p)!==jt(h.barEnd)&&(y=0),y+=p);const g=!Ce(i)&&!u?i:y;let v=n.getPixelForValue(g);if(this.chart.getDataVisibility(e)?k=n.getPixelForValue(y+f):k=v,m=k-v,Math.abs(m)<s){m=QF(m,n,c)*s,p===c&&(v-=m/2);const L=n.getPixelForDecimal(0),w=n.getPixelForDecimal(1),M=Math.min(L,w),C=Math.max(L,w);v=Math.max(Math.min(v,C),M),k=v+m,o&&!u&&(d._stacks[n.axis]._visualValues[r]=n.getValueForPixel(k)-n.getValueForPixel(v))}if(v===n.getPixelForValue(c)){const L=jt(m)*n.getLineWidthForValue(c)/2;v+=L,m-=L}return{size:m,base:v,head:k,center:k+m/2}}_calculateBarIndexPixels(e,n){const o=n.scale,r=this.options,i=r.skipNull,s=me(r.maxBarThickness,1/0);let c,d;const h=this._getAxisCount();if(n.grouped){const u=i?this._getStackCount(e):n.stackCount,p=r.barThickness==="flex"?ZF(e,n,r,u*h):XF(e,n,r,u*h),y=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,f=this._getAxis().indexOf(me(y,this.getFirstScaleIdForIndexAxis())),k=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0)+f;c=p.start+p.chunk*k+p.chunk/2,d=Math.min(s,p.chunk*p.ratio)}else c=o.getPixelForValue(this.getParsed(e)[o.axis],e),d=Math.min(s,n.min*n.ratio);return{base:c-d/2,head:c+d/2,center:c,size:d}}draw(){const e=this._cachedMeta,n=e.vScale,o=e.data,r=o.length;let i=0;for(;i<r;++i)this.getParsed(i)[n.axis]!==null&&!o[i].hidden&&o[i].draw(this._ctx)}}ce(RL,"id","bar"),ce(RL,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),ce(RL,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function nR(a,e,n){let o=1,r=1,i=0,s=0;if(e<ze){const c=a,d=c+e,h=Math.cos(c),u=Math.sin(c),p=Math.cos(d),y=Math.sin(d),f=(w,M,C)=>b1(w,c,d,!0)?1:Math.max(M,M*n,C,C*n),k=(w,M,C)=>b1(w,c,d,!0)?-1:Math.min(M,M*n,C,C*n),m=f(0,h,p),g=f(Oe,u,y),v=k(Se,h,p),L=k(Se+Oe,u,y);o=(m-v)/2,r=(g-L)/2,i=-(m+v)/2,s=-(g+L)/2}return{ratioX:o,ratioY:r,offsetX:i,offsetY:s}}class _s extends as{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const o=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=o;else{let i=d=>+o[d];if(Me(o[e])){const{key:d="value"}=this._parsing;i=h=>+Gi(o[h],d)}let s,c;for(s=e,c=e+n;s<c;++s)r._parsed[s]=i(s)}}_getRotation(){return Qt(this.options.rotation-90)}_getCircumference(){return Qt(this.options.circumference)}_getRotationExtents(){let e=ze,n=-ze;for(let o=0;o<this.chart.data.datasets.length;++o)if(this.chart.isDatasetVisible(o)&&this.chart.getDatasetMeta(o).type===this._type){const r=this.chart.getDatasetMeta(o).controller,i=r._getRotation(),s=r._getCircumference();e=Math.min(e,i),n=Math.max(n,i+s)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:o}=n,r=this._cachedMeta,i=r.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,c=Math.max((Math.min(o.width,o.height)-s)/2,0),d=Math.min(hO(this.options.cutout,c),1),h=this._getRingWeight(this.index),{circumference:u,rotation:p}=this._getRotationExtents(),{ratioX:y,ratioY:f,offsetX:k,offsetY:m}=nR(p,u,d),g=(o.width-s)/y,v=(o.height-s)/f,L=Math.max(Math.min(g,v)/2,0),w=mB(this.options.radius,L),M=Math.max(w*d,0),C=(w-M)/this._getVisibleDatasetWeightTotal();this.offsetX=k*w,this.offsetY=m*w,r.total=this.calculateTotal(),this.outerRadius=w-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*h,0),this.updateElements(i,0,i.length,e)}_circumference(e,n){const o=this.options,r=this._cachedMeta,i=this._getCircumference();return n&&o.animation.animateRotate||!this.chart.getDataVisibility(e)||r._parsed[e]===null||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*i/ze)}updateElements(e,n,o,r){const i=r==="reset",s=this.chart,c=s.chartArea,h=s.options.animation,u=(c.left+c.right)/2,p=(c.top+c.bottom)/2,y=i&&h.animateScale,f=y?0:this.innerRadius,k=y?0:this.outerRadius,{sharedOptions:m,includeOptions:g}=this._getSharedOptions(n,r);let v=this._getRotation(),L;for(L=0;L<n;++L)v+=this._circumference(L,i);for(L=n;L<n+o;++L){const w=this._circumference(L,i),M=e[L],C={x:u+this.offsetX,y:p+this.offsetY,startAngle:v,endAngle:v+w,circumference:w,outerRadius:k,innerRadius:f};g&&(C.options=m||this.resolveDataElementOptions(L,M.active?"active":r)),v+=w,this.updateElement(M,L,C,r)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let o=0,r;for(r=0;r<n.length;r++){const i=e._parsed[r];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(r)&&!n[r].hidden&&(o+=Math.abs(i))}return o}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?ze*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,o=this.chart,r=o.data.labels||[],i=mI(n._parsed[e],o.options.locale);return{label:r[e]||"",value:i}}getMaxBorderWidth(e){let n=0;const o=this.chart;let r,i,s,c,d;if(!e){for(r=0,i=o.data.datasets.length;r<i;++r)if(o.isDatasetVisible(r)){s=o.getDatasetMeta(r),e=s.data,c=s.controller;break}}if(!e)return 0;for(r=0,i=e.length;r<i;++r)d=c.resolveDataElementOptions(r),d.borderAlign!=="inner"&&(n=Math.max(n,d.borderWidth||0,d.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let o=0,r=e.length;o<r;++o){const i=this.resolveDataElementOptions(o);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let o=0;o<e;++o)this.chart.isDatasetVisible(o)&&(n+=this._getRingWeight(o));return n}_getRingWeight(e){return Math.max(me(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ce(_s,"id","doughnut"),ce(_s,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ce(_s,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),ce(_s,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data,{labels:{pointStyle:o,textAlign:r,color:i,useBorderRadius:s,borderRadius:c}}=e.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((d,h)=>{const p=e.getDatasetMeta(0).controller.getStyle(h);return{text:d,fillStyle:p.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(h),lineDash:p.borderDash,lineDashOffset:p.borderDashOffset,lineJoin:p.borderJoinStyle,lineWidth:p.borderWidth,strokeStyle:p.borderColor,textAlign:r,pointStyle:o,borderRadius:s&&(c||p.borderRadius),index:h}}):[]}},onClick(e,n,o){o.chart.toggleDataVisibility(n.index),o.chart.update()}}}});class NL extends as{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:o,data:r=[],_dataset:i}=n,s=this.chart._animationsDisabled;let{start:c,count:d}=VO(n,r,s);this._drawStart=c,this._drawCount=d,zO(n)&&(c=0,d=r.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!i._decimated,o.points=r;const h=this.resolveDatasetElementOptions(e);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(o,void 0,{animated:!s,options:h},e),this.updateElements(r,c,d,e)}updateElements(e,n,o,r){const i=r==="reset",{iScale:s,vScale:c,_stacked:d,_dataset:h}=this._cachedMeta,{sharedOptions:u,includeOptions:p}=this._getSharedOptions(n,r),y=s.axis,f=c.axis,{spanGaps:k,segment:m}=this.options,g=g1(k)?k:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||i||r==="none",L=n+o,w=e.length;let M=n>0&&this.getParsed(n-1);for(let C=0;C<w;++C){const S=e[C],b=v?S:{};if(C<n||C>=L){b.skip=!0;continue}const x=this.getParsed(C),I=Ce(x[f]),V=b[y]=s.getPixelForValue(x[y],C),B=b[f]=i||I?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,x,d):x[f],C);b.skip=isNaN(V)||isNaN(B)||I,b.stop=C>0&&Math.abs(x[y]-M[y])>g,m&&(b.parsed=x,b.raw=h.data[C]),p&&(b.options=u||this.resolveDataElementOptions(C,S.active?"active":r)),v||this.updateElement(S,C,b,r),M=x}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,o=n.options&&n.options.borderWidth||0,r=e.data||[];if(!r.length)return o;const i=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(o,i,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}ce(NL,"id","line"),ce(NL,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ce(NL,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class VI extends _s{}ce(VI,"id","pie"),ce(VI,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});function ns(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class zI{constructor(e){ce(this,"options");this.options=e||{}}static override(e){Object.assign(zI.prototype,e)}init(){}formats(){return ns()}parse(){return ns()}format(){return ns()}add(){return ns()}diff(){return ns()}startOf(){return ns()}endOf(){return ns()}}var oR={_date:zI};function rR(a,e,n,o){const{controller:r,data:i,_sorted:s}=a,c=r._cachedMeta.iScale,d=a.dataset&&a.dataset.options?a.dataset.options.spanGaps:null;if(c&&e===c.axis&&e!=="r"&&s&&i.length){const h=c._reversePixels?SO:Xi;if(o){if(r._sharedOptions){const u=i[0],p=typeof u.getRange=="function"&&u.getRange(e);if(p){const y=h(i,e,n-p),f=h(i,e,n+p);return{lo:y.lo,hi:f.hi}}}}else{const u=h(i,e,n);if(d){const{vScale:p}=r._cachedMeta,{_parsed:y}=a,f=y.slice(0,u.lo+1).reverse().findIndex(m=>!Ce(m[p.axis]));u.lo-=Math.max(0,f);const k=y.slice(u.hi).findIndex(m=>!Ce(m[p.axis]));u.hi+=Math.max(0,k)}return u}}return{lo:0,hi:i.length-1}}function $L(a,e,n,o,r){const i=a.getSortedVisibleDatasetMetas(),s=n[e];for(let c=0,d=i.length;c<d;++c){const{index:h,data:u}=i[c],{lo:p,hi:y}=rR(i[c],e,s,r);for(let f=p;f<=y;++f){const k=u[f];k.skip||o(k,h,f)}}}function iR(a){const e=a.indexOf("x")!==-1,n=a.indexOf("y")!==-1;return function(o,r){const i=e?Math.abs(o.x-r.x):0,s=n?Math.abs(o.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function qI(a,e,n,o,r){const i=[];return!r&&!a.isPointInArea(e)||$L(a,n,e,function(c,d,h){!r&&!w1(c,a.chartArea,0)||c.inRange(e.x,e.y,o)&&i.push({element:c,datasetIndex:d,index:h})},!0),i}function sR(a,e,n,o){let r=[];function i(s,c,d){const{startAngle:h,endAngle:u}=s.getProps(["startAngle","endAngle"],o),{angle:p}=LB(s,{x:e.x,y:e.y});b1(p,h,u)&&r.push({element:s,datasetIndex:c,index:d})}return $L(a,n,e,i),r}function lR(a,e,n,o,r,i){let s=[];const c=iR(n);let d=Number.POSITIVE_INFINITY;function h(u,p,y){const f=u.inRange(e.x,e.y,r);if(o&&!f)return;const k=u.getCenterPoint(r);if(!(!!i||a.isPointInArea(k))&&!f)return;const g=c(e,k);g<d?(s=[{element:u,datasetIndex:p,index:y}],d=g):g===d&&s.push({element:u,datasetIndex:p,index:y})}return $L(a,n,e,h),s}function PI(a,e,n,o,r,i){return!i&&!a.isPointInArea(e)?[]:n==="r"&&!o?sR(a,e,n,r):lR(a,e,n,o,r,i)}function kV(a,e,n,o,r){const i=[],s=n==="x"?"inXRange":"inYRange";let c=!1;return $L(a,n,e,(d,h,u)=>{d[s]&&d[s](e[n],r)&&(i.push({element:d,datasetIndex:h,index:u}),c=c||d.inRange(e.x,e.y,r))}),o&&!c?[]:i}var cR={modes:{index(a,e,n,o){const r=es(e,a),i=n.axis||"x",s=n.includeInvisible||!1,c=n.intersect?qI(a,r,i,o,s):PI(a,r,i,!1,o,s),d=[];return c.length?(a.getSortedVisibleDatasetMetas().forEach(h=>{const u=c[0].index,p=h.data[u];p&&!p.skip&&d.push({element:p,datasetIndex:h.index,index:u})}),d):[]},dataset(a,e,n,o){const r=es(e,a),i=n.axis||"xy",s=n.includeInvisible||!1;let c=n.intersect?qI(a,r,i,o,s):PI(a,r,i,!1,o,s);if(c.length>0){const d=c[0].datasetIndex,h=a.getDatasetMeta(d).data;c=[];for(let u=0;u<h.length;++u)c.push({element:h[u],datasetIndex:d,index:u})}return c},point(a,e,n,o){const r=es(e,a),i=n.axis||"xy",s=n.includeInvisible||!1;return qI(a,r,i,o,s)},nearest(a,e,n,o){const r=es(e,a),i=n.axis||"xy",s=n.includeInvisible||!1;return PI(a,r,i,n.intersect,o,s)},x(a,e,n,o){const r=es(e,a);return kV(a,r,"x",n.intersect,o)},y(a,e,n,o){const r=es(e,a);return kV(a,r,"y",n.intersect,o)}}};const mV=["left","top","right","bottom"];function L1(a,e){return a.filter(n=>n.pos===e)}function gV(a,e){return a.filter(n=>mV.indexOf(n.pos)===-1&&n.box.axis===e)}function S1(a,e){return a.sort((n,o)=>{const r=e?o:n,i=e?n:o;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function dR(a){const e=[];let n,o,r,i,s,c;for(n=0,o=(a||[]).length;n<o;++n)r=a[n],{position:i,options:{stack:s,stackWeight:c=1}}=r,e.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&i+s,stackWeight:c});return e}function hR(a){const e={};for(const n of a){const{stack:o,pos:r,stackWeight:i}=n;if(!o||!mV.includes(r))continue;const s=e[o]||(e[o]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return e}function uR(a,e){const n=hR(a),{vBoxMaxWidth:o,hBoxMaxHeight:r}=e;let i,s,c;for(i=0,s=a.length;i<s;++i){c=a[i];const{fullSize:d}=c.box,h=n[c.stack],u=h&&c.stackWeight/h.weight;c.horizontal?(c.width=u?u*o:d&&e.availableWidth,c.height=r):(c.width=o,c.height=u?u*r:d&&e.availableHeight)}return n}function pR(a){const e=dR(a),n=S1(e.filter(h=>h.box.fullSize),!0),o=S1(L1(e,"left"),!0),r=S1(L1(e,"right")),i=S1(L1(e,"top"),!0),s=S1(L1(e,"bottom")),c=gV(e,"x"),d=gV(e,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(d).concat(s).concat(c),chartArea:L1(e,"chartArea"),vertical:o.concat(r).concat(d),horizontal:i.concat(s).concat(c)}}function bV(a,e,n,o){return Math.max(a[n],e[n])+Math.max(a[o],e[o])}function MV(a,e){a.top=Math.max(a.top,e.top),a.left=Math.max(a.left,e.left),a.bottom=Math.max(a.bottom,e.bottom),a.right=Math.max(a.right,e.right)}function yR(a,e,n,o){const{pos:r,box:i}=n,s=a.maxPadding;if(!Me(r)){n.size&&(a[r]-=n.size);const p=o[n.stack]||{size:0,count:1};p.size=Math.max(p.size,n.horizontal?i.height:i.width),n.size=p.size/p.count,a[r]+=n.size}i.getPadding&&MV(s,i.getPadding());const c=Math.max(0,e.outerWidth-bV(s,a,"left","right")),d=Math.max(0,e.outerHeight-bV(s,a,"top","bottom")),h=c!==a.w,u=d!==a.h;return a.w=c,a.h=d,n.horizontal?{same:h,other:u}:{same:u,other:h}}function fR(a){const e=a.maxPadding;function n(o){const r=Math.max(e[o]-a[o],0);return a[o]+=r,r}a.y+=n("top"),a.x+=n("left"),n("right"),n("bottom")}function kR(a,e){const n=e.maxPadding;function o(r){const i={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{i[s]=Math.max(e[s],n[s])}),i}return o(a?["left","right"]:["top","bottom"])}function I1(a,e,n,o){const r=[];let i,s,c,d,h,u;for(i=0,s=a.length,h=0;i<s;++i){c=a[i],d=c.box,d.update(c.width||e.w,c.height||e.h,kR(c.horizontal,e));const{same:p,other:y}=yR(e,n,c,o);h|=p&&r.length,u=u||y,d.fullSize||r.push(c)}return h&&I1(r,e,n,o)||u}function UL(a,e,n,o,r){a.top=n,a.left=e,a.right=e+o,a.bottom=n+r,a.width=o,a.height=r}function xV(a,e,n,o){const r=n.padding;let{x:i,y:s}=e;for(const c of a){const d=c.box,h=o[c.stack]||{placed:0,weight:1},u=c.stackWeight/h.weight||1;if(c.horizontal){const p=e.w*u,y=h.size||d.height;k1(h.start)&&(s=h.start),d.fullSize?UL(d,r.left,s,n.outerWidth-r.right-r.left,y):UL(d,e.left+h.placed,s,p,y),h.start=s,h.placed+=p,s=d.bottom}else{const p=e.h*u,y=h.size||d.width;k1(h.start)&&(i=h.start),d.fullSize?UL(d,i,r.top,y,n.outerHeight-r.bottom-r.top):UL(d,i,e.top+h.placed,y,p),h.start=i,h.placed+=p,i=d.right}}e.x=i,e.y=s}var ut={addBox(a,e){a.boxes||(a.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},a.boxes.push(e)},removeBox(a,e){const n=a.boxes?a.boxes.indexOf(e):-1;n!==-1&&a.boxes.splice(n,1)},configure(a,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(a,e,n,o){if(!a)return;const r=ht(a.options.layout.padding),i=Math.max(e-r.width,0),s=Math.max(n-r.height,0),c=pR(a.boxes),d=c.vertical,h=c.horizontal;Le(a.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=d.reduce((m,g)=>g.box.options&&g.box.options.display===!1?m:m+1,0)||1,p=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/u,hBoxMaxHeight:s/2}),y=Object.assign({},r);MV(y,ht(o));const f=Object.assign({maxPadding:y,w:i,h:s,x:r.left,y:r.top},r),k=uR(d.concat(h),p);I1(c.fullSize,f,p,k),I1(d,f,p,k),I1(h,f,p,k)&&I1(d,f,p,k),fR(f),xV(c.leftAndTop,f,p,k),f.x+=f.w,f.y+=f.h,xV(c.rightAndBottom,f,p,k),a.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Le(c.chartArea,m=>{const g=m.box;Object.assign(g,a.chartArea),g.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class wV{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,o){}removeEventListener(e,n,o){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,o,r){return n=Math.max(0,n||e.width),o=o||e.height,{width:n,height:Math.max(0,r?Math.floor(n/r):o)}}isAttached(e){return!0}updateConfig(e){}}class mR extends wV{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const WL="$chartjs",gR={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},vV=a=>a===null||a==="";function bR(a,e){const n=a.style,o=a.getAttribute("height"),r=a.getAttribute("width");if(a[WL]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",vV(r)){const i=KB(a,"width");i!==void 0&&(a.width=i)}if(vV(o))if(a.style.height==="")a.height=a.width/(e||2);else{const i=KB(a,"height");i!==void 0&&(a.height=i)}return a}const CV=xF?{passive:!0}:!1;function MR(a,e,n){a&&a.addEventListener(e,n,CV)}function xR(a,e,n){a&&a.canvas&&a.canvas.removeEventListener(e,n,CV)}function wR(a,e){const n=gR[a.type]||a.type,{x:o,y:r}=es(a,e);return{type:n,chart:e,native:a,x:o!==void 0?o:null,y:r!==void 0?r:null}}function GL(a,e){for(const n of a)if(n===e||n.contains(e))return!0}function vR(a,e,n){const o=a.canvas,r=new MutationObserver(i=>{let s=!1;for(const c of i)s=s||GL(c.addedNodes,o),s=s&&!GL(c.removedNodes,o);s&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function CR(a,e,n){const o=a.canvas,r=new MutationObserver(i=>{let s=!1;for(const c of i)s=s||GL(c.removedNodes,o),s=s&&!GL(c.addedNodes,o);s&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const _1=new Map;let LV=0;function SV(){const a=window.devicePixelRatio;a!==LV&&(LV=a,_1.forEach((e,n)=>{n.currentDevicePixelRatio!==a&&e()}))}function LR(a,e){_1.size||window.addEventListener("resize",SV),_1.set(a,e)}function SR(a){_1.delete(a),_1.size||window.removeEventListener("resize",SV)}function IR(a,e,n){const o=a.canvas,r=o&&SI(o);if(!r)return;const i=BB((c,d)=>{const h=r.clientWidth;n(c,d),h<r.clientWidth&&n()},window),s=new ResizeObserver(c=>{const d=c[0],h=d.contentRect.width,u=d.contentRect.height;h===0&&u===0||i(h,u)});return s.observe(r),LR(a,i),s}function DI(a,e,n){n&&n.disconnect(),e==="resize"&&SR(a)}function _R(a,e,n){const o=a.canvas,r=BB(i=>{a.ctx!==null&&n(wR(i,a))},a);return MR(o,e,r),r}class AR extends wV{acquireContext(e,n){const o=e&&e.getContext&&e.getContext("2d");return o&&o.canvas===e?(bR(e,n),o):null}releaseContext(e){const n=e.canvas;if(!n[WL])return!1;const o=n[WL].initial;["height","width"].forEach(i=>{const s=o[i];Ce(s)?n.removeAttribute(i):n.setAttribute(i,s)});const r=o.style||{};return Object.keys(r).forEach(i=>{n.style[i]=r[i]}),n.width=n.width,delete n[WL],!0}addEventListener(e,n,o){this.removeEventListener(e,n);const r=e.$proxies||(e.$proxies={}),s={attach:vR,detach:CR,resize:IR}[n]||_R;r[n]=s(e,n,o)}removeEventListener(e,n){const o=e.$proxies||(e.$proxies={}),r=o[n];if(!r)return;({attach:DI,detach:DI,resize:DI}[n]||xR)(e,n,r),o[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,o,r){return MF(e,n,o,r)}isAttached(e){const n=e&&SI(e);return!!(n&&n.isConnected)}}function BR(a){return!LI()||typeof OffscreenCanvas<"u"&&a instanceof OffscreenCanvas?mR:AR}let ta=(pS=class{constructor(){ce(this,"x");ce(this,"y");ce(this,"active",!1);ce(this,"options");ce(this,"$animations")}tooltipPosition(e){const{x:n,y:o}=this.getProps(["x","y"],e);return{x:n,y:o}}hasValue(){return g1(this.x)&&g1(this.y)}getProps(e,n){const o=this.$animations;if(!n||!o)return this;const r={};return e.forEach(i=>{r[i]=o[i]&&o[i].active()?o[i]._to:this[i]}),r}},ce(pS,"defaults",{}),ce(pS,"defaultRoutes"),pS);function VR(a,e){const n=a.options.ticks,o=zR(a),r=Math.min(n.maxTicksLimit||o,o),i=n.major.enabled?PR(e):[],s=i.length,c=i[0],d=i[s-1],h=[];if(s>r)return DR(e,h,i,s/r),h;const u=qR(i,e,r);if(s>0){let p,y;const f=s>1?Math.round((d-c)/(s-1)):null;for(KL(e,h,u,Ce(f)?0:c-f,c),p=0,y=s-1;p<y;p++)KL(e,h,u,i[p],i[p+1]);return KL(e,h,u,d,Ce(f)?e.length:d+f),h}return KL(e,h,u),h}function zR(a){const e=a.options.offset,n=a._tickSize(),o=a._length/n+(e?0:1),r=a._maxLength/n;return Math.floor(Math.min(o,r))}function qR(a,e,n){const o=ER(a),r=e.length/n;if(!o)return Math.max(r,1);const i=bO(o);for(let s=0,c=i.length-1;s<c;s++){const d=i[s];if(d>r)return d}return Math.max(r,1)}function PR(a){const e=[];let n,o;for(n=0,o=a.length;n<o;n++)a[n].major&&e.push(n);return e}function DR(a,e,n,o){let r=0,i=n[0],s;for(o=Math.ceil(o),s=0;s<a.length;s++)s===i&&(e.push(a[s]),r++,i=n[r*o])}function KL(a,e,n,o,r){const i=me(o,0),s=Math.min(me(r,a.length),a.length);let c=0,d,h,u;for(n=Math.ceil(n),r&&(d=r-o,n=d/Math.floor(d/n)),u=i;u<0;)c++,u=Math.round(i+c*n);for(h=Math.max(i,0);h<s;h++)h===u&&(e.push(a[h]),c++,u=Math.round(i+c*n))}function ER(a){const e=a.length;let n,o;if(e<2)return!1;for(o=a[0],n=1;n<e;++n)if(a[n]-a[n-1]!==o)return!1;return o}const TR=a=>a==="left"?"right":a==="right"?"left":a,IV=(a,e,n)=>e==="top"||e==="left"?a[e]+n:a[e]-n,_V=(a,e)=>Math.min(e||a,a);function AV(a,e){const n=[],o=a.length/e,r=a.length;let i=0;for(;i<r;i+=o)n.push(a[Math.floor(i)]);return n}function HR(a,e,n){const o=a.ticks.length,r=Math.min(e,o-1),i=a._startPixel,s=a._endPixel,c=1e-6;let d=a.getPixelForTick(r),h;if(!(n&&(o===1?h=Math.max(d-i,s-d):e===0?h=(a.getPixelForTick(1)-d)/2:h=(d-a.getPixelForTick(r-1))/2,d+=r<e?h:-h,d<i-c||d>s+c)))return d}function jR(a,e){Le(a,n=>{const o=n.gc,r=o.length/2;let i;if(r>e){for(i=0;i<r;++i)delete n.data[o[i]];o.splice(0,r)}})}function A1(a){return a.drawTicks?a.tickLength:0}function BV(a,e){if(!a.display)return 0;const n=Ue(a.font,e),o=ht(a.padding);return(He(a.text)?a.text.length:1)*n.lineHeight+o.height}function OR(a,e){return Qi(a,{scale:e,type:"scale"})}function FR(a,e,n){return Qi(a,{tick:n,index:e,type:"tick"})}function RR(a,e,n){let o=yI(a);return(n&&e!=="right"||!n&&e==="right")&&(o=TR(o)),o}function NR(a,e,n,o){const{top:r,left:i,bottom:s,right:c,chart:d}=a,{chartArea:h,scales:u}=d;let p=0,y,f,k;const m=s-r,g=c-i;if(a.isHorizontal()){if(f=$e(o,i,c),Me(n)){const v=Object.keys(n)[0],L=n[v];k=u[v].getPixelForValue(L)+m-e}else n==="center"?k=(h.bottom+h.top)/2+m-e:k=IV(a,n,e);y=c-i}else{if(Me(n)){const v=Object.keys(n)[0],L=n[v];f=u[v].getPixelForValue(L)-g+e}else n==="center"?f=(h.left+h.right)/2-g+e:f=IV(a,n,e);k=$e(o,s,r),p=n==="left"?-Oe:Oe}return{titleX:f,titleY:k,maxWidth:y,rotation:p}}class As extends ta{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:o,_suggestedMax:r}=this;return e=Ht(e,Number.POSITIVE_INFINITY),n=Ht(n,Number.NEGATIVE_INFINITY),o=Ht(o,Number.POSITIVE_INFINITY),r=Ht(r,Number.NEGATIVE_INFINITY),{min:Ht(e,o),max:Ht(n,r),minDefined:Re(e),maxDefined:Re(n)}}getMinMax(e){let{min:n,max:o,minDefined:r,maxDefined:i}=this.getUserBounds(),s;if(r&&i)return{min:n,max:o};const c=this.getMatchingVisibleMetas();for(let d=0,h=c.length;d<h;++d)s=c[d].controller.getMinMax(this,e),r||(n=Math.min(n,s.min)),i||(o=Math.max(o,s.max));return n=i&&n>o?o:n,o=r&&n>o?n:o,{min:Ht(n,Ht(o,n)),max:Ht(o,Ht(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ae(this.options.beforeUpdate,[this])}update(e,n,o){const{beginAtZero:r,grace:i,ticks:s}=this.options,c=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=o=Object.assign({left:0,right:0,top:0,bottom:0},o),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+o.left+o.right:this.height+o.top+o.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=QO(this,i,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const d=c<this.ticks.length;this._convertTicksToLabels(d?AV(this.ticks,c):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=VR(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),d&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,o;this.isHorizontal()?(n=this.left,o=this.right):(n=this.top,o=this.bottom,e=!e),this._startPixel=n,this._endPixel=o,this._reversePixels=e,this._length=o-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ae(this.options.afterUpdate,[this])}beforeSetDimensions(){Ae(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ae(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Ae(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ae(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let o,r,i;for(o=0,r=e.length;o<r;o++)i=e[o],i.label=Ae(n.callback,[i.value,o,e],this)}afterTickToLabelConversion(){Ae(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ae(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,o=_V(this.ticks.length,e.ticks.maxTicksLimit),r=n.minRotation||0,i=n.maxRotation;let s=r,c,d,h;if(!this._isVisible()||!n.display||r>=i||o<=1||!this.isHorizontal()){this.labelRotation=r;return}const u=this._getLabelSizes(),p=u.widest.width,y=u.highest.height,f=Ne(this.chart.width-p,0,this.maxWidth);c=e.offset?this.maxWidth/o:f/(o-1),p+6>c&&(c=f/(o-(e.offset?.5:1)),d=this.maxHeight-A1(e.grid)-n.padding-BV(e.title,this.chart.options.font),h=Math.sqrt(p*p+y*y),s=vO(Math.min(Math.asin(Ne((u.highest.height+6)/c,-1,1)),Math.asin(Ne(d/h,-1,1))-Math.asin(Ne(y/h,-1,1)))),s=Math.max(r,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){Ae(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ae(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:o,title:r,grid:i}}=this,s=this._isVisible(),c=this.isHorizontal();if(s){const d=BV(r,n.options.font);if(c?(e.width=this.maxWidth,e.height=A1(i)+d):(e.height=this.maxHeight,e.width=A1(i)+d),o.display&&this.ticks.length){const{first:h,last:u,widest:p,highest:y}=this._getLabelSizes(),f=o.padding*2,k=Qt(this.labelRotation),m=Math.cos(k),g=Math.sin(k);if(c){const v=o.mirror?0:g*p.width+m*y.height;e.height=Math.min(this.maxHeight,e.height+v+f)}else{const v=o.mirror?0:m*p.width+g*y.height;e.width=Math.min(this.maxWidth,e.width+v+f)}this._calculatePadding(h,u,g,m)}}this._handleMargins(),c?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,o,r){const{ticks:{align:i,padding:s},position:c}=this.options,d=this.labelRotation!==0,h=c!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let y=0,f=0;d?h?(y=r*e.width,f=o*n.height):(y=o*e.height,f=r*n.width):i==="start"?f=n.width:i==="end"?y=e.width:i!=="inner"&&(y=e.width/2,f=n.width/2),this.paddingLeft=Math.max((y-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-p+s)*this.width/(this.width-p),0)}else{let u=n.height/2,p=e.height/2;i==="start"?(u=0,p=e.height):i==="end"&&(u=n.height,p=0),this.paddingTop=u+s,this.paddingBottom=p+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ae(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,o;for(n=0,o=e.length;n<o;n++)Ce(e[n].label)&&(e.splice(n,1),o--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let o=this.ticks;n<o.length&&(o=AV(o,n)),this._labelSizes=e=this._computeLabelSizes(o,o.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,o){const{ctx:r,_longestTextCache:i}=this,s=[],c=[],d=Math.floor(n/_V(n,o));let h=0,u=0,p,y,f,k,m,g,v,L,w,M,C;for(p=0;p<n;p+=d){if(k=e[p].label,m=this._resolveTickFontOptions(p),r.font=g=m.string,v=i[g]=i[g]||{data:{},gc:[]},L=m.lineHeight,w=M=0,!Ce(k)&&!He(k))w=EB(r,v.data,v.gc,w,k),M=L;else if(He(k))for(y=0,f=k.length;y<f;++y)C=k[y],!Ce(C)&&!He(C)&&(w=EB(r,v.data,v.gc,w,C),M+=L);s.push(w),c.push(M),h=Math.max(w,h),u=Math.max(M,u)}jR(i,n);const S=s.indexOf(h),b=c.indexOf(u),x=I=>({width:s[I]||0,height:c[I]||0});return{first:x(0),last:x(n-1),widest:x(S),highest:x(b),widths:s,heights:c}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return LO(this._alignToPixels?Yi(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const o=n[e];return o.$context||(o.$context=FR(this.getContext(),e,o))}return this.$context||(this.$context=OR(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Qt(this.labelRotation),o=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),i=this._getLabelSizes(),s=e.autoSkipPadding||0,c=i?i.widest.width+s:0,d=i?i.highest.height+s:0;return this.isHorizontal()?d*o>c*r?c/o:d/r:d*r<c*o?d/o:c/r}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,o=this.chart,r=this.options,{grid:i,position:s,border:c}=r,d=i.offset,h=this.isHorizontal(),p=this.ticks.length+(d?1:0),y=A1(i),f=[],k=c.setContext(this.getContext()),m=k.display?k.width:0,g=m/2,v=function(T){return Yi(o,T,m)};let L,w,M,C,S,b,x,I,V,B,A,P;if(s==="top")L=v(this.bottom),b=this.bottom-y,I=L-g,B=v(e.top)+g,P=e.bottom;else if(s==="bottom")L=v(this.top),B=e.top,P=v(e.bottom)-g,b=L+g,I=this.top+y;else if(s==="left")L=v(this.right),S=this.right-y,x=L-g,V=v(e.left)+g,A=e.right;else if(s==="right")L=v(this.left),V=e.left,A=v(e.right)-g,S=L+g,x=this.left+y;else if(n==="x"){if(s==="center")L=v((e.top+e.bottom)/2+.5);else if(Me(s)){const T=Object.keys(s)[0],H=s[T];L=v(this.chart.scales[T].getPixelForValue(H))}B=e.top,P=e.bottom,b=L+g,I=b+y}else if(n==="y"){if(s==="center")L=v((e.left+e.right)/2);else if(Me(s)){const T=Object.keys(s)[0],H=s[T];L=v(this.chart.scales[T].getPixelForValue(H))}S=L-g,x=S-y,V=e.left,A=e.right}const D=me(r.ticks.maxTicksLimit,p),U=Math.max(1,Math.ceil(p/D));for(w=0;w<p;w+=U){const T=this.getContext(w),H=i.setContext(T),N=c.setContext(T),Q=H.lineWidth,j=H.color,F=N.dash||[],R=N.dashOffset,Z=H.tickWidth,J=H.tickColor,re=H.tickBorderDash||[],de=H.tickBorderDashOffset;M=HR(this,w,d),M!==void 0&&(C=Yi(o,M,Q),h?S=x=V=A=C:b=I=B=P=C,f.push({tx1:S,ty1:b,tx2:x,ty2:I,x1:V,y1:B,x2:A,y2:P,width:Q,color:j,borderDash:F,borderDashOffset:R,tickWidth:Z,tickColor:J,tickBorderDash:re,tickBorderDashOffset:de}))}return this._ticksLength=p,this._borderValue=L,f}_computeLabelItems(e){const n=this.axis,o=this.options,{position:r,ticks:i}=o,s=this.isHorizontal(),c=this.ticks,{align:d,crossAlign:h,padding:u,mirror:p}=i,y=A1(o.grid),f=y+u,k=p?-u:f,m=-Qt(this.labelRotation),g=[];let v,L,w,M,C,S,b,x,I,V,B,A,P="middle";if(r==="top")S=this.bottom-k,b=this._getXAxisLabelAlignment();else if(r==="bottom")S=this.top+k,b=this._getXAxisLabelAlignment();else if(r==="left"){const U=this._getYAxisLabelAlignment(y);b=U.textAlign,C=U.x}else if(r==="right"){const U=this._getYAxisLabelAlignment(y);b=U.textAlign,C=U.x}else if(n==="x"){if(r==="center")S=(e.top+e.bottom)/2+f;else if(Me(r)){const U=Object.keys(r)[0],T=r[U];S=this.chart.scales[U].getPixelForValue(T)+f}b=this._getXAxisLabelAlignment()}else if(n==="y"){if(r==="center")C=(e.left+e.right)/2-f;else if(Me(r)){const U=Object.keys(r)[0],T=r[U];C=this.chart.scales[U].getPixelForValue(T)}b=this._getYAxisLabelAlignment(y).textAlign}n==="y"&&(d==="start"?P="top":d==="end"&&(P="bottom"));const D=this._getLabelSizes();for(v=0,L=c.length;v<L;++v){w=c[v],M=w.label;const U=i.setContext(this.getContext(v));x=this.getPixelForTick(v)+i.labelOffset,I=this._resolveTickFontOptions(v),V=I.lineHeight,B=He(M)?M.length:1;const T=B/2,H=U.color,N=U.textStrokeColor,Q=U.textStrokeWidth;let j=b;s?(C=x,b==="inner"&&(v===L-1?j=this.options.reverse?"left":"right":v===0?j=this.options.reverse?"right":"left":j="center"),r==="top"?h==="near"||m!==0?A=-B*V+V/2:h==="center"?A=-D.highest.height/2-T*V+V:A=-D.highest.height+V/2:h==="near"||m!==0?A=V/2:h==="center"?A=D.highest.height/2-T*V:A=D.highest.height-B*V,p&&(A*=-1),m!==0&&!U.showLabelBackdrop&&(C+=V/2*Math.sin(m))):(S=x,A=(1-B)*V/2);let F;if(U.showLabelBackdrop){const R=ht(U.backdropPadding),Z=D.heights[v],J=D.widths[v];let re=A-R.top,de=0-R.left;switch(P){case"middle":re-=Z/2;break;case"bottom":re-=Z;break}switch(b){case"center":de-=J/2;break;case"right":de-=J;break;case"inner":v===L-1?de-=J:v>0&&(de-=J/2);break}F={left:de,top:re,width:J+R.width,height:Z+R.height,color:U.backdropColor}}g.push({label:M,font:I,textOffset:A,options:{rotation:m,color:H,strokeColor:N,strokeWidth:Q,textAlign:j,textBaseline:P,translation:[C,S],backdrop:F}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Qt(this.labelRotation))return e==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:o,mirror:r,padding:i}}=this.options,s=this._getLabelSizes(),c=e+i,d=s.widest.width;let h,u;return n==="left"?r?(u=this.right+i,o==="near"?h="left":o==="center"?(h="center",u+=d/2):(h="right",u+=d)):(u=this.right-c,o==="near"?h="right":o==="center"?(h="center",u-=d/2):(h="left",u=this.left)):n==="right"?r?(u=this.left+i,o==="near"?h="right":o==="center"?(h="center",u-=d/2):(h="left",u-=d)):(u=this.left+c,o==="near"?h="left":o==="center"?(h="center",u+=d/2):(h="right",u=this.right)):h="right",{textAlign:h,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:o,top:r,width:i,height:s}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(o,r,i,s),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(i=>i.value===e);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(e){const n=this.options.grid,o=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,s;const c=(d,h,u)=>{!u.width||!u.color||(o.save(),o.lineWidth=u.width,o.strokeStyle=u.color,o.setLineDash(u.borderDash||[]),o.lineDashOffset=u.borderDashOffset,o.beginPath(),o.moveTo(d.x,d.y),o.lineTo(h.x,h.y),o.stroke(),o.restore())};if(n.display)for(i=0,s=r.length;i<s;++i){const d=r[i];n.drawOnChartArea&&c({x:d.x1,y:d.y1},{x:d.x2,y:d.y2},d),n.drawTicks&&c({x:d.tx1,y:d.ty1},{x:d.tx2,y:d.ty2},{color:d.tickColor,width:d.tickWidth,borderDash:d.tickBorderDash,borderDashOffset:d.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:o,grid:r}}=this,i=o.setContext(this.getContext()),s=o.display?i.width:0;if(!s)return;const c=r.setContext(this.getContext(0)).lineWidth,d=this._borderValue;let h,u,p,y;this.isHorizontal()?(h=Yi(e,this.left,s)-s/2,u=Yi(e,this.right,c)+c/2,p=y=d):(p=Yi(e,this.top,s)-s/2,y=Yi(e,this.bottom,c)+c/2,h=u=d),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(h,p),n.lineTo(u,y),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const o=this.ctx,r=this._computeLabelArea();r&&PL(o,r);const i=this.getLabelItems(e);for(const s of i){const c=s.options,d=s.font,h=s.label,u=s.textOffset;v1(o,h,0,u,d,c)}r&&DL(o)}drawTitle(){const{ctx:e,options:{position:n,title:o,reverse:r}}=this;if(!o.display)return;const i=Ue(o.font),s=ht(o.padding),c=o.align;let d=i.lineHeight/2;n==="bottom"||n==="center"||Me(n)?(d+=s.bottom,He(o.text)&&(d+=i.lineHeight*(o.text.length-1))):d+=s.top;const{titleX:h,titleY:u,maxWidth:p,rotation:y}=NR(this,d,n,c);v1(e,o.text,0,0,i,{color:o.color,maxWidth:p,rotation:y,textAlign:RR(c,n,r),textBaseline:"middle",translation:[h,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,o=me(e.grid&&e.grid.z,-1),r=me(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==As.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:o,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),o=this.axis+"AxisID",r=[];let i,s;for(i=0,s=n.length;i<s;++i){const c=n[i];c[o]===this.id&&(!e||c.type===e)&&r.push(c)}return r}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return Ue(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class XL{constructor(e,n,o){this.type=e,this.scope=n,this.override=o,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let o;WR(n)&&(o=this.register(n));const r=this.items,i=e.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in r||(r[i]=e,$R(e,s,o),this.override&&Te.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const n=this.items,o=e.id,r=this.scope;o in n&&delete n[o],r&&o in Te[r]&&(delete Te[r][o],this.override&&delete Zi[o])}}function $R(a,e,n){const o=y1(Object.create(null),[n?Te.get(n):{},Te.get(e),a.defaults]);Te.set(e,o),a.defaultRoutes&&UR(e,a.defaultRoutes),a.descriptors&&Te.describe(e,a.descriptors)}function UR(a,e){Object.keys(e).forEach(n=>{const o=n.split("."),r=o.pop(),i=[a].concat(o).join("."),s=e[n].split("."),c=s.pop(),d=s.join(".");Te.route(i,r,d,c)})}function WR(a){return"id"in a&&"defaults"in a}class GR{constructor(){this.controllers=new XL(as,"datasets",!0),this.elements=new XL(ta,"elements"),this.plugins=new XL(Object,"plugins"),this.scales=new XL(As,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,o){[...n].forEach(r=>{const i=o||this._getRegistryForType(r);o||i.isForType(r)||i===this.plugins&&r.id?this._exec(e,i,r):Le(r,s=>{const c=o||this._getRegistryForType(s);this._exec(e,c,s)})})}_exec(e,n,o){const r=hI(e);Ae(o["before"+r],[],o),n[e](o),Ae(o["after"+r],[],o)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const o=this._typedRegistries[n];if(o.isForType(e))return o}return this.plugins}_get(e,n,o){const r=n.get(e);if(r===void 0)throw new Error('"'+e+'" is not a registered '+o+".");return r}}var Ot=new GR;class KR{constructor(){this._init=void 0}notify(e,n,o,r){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const i=r?this._descriptors(e).filter(r):this._descriptors(e),s=this._notify(i,e,n,o);return n==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),s}_notify(e,n,o,r){r=r||{};for(const i of e){const s=i.plugin,c=s[o],d=[n,r,i.options];if(Ae(c,d,s)===!1&&r.cancelable)return!1}return!0}invalidate(){Ce(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const o=e&&e.config,r=me(o.options&&o.options.plugins,{}),i=XR(o);return r===!1&&!n?[]:YR(e,i,r,n)}_notifyStateChanges(e){const n=this._oldCache||[],o=this._cache,r=(i,s)=>i.filter(c=>!s.some(d=>c.plugin.id===d.plugin.id));this._notify(r(n,o),e,"stop"),this._notify(r(o,n),e,"start")}}function XR(a){const e={},n=[],o=Object.keys(Ot.plugins.items);for(let i=0;i<o.length;i++)n.push(Ot.getPlugin(o[i]));const r=a.plugins||[];for(let i=0;i<r.length;i++){const s=r[i];n.indexOf(s)===-1&&(n.push(s),e[s.id]=!0)}return{plugins:n,localIds:e}}function ZR(a,e){return!e&&a===!1?null:a===!0?{}:a}function YR(a,{plugins:e,localIds:n},o,r){const i=[],s=a.getContext();for(const c of e){const d=c.id,h=ZR(o[d],r);h!==null&&i.push({plugin:c,options:QR(a.config,{plugin:c,local:n[d]},h,s)})}return i}function QR(a,{plugin:e,local:n},o,r){const i=a.pluginScopeKeys(e),s=a.getOptionScopes(o,i);return n&&e.defaults&&s.push(e.defaults),a.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function EI(a,e){const n=Te.datasets[a]||{};return((e.datasets||{})[a]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function JR(a,e){let n=a;return a==="_index_"?n=e:a==="_value_"&&(n=e==="x"?"y":"x"),n}function eN(a,e){return a===e?"_index_":"_value_"}function VV(a){if(a==="x"||a==="y"||a==="r")return a}function tN(a){if(a==="top"||a==="bottom")return"x";if(a==="left"||a==="right")return"y"}function TI(a,...e){if(VV(a))return a;for(const n of e){const o=n.axis||tN(n.position)||a.length>1&&VV(a[0].toLowerCase());if(o)return o}throw new Error(`Cannot determine type of '${a}' axis. Please provide 'axis' or 'position' option.`)}function zV(a,e,n){if(n[e+"AxisID"]===a)return{axis:e}}function aN(a,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(o=>o.xAxisID===a||o.yAxisID===a);if(n.length)return zV(a,"x",n[0])||zV(a,"y",n[0])}return{}}function nN(a,e){const n=Zi[a.type]||{scales:{}},o=e.scales||{},r=EI(a.type,e),i=Object.create(null);return Object.keys(o).forEach(s=>{const c=o[s];if(!Me(c))return console.error(`Invalid scale configuration for scale: ${s}`);if(c._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const d=TI(s,c,aN(s,a),Te.scales[c.type]),h=eN(d,r),u=n.scales||{};i[s]=f1(Object.create(null),[{axis:d},c,u[d],u[h]])}),a.data.datasets.forEach(s=>{const c=s.type||a.type,d=s.indexAxis||EI(c,e),u=(Zi[c]||{}).scales||{};Object.keys(u).forEach(p=>{const y=JR(p,d),f=s[y+"AxisID"]||y;i[f]=i[f]||Object.create(null),f1(i[f],[{axis:y},o[f],u[p]])})}),Object.keys(i).forEach(s=>{const c=i[s];f1(c,[Te.scales[c.type],Te.scale])}),i}function qV(a){const e=a.options||(a.options={});e.plugins=me(e.plugins,{}),e.scales=nN(a,e)}function PV(a){return a=a||{},a.datasets=a.datasets||[],a.labels=a.labels||[],a}function oN(a){return a=a||{},a.data=PV(a.data),qV(a),a}const DV=new Map,EV=new Set;function ZL(a,e){let n=DV.get(a);return n||(n=e(),DV.set(a,n),EV.add(n)),n}const B1=(a,e,n)=>{const o=Gi(e,n);o!==void 0&&a.add(o)};class rN{constructor(e){this._config=oN(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=PV(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),qV(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return ZL(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return ZL(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return ZL(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,o=this.type;return ZL(`${o}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const o=this._scopeCache;let r=o.get(e);return(!r||n)&&(r=new Map,o.set(e,r)),r}getOptionScopes(e,n,o){const{options:r,type:i}=this,s=this._cachedScopes(e,o),c=s.get(n);if(c)return c;const d=new Set;n.forEach(u=>{e&&(d.add(e),u.forEach(p=>B1(d,e,p))),u.forEach(p=>B1(d,r,p)),u.forEach(p=>B1(d,Zi[i]||{},p)),u.forEach(p=>B1(d,Te,p)),u.forEach(p=>B1(d,gI,p))});const h=Array.from(d);return h.length===0&&h.push(Object.create(null)),EV.has(n)&&s.set(n,h),h}chartOptionScopes(){const{options:e,type:n}=this;return[e,Zi[n]||{},Te.datasets[n]||{},{type:n},Te,gI]}resolveNamedOptions(e,n,o,r=[""]){const i={$shared:!0},{resolver:s,subPrefixes:c}=TV(this._resolverCache,e,r);let d=s;if(sN(s,n)){i.$shared=!1,o=xa(o)?o():o;const h=this.createResolver(e,o,c);d=Ls(s,o,h)}for(const h of n)i[h]=d[h];return i}createResolver(e,n,o=[""],r){const{resolver:i}=TV(this._resolverCache,e,o);return Me(n)?Ls(i,n,void 0,r):i}}function TV(a,e,n){let o=a.get(e);o||(o=new Map,a.set(e,o));const r=n.join();let i=o.get(r);return i||(i={resolver:wI(e,n),subPrefixes:n.filter(c=>!c.toLowerCase().includes("hover"))},o.set(r,i)),i}const iN=a=>Me(a)&&Object.getOwnPropertyNames(a).some(e=>xa(a[e]));function sN(a,e){const{isScriptable:n,isIndexable:o}=OB(a);for(const r of e){const i=n(r),s=o(r),c=(s||i)&&a[r];if(i&&(xa(c)||iN(c))||s&&He(c))return!0}return!1}var lN="4.5.1";const cN=["top","bottom","left","right","chartArea"];function HV(a,e){return a==="top"||a==="bottom"||cN.indexOf(a)===-1&&e==="x"}function jV(a,e){return function(n,o){return n[a]===o[a]?n[e]-o[e]:n[a]-o[a]}}function OV(a){const e=a.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Ae(n&&n.onComplete,[a],e)}function dN(a){const e=a.chart,n=e.options.animation;Ae(n&&n.onProgress,[a],e)}function FV(a){return LI()&&typeof a=="string"?a=document.getElementById(a):a&&a.length&&(a=a[0]),a&&a.canvas&&(a=a.canvas),a}const YL={},RV=a=>{const e=FV(a);return Object.values(YL).filter(n=>n.canvas===e).pop()};function hN(a,e,n){const o=Object.keys(a);for(const r of o){const i=+r;if(i>=e){const s=a[r];delete a[r],(n>0||i>e)&&(a[i+n]=s)}}}function uN(a,e,n,o){return!n||a.type==="mouseout"?null:o?e:a}class aa{static register(...e){Ot.add(...e),NV()}static unregister(...e){Ot.remove(...e),NV()}constructor(e,n){const o=this.config=new rN(n),r=FV(e),i=RV(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=o.createResolver(o.chartOptionScopes(),this.getContext());this.platform=new(o.platform||BR(r)),this.platform.updateConfig(o);const c=this.platform.acquireContext(r,s.aspectRatio),d=c&&c.canvas,h=d&&d.height,u=d&&d.width;if(this.id=dO(),this.ctx=c,this.canvas=d,this.width=u,this.height=h,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new KR,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=AO(p=>this.update(p),s.resizeDelay||0),this._dataChanges=[],YL[this.id]=this,!c||!d){console.error("Failed to create chart: can't acquire context from the given item");return}ea.listen(this,"complete",OV),ea.listen(this,"progress",dN),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:o,height:r,_aspectRatio:i}=this;return Ce(e)?n&&i?i:r?o/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Ot}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():GB(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return TB(this.canvas,this.ctx),this}stop(){return ea.stop(this),this}resize(e,n){ea.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const o=this.options,r=this.canvas,i=o.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,e,n,i),c=o.devicePixelRatio||this.platform.getDevicePixelRatio(),d=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,GB(this,c,!0)&&(this.notifyPlugins("resize",{size:s}),Ae(o.onResize,[this,s],this),this.attached&&this._doResize(d)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Le(n,(o,r)=>{o.id=r})}buildOrUpdateScales(){const e=this.options,n=e.scales,o=this.scales,r=Object.keys(o).reduce((s,c)=>(s[c]=!1,s),{});let i=[];n&&(i=i.concat(Object.keys(n).map(s=>{const c=n[s],d=TI(s,c),h=d==="r",u=d==="x";return{options:c,dposition:h?"chartArea":u?"bottom":"left",dtype:h?"radialLinear":u?"category":"linear"}}))),Le(i,s=>{const c=s.options,d=c.id,h=TI(d,c),u=me(c.type,s.dtype);(c.position===void 0||HV(c.position,h)!==HV(s.dposition))&&(c.position=s.dposition),r[d]=!0;let p=null;if(d in o&&o[d].type===u)p=o[d];else{const y=Ot.getScale(u);p=new y({id:d,type:u,ctx:this.ctx,chart:this}),o[p.id]=p}p.init(c,e)}),Le(r,(s,c)=>{s||delete o[c]}),Le(o,s=>{ut.configure(this,s,s.options),ut.addBox(this,s)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,o=e.length;if(e.sort((r,i)=>r.index-i.index),o>n){for(let r=n;r<o;++r)this._destroyDatasetMeta(r);e.splice(n,o-n)}this._sortedMetasets=e.slice(0).sort(jV("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((o,r)=>{n.filter(i=>i===o._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let o,r;for(this._removeUnreferencedMetasets(),o=0,r=n.length;o<r;o++){const i=n[o];let s=this.getDatasetMeta(o);const c=i.type||this.config.type;if(s.type&&s.type!==c&&(this._destroyDatasetMeta(o),s=this.getDatasetMeta(o)),s.type=c,s.indexAxis=i.indexAxis||EI(c,this.options),s.order=i.order||0,s.index=o,s.label=""+i.label,s.visible=this.isDatasetVisible(o),s.controller)s.controller.updateIndex(o),s.controller.linkScales();else{const d=Ot.getController(c),{datasetElementType:h,dataElementType:u}=Te.datasets[c];Object.assign(d,{dataElementType:Ot.getElement(u),datasetElementType:h&&Ot.getElement(h)}),s.controller=new d(this,o),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){Le(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const o=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!o.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let h=0,u=this.data.datasets.length;h<u;h++){const{controller:p}=this.getDatasetMeta(h),y=!r&&i.indexOf(p)===-1;p.buildOrUpdateElements(y),s=Math.max(+p.getMaxOverflow(),s)}s=this._minPadding=o.layout.autoPadding?s:0,this._updateLayout(s),r||Le(i,h=>{h.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(jV("z","_idx"));const{_active:c,_lastEvent:d}=this;d?this._eventHandler(d,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){Le(this.scales,e=>{ut.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),o=new Set(e.events);(!MB(n,o)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:o,start:r,count:i}of n){const s=o==="_removeElements"?-i:i;hN(e,r,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,o=i=>new Set(e.filter(s=>s[0]===i).map((s,c)=>c+","+s.splice(1).join(","))),r=o(0);for(let i=1;i<n;i++)if(!MB(r,o(i)))return;return Array.from(r).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ut.update(this,this.width,this.height,e);const n=this.chartArea,o=n.width<=0||n.height<=0;this._layers=[],Le(this.boxes,r=>{o&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,o=this.data.datasets.length;n<o;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,o=this.data.datasets.length;n<o;++n)this._updateDataset(n,xa(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const o=this.getDatasetMeta(e),r={meta:o,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(o.controller._update(n),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ea.has(this)?this.attached&&!ea.running(this)&&ea.start(this):(this.draw(),OV({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:o,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(o,r)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,o=[];let r,i;for(r=0,i=n.length;r<i;++r){const s=n[r];(!e||s.visible)&&o.push(s)}return o}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,o={meta:e,index:e.index,cancelable:!0},r=nV(this,e);this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&PL(n,r),e.controller.draw(),r&&DL(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return w1(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,o,r){const i=cR.modes[n];return typeof i=="function"?i(this,e,o,r):[]}getDatasetMeta(e){const n=this.data.datasets[e],o=this._metasets;let r=o.filter(i=>i&&i._dataset===n).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},o.push(r)),r}getContext(){return this.$context||(this.$context=Qi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const o=this.getDatasetMeta(e);return typeof o.hidden=="boolean"?!o.hidden:!n.hidden}setDatasetVisibility(e,n){const o=this.getDatasetMeta(e);o.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,o){const r=o?"show":"hide",i=this.getDatasetMeta(e),s=i.controller._resolveAnimations(void 0,r);k1(n)?(i.data[n].hidden=!o,this.update()):(this.setDatasetVisibility(e,o),s.update(i,{visible:o}),this.update(c=>c.datasetIndex===e?r:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),ea.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),TB(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete YL[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,o=(i,s)=>{n.addEventListener(this,i,s),e[i]=s},r=(i,s,c)=>{i.offsetX=s,i.offsetY=c,this._eventHandler(i)};Le(this.options.events,i=>o(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,o=(d,h)=>{n.addEventListener(this,d,h),e[d]=h},r=(d,h)=>{e[d]&&(n.removeEventListener(this,d,h),delete e[d])},i=(d,h)=>{this.canvas&&this.resize(d,h)};let s;const c=()=>{r("attach",c),this.attached=!0,this.resize(),o("resize",i),o("detach",s)};s=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),o("attach",c)},n.isAttached(this.canvas)?c():s()}unbindEvents(){Le(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Le(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,o){const r=o?"set":"remove";let i,s,c,d;for(n==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),c=0,d=e.length;c<d;++c){s=e[c];const h=s&&this.getDatasetMeta(s.datasetIndex).controller;h&&h[r+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],o=e.map(({datasetIndex:i,index:s})=>{const c=this.getDatasetMeta(i);if(!c)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:c.data[s],index:s}});!BL(o,n)&&(this._active=o,this._lastEvent=null,this._updateHoverStyles(o,n))}notifyPlugins(e,n,o){return this._plugins.notify(this,e,n,o)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,o){const r=this.options.hover,i=(d,h)=>d.filter(u=>!h.some(p=>u.datasetIndex===p.datasetIndex&&u.index===p.index)),s=i(n,e),c=o?e:i(e,n);s.length&&this.updateHoverStyle(s,r.mode,!1),c.length&&r.mode&&this.updateHoverStyle(c,r.mode,!0)}_eventHandler(e,n){const o={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},r=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",o,r)===!1)return;const i=this._handleEvent(e,n,o.inChartArea);return o.cancelable=!1,this.notifyPlugins("afterEvent",o,r),(i||o.changed)&&this.render(),this}_handleEvent(e,n,o){const{_active:r=[],options:i}=this,s=n,c=this._getActiveElements(e,r,o,s),d=kO(e),h=uN(e,this._lastEvent,o,d);o&&(this._lastEvent=null,Ae(i.onHover,[e,c,this],this),d&&Ae(i.onClick,[e,c,this],this));const u=!BL(c,r);return(u||n)&&(this._active=c,this._updateHoverStyles(c,r,n)),this._lastEvent=h,u}_getActiveElements(e,n,o,r){if(e.type==="mouseout")return[];if(!o)return n;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}}ce(aa,"defaults",Te),ce(aa,"instances",YL),ce(aa,"overrides",Zi),ce(aa,"registry",Ot),ce(aa,"version",lN),ce(aa,"getChart",RV);function NV(){return Le(aa.instances,a=>a._plugins.invalidate())}function pN(a,e,n){const{startAngle:o,x:r,y:i,outerRadius:s,innerRadius:c,options:d}=e,{borderWidth:h,borderJoinStyle:u}=d,p=Math.min(h/s,nt(o-n));if(a.beginPath(),a.arc(r,i,s-h/2,o+p/2,n-p/2),c>0){const y=Math.min(h/c,nt(o-n));a.arc(r,i,c+h/2,n-y/2,o+y/2,!0)}else{const y=Math.min(h/2,s*nt(o-n));if(u==="round")a.arc(r,i,y,n-Se/2,o+Se/2,!0);else if(u==="bevel"){const f=2*y*y,k=-f*Math.cos(n+Se/2)+r,m=-f*Math.sin(n+Se/2)+i,g=f*Math.cos(o+Se/2)+r,v=f*Math.sin(o+Se/2)+i;a.lineTo(k,m),a.lineTo(g,v)}}a.closePath(),a.moveTo(0,0),a.rect(0,0,a.canvas.width,a.canvas.height),a.clip("evenodd")}function yN(a,e,n){const{startAngle:o,pixelMargin:r,x:i,y:s,outerRadius:c,innerRadius:d}=e;let h=r/c;a.beginPath(),a.arc(i,s,c,o-h,n+h),d>r?(h=r/d,a.arc(i,s,d,n+h,o-h,!0)):a.arc(i,s,r,n+Oe,o-Oe),a.closePath(),a.clip()}function fN(a){return xI(a,["outerStart","outerEnd","innerStart","innerEnd"])}function kN(a,e,n,o){const r=fN(a.options.borderRadius),i=(n-e)/2,s=Math.min(i,o*e/2),c=d=>{const h=(n-Math.min(i,d))*o/2;return Ne(d,0,Math.min(i,h))};return{outerStart:c(r.outerStart),outerEnd:c(r.outerEnd),innerStart:Ne(r.innerStart,0,s),innerEnd:Ne(r.innerEnd,0,s)}}function Bs(a,e,n,o){return{x:n+a*Math.cos(e),y:o+a*Math.sin(e)}}function QL(a,e,n,o,r,i){const{x:s,y:c,startAngle:d,pixelMargin:h,innerRadius:u}=e,p=Math.max(e.outerRadius+o+n-h,0),y=u>0?u+o+n+h:0;let f=0;const k=r-d;if(o){const U=u>0?u-o:0,T=p>0?p-o:0,H=(U+T)/2,N=H!==0?k*H/(H+o):k;f=(k-N)/2}const m=Math.max(.001,k*p-n/Se)/p,g=(k-m)/2,v=d+g+f,L=r-g-f,{outerStart:w,outerEnd:M,innerStart:C,innerEnd:S}=kN(e,y,p,L-v),b=p-w,x=p-M,I=v+w/b,V=L-M/x,B=y+C,A=y+S,P=v+C/B,D=L-S/A;if(a.beginPath(),i){const U=(I+V)/2;if(a.arc(s,c,p,I,U),a.arc(s,c,p,U,V),M>0){const Q=Bs(x,V,s,c);a.arc(Q.x,Q.y,M,V,L+Oe)}const T=Bs(A,L,s,c);if(a.lineTo(T.x,T.y),S>0){const Q=Bs(A,D,s,c);a.arc(Q.x,Q.y,S,L+Oe,D+Math.PI)}const H=(L-S/y+(v+C/y))/2;if(a.arc(s,c,y,L-S/y,H,!0),a.arc(s,c,y,H,v+C/y,!0),C>0){const Q=Bs(B,P,s,c);a.arc(Q.x,Q.y,C,P+Math.PI,v-Oe)}const N=Bs(b,v,s,c);if(a.lineTo(N.x,N.y),w>0){const Q=Bs(b,I,s,c);a.arc(Q.x,Q.y,w,v-Oe,I)}}else{a.moveTo(s,c);const U=Math.cos(I)*p+s,T=Math.sin(I)*p+c;a.lineTo(U,T);const H=Math.cos(V)*p+s,N=Math.sin(V)*p+c;a.lineTo(H,N)}a.closePath()}function mN(a,e,n,o,r){const{fullCircles:i,startAngle:s,circumference:c}=e;let d=e.endAngle;if(i){QL(a,e,n,o,d,r);for(let h=0;h<i;++h)a.fill();isNaN(c)||(d=s+(c%ze||ze))}return QL(a,e,n,o,d,r),a.fill(),d}function gN(a,e,n,o,r){const{fullCircles:i,startAngle:s,circumference:c,options:d}=e,{borderWidth:h,borderJoinStyle:u,borderDash:p,borderDashOffset:y,borderRadius:f}=d,k=d.borderAlign==="inner";if(!h)return;a.setLineDash(p||[]),a.lineDashOffset=y,k?(a.lineWidth=h*2,a.lineJoin=u||"round"):(a.lineWidth=h,a.lineJoin=u||"bevel");let m=e.endAngle;if(i){QL(a,e,n,o,m,r);for(let g=0;g<i;++g)a.stroke();isNaN(c)||(m=s+(c%ze||ze))}k&&yN(a,e,m),d.selfJoin&&m-s>=Se&&f===0&&u!=="miter"&&pN(a,e,m),i||(QL(a,e,n,o,m,r),a.stroke())}class V1 extends ta{constructor(n){super();ce(this,"circumference");ce(this,"endAngle");ce(this,"fullCircles");ce(this,"innerRadius");ce(this,"outerRadius");ce(this,"pixelMargin");ce(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,o,r){const i=this.getProps(["x","y"],r),{angle:s,distance:c}=LB(i,{x:n,y:o}),{startAngle:d,endAngle:h,innerRadius:u,outerRadius:p,circumference:y}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),f=(this.options.spacing+this.options.borderWidth)/2,k=me(y,h-d),m=b1(s,d,h)&&d!==h,g=k>=ze||m,v=Jt(c,u+f,p+f);return g&&v}getCenterPoint(n){const{x:o,y:r,startAngle:i,endAngle:s,innerRadius:c,outerRadius:d}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:h,spacing:u}=this.options,p=(i+s)/2,y=(c+d+u+h)/2;return{x:o+Math.cos(p)*y,y:r+Math.sin(p)*y}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:o,circumference:r}=this,i=(o.offset||0)/4,s=(o.spacing||0)/2,c=o.circular;if(this.pixelMargin=o.borderAlign==="inner"?.33:0,this.fullCircles=r>ze?Math.floor(r/ze):0,r===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const d=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(d)*i,Math.sin(d)*i);const h=1-Math.sin(Math.min(Se,r||0)),u=i*h;n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,mN(n,this,u,s,c),gN(n,this,u,s,c),n.restore()}}ce(V1,"id","arc"),ce(V1,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),ce(V1,"defaultRoutes",{backgroundColor:"backgroundColor"}),ce(V1,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function $V(a,e,n=e){a.lineCap=me(n.borderCapStyle,e.borderCapStyle),a.setLineDash(me(n.borderDash,e.borderDash)),a.lineDashOffset=me(n.borderDashOffset,e.borderDashOffset),a.lineJoin=me(n.borderJoinStyle,e.borderJoinStyle),a.lineWidth=me(n.borderWidth,e.borderWidth),a.strokeStyle=me(n.borderColor,e.borderColor)}function bN(a,e,n){a.lineTo(n.x,n.y)}function MN(a){return a.stepped?NO:a.tension||a.cubicInterpolationMode==="monotone"?$O:bN}function UV(a,e,n={}){const o=a.length,{start:r=0,end:i=o-1}=n,{start:s,end:c}=e,d=Math.max(r,s),h=Math.min(i,c),u=r<s&&i<s||r>c&&i>c;return{count:o,start:d,loop:e.loop,ilen:h<d&&!u?o+h-d:h-d}}function xN(a,e,n,o){const{points:r,options:i}=e,{count:s,start:c,loop:d,ilen:h}=UV(r,n,o),u=MN(i);let{move:p=!0,reverse:y}=o||{},f,k,m;for(f=0;f<=h;++f)k=r[(c+(y?h-f:f))%s],!k.skip&&(p?(a.moveTo(k.x,k.y),p=!1):u(a,m,k,y,i.stepped),m=k);return d&&(k=r[(c+(y?h:0))%s],u(a,m,k,y,i.stepped)),!!d}function wN(a,e,n,o){const r=e.points,{count:i,start:s,ilen:c}=UV(r,n,o),{move:d=!0,reverse:h}=o||{};let u=0,p=0,y,f,k,m,g,v;const L=M=>(s+(h?c-M:M))%i,w=()=>{m!==g&&(a.lineTo(u,g),a.lineTo(u,m),a.lineTo(u,v))};for(d&&(f=r[L(0)],a.moveTo(f.x,f.y)),y=0;y<=c;++y){if(f=r[L(y)],f.skip)continue;const M=f.x,C=f.y,S=M|0;S===k?(C<m?m=C:C>g&&(g=C),u=(p*u+M)/++p):(w(),a.lineTo(M,C),k=S,p=0,m=g=C),v=C}w()}function HI(a){const e=a.options,n=e.borderDash&&e.borderDash.length;return!a._decimated&&!a._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?wN:xN}function vN(a){return a.stepped?wF:a.tension||a.cubicInterpolationMode==="monotone"?vF:ts}function CN(a,e,n,o){let r=e._path;r||(r=e._path=new Path2D,e.path(r,n,o)&&r.closePath()),$V(a,e.options),a.stroke(r)}function LN(a,e,n,o){const{segments:r,options:i}=e,s=HI(e);for(const c of r)$V(a,i,c.style),a.beginPath(),s(a,e,c,{start:n,end:n+o-1})&&a.closePath(),a.stroke()}const SN=typeof Path2D=="function";function IN(a,e,n,o){SN&&!e.options.segment?CN(a,e,n,o):LN(a,e,n,o)}class va extends ta{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const o=this.options;if((o.tension||o.cubicInterpolationMode==="monotone")&&!o.stepped&&!this._pointsUpdated){const r=o.spanGaps?this._loop:this._fullLoop;yF(this._points,o,e,r,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=AF(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,o=e.length;return o&&n[e[o-1].end]}interpolate(e,n){const o=this.options,r=e[n],i=this.points,s=eV(this,{property:n,start:r,end:r});if(!s.length)return;const c=[],d=vN(o);let h,u;for(h=0,u=s.length;h<u;++h){const{start:p,end:y}=s[h],f=i[p],k=i[y];if(f===k){c.push(f);continue}const m=Math.abs((r-f[n])/(k[n]-f[n])),g=d(f,k,m,o.stepped);g[n]=e[n],c.push(g)}return c.length===1?c[0]:c}pathSegment(e,n,o){return HI(this)(e,this,n,o)}path(e,n,o){const r=this.segments,i=HI(this);let s=this._loop;n=n||0,o=o||this.points.length-n;for(const c of r)s&=i(e,this,c,{start:n,end:n+o-1});return!!s}draw(e,n,o,r){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),IN(e,this,o,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ce(va,"id","line"),ce(va,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ce(va,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ce(va,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function WV(a,e,n,o){const r=a.options,{[n]:i}=a.getProps([n],o);return Math.abs(e-i)<r.radius+r.hitRadius}class JL extends ta{constructor(n){super();ce(this,"parsed");ce(this,"skip");ce(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,o,r){const i=this.options,{x:s,y:c}=this.getProps(["x","y"],r);return Math.pow(n-s,2)+Math.pow(o-c,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(n,o){return WV(this,n,"x",o)}inYRange(n,o){return WV(this,n,"y",o)}getCenterPoint(n){const{x:o,y:r}=this.getProps(["x","y"],n);return{x:o,y:r}}size(n){n=n||this.options||{};let o=n.radius||0;o=Math.max(o,o&&n.hoverRadius||0);const r=o&&n.borderWidth||0;return(o+r)*2}draw(n,o){const r=this.options;this.skip||r.radius<.1||!w1(this,o,this.size(r)/2)||(n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.fillStyle=r.backgroundColor,MI(n,r,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ce(JL,"id","point"),ce(JL,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ce(JL,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function GV(a,e){const{x:n,y:o,base:r,width:i,height:s}=a.getProps(["x","y","base","width","height"],e);let c,d,h,u,p;return a.horizontal?(p=s/2,c=Math.min(n,r),d=Math.max(n,r),h=o-p,u=o+p):(p=i/2,c=n-p,d=n+p,h=Math.min(o,r),u=Math.max(o,r)),{left:c,top:h,right:d,bottom:u}}function Ca(a,e,n,o){return a?0:Ne(e,n,o)}function _N(a,e,n){const o=a.options.borderWidth,r=a.borderSkipped,i=jB(o);return{t:Ca(r.top,i.top,0,n),r:Ca(r.right,i.right,0,e),b:Ca(r.bottom,i.bottom,0,n),l:Ca(r.left,i.left,0,e)}}function AN(a,e,n){const{enableBorderRadius:o}=a.getProps(["enableBorderRadius"]),r=a.options.borderRadius,i=Cs(r),s=Math.min(e,n),c=a.borderSkipped,d=o||Me(r);return{topLeft:Ca(!d||c.top||c.left,i.topLeft,0,s),topRight:Ca(!d||c.top||c.right,i.topRight,0,s),bottomLeft:Ca(!d||c.bottom||c.left,i.bottomLeft,0,s),bottomRight:Ca(!d||c.bottom||c.right,i.bottomRight,0,s)}}function BN(a){const e=GV(a),n=e.right-e.left,o=e.bottom-e.top,r=_N(a,n/2,o/2),i=AN(a,n/2,o/2);return{outer:{x:e.left,y:e.top,w:n,h:o,radius:i},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:o-r.t-r.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,i.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(r.b,r.r))}}}}function jI(a,e,n,o){const r=e===null,i=n===null,c=a&&!(r&&i)&&GV(a,o);return c&&(r||Jt(e,c.left,c.right))&&(i||Jt(n,c.top,c.bottom))}function VN(a){return a.topLeft||a.topRight||a.bottomLeft||a.bottomRight}function zN(a,e){a.rect(e.x,e.y,e.w,e.h)}function OI(a,e,n={}){const o=a.x!==n.x?-e:0,r=a.y!==n.y?-e:0,i=(a.x+a.w!==n.x+n.w?e:0)-o,s=(a.y+a.h!==n.y+n.h?e:0)-r;return{x:a.x+o,y:a.y+r,w:a.w+i,h:a.h+s,radius:a.radius}}class eS extends ta{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:o,backgroundColor:r}}=this,{inner:i,outer:s}=BN(this),c=VN(s.radius)?EL:zN;e.save(),(s.w!==i.w||s.h!==i.h)&&(e.beginPath(),c(e,OI(s,n,i)),e.clip(),c(e,OI(i,-n,s)),e.fillStyle=o,e.fill("evenodd")),e.beginPath(),c(e,OI(i,n)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,n,o){return jI(this,e,n,o)}inXRange(e,n){return jI(this,e,null,n)}inYRange(e,n){return jI(this,null,e,n)}getCenterPoint(e){const{x:n,y:o,base:r,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(n+r)/2:n,y:i?o:(o+r)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}ce(eS,"id","bar"),ce(eS,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),ce(eS,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function qN(a,e,n){const o=a.segments,r=a.points,i=e.points,s=[];for(const c of o){let{start:d,end:h}=c;h=tS(d,h,r);const u=FI(n,r[d],r[h],c.loop);if(!e.segments){s.push({source:c,target:u,start:r[d],end:r[h]});continue}const p=eV(e,u);for(const y of p){const f=FI(n,i[y.start],i[y.end],y.loop),k=JB(c,r,f);for(const m of k)s.push({source:m,target:y,start:{[n]:KV(u,f,"start",Math.max)},end:{[n]:KV(u,f,"end",Math.min)}})}}return s}function FI(a,e,n,o){if(o)return;let r=e[a],i=n[a];return a==="angle"&&(r=nt(r),i=nt(i)),{property:a,start:r,end:i}}function PN(a,e){const{x:n=null,y:o=null}=a||{},r=e.points,i=[];return e.segments.forEach(({start:s,end:c})=>{c=tS(s,c,r);const d=r[s],h=r[c];o!==null?(i.push({x:d.x,y:o}),i.push({x:h.x,y:o})):n!==null&&(i.push({x:n,y:d.y}),i.push({x:n,y:h.y}))}),i}function tS(a,e,n){for(;e>a;e--){const o=n[e];if(!isNaN(o.x)&&!isNaN(o.y))break}return e}function KV(a,e,n,o){return a&&e?o(a[n],e[n]):a?a[n]:e?e[n]:0}function XV(a,e){let n=[],o=!1;return He(a)?(o=!0,n=a):n=PN(a,e),n.length?new va({points:n,options:{tension:0},_loop:o,_fullLoop:o}):null}function ZV(a){return a&&a.fill!==!1}function DN(a,e,n){let r=a[e].fill;const i=[e];let s;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!Re(r))return r;if(s=a[r],!s)return!1;if(s.visible)return r;i.push(r),r=s.fill}return!1}function EN(a,e,n){const o=ON(a);if(Me(o))return isNaN(o.value)?!1:o;let r=parseFloat(o);return Re(r)&&Math.floor(r)===r?TN(o[0],e,r,n):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}function TN(a,e,n,o){return(a==="-"||a==="+")&&(n=e+n),n===e||n<0||n>=o?!1:n}function HN(a,e){let n=null;return a==="start"?n=e.bottom:a==="end"?n=e.top:Me(a)?n=e.getPixelForValue(a.value):e.getBasePixel&&(n=e.getBasePixel()),n}function jN(a,e,n){let o;return a==="start"?o=n:a==="end"?o=e.options.reverse?e.min:e.max:Me(a)?o=a.value:o=e.getBaseValue(),o}function ON(a){const e=a.options,n=e.fill;let o=me(n&&n.target,n);return o===void 0&&(o=!!e.backgroundColor),o===!1||o===null?!1:o===!0?"origin":o}function FN(a){const{scale:e,index:n,line:o}=a,r=[],i=o.segments,s=o.points,c=RN(e,n);c.push(XV({x:null,y:e.bottom},o));for(let d=0;d<i.length;d++){const h=i[d];for(let u=h.start;u<=h.end;u++)NN(r,s[u],c)}return new va({points:r,options:{}})}function RN(a,e){const n=[],o=a.getMatchingVisibleMetas("line");for(let r=0;r<o.length;r++){const i=o[r];if(i.index===e)break;i.hidden||n.unshift(i.dataset)}return n}function NN(a,e,n){const o=[];for(let r=0;r<n.length;r++){const i=n[r],{first:s,last:c,point:d}=$N(i,e,"x");if(!(!d||s&&c)){if(s)o.unshift(d);else if(a.push(d),!c)break}}a.push(...o)}function $N(a,e,n){const o=a.interpolate(e,n);if(!o)return{};const r=o[n],i=a.segments,s=a.points;let c=!1,d=!1;for(let h=0;h<i.length;h++){const u=i[h],p=s[u.start][n],y=s[u.end][n];if(Jt(r,p,y)){c=r===p,d=r===y;break}}return{first:c,last:d,point:o}}class YV{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,o){const{x:r,y:i,radius:s}=this;return n=n||{start:0,end:ze},e.arc(r,i,s,n.end,n.start,!0),!o.bounds}interpolate(e){const{x:n,y:o,radius:r}=this,i=e.angle;return{x:n+Math.cos(i)*r,y:o+Math.sin(i)*r,angle:i}}}function UN(a){const{chart:e,fill:n,line:o}=a;if(Re(n))return WN(e,n);if(n==="stack")return FN(a);if(n==="shape")return!0;const r=GN(a);return r instanceof YV?r:XV(r,o)}function WN(a,e){const n=a.getDatasetMeta(e);return n&&a.isDatasetVisible(e)?n.dataset:null}function GN(a){return(a.scale||{}).getPointPositionForValue?XN(a):KN(a)}function KN(a){const{scale:e={},fill:n}=a,o=HN(n,e);if(Re(o)){const r=e.isHorizontal();return{x:r?o:null,y:r?null:o}}return null}function XN(a){const{scale:e,fill:n}=a,o=e.options,r=e.getLabels().length,i=o.reverse?e.max:e.min,s=jN(n,e,i),c=[];if(o.grid.circular){const d=e.getPointPositionForValue(0,i);return new YV({x:d.x,y:d.y,radius:e.getDistanceFromCenterForValue(s)})}for(let d=0;d<r;++d)c.push(e.getPointPositionForValue(d,s));return c}function RI(a,e,n){const o=UN(e),{chart:r,index:i,line:s,scale:c,axis:d}=e,h=s.options,u=h.fill,p=h.backgroundColor,{above:y=p,below:f=p}=u||{},k=r.getDatasetMeta(i),m=nV(r,k);o&&s.points.length&&(PL(a,n),ZN(a,{line:s,target:o,above:y,below:f,area:n,scale:c,axis:d,clip:m}),DL(a))}function ZN(a,e){const{line:n,target:o,above:r,below:i,area:s,scale:c,clip:d}=e,h=n._loop?"angle":e.axis;a.save();let u=i;i!==r&&(h==="x"?(QV(a,o,s.top),NI(a,{line:n,target:o,color:r,scale:c,property:h,clip:d}),a.restore(),a.save(),QV(a,o,s.bottom)):h==="y"&&(JV(a,o,s.left),NI(a,{line:n,target:o,color:i,scale:c,property:h,clip:d}),a.restore(),a.save(),JV(a,o,s.right),u=r)),NI(a,{line:n,target:o,color:u,scale:c,property:h,clip:d}),a.restore()}function QV(a,e,n){const{segments:o,points:r}=e;let i=!0,s=!1;a.beginPath();for(const c of o){const{start:d,end:h}=c,u=r[d],p=r[tS(d,h,r)];i?(a.moveTo(u.x,u.y),i=!1):(a.lineTo(u.x,n),a.lineTo(u.x,u.y)),s=!!e.pathSegment(a,c,{move:s}),s?a.closePath():a.lineTo(p.x,n)}a.lineTo(e.first().x,n),a.closePath(),a.clip()}function JV(a,e,n){const{segments:o,points:r}=e;let i=!0,s=!1;a.beginPath();for(const c of o){const{start:d,end:h}=c,u=r[d],p=r[tS(d,h,r)];i?(a.moveTo(u.x,u.y),i=!1):(a.lineTo(n,u.y),a.lineTo(u.x,u.y)),s=!!e.pathSegment(a,c,{move:s}),s?a.closePath():a.lineTo(n,p.y)}a.lineTo(n,e.first().y),a.closePath(),a.clip()}function NI(a,e){const{line:n,target:o,property:r,color:i,scale:s,clip:c}=e,d=qN(n,o,r);for(const{source:h,target:u,start:p,end:y}of d){const{style:{backgroundColor:f=i}={}}=h,k=o!==!0;a.save(),a.fillStyle=f,YN(a,s,c,k&&FI(r,p,y)),a.beginPath();const m=!!n.pathSegment(a,h);let g;if(k){m?a.closePath():ez(a,o,y,r);const v=!!o.pathSegment(a,u,{move:m,reverse:!0});g=m&&v,g||ez(a,o,p,r)}a.closePath(),a.fill(g?"evenodd":"nonzero"),a.restore()}}function YN(a,e,n,o){const r=e.chart.chartArea,{property:i,start:s,end:c}=o||{};if(i==="x"||i==="y"){let d,h,u,p;i==="x"?(d=s,h=r.top,u=c,p=r.bottom):(d=r.left,h=s,u=r.right,p=c),a.beginPath(),n&&(d=Math.max(d,n.left),u=Math.min(u,n.right),h=Math.max(h,n.top),p=Math.min(p,n.bottom)),a.rect(d,h,u-d,p-h),a.clip()}}function ez(a,e,n,o){const r=e.interpolate(n,o);r&&a.lineTo(r.x,r.y)}var QN={id:"filler",afterDatasetsUpdate(a,e,n){const o=(a.data.datasets||[]).length,r=[];let i,s,c,d;for(s=0;s<o;++s)i=a.getDatasetMeta(s),c=i.dataset,d=null,c&&c.options&&c instanceof va&&(d={visible:a.isDatasetVisible(s),index:s,fill:EN(c,s,o),chart:a,axis:i.controller.options.indexAxis,scale:i.vScale,line:c}),i.$filler=d,r.push(d);for(s=0;s<o;++s)d=r[s],!(!d||d.fill===!1)&&(d.fill=DN(r,s,n.propagate))},beforeDraw(a,e,n){const o=n.drawTime==="beforeDraw",r=a.getSortedVisibleDatasetMetas(),i=a.chartArea;for(let s=r.length-1;s>=0;--s){const c=r[s].$filler;c&&(c.line.updateControlPoints(i,c.axis),o&&c.fill&&RI(a.ctx,c,i))}},beforeDatasetsDraw(a,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const o=a.getSortedVisibleDatasetMetas();for(let r=o.length-1;r>=0;--r){const i=o[r].$filler;ZV(i)&&RI(a.ctx,i,a.chartArea)}},beforeDatasetDraw(a,e,n){const o=e.meta.$filler;!ZV(o)||n.drawTime!=="beforeDatasetDraw"||RI(a.ctx,o,a.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const tz=(a,e)=>{let{boxHeight:n=e,boxWidth:o=e}=a;return a.usePointStyle&&(n=Math.min(n,e),o=a.pointStyleWidth||Math.min(o,e)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(e,n)}},JN=(a,e)=>a!==null&&e!==null&&a.datasetIndex===e.datasetIndex&&a.index===e.index;class az extends ta{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,o){this.maxWidth=e,this.maxHeight=n,this._margins=o,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Ae(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(o=>e.filter(o,this.chart.data))),e.sort&&(n=n.sort((o,r)=>e.sort(o,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const o=e.labels,r=Ue(o.font),i=r.size,s=this._computeTitleHeight(),{boxWidth:c,itemHeight:d}=tz(o,i);let h,u;n.font=r.string,this.isHorizontal()?(h=this.maxWidth,u=this._fitRows(s,i,c,d)+10):(u=this.maxHeight,h=this._fitCols(s,r,c,d)+10),this.width=Math.min(h,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,o,r){const{ctx:i,maxWidth:s,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.lineWidths=[0],u=r+c;let p=e;i.textAlign="left",i.textBaseline="middle";let y=-1,f=-u;return this.legendItems.forEach((k,m)=>{const g=o+n/2+i.measureText(k.text).width;(m===0||h[h.length-1]+g+2*c>s)&&(p+=u,h[h.length-(m>0?0:1)]=0,f+=u,y++),d[m]={left:0,top:f,row:y,width:g,height:r},h[h.length-1]+=g+c}),p}_fitCols(e,n,o,r){const{ctx:i,maxHeight:s,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.columnSizes=[],u=s-e;let p=c,y=0,f=0,k=0,m=0;return this.legendItems.forEach((g,v)=>{const{itemWidth:L,itemHeight:w}=e$(o,n,i,g,r);v>0&&f+w+2*c>u&&(p+=y+c,h.push({width:y,height:f}),k+=y+c,m++,y=f=0),d[v]={left:k,top:f,col:m,width:L,height:w},y=Math.max(y,L),f+=w+c}),p+=y,h.push({width:y,height:f}),p}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:o,labels:{padding:r},rtl:i}}=this,s=Is(i,this.left,this.width);if(this.isHorizontal()){let c=0,d=$e(o,this.left+r,this.right-this.lineWidths[c]);for(const h of n)c!==h.row&&(c=h.row,d=$e(o,this.left+r,this.right-this.lineWidths[c])),h.top+=this.top+e+r,h.left=s.leftForLtr(s.x(d),h.width),d+=h.width+r}else{let c=0,d=$e(o,this.top+e+r,this.bottom-this.columnSizes[c].height);for(const h of n)h.col!==c&&(c=h.col,d=$e(o,this.top+e+r,this.bottom-this.columnSizes[c].height)),h.top=d,h.left+=this.left+r,h.left=s.leftForLtr(s.x(h.left),h.width),d+=h.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;PL(e,this),this._draw(),DL(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:o,ctx:r}=this,{align:i,labels:s}=e,c=Te.color,d=Is(e.rtl,this.left,this.width),h=Ue(s.font),{padding:u}=s,p=h.size,y=p/2;let f;this.drawTitle(),r.textAlign=d.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=h.string;const{boxWidth:k,boxHeight:m,itemHeight:g}=tz(s,p),v=function(S,b,x){if(isNaN(k)||k<=0||isNaN(m)||m<0)return;r.save();const I=me(x.lineWidth,1);if(r.fillStyle=me(x.fillStyle,c),r.lineCap=me(x.lineCap,"butt"),r.lineDashOffset=me(x.lineDashOffset,0),r.lineJoin=me(x.lineJoin,"miter"),r.lineWidth=I,r.strokeStyle=me(x.strokeStyle,c),r.setLineDash(me(x.lineDash,[])),s.usePointStyle){const V={radius:m*Math.SQRT2/2,pointStyle:x.pointStyle,rotation:x.rotation,borderWidth:I},B=d.xPlus(S,k/2),A=b+y;HB(r,V,B,A,s.pointStyleWidth&&k)}else{const V=b+Math.max((p-m)/2,0),B=d.leftForLtr(S,k),A=Cs(x.borderRadius);r.beginPath(),Object.values(A).some(P=>P!==0)?EL(r,{x:B,y:V,w:k,h:m,radius:A}):r.rect(B,V,k,m),r.fill(),I!==0&&r.stroke()}r.restore()},L=function(S,b,x){v1(r,x.text,S,b+g/2,h,{strikethrough:x.hidden,textAlign:d.textAlign(x.textAlign)})},w=this.isHorizontal(),M=this._computeTitleHeight();w?f={x:$e(i,this.left+u,this.right-o[0]),y:this.top+u+M,line:0}:f={x:this.left+u,y:$e(i,this.top+M+u,this.bottom-n[0].height),line:0},XB(this.ctx,e.textDirection);const C=g+u;this.legendItems.forEach((S,b)=>{r.strokeStyle=S.fontColor,r.fillStyle=S.fontColor;const x=r.measureText(S.text).width,I=d.textAlign(S.textAlign||(S.textAlign=s.textAlign)),V=k+y+x;let B=f.x,A=f.y;d.setWidth(this.width),w?b>0&&B+V+u>this.right&&(A=f.y+=C,f.line++,B=f.x=$e(i,this.left+u,this.right-o[f.line])):b>0&&A+C>this.bottom&&(B=f.x=B+n[f.line].width+u,f.line++,A=f.y=$e(i,this.top+M+u,this.bottom-n[f.line].height));const P=d.x(B);if(v(P,A,S),B=BO(I,B+k+y,w?B+V:this.right,e.rtl),L(d.x(B),A,S),w)f.x+=V+u;else if(typeof S.text!="string"){const D=h.lineHeight;f.y+=nz(S,D)+u}else f.y+=C}),ZB(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,o=Ue(n.font),r=ht(n.padding);if(!n.display)return;const i=Is(e.rtl,this.left,this.width),s=this.ctx,c=n.position,d=o.size/2,h=r.top+d;let u,p=this.left,y=this.width;if(this.isHorizontal())y=Math.max(...this.lineWidths),u=this.top+h,p=$e(e.align,p,this.right-y);else{const k=this.columnSizes.reduce((m,g)=>Math.max(m,g.height),0);u=h+$e(e.align,this.top,this.bottom-k-e.labels.padding-this._computeTitleHeight())}const f=$e(c,p,p+y);s.textAlign=i.textAlign(yI(c)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=o.string,v1(s,n.text,f,u,o)}_computeTitleHeight(){const e=this.options.title,n=Ue(e.font),o=ht(e.padding);return e.display?n.lineHeight+o.height:0}_getLegendItemAt(e,n){let o,r,i;if(Jt(e,this.left,this.right)&&Jt(n,this.top,this.bottom)){for(i=this.legendHitBoxes,o=0;o<i.length;++o)if(r=i[o],Jt(e,r.left,r.left+r.width)&&Jt(n,r.top,r.top+r.height))return this.legendItems[o]}return null}handleEvent(e){const n=this.options;if(!n$(e.type,n))return;const o=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const r=this._hoveredItem,i=JN(r,o);r&&!i&&Ae(n.onLeave,[e,r,this],this),this._hoveredItem=o,o&&!i&&Ae(n.onHover,[e,o,this],this)}else o&&Ae(n.onClick,[e,o,this],this)}}function e$(a,e,n,o,r){const i=t$(o,a,e,n),s=a$(r,o,e.lineHeight);return{itemWidth:i,itemHeight:s}}function t$(a,e,n,o){let r=a.text;return r&&typeof r!="string"&&(r=r.reduce((i,s)=>i.length>s.length?i:s)),e+n.size/2+o.measureText(r).width}function a$(a,e,n){let o=a;return typeof e.text!="string"&&(o=nz(e,n)),o}function nz(a,e){const n=a.text?a.text.length:0;return e*n}function n$(a,e){return!!((a==="mousemove"||a==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(a==="click"||a==="mouseup"))}var o$={id:"legend",_element:az,start(a,e,n){const o=a.legend=new az({ctx:a.ctx,options:n,chart:a});ut.configure(a,o,n),ut.addBox(a,o)},stop(a){ut.removeBox(a,a.legend),delete a.legend},beforeUpdate(a,e,n){const o=a.legend;ut.configure(a,o,n),o.options=n},afterUpdate(a){const e=a.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(a,e){e.replay||a.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(a,e,n){const o=e.datasetIndex,r=n.chart;r.isDatasetVisible(o)?(r.hide(o),e.hidden=!0):(r.show(o),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:a=>a.chart.options.color,boxWidth:40,padding:10,generateLabels(a){const e=a.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:r,color:i,useBorderRadius:s,borderRadius:c}}=a.legend.options;return a._getSortedDatasetMetas().map(d=>{const h=d.controller.getStyle(n?0:void 0),u=ht(h.borderWidth);return{text:e[d.index].label,fillStyle:h.backgroundColor,fontColor:i,hidden:!d.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:h.borderColor,pointStyle:o||h.pointStyle,rotation:h.rotation,textAlign:r||h.textAlign,borderRadius:s&&(c||h.borderRadius),datasetIndex:d.index}},this)}},title:{color:a=>a.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:a=>!a.startsWith("on"),labels:{_scriptable:a=>!["generateLabels","filter","sort"].includes(a)}}};class oz extends ta{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const o=this.options;if(this.left=0,this.top=0,!o.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const r=He(o.text)?o.text.length:1;this._padding=ht(o.padding);const i=r*Ue(o.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:o,bottom:r,right:i,options:s}=this,c=s.align;let d=0,h,u,p;return this.isHorizontal()?(u=$e(c,o,i),p=n+e,h=i-o):(s.position==="left"?(u=o+e,p=$e(c,r,n),d=Se*-.5):(u=i-e,p=$e(c,n,r),d=Se*.5),h=r-n),{titleX:u,titleY:p,maxWidth:h,rotation:d}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const o=Ue(n.font),i=o.lineHeight/2+this._padding.top,{titleX:s,titleY:c,maxWidth:d,rotation:h}=this._drawArgs(i);v1(e,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:yI(n.align),textBaseline:"middle",translation:[s,c]})}}function r$(a,e){const n=new oz({ctx:a.ctx,options:e,chart:a});ut.configure(a,n,e),ut.addBox(a,n),a.titleBlock=n}var i$={id:"title",_element:oz,start(a,e,n){r$(a,n)},stop(a){const e=a.titleBlock;ut.removeBox(a,e),delete a.titleBlock},beforeUpdate(a,e,n){const o=a.titleBlock;ut.configure(a,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const z1={average(a){if(!a.length)return!1;let e,n,o=new Set,r=0,i=0;for(e=0,n=a.length;e<n;++e){const c=a[e].element;if(c&&c.hasValue()){const d=c.tooltipPosition();o.add(d.x),r+=d.y,++i}}return i===0||o.size===0?!1:{x:[...o].reduce((c,d)=>c+d)/o.size,y:r/i}},nearest(a,e){if(!a.length)return!1;let n=e.x,o=e.y,r=Number.POSITIVE_INFINITY,i,s,c;for(i=0,s=a.length;i<s;++i){const d=a[i].element;if(d&&d.hasValue()){const h=d.getCenterPoint(),u=uI(e,h);u<r&&(r=u,c=d)}}if(c){const d=c.tooltipPosition();n=d.x,o=d.y}return{x:n,y:o}}};function Ft(a,e){return e&&(He(e)?Array.prototype.push.apply(a,e):a.push(e)),a}function na(a){return(typeof a=="string"||a instanceof String)&&a.indexOf(`
|
|
8518
8518
|
`)>-1?a.split(`
|
|
8519
|
-
`):a}function s$(a,e){const{element:n,datasetIndex:o,index:r}=e,i=a.getDatasetMeta(o).controller,{label:s,value:c}=i.getLabelAndValue(r);return{chart:a,label:s,parsed:i.getParsed(r),raw:a.data.datasets[o].data[r],formattedValue:c,dataset:i.getDataset(),dataIndex:r,datasetIndex:o,element:n}}function oz(a,e){const n=a.chart.ctx,{body:o,footer:r,title:i}=a,{boxWidth:s,boxHeight:c}=e,d=Ue(e.bodyFont),h=Ue(e.titleFont),u=Ue(e.footerFont),p=i.length,y=r.length,f=o.length,k=ht(e.padding);let m=k.height,g=0,v=o.reduce((M,C)=>M+C.before.length+C.lines.length+C.after.length,0);if(v+=a.beforeBody.length+a.afterBody.length,p&&(m+=p*h.lineHeight+(p-1)*e.titleSpacing+e.titleMarginBottom),v){const M=e.displayColors?Math.max(c,d.lineHeight):d.lineHeight;m+=f*M+(v-f)*d.lineHeight+(v-1)*e.bodySpacing}y&&(m+=e.footerMarginTop+y*u.lineHeight+(y-1)*e.footerSpacing);let L=0;const w=function(M){g=Math.max(g,n.measureText(M).width+L)};return n.save(),n.font=h.string,Le(a.title,w),n.font=d.string,Le(a.beforeBody.concat(a.afterBody),w),L=e.displayColors?s+2+e.boxPadding:0,Le(o,M=>{Le(M.before,w),Le(M.lines,w),Le(M.after,w)}),L=0,n.font=u.string,Le(a.footer,w),n.restore(),g+=k.width,{width:g,height:m}}function l$(a,e){const{y:n,height:o}=e;return n<o/2?"top":n>a.height-o/2?"bottom":"center"}function c$(a,e,n,o){const{x:r,width:i}=o,s=n.caretSize+n.caretPadding;if(a==="left"&&r+i+s>e.width||a==="right"&&r-i-s<0)return!0}function d$(a,e,n,o){const{x:r,width:i}=n,{width:s,chartArea:{left:c,right:d}}=a;let h="center";return o==="center"?h=r<=(c+d)/2?"left":"right":r<=i/2?h="left":r>=s-i/2&&(h="right"),c$(h,a,e,n)&&(h="center"),h}function rz(a,e,n){const o=n.yAlign||e.yAlign||l$(a,n);return{xAlign:n.xAlign||e.xAlign||d$(a,e,n,o),yAlign:o}}function h$(a,e){let{x:n,width:o}=a;return e==="right"?n-=o:e==="center"&&(n-=o/2),n}function u$(a,e,n){let{y:o,height:r}=a;return e==="top"?o+=n:e==="bottom"?o-=r+n:o-=r/2,o}function iz(a,e,n,o){const{caretSize:r,caretPadding:i,cornerRadius:s}=a,{xAlign:c,yAlign:d}=n,h=r+i,{topLeft:u,topRight:p,bottomLeft:y,bottomRight:f}=Cs(s);let k=h$(e,c);const m=u$(e,d,h);return d==="center"?c==="left"?k+=h:c==="right"&&(k-=h):c==="left"?k-=Math.max(u,y)+r:c==="right"&&(k+=Math.max(p,f)+r),{x:Ne(k,0,o.width-e.width),y:Ne(m,0,o.height-e.height)}}function aS(a,e,n){const o=ht(n.padding);return e==="center"?a.x+a.width/2:e==="right"?a.x+a.width-o.right:a.x+o.left}function sz(a){return Ft([],na(a))}function p$(a,e,n){return Qi(a,{tooltip:e,tooltipItems:n,type:"tooltip"})}function lz(a,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?a.override(n):a}const cz={beforeTitle:Yt,title(a){if(a.length>0){const e=a[0],n=e.chart.data.labels,o=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(o>0&&e.dataIndex<o)return n[e.dataIndex]}return""},afterTitle:Yt,beforeBody:Yt,beforeLabel:Yt,label(a){if(this&&this.options&&this.options.mode==="dataset")return a.label+": "+a.formattedValue||a.formattedValue;let e=a.dataset.label||"";e&&(e+=": ");const n=a.formattedValue;return Ce(n)||(e+=n),e},labelColor(a){const n=a.chart.getDatasetMeta(a.datasetIndex).controller.getStyle(a.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(a){const n=a.chart.getDatasetMeta(a.datasetIndex).controller.getStyle(a.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Yt,afterBody:Yt,beforeFooter:Yt,footer:Yt,afterFooter:Yt};function Ye(a,e,n,o){const r=a[e].call(n,o);return typeof r>"u"?cz[e].call(n,o):r}class $I extends ta{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,o=this.options.setContext(this.getContext()),r=o.enabled&&n.options.animation&&o.animations,i=new oV(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=p$(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:o}=n,r=Ye(o,"beforeTitle",this,e),i=Ye(o,"title",this,e),s=Ye(o,"afterTitle",this,e);let c=[];return c=Ft(c,na(r)),c=Ft(c,na(i)),c=Ft(c,na(s)),c}getBeforeBody(e,n){return sz(Ye(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:o}=n,r=[];return Le(e,i=>{const s={before:[],lines:[],after:[]},c=lz(o,i);Ft(s.before,na(Ye(c,"beforeLabel",this,i))),Ft(s.lines,Ye(c,"label",this,i)),Ft(s.after,na(Ye(c,"afterLabel",this,i))),r.push(s)}),r}getAfterBody(e,n){return sz(Ye(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:o}=n,r=Ye(o,"beforeFooter",this,e),i=Ye(o,"footer",this,e),s=Ye(o,"afterFooter",this,e);let c=[];return c=Ft(c,na(r)),c=Ft(c,na(i)),c=Ft(c,na(s)),c}_createItems(e){const n=this._active,o=this.chart.data,r=[],i=[],s=[];let c=[],d,h;for(d=0,h=n.length;d<h;++d)c.push(s$(this.chart,n[d]));return e.filter&&(c=c.filter((u,p,y)=>e.filter(u,p,y,o))),e.itemSort&&(c=c.sort((u,p)=>e.itemSort(u,p,o))),Le(c,u=>{const p=lz(e.callbacks,u);r.push(Ye(p,"labelColor",this,u)),i.push(Ye(p,"labelPointStyle",this,u)),s.push(Ye(p,"labelTextColor",this,u))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=c,c}update(e,n){const o=this.options.setContext(this.getContext()),r=this._active;let i,s=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{const c=z1[o.position].call(this,r,this._eventPosition);s=this._createItems(o),this.title=this.getTitle(s,o),this.beforeBody=this.getBeforeBody(s,o),this.body=this.getBody(s,o),this.afterBody=this.getAfterBody(s,o),this.footer=this.getFooter(s,o);const d=this._size=oz(this,o),h=Object.assign({},c,d),u=rz(this.chart,o,h),p=iz(o,h,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:p.x,y:p.y,width:d.width,height:d.height,caretX:c.x,caretY:c.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,o,r){const i=this.getCaretPosition(e,o,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(e,n,o){const{xAlign:r,yAlign:i}=this,{caretSize:s,cornerRadius:c}=o,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=Cs(c),{x:y,y:f}=e,{width:k,height:m}=n;let g,v,L,w,M,C;return i==="center"?(M=f+m/2,r==="left"?(g=y,v=g-s,w=M+s,C=M-s):(g=y+k,v=g+s,w=M-s,C=M+s),L=g):(r==="left"?v=y+Math.max(d,u)+s:r==="right"?v=y+k-Math.max(h,p)-s:v=this.caretX,i==="top"?(w=f,M=w-s,g=v-s,L=v+s):(w=f+m,M=w+s,g=v+s,L=v-s),C=w),{x1:g,x2:v,x3:L,y1:w,y2:M,y3:C}}drawTitle(e,n,o){const r=this.title,i=r.length;let s,c,d;if(i){const h=Is(o.rtl,this.x,this.width);for(e.x=aS(this,o.titleAlign,o),n.textAlign=h.textAlign(o.titleAlign),n.textBaseline="middle",s=Ue(o.titleFont),c=o.titleSpacing,n.fillStyle=o.titleColor,n.font=s.string,d=0;d<i;++d)n.fillText(r[d],h.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+c,d+1===i&&(e.y+=o.titleMarginBottom-c)}}_drawColorBox(e,n,o,r,i){const s=this.labelColors[o],c=this.labelPointStyles[o],{boxHeight:d,boxWidth:h}=i,u=Ue(i.bodyFont),p=aS(this,"left",i),y=r.x(p),f=d<u.lineHeight?(u.lineHeight-d)/2:0,k=n.y+f;if(i.usePointStyle){const m={radius:Math.min(h,d)/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:1},g=r.leftForLtr(y,h)+h/2,v=k+d/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,MI(e,m,g,v),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,MI(e,m,g,v)}else{e.lineWidth=Me(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const m=r.leftForLtr(y,h),g=r.leftForLtr(r.xPlus(y,1),h-2),v=Cs(s.borderRadius);Object.values(v).some(L=>L!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,EL(e,{x:m,y:k,w:h,h:d,radius:v}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),EL(e,{x:g,y:k+1,w:h-2,h:d-2,radius:v}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(m,k,h,d),e.strokeRect(m,k,h,d),e.fillStyle=s.backgroundColor,e.fillRect(g,k+1,h-2,d-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,n,o){const{body:r}=this,{bodySpacing:i,bodyAlign:s,displayColors:c,boxHeight:d,boxWidth:h,boxPadding:u}=o,p=Ue(o.bodyFont);let y=p.lineHeight,f=0;const k=Is(o.rtl,this.x,this.width),m=function(x){n.fillText(x,k.x(e.x+f),e.y+y/2),e.y+=y+i},g=k.textAlign(s);let v,L,w,M,C,S,b;for(n.textAlign=s,n.textBaseline="middle",n.font=p.string,e.x=aS(this,g,o),n.fillStyle=o.bodyColor,Le(this.beforeBody,m),f=c&&g!=="right"?s==="center"?h/2+u:h+2+u:0,M=0,S=r.length;M<S;++M){for(v=r[M],L=this.labelTextColors[M],n.fillStyle=L,Le(v.before,m),w=v.lines,c&&w.length&&(this._drawColorBox(n,e,M,k,o),y=Math.max(p.lineHeight,d)),C=0,b=w.length;C<b;++C)m(w[C]),y=p.lineHeight;Le(v.after,m)}f=0,y=p.lineHeight,Le(this.afterBody,m),e.y-=i}drawFooter(e,n,o){const r=this.footer,i=r.length;let s,c;if(i){const d=Is(o.rtl,this.x,this.width);for(e.x=aS(this,o.footerAlign,o),e.y+=o.footerMarginTop,n.textAlign=d.textAlign(o.footerAlign),n.textBaseline="middle",s=Ue(o.footerFont),n.fillStyle=o.footerColor,n.font=s.string,c=0;c<i;++c)n.fillText(r[c],d.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+o.footerSpacing}}drawBackground(e,n,o,r){const{xAlign:i,yAlign:s}=this,{x:c,y:d}=e,{width:h,height:u}=o,{topLeft:p,topRight:y,bottomLeft:f,bottomRight:k}=Cs(r.cornerRadius);n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.beginPath(),n.moveTo(c+p,d),s==="top"&&this.drawCaret(e,n,o,r),n.lineTo(c+h-y,d),n.quadraticCurveTo(c+h,d,c+h,d+y),s==="center"&&i==="right"&&this.drawCaret(e,n,o,r),n.lineTo(c+h,d+u-k),n.quadraticCurveTo(c+h,d+u,c+h-k,d+u),s==="bottom"&&this.drawCaret(e,n,o,r),n.lineTo(c+f,d+u),n.quadraticCurveTo(c,d+u,c,d+u-f),s==="center"&&i==="left"&&this.drawCaret(e,n,o,r),n.lineTo(c,d+p),n.quadraticCurveTo(c,d,c+p,d),n.closePath(),n.fill(),r.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,o=this.$animations,r=o&&o.x,i=o&&o.y;if(r||i){const s=z1[e.position].call(this,this._active,this._eventPosition);if(!s)return;const c=this._size=oz(this,e),d=Object.assign({},s,this._size),h=rz(n,e,d),u=iz(e,d,h,n);(r._to!==u.x||i._to!==u.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=c.width,this.height=c.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},i={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const s=ht(n.padding),c=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&c&&(e.save(),e.globalAlpha=o,this.drawBackground(i,e,r,n),KB(e,n.textDirection),i.y+=s.top,this.drawTitle(i,e,n),this.drawBody(i,e,n),this.drawFooter(i,e,n),XB(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const o=this._active,r=e.map(({datasetIndex:c,index:d})=>{const h=this.chart.getDatasetMeta(c);if(!h)throw new Error("Cannot find a dataset at index "+c);return{datasetIndex:c,element:h.data[d],index:d}}),i=!BL(o,r),s=this._positionChanged(r,n);(i||s)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,i=this._active||[],s=this._getActiveElements(e,i,n,o),c=this._positionChanged(s,e),d=n||!BL(s,i)||c;return d&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),d}_getActiveElements(e,n,o,r){const i=this.options;if(e.type==="mouseout")return[];if(!r)return n.filter(c=>this.chart.data.datasets[c.datasetIndex]&&this.chart.getDatasetMeta(c.datasetIndex).controller.getParsed(c.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,i.mode,i,o);return i.reverse&&s.reverse(),s}_positionChanged(e,n){const{caretX:o,caretY:r,options:i}=this,s=z1[i.position].call(this,e,n);return s!==!1&&(o!==s.x||r!==s.y)}}ce($I,"positioners",z1);var y$={id:"tooltip",_element:$I,positioners:z1,afterInit(a,e,n){n&&(a.tooltip=new $I({chart:a,options:n}))},beforeUpdate(a,e,n){a.tooltip&&a.tooltip.initialize(n)},reset(a,e,n){a.tooltip&&a.tooltip.initialize(n)},afterDraw(a){const e=a.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(a.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(a.ctx),a.notifyPlugins("afterTooltipDraw",n)}},afterEvent(a,e){if(a.tooltip){const n=e.replay;a.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(a,e)=>e.bodyFont.size,boxWidth:(a,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:cz},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:a=>a!=="filter"&&a!=="itemSort"&&a!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const f$=(a,e,n,o)=>(typeof e=="string"?(n=a.push(e)-1,o.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function k$(a,e,n,o){const r=a.indexOf(e);if(r===-1)return f$(a,e,n,o);const i=a.lastIndexOf(e);return r!==i?n:r}const m$=(a,e)=>a===null?null:Ne(Math.round(a),0,e);function dz(a){const e=this.getLabels();return a>=0&&a<e.length?e[a]:a}class UI extends As{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const o=this.getLabels();for(const{index:r,label:i}of n)o[r]===i&&o.splice(r,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Ce(e))return null;const o=this.getLabels();return n=isFinite(n)&&o[n]===e?n:k$(o,e,me(n,e),this._addedLabels),m$(n,o.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:o,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(o=0),n||(r=this.getLabels().length-1)),this.min=o,this.max=r}buildTicks(){const e=this.min,n=this.max,o=this.options.offset,r=[];let i=this.getLabels();i=e===0&&n===i.length-1?i:i.slice(e,n+1),this._valueRange=Math.max(i.length-(o?0:1),1),this._startValue=this.min-(o?.5:0);for(let s=e;s<=n;s++)r.push({value:s});return r}getLabelForValue(e){return dz.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}ce(UI,"id","category"),ce(UI,"defaults",{ticks:{callback:dz}});function g$(a,e){const n=[],{bounds:r,step:i,min:s,max:c,precision:d,count:h,maxTicks:u,maxDigits:p,includeBounds:y}=a,f=i||1,k=u-1,{min:m,max:g}=e,v=!Ce(s),L=!Ce(c),w=!Ce(h),M=(g-m)/(p+1);let C=wB((g-m)/k/f)*f,S,b,x,I;if(C<1e-14&&!v&&!L)return[{value:m},{value:g}];I=Math.ceil(g/C)-Math.floor(m/C),I>k&&(C=wB(I*C/k/f)*f),Ce(d)||(S=Math.pow(10,d),C=Math.ceil(C*S)/S),r==="ticks"?(b=Math.floor(m/C)*C,x=Math.ceil(g/C)*C):(b=m,x=g),v&&L&&i&&xO((c-s)/i,C/1e3)?(I=Math.round(Math.min((c-s)/C,u)),C=(c-s)/I,b=s,x=c):w?(b=v?s:b,x=L?c:x,I=h-1,C=(x-b)/I):(I=(x-b)/C,m1(I,Math.round(I),C/1e3)?I=Math.round(I):I=Math.ceil(I));const V=Math.max(vB(C),vB(b));S=Math.pow(10,Ce(d)?V:d),b=Math.round(b*S)/S,x=Math.round(x*S)/S;let B=0;for(v&&(y&&b!==s?(n.push({value:s}),b<s&&B++,m1(Math.round((b+B*C)*S)/S,s,hz(s,M,a))&&B++):b<s&&B++);B<I;++B){const A=Math.round((b+B*C)*S)/S;if(L&&A>c)break;n.push({value:A})}return L&&y&&x!==c?n.length&&m1(n[n.length-1].value,c,hz(c,M,a))?n[n.length-1].value=c:n.push({value:c}):(!L||x===c)&&n.push({value:x}),n}function hz(a,e,{horizontal:n,minRotation:o}){const r=Qt(o),i=(n?Math.sin(r):Math.cos(r))||.001,s=.75*e*(""+a).length;return Math.min(e/i,s)}class b$ extends As{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Ce(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:o}=this.getUserBounds();let{min:r,max:i}=this;const s=d=>r=n?r:d,c=d=>i=o?i:d;if(e){const d=jt(r),h=jt(i);d<0&&h<0?c(0):d>0&&h>0&&s(0)}if(r===i){let d=i===0?1:Math.abs(i*.05);c(i+d),e||s(r-d)}this.min=r,this.max=i}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:o}=e,r;return o?(r=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let o=this.getTickLimit();o=Math.max(2,o);const r={maxTicks:o,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,s=g$(r,i);return e.bounds==="ticks"&&wO(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let n=this.min,o=this.max;if(super.configure(),this.options.offset&&e.length){const r=(o-n)/Math.max(e.length-1,1)/2;n-=r,o+=r}this._startValue=n,this._endValue=o,this._valueRange=o-n}getLabelForValue(e){return mI(e,this.chart.options.locale,this.options.ticks.format)}}class WI extends b${determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Re(e)?e:0,this.max=Re(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,o=Qt(this.options.ticks.minRotation),r=(e?Math.sin(o):Math.cos(o))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}ce(WI,"id","linear"),ce(WI,"defaults",{ticks:{callback:PB.formatters.numeric}});const nS={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Qe=Object.keys(nS);function uz(a,e){return a-e}function pz(a,e){if(Ce(e))return null;const n=a._adapter,{parser:o,round:r,isoWeekday:i}=a._parseOpts;let s=e;return typeof o=="function"&&(s=o(s)),Re(s)||(s=typeof o=="string"?n.parse(s,o):n.parse(s)),s===null?null:(r&&(s=r==="week"&&(g1(i)||i===!0)?n.startOf(s,"isoWeek",i):n.startOf(s,r)),+s)}function yz(a,e,n,o){const r=Qe.length;for(let i=Qe.indexOf(a);i<r-1;++i){const s=nS[Qe[i]],c=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-e)/(c*s.size))<=o)return Qe[i]}return Qe[r-1]}function M$(a,e,n,o,r){for(let i=Qe.length-1;i>=Qe.indexOf(n);i--){const s=Qe[i];if(nS[s].common&&a._adapter.diff(r,o,s)>=e-1)return s}return Qe[n?Qe.indexOf(n):0]}function x$(a){for(let e=Qe.indexOf(a)+1,n=Qe.length;e<n;++e)if(nS[Qe[e]].common)return Qe[e]}function fz(a,e,n){if(!n)a[e]=!0;else if(n.length){const{lo:o,hi:r}=pI(n,e),i=n[o]>=e?n[o]:n[r];a[i]=!0}}function w$(a,e,n,o){const r=a._adapter,i=+r.startOf(e[0].value,o),s=e[e.length-1].value;let c,d;for(c=i;c<=s;c=+r.add(c,1,o))d=n[c],d>=0&&(e[d].major=!0);return e}function kz(a,e,n){const o=[],r={},i=e.length;let s,c;for(s=0;s<i;++s)c=e[s],r[c]=s,o.push({value:c,major:!1});return i===0||!n?o:w$(a,o,r,n)}class oS extends As{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const o=e.time||(e.time={}),r=this._adapter=new oR._date(e.adapters.date);r.init(n),f1(o.displayFormats,r.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:pz(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,o=e.time.unit||"day";let{min:r,max:i,minDefined:s,maxDefined:c}=this.getUserBounds();function d(h){!s&&!isNaN(h.min)&&(r=Math.min(r,h.min)),!c&&!isNaN(h.max)&&(i=Math.max(i,h.max))}(!s||!c)&&(d(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&d(this.getMinMax(!1))),r=Re(r)&&!isNaN(r)?r:+n.startOf(Date.now(),o),i=Re(i)&&!isNaN(i)?i:+n.endOf(Date.now(),o)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],o=e[e.length-1]),{min:n,max:o}}buildTicks(){const e=this.options,n=e.time,o=e.ticks,r=o.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const i=this.min,s=this.max,c=IO(r,i,s);return this._unit=n.unit||(o.autoSkip?yz(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):M$(this,c.length,n.minUnit,this.min,this.max)),this._majorUnit=!o.major.enabled||this._unit==="year"?void 0:x$(this._unit),this.initOffsets(r),e.reverse&&c.reverse(),kz(this,c,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,o=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),e.length===1?n=1-r:n=(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?o=i:o=(i-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=Ne(n,0,s),o=Ne(o,0,s),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const e=this._adapter,n=this.min,o=this.max,r=this.options,i=r.time,s=i.unit||yz(i.minUnit,n,o,this._getLabelCapacity(n)),c=me(r.ticks.stepSize,1),d=s==="week"?i.isoWeekday:!1,h=g1(d)||d===!0,u={};let p=n,y,f;if(h&&(p=+e.startOf(p,"isoWeek",d)),p=+e.startOf(p,h?"day":s),e.diff(o,n,s)>1e5*c)throw new Error(n+" and "+o+" are too far apart with stepSize of "+c+" "+s);const k=r.ticks.source==="data"&&this.getDataTimestamps();for(y=p,f=0;y<o;y=+e.add(y,c,s),f++)fz(u,y,k);return(y===o||r.bounds==="ticks"||f===1)&&fz(u,y,k),Object.keys(u).sort(uz).map(m=>+m)}getLabelForValue(e){const n=this._adapter,o=this.options.time;return o.tooltipFormat?n.format(e,o.tooltipFormat):n.format(e,o.displayFormats.datetime)}format(e,n){const r=this.options.time.displayFormats,i=this._unit,s=n||r[i];return this._adapter.format(e,s)}_tickFormatFunction(e,n,o,r){const i=this.options,s=i.ticks.callback;if(s)return Ae(s,[e,n,o],this);const c=i.time.displayFormats,d=this._unit,h=this._majorUnit,u=d&&c[d],p=h&&c[h],y=o[n],f=h&&p&&y&&y.major;return this._adapter.format(e,r||(f?p:u))}generateTickLabels(e){let n,o,r;for(n=0,o=e.length;n<o;++n)r=e[n],r.label=this._tickFormatFunction(r.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,o=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+o)*n.factor)}getValueForPixel(e){const n=this._offsets,o=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+o*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,o=this.ctx.measureText(e).width,r=Qt(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(r),s=Math.sin(r),c=this._resolveTickFontOptions(0).size;return{w:o*i+c*s,h:o*s+c*i}}_getLabelCapacity(e){const n=this.options.time,o=n.displayFormats,r=o[n.unit]||o.millisecond,i=this._tickFormatFunction(e,0,kz(this,[e],this._majorUnit),r),s=this._getLabelSize(i),c=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return c>0?c:1}getDataTimestamps(){let e=this._cache.data||[],n,o;if(e.length)return e;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,o=r.length;n<o;++n)e=e.concat(r[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,o;if(e.length)return e;const r=this.getLabels();for(n=0,o=r.length;n<o;++n)e.push(pz(this,r[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return IB(e.sort(uz))}}ce(oS,"id","time"),ce(oS,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function rS(a,e,n){let o=0,r=a.length-1,i,s,c,d;n?(e>=a[o].pos&&e<=a[r].pos&&({lo:o,hi:r}=Xi(a,"pos",e)),{pos:i,time:c}=a[o],{pos:s,time:d}=a[r]):(e>=a[o].time&&e<=a[r].time&&({lo:o,hi:r}=Xi(a,"time",e)),{time:i,pos:c}=a[o],{time:s,pos:d}=a[r]);const h=s-i;return h?c+(d-c)*(e-i)/h:c}class mz extends oS{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=rS(n,this.min),this._tableRange=rS(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:o}=this,r=[],i=[];let s,c,d,h,u;for(s=0,c=e.length;s<c;++s)h=e[s],h>=n&&h<=o&&r.push(h);if(r.length<2)return[{time:n,pos:0},{time:o,pos:1}];for(s=0,c=r.length;s<c;++s)u=r[s+1],d=r[s-1],h=r[s],Math.round((u+d)/2)!==h&&i.push({time:h,pos:s/(c-1)});return i}_generate(){const e=this.min,n=this.max;let o=super.getDataTimestamps();return(!o.includes(e)||!o.length)&&o.splice(0,0,e),(!o.includes(n)||o.length===1)&&o.push(n),o.sort((r,i)=>r-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),o=this.getLabelTimestamps();return n.length&&o.length?e=this.normalize(n.concat(o)):e=n.length?n:o,e=this._cache.all=e,e}getDecimalForValue(e){return(rS(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,o=this.getDecimalForPixel(e)/n.factor-n.end;return rS(this._table,o*this._tableRange+this._minPos,!0)}}ce(mz,"id","timeseries"),ce(mz,"defaults",oS.defaults);const v$={key:0,class:"mb-2 text-sm font-medium text-gray-700"},C$={key:0,class:"text-red-500 ml-1"},L$={key:0,class:"absolute inset-0 flex items-center justify-center bg-white"},S$={key:1,class:"absolute inset-0 flex items-center justify-center bg-red-50 border border-red-200 rounded"},I$={class:"text-red-600 text-sm"},_$={key:1,class:"mt-2 text-xs text-gray-500"},A$={key:0},gz=Xt(t.defineComponent({name:"DCodeChart",__name:"DCodeChart",props:{type:{default:"line"},width:{default:400},height:{default:300},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},error:{default:null},showInfo:{type:Boolean,default:!1},responsive:{type:Boolean,default:!0},maintainAspectRatio:{type:Boolean,default:!1},theme:{default:"light"},colors:{default:()=>["#3B82F6","#EF4444","#10B981","#F59E0B","#8B5CF6","#EC4899","#14B8A6","#F97316","#6366F1","#84CC16"]},data:{},modelValue:{},options:{},onClick:{},onHover:{},label:{}},emits:["update:modelValue","click","hover","ready"],setup(a,{expose:e,emit:n}){aa.register(UI,WI,JL,va,eS,V1,i$,y$,o$,QN,NL,RL,VI,_s);const o=a,r=n,i=t.ref(null),s=t.shallowRef(null),c=t.ref(null),d=t.computed(()=>({"opacity-50 pointer-events-none":o.loading||o.error})),h=()=>{const y=o.theme==="dark";return{responsive:o.responsive,maintainAspectRatio:o.maintainAspectRatio,animation:{duration:1e3,easing:"easeInOutQuart",delay:f=>{let k=0;return f.type==="data"&&f.mode==="default"&&(k=f.dataIndex*100+f.datasetIndex*50),k},onComplete:()=>{}},plugins:{legend:{position:"top",labels:{color:y?"#E5E7EB":"#374151",font:{size:12}}},tooltip:{backgroundColor:y?"#1F2937":"#FFFFFF",titleColor:y?"#F3F4F6":"#111827",bodyColor:y?"#D1D5DB":"#4B5563",borderColor:y?"#374151":"#E5E7EB",borderWidth:1,animation:{duration:200,easing:"easeInOutQuad"}}},scales:o.type!=="pie"&&o.type!=="doughnut"&&o.type!=="polarArea"?{x:{grid:{color:y?"#374151":"#E5E7EB"},ticks:{color:y?"#D1D5DB":"#6B7280"}},y:{grid:{color:y?"#374151":"#E5E7EB"},ticks:{color:y?"#D1D5DB":"#6B7280"}}}:void 0}},u=y=>!y||!y.datasets?y:{...y,datasets:y.datasets.map((f,k)=>{const m=k%o.colors.length,g=o.colors[m];let v=f.backgroundColor,L=f.borderColor;return["pie","doughnut","polarArea"].includes(o.type)&&(!v||v.length===0)?f.data&&(v=f.data.map((w,M)=>o.colors[M%o.colors.length]+"80"),L=f.data.map((w,M)=>o.colors[M%o.colors.length])):(v=v||g+"40",L=L||g),{...f,borderColor:L,backgroundColor:v,pointBackgroundColor:f.pointBackgroundColor||g,pointBorderColor:f.pointBorderColor||g,hoverBackgroundColor:f.hoverBackgroundColor||g+"60",hoverBorderColor:f.hoverBorderColor||g}})},p=async()=>{if(!i.value)return;await t.nextTick(),s.value&&s.value.destroy();const y=o.data||o.modelValue;let f=y;if(Array.isArray(y))if(y.length>0&&typeof y[0]=="object"&&y[0]!==null){const m=Object.keys(y[0]),g=m.find(L=>["label","name","x","category","title"].includes(L.toLowerCase()))||m[0],v=m.find(L=>L!==g&&["value","y","count","amount","total","data"].includes(L.toLowerCase()))||m.find(L=>L!==g&&typeof y[0][L]=="number")||(m.length>1?m.find(L=>L!==g):m[0]);f={labels:y.map(L=>L[g||""]),datasets:[{label:o.label||"Data",data:y.map(L=>L[v||""])}]}}else y.length>0?f={labels:y.map((m,g)=>`Data ${g+1}`),datasets:[{label:o.label||"Data",data:y}]}:f={labels:[],datasets:[]};if(c.value=u(f),!c.value)return;const k={...h(),...o.options,onClick:(m,g)=>{r("click",m,g),o.onClick&&o.onClick(m,g)},onHover:(m,g)=>{r("hover",m,g),o.onHover&&o.onHover(m,g)}};s.value=new aa(i.value,{type:o.type,data:c.value,options:k}),r("ready",s.value)};return t.watch(()=>[o.data,o.modelValue,o.type,o.options,o.theme],()=>{p()},{deep:!0}),t.watch(()=>[o.width,o.height],()=>{s.value&&s.value.resize()}),t.onMounted(()=>{p()}),t.onUnmounted(()=>{s.value&&s.value.destroy()}),e({chart:s,updateChart:p}),(y,f)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["d-code-chart",d.value])},[a.label?(t.openBlock(),t.createElementBlock("div",v$,[t.createTextVNode(t.toDisplayString(a.label)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",C$,"*")):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"relative",style:t.normalizeStyle({height:a.height+"px"})},[t.createElementVNode("canvas",{ref_key:"chartCanvas",ref:i},null,512),a.loading?(t.openBlock(),t.createElementBlock("div",L$,[...f[0]||(f[0]=[t.createElementVNode("div",{class:"animate-pulse-slow rounded-full h-8 w-8 border-b-2 border-blue-600"},null,-1)])])):t.createCommentVNode("",!0),a.error?(t.openBlock(),t.createElementBlock("div",S$,[t.createElementVNode("div",I$,t.toDisplayString(a.error),1)])):t.createCommentVNode("",!0)],4),a.showInfo&&c.value?(t.openBlock(),t.createElementBlock("div",_$,[c.value.datasets?(t.openBlock(),t.createElementBlock("div",A$,t.toDisplayString(c.value.datasets.length)+" dataset(s) • "+t.toDisplayString(c.value.labels?c.value.labels.length:0)+" data points ",1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-b1c7c58f"]]),La=t.defineComponent({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class");return(o,r)=>(t.openBlock(),t.createBlock(t.unref(nH),t.mergeProps(t.unref(n),{class:t.unref(be)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e.class)}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),B$=["aria-busy"],V$={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},z$={key:1,class:"flex items-center gap-2.5"},q$=["id","checked","indeterminate","disabled","required"],P$={key:0,class:"ml-1 text-red-500 dark:text-red-400","aria-label":"required"},q1=Xt(t.defineComponent({name:"DCodeCheckbox",inheritAttrs:!1,__name:"DCodeCheckbox",props:{modelValue:{type:[Boolean,null]},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(a,{emit:e}){const n=t.useAttrs(),o=e,r=a,i=t.computed(()=>n.label),s=t.computed(()=>n.placeholder),c=t.computed(()=>n.title),d=t.computed(()=>r.visible??!0),h=t.computed(()=>n.required===""||n.required===!0||n.required==="true"),u=Math.random().toString(36).slice(2,7),p=t.computed(()=>`dcode-checkbox-${n.id||i.value||"checkbox"}-${u}`),y=t.ref(!!r.modelValue);t.watch(()=>r.modelValue,m=>{y.value=!!m},{immediate:!0});const f=()=>{if(r.disabled)return;const m=!y.value;y.value=m,o("update:modelValue",m)},k=m=>{(m.key===" "||m.key==="Enter")&&(m.preventDefault(),f())};return(m,g)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["",[t.unref(n).class,{"opacity-60 cursor-not-allowed":a.disabled}]]),"aria-busy":a.skeleton},[a.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.value?(t.openBlock(),t.createElementBlock("div",V$)):t.createCommentVNode("",!0),g[0]||(g[0]=t.createElementVNode("div",{class:"flex items-center gap-2.5"},[t.createElementVNode("div",{class:"h-4 w-4 rounded bg-gray-200 dark:bg-gray-700 animate-pulse flex-shrink-0"}),t.createElementVNode("div",{class:"h-4 w-24 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"})],-1))],64)):(t.openBlock(),t.createElementBlock("div",z$,[t.createElementVNode("label",{class:t.normalizeClass(["flex items-start gap-2.5 group relative",{"cursor-pointer":!a.disabled,"opacity-50 cursor-not-allowed":a.disabled}])},[t.createElementVNode("input",{type:"checkbox",id:p.value,class:"sr-only",checked:y.value,indeterminate:a.indeterminate,disabled:a.disabled,required:h.value,onChange:f,onKeydown:k},null,40,q$),t.createElementVNode("div",{class:t.normalizeClass(["h-4 w-4 shrink-0 rounded-sm border shadow-sm transition-colors flex items-center justify-center mt-0.5",[y.value||a.indeterminate?"bg-primary border-primary text-primary-foreground":"border-neutral-300 dark:border-neutral-600 bg-white dark:bg-neutral-900",a.disabled?"cursor-not-allowed":"cursor-pointer"]]),"aria-hidden":"true"},[y.value&&!a.indeterminate?(t.openBlock(),t.createBlock(t.unref(ca),{key:0,class:"h-3 w-3 text-white","stroke-width":"3"})):a.indeterminate?(t.openBlock(),t.createBlock(t.unref(Xs),{key:1,class:"h-3 w-3 text-white","stroke-width":"3"})):t.createCommentVNode("",!0)],2),s.value||c.value?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["text-sm leading-relaxed select-none transition-colors",[a.disabled?"text-gray-400 dark:text-gray-500":"text-gray-700 dark:text-gray-300 group-hover:text-gray-900 dark:group-hover:text-gray-100"]])},t.toDisplayString(s.value||c.value),3)):t.createCommentVNode("",!0)],2),i.value?(t.openBlock(),t.createBlock(La,{key:0,for:p.value,class:"text-sm font-medium text-gray-700 dark:text-gray-300 select-none cursor-pointer"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value)+" ",1),h.value?(t.openBlock(),t.createElementBlock("span",P$," * ")):t.createCommentVNode("",!0)]),_:1},8,["for"])):t.createCommentVNode("",!0)]))],10,B$)),[[t.vShow,d.value]])}}),[["__scopeId","data-v-938d0f92"]]),D$=["aria-busy"],E$={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},T$={key:1,class:"flex justify-end"},H$=["for"],j$={key:0,class:"ml-1 text-destructive"},O$={class:"relative w-full group"},F$={class:"flex items-center self-stretch px-3 bg-gray-50 dark:bg-neutral-800 border-r border-gray-300 dark:border-gray-700"},R$={class:"text-sm font-semibold text-gray-500 dark:text-gray-400 whitespace-nowrap select-none"},N$=["id","disabled","readonly","placeholder","maxlength"],$$={key:0,class:"absolute top-full right-0 z-10 text-[11px] text-gray-400 dark:text-gray-500 opacity-0 transition-opacity pointer-events-none group-focus-within:opacity-100 mt-0.5"},U$={key:1,class:"flex items-center gap-1 text-xs text-destructive"},bz=t.defineComponent({name:"DCodeCurrencyField",inheritAttrs:!1,__name:"DCodeCurrencyField",props:{modelValue:{},currency:{default:"IDR"},locale:{},label:{},placeholder:{},error:{},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},hideClearWhenEmpty:{type:Boolean,default:!0},prependInner:{},skeleton:{type:Boolean,default:!1},showCharCount:{type:Boolean,default:!0}},emits:["update:modelValue","clear"],setup(a,{emit:e}){const n=t.useAttrs(),o=e,r=a,i=Math.random().toString(36).slice(2,7),s=t.computed(()=>`app-currency-field-${n.id||r.label||"currency-field"}-${i}`),c=t.computed(()=>{const B=n.required,A=n["aria-required"];return B===""||B===!0||B==="true"||(A==="true"||A===!0)}),d=t.computed(()=>{const B=n.maxlength??n.maxLength;let A=Number.NaN;return typeof B=="number"?A=B:typeof B=="string"&&(A=Number.parseInt(B,10)),Number.isFinite(A)&&A>0?A:void 0}),h=t.computed(()=>r.locale?r.locale:"en-US"),u=t.computed(()=>r.prependInner?r.prependInner:r.currency==="USD"?"$":r.currency==="IDR"?"Rp":r.currency),p=t.computed(()=>new Intl.NumberFormat(h.value,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0})),y=B=>{const A=B.replaceAll(/\D/g,"");return A?Number(A):null},f=B=>p.value.format(B),k=t.ref(""),m=t.ref(null);t.watch(()=>r.modelValue,B=>{B==null?k.value="":y(k.value)!==B&&(k.value=f(B))},{immediate:!0});const g=(B,A)=>{let P=0;for(let D=0;D<A;D++)/\d/.test(B[D])&&P++;return P},v=(B,A)=>{let P=0;for(let D=0;D<B.length;D++)if(/\d/.test(B[D])&&(P++,P===A))return D+1;return B.length},L=B=>{const A=B.target,P=A.value,D=A.selectionStart??P.length,U=y(P);if(U===null){k.value="",o("update:modelValue",null);return}const T=f(U);if(P!==T){const H=g(P,D);k.value=T,t.nextTick(()=>{if(m.value){const N=v(T,H);m.value.setSelectionRange(N,N)}})}o("update:modelValue",U)},w=()=>{k.value="",o("update:modelValue",null),o("clear")},M=t.computed(()=>!r.clearable||r.disabled||r.readonly?!1:r.hideClearWhenEmpty?k.value.length>0:!0),C=t.computed(()=>!!r.error),S=t.computed(()=>{const{class:B,maxlength:A,maxLength:P,...D}=n;return D}),b=t.computed(()=>k.value.length),x=t.computed(()=>r.showCharCount?(d.value??0)>0:!1),I=t.computed(()=>x.value&&b.value>0),V=t.computed(()=>`${b.value} / ${d.value}`);return(B,A)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["flex flex-col gap-1.5 w-full",t.unref(n).class]),"aria-busy":r.skeleton},[r.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.label?(t.openBlock(),t.createElementBlock("div",E$)):t.createCommentVNode("",!0),A[2]||(A[2]=t.createElementVNode("div",{class:"relative w-full"},[t.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"})],-1)),x.value?(t.openBlock(),t.createElementBlock("div",T$,[...A[1]||(A[1]=[t.createElementVNode("div",{class:"h-3 w-14 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1)])])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:s.value,class:"text-sm font-medium text-gray-700 dark:text-gray-300"},[t.createTextVNode(t.toDisplayString(a.label)+" ",1),c.value?(t.openBlock(),t.createElementBlock("span",j$,"*")):t.createCommentVNode("",!0)],8,H$)):t.createCommentVNode("",!0),t.createElementVNode("div",O$,[t.createElementVNode("div",{class:t.normalizeClass(["flex items-center w-full rounded-lg border overflow-hidden transition-all duration-200","bg-white dark:bg-neutral-900",C.value?"border-destructive ring-1 ring-destructive":"border-gray-300 dark:border-gray-700 focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 dark:focus-within:border-blue-400",r.disabled?"opacity-50 cursor-not-allowed bg-gray-50 dark:bg-neutral-800":""])},[t.createElementVNode("div",F$,[t.createElementVNode("span",R$,t.toDisplayString(u.value),1)]),t.withDirectives(t.createElementVNode("input",t.mergeProps({id:s.value,ref_key:"inputRef",ref:m,"onUpdate:modelValue":A[0]||(A[0]=P=>k.value=P),onInput:L,type:"text",inputmode:"numeric"},S.value,{disabled:r.disabled,readonly:r.readonly,placeholder:r.placeholder,maxlength:d.value,class:["flex-1 h-10 px-3 py-2 text-sm bg-transparent text-foreground dark:text-gray-300 outline-none placeholder:text-gray-400",M.value?"pr-8":""]}),null,16,N$),[[t.vModelText,k.value]]),M.value?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"flex items-center justify-center w-8 h-10 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors flex-shrink-0","aria-label":"Clear input",onClick:w},[t.createVNode(t.unref(it),{class:"w-3.5 h-3.5"})])):t.createCommentVNode("",!0)],2),I.value&&!C.value?(t.openBlock(),t.createElementBlock("p",$$,t.toDisplayString(V.value),1)):t.createCommentVNode("",!0)]),C.value?(t.openBlock(),t.createElementBlock("p",U$,[t.createVNode(t.unref(It),{class:"w-3.5 h-3.5 flex-shrink-0"}),t.createTextVNode(" "+t.toDisplayString(r.error),1)])):t.createCommentVNode("",!0)],64))],10,D$))}}),Mz=6048e5,W$=864e5,xz=Symbol.for("constructDateFrom");function Sa(a,e){return typeof a=="function"?a(e):a&&typeof a=="object"&&xz in a?a[xz](e):a instanceof Date?new a.constructor(e):new Date(e)}function bt(a,e){return Sa(e||a,a)}let G$={};function iS(){return G$}function P1(a,e){var c,d,h,u;const n=iS(),o=(e==null?void 0:e.weekStartsOn)??((d=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??n.weekStartsOn??((u=(h=n.locale)==null?void 0:h.options)==null?void 0:u.weekStartsOn)??0,r=bt(a,e==null?void 0:e.in),i=r.getDay(),s=(i<o?7:0)+i-o;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function sS(a,e){return P1(a,{...e,weekStartsOn:1})}function wz(a,e){const n=bt(a,e==null?void 0:e.in),o=n.getFullYear(),r=Sa(n,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const i=sS(r),s=Sa(n,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);const c=sS(s);return n.getTime()>=i.getTime()?o+1:n.getTime()>=c.getTime()?o:o-1}function vz(a){const e=bt(a),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+a-+n}function K$(a,...e){const n=Sa.bind(null,e.find(o=>typeof o=="object"));return e.map(n)}function Cz(a,e){const n=bt(a,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function X$(a,e,n){const[o,r]=K$(n==null?void 0:n.in,a,e),i=Cz(o),s=Cz(r),c=+i-vz(i),d=+s-vz(s);return Math.round((c-d)/W$)}function Z$(a,e){const n=wz(a,e),o=Sa(a,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),sS(o)}function Y$(a){return a instanceof Date||typeof a=="object"&&Object.prototype.toString.call(a)==="[object Date]"}function Q$(a){return!(!Y$(a)&&typeof a!="number"||isNaN(+bt(a)))}function J$(a,e){const n=bt(a,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const eU={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},tU=(a,e,n)=>{let o;const r=eU[a];return typeof r=="string"?o=r:e===1?o=r.one:o=r.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function Vs(a){return(e={})=>{const n=e.width?String(e.width):a.defaultWidth;return a.formats[n]||a.formats[a.defaultWidth]}}const aU={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nU={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},oU={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rU={date:Vs({formats:aU,defaultWidth:"full"}),time:Vs({formats:nU,defaultWidth:"full"}),dateTime:Vs({formats:oU,defaultWidth:"full"})},iU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sU=(a,e,n,o)=>iU[a];function Rt(a){return(e,n)=>{const o=n!=null&&n.context?String(n.context):"standalone";let r;if(o==="formatting"&&a.formattingValues){const s=a.defaultFormattingWidth||a.defaultWidth,c=n!=null&&n.width?String(n.width):s;r=a.formattingValues[c]||a.formattingValues[s]}else{const s=a.defaultWidth,c=n!=null&&n.width?String(n.width):a.defaultWidth;r=a.values[c]||a.values[s]}const i=a.argumentCallback?a.argumentCallback(e):e;return r[i]}}const lU={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dU={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},hU={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},uU={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},pU={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yU={ordinalNumber:(a,e)=>{const n=Number(a),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Rt({values:lU,defaultWidth:"wide"}),quarter:Rt({values:cU,defaultWidth:"wide",argumentCallback:a=>a-1}),month:Rt({values:dU,defaultWidth:"wide"}),day:Rt({values:hU,defaultWidth:"wide"}),dayPeriod:Rt({values:uU,defaultWidth:"wide",formattingValues:pU,defaultFormattingWidth:"wide"})};function Nt(a){return(e,n={})=>{const o=n.width,r=o&&a.matchPatterns[o]||a.matchPatterns[a.defaultMatchWidth],i=e.match(r);if(!i)return null;const s=i[0],c=o&&a.parsePatterns[o]||a.parsePatterns[a.defaultParseWidth],d=Array.isArray(c)?kU(c,p=>p.test(s)):fU(c,p=>p.test(s));let h;h=a.valueCallback?a.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const u=e.slice(s.length);return{value:h,rest:u}}}function fU(a,e){for(const n in a)if(Object.prototype.hasOwnProperty.call(a,n)&&e(a[n]))return n}function kU(a,e){for(let n=0;n<a.length;n++)if(e(a[n]))return n}function Lz(a){return(e,n={})=>{const o=e.match(a.matchPattern);if(!o)return null;const r=o[0],i=e.match(a.parsePattern);if(!i)return null;let s=a.valueCallback?a.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const c=e.slice(r.length);return{value:s,rest:c}}}const mU=/^(\d+)(th|st|nd|rd)?/i,gU=/\d+/i,bU={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},MU={any:[/^b/i,/^(a|c)/i]},xU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},wU={any:[/1/i,/2/i,/3/i,/4/i]},vU={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},CU={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},LU={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},SU={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},IU={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},_U={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},AU={ordinalNumber:Lz({matchPattern:mU,parsePattern:gU,valueCallback:a=>parseInt(a,10)}),era:Nt({matchPatterns:bU,defaultMatchWidth:"wide",parsePatterns:MU,defaultParseWidth:"any"}),quarter:Nt({matchPatterns:xU,defaultMatchWidth:"wide",parsePatterns:wU,defaultParseWidth:"any",valueCallback:a=>a+1}),month:Nt({matchPatterns:vU,defaultMatchWidth:"wide",parsePatterns:CU,defaultParseWidth:"any"}),day:Nt({matchPatterns:LU,defaultMatchWidth:"wide",parsePatterns:SU,defaultParseWidth:"any"}),dayPeriod:Nt({matchPatterns:IU,defaultMatchWidth:"any",parsePatterns:_U,defaultParseWidth:"any"})},Sz={code:"en-US",formatDistance:tU,formatLong:rU,formatRelative:sU,localize:yU,match:AU,options:{weekStartsOn:0,firstWeekContainsDate:1}};function BU(a,e){const n=bt(a,e==null?void 0:e.in);return X$(n,J$(n))+1}function VU(a,e){const n=bt(a,e==null?void 0:e.in),o=+sS(n)-+Z$(n);return Math.round(o/Mz)+1}function Iz(a,e){var u,p,y,f;const n=bt(a,e==null?void 0:e.in),o=n.getFullYear(),r=iS(),i=(e==null?void 0:e.firstWeekContainsDate)??((p=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(y=r.locale)==null?void 0:y.options)==null?void 0:f.firstWeekContainsDate)??1,s=Sa((e==null?void 0:e.in)||a,0);s.setFullYear(o+1,0,i),s.setHours(0,0,0,0);const c=P1(s,e),d=Sa((e==null?void 0:e.in)||a,0);d.setFullYear(o,0,i),d.setHours(0,0,0,0);const h=P1(d,e);return+n>=+c?o+1:+n>=+h?o:o-1}function zU(a,e){var c,d,h,u;const n=iS(),o=(e==null?void 0:e.firstWeekContainsDate)??((d=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(h=n.locale)==null?void 0:h.options)==null?void 0:u.firstWeekContainsDate)??1,r=Iz(a,e),i=Sa((e==null?void 0:e.in)||a,0);return i.setFullYear(r,0,o),i.setHours(0,0,0,0),P1(i,e)}function qU(a,e){const n=bt(a,e==null?void 0:e.in),o=+P1(n,e)-+zU(n,e);return Math.round(o/Mz)+1}function Ie(a,e){const n=a<0?"-":"",o=Math.abs(a).toString().padStart(e,"0");return n+o}const Ia={y(a,e){const n=a.getFullYear(),o=n>0?n:1-n;return Ie(e==="yy"?o%100:o,e.length)},M(a,e){const n=a.getMonth();return e==="M"?String(n+1):Ie(n+1,2)},d(a,e){return Ie(a.getDate(),e.length)},a(a,e){const n=a.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(a,e){return Ie(a.getHours()%12||12,e.length)},H(a,e){return Ie(a.getHours(),e.length)},m(a,e){return Ie(a.getMinutes(),e.length)},s(a,e){return Ie(a.getSeconds(),e.length)},S(a,e){const n=e.length,o=a.getMilliseconds(),r=Math.trunc(o*Math.pow(10,n-3));return Ie(r,e.length)}},zs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},_z={G:function(a,e,n){const o=a.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(a,e,n){if(e==="yo"){const o=a.getFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return Ia.y(a,e)},Y:function(a,e,n,o){const r=Iz(a,o),i=r>0?r:1-r;if(e==="YY"){const s=i%100;return Ie(s,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):Ie(i,e.length)},R:function(a,e){const n=wz(a);return Ie(n,e.length)},u:function(a,e){const n=a.getFullYear();return Ie(n,e.length)},Q:function(a,e,n){const o=Math.ceil((a.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Ie(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(a,e,n){const o=Math.ceil((a.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Ie(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(a,e,n){const o=a.getMonth();switch(e){case"M":case"MM":return Ia.M(a,e);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(a,e,n){const o=a.getMonth();switch(e){case"L":return String(o+1);case"LL":return Ie(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(a,e,n,o){const r=qU(a,o);return e==="wo"?n.ordinalNumber(r,{unit:"week"}):Ie(r,e.length)},I:function(a,e,n){const o=VU(a);return e==="Io"?n.ordinalNumber(o,{unit:"week"}):Ie(o,e.length)},d:function(a,e,n){return e==="do"?n.ordinalNumber(a.getDate(),{unit:"date"}):Ia.d(a,e)},D:function(a,e,n){const o=BU(a);return e==="Do"?n.ordinalNumber(o,{unit:"dayOfYear"}):Ie(o,e.length)},E:function(a,e,n){const o=a.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(a,e,n,o){const r=a.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return Ie(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(a,e,n,o){const r=a.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return Ie(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(a,e,n){const o=a.getDay(),r=o===0?7:o;switch(e){case"i":return String(r);case"ii":return Ie(r,e.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(a,e,n){const r=a.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(a,e,n){const o=a.getHours();let r;switch(o===12?r=zs.noon:o===0?r=zs.midnight:r=o/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(a,e,n){const o=a.getHours();let r;switch(o>=17?r=zs.evening:o>=12?r=zs.afternoon:o>=4?r=zs.morning:r=zs.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(a,e,n){if(e==="ho"){let o=a.getHours()%12;return o===0&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return Ia.h(a,e)},H:function(a,e,n){return e==="Ho"?n.ordinalNumber(a.getHours(),{unit:"hour"}):Ia.H(a,e)},K:function(a,e,n){const o=a.getHours()%12;return e==="Ko"?n.ordinalNumber(o,{unit:"hour"}):Ie(o,e.length)},k:function(a,e,n){let o=a.getHours();return o===0&&(o=24),e==="ko"?n.ordinalNumber(o,{unit:"hour"}):Ie(o,e.length)},m:function(a,e,n){return e==="mo"?n.ordinalNumber(a.getMinutes(),{unit:"minute"}):Ia.m(a,e)},s:function(a,e,n){return e==="so"?n.ordinalNumber(a.getSeconds(),{unit:"second"}):Ia.s(a,e)},S:function(a,e){return Ia.S(a,e)},X:function(a,e,n){const o=a.getTimezoneOffset();if(o===0)return"Z";switch(e){case"X":return Bz(o);case"XXXX":case"XX":return os(o);case"XXXXX":case"XXX":default:return os(o,":")}},x:function(a,e,n){const o=a.getTimezoneOffset();switch(e){case"x":return Bz(o);case"xxxx":case"xx":return os(o);case"xxxxx":case"xxx":default:return os(o,":")}},O:function(a,e,n){const o=a.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Az(o,":");case"OOOO":default:return"GMT"+os(o,":")}},z:function(a,e,n){const o=a.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Az(o,":");case"zzzz":default:return"GMT"+os(o,":")}},t:function(a,e,n){const o=Math.trunc(+a/1e3);return Ie(o,e.length)},T:function(a,e,n){return Ie(+a,e.length)}};function Az(a,e=""){const n=a>0?"-":"+",o=Math.abs(a),r=Math.trunc(o/60),i=o%60;return i===0?n+String(r):n+String(r)+e+Ie(i,2)}function Bz(a,e){return a%60===0?(a>0?"-":"+")+Ie(Math.abs(a)/60,2):os(a,e)}function os(a,e=""){const n=a>0?"-":"+",o=Math.abs(a),r=Ie(Math.trunc(o/60),2),i=Ie(o%60,2);return n+r+e+i}const Vz=(a,e)=>{switch(a){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},zz=(a,e)=>{switch(a){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},PU={p:zz,P:(a,e)=>{const n=a.match(/(P+)(p+)?/)||[],o=n[1],r=n[2];if(!r)return Vz(a,e);let i;switch(o){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",Vz(o,e)).replace("{{time}}",zz(r,e))}},DU=/^D+$/,EU=/^Y+$/,TU=["D","DD","YY","YYYY"];function HU(a){return DU.test(a)}function jU(a){return EU.test(a)}function OU(a,e,n){const o=FU(a,e,n);if(console.warn(o),TU.includes(a))throw new RangeError(o)}function FU(a,e,n){const o=a[0]==="Y"?"years":"days of the month";return`Use \`${a.toLowerCase()}\` instead of \`${a}\` (in \`${e}\`) for formatting ${o} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const RU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,NU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$U=/^'([^]*?)'?$/,UU=/''/g,WU=/[a-zA-Z]/;function qz(a,e,n){var u,p,y,f;const o=iS(),r=o.locale??Sz,i=o.firstWeekContainsDate??((p=(u=o.locale)==null?void 0:u.options)==null?void 0:p.firstWeekContainsDate)??1,s=o.weekStartsOn??((f=(y=o.locale)==null?void 0:y.options)==null?void 0:f.weekStartsOn)??0,c=bt(a,n==null?void 0:n.in);if(!Q$(c))throw new RangeError("Invalid time value");let d=e.match(NU).map(k=>{const m=k[0];if(m==="p"||m==="P"){const g=PU[m];return g(k,r.formatLong)}return k}).join("").match(RU).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const m=k[0];if(m==="'")return{isToken:!1,value:GU(k)};if(_z[m])return{isToken:!0,value:k};if(m.match(WU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:k}});r.localize.preprocessor&&(d=r.localize.preprocessor(c,d));const h={firstWeekContainsDate:i,weekStartsOn:s,locale:r};return d.map(k=>{if(!k.isToken)return k.value;const m=k.value;(jU(m)||HU(m))&&OU(m,e,String(a));const g=_z[m[0]];return g(c,m,r.localize,h)}).join("")}function GU(a){const e=a.match($U);return e?e[1].replace(UU,"'"):a}const KU={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},XU=(a,e,n)=>{let o;const r=KU[a];return typeof r=="string"?o=r:e===1?o=r.one:o=r.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dalam waktu "+o:o+" yang lalu":o},ZU={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},YU={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},QU={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},JU={date:Vs({formats:ZU,defaultWidth:"full"}),time:Vs({formats:YU,defaultWidth:"full"}),dateTime:Vs({formats:QU,defaultWidth:"full"})},eW={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},tW=(a,e,n,o)=>eW[a],aW={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},nW={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},oW={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},rW={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},iW={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},sW={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},lW={ordinalNumber:(a,e)=>"ke-"+Number(a),era:Rt({values:aW,defaultWidth:"wide"}),quarter:Rt({values:nW,defaultWidth:"wide",argumentCallback:a=>a-1}),month:Rt({values:oW,defaultWidth:"wide"}),day:Rt({values:rW,defaultWidth:"wide"}),dayPeriod:Rt({values:iW,defaultWidth:"wide",formattingValues:sW,defaultFormattingWidth:"wide"})},cW=/^ke-(\d+)?/i,dW=/\d+/i,hW={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},uW={any:[/^s/i,/^(m|e)/i]},pW={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},yW={any:[/1/i,/2/i,/3/i,/4/i]},fW={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},kW={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},mW={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},gW={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},bW={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},MW={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},xW={ordinalNumber:Lz({matchPattern:cW,parsePattern:dW,valueCallback:a=>parseInt(a,10)}),era:Nt({matchPatterns:hW,defaultMatchWidth:"wide",parsePatterns:uW,defaultParseWidth:"any"}),quarter:Nt({matchPatterns:pW,defaultMatchWidth:"wide",parsePatterns:yW,defaultParseWidth:"any",valueCallback:a=>a+1}),month:Nt({matchPatterns:fW,defaultMatchWidth:"wide",parsePatterns:kW,defaultParseWidth:"any"}),day:Nt({matchPatterns:mW,defaultMatchWidth:"wide",parsePatterns:gW,defaultParseWidth:"any"}),dayPeriod:Nt({matchPatterns:bW,defaultMatchWidth:"any",parsePatterns:MW,defaultParseWidth:"any"})},wW={code:"id",formatDistance:XU,formatLong:JU,formatRelative:tW,localize:lW,match:xW,options:{weekStartsOn:1,firstWeekContainsDate:1}},Pz={primary:{light:{primary:"hsl(var(--primary))",text:"hsl(var(--primary-foreground))",hover:"hsl(var(--accent))",border:"hsl(var(--border))",range:"#bfdbfe"},dark:{primary:"hsl(var(--primary))",text:"hsl(var(--primary-foreground))",hover:"hsl(var(--accent))",border:"hsl(var(--border))",range:"rgba(30, 58, 138, 0.3)"}},emerald:{light:{primary:"#16a34a",text:"#ffffff",hover:"#dcfce7",border:"#16a34a",range:"#ecfdf5"},dark:{primary:"#22c55e",text:"#0b1220",hover:"#14532d",border:"#22c55e",range:"rgba(6, 78, 59, 0.3)"}},amber:{light:{primary:"#d97706",text:"#ffffff",hover:"#fffbeb",border:"#d97706",range:"#fffbeb"},dark:{primary:"#f59e0b",text:"#0b1220",hover:"#78350f",border:"#f59e0b",range:"rgba(120, 53, 15, 0.3)"}},violet:{light:{primary:"#7c3aed",text:"#ffffff",hover:"#f5f3ff",border:"#7c3aed",range:"#f5f3ff"},dark:{primary:"#8b5cf6",text:"#0b1220",hover:"#2e1065",border:"#8b5cf6",range:"rgba(46, 16, 101, 0.3)"}},destructive:{light:{primary:"hsl(var(--destructive))",text:"hsl(var(--destructive-foreground))",hover:"hsl(var(--destructive) / 0.10)",border:"hsl(var(--destructive))",range:"#fef2f2"},dark:{primary:"hsl(var(--destructive))",text:"hsl(var(--destructive-foreground))",hover:"hsl(var(--destructive) / 0.18)",border:"hsl(var(--destructive))",range:"rgba(127, 29, 29, 0.3)"}}},Dz="dcode-dp-theme-forced";function vW(a,e=Dz){const n=Pz[a]??Pz.primary,o=`
|
|
8519
|
+
`):a}function s$(a,e){const{element:n,datasetIndex:o,index:r}=e,i=a.getDatasetMeta(o).controller,{label:s,value:c}=i.getLabelAndValue(r);return{chart:a,label:s,parsed:i.getParsed(r),raw:a.data.datasets[o].data[r],formattedValue:c,dataset:i.getDataset(),dataIndex:r,datasetIndex:o,element:n}}function rz(a,e){const n=a.chart.ctx,{body:o,footer:r,title:i}=a,{boxWidth:s,boxHeight:c}=e,d=Ue(e.bodyFont),h=Ue(e.titleFont),u=Ue(e.footerFont),p=i.length,y=r.length,f=o.length,k=ht(e.padding);let m=k.height,g=0,v=o.reduce((M,C)=>M+C.before.length+C.lines.length+C.after.length,0);if(v+=a.beforeBody.length+a.afterBody.length,p&&(m+=p*h.lineHeight+(p-1)*e.titleSpacing+e.titleMarginBottom),v){const M=e.displayColors?Math.max(c,d.lineHeight):d.lineHeight;m+=f*M+(v-f)*d.lineHeight+(v-1)*e.bodySpacing}y&&(m+=e.footerMarginTop+y*u.lineHeight+(y-1)*e.footerSpacing);let L=0;const w=function(M){g=Math.max(g,n.measureText(M).width+L)};return n.save(),n.font=h.string,Le(a.title,w),n.font=d.string,Le(a.beforeBody.concat(a.afterBody),w),L=e.displayColors?s+2+e.boxPadding:0,Le(o,M=>{Le(M.before,w),Le(M.lines,w),Le(M.after,w)}),L=0,n.font=u.string,Le(a.footer,w),n.restore(),g+=k.width,{width:g,height:m}}function l$(a,e){const{y:n,height:o}=e;return n<o/2?"top":n>a.height-o/2?"bottom":"center"}function c$(a,e,n,o){const{x:r,width:i}=o,s=n.caretSize+n.caretPadding;if(a==="left"&&r+i+s>e.width||a==="right"&&r-i-s<0)return!0}function d$(a,e,n,o){const{x:r,width:i}=n,{width:s,chartArea:{left:c,right:d}}=a;let h="center";return o==="center"?h=r<=(c+d)/2?"left":"right":r<=i/2?h="left":r>=s-i/2&&(h="right"),c$(h,a,e,n)&&(h="center"),h}function iz(a,e,n){const o=n.yAlign||e.yAlign||l$(a,n);return{xAlign:n.xAlign||e.xAlign||d$(a,e,n,o),yAlign:o}}function h$(a,e){let{x:n,width:o}=a;return e==="right"?n-=o:e==="center"&&(n-=o/2),n}function u$(a,e,n){let{y:o,height:r}=a;return e==="top"?o+=n:e==="bottom"?o-=r+n:o-=r/2,o}function sz(a,e,n,o){const{caretSize:r,caretPadding:i,cornerRadius:s}=a,{xAlign:c,yAlign:d}=n,h=r+i,{topLeft:u,topRight:p,bottomLeft:y,bottomRight:f}=Cs(s);let k=h$(e,c);const m=u$(e,d,h);return d==="center"?c==="left"?k+=h:c==="right"&&(k-=h):c==="left"?k-=Math.max(u,y)+r:c==="right"&&(k+=Math.max(p,f)+r),{x:Ne(k,0,o.width-e.width),y:Ne(m,0,o.height-e.height)}}function aS(a,e,n){const o=ht(n.padding);return e==="center"?a.x+a.width/2:e==="right"?a.x+a.width-o.right:a.x+o.left}function lz(a){return Ft([],na(a))}function p$(a,e,n){return Qi(a,{tooltip:e,tooltipItems:n,type:"tooltip"})}function cz(a,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?a.override(n):a}const dz={beforeTitle:Yt,title(a){if(a.length>0){const e=a[0],n=e.chart.data.labels,o=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(o>0&&e.dataIndex<o)return n[e.dataIndex]}return""},afterTitle:Yt,beforeBody:Yt,beforeLabel:Yt,label(a){if(this&&this.options&&this.options.mode==="dataset")return a.label+": "+a.formattedValue||a.formattedValue;let e=a.dataset.label||"";e&&(e+=": ");const n=a.formattedValue;return Ce(n)||(e+=n),e},labelColor(a){const n=a.chart.getDatasetMeta(a.datasetIndex).controller.getStyle(a.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(a){const n=a.chart.getDatasetMeta(a.datasetIndex).controller.getStyle(a.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Yt,afterBody:Yt,beforeFooter:Yt,footer:Yt,afterFooter:Yt};function Ye(a,e,n,o){const r=a[e].call(n,o);return typeof r>"u"?dz[e].call(n,o):r}class $I extends ta{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,o=this.options.setContext(this.getContext()),r=o.enabled&&n.options.animation&&o.animations,i=new rV(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=p$(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:o}=n,r=Ye(o,"beforeTitle",this,e),i=Ye(o,"title",this,e),s=Ye(o,"afterTitle",this,e);let c=[];return c=Ft(c,na(r)),c=Ft(c,na(i)),c=Ft(c,na(s)),c}getBeforeBody(e,n){return lz(Ye(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:o}=n,r=[];return Le(e,i=>{const s={before:[],lines:[],after:[]},c=cz(o,i);Ft(s.before,na(Ye(c,"beforeLabel",this,i))),Ft(s.lines,Ye(c,"label",this,i)),Ft(s.after,na(Ye(c,"afterLabel",this,i))),r.push(s)}),r}getAfterBody(e,n){return lz(Ye(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:o}=n,r=Ye(o,"beforeFooter",this,e),i=Ye(o,"footer",this,e),s=Ye(o,"afterFooter",this,e);let c=[];return c=Ft(c,na(r)),c=Ft(c,na(i)),c=Ft(c,na(s)),c}_createItems(e){const n=this._active,o=this.chart.data,r=[],i=[],s=[];let c=[],d,h;for(d=0,h=n.length;d<h;++d)c.push(s$(this.chart,n[d]));return e.filter&&(c=c.filter((u,p,y)=>e.filter(u,p,y,o))),e.itemSort&&(c=c.sort((u,p)=>e.itemSort(u,p,o))),Le(c,u=>{const p=cz(e.callbacks,u);r.push(Ye(p,"labelColor",this,u)),i.push(Ye(p,"labelPointStyle",this,u)),s.push(Ye(p,"labelTextColor",this,u))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=c,c}update(e,n){const o=this.options.setContext(this.getContext()),r=this._active;let i,s=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{const c=z1[o.position].call(this,r,this._eventPosition);s=this._createItems(o),this.title=this.getTitle(s,o),this.beforeBody=this.getBeforeBody(s,o),this.body=this.getBody(s,o),this.afterBody=this.getAfterBody(s,o),this.footer=this.getFooter(s,o);const d=this._size=rz(this,o),h=Object.assign({},c,d),u=iz(this.chart,o,h),p=sz(o,h,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:p.x,y:p.y,width:d.width,height:d.height,caretX:c.x,caretY:c.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,o,r){const i=this.getCaretPosition(e,o,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(e,n,o){const{xAlign:r,yAlign:i}=this,{caretSize:s,cornerRadius:c}=o,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=Cs(c),{x:y,y:f}=e,{width:k,height:m}=n;let g,v,L,w,M,C;return i==="center"?(M=f+m/2,r==="left"?(g=y,v=g-s,w=M+s,C=M-s):(g=y+k,v=g+s,w=M-s,C=M+s),L=g):(r==="left"?v=y+Math.max(d,u)+s:r==="right"?v=y+k-Math.max(h,p)-s:v=this.caretX,i==="top"?(w=f,M=w-s,g=v-s,L=v+s):(w=f+m,M=w+s,g=v+s,L=v-s),C=w),{x1:g,x2:v,x3:L,y1:w,y2:M,y3:C}}drawTitle(e,n,o){const r=this.title,i=r.length;let s,c,d;if(i){const h=Is(o.rtl,this.x,this.width);for(e.x=aS(this,o.titleAlign,o),n.textAlign=h.textAlign(o.titleAlign),n.textBaseline="middle",s=Ue(o.titleFont),c=o.titleSpacing,n.fillStyle=o.titleColor,n.font=s.string,d=0;d<i;++d)n.fillText(r[d],h.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+c,d+1===i&&(e.y+=o.titleMarginBottom-c)}}_drawColorBox(e,n,o,r,i){const s=this.labelColors[o],c=this.labelPointStyles[o],{boxHeight:d,boxWidth:h}=i,u=Ue(i.bodyFont),p=aS(this,"left",i),y=r.x(p),f=d<u.lineHeight?(u.lineHeight-d)/2:0,k=n.y+f;if(i.usePointStyle){const m={radius:Math.min(h,d)/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:1},g=r.leftForLtr(y,h)+h/2,v=k+d/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,MI(e,m,g,v),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,MI(e,m,g,v)}else{e.lineWidth=Me(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const m=r.leftForLtr(y,h),g=r.leftForLtr(r.xPlus(y,1),h-2),v=Cs(s.borderRadius);Object.values(v).some(L=>L!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,EL(e,{x:m,y:k,w:h,h:d,radius:v}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),EL(e,{x:g,y:k+1,w:h-2,h:d-2,radius:v}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(m,k,h,d),e.strokeRect(m,k,h,d),e.fillStyle=s.backgroundColor,e.fillRect(g,k+1,h-2,d-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,n,o){const{body:r}=this,{bodySpacing:i,bodyAlign:s,displayColors:c,boxHeight:d,boxWidth:h,boxPadding:u}=o,p=Ue(o.bodyFont);let y=p.lineHeight,f=0;const k=Is(o.rtl,this.x,this.width),m=function(x){n.fillText(x,k.x(e.x+f),e.y+y/2),e.y+=y+i},g=k.textAlign(s);let v,L,w,M,C,S,b;for(n.textAlign=s,n.textBaseline="middle",n.font=p.string,e.x=aS(this,g,o),n.fillStyle=o.bodyColor,Le(this.beforeBody,m),f=c&&g!=="right"?s==="center"?h/2+u:h+2+u:0,M=0,S=r.length;M<S;++M){for(v=r[M],L=this.labelTextColors[M],n.fillStyle=L,Le(v.before,m),w=v.lines,c&&w.length&&(this._drawColorBox(n,e,M,k,o),y=Math.max(p.lineHeight,d)),C=0,b=w.length;C<b;++C)m(w[C]),y=p.lineHeight;Le(v.after,m)}f=0,y=p.lineHeight,Le(this.afterBody,m),e.y-=i}drawFooter(e,n,o){const r=this.footer,i=r.length;let s,c;if(i){const d=Is(o.rtl,this.x,this.width);for(e.x=aS(this,o.footerAlign,o),e.y+=o.footerMarginTop,n.textAlign=d.textAlign(o.footerAlign),n.textBaseline="middle",s=Ue(o.footerFont),n.fillStyle=o.footerColor,n.font=s.string,c=0;c<i;++c)n.fillText(r[c],d.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+o.footerSpacing}}drawBackground(e,n,o,r){const{xAlign:i,yAlign:s}=this,{x:c,y:d}=e,{width:h,height:u}=o,{topLeft:p,topRight:y,bottomLeft:f,bottomRight:k}=Cs(r.cornerRadius);n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.beginPath(),n.moveTo(c+p,d),s==="top"&&this.drawCaret(e,n,o,r),n.lineTo(c+h-y,d),n.quadraticCurveTo(c+h,d,c+h,d+y),s==="center"&&i==="right"&&this.drawCaret(e,n,o,r),n.lineTo(c+h,d+u-k),n.quadraticCurveTo(c+h,d+u,c+h-k,d+u),s==="bottom"&&this.drawCaret(e,n,o,r),n.lineTo(c+f,d+u),n.quadraticCurveTo(c,d+u,c,d+u-f),s==="center"&&i==="left"&&this.drawCaret(e,n,o,r),n.lineTo(c,d+p),n.quadraticCurveTo(c,d,c+p,d),n.closePath(),n.fill(),r.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,o=this.$animations,r=o&&o.x,i=o&&o.y;if(r||i){const s=z1[e.position].call(this,this._active,this._eventPosition);if(!s)return;const c=this._size=rz(this,e),d=Object.assign({},s,this._size),h=iz(n,e,d),u=sz(e,d,h,n);(r._to!==u.x||i._to!==u.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=c.width,this.height=c.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},i={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const s=ht(n.padding),c=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&c&&(e.save(),e.globalAlpha=o,this.drawBackground(i,e,r,n),XB(e,n.textDirection),i.y+=s.top,this.drawTitle(i,e,n),this.drawBody(i,e,n),this.drawFooter(i,e,n),ZB(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const o=this._active,r=e.map(({datasetIndex:c,index:d})=>{const h=this.chart.getDatasetMeta(c);if(!h)throw new Error("Cannot find a dataset at index "+c);return{datasetIndex:c,element:h.data[d],index:d}}),i=!BL(o,r),s=this._positionChanged(r,n);(i||s)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,i=this._active||[],s=this._getActiveElements(e,i,n,o),c=this._positionChanged(s,e),d=n||!BL(s,i)||c;return d&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),d}_getActiveElements(e,n,o,r){const i=this.options;if(e.type==="mouseout")return[];if(!r)return n.filter(c=>this.chart.data.datasets[c.datasetIndex]&&this.chart.getDatasetMeta(c.datasetIndex).controller.getParsed(c.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,i.mode,i,o);return i.reverse&&s.reverse(),s}_positionChanged(e,n){const{caretX:o,caretY:r,options:i}=this,s=z1[i.position].call(this,e,n);return s!==!1&&(o!==s.x||r!==s.y)}}ce($I,"positioners",z1);var y$={id:"tooltip",_element:$I,positioners:z1,afterInit(a,e,n){n&&(a.tooltip=new $I({chart:a,options:n}))},beforeUpdate(a,e,n){a.tooltip&&a.tooltip.initialize(n)},reset(a,e,n){a.tooltip&&a.tooltip.initialize(n)},afterDraw(a){const e=a.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(a.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(a.ctx),a.notifyPlugins("afterTooltipDraw",n)}},afterEvent(a,e){if(a.tooltip){const n=e.replay;a.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(a,e)=>e.bodyFont.size,boxWidth:(a,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:dz},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:a=>a!=="filter"&&a!=="itemSort"&&a!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const f$=(a,e,n,o)=>(typeof e=="string"?(n=a.push(e)-1,o.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function k$(a,e,n,o){const r=a.indexOf(e);if(r===-1)return f$(a,e,n,o);const i=a.lastIndexOf(e);return r!==i?n:r}const m$=(a,e)=>a===null?null:Ne(Math.round(a),0,e);function hz(a){const e=this.getLabels();return a>=0&&a<e.length?e[a]:a}class UI extends As{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const o=this.getLabels();for(const{index:r,label:i}of n)o[r]===i&&o.splice(r,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Ce(e))return null;const o=this.getLabels();return n=isFinite(n)&&o[n]===e?n:k$(o,e,me(n,e),this._addedLabels),m$(n,o.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:o,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(o=0),n||(r=this.getLabels().length-1)),this.min=o,this.max=r}buildTicks(){const e=this.min,n=this.max,o=this.options.offset,r=[];let i=this.getLabels();i=e===0&&n===i.length-1?i:i.slice(e,n+1),this._valueRange=Math.max(i.length-(o?0:1),1),this._startValue=this.min-(o?.5:0);for(let s=e;s<=n;s++)r.push({value:s});return r}getLabelForValue(e){return hz.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}ce(UI,"id","category"),ce(UI,"defaults",{ticks:{callback:hz}});function g$(a,e){const n=[],{bounds:r,step:i,min:s,max:c,precision:d,count:h,maxTicks:u,maxDigits:p,includeBounds:y}=a,f=i||1,k=u-1,{min:m,max:g}=e,v=!Ce(s),L=!Ce(c),w=!Ce(h),M=(g-m)/(p+1);let C=vB((g-m)/k/f)*f,S,b,x,I;if(C<1e-14&&!v&&!L)return[{value:m},{value:g}];I=Math.ceil(g/C)-Math.floor(m/C),I>k&&(C=vB(I*C/k/f)*f),Ce(d)||(S=Math.pow(10,d),C=Math.ceil(C*S)/S),r==="ticks"?(b=Math.floor(m/C)*C,x=Math.ceil(g/C)*C):(b=m,x=g),v&&L&&i&&xO((c-s)/i,C/1e3)?(I=Math.round(Math.min((c-s)/C,u)),C=(c-s)/I,b=s,x=c):w?(b=v?s:b,x=L?c:x,I=h-1,C=(x-b)/I):(I=(x-b)/C,m1(I,Math.round(I),C/1e3)?I=Math.round(I):I=Math.ceil(I));const V=Math.max(CB(C),CB(b));S=Math.pow(10,Ce(d)?V:d),b=Math.round(b*S)/S,x=Math.round(x*S)/S;let B=0;for(v&&(y&&b!==s?(n.push({value:s}),b<s&&B++,m1(Math.round((b+B*C)*S)/S,s,uz(s,M,a))&&B++):b<s&&B++);B<I;++B){const A=Math.round((b+B*C)*S)/S;if(L&&A>c)break;n.push({value:A})}return L&&y&&x!==c?n.length&&m1(n[n.length-1].value,c,uz(c,M,a))?n[n.length-1].value=c:n.push({value:c}):(!L||x===c)&&n.push({value:x}),n}function uz(a,e,{horizontal:n,minRotation:o}){const r=Qt(o),i=(n?Math.sin(r):Math.cos(r))||.001,s=.75*e*(""+a).length;return Math.min(e/i,s)}class b$ extends As{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Ce(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:o}=this.getUserBounds();let{min:r,max:i}=this;const s=d=>r=n?r:d,c=d=>i=o?i:d;if(e){const d=jt(r),h=jt(i);d<0&&h<0?c(0):d>0&&h>0&&s(0)}if(r===i){let d=i===0?1:Math.abs(i*.05);c(i+d),e||s(r-d)}this.min=r,this.max=i}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:o}=e,r;return o?(r=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let o=this.getTickLimit();o=Math.max(2,o);const r={maxTicks:o,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,s=g$(r,i);return e.bounds==="ticks"&&wO(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let n=this.min,o=this.max;if(super.configure(),this.options.offset&&e.length){const r=(o-n)/Math.max(e.length-1,1)/2;n-=r,o+=r}this._startValue=n,this._endValue=o,this._valueRange=o-n}getLabelForValue(e){return mI(e,this.chart.options.locale,this.options.ticks.format)}}class WI extends b${determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Re(e)?e:0,this.max=Re(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,o=Qt(this.options.ticks.minRotation),r=(e?Math.sin(o):Math.cos(o))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}ce(WI,"id","linear"),ce(WI,"defaults",{ticks:{callback:DB.formatters.numeric}});const nS={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Qe=Object.keys(nS);function pz(a,e){return a-e}function yz(a,e){if(Ce(e))return null;const n=a._adapter,{parser:o,round:r,isoWeekday:i}=a._parseOpts;let s=e;return typeof o=="function"&&(s=o(s)),Re(s)||(s=typeof o=="string"?n.parse(s,o):n.parse(s)),s===null?null:(r&&(s=r==="week"&&(g1(i)||i===!0)?n.startOf(s,"isoWeek",i):n.startOf(s,r)),+s)}function fz(a,e,n,o){const r=Qe.length;for(let i=Qe.indexOf(a);i<r-1;++i){const s=nS[Qe[i]],c=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-e)/(c*s.size))<=o)return Qe[i]}return Qe[r-1]}function M$(a,e,n,o,r){for(let i=Qe.length-1;i>=Qe.indexOf(n);i--){const s=Qe[i];if(nS[s].common&&a._adapter.diff(r,o,s)>=e-1)return s}return Qe[n?Qe.indexOf(n):0]}function x$(a){for(let e=Qe.indexOf(a)+1,n=Qe.length;e<n;++e)if(nS[Qe[e]].common)return Qe[e]}function kz(a,e,n){if(!n)a[e]=!0;else if(n.length){const{lo:o,hi:r}=pI(n,e),i=n[o]>=e?n[o]:n[r];a[i]=!0}}function w$(a,e,n,o){const r=a._adapter,i=+r.startOf(e[0].value,o),s=e[e.length-1].value;let c,d;for(c=i;c<=s;c=+r.add(c,1,o))d=n[c],d>=0&&(e[d].major=!0);return e}function mz(a,e,n){const o=[],r={},i=e.length;let s,c;for(s=0;s<i;++s)c=e[s],r[c]=s,o.push({value:c,major:!1});return i===0||!n?o:w$(a,o,r,n)}class oS extends As{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const o=e.time||(e.time={}),r=this._adapter=new oR._date(e.adapters.date);r.init(n),f1(o.displayFormats,r.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:yz(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,o=e.time.unit||"day";let{min:r,max:i,minDefined:s,maxDefined:c}=this.getUserBounds();function d(h){!s&&!isNaN(h.min)&&(r=Math.min(r,h.min)),!c&&!isNaN(h.max)&&(i=Math.max(i,h.max))}(!s||!c)&&(d(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&d(this.getMinMax(!1))),r=Re(r)&&!isNaN(r)?r:+n.startOf(Date.now(),o),i=Re(i)&&!isNaN(i)?i:+n.endOf(Date.now(),o)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],o=e[e.length-1]),{min:n,max:o}}buildTicks(){const e=this.options,n=e.time,o=e.ticks,r=o.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const i=this.min,s=this.max,c=IO(r,i,s);return this._unit=n.unit||(o.autoSkip?fz(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):M$(this,c.length,n.minUnit,this.min,this.max)),this._majorUnit=!o.major.enabled||this._unit==="year"?void 0:x$(this._unit),this.initOffsets(r),e.reverse&&c.reverse(),mz(this,c,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,o=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),e.length===1?n=1-r:n=(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?o=i:o=(i-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=Ne(n,0,s),o=Ne(o,0,s),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const e=this._adapter,n=this.min,o=this.max,r=this.options,i=r.time,s=i.unit||fz(i.minUnit,n,o,this._getLabelCapacity(n)),c=me(r.ticks.stepSize,1),d=s==="week"?i.isoWeekday:!1,h=g1(d)||d===!0,u={};let p=n,y,f;if(h&&(p=+e.startOf(p,"isoWeek",d)),p=+e.startOf(p,h?"day":s),e.diff(o,n,s)>1e5*c)throw new Error(n+" and "+o+" are too far apart with stepSize of "+c+" "+s);const k=r.ticks.source==="data"&&this.getDataTimestamps();for(y=p,f=0;y<o;y=+e.add(y,c,s),f++)kz(u,y,k);return(y===o||r.bounds==="ticks"||f===1)&&kz(u,y,k),Object.keys(u).sort(pz).map(m=>+m)}getLabelForValue(e){const n=this._adapter,o=this.options.time;return o.tooltipFormat?n.format(e,o.tooltipFormat):n.format(e,o.displayFormats.datetime)}format(e,n){const r=this.options.time.displayFormats,i=this._unit,s=n||r[i];return this._adapter.format(e,s)}_tickFormatFunction(e,n,o,r){const i=this.options,s=i.ticks.callback;if(s)return Ae(s,[e,n,o],this);const c=i.time.displayFormats,d=this._unit,h=this._majorUnit,u=d&&c[d],p=h&&c[h],y=o[n],f=h&&p&&y&&y.major;return this._adapter.format(e,r||(f?p:u))}generateTickLabels(e){let n,o,r;for(n=0,o=e.length;n<o;++n)r=e[n],r.label=this._tickFormatFunction(r.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,o=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+o)*n.factor)}getValueForPixel(e){const n=this._offsets,o=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+o*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,o=this.ctx.measureText(e).width,r=Qt(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(r),s=Math.sin(r),c=this._resolveTickFontOptions(0).size;return{w:o*i+c*s,h:o*s+c*i}}_getLabelCapacity(e){const n=this.options.time,o=n.displayFormats,r=o[n.unit]||o.millisecond,i=this._tickFormatFunction(e,0,mz(this,[e],this._majorUnit),r),s=this._getLabelSize(i),c=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return c>0?c:1}getDataTimestamps(){let e=this._cache.data||[],n,o;if(e.length)return e;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,o=r.length;n<o;++n)e=e.concat(r[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,o;if(e.length)return e;const r=this.getLabels();for(n=0,o=r.length;n<o;++n)e.push(yz(this,r[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return _B(e.sort(pz))}}ce(oS,"id","time"),ce(oS,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function rS(a,e,n){let o=0,r=a.length-1,i,s,c,d;n?(e>=a[o].pos&&e<=a[r].pos&&({lo:o,hi:r}=Xi(a,"pos",e)),{pos:i,time:c}=a[o],{pos:s,time:d}=a[r]):(e>=a[o].time&&e<=a[r].time&&({lo:o,hi:r}=Xi(a,"time",e)),{time:i,pos:c}=a[o],{time:s,pos:d}=a[r]);const h=s-i;return h?c+(d-c)*(e-i)/h:c}class gz extends oS{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=rS(n,this.min),this._tableRange=rS(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:o}=this,r=[],i=[];let s,c,d,h,u;for(s=0,c=e.length;s<c;++s)h=e[s],h>=n&&h<=o&&r.push(h);if(r.length<2)return[{time:n,pos:0},{time:o,pos:1}];for(s=0,c=r.length;s<c;++s)u=r[s+1],d=r[s-1],h=r[s],Math.round((u+d)/2)!==h&&i.push({time:h,pos:s/(c-1)});return i}_generate(){const e=this.min,n=this.max;let o=super.getDataTimestamps();return(!o.includes(e)||!o.length)&&o.splice(0,0,e),(!o.includes(n)||o.length===1)&&o.push(n),o.sort((r,i)=>r-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),o=this.getLabelTimestamps();return n.length&&o.length?e=this.normalize(n.concat(o)):e=n.length?n:o,e=this._cache.all=e,e}getDecimalForValue(e){return(rS(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,o=this.getDecimalForPixel(e)/n.factor-n.end;return rS(this._table,o*this._tableRange+this._minPos,!0)}}ce(gz,"id","timeseries"),ce(gz,"defaults",oS.defaults);const v$={key:0,class:"mb-2 text-sm font-medium text-gray-700"},C$={key:0,class:"text-red-500 ml-1"},L$={key:0,class:"absolute inset-0 flex items-center justify-center bg-white"},S$={key:1,class:"absolute inset-0 flex items-center justify-center bg-red-50 border border-red-200 rounded"},I$={class:"text-red-600 text-sm"},_$={key:1,class:"mt-2 text-xs text-gray-500"},A$={key:0},bz=Xt(t.defineComponent({name:"DCodeChart",__name:"DCodeChart",props:{type:{default:"line"},width:{default:400},height:{default:300},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},error:{default:null},showInfo:{type:Boolean,default:!1},responsive:{type:Boolean,default:!0},maintainAspectRatio:{type:Boolean,default:!1},theme:{default:"light"},colors:{default:()=>["#3B82F6","#EF4444","#10B981","#F59E0B","#8B5CF6","#EC4899","#14B8A6","#F97316","#6366F1","#84CC16"]},data:{},modelValue:{},options:{},onClick:{},onHover:{},label:{}},emits:["update:modelValue","click","hover","ready"],setup(a,{expose:e,emit:n}){aa.register(UI,WI,JL,va,eS,V1,i$,y$,o$,QN,NL,RL,VI,_s);const o=a,r=n,i=t.ref(null),s=t.shallowRef(null),c=t.ref(null),d=t.computed(()=>({"opacity-50 pointer-events-none":o.loading||o.error})),h=()=>{const y=o.theme==="dark";return{responsive:o.responsive,maintainAspectRatio:o.maintainAspectRatio,animation:{duration:1e3,easing:"easeInOutQuart",delay:f=>{let k=0;return f.type==="data"&&f.mode==="default"&&(k=f.dataIndex*100+f.datasetIndex*50),k},onComplete:()=>{}},plugins:{legend:{position:"top",labels:{color:y?"#E5E7EB":"#374151",font:{size:12}}},tooltip:{backgroundColor:y?"#1F2937":"#FFFFFF",titleColor:y?"#F3F4F6":"#111827",bodyColor:y?"#D1D5DB":"#4B5563",borderColor:y?"#374151":"#E5E7EB",borderWidth:1,animation:{duration:200,easing:"easeInOutQuad"}}},scales:o.type!=="pie"&&o.type!=="doughnut"&&o.type!=="polarArea"?{x:{grid:{color:y?"#374151":"#E5E7EB"},ticks:{color:y?"#D1D5DB":"#6B7280"}},y:{grid:{color:y?"#374151":"#E5E7EB"},ticks:{color:y?"#D1D5DB":"#6B7280"}}}:void 0}},u=y=>!y||!y.datasets?y:{...y,datasets:y.datasets.map((f,k)=>{const m=k%o.colors.length,g=o.colors[m];let v=f.backgroundColor,L=f.borderColor;return["pie","doughnut","polarArea"].includes(o.type)&&(!v||v.length===0)?f.data&&(v=f.data.map((w,M)=>o.colors[M%o.colors.length]+"80"),L=f.data.map((w,M)=>o.colors[M%o.colors.length])):(v=v||g+"40",L=L||g),{...f,borderColor:L,backgroundColor:v,pointBackgroundColor:f.pointBackgroundColor||g,pointBorderColor:f.pointBorderColor||g,hoverBackgroundColor:f.hoverBackgroundColor||g+"60",hoverBorderColor:f.hoverBorderColor||g}})},p=async()=>{if(!i.value)return;await t.nextTick(),s.value&&s.value.destroy();const y=o.data||o.modelValue;let f=y;if(Array.isArray(y))if(y.length>0&&typeof y[0]=="object"&&y[0]!==null){const m=Object.keys(y[0]),g=m.find(L=>["label","name","x","category","title"].includes(L.toLowerCase()))||m[0],v=m.find(L=>L!==g&&["value","y","count","amount","total","data"].includes(L.toLowerCase()))||m.find(L=>L!==g&&typeof y[0][L]=="number")||(m.length>1?m.find(L=>L!==g):m[0]);f={labels:y.map(L=>L[g||""]),datasets:[{label:o.label||"Data",data:y.map(L=>L[v||""])}]}}else y.length>0?f={labels:y.map((m,g)=>`Data ${g+1}`),datasets:[{label:o.label||"Data",data:y}]}:f={labels:[],datasets:[]};if(c.value=u(f),!c.value)return;const k={...h(),...o.options,onClick:(m,g)=>{r("click",m,g),o.onClick&&o.onClick(m,g)},onHover:(m,g)=>{r("hover",m,g),o.onHover&&o.onHover(m,g)}};s.value=new aa(i.value,{type:o.type,data:c.value,options:k}),r("ready",s.value)};return t.watch(()=>[o.data,o.modelValue,o.type,o.options,o.theme],()=>{p()},{deep:!0}),t.watch(()=>[o.width,o.height],()=>{s.value&&s.value.resize()}),t.onMounted(()=>{p()}),t.onUnmounted(()=>{s.value&&s.value.destroy()}),e({chart:s,updateChart:p}),(y,f)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["d-code-chart",d.value])},[a.label?(t.openBlock(),t.createElementBlock("div",v$,[t.createTextVNode(t.toDisplayString(a.label)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",C$,"*")):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"relative",style:t.normalizeStyle({height:a.height+"px"})},[t.createElementVNode("canvas",{ref_key:"chartCanvas",ref:i},null,512),a.loading?(t.openBlock(),t.createElementBlock("div",L$,[...f[0]||(f[0]=[t.createElementVNode("div",{class:"animate-pulse-slow rounded-full h-8 w-8 border-b-2 border-blue-600"},null,-1)])])):t.createCommentVNode("",!0),a.error?(t.openBlock(),t.createElementBlock("div",S$,[t.createElementVNode("div",I$,t.toDisplayString(a.error),1)])):t.createCommentVNode("",!0)],4),a.showInfo&&c.value?(t.openBlock(),t.createElementBlock("div",_$,[c.value.datasets?(t.openBlock(),t.createElementBlock("div",A$,t.toDisplayString(c.value.datasets.length)+" dataset(s) • "+t.toDisplayString(c.value.labels?c.value.labels.length:0)+" data points ",1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-b1c7c58f"]]),La=t.defineComponent({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class");return(o,r)=>(t.openBlock(),t.createBlock(t.unref(nH),t.mergeProps(t.unref(n),{class:t.unref(be)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e.class)}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),B$=["aria-busy"],V$={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},z$={key:1,class:"flex items-center gap-2.5"},q$=["id","checked","indeterminate","disabled","required"],P$={key:0,class:"ml-1 text-red-500 dark:text-red-400","aria-label":"required"},q1=Xt(t.defineComponent({name:"DCodeCheckbox",inheritAttrs:!1,__name:"DCodeCheckbox",props:{modelValue:{type:[Boolean,null]},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(a,{emit:e}){const n=t.useAttrs(),o=e,r=a,i=t.computed(()=>n.label),s=t.computed(()=>n.placeholder),c=t.computed(()=>n.title),d=t.computed(()=>r.visible??!0),h=t.computed(()=>n.required===""||n.required===!0||n.required==="true"),u=Math.random().toString(36).slice(2,7),p=t.computed(()=>`dcode-checkbox-${n.id||i.value||"checkbox"}-${u}`),y=t.ref(!!r.modelValue);t.watch(()=>r.modelValue,m=>{y.value=!!m},{immediate:!0});const f=()=>{if(r.disabled)return;const m=!y.value;y.value=m,o("update:modelValue",m)},k=m=>{(m.key===" "||m.key==="Enter")&&(m.preventDefault(),f())};return(m,g)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["",[t.unref(n).class,{"opacity-60 cursor-not-allowed":a.disabled}]]),"aria-busy":a.skeleton},[a.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.value?(t.openBlock(),t.createElementBlock("div",V$)):t.createCommentVNode("",!0),g[0]||(g[0]=t.createElementVNode("div",{class:"flex items-center gap-2.5"},[t.createElementVNode("div",{class:"h-4 w-4 rounded bg-gray-200 dark:bg-gray-700 animate-pulse flex-shrink-0"}),t.createElementVNode("div",{class:"h-4 w-24 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"})],-1))],64)):(t.openBlock(),t.createElementBlock("div",z$,[t.createElementVNode("label",{class:t.normalizeClass(["flex items-start gap-2.5 group relative",{"cursor-pointer":!a.disabled,"opacity-50 cursor-not-allowed":a.disabled}])},[t.createElementVNode("input",{type:"checkbox",id:p.value,class:"sr-only",checked:y.value,indeterminate:a.indeterminate,disabled:a.disabled,required:h.value,onChange:f,onKeydown:k},null,40,q$),t.createElementVNode("div",{class:t.normalizeClass(["h-4 w-4 shrink-0 rounded-sm border shadow-sm transition-colors flex items-center justify-center mt-0.5",[y.value||a.indeterminate?"bg-primary border-primary text-primary-foreground":"border-neutral-300 dark:border-neutral-600 bg-white dark:bg-neutral-900",a.disabled?"cursor-not-allowed":"cursor-pointer"]]),"aria-hidden":"true"},[y.value&&!a.indeterminate?(t.openBlock(),t.createBlock(t.unref(ca),{key:0,class:"h-3 w-3 text-white","stroke-width":"3"})):a.indeterminate?(t.openBlock(),t.createBlock(t.unref(Xs),{key:1,class:"h-3 w-3 text-white","stroke-width":"3"})):t.createCommentVNode("",!0)],2),s.value||c.value?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["text-sm leading-relaxed select-none transition-colors",[a.disabled?"text-gray-400 dark:text-gray-500":"text-gray-700 dark:text-gray-300 group-hover:text-gray-900 dark:group-hover:text-gray-100"]])},t.toDisplayString(s.value||c.value),3)):t.createCommentVNode("",!0)],2),i.value?(t.openBlock(),t.createBlock(La,{key:0,for:p.value,class:"text-sm font-medium text-gray-700 dark:text-gray-300 select-none cursor-pointer"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value)+" ",1),h.value?(t.openBlock(),t.createElementBlock("span",P$," * ")):t.createCommentVNode("",!0)]),_:1},8,["for"])):t.createCommentVNode("",!0)]))],10,B$)),[[t.vShow,d.value]])}}),[["__scopeId","data-v-938d0f92"]]),D$=["aria-busy"],E$={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},T$={key:1,class:"flex justify-end"},H$=["for"],j$={key:0,class:"ml-1 text-destructive"},O$={class:"relative w-full group"},F$={class:"flex items-center self-stretch px-3 bg-gray-50 dark:bg-neutral-800 border-r border-gray-300 dark:border-gray-700"},R$={class:"text-sm font-semibold text-gray-500 dark:text-gray-400 whitespace-nowrap select-none"},N$=["id","disabled","readonly","placeholder","maxlength"],$$={key:0,class:"absolute top-full right-0 z-10 text-[11px] text-gray-400 dark:text-gray-500 opacity-0 transition-opacity pointer-events-none group-focus-within:opacity-100 mt-0.5"},U$={key:1,class:"flex items-center gap-1 text-xs text-destructive"},Mz=t.defineComponent({name:"DCodeCurrencyField",inheritAttrs:!1,__name:"DCodeCurrencyField",props:{modelValue:{},currency:{default:"IDR"},locale:{},label:{},placeholder:{},error:{},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},hideClearWhenEmpty:{type:Boolean,default:!0},prependInner:{},skeleton:{type:Boolean,default:!1},showCharCount:{type:Boolean,default:!0}},emits:["update:modelValue","clear"],setup(a,{emit:e}){const n=t.useAttrs(),o=e,r=a,i=Math.random().toString(36).slice(2,7),s=t.computed(()=>`app-currency-field-${n.id||r.label||"currency-field"}-${i}`),c=t.computed(()=>{const B=n.required,A=n["aria-required"];return B===""||B===!0||B==="true"||(A==="true"||A===!0)}),d=t.computed(()=>{const B=n.maxlength??n.maxLength;let A=Number.NaN;return typeof B=="number"?A=B:typeof B=="string"&&(A=Number.parseInt(B,10)),Number.isFinite(A)&&A>0?A:void 0}),h=t.computed(()=>r.locale?r.locale:"en-US"),u=t.computed(()=>r.prependInner?r.prependInner:r.currency==="USD"?"$":r.currency==="IDR"?"Rp":r.currency),p=t.computed(()=>new Intl.NumberFormat(h.value,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0})),y=B=>{const A=B.replaceAll(/\D/g,"");return A?Number(A):null},f=B=>p.value.format(B),k=t.ref(""),m=t.ref(null);t.watch(()=>r.modelValue,B=>{B==null?k.value="":y(k.value)!==B&&(k.value=f(B))},{immediate:!0});const g=(B,A)=>{let P=0;for(let D=0;D<A;D++)/\d/.test(B[D])&&P++;return P},v=(B,A)=>{let P=0;for(let D=0;D<B.length;D++)if(/\d/.test(B[D])&&(P++,P===A))return D+1;return B.length},L=B=>{const A=B.target,P=A.value,D=A.selectionStart??P.length,U=y(P);if(U===null){k.value="",o("update:modelValue",null);return}const T=f(U);if(P!==T){const H=g(P,D);k.value=T,t.nextTick(()=>{if(m.value){const N=v(T,H);m.value.setSelectionRange(N,N)}})}o("update:modelValue",U)},w=()=>{k.value="",o("update:modelValue",null),o("clear")},M=t.computed(()=>!r.clearable||r.disabled||r.readonly?!1:r.hideClearWhenEmpty?k.value.length>0:!0),C=t.computed(()=>!!r.error),S=t.computed(()=>{const{class:B,maxlength:A,maxLength:P,...D}=n;return D}),b=t.computed(()=>k.value.length),x=t.computed(()=>r.showCharCount?(d.value??0)>0:!1),I=t.computed(()=>x.value&&b.value>0),V=t.computed(()=>`${b.value} / ${d.value}`);return(B,A)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["flex flex-col gap-1.5 w-full",t.unref(n).class]),"aria-busy":r.skeleton},[r.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.label?(t.openBlock(),t.createElementBlock("div",E$)):t.createCommentVNode("",!0),A[2]||(A[2]=t.createElementVNode("div",{class:"relative w-full"},[t.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"})],-1)),x.value?(t.openBlock(),t.createElementBlock("div",T$,[...A[1]||(A[1]=[t.createElementVNode("div",{class:"h-3 w-14 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1)])])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:s.value,class:"text-sm font-medium text-gray-700 dark:text-gray-300"},[t.createTextVNode(t.toDisplayString(a.label)+" ",1),c.value?(t.openBlock(),t.createElementBlock("span",j$,"*")):t.createCommentVNode("",!0)],8,H$)):t.createCommentVNode("",!0),t.createElementVNode("div",O$,[t.createElementVNode("div",{class:t.normalizeClass(["flex items-center w-full rounded-lg border overflow-hidden transition-all duration-200","bg-white dark:bg-neutral-900",C.value?"border-destructive ring-1 ring-destructive":"border-gray-300 dark:border-gray-700 focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 dark:focus-within:border-blue-400",r.disabled?"opacity-50 cursor-not-allowed bg-gray-50 dark:bg-neutral-800":""])},[t.createElementVNode("div",F$,[t.createElementVNode("span",R$,t.toDisplayString(u.value),1)]),t.withDirectives(t.createElementVNode("input",t.mergeProps({id:s.value,ref_key:"inputRef",ref:m,"onUpdate:modelValue":A[0]||(A[0]=P=>k.value=P),onInput:L,type:"text",inputmode:"numeric"},S.value,{disabled:r.disabled,readonly:r.readonly,placeholder:r.placeholder,maxlength:d.value,class:["flex-1 h-10 px-3 py-2 text-sm bg-transparent text-foreground dark:text-gray-300 outline-none placeholder:text-gray-400",M.value?"pr-8":""]}),null,16,N$),[[t.vModelText,k.value]]),M.value?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"flex items-center justify-center w-8 h-10 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors flex-shrink-0","aria-label":"Clear input",onClick:w},[t.createVNode(t.unref(it),{class:"w-3.5 h-3.5"})])):t.createCommentVNode("",!0)],2),I.value&&!C.value?(t.openBlock(),t.createElementBlock("p",$$,t.toDisplayString(V.value),1)):t.createCommentVNode("",!0)]),C.value?(t.openBlock(),t.createElementBlock("p",U$,[t.createVNode(t.unref(It),{class:"w-3.5 h-3.5 flex-shrink-0"}),t.createTextVNode(" "+t.toDisplayString(r.error),1)])):t.createCommentVNode("",!0)],64))],10,D$))}}),xz=6048e5,W$=864e5,wz=Symbol.for("constructDateFrom");function Sa(a,e){return typeof a=="function"?a(e):a&&typeof a=="object"&&wz in a?a[wz](e):a instanceof Date?new a.constructor(e):new Date(e)}function bt(a,e){return Sa(e||a,a)}let G$={};function iS(){return G$}function P1(a,e){var c,d,h,u;const n=iS(),o=(e==null?void 0:e.weekStartsOn)??((d=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??n.weekStartsOn??((u=(h=n.locale)==null?void 0:h.options)==null?void 0:u.weekStartsOn)??0,r=bt(a,e==null?void 0:e.in),i=r.getDay(),s=(i<o?7:0)+i-o;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function sS(a,e){return P1(a,{...e,weekStartsOn:1})}function vz(a,e){const n=bt(a,e==null?void 0:e.in),o=n.getFullYear(),r=Sa(n,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const i=sS(r),s=Sa(n,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);const c=sS(s);return n.getTime()>=i.getTime()?o+1:n.getTime()>=c.getTime()?o:o-1}function Cz(a){const e=bt(a),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+a-+n}function K$(a,...e){const n=Sa.bind(null,e.find(o=>typeof o=="object"));return e.map(n)}function Lz(a,e){const n=bt(a,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function X$(a,e,n){const[o,r]=K$(n==null?void 0:n.in,a,e),i=Lz(o),s=Lz(r),c=+i-Cz(i),d=+s-Cz(s);return Math.round((c-d)/W$)}function Z$(a,e){const n=vz(a,e),o=Sa(a,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),sS(o)}function Y$(a){return a instanceof Date||typeof a=="object"&&Object.prototype.toString.call(a)==="[object Date]"}function Q$(a){return!(!Y$(a)&&typeof a!="number"||isNaN(+bt(a)))}function J$(a,e){const n=bt(a,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const eU={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},tU=(a,e,n)=>{let o;const r=eU[a];return typeof r=="string"?o=r:e===1?o=r.one:o=r.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function Vs(a){return(e={})=>{const n=e.width?String(e.width):a.defaultWidth;return a.formats[n]||a.formats[a.defaultWidth]}}const aU={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nU={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},oU={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rU={date:Vs({formats:aU,defaultWidth:"full"}),time:Vs({formats:nU,defaultWidth:"full"}),dateTime:Vs({formats:oU,defaultWidth:"full"})},iU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sU=(a,e,n,o)=>iU[a];function Rt(a){return(e,n)=>{const o=n!=null&&n.context?String(n.context):"standalone";let r;if(o==="formatting"&&a.formattingValues){const s=a.defaultFormattingWidth||a.defaultWidth,c=n!=null&&n.width?String(n.width):s;r=a.formattingValues[c]||a.formattingValues[s]}else{const s=a.defaultWidth,c=n!=null&&n.width?String(n.width):a.defaultWidth;r=a.values[c]||a.values[s]}const i=a.argumentCallback?a.argumentCallback(e):e;return r[i]}}const lU={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dU={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},hU={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},uU={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},pU={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yU={ordinalNumber:(a,e)=>{const n=Number(a),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Rt({values:lU,defaultWidth:"wide"}),quarter:Rt({values:cU,defaultWidth:"wide",argumentCallback:a=>a-1}),month:Rt({values:dU,defaultWidth:"wide"}),day:Rt({values:hU,defaultWidth:"wide"}),dayPeriod:Rt({values:uU,defaultWidth:"wide",formattingValues:pU,defaultFormattingWidth:"wide"})};function Nt(a){return(e,n={})=>{const o=n.width,r=o&&a.matchPatterns[o]||a.matchPatterns[a.defaultMatchWidth],i=e.match(r);if(!i)return null;const s=i[0],c=o&&a.parsePatterns[o]||a.parsePatterns[a.defaultParseWidth],d=Array.isArray(c)?kU(c,p=>p.test(s)):fU(c,p=>p.test(s));let h;h=a.valueCallback?a.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const u=e.slice(s.length);return{value:h,rest:u}}}function fU(a,e){for(const n in a)if(Object.prototype.hasOwnProperty.call(a,n)&&e(a[n]))return n}function kU(a,e){for(let n=0;n<a.length;n++)if(e(a[n]))return n}function Sz(a){return(e,n={})=>{const o=e.match(a.matchPattern);if(!o)return null;const r=o[0],i=e.match(a.parsePattern);if(!i)return null;let s=a.valueCallback?a.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const c=e.slice(r.length);return{value:s,rest:c}}}const mU=/^(\d+)(th|st|nd|rd)?/i,gU=/\d+/i,bU={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},MU={any:[/^b/i,/^(a|c)/i]},xU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},wU={any:[/1/i,/2/i,/3/i,/4/i]},vU={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},CU={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},LU={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},SU={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},IU={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},_U={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},AU={ordinalNumber:Sz({matchPattern:mU,parsePattern:gU,valueCallback:a=>parseInt(a,10)}),era:Nt({matchPatterns:bU,defaultMatchWidth:"wide",parsePatterns:MU,defaultParseWidth:"any"}),quarter:Nt({matchPatterns:xU,defaultMatchWidth:"wide",parsePatterns:wU,defaultParseWidth:"any",valueCallback:a=>a+1}),month:Nt({matchPatterns:vU,defaultMatchWidth:"wide",parsePatterns:CU,defaultParseWidth:"any"}),day:Nt({matchPatterns:LU,defaultMatchWidth:"wide",parsePatterns:SU,defaultParseWidth:"any"}),dayPeriod:Nt({matchPatterns:IU,defaultMatchWidth:"any",parsePatterns:_U,defaultParseWidth:"any"})},Iz={code:"en-US",formatDistance:tU,formatLong:rU,formatRelative:sU,localize:yU,match:AU,options:{weekStartsOn:0,firstWeekContainsDate:1}};function BU(a,e){const n=bt(a,e==null?void 0:e.in);return X$(n,J$(n))+1}function VU(a,e){const n=bt(a,e==null?void 0:e.in),o=+sS(n)-+Z$(n);return Math.round(o/xz)+1}function _z(a,e){var u,p,y,f;const n=bt(a,e==null?void 0:e.in),o=n.getFullYear(),r=iS(),i=(e==null?void 0:e.firstWeekContainsDate)??((p=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(y=r.locale)==null?void 0:y.options)==null?void 0:f.firstWeekContainsDate)??1,s=Sa((e==null?void 0:e.in)||a,0);s.setFullYear(o+1,0,i),s.setHours(0,0,0,0);const c=P1(s,e),d=Sa((e==null?void 0:e.in)||a,0);d.setFullYear(o,0,i),d.setHours(0,0,0,0);const h=P1(d,e);return+n>=+c?o+1:+n>=+h?o:o-1}function zU(a,e){var c,d,h,u;const n=iS(),o=(e==null?void 0:e.firstWeekContainsDate)??((d=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(h=n.locale)==null?void 0:h.options)==null?void 0:u.firstWeekContainsDate)??1,r=_z(a,e),i=Sa((e==null?void 0:e.in)||a,0);return i.setFullYear(r,0,o),i.setHours(0,0,0,0),P1(i,e)}function qU(a,e){const n=bt(a,e==null?void 0:e.in),o=+P1(n,e)-+zU(n,e);return Math.round(o/xz)+1}function Ie(a,e){const n=a<0?"-":"",o=Math.abs(a).toString().padStart(e,"0");return n+o}const Ia={y(a,e){const n=a.getFullYear(),o=n>0?n:1-n;return Ie(e==="yy"?o%100:o,e.length)},M(a,e){const n=a.getMonth();return e==="M"?String(n+1):Ie(n+1,2)},d(a,e){return Ie(a.getDate(),e.length)},a(a,e){const n=a.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(a,e){return Ie(a.getHours()%12||12,e.length)},H(a,e){return Ie(a.getHours(),e.length)},m(a,e){return Ie(a.getMinutes(),e.length)},s(a,e){return Ie(a.getSeconds(),e.length)},S(a,e){const n=e.length,o=a.getMilliseconds(),r=Math.trunc(o*Math.pow(10,n-3));return Ie(r,e.length)}},zs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Az={G:function(a,e,n){const o=a.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(a,e,n){if(e==="yo"){const o=a.getFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return Ia.y(a,e)},Y:function(a,e,n,o){const r=_z(a,o),i=r>0?r:1-r;if(e==="YY"){const s=i%100;return Ie(s,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):Ie(i,e.length)},R:function(a,e){const n=vz(a);return Ie(n,e.length)},u:function(a,e){const n=a.getFullYear();return Ie(n,e.length)},Q:function(a,e,n){const o=Math.ceil((a.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Ie(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(a,e,n){const o=Math.ceil((a.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Ie(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(a,e,n){const o=a.getMonth();switch(e){case"M":case"MM":return Ia.M(a,e);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(a,e,n){const o=a.getMonth();switch(e){case"L":return String(o+1);case"LL":return Ie(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(a,e,n,o){const r=qU(a,o);return e==="wo"?n.ordinalNumber(r,{unit:"week"}):Ie(r,e.length)},I:function(a,e,n){const o=VU(a);return e==="Io"?n.ordinalNumber(o,{unit:"week"}):Ie(o,e.length)},d:function(a,e,n){return e==="do"?n.ordinalNumber(a.getDate(),{unit:"date"}):Ia.d(a,e)},D:function(a,e,n){const o=BU(a);return e==="Do"?n.ordinalNumber(o,{unit:"dayOfYear"}):Ie(o,e.length)},E:function(a,e,n){const o=a.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(a,e,n,o){const r=a.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return Ie(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(a,e,n,o){const r=a.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return Ie(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(a,e,n){const o=a.getDay(),r=o===0?7:o;switch(e){case"i":return String(r);case"ii":return Ie(r,e.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(a,e,n){const r=a.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(a,e,n){const o=a.getHours();let r;switch(o===12?r=zs.noon:o===0?r=zs.midnight:r=o/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(a,e,n){const o=a.getHours();let r;switch(o>=17?r=zs.evening:o>=12?r=zs.afternoon:o>=4?r=zs.morning:r=zs.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(a,e,n){if(e==="ho"){let o=a.getHours()%12;return o===0&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return Ia.h(a,e)},H:function(a,e,n){return e==="Ho"?n.ordinalNumber(a.getHours(),{unit:"hour"}):Ia.H(a,e)},K:function(a,e,n){const o=a.getHours()%12;return e==="Ko"?n.ordinalNumber(o,{unit:"hour"}):Ie(o,e.length)},k:function(a,e,n){let o=a.getHours();return o===0&&(o=24),e==="ko"?n.ordinalNumber(o,{unit:"hour"}):Ie(o,e.length)},m:function(a,e,n){return e==="mo"?n.ordinalNumber(a.getMinutes(),{unit:"minute"}):Ia.m(a,e)},s:function(a,e,n){return e==="so"?n.ordinalNumber(a.getSeconds(),{unit:"second"}):Ia.s(a,e)},S:function(a,e){return Ia.S(a,e)},X:function(a,e,n){const o=a.getTimezoneOffset();if(o===0)return"Z";switch(e){case"X":return Vz(o);case"XXXX":case"XX":return os(o);case"XXXXX":case"XXX":default:return os(o,":")}},x:function(a,e,n){const o=a.getTimezoneOffset();switch(e){case"x":return Vz(o);case"xxxx":case"xx":return os(o);case"xxxxx":case"xxx":default:return os(o,":")}},O:function(a,e,n){const o=a.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Bz(o,":");case"OOOO":default:return"GMT"+os(o,":")}},z:function(a,e,n){const o=a.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Bz(o,":");case"zzzz":default:return"GMT"+os(o,":")}},t:function(a,e,n){const o=Math.trunc(+a/1e3);return Ie(o,e.length)},T:function(a,e,n){return Ie(+a,e.length)}};function Bz(a,e=""){const n=a>0?"-":"+",o=Math.abs(a),r=Math.trunc(o/60),i=o%60;return i===0?n+String(r):n+String(r)+e+Ie(i,2)}function Vz(a,e){return a%60===0?(a>0?"-":"+")+Ie(Math.abs(a)/60,2):os(a,e)}function os(a,e=""){const n=a>0?"-":"+",o=Math.abs(a),r=Ie(Math.trunc(o/60),2),i=Ie(o%60,2);return n+r+e+i}const zz=(a,e)=>{switch(a){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},qz=(a,e)=>{switch(a){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},PU={p:qz,P:(a,e)=>{const n=a.match(/(P+)(p+)?/)||[],o=n[1],r=n[2];if(!r)return zz(a,e);let i;switch(o){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",zz(o,e)).replace("{{time}}",qz(r,e))}},DU=/^D+$/,EU=/^Y+$/,TU=["D","DD","YY","YYYY"];function HU(a){return DU.test(a)}function jU(a){return EU.test(a)}function OU(a,e,n){const o=FU(a,e,n);if(console.warn(o),TU.includes(a))throw new RangeError(o)}function FU(a,e,n){const o=a[0]==="Y"?"years":"days of the month";return`Use \`${a.toLowerCase()}\` instead of \`${a}\` (in \`${e}\`) for formatting ${o} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const RU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,NU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$U=/^'([^]*?)'?$/,UU=/''/g,WU=/[a-zA-Z]/;function Pz(a,e,n){var u,p,y,f;const o=iS(),r=o.locale??Iz,i=o.firstWeekContainsDate??((p=(u=o.locale)==null?void 0:u.options)==null?void 0:p.firstWeekContainsDate)??1,s=o.weekStartsOn??((f=(y=o.locale)==null?void 0:y.options)==null?void 0:f.weekStartsOn)??0,c=bt(a,n==null?void 0:n.in);if(!Q$(c))throw new RangeError("Invalid time value");let d=e.match(NU).map(k=>{const m=k[0];if(m==="p"||m==="P"){const g=PU[m];return g(k,r.formatLong)}return k}).join("").match(RU).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const m=k[0];if(m==="'")return{isToken:!1,value:GU(k)};if(Az[m])return{isToken:!0,value:k};if(m.match(WU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:k}});r.localize.preprocessor&&(d=r.localize.preprocessor(c,d));const h={firstWeekContainsDate:i,weekStartsOn:s,locale:r};return d.map(k=>{if(!k.isToken)return k.value;const m=k.value;(jU(m)||HU(m))&&OU(m,e,String(a));const g=Az[m[0]];return g(c,m,r.localize,h)}).join("")}function GU(a){const e=a.match($U);return e?e[1].replace(UU,"'"):a}const KU={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},XU=(a,e,n)=>{let o;const r=KU[a];return typeof r=="string"?o=r:e===1?o=r.one:o=r.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dalam waktu "+o:o+" yang lalu":o},ZU={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},YU={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},QU={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},JU={date:Vs({formats:ZU,defaultWidth:"full"}),time:Vs({formats:YU,defaultWidth:"full"}),dateTime:Vs({formats:QU,defaultWidth:"full"})},eW={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},tW=(a,e,n,o)=>eW[a],aW={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},nW={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},oW={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},rW={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},iW={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},sW={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},lW={ordinalNumber:(a,e)=>"ke-"+Number(a),era:Rt({values:aW,defaultWidth:"wide"}),quarter:Rt({values:nW,defaultWidth:"wide",argumentCallback:a=>a-1}),month:Rt({values:oW,defaultWidth:"wide"}),day:Rt({values:rW,defaultWidth:"wide"}),dayPeriod:Rt({values:iW,defaultWidth:"wide",formattingValues:sW,defaultFormattingWidth:"wide"})},cW=/^ke-(\d+)?/i,dW=/\d+/i,hW={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},uW={any:[/^s/i,/^(m|e)/i]},pW={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},yW={any:[/1/i,/2/i,/3/i,/4/i]},fW={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},kW={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},mW={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},gW={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},bW={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},MW={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},xW={ordinalNumber:Sz({matchPattern:cW,parsePattern:dW,valueCallback:a=>parseInt(a,10)}),era:Nt({matchPatterns:hW,defaultMatchWidth:"wide",parsePatterns:uW,defaultParseWidth:"any"}),quarter:Nt({matchPatterns:pW,defaultMatchWidth:"wide",parsePatterns:yW,defaultParseWidth:"any",valueCallback:a=>a+1}),month:Nt({matchPatterns:fW,defaultMatchWidth:"wide",parsePatterns:kW,defaultParseWidth:"any"}),day:Nt({matchPatterns:mW,defaultMatchWidth:"wide",parsePatterns:gW,defaultParseWidth:"any"}),dayPeriod:Nt({matchPatterns:bW,defaultMatchWidth:"any",parsePatterns:MW,defaultParseWidth:"any"})},wW={code:"id",formatDistance:XU,formatLong:JU,formatRelative:tW,localize:lW,match:xW,options:{weekStartsOn:1,firstWeekContainsDate:1}},Dz={primary:{light:{primary:"hsl(var(--primary))",text:"hsl(var(--primary-foreground))",hover:"hsl(var(--accent))",border:"hsl(var(--border))",range:"#bfdbfe"},dark:{primary:"hsl(var(--primary))",text:"hsl(var(--primary-foreground))",hover:"hsl(var(--accent))",border:"hsl(var(--border))",range:"rgba(30, 58, 138, 0.3)"}},emerald:{light:{primary:"#16a34a",text:"#ffffff",hover:"#dcfce7",border:"#16a34a",range:"#ecfdf5"},dark:{primary:"#22c55e",text:"#0b1220",hover:"#14532d",border:"#22c55e",range:"rgba(6, 78, 59, 0.3)"}},amber:{light:{primary:"#d97706",text:"#ffffff",hover:"#fffbeb",border:"#d97706",range:"#fffbeb"},dark:{primary:"#f59e0b",text:"#0b1220",hover:"#78350f",border:"#f59e0b",range:"rgba(120, 53, 15, 0.3)"}},violet:{light:{primary:"#7c3aed",text:"#ffffff",hover:"#f5f3ff",border:"#7c3aed",range:"#f5f3ff"},dark:{primary:"#8b5cf6",text:"#0b1220",hover:"#2e1065",border:"#8b5cf6",range:"rgba(46, 16, 101, 0.3)"}},destructive:{light:{primary:"hsl(var(--destructive))",text:"hsl(var(--destructive-foreground))",hover:"hsl(var(--destructive) / 0.10)",border:"hsl(var(--destructive))",range:"#fef2f2"},dark:{primary:"hsl(var(--destructive))",text:"hsl(var(--destructive-foreground))",hover:"hsl(var(--destructive) / 0.18)",border:"hsl(var(--destructive))",range:"rgba(127, 29, 29, 0.3)"}}},Ez="dcode-dp-theme-forced";function vW(a,e=Ez){const n=Dz[a]??Dz.primary,o=`
|
|
8520
8520
|
.dp__theme_light {
|
|
8521
8521
|
--dp-primary-color: ${n.light.primary} !important;
|
|
8522
8522
|
--dp-primary-text-color: ${n.light.text} !important;
|
|
@@ -8561,7 +8561,7 @@ For more information, see https://www.reka-ui.com/docs/components/${n}`,c=`Warni
|
|
|
8561
8561
|
.dcode-datepicker-menu .dp__menu_inner {
|
|
8562
8562
|
padding: 0 !important;
|
|
8563
8563
|
}
|
|
8564
|
-
`.trim();let r=document.getElementById(e);r||(r=document.createElement("style"),r.id=e,document.head.appendChild(r)),r.textContent=o}function CW(a,e=Dz){t.watch(a,n=>vW(n,e),{immediate:!0})}const LW={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},SW={key:0,class:"ml-1 text-destructive"},IW=["disabled","onClick"],_W={class:"flex-shrink-0 px-2 text-sm text-muted-foreground select-none whitespace-nowrap"},AW=["id","value","placeholder","disabled","onClick","onFocus","onBlur","onInput","onKeydown","onKeypress","onPaste"],BW={class:"h-full p-2 flex flex-col gap-3 w-32"},VW={class:"flex items-center justify-end gap-2 w-full p-2"},zW={key:1,class:"text-xs text-destructive"},GI=t.defineComponent({name:"DCodeDatePicker",inheritAttrs:!1,__name:"DCodeDatePicker",props:{modelValue:{},range:{type:Boolean,default:!1},autoRangeDays:{default:null},disablePast:{type:Boolean,default:!1},maxDaysAhead:{default:null},placeholder:{default:"Pilih tanggal"},label:{},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},displayFormat:{default:"dd/MM/yyyy"},modelType:{default:"yyyy-MM-dd"},locale:{default:"en"},placement:{default:"bottom-start"},prependInner:{default:void 0},error:{default:null},selectLabel:{default:"Select"},cancelLabel:{default:"Cancel"},tone:{default:"primary"},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","change","clear"],setup(a,{emit:e}){const n=t.useAttrs(),o=a,r=e,i=Math.random().toString(36).slice(2,7),s=t.computed(()=>`dcode-datepicker-${n.id||o.label||"date-picker"}-${i}`),c=t.computed(()=>{const P=n.required,D=n["aria-required"];return P===""||P===!0||P==="true"||D==="true"||D===!0}),d=t.computed(()=>!!o.error),h=t.computed({get:()=>o.modelValue,set:P=>{r("update:modelValue",P),r("change",P)}}),u=t.computed(()=>o.locale==="en"?Sz:wW),p=t.computed(()=>o.range?2:!1),y=t.computed(()=>{if(!o.range)return!1;const P={partialRange:!1};return o.autoRangeDays&&o.autoRangeDays>0&&(P.maxRange=o.autoRangeDays,P.autoRange=o.autoRangeDays),P}),f=P=>{const D=new Date(P);return D.setHours(0,0,0,0),D},k=P=>{const D=new Date(P);return D.setHours(23,59,59,999),D},m=(P,D)=>{const U=new Date(P);return U.setDate(U.getDate()+D),U},g=t.computed(()=>{if(o.disablePast)return f(new Date)}),v=t.computed(()=>{if(o.maxDaysAhead&&o.maxDaysAhead>0)return k(m(new Date,o.maxDaysAhead))}),L=t.ref(null),w=t.ref(null),M=P=>{w.value={month:P.month,year:P.year}},C=t.ref(!1);let S=null;t.onMounted(()=>{const P=document.documentElement,D=()=>C.value=P.classList.contains("dark");D(),S=new MutationObserver(D),S.observe(P,{attributes:!0,attributeFilter:["class"]})}),t.onBeforeUnmount(()=>{S==null||S.disconnect(),S=null}),CW(t.toRef(o,"tone"));const b=P=>{const D=new Date(P),U=D.getDay(),T=D.getDate()-U+(U===0?-6:1);return D.setDate(T),f(D)},x=P=>{const D=b(P);return D.setDate(D.getDate()+6),k(D)},I=P=>{const D=new Date(P);return D.setDate(1),f(D)},V=P=>{const D=new Date(P);return D.setMonth(D.getMonth()+1),D.setDate(0),k(D)},B=t.computed(()=>{if(!o.range)return[];const P=new Date,D=f(P),U=b(P),T=x(P),H=I(P),N=V(P),Q=(j,F)=>{let R=j;o.disablePast&&R<D&&(R=D);let Z=F;if(o.autoRangeDays&&o.autoRangeDays>0){const J=k(m(R,o.autoRangeDays-1));Z>J&&(Z=J)}return Z<R&&(Z=k(new Date(R))),[R,Z]};return[{label:o.locale==="id"?"Minggu Ini":"This Week",range:Q(U,T)},{label:o.locale==="id"?"Bulan Ini":"This Month",range:Q(H,N)}]}),A=async P=>{var F,R;const D=o.modelType||"yyyy-MM-dd";if(P.length===0){h.value=null;return}if(P.length<2)return;const U=qz(P[0],D),T=qz(P[1],D);h.value=[U,T],await t.nextTick();const H=P[0],N=H.getMonth(),Q=H.getFullYear();w.value&&w.value.month===N&&w.value.year===Q||(F=L.value)==null||F.setMonthYear({month:N,year:Q}),(R=L.value)==null||R.openMenu()};return(P,D)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["flex flex-col gap-1 w-full",t.unref(n).class])},[a.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.label?(t.openBlock(),t.createElementBlock("div",LW)):t.createCommentVNode("",!0),D[2]||(D[2]=t.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.label?(t.openBlock(),t.createBlock(t.unref(La),{key:0,for:s.value,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.label)+" ",1),c.value?(t.openBlock(),t.createElementBlock("span",SW,"*")):t.createCommentVNode("",!0)]),_:1},8,["for"])):t.createCommentVNode("",!0),t.createVNode(t.unref(Je.VueDatePicker),{ref_key:"dpRef",ref:L,modelValue:h.value,"onUpdate:modelValue":D[1]||(D[1]=U=>h.value=U),dark:C.value,range:y.value,"multi-calendars":p.value,disabled:a.disabled,clearable:!1,"text-input":"","enable-time-picker":!1,"time-config":{enableTimePicker:!1},"auto-apply":!1,"action-row":{showPreview:!0,showNow:!1},locale:u.value,"model-type":a.modelType,formats:{input:a.displayFormat},"min-date":g.value,"max-date":v.value,"preset-ranges":B.value,floating:{placement:a.placement,offset:8,arrow:!1,flip:!1,shift:!0},teleport:!0,"menu-class-name":"dcode-datepicker-menu","calendar-class-name":"dcode-datepicker-calendar",onUpdateMonthYear:M},t.createSlots({"dp-input":t.withCtx(({value:U,onInput:T,onEnter:H,onTab:N,onBlur:Q,onFocus:j,onKeypress:F,onPaste:R,toggleMenu:Z})=>[t.createElementVNode("div",{class:t.normalizeClass(["flex items-center w-full h-10 rounded-lg border bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 overflow-hidden",[d.value?"border-destructive":"",a.disabled?"opacity-50 cursor-not-allowed":""]])},[t.createElementVNode("button",{type:"button",tabindex:"-1",disabled:a.disabled,class:"flex-shrink-0 flex items-center justify-center w-10 h-full text-muted-foreground hover:text-foreground transition-colors focus:outline-none",onClick:J=>Z()},[t.createVNode(t.unref(Hs),{class:"w-4 h-4 pointer-events-none"})],8,IW),D[4]||(D[4]=t.createElementVNode("span",{class:"w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0"},null,-1)),a.prependInner?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",_W,t.toDisplayString(a.prependInner),1),D[3]||(D[3]=t.createElementVNode("span",{class:"w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0"},null,-1))],64)):t.createCommentVNode("",!0),t.createElementVNode("input",{id:s.value,value:U,placeholder:a.placeholder,disabled:a.disabled,autocomplete:"off",readonly:"",class:t.normalizeClass(["flex-1 min-w-0 px-3 h-full bg-transparent text-sm text-foreground dark:text-gray-300 placeholder:text-muted-foreground outline-none",a.disabled?"cursor-not-allowed":"cursor-pointer"]),onClick:J=>Z(),onFocus:J=>j(),onBlur:J=>Q(),onInput:J=>T(J),onKeydown:[t.withKeys(J=>H(J),["enter"]),t.withKeys(J=>N(J),["tab"])],onKeypress:J=>F(J),onPaste:J=>R()},null,42,AW)],2)]),"action-buttons":t.withCtx(({selectDate:U,selectionDisabled:T})=>[t.createElementVNode("div",VW,[t.createVNode(t.unref(Ee),{type:"button",variant:"outline",onClick:D[0]||(D[0]=H=>{var N;return(N=L.value)==null?void 0:N.closeMenu()})},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.cancelLabel),1)]),_:1}),t.createVNode(t.unref(Ee),{type:"button",variant:"default",disabled:T,onClick:H=>U()},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.selectLabel),1)]),_:1},8,["disabled","onClick"])])]),_:2},[a.range?{name:"left-sidebar",fn:t.withCtx(()=>[t.createElementVNode("div",BW,[B.value.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(B.value,U=>(t.openBlock(),t.createBlock(t.unref(Ee),{key:U.label,type:"button",variant:"default",class:"w-full",onClick:T=>A(U.range)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(U.label),1)]),_:2},1032,["onClick"]))),128)):t.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["modelValue","dark","range","multi-calendars","disabled","locale","model-type","formats","min-date","max-date","preset-ranges","floating"]),d.value?(t.openBlock(),t.createElementBlock("p",zW,t.toDisplayString(o.error),1)):t.createCommentVNode("",!0)],64))],2))}}),qW=t.defineComponent({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(a,{emit:e}){const r=mt(a,e);return(i,s)=>(t.openBlock(),t.createBlock(t.unref(BA),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16))}}),PW=t.defineComponent({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:e}){const n=a,o=e,r=De(n,"class"),i=mt(r,o);return(s,c)=>(t.openBlock(),t.createBlock(t.unref(NA),null,{default:t.withCtx(()=>[t.createVNode(t.unref(RA),{class:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),t.createVNode(t.unref(OA),t.mergeProps({...t.unref(i),...s.$attrs},{class:t.unref(be)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n.class)}),{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default"),t.createVNode(t.unref(VA),{class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},{default:t.withCtx(()=>[t.createVNode(t.unref(it),{class:"w-4 h-4"}),c[0]||(c[0]=t.createElementVNode("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),DW=t.defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(FA),t.mergeProps(t.unref(o),{class:t.unref(be)("text-sm text-muted-foreground",e.class)}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3},16,["class"]))}}),EW=t.defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref($A),t.mergeProps(t.unref(o),{class:t.unref(be)("text-lg font-medium leading-none tracking-tight",e.class)}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3},16,["class"]))}}),TW={class:"flex items-center gap-3"},HW={class:"flex justify-end gap-3"},lS=t.defineComponent({name:"DCodeDialog",inheritAttrs:!1,__name:"DCodeDialog",props:{modelValue:{type:Boolean,default:!1},title:{default:""},icon:{default:""},maxWidth:{default:500},persistent:{type:Boolean,default:!0},contentClass:{default:"p-5"},contentStyle:{default:()=>({})}},emits:["update:modelValue"],setup(a,{emit:e}){const n=a,o=e,r=t.useAttrs(),i=t.computed(()=>{const{style:h,...u}=r;return u}),s=t.computed(()=>({maxWidth:typeof n.maxWidth=="number"?`${n.maxWidth}px`:n.maxWidth,width:"100%"})),c=t.computed(()=>n.icon?Gt[n.icon]??null:null),d=h=>{o("update:modelValue",h)};return(h,u)=>(t.openBlock(),t.createBlock(t.unref(qW),{open:a.modelValue,"onUpdate:open":d},{default:t.withCtx(()=>[t.createVNode(t.unref(PW),t.mergeProps(i.value,{style:s.value,class:"p-0 overflow-hidden rounded-xl",onInteractOutside:u[0]||(u[0]=p=>a.persistent?p.preventDefault():null),onEscapeKeyDown:u[1]||(u[1]=p=>a.persistent?p.preventDefault():null)}),{default:t.withCtx(()=>[t.createVNode(rI,{padding:a.contentClass,border:"",shadow:"",class:"w-full !rounded-xl !border-0",level:1},t.createSlots({header:t.withCtx(()=>[t.createElementVNode("div",TW,[c.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.value),{key:0,class:"h-5 w-5"})):t.createCommentVNode("",!0),t.createVNode(t.unref(EW),{class:"text-base font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),t.createVNode(t.unref(DW),{class:"hidden"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title||"Dialog Content"),1)]),_:1})])]),actions:t.withCtx(()=>[t.renderSlot(h.$slots,"header-append")]),default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle(a.contentStyle)},[t.renderSlot(h.$slots,"default")],4)]),_:2},[h.$slots.actions?{name:"footer",fn:t.withCtx(()=>[t.createElementVNode("div",HW,[t.renderSlot(h.$slots,"actions")])]),key:"0"}:void 0]),1032,["padding"])]),_:3},16,["style"])]),_:3},8,["open"]))}}),Ez=t.defineComponent({__name:"DCodeDialogCloseBtn",props:{icon:{default:"X"},iconSize:{default:22}},setup(a){const e=a,n=t.computed(()=>Gt[e.icon]??it);return(o,r)=>(t.openBlock(),t.createBlock(t.unref(Ee),{type:"button",variant:"secondary",size:"icon",class:"rounded-full shadow-sm"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.value),{size:Number(a.iconSize)},null,8,["size"]))]),_:1}))}}),jW=t.defineComponent({__name:"Alert",props:{class:{type:[Boolean,null,String,Object,Array]},variant:{}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)(t.unref(FW)({variant:a.variant}),e.class)),role:"alert"},[t.renderSlot(n.$slots,"default")],2))}}),OW=t.defineComponent({__name:"AlertDescription",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)("text-sm [&_p]:leading-relaxed",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),FW=i1("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),_a=t.defineComponent({__name:"Badge",props:{variant:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)(t.unref(RW)({variant:a.variant}),e.class))},[t.renderSlot(n.$slots,"default")],2))}}),RW=i1("inline-flex gap-1 items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),KI=t.defineComponent({__name:"Card",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)("rounded-xl border bg-card text-card-foreground shadow",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),XI=t.defineComponent({__name:"CardContent",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)("p-6 pt-0",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),ZI=t.defineComponent({__name:"CardHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)("flex flex-col gap-y-1.5 p-6",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),YI=t.defineComponent({__name:"CardTitle",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("h3",{class:t.normalizeClass(t.unref(be)("font-medium leading-none tracking-tight",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),NW={class:"h-full w-full p-6 flex flex-col items-center justify-center text-center gap-2"},$W={class:"flex flex-wrap items-center justify-center gap-2"},UW=["accept","multiple"],cS=Xt(t.defineComponent({__name:"DCodeDropzone",props:{label:{default:"Upload File"},hint:{default:"Drag & drop file di sini atau klik area ini"},accept:{default:"*/*"},maxSizeMb:{default:2},mode:{default:"single"},disabled:{type:Boolean,default:!1},showSelected:{type:Boolean,default:!0},error:{default:null}},emits:["picked","picked:multiple","error"],setup(a,{emit:e}){const n=a,o=e,r=t.ref(null),i=t.ref(!1),s=t.ref(null),c=t.ref(null),d=t.ref(null);t.computed(()=>n.accept||"file/*");const h=t.computed(()=>n.error??s.value);function u(){var b;n.disabled||(b=r.value)==null||b.click()}function p(b){const x=b/1024,I=x/1024;return I>=1?`${I.toFixed(2)} MB`:x>=1?`${x.toFixed(1)} KB`:`${b} B`}function y(b){var I;if(!b)return"File tidak valid";if((I=n.accept)!=null&&I.includes("image/")&&!b.type.startsWith("image/"))return"Hanya file gambar yang diizinkan";const x=(n.maxSizeMb??2)*1024*1024;return b.size>x?`Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB`:null}function f(b){c.value=b.name,d.value=b.size}function k(b){if(s.value=null,!b.length)return;if(n.mode==="single"){const I=b[0],V=y(I);if(V){s.value=V,o("error",V);return}n.showSelected&&f(I),o("picked",I);return}const x=[];for(const I of b){const V=y(I);if(V){s.value=V,o("error",V);return}x.push(I)}x.length&&(n.showSelected&&f(x[0]),o("picked:multiple",x))}function m(b){const x=b.target,I=Array.from(x.files??[]);k(I),x.value=""}function g(){n.disabled||(i.value=!0)}function v(){n.disabled||(i.value=!0)}function L(){i.value=!1}function w(b){var V,B;if(n.disabled)return;i.value=!1;const x=Array.from(((V=b.dataTransfer)==null?void 0:V.files)??[]),I=(B=n.accept)!=null&&B.includes("image/")?x.filter(A=>A.type.startsWith("image/")):x;k(I)}const M=t.computed(()=>(n.accept||"file/*").split(",").map(b=>b.trim()).filter(Boolean).map(b=>b==="image/*"?"IMAGE":b.replace(/^image\//,"").replace(/^\./,"")).join(", "));t.computed(()=>`${n.maxSizeMb??0}MB`);const C=t.ref(!1),S=t.computed(()=>{if(n.disabled||!C.value)return{};const b=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark");return{borderColor:b?"hsl(var(--primary) / 0.5)":"hsl(var(--primary) / 0.6)",backgroundColor:b?"hsl(var(--primary) / 0.1)":"hsl(var(--primary) / 0.05)"}});return(b,x)=>(t.openBlock(),t.createBlock(t.unref(KI),{class:t.normalizeClass([a.disabled?"opacity-60":"","dark:bg-neutral-900 dark:border-neutral-800"])},{default:t.withCtx(()=>[t.createVNode(t.unref(ZI),{class:"pb-2"},{default:t.withCtx(()=>[t.createVNode(t.unref(YI),{class:"text-sm font-semibold dark:text-neutral-100"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.label),1)]),_:1})]),_:1}),t.createVNode(t.unref(XI),{class:"pt-2"},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["d-dropzone-area flex justify-center items-center rounded-xl border-2 border-dashed transition cursor-pointer select-none",[i.value?"is-dragging border-primary bg-primary/10 dark:bg-primary/20 -translate-y-[1px]":"border-border dark:border-neutral-700 bg-muted/30 dark:bg-neutral-800/50",a.disabled?"is-disabled":""]]),style:t.normalizeStyle([{minHeight:"190px"},S.value]),onClick:u,onDragenter:t.withModifiers(g,["prevent"]),onDragover:t.withModifiers(v,["prevent"]),onDragleave:t.withModifiers(L,["prevent"]),onDrop:t.withModifiers(w,["prevent"]),onMouseenter:x[0]||(x[0]=I=>C.value=!0),onMouseleave:x[1]||(x[1]=I=>C.value=!1)},[t.createElementVNode("div",NW,[x[2]||(x[2]=t.createElementVNode("div",{class:"text-sm font-medium dark:text-neutral-200"},"Drag & drop file di sini",-1)),x[3]||(x[3]=t.createElementVNode("div",{class:"text-xs text-muted-foreground dark:text-neutral-400"},"atau klik area ini untuk memilih file",-1)),t.createElementVNode("div",$W,[t.createVNode(t.unref(_a),{variant:"secondary",class:"text-[11px] dark:bg-neutral-700 dark:text-neutral-300"},{default:t.withCtx(()=>[t.createTextVNode(" Allowed: "+t.toDisplayString(M.value),1)]),_:1}),t.createVNode(t.unref(_a),{variant:"secondary",class:"text-[11px] dark:bg-neutral-700 dark:text-neutral-300"},{default:t.withCtx(()=>[t.createTextVNode(" Max: "+t.toDisplayString(n.maxSizeMb)+"MB ",1)]),_:1})]),a.showSelected&&c.value?(t.openBlock(),t.createBlock(t.unref(_a),{key:0,variant:"secondary",class:"mt-2 dark:bg-neutral-700 dark:text-neutral-300"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.value)+" • "+t.toDisplayString(d.value?p(d.value):""),1)]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("input",{ref_key:"fileInputEl",ref:r,type:"file",class:"hidden",accept:a.accept,multiple:a.mode==="multiple",onChange:m},null,40,UW)],38),h.value?(t.openBlock(),t.createBlock(t.unref(jW),{key:0,variant:"destructive",class:"mt-3"},{default:t.withCtx(()=>[t.createVNode(t.unref(OW),{class:"text-sm"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(h.value),1)]),_:1})]),_:1})):t.createCommentVNode("",!0)]),_:1})]),_:1},8,["class"]))}}),[["__scopeId","data-v-218e1a20"]]),WW={key:0,class:"text-xs text-muted-foreground dark:text-neutral-400"},GW=["src"],KW={key:1,class:"h-full w-full flex flex-col items-center justify-center text-muted-foreground dark:text-neutral-400 gap-2 p-4 text-center"},XW={class:"space-y-0.5"},ZW={class:"text-sm font-medium truncate max-w-[180px] dark:text-neutral-200"},YW={class:"text-xs opacity-70"},QW=["disabled"],JW={key:1},eG=["disabled"],tG={class:"text-[11px] text-foreground/90 dark:text-neutral-200 space-y-1 whitespace-nowrap"},aG={class:"flex gap-2"},nG={class:"font-medium truncate"},oG={class:"flex gap-2"},rG={class:"font-medium"},iG={class:"flex gap-2"},sG={class:"font-medium truncate"},QI=Xt(t.defineComponent({__name:"DCodeFileResult",props:{file:{},title:{default:"File Terpilih"},description:{default:""},disabled:{type:Boolean,default:!1},previewHeight:{default:190},previewWidth:{default:220},showEdit:{type:Boolean,default:!0},showReplace:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!0},forceFileIcon:{type:Boolean,default:!1}},emits:["edit","replace","remove"],setup(a,{emit:e}){const n=a,o=e,r=t.ref(null),i=t.computed(()=>n.forceFileIcon||!n.file?!1:(n.file.type||"").startsWith("image/"));t.watch(()=>n.file,f=>{r.value&&URL.revokeObjectURL(r.value),r.value=f?URL.createObjectURL(f):null},{immediate:!0}),t.onBeforeUnmount(()=>{r.value&&URL.revokeObjectURL(r.value),u&&u.disconnect()});function s(f){const k=f/1024,m=k/1024;return m>=1?`${m.toFixed(2)} MB`:k>=1?`${k.toFixed(1)} KB`:`${f} B`}const c=t.computed(()=>n.file?{name:n.file.name,size:s(n.file.size),type:n.file.type||"unknown"}:null),d=t.ref(!1),h=t.ref(!1);let u=null;const p=()=>{typeof document<"u"&&(h.value=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark"))};t.onMounted(()=>{p(),typeof document<"u"&&(u=new MutationObserver(p),u.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),u.observe(document.body,{attributes:!0,attributeFilter:["class"]}))});const y=t.computed(()=>n.disabled||!d.value?{}:{borderColor:h.value?"hsl(var(--primary) / 0.4)":"hsl(var(--primary) / 0.5)",backgroundColor:h.value?"hsl(var(--primary) / 0.1)":"hsl(var(--primary) / 0.05)"});return(f,k)=>a.file?(t.openBlock(),t.createBlock(KI,{key:0,class:t.normalizeClass([a.disabled?"opacity-60 pointer-events-none":"","dark:bg-neutral-900 dark:border-neutral-800"])},{default:t.withCtx(()=>[t.createVNode(ZI,{class:"pb-2"},{default:t.withCtx(()=>[t.createVNode(YI,{class:"text-sm font-semibold dark:text-neutral-100"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),a.description?(t.openBlock(),t.createElementBlock("div",WW,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)]),_:1}),t.createVNode(XI,{class:"pt-2"},{default:t.withCtx(()=>{var m,g,v,L,w;return[t.createElementVNode("div",{class:"d-result-preview-wrap relative rounded-xl overflow-hidden border-2 border-dashed transition-colors duration-200 bg-muted dark:bg-neutral-800/50 border-border dark:border-neutral-700 w-full",style:t.normalizeStyle([{height:`${a.previewHeight}px`},y.value]),onMouseenter:k[2]||(k[2]=M=>d.value=!0),onMouseleave:k[3]||(k[3]=M=>d.value=!1)},[i.value&&r.value?(t.openBlock(),t.createElementBlock("img",{key:0,src:r.value,alt:"Preview",class:"h-full w-full object-contain"},null,8,GW)):(t.openBlock(),t.createElementBlock("div",KW,[t.createVNode(t.unref(hs),{class:"w-10 h-10"}),t.createElementVNode("div",XW,[t.createElementVNode("p",ZW,t.toDisplayString((m=c.value)==null?void 0:m.name),1),t.createElementVNode("p",YW,t.toDisplayString((g=c.value)==null?void 0:g.size),1)])])),t.createElementVNode("div",{class:"d-action-buttons",style:t.normalizeStyle({position:"absolute",top:"8px",left:"8px",right:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",zIndex:50,opacity:d.value?1:0,transition:"opacity 0.2s ease-in-out",pointerEvents:d.value?"auto":"none"})},[a.showEdit&&i.value?(t.openBlock(),t.createElementBlock("button",{key:0,disabled:a.disabled,class:"d-action-btn shadow-md",style:t.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#eab308",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:a.disabled?"not-allowed":"pointer",transition:"all 0.2s"}),onClick:k[0]||(k[0]=M=>o("edit"))},[t.createVNode(t.unref(sr),{style:{width:"16px",height:"16px"}})],12,QW)):(t.openBlock(),t.createElementBlock("div",JW)),a.showRemove?(t.openBlock(),t.createElementBlock("button",{key:2,disabled:a.disabled,class:"d-action-btn shadow-md",style:t.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ef4444",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:a.disabled?"not-allowed":"pointer",transition:"all 0.2s"}),onClick:k[1]||(k[1]=M=>o("remove"))},[t.createVNode(t.unref(_i),{style:{width:"16px",height:"16px"}})],12,eG)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:"d-metadata-overlay",style:t.normalizeStyle({position:"absolute",left:"8px",bottom:"8px",zIndex:10,display:"inline-block",maxWidth:"calc(100% - 16px)",borderRadius:"12px",border:"1px solid rgba(0,0,0,0.1)",padding:"8px 12px",boxShadow:"0 10px 15px -3px rgba(0,0,0,0.1)",backdropFilter:"blur(8px)",transition:"all 0.2s ease-in-out",opacity:d.value?1:0,transform:d.value?"translateY(0) scale(1)":"translateY(4px) scale(0.99)",backgroundColor:h.value?"rgba(38, 38, 38, 0.8)":"rgba(255, 255, 255, 0.8)",color:h.value?"#e5e5e5":"#171717"})},[t.createElementVNode("div",tG,[t.createElementVNode("div",aG,[k[4]||(k[4]=t.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Nama",-1)),t.createElementVNode("span",nG,t.toDisplayString((v=c.value)==null?void 0:v.name),1)]),t.createElementVNode("div",oG,[k[5]||(k[5]=t.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Ukuran",-1)),t.createElementVNode("span",rG,t.toDisplayString((L=c.value)==null?void 0:L.size),1)]),t.createElementVNode("div",iG,[k[6]||(k[6]=t.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Tipe",-1)),t.createElementVNode("span",sG,t.toDisplayString((w=c.value)==null?void 0:w.type),1)])])],4)],36)]}),_:1})]),_:1},8,["class"])):t.createCommentVNode("",!0)}}),[["__scopeId","data-v-21123eaf"]]);function JI(){const a=i=>{var d;const s={type:i.type||"info",title:i.title,message:i.message,duration:i.duration??3e3};typeof window<"u"&&window.dispatchEvent(new CustomEvent("micro:toast",{detail:s,bubbles:!0,composed:!0})),(s.type==="error"?console.error:s.type==="warning"?console.warn:console.log)(`[Toast][${(d=s.type)==null?void 0:d.toUpperCase()}]`,s.title||"",s.message)};return{show:a,success:(i,s)=>a({type:"success",message:i,title:s}),error:(i,s)=>a({type:"error",message:i,title:s}),warning:(i,s)=>a({type:"warning",message:i,title:s}),info:(i,s)=>a({type:"info",message:i,title:s})}}const lG={class:"space-y-3"},cG={key:1,class:"flex items-center justify-center p-6 border rounded-lg bg-muted/30 dark:bg-neutral-800/20 dark:border-neutral-800"},Tz=t.defineComponent({__name:"DCodeFileField",props:{modelValue:{default:null},label:{default:"Upload File"},hint:{},disabled:{type:Boolean,default:!1},previewHeight:{default:190},previewWidth:{default:void 0},allowedTypes:{default:null},accept:{default:"*/*"},minSizeMb:{default:null},maxSizeMb:{default:1},endpoint:{},uploadFn:{}},emits:["update:modelValue","error","uploaded"],setup(a,{emit:e}){const n=a,o=e,r=t.computed({get:()=>n.modelValue,set:S=>o("update:modelValue",S)}),i=t.ref(null),s=t.ref(null);function c(S){s.value=S,o("error",S)}function d(){s.value=null}const h=t.computed(()=>{const S=(n.allowedTypes??"").trim();return S?S.split(/[,\s;]+/g).map(x=>x.trim().toLowerCase()).filter(Boolean).map(x=>x.includes("/")||x.startsWith(".")?x:`.${x}`):[]});function u(S){const b=S.lastIndexOf(".");return b>=0?S.slice(b).toLowerCase():""}const p=t.computed(()=>{if(h.value.length){const S=h.value.filter(x=>x.startsWith("."));return[...h.value.filter(x=>x.includes("/")),...S].join(",")}return n.accept}),y=t.computed(()=>h.value.length?h.value.join(", "):n.accept||"Semua File");function f(S){if(h.value.length){const b=(S.type||"").toLowerCase(),x=u(S.name);return h.value.some(I=>I.includes("/")?b===I:I.startsWith(".")?x===I:x===`.${I}`)}if(n.accept){if(n.accept==="*/*")return!0;const b=n.accept.split(",").map(V=>V.trim().toLowerCase()),x=(S.type||"").toLowerCase(),I=u(S.name);return b.some(V=>{if(V.endsWith("/*")){const B=V.slice(0,-2);return x.startsWith(B)}return V.startsWith(".")?I===V:x===V})}return!0}function k(S){return S*1024*1024}async function m(S){return S?f(S)?n.minSizeMb!=null&&S.size<k(n.minSizeMb)?`Ukuran file terlalu kecil. Minimal ${n.minSizeMb}MB`:n.maxSizeMb!=null&&S.size>k(n.maxSizeMb)?`Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB`:null:`File Type not allowed. Allowed: ${y.value}`:"File tidak valid"}const{DCodeApi:g}=Ke(),v=JI(),L=t.ref(!1);async function w(S){var b;if(n.uploadFn){try{L.value=!0;const x=await n.uploadFn(S);r.value=S,o("uploaded",x)}catch(x){console.error("Upload Error",x),v.error("Upload Failed",(x==null?void 0:x.message)||"Unknown error"),c((x==null?void 0:x.message)||"Upload Failed")}finally{L.value=!1}return}if(!((b=n.endpoint)!=null&&b.apiUrl)){r.value=S;return}if(typeof g!="function"){c("useApi() must expose DCodeApi()");return}try{L.value=!0;const x=new FormData;x.append("doc",S);const I=(n.endpoint.apiMethod||"POST").toUpperCase(),V=n.endpoint.apiUrl,B=await g("","",x,{_url:V,_method:I,withCredentials:!0,transformRequest:[(P,D)=>(D&&(delete D["Content-Type"],delete D["content-type"]),P)]}),A=(B==null?void 0:B.data)??B;r.value=S,o("uploaded",A)}catch(x){console.error("Upload Error",x),v.error("Upload Failed",(x==null?void 0:x.message)||"Unknown error"),c((x==null?void 0:x.message)||"Upload Failed")}finally{L.value=!1}}async function M(S){var x;if(n.disabled)return;d();const b=await m(S);if(b){c(b);return}i.value=S,n.uploadFn||(x=n.endpoint)!=null&&x.apiUrl?await w(S):r.value=S}function C(){d(),r.value=null,i.value=null}return t.watch(()=>n.modelValue,S=>{S&&!i.value&&(i.value=S),S||(i.value=null)},{immediate:!0}),(S,b)=>(t.openBlock(),t.createElementBlock("div",lG,[r.value?L.value?(t.openBlock(),t.createElementBlock("div",cG,[...b[1]||(b[1]=[t.createElementVNode("span",{class:"text-sm text-muted-foreground dark:text-neutral-400 animate-pulse"},"Uploading...",-1)])])):(t.openBlock(),t.createBlock(QI,{key:2,file:r.value,title:a.label,description:a.hint,disabled:a.disabled,"show-edit":!1,"show-replace":!1,"show-remove":!0,"force-file-icon":!0,"preview-height":a.previewHeight,"preview-width":a.previewWidth,onRemove:C},null,8,["file","title","description","disabled","preview-height","preview-width"])):(t.openBlock(),t.createBlock(cS,{key:0,label:a.label,hint:a.hint,accept:p.value,maxSizeMb:a.maxSizeMb,disabled:a.disabled||L.value,onPicked:M,error:s.value,onError:b[0]||(b[0]=x=>c(x))},null,8,["label","hint","accept","maxSizeMb","disabled","error"]))]))}}),dG=["for"],hG={key:0,class:"!ml-1 !text-destructive"},uG={class:"relative w-full block box-border"},pG={key:0,class:"absolute inset-y-0 left-3 flex items-center text-muted-foreground pointer-events-none z-10"},yG=["id","readonly","disabled","placeholder"],fG={class:"absolute inset-y-0 right-4 flex items-center z-10"},kG={key:1,class:"absolute z-50 mt-1 w-full rounded-xl border bg-white dark:bg-neutral-900 shadow-lg box-border"},mG={key:0,class:"flex items-center justify-center py-10 text-muted-foreground gap-2"},gG={key:1,class:"text-sm text-muted-foreground text-center"},bG=["onClick","title"],MG={class:"flex flex-col items-center justify-between gap-2 py-1 min-h-[72px]"},xG={class:"flex items-center justify-center flex-1"},wG={class:"text-[10px] leading-tight text-muted-foreground truncate w-full text-center block flex-shrink-0"},vG={key:3,class:"pt-2 text-[11px] text-muted-foreground text-center"},Hz=t.defineComponent({name:"DCodeIconDropdown",__name:"DCodeIconDropdown",props:{modelValue:{},label:{},placeholder:{default:"Pilih icon…"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},columns:{default:4},maxHeight:{default:"335px"},iconSize:{default:20},pageSize:{default:120}},emits:["update:modelValue","clear"],setup(a,{emit:e}){const n=a,o=e,r=Gt,i=t.ref(null),s=t.ref(null),c=Math.random().toString(36).slice(2,7),d=t.computed(()=>`dcode-icon-dropdown-${n.label||"icon-dropdown"}-${c}`),h=t.ref(!1),u=t.computed(()=>(n.modelValue??"").trim()||""),p=t.ref(""),y=t.ref(!1),f=t.ref(!1),k=t.ref(!1),m=t.shallowRef([]),g=t.ref(n.pageSize),v=new Set(["default","createLucideIcon","LucideIcon","Icon","icons","toKebabCase","camelCase","children","IconNode"]),L=async()=>{if(f.value||k.value)return;k.value=!0,await new Promise(F=>setTimeout(F,0));const j=Object.keys(r).filter(F=>!v.has(F)).filter(F=>/^[A-Z]/.test(F)).filter(F=>typeof r[F]=="function"||typeof r[F]=="object"&&r[F]).sort((F,R)=>F.localeCompare(R));m.value=j,f.value=!0,k.value=!1},w=t.computed(()=>!f.value||!u.value||!m.value.includes(u.value)?null:r[u.value]),M=t.ref(u.value),C=t.computed(()=>!!u.value&&!h.value),S=t.computed(()=>{if(!f.value)return[];const j=(p.value??"").trim().toLowerCase();return j?m.value.filter(F=>F.toLowerCase().includes(j)):m.value}),b=t.computed(()=>S.value.slice(0,g.value)),x=t.computed(()=>{const j=n.columns;return j<=2?"grid-cols-2":j===3?"grid-cols-3":j===4?"grid-cols-4":j===5?"grid-cols-5":j>=8?"grid-cols-8":"grid-cols-6"});t.computed(()=>n.clearable?"!pr-10":"!pr-3"),t.computed(()=>w.value&&!h.value?"!pl-12":"!pl-3");const I=async()=>{var j;await t.nextTick(),(j=s.value)==null||j.focus()},V=async j=>{if(n.disabled)return;const F=j!==!1;if(y.value){y.value=!1;return}h.value=!0,await L(),F&&(p.value="",M.value=""),g.value=n.pageSize,await I()},B=()=>{h.value=!1,p.value="",M.value=u.value,g.value=n.pageSize},A=async()=>{n.disabled||(h.value?B():await V())};let P=null;const D=async j=>{if(n.disabled)return;o("update:modelValue",null),h.value||await V(!1),P&&clearTimeout(P);const F=M.value;P=setTimeout(()=>{p.value=F},300)},U=j=>{n.disabled||(o("update:modelValue",j),B(),queueMicrotask(()=>{var F;return(F=s.value)==null?void 0:F.blur()}))},T=()=>{n.disabled||(o("update:modelValue",null),o("clear"),y.value=!0,B(),queueMicrotask(()=>{var j;return(j=s.value)==null?void 0:j.focus()}))},H=j=>{if(j.key==="Escape"){j.preventDefault(),B();return}if(j.key==="Enter"&&h.value){const F=S.value[0];F&&(j.preventDefault(),U(F))}},N=j=>{if(!h.value)return;const F=j.target;i.value&&!i.value.contains(F)&&B()},Q=j=>{const F=j.target;F.scrollTop+F.clientHeight>=F.scrollHeight-24&&g.value<S.value.length&&(g.value=Math.min(g.value+n.pageSize,S.value.length))};return t.onMounted(()=>{document.addEventListener("mousedown",N),queueMicrotask(()=>{var j;s.value=((j=i.value)==null?void 0:j.querySelector("input"))??null}),u.value&&L()}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",N),P&&clearTimeout(P)}),t.watch(u,j=>{h.value||(M.value=j)}),t.watch(()=>p.value,()=>{g.value=n.pageSize}),(j,F)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"rootEl",ref:i,class:"!w-full !block !box-border"},[n.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:d.value,class:"!text-sm !font-medium !mb-1 !block"},[t.createTextVNode(t.toDisplayString(n.label)+" ",1),n.required?(t.openBlock(),t.createElementBlock("span",hG,"*")):t.createCommentVNode("",!0)],8,dG)):t.createCommentVNode("",!0),t.createElementVNode("div",uG,[w.value&&!h.value?(t.openBlock(),t.createElementBlock("div",pG,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(w.value),{size:18}))])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("input",{id:d.value,"onUpdate:modelValue":F[0]||(F[0]=R=>M.value=R),readonly:C.value,disabled:n.disabled,placeholder:n.placeholder,class:t.normalizeClass(["w-full h-10 m-0 py-0 rounded-lg border bg-white dark:bg-neutral-900 text-foreground dark:text-gray-300 border-gray-300 dark:border-gray-700 pr-10 outline-none box-border truncate",[w.value&&!h.value?"pl-10":"pl-4",C.value?"cursor-pointer select-none":""]]),onClick:V,onFocus:V,onInput:D,onKeydown:H},null,42,yG),[[t.vModelText,M.value]]),t.createElementVNode("div",fG,[n.clearable&&u.value?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"flex items-center justify-center p-1 m-0 bg-transparent border-0 text-muted-foreground hover:text-foreground transition cursor-pointer outline-none",onMousedown:F[1]||(F[1]=t.withModifiers(()=>{},["prevent"])),onClick:T,title:"Clear"},[t.createVNode(t.unref(it),{class:"h-4 w-4"})],32)):(t.openBlock(),t.createElementBlock("button",{key:1,type:"button",class:"flex items-center justify-center p-1 m-0 bg-transparent border-0 text-muted-foreground hover:text-foreground transition-transform cursor-pointer outline-none",onMousedown:F[2]||(F[2]=t.withModifiers(()=>{},["prevent"])),onClick:A,title:"Open"},[t.createVNode(t.unref(St),{class:"h-4 w-4"})],32))]),h.value?(t.openBlock(),t.createElementBlock("div",kG,[t.createElementVNode("div",{class:"p-2 overflow-auto",style:t.normalizeStyle({maxHeight:n.maxHeight}),onScroll:Q},[k.value?(t.openBlock(),t.createElementBlock("div",mG,[t.createVNode(t.unref(kt),{class:"h-4 w-4 animate-spin"}),F[3]||(F[3]=t.createElementVNode("span",{class:"text-sm"},"Loading icons…",-1))])):f.value&&S.value.length===0?(t.openBlock(),t.createElementBlock("div",gG," Icon tidak ditemukan ")):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["grid gap-2",x.value])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,R=>(t.openBlock(),t.createElementBlock("button",{key:R,type:"button",class:t.normalizeClass(["group rounded-lg border p-2 hover:bg-muted/40 transition",u.value===R?"ring-1 ring-primary":""]),onClick:Z=>U(R),title:R},[t.createElementVNode("div",MG,[t.createElementVNode("div",xG,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(r)[R]),{size:n.iconSize,class:"shrink-0"},null,8,["size"]))]),t.createElementVNode("span",wG,t.toDisplayString(R),1)])],10,bG))),128))],2)),f.value&&S.value.length>0?(t.openBlock(),t.createElementBlock("div",vG," Showing "+t.toDisplayString(b.value.length)+" / "+t.toDisplayString(S.value.length),1)):t.createCommentVNode("",!0)],36)])):t.createCommentVNode("",!0)])],512))}}),CG={key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6"},LG={class:"flex items-center justify-between border-b dark:border-neutral-800 px-6 py-4"},SG={class:"relative overflow-auto p-0"},e_=t.defineComponent({__name:"DCodeImageCropperDialog",props:{modelValue:{type:Boolean},file:{},title:{default:"Resize & Crop Gambar"},description:{default:""},aspectRatio:{default:null},outputWidth:{default:null},outputHeight:{default:null},quality:{default:.92},autoOpenEditor:{type:Boolean,default:!1}},emits:["update:modelValue","done","cancel"],setup(a,{emit:e}){const n=a,o=e,r=t.computed({get:()=>n.modelValue,set:w=>o("update:modelValue",w)}),i=t.ref(null),s=t.ref(null);let c=null,d=!1,h=0,u=null;function p(){if(c){try{c.close()}catch{}c=null,u&&(u.disconnect(),u=null),i.value&&(i.value.innerHTML=""),s.value=null}}async function y(w,M,C,S,b){const x=await new Promise((B,A)=>{const P=URL.createObjectURL(w),D=new Image;D.onload=()=>{URL.revokeObjectURL(P),B(D)},D.onerror=U=>{URL.revokeObjectURL(P),A(U)},D.src=P}),I=document.createElement("canvas");I.width=M,I.height=C;const V=I.getContext("2d");return V?(V.drawImage(x,0,0,M,C),await new Promise(B=>{I.toBlob(A=>B(A||w),S,b)})):w}function f(){if(!c||!s.value)return;const w=c.getPlugin("Dashboard"),M=c.getFile(s.value);!w||!M||requestAnimationFrame(()=>{try{w.openFileEditor(M)}catch{try{w.openFileEditor(s.value)}catch{}}})}async function k(w){if(c){c.cancelAll(),s.value=null;try{const M=c.addFile({name:w.name,type:w.type,data:w,source:"Local",isRemote:!1});s.value=String(M)}catch{}}}function m(){if(!i.value)return;c&&p(),c=new fq({autoProceed:!1,restrictions:{maxNumberOfFiles:1,allowedFileTypes:["image/*"]}});const w=document.documentElement.classList.contains("dark");c.use(y_,{target:i.value,inline:!0,height:480,theme:w?"dark":"light",proudlyDisplayPoweredByUppy:!1,hideUploadButton:!0,hideRetryButton:!0,hidePauseResumeButton:!0,hideCancelButton:!0,showProgressDetails:!1}),u=new MutationObserver(()=>{if(!c)return;const M=document.documentElement.classList.contains("dark"),C=c.getPlugin("Dashboard");C&&C.setOptions({theme:M?"dark":"light"})}),u.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),c.use(kq,{target:y_,quality:n.quality,cropperOptions:{viewMode:1,dragMode:"move",autoCropArea:1,aspectRatio:n.aspectRatio==null?Number.NaN:n.aspectRatio}}),c.on("file-editor:cancel",()=>{r.value=!1}),c.on("file-added",M=>{s.value=(M==null?void 0:M.id)??null,n.autoOpenEditor&&setTimeout(()=>f(),80)}),c.on("file-editor:complete",async M=>{const C=++h;try{const S=M.data,b=S.type||M.type||"image/jpeg";let x=S;if(n.outputWidth&&n.outputHeight&&(x=await y(S,n.outputWidth,n.outputHeight,b,n.quality)),d||C!==h)return;const I=M.name||"edited-image.jpg",V=new File([x],I,{type:b});await g(V,"UPPY_EDITOR_COMPLETE"),o("done",V),r.value=!1}catch{}})}async function g(w,M="CROP_RESULT"){const C=URL.createObjectURL(w);try{const S=await new Promise((b,x)=>{const I=new Image;I.onload=()=>b(I),I.onerror=x,I.src=C});console.group(M),console.log("file:",w),console.table({name:w.name,type:w.type,sizeBytes:w.size,sizeMB:+(w.size/1024/1024).toFixed(3),width:S.naturalWidth,height:S.naturalHeight,ratio:+(S.naturalWidth/S.naturalHeight).toFixed(4)}),console.log("previewUrl:",C),console.groupEnd()}finally{URL.revokeObjectURL(C)}}t.watch(r,async w=>{d=!w,h++,w?(await t.nextTick(),m(),n.file&&await k(n.file)):p()},{flush:"post"}),t.watch(()=>n.file,async w=>{r.value&&w&&(await t.nextTick(),await k(w))}),t.onBeforeUnmount(()=>{d=!0,h++,p()});const v=w=>{w.key==="Escape"&&r.value&&(r.value=!1)};t.watch(r,w=>{w?globalThis.addEventListener("keydown",v):globalThis.removeEventListener("keydown",v)},{immediate:!0});const L=t.ref(!1);return(w,M)=>r.value?(t.openBlock(),t.createElementBlock("div",CG,[t.createVNode(t.Transition,{appear:"","enter-active-class":"duration-300 ease-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fixed inset-0 bg-black/60 backdrop-blur-sm transition-opacity",onClick:M[0]||(M[0]=C=>r.value=!1)})):t.createCommentVNode("",!0)]),_:1}),t.createVNode(t.Transition,{appear:"","enter-active-class":"duration-300 ease-out","enter-from-class":"opacity-0 scale-95 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to-class":"opacity-100 scale-100 translate-y-0 sm:scale-100","leave-active-class":"duration-200 ease-in","leave-from-class":"opacity-100 scale-100 translate-y-0 sm:scale-100","leave-to-class":"opacity-0 scale-95 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:t.withCtx(()=>[r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"relative flex w-fit max-w-4xl flex-col overflow-hidden rounded-xl border border-border dark:border-neutral-800 bg-background dark:bg-neutral-900 shadow-2xl transition-all",onClick:M[4]||(M[4]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",LG,[M[6]||(M[6]=t.createElementVNode("h3",{class:"text-lg font-semibold leading-none tracking-tight dark:text-neutral-100"}," Crop & Resize ",-1)),t.createElementVNode("button",{class:"d-close-btn rounded-sm dark:text-neutral-400 ring-offset-background transition-opacity focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",style:t.normalizeStyle({opacity:L.value?1:.7}),onClick:M[1]||(M[1]=C=>r.value=!1),onMouseenter:M[2]||(M[2]=C=>L.value=!0),onMouseleave:M[3]||(M[3]=C=>L.value=!1)},[t.createVNode(t.unref(it),{class:"h-4 w-4"}),M[5]||(M[5]=t.createElementVNode("span",{class:"sr-only"},"Close",-1))],36)]),t.createElementVNode("div",SG,[t.createElementVNode("div",{ref_key:"dashboardEl",ref:i,class:"uppy-wrap"},null,512)])])):t.createCommentVNode("",!0)]),_:1})])):t.createCommentVNode("",!0)}}),IG={key:0,class:"text-xs text-muted-foreground dark:text-neutral-400"},_G=["src"],AG=["disabled"],BG=["disabled"],VG={class:"text-[11px] text-foreground/90 dark:text-neutral-200 space-y-1 whitespace-nowrap"},zG={class:"flex gap-2"},qG={class:"font-medium truncate"},PG={class:"flex gap-2"},DG={class:"font-medium"},EG={class:"flex gap-2"},TG={class:"font-medium truncate"},t_=Xt(t.defineComponent({__name:"DCodeImageResult",props:{file:{},title:{default:"Hasil Gambar"},description:{default:""},disabled:{type:Boolean,default:!1},previewHeight:{default:190},previewWidth:{default:220},showEdit:{type:Boolean,default:!0},showReplace:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!0}},emits:["edit","replace","remove"],setup(a,{emit:e}){const n=a,o=e,r=t.ref(null);t.watch(()=>n.file,y=>{r.value&&URL.revokeObjectURL(r.value),r.value=y?URL.createObjectURL(y):null},{immediate:!0}),t.onBeforeUnmount(()=>{r.value&&URL.revokeObjectURL(r.value),h&&h.disconnect()});function i(y){const f=y/1024,k=f/1024;return k>=1?`${k.toFixed(2)} MB`:f>=1?`${f.toFixed(1)} KB`:`${y} B`}const s=t.computed(()=>n.file?{name:n.file.name,size:i(n.file.size),type:n.file.type||"unknown"}:null),c=t.ref(!1),d=t.ref(!1);let h=null;const u=()=>{typeof document<"u"&&(d.value=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark"))};t.onMounted(()=>{u(),typeof document<"u"&&(h=new MutationObserver(u),h.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),h.observe(document.body,{attributes:!0,attributeFilter:["class"]}))});const p=t.computed(()=>n.disabled||!c.value?{}:{borderColor:d.value?"hsl(var(--primary) / 0.4)":"hsl(var(--primary) / 0.5)",backgroundColor:d.value?"hsl(var(--primary) / 0.1)":"hsl(var(--primary) / 0.05)"});return(y,f)=>a.file?(t.openBlock(),t.createBlock(KI,{key:0,class:t.normalizeClass([a.disabled?"opacity-60 pointer-events-none":"","dark:bg-neutral-900 dark:border-neutral-800"])},{default:t.withCtx(()=>[t.createVNode(ZI,{class:"pb-2"},{default:t.withCtx(()=>[t.createVNode(YI,{class:"text-sm font-semibold dark:text-neutral-100"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),a.description?(t.openBlock(),t.createElementBlock("div",IG,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)]),_:1}),t.createVNode(XI,{class:"pt-2"},{default:t.withCtx(()=>{var k,m,g;return[t.createElementVNode("div",{class:"d-result-preview-wrap relative rounded-xl overflow-hidden border-2 border-dashed transition-colors duration-200 bg-muted dark:bg-neutral-800/50 border-border dark:border-neutral-700 w-full",style:t.normalizeStyle([{height:`${a.previewHeight}px`},p.value]),onMouseenter:f[2]||(f[2]=v=>c.value=!0),onMouseleave:f[3]||(f[3]=v=>c.value=!1)},[r.value?(t.openBlock(),t.createElementBlock("img",{key:0,src:r.value,alt:"Preview",class:"h-full w-full object-contain"},null,8,_G)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"d-action-buttons",style:t.normalizeStyle({position:"absolute",top:"8px",left:"8px",right:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",zIndex:50,opacity:c.value?1:0,transition:"opacity 0.2s ease-in-out",pointerEvents:c.value?"auto":"none"})},[a.showEdit?(t.openBlock(),t.createElementBlock("button",{key:0,disabled:a.disabled,class:"d-action-btn shadow-md",style:t.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#eab308",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:a.disabled?"not-allowed":"pointer",transition:"all 0.2s",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"}),onClick:f[0]||(f[0]=v=>o("edit"))},[t.createVNode(t.unref(sr),{style:{width:"16px",height:"16px"}})],12,AG)):t.createCommentVNode("",!0),a.showRemove?(t.openBlock(),t.createElementBlock("button",{key:1,disabled:a.disabled,class:"d-action-btn shadow-md",style:t.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ef4444",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:a.disabled?"not-allowed":"pointer",transition:"all 0.2s",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"}),onClick:f[1]||(f[1]=v=>o("remove"))},[t.createVNode(t.unref(_i),{style:{width:"16px",height:"16px"}})],12,BG)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:"d-metadata-overlay",style:t.normalizeStyle({position:"absolute",left:"8px",bottom:"8px",zIndex:10,display:"inline-block",maxWidth:"calc(100% - 16px)",borderRadius:"12px",border:"1px solid rgba(0,0,0,0.1)",padding:"8px 12px",boxShadow:"0 10px 15px -3px rgba(0,0,0,0.1)",backdropFilter:"blur(8px)",transition:"all 0.2s ease-in-out",opacity:c.value?1:0,transform:c.value?"translateY(0) scale(1)":"translateY(4px) scale(0.99)",backgroundColor:d.value?"rgba(38, 38, 38, 0.8)":"rgba(255, 255, 255, 0.8)",color:d.value?"#e5e5e5":"#171717"})},[t.createElementVNode("div",VG,[t.createElementVNode("div",zG,[f[4]||(f[4]=t.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Nama",-1)),t.createElementVNode("span",qG,t.toDisplayString((k=s.value)==null?void 0:k.name),1)]),t.createElementVNode("div",PG,[f[5]||(f[5]=t.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Ukuran",-1)),t.createElementVNode("span",DG,t.toDisplayString((m=s.value)==null?void 0:m.size),1)]),t.createElementVNode("div",EG,[f[6]||(f[6]=t.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Tipe",-1)),t.createElementVNode("span",TG,t.toDisplayString((g=s.value)==null?void 0:g.type),1)])])],4)],36)]}),_:1})]),_:1},8,["class"])):t.createCommentVNode("",!0)}}),[["__scopeId","data-v-349b562d"]]),HG={class:"space-y-3"},a_=t.defineComponent({__name:"DCodeImageField",props:{modelValue:{default:null},label:{default:"Upload Gambar"},hint:{default:"Drag & drop atau klik area ini"},disabled:{type:Boolean,default:!1},allowedTypes:{default:null},accept:{default:"image/*"},minSizeMb:{default:null},maxSizeMb:{default:1},title:{default:"Hasil Gambar"},description:{default:""},previewWidth:{default:360},previewHeight:{default:220},aspectRatio:{default:null},outputWidth:{default:null},outputHeight:{default:null},quality:{default:.92},autoOpenEditor:{type:Boolean,default:!0},minWidth:{default:null},minHeight:{default:null},maxWidth:{default:null},maxHeight:{default:null},endpoint:{},uploadFn:{},editUseOriginal:{type:Boolean,default:!1}},emits:["update:modelValue","error","uploaded"],setup(a,{emit:e}){const n=a,o=e,r=t.computed({get:()=>n.modelValue,set:T=>o("update:modelValue",T)}),i=t.ref(!1),s=t.ref(null),c=t.ref(null),d=t.ref(null);function h(T){d.value=T,o("error",T)}function u(){d.value=null}const p=t.computed(()=>{const T=(n.allowedTypes??"").trim();return T?T.split(/[,\s;]+/g).map(N=>N.trim().toLowerCase()).filter(Boolean).map(N=>N.includes("/")||N.startsWith(".")?N:`.${N}`):[]});function y(T){const H=T.lastIndexOf(".");return H>=0?T.slice(H).toLowerCase():""}const f=t.computed(()=>{if(p.value.length){const T=p.value.filter(N=>N.startsWith("."));return[...p.value.filter(N=>N.includes("/")),...T].join(",")}return n.accept||"image/*"}),k=t.computed(()=>p.value.length?p.value.join(", "):n.accept||"image/*");function m(T){if(p.value.length){const N=(T.type||"").toLowerCase(),Q=y(T.name);return p.value.some(j=>j.includes("/")?N===j:j.startsWith(".")?Q===j:Q===`.${j}`)}return(n.accept||"image/*").toLowerCase().includes("image/")?(T.type||"").toLowerCase().startsWith("image/"):!0}function g(T){return T*1024*1024}async function v(T){var H;return(H=T.type)!=null&&H.startsWith("image/")?await new Promise(N=>{const Q=URL.createObjectURL(T),j=new Image;j.onload=()=>{URL.revokeObjectURL(Q),N({w:j.naturalWidth,h:j.naturalHeight})},j.onerror=()=>{URL.revokeObjectURL(Q),N(null)},j.src=Q}):null}async function L(T){if(!(n.minWidth!=null||n.minHeight!=null||n.maxWidth!=null||n.maxHeight!=null))return null;const N=await v(T);return N?n.minWidth!=null&&N.w<n.minWidth?`Lebar gambar minimal ${n.minWidth}px`:n.minHeight!=null&&N.h<n.minHeight?`Tinggi gambar minimal ${n.minHeight}px`:n.maxWidth!=null&&N.w>n.maxWidth?`Lebar gambar maksimal ${n.maxWidth}px`:n.maxHeight!=null&&N.h>n.maxHeight?`Tinggi gambar maksimal ${n.maxHeight}px`:null:"Gagal membaca dimensi gambar"}async function w(T){return T?m(T)?n.minSizeMb!=null&&T.size<g(n.minSizeMb)?`Ukuran file terlalu kecil. Minimal ${n.minSizeMb}MB`:n.maxSizeMb!=null&&T.size>g(n.maxSizeMb)?`Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB`:await L(T):`only Allowed: ${k.value}`:"File tidak valid"}function M(T){n.disabled||(s.value=T,i.value=!0)}async function C(T){if(n.disabled)return;u();const H=await w(T);if(H){h(H);return}c.value=T,M(T)}const{DCodeApi:S}=Ke(),b=JI(),x=t.ref(!1);t.ref(null);function I(T,H){return!T||!H?null:T.replace(/\/+$/,"")+"/"+H.replace(/^\/+/,"")}function V(T){var j;const H=(T==null?void 0:T.data)??T,N=(j=H==null?void 0:H.data)==null?void 0:j[0];if(!N)return null;const Q=I(N.server,N.url);return{...N,fullUrl:Q?encodeURI(Q):null}}async function B(T){var H;if(n.uploadFn){try{x.value=!0;const N=await n.uploadFn(T);r.value=T,o("uploaded",N)}catch(N){console.error("Upload Error",N),b.error("Upload Failed",(N==null?void 0:N.message)||"Unknown error"),h((N==null?void 0:N.message)||"Upload Failed")}finally{x.value=!1}return}if(!((H=n.endpoint)!=null&&H.apiUrl)){r.value=T;return}if(typeof S!="function"){h("useApi() must expose DCodeApi()");return}try{x.value=!0;const N=new FormData;N.append("doc",T);const Q=(n.endpoint.apiMethod||"POST").toUpperCase(),j=n.endpoint.apiUrl,F=await S("","",N,{_url:j,_method:Q,withCredentials:!0,transformRequest:[(Z,J)=>(J&&(delete J["Content-Type"],delete J["content-type"]),Z)]}),R=(F==null?void 0:F.data)??F;V(R),r.value=T,o("uploaded",R)}catch(N){console.error("Upload Error",N),b.error("Upload Failed",(N==null?void 0:N.message)||"Unknown error"),h((N==null?void 0:N.message)||"Upload Failed")}finally{x.value=!1}}async function A(T){var H;u(),n.uploadFn||(H=n.endpoint)!=null&&H.apiUrl?await B(T):r.value=T,i.value=!1,s.value=null}function P(){i.value=!1,s.value=null}async function D(){if(!r.value)return;u();const T=n.editUseOriginal?c.value??r.value:r.value,H=await w(T);if(H){h(H);return}M(T)}function U(){u(),r.value=null,s.value=null,i.value=!1,c.value=null}return t.watch(()=>n.modelValue,T=>{T&&!c.value&&(c.value=T),T||(c.value=null)},{immediate:!0}),(T,H)=>(t.openBlock(),t.createElementBlock("div",HG,[r.value?(t.openBlock(),t.createBlock(t_,{key:1,file:r.value,title:a.label,description:a.description,"preview-width":a.previewWidth,disabled:a.disabled,"show-edit":!0,"show-remove":!0,"show-replace":!1,onEdit:D,onRemove:U,"aspect-ratio":16/9},null,8,["file","title","description","preview-width","disabled"])):(t.openBlock(),t.createBlock(cS,{key:0,label:a.label,hint:a.hint,accept:f.value,maxSizeMb:a.maxSizeMb,disabled:a.disabled,onPicked:C,error:d.value,onError:H[0]||(H[0]=N=>h(N))},null,8,["label","hint","accept","maxSizeMb","disabled","error"])),t.createVNode(e_,{modelValue:i.value,"onUpdate:modelValue":H[1]||(H[1]=N=>i.value=N),file:s.value,title:a.title,description:a.description,"auto-open-editor":a.autoOpenEditor,"aspect-ratio":a.aspectRatio,"output-width":a.outputWidth,"output-height":a.outputHeight,quality:a.quality,onDone:A,onCancel:P},null,8,["modelValue","file","title","description","auto-open-editor","aspect-ratio","output-width","output-height","quality"])]))}}),n_=t.defineComponent({name:"DCodeLabel",inheritAttrs:!1,__name:"DCodeLabel",props:{label:{},text:{},textSize:{},textType:{},icon:{},iconClass:{}},setup(a){const e=t.useAttrs(),n=a,o=t.computed(()=>n.icon&&Gt[n.icon]||null),r=t.computed(()=>n.textSize?`text-${n.textSize}`:"text-xs"),i={xs:"w-3 h-3",sm:"w-3.5 h-3.5",base:"w-4 h-4",lg:"w-5 h-5",xl:"w-5 h-5","2xl":"w-6 h-6","3xl":"w-7 h-7","4xl":"w-8 h-8","5xl":"w-10 h-10","6xl":"w-12 h-12"},s=t.computed(()=>i[n.textSize??"xs"]??"w-3 h-3"),c=t.computed(()=>n.textType==="BOLD"?"font-bold":n.textType==="ITALIC"?"italic font-normal":"font-normal"),d=t.computed(()=>{const u=`${r.value} ${c.value} text-slate-600 ml-1 inline-flex items-center gap-1`,p=e.class??"";return[u,p].filter(Boolean).join(" ")}),h=t.computed(()=>{const{class:u,...p}=e;return p});return(u,p)=>(t.openBlock(),t.createElementBlock("span",t.mergeProps({class:d.value},h.value),[o.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{key:0,class:t.normalizeClass(["shrink-0",s.value,a.iconClass])},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(a.label||a.text),1)],16))}}),o_=t.defineComponent({__name:"Input",props:{defaultValue:{},modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(a,{emit:e}){const n=a,r=ks(n,"modelValue",e,{passive:!0,defaultValue:n.defaultValue});return(i,s)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{"onUpdate:modelValue":s[0]||(s[0]=c=>t.isRef(r)?r.value=c:null),class:t.normalizeClass(t.unref(be)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[t.vModelText,t.unref(r)]])}}),jG=["aria-busy"],OG={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},FG={key:0,class:"ml-1 text-destructive"},RG={class:"min-w-0 flex-1 text-left"},NG={key:0,class:"flex flex-wrap gap-1.5"},$G={class:"max-w-[220px] truncate"},UG=["onClick"],WG={key:1,class:"text-muted-foreground truncate"},GG={class:"flex items-center gap-2 shrink-0"},KG={key:0,class:"p-2 border-b border-gray-200 dark:border-gray-800"},XG={key:0,class:"h-full flex items-center justify-center px-3 text-sm text-muted-foreground"},ZG=["disabled","onClick"],YG={class:"truncate"},QG={key:0,class:"text-primary-600 dark:text-primary-400"},JG={key:1,class:"h-full flex items-center justify-center text-sm text-muted-foreground"},eK={key:0},tK={key:1},aK={key:1,class:"text-xs text-destructive"},nK={name:"DCodeMultiSelect"},jz=t.defineComponent({...nK,name:"DCodeMultiSelect",inheritAttrs:!1,props:{modelValue:{},items:{default:()=>[]},endpoint:{default:void 0},fetchItems:{},autoFetchOnOpen:{type:Boolean,default:!0},autoFetchOnMount:{type:Boolean,default:!1},refreshOnOpen:{type:Boolean,default:!1},label:{default:""},placeholder:{default:"Pilih data…"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Cari…"},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},maxChips:{default:2},maxSelected:{default:3},itemTitle:{type:[String,Function],default:"name"},itemValue:{type:[String,Function],default:"id"},returnObject:{type:Boolean,default:!1},virtual:{type:Boolean,default:!0},itemHeight:{default:40},maxRows:{default:5},overscan:{default:6},error:{default:null},required:{type:Boolean,default:!1}},emits:["update:modelValue","clear","max"],setup(a,{emit:e}){const n=t.useAttrs(),o=e,r=a,i=t.computed(()=>(r.label||n.label)??void 0),s=t.computed(()=>r.visible??!0),c=Math.random().toString(36).slice(2,7),d=t.computed(()=>`app-multiselect-${n.id||i.value||"field"}-${c}`),h=t.computed(()=>{if(r.required)return!0;const K=n.required,te=n["aria-required"];return K===""||K===!0||K==="true"||(te==="true"||te===!0)}),u=t.computed(()=>!!r.error);function p(K){return K?typeof r.itemTitle=="function"?r.itemTitle(K)??"":String((K==null?void 0:K[r.itemTitle])??""):""}function y(K){return K?typeof r.itemValue=="function"?r.itemValue(K):K==null?void 0:K[r.itemValue]:null}function f(K,te){return y(K)??te}const k=t.computed(()=>Array.isArray(r.modelValue)?r.modelValue:[]),m=t.computed(()=>{var K;return!!((K=r.endpoint)!=null&&K.apiUrl)||!!r.fetchItems}),g=t.ref([]),v=t.ref(!1),L=t.ref(!1),w=t.computed(()=>{var te;const K=(te=r.endpoint)==null?void 0:te.apiOptions;if(K)return typeof K=="function"?K():K}),M=t.computed(()=>{var ye,Ve;const K=((ye=r.endpoint)==null?void 0:ye.apiUrl)??"",te=(((Ve=r.endpoint)==null?void 0:Ve.apiMethod)??"GET").toUpperCase(),ne=JSON.stringify(w.value??null);return`${te} ${K} :: ${ne}`}),C=t.computed(()=>m.value?g.value:r.items||[]);async function S(){var K;if(m.value&&!(!((K=r.endpoint)!=null&&K.apiUrl)&&!r.fetchItems)&&!v.value){v.value=!0;try{let te;if(r.fetchItems){const ne=await r.fetchItems(),ye=(ne==null?void 0:ne.data)??ne;te=(ye==null?void 0:ye.data)??ye}else{const{DCodeApi:ne}=Ke();if(typeof ne!="function"){console.error("[DCodeMultiSelectChips] useApi() must expose DCodeApi()");return}const ye={page:1,perPage:100,...w.value||{}},Ve=await ne("","",ye,{_url:r.endpoint.apiUrl,_method:(r.endpoint.apiMethod||"GET").toUpperCase()}),ra=(Ve==null?void 0:Ve.data)??Ve;te=(ra==null?void 0:ra.data)??ra}g.value=Array.isArray(te)?te:[],L.value=!0}catch(te){console.error("[DCodeMultiSelectChips][fetchOptions] ERROR:",te),g.value=[]}finally{v.value=!1}}}t.watch(()=>M.value,()=>{g.value=[],L.value=!1}),t.onMounted(()=>{r.autoFetchOnMount&&m.value&&S()});const b=t.computed(()=>{const K=k.value;if(r.returnObject)return K;const te=new Map;for(const ne of C.value)te.set(y(ne),ne);return K.map(ne=>te.get(ne)??{[r.itemValue]:ne,[r.itemTitle]:String(ne)})}),x=t.computed(()=>r.maxChips===null?b.value:b.value.slice(0,r.maxChips));function I(K){const te=k.value;if(r.returnObject){const ne=y(K);return te.some(ye=>y(ye)===ne)}return te.includes(y(K))}const V=t.computed(()=>{if(r.maxSelected===null||r.maxSelected===void 0)return null;const K=Number(r.maxSelected);return Number.isFinite(K)&&K>0?K:null}),B=t.computed(()=>{const K=V.value;return K===null?!1:k.value.length>=K});function A(K){return!I(K)&&B.value}const P=t.computed(()=>{const K=k.value,te=new Set;if(r.returnObject)for(const ne of K)te.add(y(ne));else for(const ne of K)te.add(ne);return te}),D=t.computed(()=>{const K=P.value;return(C.value||[]).filter(te=>!K.has(y(te)))}),U=t.computed(()=>C.value.length===0?!1:D.value.length===0),T=t.ref(null),H=t.ref(null),N=t.ref(null),Q=t.ref(!1),j=t.ref(""),F=t.ref(0),R=t.ref(0),{floatingStyles:Z}=Q1(T,H,{whileElementsMounted:K1,placement:"bottom-start",middleware:[X1(8),Ds(),Z1({padding:8}),Y1({apply({rects:K,elements:te}){Object.assign(te.floating.style,{width:`${K.reference.width}px`,"--floating-width":`${K.reference.width}px`})}})]}),J=t.computed(()=>Z.value),re=t.computed(()=>{const K=Number(r.maxRows);return Number.isFinite(K)&&K>0?K:5});async function de(){r.disabled||(Q.value=!0,R.value=0,requestAnimationFrame(()=>{N.value&&(N.value.scrollTop=0),F.value=0}),m.value&&r.autoFetchOnOpen&&(r.refreshOnOpen||!L.value)&&!v.value&&await S())}function ue(){Q.value=!1}function ve(){Q.value?ue():de()}function le(K){var ne,ye;if(!Q.value)return;const te=K.target;(ne=T.value)!=null&&ne.contains(te)||(ye=H.value)!=null&&ye.contains(te)||ue()}t.onMounted(()=>document.addEventListener("mousedown",le)),t.onBeforeUnmount(()=>document.removeEventListener("mousedown",le));function G(K){if(r.disabled)return;if(A(K)){o("max");return}const te=[...k.value];if(r.returnObject){const ne=y(K);if(te.some(Ve=>y(Ve)===ne))return;o("update:modelValue",[...te,K])}else{const ne=y(K);if(te.includes(ne))return;o("update:modelValue",[...te,ne])}j.value="",R.value=0,requestAnimationFrame(()=>{N.value&&(N.value.scrollTop=0),F.value=0})}function z(K){if(r.disabled)return;const te=[...k.value];if(r.returnObject){const ne=y(K);o("update:modelValue",te.filter(ye=>y(ye)!==ne))}else{const ne=y(K);o("update:modelValue",te.filter(ye=>ye!==ne))}}function W(){r.disabled||(o("update:modelValue",[]),o("clear"),ue())}const ee=t.computed(()=>{const K=j.value.trim().toLowerCase(),te=D.value;return K?te.filter(ne=>p(ne).toLowerCase().includes(K)):te}),pe=t.computed(()=>ee.value.length);t.watch(Q,K=>{K||(j.value="")});const qe=t.computed(()=>{if(U.value)return r.itemHeight;const K=pe.value;return(K<=0?1:Math.min(K,re.value))*r.itemHeight}),ot=t.computed(()=>r.virtual?pe.value*r.itemHeight:0),Mt=t.computed(()=>r.virtual?Math.ceil(qe.value/r.itemHeight)+r.overscan:pe.value),oa=t.computed(()=>{if(!r.virtual)return 0;const K=Math.floor(F.value/r.itemHeight)-Math.floor(r.overscan/2);return Math.max(0,K)}),Aa=t.computed(()=>r.virtual?Math.min(pe.value,oa.value+Mt.value):pe.value),xt=t.computed(()=>r.virtual?oa.value*r.itemHeight:0),$t=t.computed(()=>{const K=ee.value;return r.virtual?K.slice(oa.value,Aa.value):K});function D1(K){const te=K.target;F.value=te.scrollTop}function E1(K){return K===R.value}function O(K){const te=N.value;if(!te||!r.virtual)return;const ne=K*r.itemHeight,ye=ne+r.itemHeight,Ve=te.scrollTop,ra=te.scrollTop+te.clientHeight;ne<Ve?te.scrollTop=ne:ye>ra&&(te.scrollTop=ye-te.clientHeight)}function ae(K){const te=Math.max(0,pe.value-1);R.value=Math.min(te,Math.max(0,R.value+K)),O(R.value)}function he(){const K=ee.value[R.value];K&&G(K)}const _e=t.computed(()=>r.clearable&&!r.disabled&&b.value.length>0),Pe=t.computed(()=>u.value?"border-red-500 ring-[0.5px] ring-red-500":Q.value?"border-gray-700 ring-[0.5px] ring-gray-700 dark:border-gray-300 dark:ring-gray-300":"");return(K,te)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["flex flex-col gap-1 w-full",t.unref(n).class]),"aria-busy":r.skeleton},[r.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.value?(t.openBlock(),t.createElementBlock("div",OG)):t.createCommentVNode("",!0),te[3]||(te[3]=t.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.value?(t.openBlock(),t.createBlock(t.unref(La),{key:0,for:d.value,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value)+" ",1),h.value?(t.openBlock(),t.createElementBlock("span",FG,"*")):t.createCommentVNode("",!0)]),_:1},8,["for"])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"referenceEl",ref:T,class:"relative"},[t.createVNode(t.unref(Ee),{id:d.value,type:"button",variant:"outline",class:t.normalizeClass(["w-full justify-between h-auto min-h-10 px-3 py-2 transition border",["bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 text-foreground dark:text-gray-300",Pe.value]]),disabled:r.disabled,onClick:ve},{default:t.withCtx(()=>[t.createElementVNode("div",RG,[b.value.length?(t.openBlock(),t.createElementBlock("div",NG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(x.value,(ne,ye)=>(t.openBlock(),t.createBlock(t.unref(_a),{key:`chip-${f(ne,ye)}`,variant:"secondary",class:"gap-1"},{default:t.withCtx(()=>[t.createElementVNode("span",$G,t.toDisplayString(p(ne)),1),r.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("button",{key:0,class:"ml-1 opacity-70 hover:opacity-100",onClick:t.withModifiers(Ve=>z(ne),["stop"]),"aria-label":"Remove"}," ✕ ",8,UG))]),_:2},1024))),128)),r.maxChips!==null&&b.value.length>r.maxChips?(t.openBlock(),t.createBlock(t.unref(_a),{key:0,variant:"secondary"},{default:t.withCtx(()=>[t.createTextVNode(" +"+t.toDisplayString(b.value.length-(r.maxChips??0)),1)]),_:1})):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",WG,t.toDisplayString(r.placeholder),1))]),t.createElementVNode("div",GG,[_e.value?(t.openBlock(),t.createElementBlock("button",{key:0,class:"text-muted-foreground hover:text-foreground",onClick:t.withModifiers(W,["stop"]),"aria-label":"Clear"}," ✕ ")):t.createCommentVNode("",!0),t.createVNode(t.unref(St),{class:"h-4 w-4 text-muted-foreground"})])]),_:1},8,["id","disabled","class"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[Q.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"floatingEl",ref:H,class:"-mt-1 z-[9999] w-[var(--floating-width)] rounded-lg border shadow-lg overflow-hidden bg-white dark:bg-neutral-900 border-gray-200 dark:border-gray-800",style:t.normalizeStyle(J.value)},[r.searchable&&!U.value?(t.openBlock(),t.createElementBlock("div",KG,[t.createVNode(t.unref(o_),{modelValue:j.value,"onUpdate:modelValue":te[0]||(te[0]=ne=>j.value=ne),placeholder:r.searchPlaceholder,class:"h-10",onKeydown:[te[1]||(te[1]=t.withKeys(t.withModifiers(ne=>ae(1),["prevent"]),["down"])),te[2]||(te[2]=t.withKeys(t.withModifiers(ne=>ae(-1),["prevent"]),["up"])),t.withKeys(t.withModifiers(he,["prevent"]),["enter"]),t.withKeys(t.withModifiers(ue,["prevent"]),["esc"])]},null,8,["modelValue","placeholder","onKeydown"])])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"listEl",ref:N,class:"relative overflow-auto",style:t.normalizeStyle({height:qe.value+"px"}),onScroll:D1},[U.value?(t.openBlock(),t.createElementBlock("div",XG," All items have been selected ")):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.virtual?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({height:ot.value+"px"})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.virtual?"absolute left-0 top-0 w-full":""),style:t.normalizeStyle(r.virtual?{transform:`translateY(${xt.value}px)`}:void 0)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList($t.value,(ne,ye)=>(t.openBlock(),t.createElementBlock("button",{key:String(f(ne,oa.value+ye)),type:"button",class:t.normalizeClass(["w-full px-3 text-left text-sm flex items-center justify-between gap-3",[A(ne)?"cursor-not-allowed opacity-50":"hover:bg-neutral-50 dark:hover:bg-neutral-800/60",E1(oa.value+ye)?"bg-neutral-50 dark:bg-neutral-800/60":"",I(ne)?"font-semibold":"font-normal"]]),style:t.normalizeStyle({height:r.itemHeight+"px"}),disabled:r.disabled||A(ne),onClick:Ve=>G(ne)},[t.createElementVNode("span",YG,t.toDisplayString(p(ne)),1),I(ne)?(t.openBlock(),t.createElementBlock("span",QG,"✓")):t.createCommentVNode("",!0)],14,ZG))),128))],6),pe.value===0?(t.openBlock(),t.createElementBlock("div",JG,[v.value?(t.openBlock(),t.createElementBlock("span",eK,"Loading data…")):(t.openBlock(),t.createElementBlock("span",tK,"Tidak ada data"))])):t.createCommentVNode("",!0)],64))],36)],4)):t.createCommentVNode("",!0)]))],512),u.value?(t.openBlock(),t.createElementBlock("p",aK,t.toDisplayString(r.error),1)):t.createCommentVNode("",!0)],64))],10,jG)),[[t.vShow,s.value]])}}),oK={class:"space-y-4"},rK={key:0,class:"space-y-1"},iK={class:"text-base font-semibold text-gray-800"},sK={class:"text-sm text-gray-400"},lK={class:"flex items-center gap-2 flex-nowrap"},cK=["value","disabled","onKeydown","onInput","onPaste"],r_=t.defineComponent({name:"DCodeOtpInput",__name:"DCodeOtpInput",props:{modelValue:{default:""},totalInput:{default:6},default:{default:""},label:{default:""},endpoint:{},submitFn:{}},emits:["updateOtp","update:modelValue","complete","loading","success","error"],setup(a,{emit:e}){const n=a,o=e,r=t.ref([]),i=t.ref([]),s=t.ref(!1),{DCodeApi:c}=Ke(),d=JI(),h=t.computed(()=>{const w=Number(n.totalInput);return w&&w>0?w:6}),u=()=>{i.value=Array.from({length:h.value},(w,M)=>{var C;return((C=n.default)==null?void 0:C[M])??""}),o("updateOtp",i.value.join(""))};u(),t.watch(()=>[n.totalInput,n.default],()=>u());const p=w=>{w<0||w>=h.value||t.nextTick(()=>{var M;return(M=r.value[w])==null?void 0:M.focus()})},y=w=>w.match(/[a-zA-Z0-9]/)?w.match(/[a-zA-Z0-9]/)[0]:"";async function f(w){var M;if(o("complete",w),n.submitFn){try{s.value=!0,o("loading",!0);const C=await n.submitFn(w);o("success",C)}catch(C){console.error("OTP Submit Error",C),d.error("Submit Failed",(C==null?void 0:C.message)||"Unknown error"),o("error",(C==null?void 0:C.message)||"Submit Failed")}finally{s.value=!1,o("loading",!1)}return}if((M=n.endpoint)!=null&&M.apiUrl){if(typeof c!="function"){o("error","useApi() must expose DCodeApi()");return}try{s.value=!0,o("loading",!0);const C=(n.endpoint.apiMethod||"POST").toUpperCase(),S=n.endpoint.apiUrl,b=await c("","",{otp:w},{_url:S,_method:C,withCredentials:!0}),x=(b==null?void 0:b.data)??b;o("success",x)}catch(C){console.error("OTP Submit Error",C),d.error("Submit Failed",(C==null?void 0:C.message)||"Unknown error"),o("error",(C==null?void 0:C.message)||"Submit Failed")}finally{s.value=!1,o("loading",!1)}}}const k=(w,M)=>{i.value[w]=y(M);const C=i.value.join("");o("updateOtp",C),o("update:modelValue",C),C.length===h.value&&f(C)},m=(w,M)=>{const C=w.key,S=/^\d$/.test(C),b=/^[a-zA-Z]$/.test(C);if(C==="Backspace"){if(w.preventDefault(),i.value[M]){k(M,"");return}M>0&&(k(M-1,""),p(M-1));return}if(C==="ArrowLeft"){w.preventDefault(),p(M-1);return}if(C==="ArrowRight"){w.preventDefault(),p(M+1);return}if(S||b){w.preventDefault(),k(M,C),M<h.value-1&&p(M+1);return}C.length===1&&w.preventDefault()},g=(w,M)=>{const C=w.target,S=C.value??"",b=y(S);C.value=b,k(M,b),b&&M<h.value-1&&p(M+1)},v=(w,M)=>{var I;w.preventDefault();const S=(((I=w.clipboardData)==null?void 0:I.getData("text"))??"").replaceAll(/[^a-zA-Z0-9]/g,"");if(!S)return;let b=M;for(const V of S){if(b>=h.value)break;i.value[b]=V,b++}const x=i.value.join("");o("updateOtp",x),o("update:modelValue",x),x.length===h.value&&f(x),p(Math.min(b,h.value-1))},L=w=>M=>{r.value[w]=(M==null?void 0:M.$el)??M};return(w,M)=>(t.openBlock(),t.createElementBlock("div",oK,[n.label||h.value?(t.openBlock(),t.createElementBlock("div",rK,[t.createElementVNode("h6",iK,t.toDisplayString(n.label||"Masukkan kode keamanan"),1),t.createElementVNode("p",sK," Ketik "+t.toDisplayString(h.value)+" digit kode verifikasi Anda ",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",lK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,C=>(t.openBlock(),t.createElementBlock("input",{key:C,ref_for:!0,ref:L(C-1),value:i.value[C-1]||"",type:"text",inputmode:"text",maxlength:"1",autocomplete:"one-time-code","aria-label":"`OTP digit ${i}`",placeholder:"*",disabled:s.value,class:t.normalizeClass(["w-12 h-12 flex-none text-center text-xl font-bold rounded-xl border-2 transition-all duration-200 box-border p-0","focus:outline-none focus:scale-105 disabled:opacity-50 disabled:cursor-not-allowed",i.value[C-1]?"border-blue-500 bg-blue-50 text-blue-700 shadow-sm shadow-blue-100":"border-gray-200 bg-gray-50 text-gray-400 focus:border-blue-400 focus:bg-white focus:shadow-md focus:shadow-blue-50"]),onKeydown:S=>m(S,C-1),onInput:S=>g(S,C-1),onPaste:S=>v(S,C-1)},null,42,cK))),128))])]))}}),dK={class:"w-full"},hK={key:0,class:"flex items-center justify-between mb-2"},uK={key:0,class:"text-sm font-medium text-gray-700"},pK={key:1,class:"text-sm text-gray-600"},yK={name:"DCodeProgress"},Oz=t.defineComponent({...yK,name:"DCodeProgress",inheritAttrs:!1,props:{modelValue:{default:0},max:{default:100},label:{default:""},showValue:{type:Boolean,default:!1},color:{default:"blue"},size:{default:"md"},striped:{type:Boolean,default:!1},animated:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:e}){const n=a,o=t.computed(()=>Math.min(n.modelValue/n.max*100,100)),r=t.computed(()=>["w-full rounded-full overflow-hidden",{sm:"h-1",md:"h-2",lg:"h-3"}[n.size],"bg-gray-200"].join(" ")),i=t.computed(()=>{const c={blue:"bg-blue-500",green:"bg-green-500",red:"bg-red-500",yellow:"bg-yellow-500",purple:"bg-purple-500",gray:"bg-gray-500"},d=["h-full transition-all duration-300 ease-out",c[n.color]||c.blue];return n.striped&&d.push("bg-gradient-to-r from-transparent via-white/20 to-transparent"),n.animated&&d.push("animate-pulse"),d.join(" ")}),s=t.computed(()=>`${Math.round(o.value)}%`);return(c,d)=>(t.openBlock(),t.createElementBlock("div",dK,[a.label||a.showValue?(t.openBlock(),t.createElementBlock("div",hK,[a.label?(t.openBlock(),t.createElementBlock("span",uK,t.toDisplayString(a.label),1)):t.createCommentVNode("",!0),a.showValue?(t.openBlock(),t.createElementBlock("span",pK,t.toDisplayString(s.value),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.value)},[t.createElementVNode("div",{class:t.normalizeClass(i.value),style:t.normalizeStyle({width:`${o.value}%`})},null,6)],2)]))}}),fK={key:0,class:"fixed top-0 left-0 right-0 z-[10000] h-[3px]"},Fz=Xt(t.defineComponent({name:"DCodeProgressBar",__name:"DCodeProgressBar",props:{isApiLoading:{type:Boolean,default:!1},apiProgress:{default:0}},setup(a){return(e,n)=>(t.openBlock(),t.createBlock(t.Transition,{name:"fade"},{default:t.withCtx(()=>[a.isApiLoading?(t.openBlock(),t.createElementBlock("div",fK,[t.createElementVNode("div",{class:"h-full bg-primary-600 shadow-[0_0_15px_rgba(37,99,235,0.8)] transition-all duration-300 ease-out",style:t.normalizeStyle({width:`${a.apiProgress}%`})},null,4)])):t.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-85c68054"]]),kK={class:"grid gap-3"},mK={key:0,class:"ml-1 text-destructive"},gK={class:"flex flex-col"},bK={key:0,class:"flex items-center gap-2 text-sm text-gray-500 mb-2"},MK={class:"relative flex-shrink-0 mt-0.5"},xK=["id","name","value","checked","disabled","required","onChange"],wK=["onClick"],vK=["for"],CK={key:0,class:"ml-1 text-red-500"},LK={key:1,class:"flex items-center gap-1 text-sm text-red-500 mt-1"},Rz=t.defineComponent({name:"DCodeRadio",inheritAttrs:!1,__name:"DCodeRadio",props:{modelValue:{default:void 0},label:{default:""},itemTitle:{default:"name"},itemValue:{default:"id"},options:{default:()=>[]},apiUrl:{default:""},apiMethod:{default:"GET"},endpoint:{},dataPath:{default:""},layout:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{default:null},size:{default:"md"},color:{default:"blue"},model:{default:"id"},id:{default:""}},emits:["update:modelValue","change"],setup(a,{emit:e}){t.useAttrs();const{apiUrl:n}=Ke(),o=e,r=a,i=t.ref([]),s=t.ref(!1),c=t.ref(null),d=async()=>{var M,C;const w=((M=r.endpoint)==null?void 0:M.apiUrl)||r.apiUrl;if(w){s.value=!0,c.value=null;try{const S={page:1,perPage:100},b=((C=r.endpoint)==null?void 0:C.apiMethod)||r.apiMethod,x=await n(w,b,S);let I=x;r.dataPath?I=r.dataPath.split(".").reduce((B,A)=>B&&B[A]!=="undefined"?B[A]:void 0,x):typeof x=="object"&&!Array.isArray(x)&&x.data&&(I=x.data),Array.isArray(I)?i.value=I:(console.warn("DCodeRadio: Format response tidak terdeteksi sebagai Array. Gunakan prop 'dataPath'."),c.value="Format respons data tidak valid. Array tidak ditemukan.")}catch(S){console.error("DCodeRadio fetch error:",S),c.value="Gagal memuat data dari endpoint."}finally{s.value=!1}}};t.onMounted(()=>{var w;((w=r.endpoint)!=null&&w.apiUrl||r.apiUrl)&&d()});const h=t.computed(()=>{if(r.options&&r.options.length>0)return r.options;if(i.value.length>0)return i.value;const w=r.itemValue||r.model||"id",M=r.itemTitle||(r.label===""?"name":r.label);return M&&r.label!==""?[{[w]:w,[M]:M}]:[]}),u=w=>{if(typeof w!="object")return w;const M=r.itemValue||r.model||"id";return w[M]},p=w=>{if(typeof w!="object")return String(w);const M=r.itemTitle||"name";return w[M]},y=t.computed(()=>r.model||`radio-group-${Math.random().toString(36).substr(2,9)}`),f=t.computed(()=>!!r.error||!!c.value),k=t.computed(()=>r.error||c.value),m=w=>w==null?r.modelValue===w:String(r.modelValue)===String(w),g=t.computed(()=>({sm:{radio:"w-3 h-3",label:"text-sm",container:"gap-2"},md:{radio:"w-4 h-4",label:"text-base",container:"gap-2"},lg:{radio:"w-5 h-5",label:"text-lg",container:"gap-3"}})[r.size]),v=(w,M)=>{M.target.checked&&(o("update:modelValue",w),o("change",w))},L=w=>{!r.disabled&&!m(w)&&(o("update:modelValue",w),o("change",w))};return(w,M)=>(t.openBlock(),t.createElementBlock("div",kK,[a.label?(t.openBlock(),t.createBlock(La,{key:0,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.label)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",mK,"*")):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",gK,[s.value?(t.openBlock(),t.createElementBlock("div",bK,[t.createVNode(t.unref(kt),{class:"w-4 h-4 animate-spin"}),M[0]||(M[0]=t.createTextVNode(" Sedang memuat opsi... ",-1))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["flex",a.layout?"flex-row flex-wrap gap-4":"flex-col gap-3"])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,(C,S)=>(t.openBlock(),t.createElementBlock("div",{key:S,class:t.normalizeClass(["flex items-start",g.value.container,a.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"])},[t.createElementVNode("div",MK,[t.createElementVNode("input",{id:a.id?`${a.id}-${S}`:`${y.value}-${S}`,name:y.value,type:"radio",value:u(C),checked:m(u(C)),disabled:a.disabled,required:a.required&&S===0,onChange:b=>v(u(C),b),class:"w-5 h-5 text-blue-600 focus:ring-blue-500 border-gray-300"},null,40,xK)]),t.createElementVNode("div",{class:"flex-1 min-w-0",onClick:b=>L(u(C))},[t.createElementVNode("label",{for:a.id?`${a.id}-${S}`:`${y.value}-${S}`,class:t.normalizeClass([g.value.label,"font-medium cursor-pointer select-none text-foreground dark:text-gray-300",a.disabled?"cursor-not-allowed opacity-50":""])},[t.createTextVNode(t.toDisplayString(p(C))+" ",1),a.required&&h.value.length===1&&a.label?(t.openBlock(),t.createElementBlock("span",CK,"*")):t.createCommentVNode("",!0)],10,vK)],8,wK)],2))),128))],2),f.value&&k.value?(t.openBlock(),t.createElementBlock("div",LK,[t.createVNode(t.unref(It),{class:"w-4 h-4 flex-shrink-0"}),t.createTextVNode(" "+t.toDisplayString(k.value),1)])):t.createCommentVNode("",!0)])]))}}),SK={class:"grid gap-3"},IK={key:0,class:"ml-1 text-destructive"},_K={class:"flex flex-col"},AK={key:0,class:"flex items-center gap-2 text-sm text-gray-500 dark:text-neutral-400 mb-2"},BK=["onClick"],VK=["id","name","value","checked","disabled","required","onChange"],zK={key:1,class:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20"},qK=["for"],PK={key:0,class:"ml-1 text-red-500"},DK={key:1,class:"flex items-center gap-1 text-sm text-red-500 mt-2"},Nz=t.defineComponent({name:"DCodeRadioCustom",inheritAttrs:!1,__name:"DCodeRadioCustom",props:{modelValue:{default:void 0},icon:{},itemTitle:{default:"name"},itemValue:{default:"id"},label:{default:""},options:{default:()=>[]},apiUrl:{default:""},apiMethod:{default:"GET"},endpoint:{},dataPath:{default:""},layout:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{default:null},size:{default:"md"},color:{default:"blue"},model:{default:"id"},id:{default:""}},emits:["update:modelValue","change"],setup(a,{emit:e}){t.useAttrs();const{apiUrl:n}=Ke(),o=e,r=a,i=t.ref(r.modelValue??void 0);t.watch(()=>r.modelValue,I=>{i.value=I},{immediate:!0});const s=t.ref([]),c=t.ref(!1),d=t.ref(null),h=async()=>{var V,B;const I=((V=r.endpoint)==null?void 0:V.apiUrl)||r.apiUrl;if(I){c.value=!0,d.value=null;try{const A={page:1,perPage:100},P=((B=r.endpoint)==null?void 0:B.apiMethod)||r.apiMethod,D=await n(I,P,A);let U=D;r.dataPath?U=r.dataPath.split(".").reduce((H,N)=>H&&H[N]!=="undefined"?H[N]:void 0,D):typeof D=="object"&&!Array.isArray(D)&&D.data&&(U=D.data),Array.isArray(U)?s.value=U:(console.warn("DCodeRadioCustom: Format response tidak terdeteksi sebagai Array. Gunakan prop 'dataPath'."),d.value="Format respons data tidak valid. Array tidak ditemukan.")}catch(A){console.error("DCodeRadioCustom fetch error:",A),d.value="Gagal memuat data dari endpoint."}finally{c.value=!1}}},u=t.ref(!1);let p=null;const y=()=>{typeof document<"u"&&(u.value=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark"))};t.onMounted(()=>{var I;((I=r.endpoint)!=null&&I.apiUrl||r.apiUrl)&&h(),y(),typeof document<"u"&&(p=new MutationObserver(y),p.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),p.observe(document.body,{attributes:!0,attributeFilter:["class"]}))}),t.onBeforeUnmount(()=>{p&&p.disconnect()});const f=t.computed(()=>{if(r.options&&r.options.length>0)return r.options;if(s.value.length>0)return s.value;const I=r.itemValue||r.model||"id",V=r.itemTitle||(r.label===""?"name":r.label);return V&&r.label!==""?[{[I]:I,[V]:V}]:[]}),k=I=>{if(typeof I!="object")return I;const V=r.itemValue||r.model||"id";return I[V]},m=I=>{if(typeof I!="object")return String(I);const V=r.itemTitle||"name";return I[V]},g=Math.random().toString(36).slice(2,7),v=t.computed(()=>r.id?`radio-custom-${r.id}`:`radio-custom-${r.model}-${g}`),L=t.computed(()=>!!r.error||!!d.value),w=t.computed(()=>r.error||d.value),M=I=>{const V=i.value;return I==null?V===I:String(V)===String(I)},C=t.computed(()=>({sm:{radio:"w-3 h-3",label:"text-sm",container:"gap-2"},md:{radio:"w-4 h-4",label:"text-base",container:"gap-2"},lg:{radio:"w-5 h-5",label:"text-lg",container:"gap-3"}})[r.size]),S=t.computed(()=>r.icon&&Gt[r.icon]||null),b=(I,V)=>{V.target.checked&&(i.value=I,o("update:modelValue",I),o("change",I))},x=I=>{r.disabled||M(I)||(i.value=I,o("update:modelValue",I),o("change",I))};return(I,V)=>(t.openBlock(),t.createElementBlock("div",SK,[a.label?(t.openBlock(),t.createBlock(La,{key:0,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.label)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",IK,"*")):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",_K,[c.value?(t.openBlock(),t.createElementBlock("div",AK,[t.createVNode(t.unref(kt),{class:"w-4 h-4 animate-spin"}),V[0]||(V[0]=t.createTextVNode(" Sedang memuat opsi... ",-1))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["grid",a.layout?"grid-cols-2 sm:grid-cols-3":"grid-cols-1","gap-3"])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(B,A)=>(t.openBlock(),t.createElementBlock("div",{key:A,class:t.normalizeClass(["relative flex flex-col items-center justify-center gap-2 p-4 rounded-xl border-2 transition-all duration-200",M(k(B))?u.value?"border-primary-500 bg-primary-500/10 shadow-none":"border-primary-500 bg-primary-50 shadow-md shadow-primary-100":u.value?"border-neutral-700 bg-neutral-800 hover:border-neutral-600":"border-gray-200 bg-white hover:border-gray-300 hover:shadow-sm",a.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"]),onClick:P=>!a.disabled&&x(k(B))},[t.createElementVNode("input",{id:a.id?`${a.id}-${A}`:`${v.value}-${A}`,name:v.value,type:"radio",value:k(B),checked:M(k(B)),disabled:a.disabled,required:a.required&&A===0,onChange:P=>b(k(B),P),class:"sr-only",tabindex:"-1"},null,40,VK),t.createElementVNode("div",{class:t.normalizeClass(["w-10 h-10 rounded-full flex items-center justify-center transition-all duration-200",M(k(B))?u.value?"bg-primary-500/25 text-primary-400":"bg-primary-100 text-primary-600":u.value?"bg-neutral-700 text-neutral-500":"bg-gray-100 text-gray-400"])},[S.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.value),{key:0,class:"w-6 h-6"})):(t.openBlock(),t.createElementBlock("svg",zK,[...V[1]||(V[1]=[t.createElementVNode("circle",{cx:"10",cy:"10",r:"6"},null,-1)])]))],2),t.createElementVNode("label",{for:a.id?`${a.id}-${A}`:`${v.value}-${A}`,class:t.normalizeClass([C.value.label,"font-medium text-center leading-tight select-none transition-colors duration-200",M(k(B))?u.value?"text-primary-400":"text-primary-700":u.value?"text-neutral-300":"text-gray-700",a.disabled?"cursor-not-allowed":"cursor-pointer"])},[t.createTextVNode(t.toDisplayString(m(B))+" ",1),a.required&&f.value.length===1&&a.label?(t.openBlock(),t.createElementBlock("span",PK,"*")):t.createCommentVNode("",!0)],10,qK)],10,BK))),128))],2),L.value&&w.value?(t.openBlock(),t.createElementBlock("div",DK,[t.createVNode(t.unref(It),{class:"w-4 h-4 flex-shrink-0"}),t.createTextVNode(" "+t.toDisplayString(w.value),1)])):t.createCommentVNode("",!0)])]))}}),EK={key:0,class:"ml-1 text-destructive"},TK={class:"relative w-full"},HK={key:0,class:"mb-2 flex items-center justify-between"},jK={class:"text-sm text-muted-foreground"},OK={class:"text-sm font-medium text-foreground"},FK={class:"text-sm text-muted-foreground"},RK={class:"relative"},NK=["id","value","min","max","step","disabled","placeholder"],$K={key:1,class:"relative mt-2"},UK={class:"text-xs text-muted-foreground mt-1"},WK={key:1,class:"flex items-center gap-1 text-sm text-destructive"},GK={name:"DCodeSlider"},i_=t.defineComponent({...GK,name:"DCodeSlider",inheritAttrs:!1,props:{modelValue:{default:0},min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1},label:{default:""},placeholder:{default:""},required:{type:Boolean,default:!1},error:{default:null},showValue:{type:Boolean,default:!0},valuePrefix:{default:""},valueSuffix:{default:""},marks:{default:()=>[]},color:{default:"blue"},size:{default:"md"}},emits:["update:modelValue","change","input"],setup(a,{emit:e}){const n=t.useAttrs(),o=e,r=a,i=t.ref(),s=t.ref(!1),c=t.computed(()=>!!r.error),d=t.computed(()=>`slider-${Math.random().toString(36).substr(2,9)}`),h=t.computed(()=>(r.label||n.label)??void 0),u=t.computed(()=>!0),p=t.computed(()=>{const C={sm:"h-2",md:"h-2.5",lg:"h-3"},S={blue:"accent-blue-500",green:"accent-green-500",red:"accent-red-500",yellow:"accent-yellow-500",purple:"accent-purple-500",gray:"accent-gray-500"};return["w-full appearance-none bg-transparent rounded-lg outline-none transition-all cursor-pointer relative z-10","disabled:opacity-50 disabled:cursor-not-allowed",C[r.size],S[r.color]||S.blue,c.value?"accent-red-500":"",n.class].filter(Boolean).join(" ")}),y=t.computed(()=>["appearance-none bg-white border-2 border-current rounded-full cursor-pointer transition-all","hover:scale-110 focus:scale-110","shadow-md hover:shadow-lg focus:shadow-lg","focus:outline-none focus:ring-2 focus:ring-offset-2",{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[r.size],r.color==="blue"?"focus:ring-blue-500":r.color==="green"?"focus:ring-green-500":r.color==="red"?"focus:ring-red-500":r.color==="yellow"?"focus:ring-yellow-500":r.color==="purple"?"focus:ring-purple-500":"focus:ring-gray-500"].join(" ")),f=t.computed(()=>`${r.valuePrefix}${r.modelValue}${r.valueSuffix}`),k=t.computed(()=>{const C=r.max-r.min;return(r.modelValue-r.min)/C*100}),m=C=>{const S=C.target,b=parseFloat(S.value);o("update:modelValue",b),o("input",b)},g=C=>{const S=C.target,b=parseFloat(S.value);o("change",b)},v=()=>{s.value=!0},L=()=>{s.value=!1},w=C=>{const S=r.max-r.min;return(C-r.min)/S*100},M=t.computed(()=>{const C={sm:16,md:20,lg:24};return`
|
|
8564
|
+
`.trim();let r=document.getElementById(e);r||(r=document.createElement("style"),r.id=e,document.head.appendChild(r)),r.textContent=o}function CW(a,e=Ez){t.watch(a,n=>vW(n,e),{immediate:!0})}const LW={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},SW={key:0,class:"ml-1 text-destructive"},IW=["disabled","onClick"],_W={class:"flex-shrink-0 px-2 text-sm text-muted-foreground select-none whitespace-nowrap"},AW=["id","value","placeholder","disabled","onClick","onFocus","onBlur","onInput","onKeydown","onKeypress","onPaste"],BW={class:"h-full p-2 flex flex-col gap-3 w-32"},VW={class:"flex items-center justify-end gap-2 w-full p-2"},zW={key:1,class:"text-xs text-destructive"},GI=t.defineComponent({name:"DCodeDatePicker",inheritAttrs:!1,__name:"DCodeDatePicker",props:{modelValue:{},range:{type:Boolean,default:!1},autoRangeDays:{default:null},disablePast:{type:Boolean,default:!1},maxDaysAhead:{default:null},placeholder:{default:"Pilih tanggal"},label:{},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},displayFormat:{default:"dd/MM/yyyy"},modelType:{default:"yyyy-MM-dd"},locale:{default:"en"},placement:{default:"bottom-start"},prependInner:{default:void 0},error:{default:null},selectLabel:{default:"Select"},cancelLabel:{default:"Cancel"},tone:{default:"primary"},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","change","clear"],setup(a,{emit:e}){const n=t.useAttrs(),o=a,r=e,i=Math.random().toString(36).slice(2,7),s=t.computed(()=>`dcode-datepicker-${n.id||o.label||"date-picker"}-${i}`),c=t.computed(()=>{const P=n.required,D=n["aria-required"];return P===""||P===!0||P==="true"||D==="true"||D===!0}),d=t.computed(()=>!!o.error),h=t.computed({get:()=>o.modelValue,set:P=>{r("update:modelValue",P),r("change",P)}}),u=t.computed(()=>o.locale==="en"?Iz:wW),p=t.computed(()=>o.range?2:!1),y=t.computed(()=>{if(!o.range)return!1;const P={partialRange:!1};return o.autoRangeDays&&o.autoRangeDays>0&&(P.maxRange=o.autoRangeDays,P.autoRange=o.autoRangeDays),P}),f=P=>{const D=new Date(P);return D.setHours(0,0,0,0),D},k=P=>{const D=new Date(P);return D.setHours(23,59,59,999),D},m=(P,D)=>{const U=new Date(P);return U.setDate(U.getDate()+D),U},g=t.computed(()=>{if(o.disablePast)return f(new Date)}),v=t.computed(()=>{if(o.maxDaysAhead&&o.maxDaysAhead>0)return k(m(new Date,o.maxDaysAhead))}),L=t.ref(null),w=t.ref(null),M=P=>{w.value={month:P.month,year:P.year}},C=t.ref(!1);let S=null;t.onMounted(()=>{const P=document.documentElement,D=()=>C.value=P.classList.contains("dark");D(),S=new MutationObserver(D),S.observe(P,{attributes:!0,attributeFilter:["class"]})}),t.onBeforeUnmount(()=>{S==null||S.disconnect(),S=null}),CW(t.toRef(o,"tone"));const b=P=>{const D=new Date(P),U=D.getDay(),T=D.getDate()-U+(U===0?-6:1);return D.setDate(T),f(D)},x=P=>{const D=b(P);return D.setDate(D.getDate()+6),k(D)},I=P=>{const D=new Date(P);return D.setDate(1),f(D)},V=P=>{const D=new Date(P);return D.setMonth(D.getMonth()+1),D.setDate(0),k(D)},B=t.computed(()=>{if(!o.range)return[];const P=new Date,D=f(P),U=b(P),T=x(P),H=I(P),N=V(P),Q=(j,F)=>{let R=j;o.disablePast&&R<D&&(R=D);let Z=F;if(o.autoRangeDays&&o.autoRangeDays>0){const J=k(m(R,o.autoRangeDays-1));Z>J&&(Z=J)}return Z<R&&(Z=k(new Date(R))),[R,Z]};return[{label:o.locale==="id"?"Minggu Ini":"This Week",range:Q(U,T)},{label:o.locale==="id"?"Bulan Ini":"This Month",range:Q(H,N)}]}),A=async P=>{var F,R;const D=o.modelType||"yyyy-MM-dd";if(P.length===0){h.value=null;return}if(P.length<2)return;const U=Pz(P[0],D),T=Pz(P[1],D);h.value=[U,T],await t.nextTick();const H=P[0],N=H.getMonth(),Q=H.getFullYear();w.value&&w.value.month===N&&w.value.year===Q||(F=L.value)==null||F.setMonthYear({month:N,year:Q}),(R=L.value)==null||R.openMenu()};return(P,D)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["flex flex-col gap-1 w-full",t.unref(n).class])},[a.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.label?(t.openBlock(),t.createElementBlock("div",LW)):t.createCommentVNode("",!0),D[2]||(D[2]=t.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.label?(t.openBlock(),t.createBlock(t.unref(La),{key:0,for:s.value,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.label)+" ",1),c.value?(t.openBlock(),t.createElementBlock("span",SW,"*")):t.createCommentVNode("",!0)]),_:1},8,["for"])):t.createCommentVNode("",!0),t.createVNode(t.unref(Je.VueDatePicker),{ref_key:"dpRef",ref:L,modelValue:h.value,"onUpdate:modelValue":D[1]||(D[1]=U=>h.value=U),dark:C.value,range:y.value,"multi-calendars":p.value,disabled:a.disabled,clearable:!1,"text-input":"","enable-time-picker":!1,"time-config":{enableTimePicker:!1},"auto-apply":!1,"action-row":{showPreview:!0,showNow:!1},locale:u.value,"model-type":a.modelType,formats:{input:a.displayFormat},"min-date":g.value,"max-date":v.value,"preset-ranges":B.value,floating:{placement:a.placement,offset:8,arrow:!1,flip:!1,shift:!0},teleport:!0,"menu-class-name":"dcode-datepicker-menu","calendar-class-name":"dcode-datepicker-calendar",onUpdateMonthYear:M},t.createSlots({"dp-input":t.withCtx(({value:U,onInput:T,onEnter:H,onTab:N,onBlur:Q,onFocus:j,onKeypress:F,onPaste:R,toggleMenu:Z})=>[t.createElementVNode("div",{class:t.normalizeClass(["flex items-center w-full h-10 rounded-lg border bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 overflow-hidden",[d.value?"border-destructive":"",a.disabled?"opacity-50 cursor-not-allowed":""]])},[t.createElementVNode("button",{type:"button",tabindex:"-1",disabled:a.disabled,class:"flex-shrink-0 flex items-center justify-center w-10 h-full text-muted-foreground hover:text-foreground transition-colors focus:outline-none",onClick:J=>Z()},[t.createVNode(t.unref(Hs),{class:"w-4 h-4 pointer-events-none"})],8,IW),D[4]||(D[4]=t.createElementVNode("span",{class:"w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0"},null,-1)),a.prependInner?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",_W,t.toDisplayString(a.prependInner),1),D[3]||(D[3]=t.createElementVNode("span",{class:"w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0"},null,-1))],64)):t.createCommentVNode("",!0),t.createElementVNode("input",{id:s.value,value:U,placeholder:a.placeholder,disabled:a.disabled,autocomplete:"off",readonly:"",class:t.normalizeClass(["flex-1 min-w-0 px-3 h-full bg-transparent text-sm text-foreground dark:text-gray-300 placeholder:text-muted-foreground outline-none",a.disabled?"cursor-not-allowed":"cursor-pointer"]),onClick:J=>Z(),onFocus:J=>j(),onBlur:J=>Q(),onInput:J=>T(J),onKeydown:[t.withKeys(J=>H(J),["enter"]),t.withKeys(J=>N(J),["tab"])],onKeypress:J=>F(J),onPaste:J=>R()},null,42,AW)],2)]),"action-buttons":t.withCtx(({selectDate:U,selectionDisabled:T})=>[t.createElementVNode("div",VW,[t.createVNode(t.unref(Ee),{type:"button",variant:"outline",onClick:D[0]||(D[0]=H=>{var N;return(N=L.value)==null?void 0:N.closeMenu()})},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.cancelLabel),1)]),_:1}),t.createVNode(t.unref(Ee),{type:"button",variant:"default",disabled:T,onClick:H=>U()},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.selectLabel),1)]),_:1},8,["disabled","onClick"])])]),_:2},[a.range?{name:"left-sidebar",fn:t.withCtx(()=>[t.createElementVNode("div",BW,[B.value.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(B.value,U=>(t.openBlock(),t.createBlock(t.unref(Ee),{key:U.label,type:"button",variant:"default",class:"w-full",onClick:T=>A(U.range)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(U.label),1)]),_:2},1032,["onClick"]))),128)):t.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["modelValue","dark","range","multi-calendars","disabled","locale","model-type","formats","min-date","max-date","preset-ranges","floating"]),d.value?(t.openBlock(),t.createElementBlock("p",zW,t.toDisplayString(o.error),1)):t.createCommentVNode("",!0)],64))],2))}}),qW=t.defineComponent({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(a,{emit:e}){const r=mt(a,e);return(i,s)=>(t.openBlock(),t.createBlock(t.unref(VA),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16))}}),PW=t.defineComponent({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:e}){const n=a,o=e,r=De(n,"class"),i=mt(r,o);return(s,c)=>(t.openBlock(),t.createBlock(t.unref($A),null,{default:t.withCtx(()=>[t.createVNode(t.unref(NA),{class:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),t.createVNode(t.unref(FA),t.mergeProps({...t.unref(i),...s.$attrs},{class:t.unref(be)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n.class)}),{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default"),t.createVNode(t.unref(zA),{class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},{default:t.withCtx(()=>[t.createVNode(t.unref(it),{class:"w-4 h-4"}),c[0]||(c[0]=t.createElementVNode("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),DW=t.defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(RA),t.mergeProps(t.unref(o),{class:t.unref(be)("text-sm text-muted-foreground",e.class)}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3},16,["class"]))}}),EW=t.defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(UA),t.mergeProps(t.unref(o),{class:t.unref(be)("text-lg font-medium leading-none tracking-tight",e.class)}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3},16,["class"]))}}),TW={class:"flex items-center gap-3"},HW={class:"flex justify-end gap-3"},lS=t.defineComponent({name:"DCodeDialog",inheritAttrs:!1,__name:"DCodeDialog",props:{modelValue:{type:Boolean,default:!1},title:{default:""},icon:{default:""},maxWidth:{default:500},persistent:{type:Boolean,default:!0},contentClass:{default:"p-5"},contentStyle:{default:()=>({})}},emits:["update:modelValue"],setup(a,{emit:e}){const n=a,o=e,r=t.useAttrs(),i=t.computed(()=>{const{style:h,...u}=r;return u}),s=t.computed(()=>({maxWidth:typeof n.maxWidth=="number"?`${n.maxWidth}px`:n.maxWidth,width:"100%"})),c=t.computed(()=>n.icon?Gt[n.icon]??null:null),d=h=>{o("update:modelValue",h)};return(h,u)=>(t.openBlock(),t.createBlock(t.unref(qW),{open:a.modelValue,"onUpdate:open":d},{default:t.withCtx(()=>[t.createVNode(t.unref(PW),t.mergeProps(i.value,{style:s.value,class:"p-0 overflow-hidden rounded-xl",onInteractOutside:u[0]||(u[0]=p=>a.persistent?p.preventDefault():null),onEscapeKeyDown:u[1]||(u[1]=p=>a.persistent?p.preventDefault():null)}),{default:t.withCtx(()=>[t.createVNode(rI,{padding:a.contentClass,border:"",shadow:"",class:"w-full !rounded-xl !border-0",level:1},t.createSlots({header:t.withCtx(()=>[t.createElementVNode("div",TW,[c.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.value),{key:0,class:"h-5 w-5"})):t.createCommentVNode("",!0),t.createVNode(t.unref(EW),{class:"text-base font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),t.createVNode(t.unref(DW),{class:"hidden"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title||"Dialog Content"),1)]),_:1})])]),actions:t.withCtx(()=>[t.renderSlot(h.$slots,"header-append")]),default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle(a.contentStyle)},[t.renderSlot(h.$slots,"default")],4)]),_:2},[h.$slots.actions?{name:"footer",fn:t.withCtx(()=>[t.createElementVNode("div",HW,[t.renderSlot(h.$slots,"actions")])]),key:"0"}:void 0]),1032,["padding"])]),_:3},16,["style"])]),_:3},8,["open"]))}}),Tz=t.defineComponent({__name:"DCodeDialogCloseBtn",props:{icon:{default:"X"},iconSize:{default:22}},setup(a){const e=a,n=t.computed(()=>Gt[e.icon]??it);return(o,r)=>(t.openBlock(),t.createBlock(t.unref(Ee),{type:"button",variant:"secondary",size:"icon",class:"rounded-full shadow-sm"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.value),{size:Number(a.iconSize)},null,8,["size"]))]),_:1}))}}),jW=t.defineComponent({__name:"Alert",props:{class:{type:[Boolean,null,String,Object,Array]},variant:{}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)(t.unref(FW)({variant:a.variant}),e.class)),role:"alert"},[t.renderSlot(n.$slots,"default")],2))}}),OW=t.defineComponent({__name:"AlertDescription",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)("text-sm [&_p]:leading-relaxed",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),FW=i1("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),_a=t.defineComponent({__name:"Badge",props:{variant:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)(t.unref(RW)({variant:a.variant}),e.class))},[t.renderSlot(n.$slots,"default")],2))}}),RW=i1("inline-flex gap-1 items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),KI=t.defineComponent({__name:"Card",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)("rounded-xl border bg-card text-card-foreground shadow",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),XI=t.defineComponent({__name:"CardContent",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)("p-6 pt-0",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),ZI=t.defineComponent({__name:"CardHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)("flex flex-col gap-y-1.5 p-6",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),YI=t.defineComponent({__name:"CardTitle",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("h3",{class:t.normalizeClass(t.unref(be)("font-medium leading-none tracking-tight",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),NW={class:"h-full w-full p-6 flex flex-col items-center justify-center text-center gap-2"},$W={class:"flex flex-wrap items-center justify-center gap-2"},UW=["accept","multiple"],cS=Xt(t.defineComponent({__name:"DCodeDropzone",props:{label:{default:"Upload File"},hint:{default:"Drag & drop file di sini atau klik area ini"},accept:{default:"*/*"},maxSizeMb:{default:2},mode:{default:"single"},disabled:{type:Boolean,default:!1},showSelected:{type:Boolean,default:!0},error:{default:null}},emits:["picked","picked:multiple","error"],setup(a,{emit:e}){const n=a,o=e,r=t.ref(null),i=t.ref(!1),s=t.ref(null),c=t.ref(null),d=t.ref(null);t.computed(()=>n.accept||"file/*");const h=t.computed(()=>n.error??s.value);function u(){var b;n.disabled||(b=r.value)==null||b.click()}function p(b){const x=b/1024,I=x/1024;return I>=1?`${I.toFixed(2)} MB`:x>=1?`${x.toFixed(1)} KB`:`${b} B`}function y(b){var I;if(!b)return"File tidak valid";if((I=n.accept)!=null&&I.includes("image/")&&!b.type.startsWith("image/"))return"Hanya file gambar yang diizinkan";const x=(n.maxSizeMb??2)*1024*1024;return b.size>x?`Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB`:null}function f(b){c.value=b.name,d.value=b.size}function k(b){if(s.value=null,!b.length)return;if(n.mode==="single"){const I=b[0],V=y(I);if(V){s.value=V,o("error",V);return}n.showSelected&&f(I),o("picked",I);return}const x=[];for(const I of b){const V=y(I);if(V){s.value=V,o("error",V);return}x.push(I)}x.length&&(n.showSelected&&f(x[0]),o("picked:multiple",x))}function m(b){const x=b.target,I=Array.from(x.files??[]);k(I),x.value=""}function g(){n.disabled||(i.value=!0)}function v(){n.disabled||(i.value=!0)}function L(){i.value=!1}function w(b){var V,B;if(n.disabled)return;i.value=!1;const x=Array.from(((V=b.dataTransfer)==null?void 0:V.files)??[]),I=(B=n.accept)!=null&&B.includes("image/")?x.filter(A=>A.type.startsWith("image/")):x;k(I)}const M=t.computed(()=>(n.accept||"file/*").split(",").map(b=>b.trim()).filter(Boolean).map(b=>b==="image/*"?"IMAGE":b.replace(/^image\//,"").replace(/^\./,"")).join(", "));t.computed(()=>`${n.maxSizeMb??0}MB`);const C=t.ref(!1),S=t.computed(()=>{if(n.disabled||!C.value)return{};const b=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark");return{borderColor:b?"hsl(var(--primary) / 0.5)":"hsl(var(--primary) / 0.6)",backgroundColor:b?"hsl(var(--primary) / 0.1)":"hsl(var(--primary) / 0.05)"}});return(b,x)=>(t.openBlock(),t.createBlock(t.unref(KI),{class:t.normalizeClass([a.disabled?"opacity-60":"","dark:bg-neutral-900 dark:border-neutral-800"])},{default:t.withCtx(()=>[t.createVNode(t.unref(ZI),{class:"pb-2"},{default:t.withCtx(()=>[t.createVNode(t.unref(YI),{class:"text-sm font-semibold dark:text-neutral-100"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.label),1)]),_:1})]),_:1}),t.createVNode(t.unref(XI),{class:"pt-2"},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["d-dropzone-area flex justify-center items-center rounded-xl border-2 border-dashed transition cursor-pointer select-none",[i.value?"is-dragging border-primary bg-primary/10 dark:bg-primary/20 -translate-y-[1px]":"border-border dark:border-neutral-700 bg-muted/30 dark:bg-neutral-800/50",a.disabled?"is-disabled":""]]),style:t.normalizeStyle([{minHeight:"190px"},S.value]),onClick:u,onDragenter:t.withModifiers(g,["prevent"]),onDragover:t.withModifiers(v,["prevent"]),onDragleave:t.withModifiers(L,["prevent"]),onDrop:t.withModifiers(w,["prevent"]),onMouseenter:x[0]||(x[0]=I=>C.value=!0),onMouseleave:x[1]||(x[1]=I=>C.value=!1)},[t.createElementVNode("div",NW,[x[2]||(x[2]=t.createElementVNode("div",{class:"text-sm font-medium dark:text-neutral-200"},"Drag & drop file di sini",-1)),x[3]||(x[3]=t.createElementVNode("div",{class:"text-xs text-muted-foreground dark:text-neutral-400"},"atau klik area ini untuk memilih file",-1)),t.createElementVNode("div",$W,[t.createVNode(t.unref(_a),{variant:"secondary",class:"text-[11px] dark:bg-neutral-700 dark:text-neutral-300"},{default:t.withCtx(()=>[t.createTextVNode(" Allowed: "+t.toDisplayString(M.value),1)]),_:1}),t.createVNode(t.unref(_a),{variant:"secondary",class:"text-[11px] dark:bg-neutral-700 dark:text-neutral-300"},{default:t.withCtx(()=>[t.createTextVNode(" Max: "+t.toDisplayString(n.maxSizeMb)+"MB ",1)]),_:1})]),a.showSelected&&c.value?(t.openBlock(),t.createBlock(t.unref(_a),{key:0,variant:"secondary",class:"mt-2 dark:bg-neutral-700 dark:text-neutral-300"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.value)+" • "+t.toDisplayString(d.value?p(d.value):""),1)]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("input",{ref_key:"fileInputEl",ref:r,type:"file",class:"hidden",accept:a.accept,multiple:a.mode==="multiple",onChange:m},null,40,UW)],38),h.value?(t.openBlock(),t.createBlock(t.unref(jW),{key:0,variant:"destructive",class:"mt-3"},{default:t.withCtx(()=>[t.createVNode(t.unref(OW),{class:"text-sm"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(h.value),1)]),_:1})]),_:1})):t.createCommentVNode("",!0)]),_:1})]),_:1},8,["class"]))}}),[["__scopeId","data-v-218e1a20"]]),WW={key:0,class:"text-xs text-muted-foreground dark:text-neutral-400"},GW=["src"],KW={key:1,class:"h-full w-full flex flex-col items-center justify-center text-muted-foreground dark:text-neutral-400 gap-2 p-4 text-center"},XW={class:"space-y-0.5"},ZW={class:"text-sm font-medium truncate max-w-[180px] dark:text-neutral-200"},YW={class:"text-xs opacity-70"},QW=["disabled"],JW={key:1},eG=["disabled"],tG={class:"text-[11px] text-foreground/90 dark:text-neutral-200 space-y-1 whitespace-nowrap"},aG={class:"flex gap-2"},nG={class:"font-medium truncate"},oG={class:"flex gap-2"},rG={class:"font-medium"},iG={class:"flex gap-2"},sG={class:"font-medium truncate"},QI=Xt(t.defineComponent({__name:"DCodeFileResult",props:{file:{},title:{default:"File Terpilih"},description:{default:""},disabled:{type:Boolean,default:!1},previewHeight:{default:190},previewWidth:{default:220},showEdit:{type:Boolean,default:!0},showReplace:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!0},forceFileIcon:{type:Boolean,default:!1}},emits:["edit","replace","remove"],setup(a,{emit:e}){const n=a,o=e,r=t.ref(null),i=t.computed(()=>n.forceFileIcon||!n.file?!1:(n.file.type||"").startsWith("image/"));t.watch(()=>n.file,f=>{r.value&&URL.revokeObjectURL(r.value),r.value=f?URL.createObjectURL(f):null},{immediate:!0}),t.onBeforeUnmount(()=>{r.value&&URL.revokeObjectURL(r.value),u&&u.disconnect()});function s(f){const k=f/1024,m=k/1024;return m>=1?`${m.toFixed(2)} MB`:k>=1?`${k.toFixed(1)} KB`:`${f} B`}const c=t.computed(()=>n.file?{name:n.file.name,size:s(n.file.size),type:n.file.type||"unknown"}:null),d=t.ref(!1),h=t.ref(!1);let u=null;const p=()=>{typeof document<"u"&&(h.value=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark"))};t.onMounted(()=>{p(),typeof document<"u"&&(u=new MutationObserver(p),u.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),u.observe(document.body,{attributes:!0,attributeFilter:["class"]}))});const y=t.computed(()=>n.disabled||!d.value?{}:{borderColor:h.value?"hsl(var(--primary) / 0.4)":"hsl(var(--primary) / 0.5)",backgroundColor:h.value?"hsl(var(--primary) / 0.1)":"hsl(var(--primary) / 0.05)"});return(f,k)=>a.file?(t.openBlock(),t.createBlock(KI,{key:0,class:t.normalizeClass([a.disabled?"opacity-60 pointer-events-none":"","dark:bg-neutral-900 dark:border-neutral-800"])},{default:t.withCtx(()=>[t.createVNode(ZI,{class:"pb-2"},{default:t.withCtx(()=>[t.createVNode(YI,{class:"text-sm font-semibold dark:text-neutral-100"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),a.description?(t.openBlock(),t.createElementBlock("div",WW,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)]),_:1}),t.createVNode(XI,{class:"pt-2"},{default:t.withCtx(()=>{var m,g,v,L,w;return[t.createElementVNode("div",{class:"d-result-preview-wrap relative rounded-xl overflow-hidden border-2 border-dashed transition-colors duration-200 bg-muted dark:bg-neutral-800/50 border-border dark:border-neutral-700 w-full",style:t.normalizeStyle([{height:`${a.previewHeight}px`},y.value]),onMouseenter:k[2]||(k[2]=M=>d.value=!0),onMouseleave:k[3]||(k[3]=M=>d.value=!1)},[i.value&&r.value?(t.openBlock(),t.createElementBlock("img",{key:0,src:r.value,alt:"Preview",class:"h-full w-full object-contain"},null,8,GW)):(t.openBlock(),t.createElementBlock("div",KW,[t.createVNode(t.unref(hs),{class:"w-10 h-10"}),t.createElementVNode("div",XW,[t.createElementVNode("p",ZW,t.toDisplayString((m=c.value)==null?void 0:m.name),1),t.createElementVNode("p",YW,t.toDisplayString((g=c.value)==null?void 0:g.size),1)])])),t.createElementVNode("div",{class:"d-action-buttons",style:t.normalizeStyle({position:"absolute",top:"8px",left:"8px",right:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",zIndex:50,opacity:d.value?1:0,transition:"opacity 0.2s ease-in-out",pointerEvents:d.value?"auto":"none"})},[a.showEdit&&i.value?(t.openBlock(),t.createElementBlock("button",{key:0,disabled:a.disabled,class:"d-action-btn shadow-md",style:t.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#eab308",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:a.disabled?"not-allowed":"pointer",transition:"all 0.2s"}),onClick:k[0]||(k[0]=M=>o("edit"))},[t.createVNode(t.unref(sr),{style:{width:"16px",height:"16px"}})],12,QW)):(t.openBlock(),t.createElementBlock("div",JW)),a.showRemove?(t.openBlock(),t.createElementBlock("button",{key:2,disabled:a.disabled,class:"d-action-btn shadow-md",style:t.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ef4444",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:a.disabled?"not-allowed":"pointer",transition:"all 0.2s"}),onClick:k[1]||(k[1]=M=>o("remove"))},[t.createVNode(t.unref(_i),{style:{width:"16px",height:"16px"}})],12,eG)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:"d-metadata-overlay",style:t.normalizeStyle({position:"absolute",left:"8px",bottom:"8px",zIndex:10,display:"inline-block",maxWidth:"calc(100% - 16px)",borderRadius:"12px",border:"1px solid rgba(0,0,0,0.1)",padding:"8px 12px",boxShadow:"0 10px 15px -3px rgba(0,0,0,0.1)",backdropFilter:"blur(8px)",transition:"all 0.2s ease-in-out",opacity:d.value?1:0,transform:d.value?"translateY(0) scale(1)":"translateY(4px) scale(0.99)",backgroundColor:h.value?"rgba(38, 38, 38, 0.8)":"rgba(255, 255, 255, 0.8)",color:h.value?"#e5e5e5":"#171717"})},[t.createElementVNode("div",tG,[t.createElementVNode("div",aG,[k[4]||(k[4]=t.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Nama",-1)),t.createElementVNode("span",nG,t.toDisplayString((v=c.value)==null?void 0:v.name),1)]),t.createElementVNode("div",oG,[k[5]||(k[5]=t.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Ukuran",-1)),t.createElementVNode("span",rG,t.toDisplayString((L=c.value)==null?void 0:L.size),1)]),t.createElementVNode("div",iG,[k[6]||(k[6]=t.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Tipe",-1)),t.createElementVNode("span",sG,t.toDisplayString((w=c.value)==null?void 0:w.type),1)])])],4)],36)]}),_:1})]),_:1},8,["class"])):t.createCommentVNode("",!0)}}),[["__scopeId","data-v-21123eaf"]]);function JI(){const a=i=>{var d;const s={type:i.type||"info",title:i.title,message:i.message,duration:i.duration??3e3};typeof window<"u"&&window.dispatchEvent(new CustomEvent("micro:toast",{detail:s,bubbles:!0,composed:!0})),(s.type==="error"?console.error:s.type==="warning"?console.warn:console.log)(`[Toast][${(d=s.type)==null?void 0:d.toUpperCase()}]`,s.title||"",s.message)};return{show:a,success:(i,s)=>a({type:"success",message:i,title:s}),error:(i,s)=>a({type:"error",message:i,title:s}),warning:(i,s)=>a({type:"warning",message:i,title:s}),info:(i,s)=>a({type:"info",message:i,title:s})}}const lG={class:"space-y-3"},cG={key:1,class:"flex items-center justify-center p-6 border rounded-lg bg-muted/30 dark:bg-neutral-800/20 dark:border-neutral-800"},Hz=t.defineComponent({__name:"DCodeFileField",props:{modelValue:{default:null},label:{default:"Upload File"},hint:{},disabled:{type:Boolean,default:!1},previewHeight:{default:190},previewWidth:{default:void 0},allowedTypes:{default:null},accept:{default:"*/*"},minSizeMb:{default:null},maxSizeMb:{default:1},endpoint:{},uploadFn:{}},emits:["update:modelValue","error","uploaded"],setup(a,{emit:e}){const n=a,o=e,r=t.computed({get:()=>n.modelValue,set:S=>o("update:modelValue",S)}),i=t.ref(null),s=t.ref(null);function c(S){s.value=S,o("error",S)}function d(){s.value=null}const h=t.computed(()=>{const S=(n.allowedTypes??"").trim();return S?S.split(/[,\s;]+/g).map(x=>x.trim().toLowerCase()).filter(Boolean).map(x=>x.includes("/")||x.startsWith(".")?x:`.${x}`):[]});function u(S){const b=S.lastIndexOf(".");return b>=0?S.slice(b).toLowerCase():""}const p=t.computed(()=>{if(h.value.length){const S=h.value.filter(x=>x.startsWith("."));return[...h.value.filter(x=>x.includes("/")),...S].join(",")}return n.accept}),y=t.computed(()=>h.value.length?h.value.join(", "):n.accept||"Semua File");function f(S){if(h.value.length){const b=(S.type||"").toLowerCase(),x=u(S.name);return h.value.some(I=>I.includes("/")?b===I:I.startsWith(".")?x===I:x===`.${I}`)}if(n.accept){if(n.accept==="*/*")return!0;const b=n.accept.split(",").map(V=>V.trim().toLowerCase()),x=(S.type||"").toLowerCase(),I=u(S.name);return b.some(V=>{if(V.endsWith("/*")){const B=V.slice(0,-2);return x.startsWith(B)}return V.startsWith(".")?I===V:x===V})}return!0}function k(S){return S*1024*1024}async function m(S){return S?f(S)?n.minSizeMb!=null&&S.size<k(n.minSizeMb)?`Ukuran file terlalu kecil. Minimal ${n.minSizeMb}MB`:n.maxSizeMb!=null&&S.size>k(n.maxSizeMb)?`Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB`:null:`File Type not allowed. Allowed: ${y.value}`:"File tidak valid"}const{DCodeApi:g}=Ke(),v=JI(),L=t.ref(!1);async function w(S){var b;if(n.uploadFn){try{L.value=!0;const x=await n.uploadFn(S);r.value=S,o("uploaded",x)}catch(x){console.error("Upload Error",x),v.error("Upload Failed",(x==null?void 0:x.message)||"Unknown error"),c((x==null?void 0:x.message)||"Upload Failed")}finally{L.value=!1}return}if(!((b=n.endpoint)!=null&&b.apiUrl)){r.value=S;return}if(typeof g!="function"){c("useApi() must expose DCodeApi()");return}try{L.value=!0;const x=new FormData;x.append("doc",S);const I=(n.endpoint.apiMethod||"POST").toUpperCase(),V=n.endpoint.apiUrl,B=await g("","",x,{_url:V,_method:I,withCredentials:!0,transformRequest:[(P,D)=>(D&&(delete D["Content-Type"],delete D["content-type"]),P)]}),A=(B==null?void 0:B.data)??B;r.value=S,o("uploaded",A)}catch(x){console.error("Upload Error",x),v.error("Upload Failed",(x==null?void 0:x.message)||"Unknown error"),c((x==null?void 0:x.message)||"Upload Failed")}finally{L.value=!1}}async function M(S){var x;if(n.disabled)return;d();const b=await m(S);if(b){c(b);return}i.value=S,n.uploadFn||(x=n.endpoint)!=null&&x.apiUrl?await w(S):r.value=S}function C(){d(),r.value=null,i.value=null}return t.watch(()=>n.modelValue,S=>{S&&!i.value&&(i.value=S),S||(i.value=null)},{immediate:!0}),(S,b)=>(t.openBlock(),t.createElementBlock("div",lG,[r.value?L.value?(t.openBlock(),t.createElementBlock("div",cG,[...b[1]||(b[1]=[t.createElementVNode("span",{class:"text-sm text-muted-foreground dark:text-neutral-400 animate-pulse"},"Uploading...",-1)])])):(t.openBlock(),t.createBlock(QI,{key:2,file:r.value,title:a.label,description:a.hint,disabled:a.disabled,"show-edit":!1,"show-replace":!1,"show-remove":!0,"force-file-icon":!0,"preview-height":a.previewHeight,"preview-width":a.previewWidth,onRemove:C},null,8,["file","title","description","disabled","preview-height","preview-width"])):(t.openBlock(),t.createBlock(cS,{key:0,label:a.label,hint:a.hint,accept:p.value,maxSizeMb:a.maxSizeMb,disabled:a.disabled||L.value,onPicked:M,error:s.value,onError:b[0]||(b[0]=x=>c(x))},null,8,["label","hint","accept","maxSizeMb","disabled","error"]))]))}}),dG=["for"],hG={key:0,class:"!ml-1 !text-destructive"},uG={class:"relative w-full block box-border"},pG={key:0,class:"absolute inset-y-0 left-3 flex items-center text-muted-foreground pointer-events-none z-10"},yG=["id","readonly","disabled","placeholder"],fG={class:"absolute inset-y-0 right-4 flex items-center z-10"},kG={key:1,class:"absolute z-50 mt-1 w-full rounded-xl border bg-white dark:bg-neutral-900 shadow-lg box-border"},mG={key:0,class:"flex items-center justify-center py-10 text-muted-foreground gap-2"},gG={key:1,class:"text-sm text-muted-foreground text-center"},bG=["onClick","title"],MG={class:"flex flex-col items-center justify-between gap-2 py-1 min-h-[72px]"},xG={class:"flex items-center justify-center flex-1"},wG={class:"text-[10px] leading-tight text-muted-foreground truncate w-full text-center block flex-shrink-0"},vG={key:3,class:"pt-2 text-[11px] text-muted-foreground text-center"},jz=t.defineComponent({name:"DCodeIconDropdown",__name:"DCodeIconDropdown",props:{modelValue:{},label:{},placeholder:{default:"Pilih icon…"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},columns:{default:4},maxHeight:{default:"335px"},iconSize:{default:20},pageSize:{default:120}},emits:["update:modelValue","clear"],setup(a,{emit:e}){const n=a,o=e,r=Gt,i=t.ref(null),s=t.ref(null),c=Math.random().toString(36).slice(2,7),d=t.computed(()=>`dcode-icon-dropdown-${n.label||"icon-dropdown"}-${c}`),h=t.ref(!1),u=t.computed(()=>(n.modelValue??"").trim()||""),p=t.ref(""),y=t.ref(!1),f=t.ref(!1),k=t.ref(!1),m=t.shallowRef([]),g=t.ref(n.pageSize),v=new Set(["default","createLucideIcon","LucideIcon","Icon","icons","toKebabCase","camelCase","children","IconNode"]),L=async()=>{if(f.value||k.value)return;k.value=!0,await new Promise(F=>setTimeout(F,0));const j=Object.keys(r).filter(F=>!v.has(F)).filter(F=>/^[A-Z]/.test(F)).filter(F=>typeof r[F]=="function"||typeof r[F]=="object"&&r[F]).sort((F,R)=>F.localeCompare(R));m.value=j,f.value=!0,k.value=!1},w=t.computed(()=>!f.value||!u.value||!m.value.includes(u.value)?null:r[u.value]),M=t.ref(u.value),C=t.computed(()=>!!u.value&&!h.value),S=t.computed(()=>{if(!f.value)return[];const j=(p.value??"").trim().toLowerCase();return j?m.value.filter(F=>F.toLowerCase().includes(j)):m.value}),b=t.computed(()=>S.value.slice(0,g.value)),x=t.computed(()=>{const j=n.columns;return j<=2?"grid-cols-2":j===3?"grid-cols-3":j===4?"grid-cols-4":j===5?"grid-cols-5":j>=8?"grid-cols-8":"grid-cols-6"});t.computed(()=>n.clearable?"!pr-10":"!pr-3"),t.computed(()=>w.value&&!h.value?"!pl-12":"!pl-3");const I=async()=>{var j;await t.nextTick(),(j=s.value)==null||j.focus()},V=async j=>{if(n.disabled)return;const F=j!==!1;if(y.value){y.value=!1;return}h.value=!0,await L(),F&&(p.value="",M.value=""),g.value=n.pageSize,await I()},B=()=>{h.value=!1,p.value="",M.value=u.value,g.value=n.pageSize},A=async()=>{n.disabled||(h.value?B():await V())};let P=null;const D=async j=>{if(n.disabled)return;o("update:modelValue",null),h.value||await V(!1),P&&clearTimeout(P);const F=M.value;P=setTimeout(()=>{p.value=F},300)},U=j=>{n.disabled||(o("update:modelValue",j),B(),queueMicrotask(()=>{var F;return(F=s.value)==null?void 0:F.blur()}))},T=()=>{n.disabled||(o("update:modelValue",null),o("clear"),y.value=!0,B(),queueMicrotask(()=>{var j;return(j=s.value)==null?void 0:j.focus()}))},H=j=>{if(j.key==="Escape"){j.preventDefault(),B();return}if(j.key==="Enter"&&h.value){const F=S.value[0];F&&(j.preventDefault(),U(F))}},N=j=>{if(!h.value)return;const F=j.target;i.value&&!i.value.contains(F)&&B()},Q=j=>{const F=j.target;F.scrollTop+F.clientHeight>=F.scrollHeight-24&&g.value<S.value.length&&(g.value=Math.min(g.value+n.pageSize,S.value.length))};return t.onMounted(()=>{document.addEventListener("mousedown",N),queueMicrotask(()=>{var j;s.value=((j=i.value)==null?void 0:j.querySelector("input"))??null}),u.value&&L()}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",N),P&&clearTimeout(P)}),t.watch(u,j=>{h.value||(M.value=j)}),t.watch(()=>p.value,()=>{g.value=n.pageSize}),(j,F)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"rootEl",ref:i,class:"!w-full !block !box-border"},[n.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:d.value,class:"!text-sm !font-medium !mb-1 !block"},[t.createTextVNode(t.toDisplayString(n.label)+" ",1),n.required?(t.openBlock(),t.createElementBlock("span",hG,"*")):t.createCommentVNode("",!0)],8,dG)):t.createCommentVNode("",!0),t.createElementVNode("div",uG,[w.value&&!h.value?(t.openBlock(),t.createElementBlock("div",pG,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(w.value),{size:18}))])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("input",{id:d.value,"onUpdate:modelValue":F[0]||(F[0]=R=>M.value=R),readonly:C.value,disabled:n.disabled,placeholder:n.placeholder,class:t.normalizeClass(["w-full h-10 m-0 py-0 rounded-lg border bg-white dark:bg-neutral-900 text-foreground dark:text-gray-300 border-gray-300 dark:border-gray-700 pr-10 outline-none box-border truncate",[w.value&&!h.value?"pl-10":"pl-4",C.value?"cursor-pointer select-none":""]]),onClick:V,onFocus:V,onInput:D,onKeydown:H},null,42,yG),[[t.vModelText,M.value]]),t.createElementVNode("div",fG,[n.clearable&&u.value?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"flex items-center justify-center p-1 m-0 bg-transparent border-0 text-muted-foreground hover:text-foreground transition cursor-pointer outline-none",onMousedown:F[1]||(F[1]=t.withModifiers(()=>{},["prevent"])),onClick:T,title:"Clear"},[t.createVNode(t.unref(it),{class:"h-4 w-4"})],32)):(t.openBlock(),t.createElementBlock("button",{key:1,type:"button",class:"flex items-center justify-center p-1 m-0 bg-transparent border-0 text-muted-foreground hover:text-foreground transition-transform cursor-pointer outline-none",onMousedown:F[2]||(F[2]=t.withModifiers(()=>{},["prevent"])),onClick:A,title:"Open"},[t.createVNode(t.unref(St),{class:"h-4 w-4"})],32))]),h.value?(t.openBlock(),t.createElementBlock("div",kG,[t.createElementVNode("div",{class:"p-2 overflow-auto",style:t.normalizeStyle({maxHeight:n.maxHeight}),onScroll:Q},[k.value?(t.openBlock(),t.createElementBlock("div",mG,[t.createVNode(t.unref(kt),{class:"h-4 w-4 animate-spin"}),F[3]||(F[3]=t.createElementVNode("span",{class:"text-sm"},"Loading icons…",-1))])):f.value&&S.value.length===0?(t.openBlock(),t.createElementBlock("div",gG," Icon tidak ditemukan ")):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["grid gap-2",x.value])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,R=>(t.openBlock(),t.createElementBlock("button",{key:R,type:"button",class:t.normalizeClass(["group rounded-lg border p-2 hover:bg-muted/40 transition",u.value===R?"ring-1 ring-primary":""]),onClick:Z=>U(R),title:R},[t.createElementVNode("div",MG,[t.createElementVNode("div",xG,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(r)[R]),{size:n.iconSize,class:"shrink-0"},null,8,["size"]))]),t.createElementVNode("span",wG,t.toDisplayString(R),1)])],10,bG))),128))],2)),f.value&&S.value.length>0?(t.openBlock(),t.createElementBlock("div",vG," Showing "+t.toDisplayString(b.value.length)+" / "+t.toDisplayString(S.value.length),1)):t.createCommentVNode("",!0)],36)])):t.createCommentVNode("",!0)])],512))}}),CG={key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6"},LG={class:"flex items-center justify-between border-b dark:border-neutral-800 px-6 py-4"},SG={class:"relative overflow-auto p-0"},e_=t.defineComponent({__name:"DCodeImageCropperDialog",props:{modelValue:{type:Boolean},file:{},title:{default:"Resize & Crop Gambar"},description:{default:""},aspectRatio:{default:null},outputWidth:{default:null},outputHeight:{default:null},quality:{default:.92},autoOpenEditor:{type:Boolean,default:!1}},emits:["update:modelValue","done","cancel"],setup(a,{emit:e}){const n=a,o=e,r=t.computed({get:()=>n.modelValue,set:w=>o("update:modelValue",w)}),i=t.ref(null),s=t.ref(null);let c=null,d=!1,h=0,u=null;function p(){if(c){try{c.close()}catch{}c=null,u&&(u.disconnect(),u=null),i.value&&(i.value.innerHTML=""),s.value=null}}async function y(w,M,C,S,b){const x=await new Promise((B,A)=>{const P=URL.createObjectURL(w),D=new Image;D.onload=()=>{URL.revokeObjectURL(P),B(D)},D.onerror=U=>{URL.revokeObjectURL(P),A(U)},D.src=P}),I=document.createElement("canvas");I.width=M,I.height=C;const V=I.getContext("2d");return V?(V.drawImage(x,0,0,M,C),await new Promise(B=>{I.toBlob(A=>B(A||w),S,b)})):w}function f(){if(!c||!s.value)return;const w=c.getPlugin("Dashboard"),M=c.getFile(s.value);!w||!M||requestAnimationFrame(()=>{try{w.openFileEditor(M)}catch{try{w.openFileEditor(s.value)}catch{}}})}async function k(w){if(c){c.cancelAll(),s.value=null;try{const M=c.addFile({name:w.name,type:w.type,data:w,source:"Local",isRemote:!1});s.value=String(M)}catch{}}}function m(){if(!i.value)return;c&&p(),c=new kq({autoProceed:!1,restrictions:{maxNumberOfFiles:1,allowedFileTypes:["image/*"]}});const w=document.documentElement.classList.contains("dark");c.use(y_,{target:i.value,inline:!0,height:480,theme:w?"dark":"light",proudlyDisplayPoweredByUppy:!1,hideUploadButton:!0,hideRetryButton:!0,hidePauseResumeButton:!0,hideCancelButton:!0,showProgressDetails:!1}),u=new MutationObserver(()=>{if(!c)return;const M=document.documentElement.classList.contains("dark"),C=c.getPlugin("Dashboard");C&&C.setOptions({theme:M?"dark":"light"})}),u.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),c.use(mq,{target:y_,quality:n.quality,cropperOptions:{viewMode:1,dragMode:"move",autoCropArea:1,aspectRatio:n.aspectRatio==null?Number.NaN:n.aspectRatio}}),c.on("file-editor:cancel",()=>{r.value=!1}),c.on("file-added",M=>{s.value=(M==null?void 0:M.id)??null,n.autoOpenEditor&&setTimeout(()=>f(),80)}),c.on("file-editor:complete",async M=>{const C=++h;try{const S=M.data,b=S.type||M.type||"image/jpeg";let x=S;if(n.outputWidth&&n.outputHeight&&(x=await y(S,n.outputWidth,n.outputHeight,b,n.quality)),d||C!==h)return;const I=M.name||"edited-image.jpg",V=new File([x],I,{type:b});await g(V,"UPPY_EDITOR_COMPLETE"),o("done",V),r.value=!1}catch{}})}async function g(w,M="CROP_RESULT"){const C=URL.createObjectURL(w);try{const S=await new Promise((b,x)=>{const I=new Image;I.onload=()=>b(I),I.onerror=x,I.src=C});console.group(M),console.log("file:",w),console.table({name:w.name,type:w.type,sizeBytes:w.size,sizeMB:+(w.size/1024/1024).toFixed(3),width:S.naturalWidth,height:S.naturalHeight,ratio:+(S.naturalWidth/S.naturalHeight).toFixed(4)}),console.log("previewUrl:",C),console.groupEnd()}finally{URL.revokeObjectURL(C)}}t.watch(r,async w=>{d=!w,h++,w?(await t.nextTick(),m(),n.file&&await k(n.file)):p()},{flush:"post"}),t.watch(()=>n.file,async w=>{r.value&&w&&(await t.nextTick(),await k(w))}),t.onBeforeUnmount(()=>{d=!0,h++,p()});const v=w=>{w.key==="Escape"&&r.value&&(r.value=!1)};t.watch(r,w=>{w?globalThis.addEventListener("keydown",v):globalThis.removeEventListener("keydown",v)},{immediate:!0});const L=t.ref(!1);return(w,M)=>r.value?(t.openBlock(),t.createElementBlock("div",CG,[t.createVNode(t.Transition,{appear:"","enter-active-class":"duration-300 ease-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fixed inset-0 bg-black/60 backdrop-blur-sm transition-opacity",onClick:M[0]||(M[0]=C=>r.value=!1)})):t.createCommentVNode("",!0)]),_:1}),t.createVNode(t.Transition,{appear:"","enter-active-class":"duration-300 ease-out","enter-from-class":"opacity-0 scale-95 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to-class":"opacity-100 scale-100 translate-y-0 sm:scale-100","leave-active-class":"duration-200 ease-in","leave-from-class":"opacity-100 scale-100 translate-y-0 sm:scale-100","leave-to-class":"opacity-0 scale-95 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:t.withCtx(()=>[r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"relative flex w-fit max-w-4xl flex-col overflow-hidden rounded-xl border border-border dark:border-neutral-800 bg-background dark:bg-neutral-900 shadow-2xl transition-all",onClick:M[4]||(M[4]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",LG,[M[6]||(M[6]=t.createElementVNode("h3",{class:"text-lg font-semibold leading-none tracking-tight dark:text-neutral-100"}," Crop & Resize ",-1)),t.createElementVNode("button",{class:"d-close-btn rounded-sm dark:text-neutral-400 ring-offset-background transition-opacity focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",style:t.normalizeStyle({opacity:L.value?1:.7}),onClick:M[1]||(M[1]=C=>r.value=!1),onMouseenter:M[2]||(M[2]=C=>L.value=!0),onMouseleave:M[3]||(M[3]=C=>L.value=!1)},[t.createVNode(t.unref(it),{class:"h-4 w-4"}),M[5]||(M[5]=t.createElementVNode("span",{class:"sr-only"},"Close",-1))],36)]),t.createElementVNode("div",SG,[t.createElementVNode("div",{ref_key:"dashboardEl",ref:i,class:"uppy-wrap"},null,512)])])):t.createCommentVNode("",!0)]),_:1})])):t.createCommentVNode("",!0)}}),IG={key:0,class:"text-xs text-muted-foreground dark:text-neutral-400"},_G=["src"],AG=["disabled"],BG=["disabled"],VG={class:"text-[11px] text-foreground/90 dark:text-neutral-200 space-y-1 whitespace-nowrap"},zG={class:"flex gap-2"},qG={class:"font-medium truncate"},PG={class:"flex gap-2"},DG={class:"font-medium"},EG={class:"flex gap-2"},TG={class:"font-medium truncate"},t_=Xt(t.defineComponent({__name:"DCodeImageResult",props:{file:{},title:{default:"Hasil Gambar"},description:{default:""},disabled:{type:Boolean,default:!1},previewHeight:{default:190},previewWidth:{default:220},showEdit:{type:Boolean,default:!0},showReplace:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!0}},emits:["edit","replace","remove"],setup(a,{emit:e}){const n=a,o=e,r=t.ref(null);t.watch(()=>n.file,y=>{r.value&&URL.revokeObjectURL(r.value),r.value=y?URL.createObjectURL(y):null},{immediate:!0}),t.onBeforeUnmount(()=>{r.value&&URL.revokeObjectURL(r.value),h&&h.disconnect()});function i(y){const f=y/1024,k=f/1024;return k>=1?`${k.toFixed(2)} MB`:f>=1?`${f.toFixed(1)} KB`:`${y} B`}const s=t.computed(()=>n.file?{name:n.file.name,size:i(n.file.size),type:n.file.type||"unknown"}:null),c=t.ref(!1),d=t.ref(!1);let h=null;const u=()=>{typeof document<"u"&&(d.value=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark"))};t.onMounted(()=>{u(),typeof document<"u"&&(h=new MutationObserver(u),h.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),h.observe(document.body,{attributes:!0,attributeFilter:["class"]}))});const p=t.computed(()=>n.disabled||!c.value?{}:{borderColor:d.value?"hsl(var(--primary) / 0.4)":"hsl(var(--primary) / 0.5)",backgroundColor:d.value?"hsl(var(--primary) / 0.1)":"hsl(var(--primary) / 0.05)"});return(y,f)=>a.file?(t.openBlock(),t.createBlock(KI,{key:0,class:t.normalizeClass([a.disabled?"opacity-60 pointer-events-none":"","dark:bg-neutral-900 dark:border-neutral-800"])},{default:t.withCtx(()=>[t.createVNode(ZI,{class:"pb-2"},{default:t.withCtx(()=>[t.createVNode(YI,{class:"text-sm font-semibold dark:text-neutral-100"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),a.description?(t.openBlock(),t.createElementBlock("div",IG,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)]),_:1}),t.createVNode(XI,{class:"pt-2"},{default:t.withCtx(()=>{var k,m,g;return[t.createElementVNode("div",{class:"d-result-preview-wrap relative rounded-xl overflow-hidden border-2 border-dashed transition-colors duration-200 bg-muted dark:bg-neutral-800/50 border-border dark:border-neutral-700 w-full",style:t.normalizeStyle([{height:`${a.previewHeight}px`},p.value]),onMouseenter:f[2]||(f[2]=v=>c.value=!0),onMouseleave:f[3]||(f[3]=v=>c.value=!1)},[r.value?(t.openBlock(),t.createElementBlock("img",{key:0,src:r.value,alt:"Preview",class:"h-full w-full object-contain"},null,8,_G)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"d-action-buttons",style:t.normalizeStyle({position:"absolute",top:"8px",left:"8px",right:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",zIndex:50,opacity:c.value?1:0,transition:"opacity 0.2s ease-in-out",pointerEvents:c.value?"auto":"none"})},[a.showEdit?(t.openBlock(),t.createElementBlock("button",{key:0,disabled:a.disabled,class:"d-action-btn shadow-md",style:t.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#eab308",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:a.disabled?"not-allowed":"pointer",transition:"all 0.2s",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"}),onClick:f[0]||(f[0]=v=>o("edit"))},[t.createVNode(t.unref(sr),{style:{width:"16px",height:"16px"}})],12,AG)):t.createCommentVNode("",!0),a.showRemove?(t.openBlock(),t.createElementBlock("button",{key:1,disabled:a.disabled,class:"d-action-btn shadow-md",style:t.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ef4444",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:a.disabled?"not-allowed":"pointer",transition:"all 0.2s",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"}),onClick:f[1]||(f[1]=v=>o("remove"))},[t.createVNode(t.unref(_i),{style:{width:"16px",height:"16px"}})],12,BG)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:"d-metadata-overlay",style:t.normalizeStyle({position:"absolute",left:"8px",bottom:"8px",zIndex:10,display:"inline-block",maxWidth:"calc(100% - 16px)",borderRadius:"12px",border:"1px solid rgba(0,0,0,0.1)",padding:"8px 12px",boxShadow:"0 10px 15px -3px rgba(0,0,0,0.1)",backdropFilter:"blur(8px)",transition:"all 0.2s ease-in-out",opacity:c.value?1:0,transform:c.value?"translateY(0) scale(1)":"translateY(4px) scale(0.99)",backgroundColor:d.value?"rgba(38, 38, 38, 0.8)":"rgba(255, 255, 255, 0.8)",color:d.value?"#e5e5e5":"#171717"})},[t.createElementVNode("div",VG,[t.createElementVNode("div",zG,[f[4]||(f[4]=t.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Nama",-1)),t.createElementVNode("span",qG,t.toDisplayString((k=s.value)==null?void 0:k.name),1)]),t.createElementVNode("div",PG,[f[5]||(f[5]=t.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Ukuran",-1)),t.createElementVNode("span",DG,t.toDisplayString((m=s.value)==null?void 0:m.size),1)]),t.createElementVNode("div",EG,[f[6]||(f[6]=t.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Tipe",-1)),t.createElementVNode("span",TG,t.toDisplayString((g=s.value)==null?void 0:g.type),1)])])],4)],36)]}),_:1})]),_:1},8,["class"])):t.createCommentVNode("",!0)}}),[["__scopeId","data-v-349b562d"]]),HG={class:"space-y-3"},a_=t.defineComponent({__name:"DCodeImageField",props:{modelValue:{default:null},label:{default:"Upload Gambar"},hint:{default:"Drag & drop atau klik area ini"},disabled:{type:Boolean,default:!1},allowedTypes:{default:null},accept:{default:"image/*"},minSizeMb:{default:null},maxSizeMb:{default:1},title:{default:"Hasil Gambar"},description:{default:""},previewWidth:{default:360},previewHeight:{default:220},aspectRatio:{default:null},outputWidth:{default:null},outputHeight:{default:null},quality:{default:.92},autoOpenEditor:{type:Boolean,default:!0},minWidth:{default:null},minHeight:{default:null},maxWidth:{default:null},maxHeight:{default:null},endpoint:{},uploadFn:{},editUseOriginal:{type:Boolean,default:!1}},emits:["update:modelValue","error","uploaded"],setup(a,{emit:e}){const n=a,o=e,r=t.computed({get:()=>n.modelValue,set:T=>o("update:modelValue",T)}),i=t.ref(!1),s=t.ref(null),c=t.ref(null),d=t.ref(null);function h(T){d.value=T,o("error",T)}function u(){d.value=null}const p=t.computed(()=>{const T=(n.allowedTypes??"").trim();return T?T.split(/[,\s;]+/g).map(N=>N.trim().toLowerCase()).filter(Boolean).map(N=>N.includes("/")||N.startsWith(".")?N:`.${N}`):[]});function y(T){const H=T.lastIndexOf(".");return H>=0?T.slice(H).toLowerCase():""}const f=t.computed(()=>{if(p.value.length){const T=p.value.filter(N=>N.startsWith("."));return[...p.value.filter(N=>N.includes("/")),...T].join(",")}return n.accept||"image/*"}),k=t.computed(()=>p.value.length?p.value.join(", "):n.accept||"image/*");function m(T){if(p.value.length){const N=(T.type||"").toLowerCase(),Q=y(T.name);return p.value.some(j=>j.includes("/")?N===j:j.startsWith(".")?Q===j:Q===`.${j}`)}return(n.accept||"image/*").toLowerCase().includes("image/")?(T.type||"").toLowerCase().startsWith("image/"):!0}function g(T){return T*1024*1024}async function v(T){var H;return(H=T.type)!=null&&H.startsWith("image/")?await new Promise(N=>{const Q=URL.createObjectURL(T),j=new Image;j.onload=()=>{URL.revokeObjectURL(Q),N({w:j.naturalWidth,h:j.naturalHeight})},j.onerror=()=>{URL.revokeObjectURL(Q),N(null)},j.src=Q}):null}async function L(T){if(!(n.minWidth!=null||n.minHeight!=null||n.maxWidth!=null||n.maxHeight!=null))return null;const N=await v(T);return N?n.minWidth!=null&&N.w<n.minWidth?`Lebar gambar minimal ${n.minWidth}px`:n.minHeight!=null&&N.h<n.minHeight?`Tinggi gambar minimal ${n.minHeight}px`:n.maxWidth!=null&&N.w>n.maxWidth?`Lebar gambar maksimal ${n.maxWidth}px`:n.maxHeight!=null&&N.h>n.maxHeight?`Tinggi gambar maksimal ${n.maxHeight}px`:null:"Gagal membaca dimensi gambar"}async function w(T){return T?m(T)?n.minSizeMb!=null&&T.size<g(n.minSizeMb)?`Ukuran file terlalu kecil. Minimal ${n.minSizeMb}MB`:n.maxSizeMb!=null&&T.size>g(n.maxSizeMb)?`Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB`:await L(T):`only Allowed: ${k.value}`:"File tidak valid"}function M(T){n.disabled||(s.value=T,i.value=!0)}async function C(T){if(n.disabled)return;u();const H=await w(T);if(H){h(H);return}c.value=T,M(T)}const{DCodeApi:S}=Ke(),b=JI(),x=t.ref(!1);t.ref(null);function I(T,H){return!T||!H?null:T.replace(/\/+$/,"")+"/"+H.replace(/^\/+/,"")}function V(T){var j;const H=(T==null?void 0:T.data)??T,N=(j=H==null?void 0:H.data)==null?void 0:j[0];if(!N)return null;const Q=I(N.server,N.url);return{...N,fullUrl:Q?encodeURI(Q):null}}async function B(T){var H;if(n.uploadFn){try{x.value=!0;const N=await n.uploadFn(T);r.value=T,o("uploaded",N)}catch(N){console.error("Upload Error",N),b.error("Upload Failed",(N==null?void 0:N.message)||"Unknown error"),h((N==null?void 0:N.message)||"Upload Failed")}finally{x.value=!1}return}if(!((H=n.endpoint)!=null&&H.apiUrl)){r.value=T;return}if(typeof S!="function"){h("useApi() must expose DCodeApi()");return}try{x.value=!0;const N=new FormData;N.append("doc",T);const Q=(n.endpoint.apiMethod||"POST").toUpperCase(),j=n.endpoint.apiUrl,F=await S("","",N,{_url:j,_method:Q,withCredentials:!0,transformRequest:[(Z,J)=>(J&&(delete J["Content-Type"],delete J["content-type"]),Z)]}),R=(F==null?void 0:F.data)??F;V(R),r.value=T,o("uploaded",R)}catch(N){console.error("Upload Error",N),b.error("Upload Failed",(N==null?void 0:N.message)||"Unknown error"),h((N==null?void 0:N.message)||"Upload Failed")}finally{x.value=!1}}async function A(T){var H;u(),n.uploadFn||(H=n.endpoint)!=null&&H.apiUrl?await B(T):r.value=T,i.value=!1,s.value=null}function P(){i.value=!1,s.value=null}async function D(){if(!r.value)return;u();const T=n.editUseOriginal?c.value??r.value:r.value,H=await w(T);if(H){h(H);return}M(T)}function U(){u(),r.value=null,s.value=null,i.value=!1,c.value=null}return t.watch(()=>n.modelValue,T=>{T&&!c.value&&(c.value=T),T||(c.value=null)},{immediate:!0}),(T,H)=>(t.openBlock(),t.createElementBlock("div",HG,[r.value?(t.openBlock(),t.createBlock(t_,{key:1,file:r.value,title:a.label,description:a.description,"preview-width":a.previewWidth,disabled:a.disabled,"show-edit":!0,"show-remove":!0,"show-replace":!1,onEdit:D,onRemove:U,"aspect-ratio":16/9},null,8,["file","title","description","preview-width","disabled"])):(t.openBlock(),t.createBlock(cS,{key:0,label:a.label,hint:a.hint,accept:f.value,maxSizeMb:a.maxSizeMb,disabled:a.disabled,onPicked:C,error:d.value,onError:H[0]||(H[0]=N=>h(N))},null,8,["label","hint","accept","maxSizeMb","disabled","error"])),t.createVNode(e_,{modelValue:i.value,"onUpdate:modelValue":H[1]||(H[1]=N=>i.value=N),file:s.value,title:a.title,description:a.description,"auto-open-editor":a.autoOpenEditor,"aspect-ratio":a.aspectRatio,"output-width":a.outputWidth,"output-height":a.outputHeight,quality:a.quality,onDone:A,onCancel:P},null,8,["modelValue","file","title","description","auto-open-editor","aspect-ratio","output-width","output-height","quality"])]))}}),n_=t.defineComponent({name:"DCodeLabel",inheritAttrs:!1,__name:"DCodeLabel",props:{label:{},text:{},textSize:{},textType:{},icon:{},iconClass:{}},setup(a){const e=t.useAttrs(),n=a,o=t.computed(()=>n.icon&&Gt[n.icon]||null),r=t.computed(()=>n.textSize?`text-${n.textSize}`:"text-xs"),i={xs:"w-3 h-3",sm:"w-3.5 h-3.5",base:"w-4 h-4",lg:"w-5 h-5",xl:"w-5 h-5","2xl":"w-6 h-6","3xl":"w-7 h-7","4xl":"w-8 h-8","5xl":"w-10 h-10","6xl":"w-12 h-12"},s=t.computed(()=>i[n.textSize??"xs"]??"w-3 h-3"),c=t.computed(()=>n.textType==="BOLD"?"font-bold":n.textType==="ITALIC"?"italic font-normal":"font-normal"),d=t.computed(()=>{const u=`${r.value} ${c.value} text-slate-600 ml-1 inline-flex items-center gap-1`,p=e.class??"";return[u,p].filter(Boolean).join(" ")}),h=t.computed(()=>{const{class:u,...p}=e;return p});return(u,p)=>(t.openBlock(),t.createElementBlock("span",t.mergeProps({class:d.value},h.value),[o.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{key:0,class:t.normalizeClass(["shrink-0",s.value,a.iconClass])},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(a.label||a.text),1)],16))}}),o_=t.defineComponent({__name:"Input",props:{defaultValue:{},modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(a,{emit:e}){const n=a,r=ks(n,"modelValue",e,{passive:!0,defaultValue:n.defaultValue});return(i,s)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{"onUpdate:modelValue":s[0]||(s[0]=c=>t.isRef(r)?r.value=c:null),class:t.normalizeClass(t.unref(be)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[t.vModelText,t.unref(r)]])}}),jG=["aria-busy"],OG={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},FG={key:0,class:"ml-1 text-destructive"},RG={class:"min-w-0 flex-1 text-left"},NG={key:0,class:"flex flex-wrap gap-1.5"},$G={class:"max-w-[220px] truncate"},UG=["onClick"],WG={key:1,class:"text-muted-foreground truncate"},GG={class:"flex items-center gap-2 shrink-0"},KG={key:0,class:"p-2 border-b border-gray-200 dark:border-gray-800"},XG={key:0,class:"h-full flex items-center justify-center px-3 text-sm text-muted-foreground"},ZG=["disabled","onClick"],YG={class:"truncate"},QG={key:0,class:"text-primary-600 dark:text-primary-400"},JG={key:1,class:"h-full flex items-center justify-center text-sm text-muted-foreground"},eK={key:0},tK={key:1},aK={key:1,class:"text-xs text-destructive"},nK={name:"DCodeMultiSelect"},Oz=t.defineComponent({...nK,name:"DCodeMultiSelect",inheritAttrs:!1,props:{modelValue:{},items:{default:()=>[]},endpoint:{default:void 0},fetchItems:{},autoFetchOnOpen:{type:Boolean,default:!0},autoFetchOnMount:{type:Boolean,default:!1},refreshOnOpen:{type:Boolean,default:!1},label:{default:""},placeholder:{default:"Pilih data…"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Cari…"},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},maxChips:{default:2},maxSelected:{default:3},itemTitle:{type:[String,Function],default:"name"},itemValue:{type:[String,Function],default:"id"},returnObject:{type:Boolean,default:!1},virtual:{type:Boolean,default:!0},itemHeight:{default:40},maxRows:{default:5},overscan:{default:6},error:{default:null},required:{type:Boolean,default:!1}},emits:["update:modelValue","clear","max"],setup(a,{emit:e}){const n=t.useAttrs(),o=e,r=a,i=t.computed(()=>(r.label||n.label)??void 0),s=t.computed(()=>r.visible??!0),c=Math.random().toString(36).slice(2,7),d=t.computed(()=>`app-multiselect-${n.id||i.value||"field"}-${c}`),h=t.computed(()=>{if(r.required)return!0;const K=n.required,te=n["aria-required"];return K===""||K===!0||K==="true"||(te==="true"||te===!0)}),u=t.computed(()=>!!r.error);function p(K){return K?typeof r.itemTitle=="function"?r.itemTitle(K)??"":String((K==null?void 0:K[r.itemTitle])??""):""}function y(K){return K?typeof r.itemValue=="function"?r.itemValue(K):K==null?void 0:K[r.itemValue]:null}function f(K,te){return y(K)??te}const k=t.computed(()=>Array.isArray(r.modelValue)?r.modelValue:[]),m=t.computed(()=>{var K;return!!((K=r.endpoint)!=null&&K.apiUrl)||!!r.fetchItems}),g=t.ref([]),v=t.ref(!1),L=t.ref(!1),w=t.computed(()=>{var te;const K=(te=r.endpoint)==null?void 0:te.apiOptions;if(K)return typeof K=="function"?K():K}),M=t.computed(()=>{var ye,Ve;const K=((ye=r.endpoint)==null?void 0:ye.apiUrl)??"",te=(((Ve=r.endpoint)==null?void 0:Ve.apiMethod)??"GET").toUpperCase(),ne=JSON.stringify(w.value??null);return`${te} ${K} :: ${ne}`}),C=t.computed(()=>m.value?g.value:r.items||[]);async function S(){var K;if(m.value&&!(!((K=r.endpoint)!=null&&K.apiUrl)&&!r.fetchItems)&&!v.value){v.value=!0;try{let te;if(r.fetchItems){const ne=await r.fetchItems(),ye=(ne==null?void 0:ne.data)??ne;te=(ye==null?void 0:ye.data)??ye}else{const{DCodeApi:ne}=Ke();if(typeof ne!="function"){console.error("[DCodeMultiSelectChips] useApi() must expose DCodeApi()");return}const ye={page:1,perPage:100,...w.value||{}},Ve=await ne("","",ye,{_url:r.endpoint.apiUrl,_method:(r.endpoint.apiMethod||"GET").toUpperCase()}),ra=(Ve==null?void 0:Ve.data)??Ve;te=(ra==null?void 0:ra.data)??ra}g.value=Array.isArray(te)?te:[],L.value=!0}catch(te){console.error("[DCodeMultiSelectChips][fetchOptions] ERROR:",te),g.value=[]}finally{v.value=!1}}}t.watch(()=>M.value,()=>{g.value=[],L.value=!1}),t.onMounted(()=>{r.autoFetchOnMount&&m.value&&S()});const b=t.computed(()=>{const K=k.value;if(r.returnObject)return K;const te=new Map;for(const ne of C.value)te.set(y(ne),ne);return K.map(ne=>te.get(ne)??{[r.itemValue]:ne,[r.itemTitle]:String(ne)})}),x=t.computed(()=>r.maxChips===null?b.value:b.value.slice(0,r.maxChips));function I(K){const te=k.value;if(r.returnObject){const ne=y(K);return te.some(ye=>y(ye)===ne)}return te.includes(y(K))}const V=t.computed(()=>{if(r.maxSelected===null||r.maxSelected===void 0)return null;const K=Number(r.maxSelected);return Number.isFinite(K)&&K>0?K:null}),B=t.computed(()=>{const K=V.value;return K===null?!1:k.value.length>=K});function A(K){return!I(K)&&B.value}const P=t.computed(()=>{const K=k.value,te=new Set;if(r.returnObject)for(const ne of K)te.add(y(ne));else for(const ne of K)te.add(ne);return te}),D=t.computed(()=>{const K=P.value;return(C.value||[]).filter(te=>!K.has(y(te)))}),U=t.computed(()=>C.value.length===0?!1:D.value.length===0),T=t.ref(null),H=t.ref(null),N=t.ref(null),Q=t.ref(!1),j=t.ref(""),F=t.ref(0),R=t.ref(0),{floatingStyles:Z}=Q1(T,H,{whileElementsMounted:K1,placement:"bottom-start",middleware:[X1(8),Ds(),Z1({padding:8}),Y1({apply({rects:K,elements:te}){Object.assign(te.floating.style,{width:`${K.reference.width}px`,"--floating-width":`${K.reference.width}px`})}})]}),J=t.computed(()=>Z.value),re=t.computed(()=>{const K=Number(r.maxRows);return Number.isFinite(K)&&K>0?K:5});async function de(){r.disabled||(Q.value=!0,R.value=0,requestAnimationFrame(()=>{N.value&&(N.value.scrollTop=0),F.value=0}),m.value&&r.autoFetchOnOpen&&(r.refreshOnOpen||!L.value)&&!v.value&&await S())}function ue(){Q.value=!1}function ve(){Q.value?ue():de()}function le(K){var ne,ye;if(!Q.value)return;const te=K.target;(ne=T.value)!=null&&ne.contains(te)||(ye=H.value)!=null&&ye.contains(te)||ue()}t.onMounted(()=>document.addEventListener("mousedown",le)),t.onBeforeUnmount(()=>document.removeEventListener("mousedown",le));function G(K){if(r.disabled)return;if(A(K)){o("max");return}const te=[...k.value];if(r.returnObject){const ne=y(K);if(te.some(Ve=>y(Ve)===ne))return;o("update:modelValue",[...te,K])}else{const ne=y(K);if(te.includes(ne))return;o("update:modelValue",[...te,ne])}j.value="",R.value=0,requestAnimationFrame(()=>{N.value&&(N.value.scrollTop=0),F.value=0})}function z(K){if(r.disabled)return;const te=[...k.value];if(r.returnObject){const ne=y(K);o("update:modelValue",te.filter(ye=>y(ye)!==ne))}else{const ne=y(K);o("update:modelValue",te.filter(ye=>ye!==ne))}}function W(){r.disabled||(o("update:modelValue",[]),o("clear"),ue())}const ee=t.computed(()=>{const K=j.value.trim().toLowerCase(),te=D.value;return K?te.filter(ne=>p(ne).toLowerCase().includes(K)):te}),pe=t.computed(()=>ee.value.length);t.watch(Q,K=>{K||(j.value="")});const qe=t.computed(()=>{if(U.value)return r.itemHeight;const K=pe.value;return(K<=0?1:Math.min(K,re.value))*r.itemHeight}),ot=t.computed(()=>r.virtual?pe.value*r.itemHeight:0),Mt=t.computed(()=>r.virtual?Math.ceil(qe.value/r.itemHeight)+r.overscan:pe.value),oa=t.computed(()=>{if(!r.virtual)return 0;const K=Math.floor(F.value/r.itemHeight)-Math.floor(r.overscan/2);return Math.max(0,K)}),Aa=t.computed(()=>r.virtual?Math.min(pe.value,oa.value+Mt.value):pe.value),xt=t.computed(()=>r.virtual?oa.value*r.itemHeight:0),$t=t.computed(()=>{const K=ee.value;return r.virtual?K.slice(oa.value,Aa.value):K});function D1(K){const te=K.target;F.value=te.scrollTop}function E1(K){return K===R.value}function O(K){const te=N.value;if(!te||!r.virtual)return;const ne=K*r.itemHeight,ye=ne+r.itemHeight,Ve=te.scrollTop,ra=te.scrollTop+te.clientHeight;ne<Ve?te.scrollTop=ne:ye>ra&&(te.scrollTop=ye-te.clientHeight)}function ae(K){const te=Math.max(0,pe.value-1);R.value=Math.min(te,Math.max(0,R.value+K)),O(R.value)}function he(){const K=ee.value[R.value];K&&G(K)}const _e=t.computed(()=>r.clearable&&!r.disabled&&b.value.length>0),Pe=t.computed(()=>u.value?"border-red-500 ring-[0.5px] ring-red-500":Q.value?"border-gray-700 ring-[0.5px] ring-gray-700 dark:border-gray-300 dark:ring-gray-300":"");return(K,te)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["flex flex-col gap-1 w-full",t.unref(n).class]),"aria-busy":r.skeleton},[r.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.value?(t.openBlock(),t.createElementBlock("div",OG)):t.createCommentVNode("",!0),te[3]||(te[3]=t.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.value?(t.openBlock(),t.createBlock(t.unref(La),{key:0,for:d.value,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value)+" ",1),h.value?(t.openBlock(),t.createElementBlock("span",FG,"*")):t.createCommentVNode("",!0)]),_:1},8,["for"])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"referenceEl",ref:T,class:"relative"},[t.createVNode(t.unref(Ee),{id:d.value,type:"button",variant:"outline",class:t.normalizeClass(["w-full justify-between h-auto min-h-10 px-3 py-2 transition border",["bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 text-foreground dark:text-gray-300",Pe.value]]),disabled:r.disabled,onClick:ve},{default:t.withCtx(()=>[t.createElementVNode("div",RG,[b.value.length?(t.openBlock(),t.createElementBlock("div",NG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(x.value,(ne,ye)=>(t.openBlock(),t.createBlock(t.unref(_a),{key:`chip-${f(ne,ye)}`,variant:"secondary",class:"gap-1"},{default:t.withCtx(()=>[t.createElementVNode("span",$G,t.toDisplayString(p(ne)),1),r.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("button",{key:0,class:"ml-1 opacity-70 hover:opacity-100",onClick:t.withModifiers(Ve=>z(ne),["stop"]),"aria-label":"Remove"}," ✕ ",8,UG))]),_:2},1024))),128)),r.maxChips!==null&&b.value.length>r.maxChips?(t.openBlock(),t.createBlock(t.unref(_a),{key:0,variant:"secondary"},{default:t.withCtx(()=>[t.createTextVNode(" +"+t.toDisplayString(b.value.length-(r.maxChips??0)),1)]),_:1})):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",WG,t.toDisplayString(r.placeholder),1))]),t.createElementVNode("div",GG,[_e.value?(t.openBlock(),t.createElementBlock("button",{key:0,class:"text-muted-foreground hover:text-foreground",onClick:t.withModifiers(W,["stop"]),"aria-label":"Clear"}," ✕ ")):t.createCommentVNode("",!0),t.createVNode(t.unref(St),{class:"h-4 w-4 text-muted-foreground"})])]),_:1},8,["id","disabled","class"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[Q.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"floatingEl",ref:H,class:"-mt-1 z-[9999] w-[var(--floating-width)] rounded-lg border shadow-lg overflow-hidden bg-white dark:bg-neutral-900 border-gray-200 dark:border-gray-800",style:t.normalizeStyle(J.value)},[r.searchable&&!U.value?(t.openBlock(),t.createElementBlock("div",KG,[t.createVNode(t.unref(o_),{modelValue:j.value,"onUpdate:modelValue":te[0]||(te[0]=ne=>j.value=ne),placeholder:r.searchPlaceholder,class:"h-10",onKeydown:[te[1]||(te[1]=t.withKeys(t.withModifiers(ne=>ae(1),["prevent"]),["down"])),te[2]||(te[2]=t.withKeys(t.withModifiers(ne=>ae(-1),["prevent"]),["up"])),t.withKeys(t.withModifiers(he,["prevent"]),["enter"]),t.withKeys(t.withModifiers(ue,["prevent"]),["esc"])]},null,8,["modelValue","placeholder","onKeydown"])])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"listEl",ref:N,class:"relative overflow-auto",style:t.normalizeStyle({height:qe.value+"px"}),onScroll:D1},[U.value?(t.openBlock(),t.createElementBlock("div",XG," All items have been selected ")):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.virtual?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({height:ot.value+"px"})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.virtual?"absolute left-0 top-0 w-full":""),style:t.normalizeStyle(r.virtual?{transform:`translateY(${xt.value}px)`}:void 0)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList($t.value,(ne,ye)=>(t.openBlock(),t.createElementBlock("button",{key:String(f(ne,oa.value+ye)),type:"button",class:t.normalizeClass(["w-full px-3 text-left text-sm flex items-center justify-between gap-3",[A(ne)?"cursor-not-allowed opacity-50":"hover:bg-neutral-50 dark:hover:bg-neutral-800/60",E1(oa.value+ye)?"bg-neutral-50 dark:bg-neutral-800/60":"",I(ne)?"font-semibold":"font-normal"]]),style:t.normalizeStyle({height:r.itemHeight+"px"}),disabled:r.disabled||A(ne),onClick:Ve=>G(ne)},[t.createElementVNode("span",YG,t.toDisplayString(p(ne)),1),I(ne)?(t.openBlock(),t.createElementBlock("span",QG,"✓")):t.createCommentVNode("",!0)],14,ZG))),128))],6),pe.value===0?(t.openBlock(),t.createElementBlock("div",JG,[v.value?(t.openBlock(),t.createElementBlock("span",eK,"Loading data…")):(t.openBlock(),t.createElementBlock("span",tK,"Tidak ada data"))])):t.createCommentVNode("",!0)],64))],36)],4)):t.createCommentVNode("",!0)]))],512),u.value?(t.openBlock(),t.createElementBlock("p",aK,t.toDisplayString(r.error),1)):t.createCommentVNode("",!0)],64))],10,jG)),[[t.vShow,s.value]])}}),oK={class:"space-y-4"},rK={key:0,class:"space-y-1"},iK={class:"text-base font-semibold text-gray-800"},sK={class:"text-sm text-gray-400"},lK={class:"flex items-center gap-2 flex-nowrap"},cK=["value","disabled","onKeydown","onInput","onPaste"],r_=t.defineComponent({name:"DCodeOtpInput",__name:"DCodeOtpInput",props:{modelValue:{default:""},totalInput:{default:6},default:{default:""},label:{default:""},endpoint:{},submitFn:{}},emits:["updateOtp","update:modelValue","complete","loading","success","error"],setup(a,{emit:e}){const n=a,o=e,r=t.ref([]),i=t.ref([]),s=t.ref(!1),{DCodeApi:c}=Ke(),d=JI(),h=t.computed(()=>{const w=Number(n.totalInput);return w&&w>0?w:6}),u=()=>{i.value=Array.from({length:h.value},(w,M)=>{var C;return((C=n.default)==null?void 0:C[M])??""}),o("updateOtp",i.value.join(""))};u(),t.watch(()=>[n.totalInput,n.default],()=>u());const p=w=>{w<0||w>=h.value||t.nextTick(()=>{var M;return(M=r.value[w])==null?void 0:M.focus()})},y=w=>w.match(/[a-zA-Z0-9]/)?w.match(/[a-zA-Z0-9]/)[0]:"";async function f(w){var M;if(o("complete",w),n.submitFn){try{s.value=!0,o("loading",!0);const C=await n.submitFn(w);o("success",C)}catch(C){console.error("OTP Submit Error",C),d.error("Submit Failed",(C==null?void 0:C.message)||"Unknown error"),o("error",(C==null?void 0:C.message)||"Submit Failed")}finally{s.value=!1,o("loading",!1)}return}if((M=n.endpoint)!=null&&M.apiUrl){if(typeof c!="function"){o("error","useApi() must expose DCodeApi()");return}try{s.value=!0,o("loading",!0);const C=(n.endpoint.apiMethod||"POST").toUpperCase(),S=n.endpoint.apiUrl,b=await c("","",{otp:w},{_url:S,_method:C,withCredentials:!0}),x=(b==null?void 0:b.data)??b;o("success",x)}catch(C){console.error("OTP Submit Error",C),d.error("Submit Failed",(C==null?void 0:C.message)||"Unknown error"),o("error",(C==null?void 0:C.message)||"Submit Failed")}finally{s.value=!1,o("loading",!1)}}}const k=(w,M)=>{i.value[w]=y(M);const C=i.value.join("");o("updateOtp",C),o("update:modelValue",C),C.length===h.value&&f(C)},m=(w,M)=>{const C=w.key,S=/^\d$/.test(C),b=/^[a-zA-Z]$/.test(C);if(C==="Backspace"){if(w.preventDefault(),i.value[M]){k(M,"");return}M>0&&(k(M-1,""),p(M-1));return}if(C==="ArrowLeft"){w.preventDefault(),p(M-1);return}if(C==="ArrowRight"){w.preventDefault(),p(M+1);return}if(S||b){w.preventDefault(),k(M,C),M<h.value-1&&p(M+1);return}C.length===1&&w.preventDefault()},g=(w,M)=>{const C=w.target,S=C.value??"",b=y(S);C.value=b,k(M,b),b&&M<h.value-1&&p(M+1)},v=(w,M)=>{var I;w.preventDefault();const S=(((I=w.clipboardData)==null?void 0:I.getData("text"))??"").replaceAll(/[^a-zA-Z0-9]/g,"");if(!S)return;let b=M;for(const V of S){if(b>=h.value)break;i.value[b]=V,b++}const x=i.value.join("");o("updateOtp",x),o("update:modelValue",x),x.length===h.value&&f(x),p(Math.min(b,h.value-1))},L=w=>M=>{r.value[w]=(M==null?void 0:M.$el)??M};return(w,M)=>(t.openBlock(),t.createElementBlock("div",oK,[n.label||h.value?(t.openBlock(),t.createElementBlock("div",rK,[t.createElementVNode("h6",iK,t.toDisplayString(n.label||"Masukkan kode keamanan"),1),t.createElementVNode("p",sK," Ketik "+t.toDisplayString(h.value)+" digit kode verifikasi Anda ",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",lK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,C=>(t.openBlock(),t.createElementBlock("input",{key:C,ref_for:!0,ref:L(C-1),value:i.value[C-1]||"",type:"text",inputmode:"text",maxlength:"1",autocomplete:"one-time-code","aria-label":"`OTP digit ${i}`",placeholder:"*",disabled:s.value,class:t.normalizeClass(["w-12 h-12 flex-none text-center text-xl font-bold rounded-xl border-2 transition-all duration-200 box-border p-0","focus:outline-none focus:scale-105 disabled:opacity-50 disabled:cursor-not-allowed",i.value[C-1]?"border-blue-500 bg-blue-50 text-blue-700 shadow-sm shadow-blue-100":"border-gray-200 bg-gray-50 text-gray-400 focus:border-blue-400 focus:bg-white focus:shadow-md focus:shadow-blue-50"]),onKeydown:S=>m(S,C-1),onInput:S=>g(S,C-1),onPaste:S=>v(S,C-1)},null,42,cK))),128))])]))}}),dK={class:"w-full"},hK={key:0,class:"flex items-center justify-between mb-2"},uK={key:0,class:"text-sm font-medium text-gray-700"},pK={key:1,class:"text-sm text-gray-600"},yK={name:"DCodeProgress"},Fz=t.defineComponent({...yK,name:"DCodeProgress",inheritAttrs:!1,props:{modelValue:{default:0},max:{default:100},label:{default:""},showValue:{type:Boolean,default:!1},color:{default:"blue"},size:{default:"md"},striped:{type:Boolean,default:!1},animated:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:e}){const n=a,o=t.computed(()=>Math.min(n.modelValue/n.max*100,100)),r=t.computed(()=>["w-full rounded-full overflow-hidden",{sm:"h-1",md:"h-2",lg:"h-3"}[n.size],"bg-gray-200"].join(" ")),i=t.computed(()=>{const c={blue:"bg-blue-500",green:"bg-green-500",red:"bg-red-500",yellow:"bg-yellow-500",purple:"bg-purple-500",gray:"bg-gray-500"},d=["h-full transition-all duration-300 ease-out",c[n.color]||c.blue];return n.striped&&d.push("bg-gradient-to-r from-transparent via-white/20 to-transparent"),n.animated&&d.push("animate-pulse"),d.join(" ")}),s=t.computed(()=>`${Math.round(o.value)}%`);return(c,d)=>(t.openBlock(),t.createElementBlock("div",dK,[a.label||a.showValue?(t.openBlock(),t.createElementBlock("div",hK,[a.label?(t.openBlock(),t.createElementBlock("span",uK,t.toDisplayString(a.label),1)):t.createCommentVNode("",!0),a.showValue?(t.openBlock(),t.createElementBlock("span",pK,t.toDisplayString(s.value),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.value)},[t.createElementVNode("div",{class:t.normalizeClass(i.value),style:t.normalizeStyle({width:`${o.value}%`})},null,6)],2)]))}}),fK={key:0,class:"fixed top-0 left-0 right-0 z-[10000] h-[3px]"},Rz=Xt(t.defineComponent({name:"DCodeProgressBar",__name:"DCodeProgressBar",props:{isApiLoading:{type:Boolean,default:!1},apiProgress:{default:0}},setup(a){return(e,n)=>(t.openBlock(),t.createBlock(t.Transition,{name:"fade"},{default:t.withCtx(()=>[a.isApiLoading?(t.openBlock(),t.createElementBlock("div",fK,[t.createElementVNode("div",{class:"h-full bg-primary-600 shadow-[0_0_15px_rgba(37,99,235,0.8)] transition-all duration-300 ease-out",style:t.normalizeStyle({width:`${a.apiProgress}%`})},null,4)])):t.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-85c68054"]]),kK={class:"grid gap-3"},mK={key:0,class:"ml-1 text-destructive"},gK={class:"flex flex-col"},bK={key:0,class:"flex items-center gap-2 text-sm text-gray-500 mb-2"},MK={class:"relative flex-shrink-0 mt-0.5"},xK=["id","name","value","checked","disabled","required","onChange"],wK=["onClick"],vK=["for"],CK={key:0,class:"ml-1 text-red-500"},LK={key:1,class:"flex items-center gap-1 text-sm text-red-500 mt-1"},Nz=t.defineComponent({name:"DCodeRadio",inheritAttrs:!1,__name:"DCodeRadio",props:{modelValue:{default:void 0},label:{default:""},itemTitle:{default:"name"},itemValue:{default:"id"},options:{default:()=>[]},apiUrl:{default:""},apiMethod:{default:"GET"},endpoint:{},dataPath:{default:""},layout:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{default:null},size:{default:"md"},color:{default:"blue"},model:{default:"id"},id:{default:""}},emits:["update:modelValue","change"],setup(a,{emit:e}){t.useAttrs();const{apiUrl:n}=Ke(),o=e,r=a,i=t.ref([]),s=t.ref(!1),c=t.ref(null),d=async()=>{var M,C;const w=((M=r.endpoint)==null?void 0:M.apiUrl)||r.apiUrl;if(w){s.value=!0,c.value=null;try{const S={page:1,perPage:100},b=((C=r.endpoint)==null?void 0:C.apiMethod)||r.apiMethod,x=await n(w,b,S);let I=x;r.dataPath?I=r.dataPath.split(".").reduce((B,A)=>B&&B[A]!=="undefined"?B[A]:void 0,x):typeof x=="object"&&!Array.isArray(x)&&x.data&&(I=x.data),Array.isArray(I)?i.value=I:(console.warn("DCodeRadio: Format response tidak terdeteksi sebagai Array. Gunakan prop 'dataPath'."),c.value="Format respons data tidak valid. Array tidak ditemukan.")}catch(S){console.error("DCodeRadio fetch error:",S),c.value="Gagal memuat data dari endpoint."}finally{s.value=!1}}};t.onMounted(()=>{var w;((w=r.endpoint)!=null&&w.apiUrl||r.apiUrl)&&d()});const h=t.computed(()=>{if(r.options&&r.options.length>0)return r.options;if(i.value.length>0)return i.value;const w=r.itemValue||r.model||"id",M=r.itemTitle||(r.label===""?"name":r.label);return M&&r.label!==""?[{[w]:w,[M]:M}]:[]}),u=w=>{if(typeof w!="object")return w;const M=r.itemValue||r.model||"id";return w[M]},p=w=>{if(typeof w!="object")return String(w);const M=r.itemTitle||"name";return w[M]},y=t.computed(()=>r.model||`radio-group-${Math.random().toString(36).substr(2,9)}`),f=t.computed(()=>!!r.error||!!c.value),k=t.computed(()=>r.error||c.value),m=w=>w==null?r.modelValue===w:String(r.modelValue)===String(w),g=t.computed(()=>({sm:{radio:"w-3 h-3",label:"text-sm",container:"gap-2"},md:{radio:"w-4 h-4",label:"text-base",container:"gap-2"},lg:{radio:"w-5 h-5",label:"text-lg",container:"gap-3"}})[r.size]),v=(w,M)=>{M.target.checked&&(o("update:modelValue",w),o("change",w))},L=w=>{!r.disabled&&!m(w)&&(o("update:modelValue",w),o("change",w))};return(w,M)=>(t.openBlock(),t.createElementBlock("div",kK,[a.label?(t.openBlock(),t.createBlock(La,{key:0,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.label)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",mK,"*")):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",gK,[s.value?(t.openBlock(),t.createElementBlock("div",bK,[t.createVNode(t.unref(kt),{class:"w-4 h-4 animate-spin"}),M[0]||(M[0]=t.createTextVNode(" Sedang memuat opsi... ",-1))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["flex",a.layout?"flex-row flex-wrap gap-4":"flex-col gap-3"])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,(C,S)=>(t.openBlock(),t.createElementBlock("div",{key:S,class:t.normalizeClass(["flex items-start",g.value.container,a.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"])},[t.createElementVNode("div",MK,[t.createElementVNode("input",{id:a.id?`${a.id}-${S}`:`${y.value}-${S}`,name:y.value,type:"radio",value:u(C),checked:m(u(C)),disabled:a.disabled,required:a.required&&S===0,onChange:b=>v(u(C),b),class:"w-5 h-5 text-blue-600 focus:ring-blue-500 border-gray-300"},null,40,xK)]),t.createElementVNode("div",{class:"flex-1 min-w-0",onClick:b=>L(u(C))},[t.createElementVNode("label",{for:a.id?`${a.id}-${S}`:`${y.value}-${S}`,class:t.normalizeClass([g.value.label,"font-medium cursor-pointer select-none text-foreground dark:text-gray-300",a.disabled?"cursor-not-allowed opacity-50":""])},[t.createTextVNode(t.toDisplayString(p(C))+" ",1),a.required&&h.value.length===1&&a.label?(t.openBlock(),t.createElementBlock("span",CK,"*")):t.createCommentVNode("",!0)],10,vK)],8,wK)],2))),128))],2),f.value&&k.value?(t.openBlock(),t.createElementBlock("div",LK,[t.createVNode(t.unref(It),{class:"w-4 h-4 flex-shrink-0"}),t.createTextVNode(" "+t.toDisplayString(k.value),1)])):t.createCommentVNode("",!0)])]))}}),SK={class:"grid gap-3"},IK={key:0,class:"ml-1 text-destructive"},_K={class:"flex flex-col"},AK={key:0,class:"flex items-center gap-2 text-sm text-gray-500 dark:text-neutral-400 mb-2"},BK=["onClick"],VK=["id","name","value","checked","disabled","required","onChange"],zK={key:1,class:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20"},qK=["for"],PK={key:0,class:"ml-1 text-red-500"},DK={key:1,class:"flex items-center gap-1 text-sm text-red-500 mt-2"},$z=t.defineComponent({name:"DCodeRadioCustom",inheritAttrs:!1,__name:"DCodeRadioCustom",props:{modelValue:{default:void 0},icon:{},itemTitle:{default:"name"},itemValue:{default:"id"},label:{default:""},options:{default:()=>[]},apiUrl:{default:""},apiMethod:{default:"GET"},endpoint:{},dataPath:{default:""},layout:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{default:null},size:{default:"md"},color:{default:"blue"},model:{default:"id"},id:{default:""}},emits:["update:modelValue","change"],setup(a,{emit:e}){t.useAttrs();const{apiUrl:n}=Ke(),o=e,r=a,i=t.ref(r.modelValue??void 0);t.watch(()=>r.modelValue,I=>{i.value=I},{immediate:!0});const s=t.ref([]),c=t.ref(!1),d=t.ref(null),h=async()=>{var V,B;const I=((V=r.endpoint)==null?void 0:V.apiUrl)||r.apiUrl;if(I){c.value=!0,d.value=null;try{const A={page:1,perPage:100},P=((B=r.endpoint)==null?void 0:B.apiMethod)||r.apiMethod,D=await n(I,P,A);let U=D;r.dataPath?U=r.dataPath.split(".").reduce((H,N)=>H&&H[N]!=="undefined"?H[N]:void 0,D):typeof D=="object"&&!Array.isArray(D)&&D.data&&(U=D.data),Array.isArray(U)?s.value=U:(console.warn("DCodeRadioCustom: Format response tidak terdeteksi sebagai Array. Gunakan prop 'dataPath'."),d.value="Format respons data tidak valid. Array tidak ditemukan.")}catch(A){console.error("DCodeRadioCustom fetch error:",A),d.value="Gagal memuat data dari endpoint."}finally{c.value=!1}}},u=t.ref(!1);let p=null;const y=()=>{typeof document<"u"&&(u.value=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark"))};t.onMounted(()=>{var I;((I=r.endpoint)!=null&&I.apiUrl||r.apiUrl)&&h(),y(),typeof document<"u"&&(p=new MutationObserver(y),p.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),p.observe(document.body,{attributes:!0,attributeFilter:["class"]}))}),t.onBeforeUnmount(()=>{p&&p.disconnect()});const f=t.computed(()=>{if(r.options&&r.options.length>0)return r.options;if(s.value.length>0)return s.value;const I=r.itemValue||r.model||"id",V=r.itemTitle||(r.label===""?"name":r.label);return V&&r.label!==""?[{[I]:I,[V]:V}]:[]}),k=I=>{if(typeof I!="object")return I;const V=r.itemValue||r.model||"id";return I[V]},m=I=>{if(typeof I!="object")return String(I);const V=r.itemTitle||"name";return I[V]},g=Math.random().toString(36).slice(2,7),v=t.computed(()=>r.id?`radio-custom-${r.id}`:`radio-custom-${r.model}-${g}`),L=t.computed(()=>!!r.error||!!d.value),w=t.computed(()=>r.error||d.value),M=I=>{const V=i.value;return I==null?V===I:String(V)===String(I)},C=t.computed(()=>({sm:{radio:"w-3 h-3",label:"text-sm",container:"gap-2"},md:{radio:"w-4 h-4",label:"text-base",container:"gap-2"},lg:{radio:"w-5 h-5",label:"text-lg",container:"gap-3"}})[r.size]),S=t.computed(()=>r.icon&&Gt[r.icon]||null),b=(I,V)=>{V.target.checked&&(i.value=I,o("update:modelValue",I),o("change",I))},x=I=>{r.disabled||M(I)||(i.value=I,o("update:modelValue",I),o("change",I))};return(I,V)=>(t.openBlock(),t.createElementBlock("div",SK,[a.label?(t.openBlock(),t.createBlock(La,{key:0,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.label)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",IK,"*")):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",_K,[c.value?(t.openBlock(),t.createElementBlock("div",AK,[t.createVNode(t.unref(kt),{class:"w-4 h-4 animate-spin"}),V[0]||(V[0]=t.createTextVNode(" Sedang memuat opsi... ",-1))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["grid",a.layout?"grid-cols-2 sm:grid-cols-3":"grid-cols-1","gap-3"])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(B,A)=>(t.openBlock(),t.createElementBlock("div",{key:A,class:t.normalizeClass(["relative flex flex-col items-center justify-center gap-2 p-4 rounded-xl border-2 transition-all duration-200",M(k(B))?u.value?"border-primary-500 bg-primary-500/10 shadow-none":"border-primary-500 bg-primary-50 shadow-md shadow-primary-100":u.value?"border-neutral-700 bg-neutral-800 hover:border-neutral-600":"border-gray-200 bg-white hover:border-gray-300 hover:shadow-sm",a.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"]),onClick:P=>!a.disabled&&x(k(B))},[t.createElementVNode("input",{id:a.id?`${a.id}-${A}`:`${v.value}-${A}`,name:v.value,type:"radio",value:k(B),checked:M(k(B)),disabled:a.disabled,required:a.required&&A===0,onChange:P=>b(k(B),P),class:"sr-only",tabindex:"-1"},null,40,VK),t.createElementVNode("div",{class:t.normalizeClass(["w-10 h-10 rounded-full flex items-center justify-center transition-all duration-200",M(k(B))?u.value?"bg-primary-500/25 text-primary-400":"bg-primary-100 text-primary-600":u.value?"bg-neutral-700 text-neutral-500":"bg-gray-100 text-gray-400"])},[S.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.value),{key:0,class:"w-6 h-6"})):(t.openBlock(),t.createElementBlock("svg",zK,[...V[1]||(V[1]=[t.createElementVNode("circle",{cx:"10",cy:"10",r:"6"},null,-1)])]))],2),t.createElementVNode("label",{for:a.id?`${a.id}-${A}`:`${v.value}-${A}`,class:t.normalizeClass([C.value.label,"font-medium text-center leading-tight select-none transition-colors duration-200",M(k(B))?u.value?"text-primary-400":"text-primary-700":u.value?"text-neutral-300":"text-gray-700",a.disabled?"cursor-not-allowed":"cursor-pointer"])},[t.createTextVNode(t.toDisplayString(m(B))+" ",1),a.required&&f.value.length===1&&a.label?(t.openBlock(),t.createElementBlock("span",PK,"*")):t.createCommentVNode("",!0)],10,qK)],10,BK))),128))],2),L.value&&w.value?(t.openBlock(),t.createElementBlock("div",DK,[t.createVNode(t.unref(It),{class:"w-4 h-4 flex-shrink-0"}),t.createTextVNode(" "+t.toDisplayString(w.value),1)])):t.createCommentVNode("",!0)])]))}}),EK={key:0,class:"ml-1 text-destructive"},TK={class:"relative w-full"},HK={key:0,class:"mb-2 flex items-center justify-between"},jK={class:"text-sm text-muted-foreground"},OK={class:"text-sm font-medium text-foreground"},FK={class:"text-sm text-muted-foreground"},RK={class:"relative"},NK=["id","value","min","max","step","disabled","placeholder"],$K={key:1,class:"relative mt-2"},UK={class:"text-xs text-muted-foreground mt-1"},WK={key:1,class:"flex items-center gap-1 text-sm text-destructive"},GK={name:"DCodeSlider"},i_=t.defineComponent({...GK,name:"DCodeSlider",inheritAttrs:!1,props:{modelValue:{default:0},min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1},label:{default:""},placeholder:{default:""},required:{type:Boolean,default:!1},error:{default:null},showValue:{type:Boolean,default:!0},valuePrefix:{default:""},valueSuffix:{default:""},marks:{default:()=>[]},color:{default:"blue"},size:{default:"md"}},emits:["update:modelValue","change","input"],setup(a,{emit:e}){const n=t.useAttrs(),o=e,r=a,i=t.ref(),s=t.ref(!1),c=t.computed(()=>!!r.error),d=t.computed(()=>`slider-${Math.random().toString(36).substr(2,9)}`),h=t.computed(()=>(r.label||n.label)??void 0),u=t.computed(()=>!0),p=t.computed(()=>{const C={sm:"h-2",md:"h-2.5",lg:"h-3"},S={blue:"accent-blue-500",green:"accent-green-500",red:"accent-red-500",yellow:"accent-yellow-500",purple:"accent-purple-500",gray:"accent-gray-500"};return["w-full appearance-none bg-transparent rounded-lg outline-none transition-all cursor-pointer relative z-10","disabled:opacity-50 disabled:cursor-not-allowed",C[r.size],S[r.color]||S.blue,c.value?"accent-red-500":"",n.class].filter(Boolean).join(" ")}),y=t.computed(()=>["appearance-none bg-white border-2 border-current rounded-full cursor-pointer transition-all","hover:scale-110 focus:scale-110","shadow-md hover:shadow-lg focus:shadow-lg","focus:outline-none focus:ring-2 focus:ring-offset-2",{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[r.size],r.color==="blue"?"focus:ring-blue-500":r.color==="green"?"focus:ring-green-500":r.color==="red"?"focus:ring-red-500":r.color==="yellow"?"focus:ring-yellow-500":r.color==="purple"?"focus:ring-purple-500":"focus:ring-gray-500"].join(" ")),f=t.computed(()=>`${r.valuePrefix}${r.modelValue}${r.valueSuffix}`),k=t.computed(()=>{const C=r.max-r.min;return(r.modelValue-r.min)/C*100}),m=C=>{const S=C.target,b=parseFloat(S.value);o("update:modelValue",b),o("input",b)},g=C=>{const S=C.target,b=parseFloat(S.value);o("change",b)},v=()=>{s.value=!0},L=()=>{s.value=!1},w=C=>{const S=r.max-r.min;return(C-r.min)/S*100},M=t.computed(()=>{const C={sm:16,md:20,lg:24};return`
|
|
8565
8565
|
input[type="range"]::-webkit-slider-thumb {
|
|
8566
8566
|
${y.value}
|
|
8567
8567
|
width: ${C[r.size]}px;
|
|
@@ -8590,6 +8590,6 @@ For more information, see https://www.reka-ui.com/docs/components/${n}`,c=`Warni
|
|
|
8590
8590
|
input[type="range"]:focus::-moz-range-thumb {
|
|
8591
8591
|
transform: scale(1.1);
|
|
8592
8592
|
}
|
|
8593
|
-
`});return(C,S)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["flex flex-col gap-2 w-full",t.unref(n).class]),"aria-busy":!1},[h.value?(t.openBlock(),t.createBlock(t.unref(La),{key:0,for:d.value,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(h.value)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",EK,"*")):t.createCommentVNode("",!0)]),_:1},8,["for"])):t.createCommentVNode("",!0),t.createElementVNode("div",TK,[a.showValue?(t.openBlock(),t.createElementBlock("div",HK,[t.createElementVNode("span",jK,t.toDisplayString(r.valuePrefix)+t.toDisplayString(a.min)+t.toDisplayString(r.valueSuffix),1),t.createElementVNode("span",OK,t.toDisplayString(f.value),1),t.createElementVNode("span",FK,t.toDisplayString(r.valuePrefix)+t.toDisplayString(a.max)+t.toDisplayString(r.valueSuffix),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",RK,[t.createElementVNode("div",{class:t.normalizeClass(["absolute top-1/2 -translate-y-1/2 w-full h-full bg-gray-200 rounded-lg pointer-events-none",[a.size==="sm"?"h-2":a.size==="md"?"h-2.5":"h-3"]])},[t.createElementVNode("div",{class:t.normalizeClass(["absolute top-0 left-0 h-full rounded-lg transition-all",[a.color==="blue"?"bg-blue-500":a.color==="green"?"bg-green-500":a.color==="red"?"bg-red-500":a.color==="yellow"?"bg-yellow-500":a.color==="purple"?"bg-purple-500":"bg-gray-500"]]),style:t.normalizeStyle({width:`${k.value}%`})},null,6)],2),t.createElementVNode("input",{id:d.value,ref_key:"sliderRef",ref:i,type:"range",value:a.modelValue,min:a.min,max:a.max,step:a.step,disabled:a.disabled,placeholder:a.placeholder,class:t.normalizeClass(p.value),onInput:m,onChange:g,onMousedown:v,onMouseup:L,onTouchstart:v,onTouchend:L},null,42,NK)]),a.marks.length>0?(t.openBlock(),t.createElementBlock("div",$K,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.marks,b=>(t.openBlock(),t.createElementBlock("div",{key:b.value,class:"absolute flex flex-col items-center",style:t.normalizeStyle({left:`${w(b.value)}%`,transform:"translateX(-50%)"})},[S[0]||(S[0]=t.createElementVNode("div",{class:"w-1 h-2 bg-gray-400 rounded-full"},null,-1)),t.createElementVNode("span",UK,t.toDisplayString(b.label),1)],4))),128))])):t.createCommentVNode("",!0)]),c.value?(t.openBlock(),t.createElementBlock("div",WK,[S[1]||(S[1]=t.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),t.createTextVNode(" "+t.toDisplayString(a.error),1)])):t.createCommentVNode("",!0),M.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent("style"),{key:2},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(M.value),1)]),_:1})):t.createCommentVNode("",!0)],2)),[[t.vShow,u.value]])}}),KK={class:"inline-flex items-center gap-3"},XK=["for"],ZK={key:0,class:"text-red-500 ml-1"},YK=["id","name","aria-checked","aria-label","disabled"],QK={key:0,class:"absolute inset-0 flex items-center justify-center"},JK={class:"relative z-10 flex items-center gap-2"},eX=["id","name","aria-checked","aria-label","disabled"],tX={key:0,class:"absolute inset-0 flex items-center justify-center"},aX=["for"],nX={key:0,class:"text-red-500 ml-1"},oX={name:"DCodeSwitch"},s_=t.defineComponent({...oX,props:{modelValue:{type:Boolean,default:!1},label:{default:""},disabled:{type:Boolean,default:!1},size:{default:"medium"},color:{default:"primary"},loading:{type:Boolean,default:!1},labelPosition:{default:"right"},id:{},name:{},required:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1},tooltipActiveText:{default:"Aktif"},tooltipInactiveText:{default:"Tidak Aktif"}},emits:["update:modelValue","change"],setup(a,{emit:e}){const n=a,o=e,r=t.computed({get:()=>n.modelValue,set:p=>{!n.disabled&&!n.loading&&(o("update:modelValue",p),o("change",p))}}),i=t.computed(()=>{switch(n.size){case"small":return"w-9 h-5";case"large":return"w-14 h-7";default:return"w-11 h-6"}}),s=t.computed(()=>{switch(n.size){case"small":return"w-4 h-4";case"large":return"w-6 h-6";default:return"w-5 h-5"}}),c=t.computed(()=>{switch(n.size){case"small":return"translate-x-4";case"large":return"translate-x-7";default:return"translate-x-5"}}),d=t.computed(()=>{if(n.disabled)return"bg-gray-300";if(!r.value)return"bg-gray-200";switch(n.color){case"success":return"bg-green-500";case"warning":return"bg-yellow-500";case"danger":return"bg-red-500";default:return"bg-blue-500"}}),h=()=>{r.value=!r.value},u=t.computed(()=>r.value?n.tooltipActiveText:n.tooltipInactiveText);return(p,y)=>(t.openBlock(),t.createElementBlock("div",KK,[a.label&&a.labelPosition==="left"?(t.openBlock(),t.createElementBlock("label",{key:0,for:a.id,class:t.normalizeClass(["text-sm font-medium text-gray-700 cursor-pointer",{"opacity-50":a.disabled}])},[t.createTextVNode(t.toDisplayString(a.label)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",ZK,"*")):t.createCommentVNode("",!0)],10,XK)):t.createCommentVNode("",!0),t.createVNode(t.unref(sB),null,{default:t.withCtx(()=>[a.showTooltip?(t.openBlock(),t.createBlock(t.unref(rB),{key:0,"delay-duration":200},{default:t.withCtx(()=>[t.createVNode(t.unref(lB),{"as-child":""},{default:t.withCtx(()=>[t.createElementVNode("button",{type:"button",id:a.id,name:a.name,"aria-checked":r.value?"true":"false","aria-label":a.label||"Toggle switch",disabled:a.disabled||a.loading,class:t.normalizeClass([i.value,d.value,"relative inline-flex items-center rounded-full transition-all duration-300 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","hover:scale-105 active:scale-95",{"cursor-not-allowed opacity-50":a.disabled,"cursor-wait":a.loading,"cursor-pointer":!a.disabled&&!a.loading}]),onClick:h},[t.createElementVNode("span",{class:t.normalizeClass([s.value,r.value?c.value:"translate-x-0.5","inline-block transform rounded-full bg-white shadow-lg transition-all duration-300 ease-in-out","hover:shadow-xl flex items-center justify-center"])},[a.loading?(t.openBlock(),t.createElementBlock("span",QK,[...y[0]||(y[0]=[t.createElementVNode("svg",{class:"animate-spin h-3 w-3 text-gray-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),t.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"scale-0 rotate-90 opacity-0","enter-to-class":"scale-100 rotate-0 opacity-100","leave-active-class":"transition-all duration-150 ease-in","leave-from-class":"scale-100 rotate-0 opacity-100","leave-to-class":"scale-0 -rotate-90 opacity-0"},{default:t.withCtx(()=>[r.value&&!a.loading?(t.openBlock(),t.createBlock(t.unref(ca),{key:0,class:t.normalizeClass([a.size==="small"?"w-2.5 h-2.5":a.size==="large"?"w-4 h-4":"w-3 h-3","text-green-600 stroke-[3]"])},null,8,["class"])):!r.value&&!a.loading?(t.openBlock(),t.createBlock(t.unref(it),{key:1,class:t.normalizeClass([a.size==="small"?"w-2.5 h-2.5":a.size==="large"?"w-4 h-4":"w-3 h-3","text-gray-400 stroke-[3]"])},null,8,["class"])):t.createCommentVNode("",!0)]),_:1})],2)],10,YK)]),_:1}),t.createVNode(t.unref(iB),{side:"top","side-offset":8,class:t.normalizeClass(["animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 px-3 py-2 rounded-lg text-sm font-medium shadow-xl border-0",[r.value?"bg-green-600 dark:bg-green-500 text-white":"bg-gray-700 dark:bg-gray-600 text-white"]])},{default:t.withCtx(()=>[t.createElementVNode("span",JK,[t.createElementVNode("span",{class:t.normalizeClass(["inline-block w-2 h-2 rounded-full animate-pulse",r.value?"bg-green-200":"bg-gray-300"])},null,2),t.createTextVNode(" "+t.toDisplayString(u.value),1)])]),_:1},8,["class"])]),_:1})):(t.openBlock(),t.createElementBlock("button",{key:1,type:"button",id:a.id,name:a.name,"aria-checked":r.value?"true":"false","aria-label":a.label||"Toggle switch",disabled:a.disabled||a.loading,class:t.normalizeClass([i.value,d.value,"relative inline-flex items-center rounded-full transition-all duration-300 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","hover:scale-105 active:scale-95",{"cursor-not-allowed opacity-50":a.disabled,"cursor-wait":a.loading,"cursor-pointer":!a.disabled&&!a.loading}]),onClick:h},[t.createElementVNode("span",{class:t.normalizeClass([s.value,r.value?c.value:"translate-x-0.5","inline-block transform rounded-full bg-white shadow-lg transition-all duration-300 ease-in-out","hover:shadow-xl flex items-center justify-center"])},[a.loading?(t.openBlock(),t.createElementBlock("span",tX,[...y[1]||(y[1]=[t.createElementVNode("svg",{class:"animate-spin h-3 w-3 text-gray-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),t.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"scale-0 rotate-90 opacity-0","enter-to-class":"scale-100 rotate-0 opacity-100","leave-active-class":"transition-all duration-150 ease-in","leave-from-class":"scale-100 rotate-0 opacity-100","leave-to-class":"scale-0 -rotate-90 opacity-0"},{default:t.withCtx(()=>[r.value&&!a.loading?(t.openBlock(),t.createBlock(t.unref(ca),{key:0,class:t.normalizeClass([a.size==="small"?"w-2.5 h-2.5":a.size==="large"?"w-4 h-4":"w-3 h-3","text-green-600 stroke-[3]"])},null,8,["class"])):!r.value&&!a.loading?(t.openBlock(),t.createBlock(t.unref(it),{key:1,class:t.normalizeClass([a.size==="small"?"w-2.5 h-2.5":a.size==="large"?"w-4 h-4":"w-3 h-3","text-gray-400 stroke-[3]"])},null,8,["class"])):t.createCommentVNode("",!0)]),_:1})],2)],10,eX))]),_:1}),a.label&&a.labelPosition==="right"?(t.openBlock(),t.createElementBlock("label",{key:1,for:a.id,class:t.normalizeClass(["text-sm font-medium text-gray-700 cursor-pointer",{"opacity-50":a.disabled}])},[t.createTextVNode(t.toDisplayString(a.label)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",nX,"*")):t.createCommentVNode("",!0)],10,aX)):t.createCommentVNode("",!0)]))}}),rX=["aria-busy"],iX={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},sX={key:1,class:"flex justify-end"},lX={key:0,class:"ml-1 text-destructive"},cX={class:"relative w-full group"},dX={key:0,class:"absolute inset-y-0 left-4 flex items-center text-muted-foreground"},hX={key:1},uX={key:1,class:"absolute inset-y-0 right-4 flex items-center"},pX={key:2,class:"absolute inset-y-0 right-4 flex items-center"},yX={key:3,class:"absolute top-full right-0 z-10 text-[11px] text-gray-500 dark:text-gray-400 opacity-0 transition-opacity pointer-events-none group-focus-within:opacity-100"},fX={key:1,class:"text-xs text-destructive"},l_=t.defineComponent({name:"DCodeTextField",inheritAttrs:!1,__name:"DCodeTextField",props:{modelValue:{},prependInner:{},clearable:{type:Boolean},hideClearWhenEmpty:{type:Boolean,default:!0},textCase:{default:"none"},applyTextCaseToValue:{type:Boolean,default:!0},valueType:{default:"free"},allowSpaces:{type:Boolean,default:!0},allowChars:{},pattern:{},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},showCharCount:{type:Boolean,default:!0},returnNumber:{type:Boolean,default:!1},error:{default:null},placeholder:{default:""},icon:{},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","clear"],setup(a,{emit:e}){const n=t.useAttrs(),o=t.computed(()=>{var z;return((z=c.valueType)==null?void 0:z.toLowerCase())==="password"||n.type==="password"}),r=t.ref(!1),i=()=>{r.value=!r.value},s=e,c=a,d=t.computed(()=>n.label);t.computed(()=>c.visible??!0);const h=Math.random().toString(36).slice(2,7),u=t.computed(()=>`app-text-field-${n.id||d.value||"field"}-${h}`),p=t.computed(()=>{const z=n.required,W=n["aria-required"];return z===""||z===!0||z==="true"||(W==="true"||W===!0)}),y=t.computed(()=>{const{label:z,class:W,id:ee,required:pe,"aria-required":qe,...ot}=n;return ot}),f=t.computed(()=>{var W,ee;const z={...y.value};return((W=c.valueType)==null?void 0:W.toLowerCase())==="number"&&(z.type="text",z.inputmode="numeric",z.pattern="[0-9]*"),((ee=c.valueType)==null?void 0:ee.toLowerCase())==="email"&&(z.type="email",z.inputmode="email"),o.value&&(z.type=r.value?"text":"password"),c.disabled&&(z.disabled=!0),z}),k=t.computed(()=>{const z=c.modelValue;return z==null||String(z).length===0}),m=t.computed(()=>c.clearable?c.hideClearWhenEmpty?!k.value:!0:!1),g=t.computed(()=>{switch(c.textCase){case"uppercase":return"uppercase";case"lowercase":return"lowercase";default:return"none"}}),v=t.ref(String(c.modelValue??""));t.watch(()=>c.modelValue,z=>{const W=String(z??"");W!==v.value&&(v.value=W)});const L=t.ref(!1),w=t.ref(!1),M=z=>z.split(/(\s+)/).map(W=>{if(W.trim()==="")return W;const ee=W.toLowerCase();return ee.charAt(0).toUpperCase()+ee.slice(1)}).join(""),C=z=>{const W=z.toLowerCase(),ee=W.search(new RegExp("\\p{L}","u"));return ee<0?W:W.slice(0,ee)+W.charAt(ee).toUpperCase()+W.slice(ee+1)},S=z=>{switch(c.textCase){case"uppercase":return z.toUpperCase();case"lowercase":return z.toLowerCase();case"titlecase":return M(z);case"sentencecase":return C(z);case"none":default:return z}},b=z=>{if(!z)return null;const W=Array.isArray(z)?z.join(""):z;return W?new Set(W):null},x=t.computed(()=>b(c.allowChars)),I=(z,W)=>(z.lastIndex=0,z.test(W)),V=z=>{var Mt;const W=(Mt=c.valueType)==null?void 0:Mt.toLowerCase();if(W==="free"||W==="email"||W==="password")return!0;const ee=z===" ",pe=/\d/.test(z),qe=new RegExp("\\p{L}","u").test(z),ot=new RegExp("\\p{N}","u").test(z);return W==="number"?pe:W==="letter"?qe||c.allowSpaces&&ee:W==="letternumber"?qe||ot||c.allowSpaces&&ee:!0},B=z=>{let W="";for(const ee of z){const pe=!!x.value&&x.value.has(ee);c.pattern&&!pe&&!I(c.pattern,ee)||!pe&&!V(ee)||(W+=ee)}return W},A=t.computed(()=>{const z=n.maxlength??n.maxLength;let W=Number.NaN;return typeof z=="number"?W=z:typeof z=="string"&&(W=Number.parseInt(z,10)),Number.isFinite(W)&&W>0?W:-1}),P=t.computed(()=>v.value.length),D=t.computed(()=>c.showCharCount?A.value>0:!1),U=z=>A.value>0?z.slice(0,A.value):z,T=z=>{const W=B(z),ee=c.applyTextCaseToValue?S(W):W;return U(ee)};let H=null;const N=z=>{var W;if(z==="")return null;if(((W=c.valueType)==null?void 0:W.toLowerCase())==="number"&&c.returnNumber){const ee=Number(z);return Number.isFinite(ee)?ee:null}return z},Q=z=>{v.value=z,s("update:modelValue",N(z))},j=(z,W)=>{const ee=U(W);w.value=!0,z.value=ee,Q(ee),queueMicrotask(()=>w.value=!1)},F=(z,W)=>{const ee=z.selectionStart??z.value.length,pe=z.selectionEnd??z.value.length;if(A.value>0){const qe=z.value.length-(pe-ee),ot=A.value-qe;if(ot<=0)return;W=W.slice(0,ot)}z.setRangeText(W,ee,pe,"end"),j(z,T(z.value))},R=z=>{var pe;if(!H||L.value||w.value||!((pe=z.inputType)!=null&&pe.startsWith("insert")))return;const W=z.data;if(W==null)return;const ee=T(W);ee!==W&&(z.preventDefault(),ee.length>0&&F(H,ee))},Z=z=>{var pe;if(!H||L.value||w.value)return;const W=((pe=z.clipboardData)==null?void 0:pe.getData("text"))??"",ee=T(W);ee!==W&&(z.preventDefault(),ee.length>0&&F(H,ee))},J=z=>{if(!H||L.value||w.value)return;const W=z.target,ee=W.value??"",pe=T(ee);pe===ee?Q(pe):j(W,pe)},re=()=>L.value=!0,de=()=>{if(L.value=!1,!H)return;const z=H.value??"",W=T(z);W===z?Q(W):j(H,W)};t.onMounted(()=>{if(H=document.getElementById(u.value),!H)return;H.addEventListener("beforeinput",R),H.addEventListener("paste",Z),H.addEventListener("input",J),H.addEventListener("compositionstart",re),H.addEventListener("compositionend",de);const z=H.value??"",W=T(z);W===z?Q(W):j(H,W)}),t.onBeforeUnmount(()=>{H&&(H.removeEventListener("beforeinput",R),H.removeEventListener("paste",Z),H.removeEventListener("input",J),H.removeEventListener("compositionstart",re),H.removeEventListener("compositionend",de),H=null)});const ue=()=>{v.value="",H&&(H.value=""),s("update:modelValue",null),s("clear")},ve=t.computed(()=>D.value&&P.value>0),le=t.computed(()=>`${P.value} / ${A.value}`),G=t.computed(()=>!!c.error);return(z,W)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["flex flex-col gap-1 w-full",t.unref(n).class]),"aria-busy":c.skeleton},[c.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[d.value?(t.openBlock(),t.createElementBlock("div",iX)):t.createCommentVNode("",!0),W[1]||(W[1]=t.createElementVNode("div",{class:"relative w-full"},[t.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"})],-1)),D.value?(t.openBlock(),t.createElementBlock("div",sX,[...W[0]||(W[0]=[t.createElementVNode("div",{class:"h-3 w-14 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1)])])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[d.value?(t.openBlock(),t.createBlock(t.unref(La),{key:0,for:u.value,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d.value)+" ",1),p.value?(t.openBlock(),t.createElementBlock("span",lX,"*")):t.createCommentVNode("",!0)]),_:1},8,["for"])):t.createCommentVNode("",!0),t.createElementVNode("div",cX,[c.icon||c.prependInner||z.$slots["prepend-inner"]?(t.openBlock(),t.createElementBlock("div",dX,[t.renderSlot(z.$slots,"prepend-inner",{},()=>[c.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.icon),{key:0,class:"h-4 w-4"})):c.prependInner?(t.openBlock(),t.createElementBlock("span",hX,t.toDisplayString(c.prependInner),1)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createVNode(t.unref(o_),t.mergeProps({id:u.value,modelValue:v.value},f.value,{placeholder:c.placeholder,style:`text-transform: ${g.value}; padding-left: ${c.icon||c.prependInner||z.$slots["prepend-inner"]?"2.5rem":"0.75rem"} !important; padding-right: ${m.value||o.value?"2.5rem":"0.75rem"} !important;`,class:["w-full h-10 flex items-center gap-2 rounded-lg border py-2 bg-white dark:bg-neutral-900 text-foreground dark:text-gray-300 border-gray-300 dark:border-gray-700 focus-within:ring-1 focus-within:ring-white",G.value?"border-destructive focus:ring-destructive focus-visible:ring-destructive focus-visible:ring-[0.5px]":""]}),null,16,["id","modelValue","placeholder","style","class"]),o.value?(t.openBlock(),t.createElementBlock("div",uX,[t.createElementVNode("button",{type:"button",class:"text-muted-foreground hover:text-foreground",tabindex:"-1",onClick:i},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.value?t.unref(ds):t.unref(Us)),{class:"w-4 h-4"}))])])):t.createCommentVNode("",!0),m.value&&!o.value?(t.openBlock(),t.createElementBlock("div",pX,[t.createElementVNode("button",{type:"button",class:"text-muted-foreground hover:text-foreground text-lg leading-none","aria-label":"Clear input",onClick:ue}," ✕ ")])):t.createCommentVNode("",!0),ve.value&&!G.value?(t.openBlock(),t.createElementBlock("p",yX,t.toDisplayString(le.value),1)):t.createCommentVNode("",!0)]),G.value?(t.openBlock(),t.createElementBlock("p",fX,t.toDisplayString(c.error),1)):t.createCommentVNode("",!0)],64))],10,rX)),[[t.vShow,a.visible]])}}),kX=["aria-busy"],mX={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},gX={key:0,class:"ml-1 text-destructive"},bX={class:"relative w-full group"},MX=["id","value"],xX={key:0,class:"absolute top-1 right-2"},wX={key:1,class:"absolute top-full right-0 z-10 text-[11px] text-gray-500 dark:text-gray-400 opacity-0 transition-opacity pointer-events-none group-focus-within:opacity-100"},vX={key:1,class:"text-xs text-destructive"},dS=t.defineComponent({name:"DCodeTextarea",inheritAttrs:!1,__name:"DCodeTextarea",props:{modelValue:{},clearable:{type:Boolean},hideClearWhenEmpty:{type:Boolean,default:!0},textCase:{default:"none"},applyTextCaseToValue:{type:Boolean,default:!0},valueType:{default:"free"},allowSpaces:{type:Boolean,default:!0},allowChars:{},pattern:{},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},showCharCount:{type:Boolean,default:!0},returnNumber:{type:Boolean,default:!1},error:{default:null}},emits:["update:modelValue","clear"],setup(a,{emit:e}){const n=t.useAttrs(),o=e,r=a,i=t.computed(()=>n.label),s=t.computed(()=>r.visible??!0),c=Math.random().toString(36).slice(2,7),d=t.computed(()=>`app-textarea-${n.id||i.value||"field"}-${c}`),h=t.computed(()=>{const G=n.required,z=n["aria-required"];return G===""||G===!0||G==="true"||(z==="true"||z===!0)}),u=t.computed(()=>{const{label:G,class:z,id:W,required:ee,"aria-required":pe,...qe}=n;return qe}),p=t.computed(()=>{const G=n.maxlength;let z=Number.NaN;return typeof G=="number"?z=G:typeof G=="string"&&(z=Number.parseInt(G,10)),Number.isFinite(z)&&z>0?z:-1}),y=G=>p.value>0?G.slice(0,p.value):G,f=t.computed(()=>{const G=r.modelValue;return G==null||String(G).length===0}),k=t.computed(()=>r.clearable?r.hideClearWhenEmpty?!f.value:!0:!1),m=t.ref(String(r.modelValue??""));t.watch(()=>r.modelValue,G=>{const z=String(G??"");z!==m.value&&(m.value=z)});const g=t.ref(!1),v=t.ref(!1),L=G=>G.split(/(\s+)/).map(z=>{if(z.trim()==="")return z;const W=z.toLowerCase();return W.charAt(0).toUpperCase()+W.slice(1)}).join(""),w=G=>{const z=G.toLowerCase(),W=z.search(new RegExp("\\p{L}","u"));return W<0?z:z.slice(0,W)+z.charAt(W).toUpperCase()+z.slice(W+1)},M=G=>{switch(r.textCase){case"uppercase":return G.toUpperCase();case"lowercase":return G.toLowerCase();case"titlecase":return L(G);case"sentencecase":return w(G);case"none":default:return G}},C=t.computed(()=>{switch(r.textCase){case"uppercase":return"uppercase";case"lowercase":return"lowercase";default:return"none"}}),S=G=>{if(!G)return null;const z=Array.isArray(G)?G.join(""):G;return z?new Set(z):null},b=t.computed(()=>S(r.allowChars)),x=(G,z)=>(G.lastIndex=0,G.test(z)),I=G=>{if(G===`
|
|
8593
|
+
`});return(C,S)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["flex flex-col gap-2 w-full",t.unref(n).class]),"aria-busy":!1},[h.value?(t.openBlock(),t.createBlock(t.unref(La),{key:0,for:d.value,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(h.value)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",EK,"*")):t.createCommentVNode("",!0)]),_:1},8,["for"])):t.createCommentVNode("",!0),t.createElementVNode("div",TK,[a.showValue?(t.openBlock(),t.createElementBlock("div",HK,[t.createElementVNode("span",jK,t.toDisplayString(r.valuePrefix)+t.toDisplayString(a.min)+t.toDisplayString(r.valueSuffix),1),t.createElementVNode("span",OK,t.toDisplayString(f.value),1),t.createElementVNode("span",FK,t.toDisplayString(r.valuePrefix)+t.toDisplayString(a.max)+t.toDisplayString(r.valueSuffix),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",RK,[t.createElementVNode("div",{class:t.normalizeClass(["absolute top-1/2 -translate-y-1/2 w-full h-full bg-gray-200 rounded-lg pointer-events-none",[a.size==="sm"?"h-2":a.size==="md"?"h-2.5":"h-3"]])},[t.createElementVNode("div",{class:t.normalizeClass(["absolute top-0 left-0 h-full rounded-lg transition-all",[a.color==="blue"?"bg-blue-500":a.color==="green"?"bg-green-500":a.color==="red"?"bg-red-500":a.color==="yellow"?"bg-yellow-500":a.color==="purple"?"bg-purple-500":"bg-gray-500"]]),style:t.normalizeStyle({width:`${k.value}%`})},null,6)],2),t.createElementVNode("input",{id:d.value,ref_key:"sliderRef",ref:i,type:"range",value:a.modelValue,min:a.min,max:a.max,step:a.step,disabled:a.disabled,placeholder:a.placeholder,class:t.normalizeClass(p.value),onInput:m,onChange:g,onMousedown:v,onMouseup:L,onTouchstart:v,onTouchend:L},null,42,NK)]),a.marks.length>0?(t.openBlock(),t.createElementBlock("div",$K,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.marks,b=>(t.openBlock(),t.createElementBlock("div",{key:b.value,class:"absolute flex flex-col items-center",style:t.normalizeStyle({left:`${w(b.value)}%`,transform:"translateX(-50%)"})},[S[0]||(S[0]=t.createElementVNode("div",{class:"w-1 h-2 bg-gray-400 rounded-full"},null,-1)),t.createElementVNode("span",UK,t.toDisplayString(b.label),1)],4))),128))])):t.createCommentVNode("",!0)]),c.value?(t.openBlock(),t.createElementBlock("div",WK,[S[1]||(S[1]=t.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),t.createTextVNode(" "+t.toDisplayString(a.error),1)])):t.createCommentVNode("",!0),M.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent("style"),{key:2},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(M.value),1)]),_:1})):t.createCommentVNode("",!0)],2)),[[t.vShow,u.value]])}}),KK={class:"inline-flex items-center gap-3"},XK=["for"],ZK={key:0,class:"text-red-500 ml-1"},YK=["id","name","aria-checked","aria-label","disabled"],QK={key:0,class:"absolute inset-0 flex items-center justify-center"},JK={class:"relative z-10 flex items-center gap-2"},eX=["id","name","aria-checked","aria-label","disabled"],tX={key:0,class:"absolute inset-0 flex items-center justify-center"},aX=["for"],nX={key:0,class:"text-red-500 ml-1"},oX={name:"DCodeSwitch"},s_=t.defineComponent({...oX,props:{modelValue:{type:Boolean,default:!1},label:{default:""},disabled:{type:Boolean,default:!1},size:{default:"medium"},color:{default:"primary"},loading:{type:Boolean,default:!1},labelPosition:{default:"right"},id:{},name:{},required:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1},tooltipActiveText:{default:"Aktif"},tooltipInactiveText:{default:"Tidak Aktif"}},emits:["update:modelValue","change"],setup(a,{emit:e}){const n=a,o=e,r=t.computed({get:()=>n.modelValue,set:p=>{!n.disabled&&!n.loading&&(o("update:modelValue",p),o("change",p))}}),i=t.computed(()=>{switch(n.size){case"small":return"w-9 h-5";case"large":return"w-14 h-7";default:return"w-11 h-6"}}),s=t.computed(()=>{switch(n.size){case"small":return"w-4 h-4";case"large":return"w-6 h-6";default:return"w-5 h-5"}}),c=t.computed(()=>{switch(n.size){case"small":return"translate-x-4";case"large":return"translate-x-7";default:return"translate-x-5"}}),d=t.computed(()=>{if(n.disabled)return"bg-gray-300";if(!r.value)return"bg-gray-200";switch(n.color){case"success":return"bg-green-500";case"warning":return"bg-yellow-500";case"danger":return"bg-red-500";default:return"bg-blue-500"}}),h=()=>{r.value=!r.value},u=t.computed(()=>r.value?n.tooltipActiveText:n.tooltipInactiveText);return(p,y)=>(t.openBlock(),t.createElementBlock("div",KK,[a.label&&a.labelPosition==="left"?(t.openBlock(),t.createElementBlock("label",{key:0,for:a.id,class:t.normalizeClass(["text-sm font-medium text-gray-700 cursor-pointer",{"opacity-50":a.disabled}])},[t.createTextVNode(t.toDisplayString(a.label)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",ZK,"*")):t.createCommentVNode("",!0)],10,XK)):t.createCommentVNode("",!0),t.createVNode(t.unref(lB),null,{default:t.withCtx(()=>[a.showTooltip?(t.openBlock(),t.createBlock(t.unref(iB),{key:0,"delay-duration":200},{default:t.withCtx(()=>[t.createVNode(t.unref(cB),{"as-child":""},{default:t.withCtx(()=>[t.createElementVNode("button",{type:"button",id:a.id,name:a.name,"aria-checked":r.value?"true":"false","aria-label":a.label||"Toggle switch",disabled:a.disabled||a.loading,class:t.normalizeClass([i.value,d.value,"relative inline-flex items-center rounded-full transition-all duration-300 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","hover:scale-105 active:scale-95",{"cursor-not-allowed opacity-50":a.disabled,"cursor-wait":a.loading,"cursor-pointer":!a.disabled&&!a.loading}]),onClick:h},[t.createElementVNode("span",{class:t.normalizeClass([s.value,r.value?c.value:"translate-x-0.5","inline-block transform rounded-full bg-white shadow-lg transition-all duration-300 ease-in-out","hover:shadow-xl flex items-center justify-center"])},[a.loading?(t.openBlock(),t.createElementBlock("span",QK,[...y[0]||(y[0]=[t.createElementVNode("svg",{class:"animate-spin h-3 w-3 text-gray-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),t.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"scale-0 rotate-90 opacity-0","enter-to-class":"scale-100 rotate-0 opacity-100","leave-active-class":"transition-all duration-150 ease-in","leave-from-class":"scale-100 rotate-0 opacity-100","leave-to-class":"scale-0 -rotate-90 opacity-0"},{default:t.withCtx(()=>[r.value&&!a.loading?(t.openBlock(),t.createBlock(t.unref(ca),{key:0,class:t.normalizeClass([a.size==="small"?"w-2.5 h-2.5":a.size==="large"?"w-4 h-4":"w-3 h-3","text-green-600 stroke-[3]"])},null,8,["class"])):!r.value&&!a.loading?(t.openBlock(),t.createBlock(t.unref(it),{key:1,class:t.normalizeClass([a.size==="small"?"w-2.5 h-2.5":a.size==="large"?"w-4 h-4":"w-3 h-3","text-gray-400 stroke-[3]"])},null,8,["class"])):t.createCommentVNode("",!0)]),_:1})],2)],10,YK)]),_:1}),t.createVNode(t.unref(sB),{side:"top","side-offset":8,class:t.normalizeClass(["animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 px-3 py-2 rounded-lg text-sm font-medium shadow-xl border-0",[r.value?"bg-green-600 dark:bg-green-500 text-white":"bg-gray-700 dark:bg-gray-600 text-white"]])},{default:t.withCtx(()=>[t.createElementVNode("span",JK,[t.createElementVNode("span",{class:t.normalizeClass(["inline-block w-2 h-2 rounded-full animate-pulse",r.value?"bg-green-200":"bg-gray-300"])},null,2),t.createTextVNode(" "+t.toDisplayString(u.value),1)])]),_:1},8,["class"])]),_:1})):(t.openBlock(),t.createElementBlock("button",{key:1,type:"button",id:a.id,name:a.name,"aria-checked":r.value?"true":"false","aria-label":a.label||"Toggle switch",disabled:a.disabled||a.loading,class:t.normalizeClass([i.value,d.value,"relative inline-flex items-center rounded-full transition-all duration-300 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","hover:scale-105 active:scale-95",{"cursor-not-allowed opacity-50":a.disabled,"cursor-wait":a.loading,"cursor-pointer":!a.disabled&&!a.loading}]),onClick:h},[t.createElementVNode("span",{class:t.normalizeClass([s.value,r.value?c.value:"translate-x-0.5","inline-block transform rounded-full bg-white shadow-lg transition-all duration-300 ease-in-out","hover:shadow-xl flex items-center justify-center"])},[a.loading?(t.openBlock(),t.createElementBlock("span",tX,[...y[1]||(y[1]=[t.createElementVNode("svg",{class:"animate-spin h-3 w-3 text-gray-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[t.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),t.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"scale-0 rotate-90 opacity-0","enter-to-class":"scale-100 rotate-0 opacity-100","leave-active-class":"transition-all duration-150 ease-in","leave-from-class":"scale-100 rotate-0 opacity-100","leave-to-class":"scale-0 -rotate-90 opacity-0"},{default:t.withCtx(()=>[r.value&&!a.loading?(t.openBlock(),t.createBlock(t.unref(ca),{key:0,class:t.normalizeClass([a.size==="small"?"w-2.5 h-2.5":a.size==="large"?"w-4 h-4":"w-3 h-3","text-green-600 stroke-[3]"])},null,8,["class"])):!r.value&&!a.loading?(t.openBlock(),t.createBlock(t.unref(it),{key:1,class:t.normalizeClass([a.size==="small"?"w-2.5 h-2.5":a.size==="large"?"w-4 h-4":"w-3 h-3","text-gray-400 stroke-[3]"])},null,8,["class"])):t.createCommentVNode("",!0)]),_:1})],2)],10,eX))]),_:1}),a.label&&a.labelPosition==="right"?(t.openBlock(),t.createElementBlock("label",{key:1,for:a.id,class:t.normalizeClass(["text-sm font-medium text-gray-700 cursor-pointer",{"opacity-50":a.disabled}])},[t.createTextVNode(t.toDisplayString(a.label)+" ",1),a.required?(t.openBlock(),t.createElementBlock("span",nX,"*")):t.createCommentVNode("",!0)],10,aX)):t.createCommentVNode("",!0)]))}}),rX=["aria-busy"],iX={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},sX={key:1,class:"flex justify-end"},lX={key:0,class:"ml-1 text-destructive"},cX={class:"relative w-full group"},dX={key:0,class:"absolute inset-y-0 left-4 flex items-center text-muted-foreground"},hX={key:1},uX={key:1,class:"absolute inset-y-0 right-4 flex items-center"},pX={key:2,class:"absolute inset-y-0 right-4 flex items-center"},yX={key:3,class:"absolute top-full right-0 z-10 text-[11px] text-gray-500 dark:text-gray-400 opacity-0 transition-opacity pointer-events-none group-focus-within:opacity-100"},fX={key:1,class:"text-xs text-destructive"},l_=t.defineComponent({name:"DCodeTextField",inheritAttrs:!1,__name:"DCodeTextField",props:{modelValue:{},prependInner:{},clearable:{type:Boolean},hideClearWhenEmpty:{type:Boolean,default:!0},textCase:{default:"none"},applyTextCaseToValue:{type:Boolean,default:!0},valueType:{default:"free"},allowSpaces:{type:Boolean,default:!0},allowChars:{},pattern:{},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},showCharCount:{type:Boolean,default:!0},returnNumber:{type:Boolean,default:!1},error:{default:null},placeholder:{default:""},icon:{},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","clear"],setup(a,{emit:e}){const n=t.useAttrs(),o=t.computed(()=>{var z;return((z=c.valueType)==null?void 0:z.toLowerCase())==="password"||n.type==="password"}),r=t.ref(!1),i=()=>{r.value=!r.value},s=e,c=a,d=t.computed(()=>n.label);t.computed(()=>c.visible??!0);const h=Math.random().toString(36).slice(2,7),u=t.computed(()=>`app-text-field-${n.id||d.value||"field"}-${h}`),p=t.computed(()=>{const z=n.required,W=n["aria-required"];return z===""||z===!0||z==="true"||(W==="true"||W===!0)}),y=t.computed(()=>{const{label:z,class:W,id:ee,required:pe,"aria-required":qe,...ot}=n;return ot}),f=t.computed(()=>{var W,ee;const z={...y.value};return((W=c.valueType)==null?void 0:W.toLowerCase())==="number"&&(z.type="text",z.inputmode="numeric",z.pattern="[0-9]*"),((ee=c.valueType)==null?void 0:ee.toLowerCase())==="email"&&(z.type="email",z.inputmode="email"),o.value&&(z.type=r.value?"text":"password"),c.disabled&&(z.disabled=!0),z}),k=t.computed(()=>{const z=c.modelValue;return z==null||String(z).length===0}),m=t.computed(()=>c.clearable?c.hideClearWhenEmpty?!k.value:!0:!1),g=t.computed(()=>{switch(c.textCase){case"uppercase":return"uppercase";case"lowercase":return"lowercase";default:return"none"}}),v=t.ref(String(c.modelValue??""));t.watch(()=>c.modelValue,z=>{const W=String(z??"");W!==v.value&&(v.value=W)});const L=t.ref(!1),w=t.ref(!1),M=z=>z.split(/(\s+)/).map(W=>{if(W.trim()==="")return W;const ee=W.toLowerCase();return ee.charAt(0).toUpperCase()+ee.slice(1)}).join(""),C=z=>{const W=z.toLowerCase(),ee=W.search(new RegExp("\\p{L}","u"));return ee<0?W:W.slice(0,ee)+W.charAt(ee).toUpperCase()+W.slice(ee+1)},S=z=>{switch(c.textCase){case"uppercase":return z.toUpperCase();case"lowercase":return z.toLowerCase();case"titlecase":return M(z);case"sentencecase":return C(z);case"none":default:return z}},b=z=>{if(!z)return null;const W=Array.isArray(z)?z.join(""):z;return W?new Set(W):null},x=t.computed(()=>b(c.allowChars)),I=(z,W)=>(z.lastIndex=0,z.test(W)),V=z=>{var Mt;const W=(Mt=c.valueType)==null?void 0:Mt.toLowerCase();if(W==="free"||W==="email"||W==="password")return!0;const ee=z===" ",pe=/\d/.test(z),qe=new RegExp("\\p{L}","u").test(z),ot=new RegExp("\\p{N}","u").test(z);return W==="number"?pe:W==="letter"?qe||c.allowSpaces&&ee:W==="letternumber"?qe||ot||c.allowSpaces&&ee:!0},B=z=>{let W="";for(const ee of z){const pe=!!x.value&&x.value.has(ee);c.pattern&&!pe&&!I(c.pattern,ee)||!pe&&!V(ee)||(W+=ee)}return W},A=t.computed(()=>{const z=n.maxlength??n.maxLength;let W=Number.NaN;return typeof z=="number"?W=z:typeof z=="string"&&(W=Number.parseInt(z,10)),Number.isFinite(W)&&W>0?W:-1}),P=t.computed(()=>v.value.length),D=t.computed(()=>c.showCharCount?A.value>0:!1),U=z=>A.value>0?z.slice(0,A.value):z,T=z=>{const W=B(z),ee=c.applyTextCaseToValue?S(W):W;return U(ee)};let H=null;const N=z=>{var W;if(z==="")return null;if(((W=c.valueType)==null?void 0:W.toLowerCase())==="number"&&c.returnNumber){const ee=Number(z);return Number.isFinite(ee)?ee:null}return z},Q=z=>{v.value=z,s("update:modelValue",N(z))},j=(z,W)=>{const ee=U(W);w.value=!0,z.value=ee,Q(ee),queueMicrotask(()=>w.value=!1)},F=(z,W)=>{const ee=z.selectionStart??z.value.length,pe=z.selectionEnd??z.value.length;if(A.value>0){const qe=z.value.length-(pe-ee),ot=A.value-qe;if(ot<=0)return;W=W.slice(0,ot)}z.setRangeText(W,ee,pe,"end"),j(z,T(z.value))},R=z=>{var pe;if(!H||L.value||w.value||!((pe=z.inputType)!=null&&pe.startsWith("insert")))return;const W=z.data;if(W==null)return;const ee=T(W);ee!==W&&(z.preventDefault(),ee.length>0&&F(H,ee))},Z=z=>{var pe;if(!H||L.value||w.value)return;const W=((pe=z.clipboardData)==null?void 0:pe.getData("text"))??"",ee=T(W);ee!==W&&(z.preventDefault(),ee.length>0&&F(H,ee))},J=z=>{if(!H||L.value||w.value)return;const W=z.target,ee=W.value??"",pe=T(ee);pe===ee?Q(pe):j(W,pe)},re=()=>L.value=!0,de=()=>{if(L.value=!1,!H)return;const z=H.value??"",W=T(z);W===z?Q(W):j(H,W)};t.onMounted(()=>{if(H=document.getElementById(u.value),!H)return;H.addEventListener("beforeinput",R),H.addEventListener("paste",Z),H.addEventListener("input",J),H.addEventListener("compositionstart",re),H.addEventListener("compositionend",de);const z=H.value??"",W=T(z);W===z?Q(W):j(H,W)}),t.onBeforeUnmount(()=>{H&&(H.removeEventListener("beforeinput",R),H.removeEventListener("paste",Z),H.removeEventListener("input",J),H.removeEventListener("compositionstart",re),H.removeEventListener("compositionend",de),H=null)});const ue=()=>{v.value="",H&&(H.value=""),s("update:modelValue",null),s("clear")},ve=t.computed(()=>D.value&&P.value>0),le=t.computed(()=>`${P.value} / ${A.value}`),G=t.computed(()=>!!c.error);return(z,W)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["flex flex-col gap-1 w-full",t.unref(n).class]),"aria-busy":c.skeleton},[c.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[d.value?(t.openBlock(),t.createElementBlock("div",iX)):t.createCommentVNode("",!0),W[1]||(W[1]=t.createElementVNode("div",{class:"relative w-full"},[t.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"})],-1)),D.value?(t.openBlock(),t.createElementBlock("div",sX,[...W[0]||(W[0]=[t.createElementVNode("div",{class:"h-3 w-14 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1)])])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[d.value?(t.openBlock(),t.createBlock(t.unref(La),{key:0,for:u.value,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d.value)+" ",1),p.value?(t.openBlock(),t.createElementBlock("span",lX,"*")):t.createCommentVNode("",!0)]),_:1},8,["for"])):t.createCommentVNode("",!0),t.createElementVNode("div",cX,[c.icon||c.prependInner||z.$slots["prepend-inner"]?(t.openBlock(),t.createElementBlock("div",dX,[t.renderSlot(z.$slots,"prepend-inner",{},()=>[c.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.icon),{key:0,class:"h-4 w-4"})):c.prependInner?(t.openBlock(),t.createElementBlock("span",hX,t.toDisplayString(c.prependInner),1)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createVNode(t.unref(o_),t.mergeProps({id:u.value,modelValue:v.value},f.value,{placeholder:c.placeholder,style:`text-transform: ${g.value}; padding-left: ${c.icon||c.prependInner||z.$slots["prepend-inner"]?"2.5rem":"0.75rem"} !important; padding-right: ${m.value||o.value?"2.5rem":"0.75rem"} !important;`,class:["w-full h-10 flex items-center gap-2 rounded-lg border py-2 bg-white dark:bg-neutral-900 text-foreground dark:text-gray-300 border-gray-300 dark:border-gray-700 focus-within:ring-1 focus-within:ring-white",G.value?"border-destructive focus:ring-destructive focus-visible:ring-destructive focus-visible:ring-[0.5px]":""]}),null,16,["id","modelValue","placeholder","style","class"]),o.value?(t.openBlock(),t.createElementBlock("div",uX,[t.createElementVNode("button",{type:"button",class:"text-muted-foreground hover:text-foreground",tabindex:"-1",onClick:i},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.value?t.unref(ds):t.unref(Us)),{class:"w-4 h-4"}))])])):t.createCommentVNode("",!0),m.value&&!o.value?(t.openBlock(),t.createElementBlock("div",pX,[t.createElementVNode("button",{type:"button",class:"text-muted-foreground hover:text-foreground text-lg leading-none","aria-label":"Clear input",onClick:ue}," ✕ ")])):t.createCommentVNode("",!0),ve.value&&!G.value?(t.openBlock(),t.createElementBlock("p",yX,t.toDisplayString(le.value),1)):t.createCommentVNode("",!0)]),G.value?(t.openBlock(),t.createElementBlock("p",fX,t.toDisplayString(c.error),1)):t.createCommentVNode("",!0)],64))],10,rX)),[[t.vShow,a.visible]])}}),kX=["aria-busy"],mX={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},gX={key:0,class:"ml-1 text-destructive"},bX={class:"relative w-full group"},MX=["id","value"],xX={key:0,class:"absolute top-1 right-2"},wX={key:1,class:"absolute top-full right-0 z-10 text-[11px] text-gray-500 dark:text-gray-400 opacity-0 transition-opacity pointer-events-none group-focus-within:opacity-100"},vX={key:1,class:"text-xs text-destructive"},dS=t.defineComponent({name:"DCodeTextarea",inheritAttrs:!1,__name:"DCodeTextarea",props:{modelValue:{},clearable:{type:Boolean},hideClearWhenEmpty:{type:Boolean,default:!0},textCase:{default:"none"},applyTextCaseToValue:{type:Boolean,default:!0},valueType:{default:"free"},allowSpaces:{type:Boolean,default:!0},allowChars:{},pattern:{},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},showCharCount:{type:Boolean,default:!0},returnNumber:{type:Boolean,default:!1},error:{default:null}},emits:["update:modelValue","clear"],setup(a,{emit:e}){const n=t.useAttrs(),o=e,r=a,i=t.computed(()=>n.label),s=t.computed(()=>r.visible??!0),c=Math.random().toString(36).slice(2,7),d=t.computed(()=>`app-textarea-${n.id||i.value||"field"}-${c}`),h=t.computed(()=>{const G=n.required,z=n["aria-required"];return G===""||G===!0||G==="true"||(z==="true"||z===!0)}),u=t.computed(()=>{const{label:G,class:z,id:W,required:ee,"aria-required":pe,...qe}=n;return qe}),p=t.computed(()=>{const G=n.maxlength;let z=Number.NaN;return typeof G=="number"?z=G:typeof G=="string"&&(z=Number.parseInt(G,10)),Number.isFinite(z)&&z>0?z:-1}),y=G=>p.value>0?G.slice(0,p.value):G,f=t.computed(()=>{const G=r.modelValue;return G==null||String(G).length===0}),k=t.computed(()=>r.clearable?r.hideClearWhenEmpty?!f.value:!0:!1),m=t.ref(String(r.modelValue??""));t.watch(()=>r.modelValue,G=>{const z=String(G??"");z!==m.value&&(m.value=z)});const g=t.ref(!1),v=t.ref(!1),L=G=>G.split(/(\s+)/).map(z=>{if(z.trim()==="")return z;const W=z.toLowerCase();return W.charAt(0).toUpperCase()+W.slice(1)}).join(""),w=G=>{const z=G.toLowerCase(),W=z.search(new RegExp("\\p{L}","u"));return W<0?z:z.slice(0,W)+z.charAt(W).toUpperCase()+z.slice(W+1)},M=G=>{switch(r.textCase){case"uppercase":return G.toUpperCase();case"lowercase":return G.toLowerCase();case"titlecase":return L(G);case"sentencecase":return w(G);case"none":default:return G}},C=t.computed(()=>{switch(r.textCase){case"uppercase":return"uppercase";case"lowercase":return"lowercase";default:return"none"}}),S=G=>{if(!G)return null;const z=Array.isArray(G)?G.join(""):G;return z?new Set(z):null},b=t.computed(()=>S(r.allowChars)),x=(G,z)=>(G.lastIndex=0,G.test(z)),I=G=>{if(G===`
|
|
8594
8594
|
`)return r.valueType!=="number";if(r.valueType==="free")return!0;const z=G===" ",W=/\d/.test(G),ee=new RegExp("\\p{L}","u").test(G),pe=new RegExp("\\p{N}","u").test(G);return r.valueType==="number"?W:r.valueType==="letter"?ee||r.allowSpaces&&z:r.valueType==="letternumber"?ee||pe||r.allowSpaces&&z:!0},V=G=>{let z="";for(const W of G){const ee=!!b.value&&b.value.has(W);r.pattern&&!ee&&!x(r.pattern,W)||!ee&&!I(W)||(z+=W)}return z},B=G=>{const z=V(G),W=r.applyTextCaseToValue?M(z):z;return y(W)};let A=null;const P=G=>{if(G==="")return null;if(r.valueType==="number"&&r.returnNumber){const z=G.replaceAll(`
|
|
8595
|
-
`,""),W=Number(z);return Number.isFinite(W)?W:null}return G},D=G=>{m.value=G,o("update:modelValue",P(G))},U=(G,z)=>{const W=y(z);v.value=!0,G.value=W,D(W),queueMicrotask(()=>v.value=!1)},T=(G,z)=>{const W=G.selectionStart??G.value.length,ee=G.selectionEnd??G.value.length;if(p.value>0){const pe=G.value.length-(ee-W),qe=p.value-pe;if(qe<=0)return;z=z.slice(0,qe)}G.setRangeText(z,W,ee,"end"),U(G,B(G.value))},H=G=>{var ee;if(!A||g.value||v.value||!((ee=G.inputType)!=null&&ee.startsWith("insert")))return;const z=G.data;if(z==null)return;const W=B(z);W!==z&&(G.preventDefault(),W.length>0&&T(A,W))},N=G=>{var ee;if(!A||g.value||v.value)return;const z=((ee=G.clipboardData)==null?void 0:ee.getData("text"))??"",W=B(z);W!==z&&(G.preventDefault(),W.length>0&&T(A,W))},Q=async G=>{if(!A||g.value||v.value)return;const z=G.target,W=z.value??"",ee=B(W);if(ee===W){const pe=z.selectionStart??ee.length,qe=z.selectionEnd??ee.length;U(z,ee),await t.nextTick();try{z.setSelectionRange(pe,qe)}catch{}D(ee)}else{const pe=z.selectionStart??ee.length,qe=z.selectionEnd??ee.length;U(z,ee),await t.nextTick();try{z.setSelectionRange(pe,qe)}catch{}}},j=()=>g.value=!0,F=()=>{if(g.value=!1,!A)return;const G=A.value??"",z=B(G);z===G?D(z):U(A,z)};t.onMounted(()=>{if(A=document.getElementById(d.value),!A)return;A.addEventListener("beforeinput",H),A.addEventListener("paste",N),A.addEventListener("input",Q),A.addEventListener("compositionstart",j),A.addEventListener("compositionend",F);const G=A.value??"",z=B(G);z===G?D(z):U(A,z)}),t.onBeforeUnmount(()=>{A&&(A.removeEventListener("beforeinput",H),A.removeEventListener("paste",N),A.removeEventListener("input",Q),A.removeEventListener("compositionstart",j),A.removeEventListener("compositionend",F),A=null)});const R=()=>{m.value="",A&&(A.value=""),o("update:modelValue",null),o("clear")},Z=t.computed(()=>m.value.length),J=t.computed(()=>r.showCharCount?p.value>0:!1),re=t.computed(()=>J.value&&Z.value>0),de=t.computed(()=>`${Z.value} / ${p.value}`),ue=t.computed(()=>!!r.error),ve=t.computed(()=>{const G=n.rows,z=typeof G=="number"?G:Number.parseInt(String(G??""),10);return Number.isFinite(z)&&z>0?z:3}),le=t.computed(()=>({height:`${ve.value*24+16}px`}));return(G,z)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["flex flex-col gap-1 w-full",t.unref(n).class]),"aria-busy":r.skeleton},[r.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.value?(t.openBlock(),t.createElementBlock("div",mX)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse",style:t.normalizeStyle(le.value)},null,4)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.value?(t.openBlock(),t.createBlock(t.unref(La),{key:0,for:d.value,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value)+" ",1),h.value?(t.openBlock(),t.createElementBlock("span",gX,"*")):t.createCommentVNode("",!0)]),_:1},8,["for"])):t.createCommentVNode("",!0),t.createElementVNode("div",bX,[t.createElementVNode("textarea",t.mergeProps({id:d.value,value:m.value},u.value,{style:`text-transform: ${C.value}; padding-right: ${k.value?"2.5rem":"0.75rem"} !important; padding-left: 0.75rem !important;`,class:["flex min-h-[120px] w-full rounded-lg border py-2 bg-white dark:bg-neutral-900 text-foreground dark:text-gray-300 border-gray-300 dark:border-gray-700 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",ue.value?"border-destructive focus-visible:ring-destructive":""]}),null,16,MX),k.value?(t.openBlock(),t.createElementBlock("div",xX,[t.createElementVNode("button",{type:"button",class:"text-muted-foreground hover:text-foreground text-sm leading-none","aria-label":"Clear textarea",onClick:R}," ✕ ")])):t.createCommentVNode("",!0),re.value&&!ue.value?(t.openBlock(),t.createElementBlock("p",wX,t.toDisplayString(de.value),1)):t.createCommentVNode("",!0)]),ue.value?(t.openBlock(),t.createElementBlock("p",vX,t.toDisplayString(r.error),1)):t.createCommentVNode("",!0)],64))],10,kX)),[[t.vShow,s.value]])}}),$z=t.defineComponent({__name:"Avatar",props:{class:{type:[Boolean,null,String,Object,Array]},size:{default:"sm"},shape:{default:"circle"}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(OT),{class:t.normalizeClass(t.unref(be)(t.unref(CX)({size:a.size,shape:a.shape}),e.class))},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["class"]))}}),Uz=t.defineComponent({__name:"AvatarFallback",props:{delayMs:{},asChild:{type:Boolean},as:{}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(RT),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),Wz=t.defineComponent({__name:"AvatarImage",props:{src:{},referrerPolicy:{},crossOrigin:{},asChild:{type:Boolean},as:{}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(UT),t.mergeProps(e,{class:"h-full w-full object-cover"}),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),CX=i1("inline-flex items-center justify-center font-normal text-foreground select-none shrink-0 bg-secondary overflow-hidden",{variants:{size:{sm:"h-10 w-10 text-xs",base:"h-16 w-16 text-2xl",lg:"h-32 w-32 text-5xl"},shape:{circle:"rounded-full",square:"rounded-md"}}}),hS=t.defineComponent({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class");return(o,r)=>(t.openBlock(),t.createBlock(t.unref(fj),t.mergeProps(t.unref(n),{class:t.unref(be)("shrink-0 bg-border",e.orientation==="horizontal"?"h-px w-full":"w-px h-full",e.class)}),null,16,["class"]))}}),LX={class:"bg-card text-card-foreground"},SX={class:"pb-6 px-3"},IX={key:0,class:"flex justify-center p-8"},_X={key:1,class:"p-8 text-center text-red-500"},AX={key:2,class:"relative"},BX={class:"space-y-6"},VX={class:"rounded-xl border bg-card text-card-foreground shadow"},zX={class:"p-4"},qX={class:"flex items-center justify-between gap-3"},PX={class:"font-medium"},DX={class:"text-xs text-muted-foreground"},EX={class:"mt-1 text-sm text-muted-foreground"},TX={class:"text-foreground"},HX={class:"text-foreground"},jX={class:"mt-1 text-xs text-muted-foreground"},OX={key:0,class:"mt-3 flex items-center gap-2 text-sm"},FX={class:"flex items-center justify-between gap-3"},RX={class:"font-medium"},NX={class:"text-xs text-muted-foreground"},$X={class:"mt-2 text-sm text-muted-foreground"},UX={class:"flex flex-wrap items-center justify-between gap-3"},WX={class:"flex items-center gap-3"},GX={class:"leading-tight"},KX={class:"text-sm font-medium"},XX={class:"text-xs text-muted-foreground"},ZX={class:"flex items-center gap-2"},YX={key:2,class:"flex flex-col gap-3 sm:flex-row sm:items-start"},QX={class:"h-16 w-16 shrink-0 rounded-lg bg-muted flex items-center justify-center"},JX=["src"],eZ={class:"flex-1"},tZ={class:"flex items-center justify-between gap-3"},aZ={class:"font-medium"},nZ={class:"text-xs text-muted-foreground"},oZ={class:"mt-1 text-sm text-muted-foreground"},rZ={class:"text-left sm:text-center"},iZ={class:"text-xs text-muted-foreground"},sZ={class:"text-left sm:text-center"},lZ={class:"text-xs text-muted-foreground"},cZ={class:"text-left sm:text-center"},dZ={class:"text-xs text-muted-foreground"},hZ={class:"flex items-center justify-between gap-3"},uZ={class:"font-medium"},pZ={class:"text-xs text-muted-foreground"},yZ={class:"mt-2 text-sm text-muted-foreground"},fZ={class:"mt-3 flex items-center gap-3"},kZ={class:"text-sm font-medium"},mZ={class:"flex items-start justify-between gap-3"},gZ={class:"font-medium"},bZ={class:"mt-3 grid gap-2 text-sm"},MZ={class:"flex items-center justify-between gap-3"},xZ={class:"flex items-center gap-2 text-muted-foreground"},wZ={class:"font-medium"},vZ={class:"flex items-center justify-between gap-3"},CZ={class:"flex items-center gap-2 text-muted-foreground"},LZ={class:"font-medium"},SZ={class:"flex items-center justify-between gap-3"},IZ={class:"flex items-center gap-2 text-muted-foreground"},_Z={class:"font-medium"},AZ={class:"flex items-center justify-between"},BZ={class:"flex items-center gap-2"},VZ={class:"flex items-start justify-between gap-3"},zZ={class:"flex items-center gap-2"},qZ={class:"font-medium"},PZ={class:"mt-2 text-sm text-muted-foreground"},DZ={key:0,class:"mt-1 text-sm text-muted-foreground"},EZ={class:"flex flex-wrap items-center justify-between gap-3"},TZ={class:"flex items-center gap-2"},HZ={class:"text-xs text-muted-foreground"},Gz=t.defineComponent({__name:"DCodeTimelineWithIcons",props:{items:{},apiUrl:{},apiMethod:{}},setup(a){const n=AE(_E).smaller("md");t.ref(!1);const o=a,r=t.ref(!1),i=t.ref(null),s=t.ref([]),c=t.computed(()=>s.value.length>0?s.value:o.items&&o.items.length>0?o.items:[]),d=async()=>{if(o.apiUrl){r.value=!0,i.value=null;try{const p=await fetch(o.apiUrl,{method:o.apiMethod||"GET",headers:{"Content-Type":"application/json"}});if(!p.ok)throw new Error(`Error: ${p.status} ${p.statusText}`);const y=await p.json();Array.isArray(y)?s.value=y:y.data&&Array.isArray(y.data)?s.value=y.data:y.items&&Array.isArray(y.items)?s.value=y.items:s.value=[]}catch(p){console.error("Failed to fetch timeline items:",p),i.value=p.message||"Failed to fetch data"}finally{r.value=!1}}};t.onMounted(()=>{o.apiUrl&&d()}),t.watch(()=>o.apiUrl,()=>{o.apiUrl?d():s.value=[]});const h=p=>{switch(p){case"flight":return{Icon:Ys,Circle:"bg-primary/10 text-primary border-primary/30"};case"interview":return{Icon:Ns,Circle:"bg-emerald-500/10 text-emerald-600 border-emerald-500/30"};case"product":return{Icon:t1,Circle:"bg-amber-500/10 text-amber-600 border-amber-500/30"};case"design":return{Icon:sr,Circle:"bg-sky-500/10 text-sky-600 border-sky-500/30"};case"server":return{Icon:Js,Circle:"bg-rose-500/10 text-rose-600 border-rose-500/30"};case"location":return{Icon:Ks,Circle:"bg-emerald-500/10 text-emerald-600 border-emerald-500/30"};default:return{Icon:Rs,Circle:"bg-primary/10 text-primary border-primary/30"}}},u=p=>p.split(" ").filter(Boolean).slice(0,2).map(y=>{var f;return(f=y[0])==null?void 0:f.toUpperCase()}).join("");return(p,y)=>{const f=t.resolveComponent("ShoppingCart"),k=t.resolveComponent("RefreshCcw"),m=t.resolveComponent("MapPin");return t.openBlock(),t.createElementBlock("div",LX,[y[8]||(y[8]=t.createElementVNode("div",{class:"flex flex-col space-y-1.5 py-6 px-3"},[t.createElementVNode("h3",{class:"leading-none tracking-tight text-lg font-medium"},"Timeline With Icons")],-1)),t.createElementVNode("div",SX,[r.value?(t.openBlock(),t.createElementBlock("div",IX,[...y[0]||(y[0]=[t.createElementVNode("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"},null,-1)])])):i.value?(t.openBlock(),t.createElementBlock("div",_X,t.toDisplayString(i.value),1)):(t.openBlock(),t.createElementBlock("div",AX,[y[7]||(y[7]=t.createElementVNode("div",{class:"absolute left-4 top-0 h-full w-px bg-border"},null,-1)),t.createElementVNode("div",BX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(g,v)=>(t.openBlock(),t.createElementBlock("div",{key:v,class:"relative pl-14"},[t.createElementVNode("div",{class:t.normalizeClass(["absolute left-0 top-2 flex h-8 w-8 items-center justify-center rounded-full border",h(g.type).Circle])},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(h(g.type).Icon),{class:"h-4 w-4"}))],2),t.createElementVNode("div",VX,[t.createElementVNode("div",zX,[g.type==="flight"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",qX,[t.createElementVNode("p",PX,t.toDisplayString(g.title),1),t.createElementVNode("p",DX,t.toDisplayString(g.meta),1)]),t.createElementVNode("p",EX,[t.createElementVNode("span",TX,t.toDisplayString(g.from),1),t.createVNode(t.unref(Ts),{class:"mx-2 inline h-4 w-4"}),t.createElementVNode("span",HX,t.toDisplayString(g.to),1)]),t.createElementVNode("p",jX,t.toDisplayString(g.time),1),g.fileName?(t.openBlock(),t.createElementBlock("div",OX,[t.createVNode(t.unref(hs),{class:"h-4 w-4 text-muted-foreground"}),t.createElementVNode("span",null,t.toDisplayString(g.fileName),1)])):t.createCommentVNode("",!0)],64)):g.type==="interview"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",FX,[t.createElementVNode("p",RX,t.toDisplayString(g.title),1),t.createElementVNode("p",NX,t.toDisplayString(g.meta),1)]),t.createElementVNode("p",$X,t.toDisplayString(g.desc),1),t.createVNode(t.unref(hS),{class:"my-4"}),t.createElementVNode("div",UX,[t.createElementVNode("div",WX,[t.createVNode(t.unref($z),{class:"h-10 w-10"},{default:t.withCtx(()=>[g.avatarUrl?(t.openBlock(),t.createBlock(t.unref(Wz),{key:0,src:g.avatarUrl},null,8,["src"])):t.createCommentVNode("",!0),t.createVNode(t.unref(Uz),null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u(g.personName??"")),1)]),_:2},1024)]),_:2},1024),t.createElementVNode("div",GX,[t.createElementVNode("p",KX,t.toDisplayString(g.personName),1),t.createElementVNode("p",XX,t.toDisplayString(g.personRole),1)])]),t.createElementVNode("div",ZX,[t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(t.unref(us),{class:"h-4 w-4"})]),_:1}),t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(t.unref(Zs),{class:"h-4 w-4"})]),_:1})])])],64)):g.type==="product"?(t.openBlock(),t.createElementBlock("div",YX,[t.createElementVNode("div",QX,[g.imgUrl?(t.openBlock(),t.createElementBlock("img",{key:0,src:g.imgUrl,class:"h-full w-full rounded-lg object-cover",alt:"product"},null,8,JX)):(t.openBlock(),t.createBlock(f,{key:1,class:"h-5 w-5 text-muted-foreground"}))]),t.createElementVNode("div",eZ,[t.createElementVNode("div",tZ,[t.createElementVNode("p",aZ,t.toDisplayString(g.title),1),t.createElementVNode("p",nZ,t.toDisplayString(g.meta),1)]),t.createElementVNode("p",oZ,t.toDisplayString(g.desc),1),t.createElementVNode("div",{class:t.normalizeClass(["mt-4 grid gap-3",t.unref(n)?"grid-cols-1":"grid-cols-3"])},[t.createElementVNode("div",rZ,[y[1]||(y[1]=t.createElementVNode("p",{class:"text-sm font-medium"},"Customer",-1)),t.createElementVNode("p",iZ,t.toDisplayString(g.customer),1)]),t.createElementVNode("div",sZ,[y[2]||(y[2]=t.createElementVNode("p",{class:"text-sm font-medium"},"Price",-1)),t.createElementVNode("p",lZ,t.toDisplayString(g.price),1)]),t.createElementVNode("div",cZ,[y[3]||(y[3]=t.createElementVNode("p",{class:"text-sm font-medium"},"Quantity",-1)),t.createElementVNode("p",dZ,t.toDisplayString(g.qty),1)])],2)])])):g.type==="design"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("div",hZ,[t.createElementVNode("p",uZ,t.toDisplayString(g.title),1),t.createElementVNode("p",pZ,t.toDisplayString(g.meta),1)]),t.createElementVNode("p",yZ,t.toDisplayString(g.desc),1),t.createElementVNode("div",fZ,[t.createVNode(t.unref($z),{class:"h-10 w-10"},{default:t.withCtx(()=>[g.avatarUrl?(t.openBlock(),t.createBlock(t.unref(Wz),{key:0,src:g.avatarUrl},null,8,["src"])):t.createCommentVNode("",!0),t.createVNode(t.unref(Uz),null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u(g.personName??"")),1)]),_:2},1024)]),_:2},1024),t.createElementVNode("p",kZ,t.toDisplayString(g.personName),1)])],64)):g.type==="server"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createElementVNode("div",mZ,[t.createElementVNode("p",gZ,t.toDisplayString(g.title),1),t.createVNode(t.unref(_a),{variant:"destructive",class:"h-6"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.chipText??""),1)]),_:2},1024)]),t.createElementVNode("div",bZ,[t.createElementVNode("div",MZ,[t.createElementVNode("div",xZ,[t.createVNode(t.unref(Ws),{class:"h-4 w-4"}),y[4]||(y[4]=t.createElementVNode("span",null,"IP Address",-1))]),t.createElementVNode("span",wZ,t.toDisplayString(g.ip),1)]),t.createElementVNode("div",vZ,[t.createElementVNode("div",CZ,[t.createVNode(t.unref(cs),{class:"h-4 w-4"}),y[5]||(y[5]=t.createElementVNode("span",null,"CPU",-1))]),t.createElementVNode("span",LZ,t.toDisplayString(g.cpu),1)]),t.createElementVNode("div",SZ,[t.createElementVNode("div",IZ,[t.createVNode(t.unref(cs),{class:"h-4 w-4"}),y[6]||(y[6]=t.createElementVNode("span",null,"Memory",-1))]),t.createElementVNode("span",_Z,t.toDisplayString(g.memory),1)])]),t.createVNode(t.unref(hS),{class:"my-4"}),t.createElementVNode("div",AZ,[t.createElementVNode("div",BZ,[t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(t.unref(e1),{class:"h-4 w-4"})]),_:1}),t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(k,{class:"h-4 w-4"})]),_:1})])])],64)):g.type==="location"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[t.createElementVNode("div",VZ,[t.createElementVNode("div",zZ,[t.createVNode(m,{class:"h-4 w-4 text-muted-foreground"}),t.createElementVNode("p",qZ,t.toDisplayString(g.title),1)]),t.createVNode(t.unref(_a),{variant:"destructive",class:"h-6"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.chipText),1)]),_:2},1024)]),t.createElementVNode("p",PZ,t.toDisplayString(g.desc1),1),g.desc2?(t.openBlock(),t.createElementBlock("p",DZ,t.toDisplayString(g.desc2),1)):t.createCommentVNode("",!0),t.createVNode(t.unref(hS),{class:"my-4"}),t.createElementVNode("div",EZ,[t.createElementVNode("div",TZ,[t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(t.unref(Gs),{class:"h-4 w-4"})]),_:1}),t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(t.unref(us),{class:"h-4 w-4"})]),_:1}),t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(t.unref(o1),{class:"h-4 w-4"})]),_:1})]),t.createElementVNode("p",HZ,"Due date: "+t.toDisplayString(g.due),1)])],64)):t.createCommentVNode("",!0)])])]))),128))])]))])])}}}),jZ={class:"dcode-upload-file"},OZ={class:"border-2 border-dashed border-gray-300 dark:border-gray-700 rounded-lg p-6 flex flex-col items-center justify-center text-center hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors cursor-pointer"},FZ={key:0,class:"text-xs text-gray-500 mt-1"},RZ=["accept"],NZ={key:1,class:"text-xs text-red-600 mt-1"},Kz=t.defineComponent({__name:"DCodeUploadFile",props:{label:{},accept:{},errorMessage:{},modelValue:{}},emits:["update:modelValue"],setup(a,{emit:e}){const n=e,o=r=>{var s;const i=(s=r.target.files)==null?void 0:s[0];i&&n("update:modelValue",i)};return(r,i)=>(t.openBlock(),t.createElementBlock("div",jZ,[a.label?(t.openBlock(),t.createBlock(n_,{key:0,label:a.label},null,8,["label"])):t.createCommentVNode("",!0),t.createElementVNode("div",OZ,[t.createVNode(t.unref(ha),{class:"w-8 h-8 text-gray-400 mb-2"}),i[0]||(i[0]=t.createElementVNode("p",{class:"text-sm text-gray-600 dark:text-gray-400"},[t.createElementVNode("span",{class:"font-medium text-primary-600"},"Click to upload"),t.createTextVNode(" or drag and drop ")],-1)),a.accept?(t.openBlock(),t.createElementBlock("p",FZ,t.toDisplayString(a.accept),1)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"file",class:"hidden",onChange:o,accept:a.accept},null,40,RZ)]),a.errorMessage?(t.openBlock(),t.createElementBlock("p",NZ,t.toDisplayString(a.errorMessage),1)):t.createCommentVNode("",!0)]))}}),$Z=["onClick"],UZ={key:1,class:"mr-2 text-xs font-bold shrink-0 opacity-50"},WZ={class:"font-semibold text-sm whitespace-normal text-center leading-tight"},GZ={key:1},KZ={key:0,class:"text-white"},XZ={key:1},ZZ={key:2},YZ=["disabled","onClick"],QZ={key:1,class:"mr-2 text-sm font-bold opacity-70"},JZ={class:"whitespace-normal text-sm text-center leading-tight"},eY={class:"flex flex-col flex-1 min-w-0"},tY={class:"text-sm text-muted-foreground"},aY={class:"px-1"},nY=["disabled"],oY=["type"],rY=["disabled"],Xz=Xt(t.defineComponent({__name:"DCodeWizard",props:{tabs:{},modelValue:{},defaultTab:{default:0},allowTabClick:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},cache:{type:Boolean,default:!0},autoFetchOnMount:{type:Boolean,default:!0},apiOptions:{type:[Object,Function],default:void 0},isVertical:{type:Boolean,default:!1},isWizard:{type:Boolean,default:!1},typeWizard:{default:"icon"},showNavigation:{type:Boolean,default:!0},submitText:{default:"Simpan"},loading:{type:Boolean,default:!1},isSubmit:{type:Boolean,default:!1}},emits:["update:modelValue","change","loaded","error"],setup(a,{emit:e}){const n=a,o=e,r=Ke(),i=r==null?void 0:r.DCodeApi;typeof i!="function"&&console.error("[DCodeWizardTabs] useApi() must expose DCodeApi()");const s=t.ref(n.defaultTab),c=t.computed({get(){var b;if(typeof n.modelValue=="string"){const x=(b=n.tabs)==null?void 0:b.findIndex(I=>I.key===n.modelValue);if(x!==void 0&&x>=0)return x}return(typeof n.modelValue=="number"?n.modelValue:void 0)??s.value},set(b){var x;if(s.value=b,typeof n.modelValue=="string"){const I=(x=n.tabs)==null?void 0:x[b];I?o("update:modelValue",I.key):o("update:modelValue",b)}else o("update:modelValue",b)}}),d=t.computed(()=>{var b;return((b=n.tabs)==null?void 0:b.length)??0}),h=t.computed(()=>{var b;return(b=n.tabs)==null?void 0:b[c.value]});function u(b){return d.value<=0?0:Math.min(Math.max(b,0),d.value-1)}function p(b){return b?typeof b=="string"?Gt[b]||null:b:null}const y=t.reactive({});function f(b){return y[b.key]||(y[b.key]={loaded:!1,loading:!1,data:null,error:null}),y[b.key]}function k(){if(n.apiOptions)return typeof n.apiOptions=="function"?n.apiOptions():n.apiOptions}function m(b){const x=b.endpoint||{};return{apiModule:b.apiModule||x.apiModule,apiAction:b.apiAction||x.apiAction,apiUrl:x.apiUrl,apiMethod:x.apiMethod||"GET",apiParams:b.apiParams}}function g(b){if(n.isWizard||!n.allowTabClick||n.disabled)return!1;const x=n.tabs[b];return!(!x||x.disabled)}async function v(b){if(typeof b.tab.fetchData=="function"){const D=await b.tab.fetchData(),U=(D==null?void 0:D.data)??D;return(U==null?void 0:U.data)??U}const x=m(b.tab);if(!(x.apiModule&&x.apiAction||x.apiUrl))return null;if(typeof i!="function")throw new Error("DCodeApi is not available");const V=k();let B;if(x.apiUrl)B=await i("","",V,{_url:x.apiUrl,_method:x.apiMethod,_data:x.apiParams??void 0});else{const D={...V,...x.apiParams};B=await i(x.apiModule,x.apiAction,D)}const A=(B==null?void 0:B.data)??B;return(A==null?void 0:A.data)??A}async function L(b,{force:x=!1}={}){const I=u(b),V=n.tabs[I];if(!V)return;const B=f(V);if(!(n.cache&&B.loaded&&!x)&&!B.loading){B.loading=!0,B.error=null;try{const A=await v({tabIndex:I,tab:V});B.data=A,B.loaded=!0,o("loaded",{tabIndex:I,tab:V,data:A})}catch(A){const P=typeof(A==null?void 0:A.message)=="string"&&A.message||typeof A=="string"&&A||"Failed to load tab data.";B.error=P,o("error",{tabIndex:I,tab:V,message:P})}finally{B.loading=!1}}}function w(b){const x=u(b);g(x)&&x!==c.value&&(c.value=x)}function M(b=c.value){return L(b,{force:!0})}function C(){const b=u(c.value-1);b!==c.value&&(c.value=b)}function S(){const b=u(c.value+1);b!==c.value&&(c.value=b)}return t.watch(()=>n.tabs,b=>{for(const x of b??[])f(x)},{immediate:!0}),t.watch(()=>c.value,async b=>{var I;const x=(I=n.tabs)==null?void 0:I[b];x&&o("change",{tabIndex:b,tab:x}),await L(b)},{immediate:!0}),t.watch(()=>n.autoFetchOnMount,async b=>{b&&await L(c.value)},{immediate:!0}),(b,x)=>{var I,V,B;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["w-full rounded-lg border bg-card text-card-foreground shadow-sm",{"flex flex-row":a.isVertical}])},[t.createElementVNode("div",{class:t.normalizeClass(["flex flex-col space-y-1.5 p-6",{"w-64 border-r pr-0":a.isVertical,"pb-2":a.isWizard&&!a.isVertical}])},[t.createElementVNode("div",{class:t.normalizeClass({"mt-4":!a.isVertical||a.isWizard})},[a.isWizard?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["w-full relative flex overflow-visible rounded-lg",a.isVertical?"flex-col gap-2":""])},[a.isVertical?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(a.tabs,(A,P)=>(t.openBlock(),t.createElementBlock("div",{key:A.key,class:"relative z-10 box-border flex items-center gap-3 w-full pb-6 last:pb-0"},[t.createElementVNode("div",{class:t.normalizeClass(["w-8 h-8 rounded-full flex shrink-0 items-center justify-center font-bold text-sm border-2 transition-all bg-card",[P<c.value?"wizard-num-done":"",P===c.value?"wizard-num-active":P>c.value?"wizard-num-pending":""]])},[a.typeWizard==="icon"&&A.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(p(A.icon)),{key:0,class:"w-4 h-4"})):a.typeWizard==="number"||!A.icon&&a.typeWizard!=="none"?(t.openBlock(),t.createElementBlock("span",GZ,[P<c.value?(t.openBlock(),t.createElementBlock("span",KZ,"✓")):(t.openBlock(),t.createElementBlock("span",XZ,t.toDisplayString(P+1),1))])):(t.openBlock(),t.createElementBlock("span",ZZ))],2),t.createElementVNode("span",{class:t.normalizeClass(["text-xs font-semibold whitespace-normal px-2 py-1 rounded transition-colors text-left",P===c.value?"wizard-text-active":"wizard-text-pending"])},t.toDisplayString(A.title),3)]))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.tabs,(A,P)=>(t.openBlock(),t.createElementBlock("div",{key:A.key,onClick:D=>w(P),style:t.normalizeStyle({zIndex:a.tabs.length-P}),class:"relative flex-1 group"},[t.createElementVNode("div",{class:t.normalizeClass(["relative flex items-center justify-center min-h-[3rem] h-auto py-2 px-2 cursor-pointer transition-colors w-full",[P>0?"pl-8":"",P===c.value?"wizard-step-active":P<c.value?"wizard-step-done":"wizard-step-pending"]])},[a.typeWizard==="icon"&&A.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(p(A.icon)),{key:0,class:"w-4 h-4 mr-2 shrink-0"})):a.typeWizard==="number"?(t.openBlock(),t.createElementBlock("span",UZ,t.toDisplayString(P+1),1)):t.createCommentVNode("",!0),t.createElementVNode("span",WZ,t.toDisplayString(A.title),1)],2),P<a.tabs.length-1?(t.openBlock(),t.createElementBlock("svg",{key:0,class:t.normalizeClass(["absolute top-0 -right-[15.5px] w-[16px] h-full transition-colors block z-10",[P===c.value?"wizard-svg-active":P<c.value?"wizard-svg-done":"wizard-svg-pending"]]),preserveAspectRatio:"none",viewBox:"0 0 16 48"},[...x[0]||(x[0]=[t.createElementVNode("polygon",{points:"0,0 16,24 0,48"},null,-1)])],2)):t.createCommentVNode("",!0)],12,$Z))),128))],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["flex w-full",a.isVertical?"flex-col gap-1":"flex-wrap border-b border-separate"])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.tabs,(A,P)=>(t.openBlock(),t.createElementBlock("button",{key:A.key,type:"button",disabled:!g(P),onClick:D=>w(P),class:t.normalizeClass(["relative min-h-[3rem] h-auto py-2 flex items-center justify-center gap-2 px-4 transition-all rounded-none focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 wizard-btn-common",t.unref(be)("border-b border-r",!a.isVertical&&P===a.tabs.length-1&&"border-r-0",P===c.value?"wizard-btn-active":"wizard-btn-pending",!g(P)&&"opacity-60 cursor-not-allowed",a.isVertical?"w-full justify-start border-r-0":"flex-1")])},[a.typeWizard==="icon"&&A.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(p(A.icon)),{key:0,class:"h-4 w-4 shrink-0"})):a.typeWizard==="number"?(t.openBlock(),t.createElementBlock("span",QZ,t.toDisplayString(P+1),1)):t.createCommentVNode("",!0),t.createElementVNode("span",JZ,t.toDisplayString(A.title),1)],10,YZ))),128))],2))],2)],2),a.isVertical?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(hS),{key:0})),t.createElementVNode("div",eY,[t.createElementVNode("div",{class:t.normalizeClass(["p-6 flex-1 min-w-0",{"pl-6":a.isVertical}])},[h.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(I=y[h.value.key])!=null&&I.loading?t.renderSlot(b.$slots,"loading",{key:0,tab:h.value,tabIndex:c.value},()=>[x[1]||(x[1]=t.createElementVNode("div",{class:"rounded-lg border bg-muted/30 px-4 py-3 text-sm text-muted-foreground"},"Loading...",-1))],!0):t.renderSlot(b.$slots,`tab-${h.value.key}`,{key:1,tab:h.value,tabIndex:c.value,data:(V=y[h.value.key])==null?void 0:V.data,loaded:(B=y[h.value.key])==null?void 0:B.loaded,reload:M},()=>[t.createElementVNode("div",tY,[x[2]||(x[2]=t.createTextVNode(" Slot ",-1)),t.createElementVNode("code",aY,"tab-"+t.toDisplayString(h.value.key),1),x[3]||(x[3]=t.createTextVNode(" belum dibuat. ",-1))])],!0)],64)):t.createCommentVNode("",!0)],2),a.isWizard||a.showNavigation?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["flex items-center justify-between p-6 pt-0",{"pl-6":a.isVertical}])},[t.createElementVNode("button",{type:"button",onClick:C,disabled:c.value<=0,class:"relative inline-flex items-center justify-center gap-2 px-5 py-2.5 text-sm font-medium transition-all duration-300 rounded-lg bg-[#ffffff] border border-[#e2e8f0] text-[#334155] shadow-sm hover:bg-[#f8fafc] hover:text-[#0f172a] hover:-translate-y-0.5 hover:shadow disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-none disabled:hover:bg-[#ffffff] disabled:hover:text-[#334155] disabled:hover:translate-y-0 disabled:active:scale-100 dark:bg-[#18181b] dark:border-[#27272a] dark:text-[#d4d4d8] dark:hover:bg-[#27272a] dark:hover:border-[#3f3f46] dark:disabled:hover:bg-[#18181b] dark:disabled:hover:text-[#d4d4d8] focus:outline-none focus:ring-2 focus:ring-[#e2e8f0] focus:ring-offset-2 active:scale-95"}," Sebelumnya ",8,nY),c.value<d.value-1?(t.openBlock(),t.createElementBlock("button",{key:0,type:a.isSubmit?"submit":"button",onClick:S,class:"relative inline-flex items-center justify-center gap-2 px-6 py-2.5 text-sm font-medium text-[#ffffff] transition-all duration-300 rounded-lg shadow-md bg-[#2563eb] hover:bg-[#1d4ed8] hover:shadow-lg hover:-translate-y-0.5 disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-none disabled:hover:bg-[#2563eb] disabled:hover:translate-y-0 disabled:active:scale-100 focus:outline-none focus:ring-2 focus:ring-[#2563eb] focus:ring-offset-2 active:scale-95"}," Selanjutnya ",8,oY)):(t.openBlock(),t.createElementBlock("button",{key:1,type:"submit",disabled:a.loading,class:"relative inline-flex items-center justify-center gap-2 px-6 py-2.5 text-sm font-medium text-[#ffffff] transition-all duration-300 rounded-lg shadow-md bg-[#2563eb] hover:bg-[#1d4ed8] hover:shadow-lg hover:-translate-y-0.5 disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-none disabled:hover:bg-[#2563eb] disabled:hover:translate-y-0 disabled:active:scale-100 dark:bg-[#3b82f6] dark:hover:bg-[#2563eb] focus:outline-none focus:ring-2 focus:ring-[#2563eb] focus:ring-offset-2 active:scale-95"},[a.loading?(t.openBlock(),t.createBlock(t.unref(kt),{key:0,class:"w-4 h-4 mr-2 animate-spin"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(a.submitText),1)],8,rY))],2)):t.createCommentVNode("",!0)])],2)}}}),[["__scopeId","data-v-d10736f3"]]);function iY(){return{setPageTitle:n=>{typeof document<"u"&&(document.title=n||document.title),typeof window<"u"&&window.dispatchEvent(new CustomEvent("micro:page-title",{detail:{title:n},bubbles:!0,composed:!0}))},setBreadcrumb:n=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("micro:breadcrumb",{detail:{items:n},bubbles:!0,composed:!0}))}}}const sY={class:"w-full"},lY={class:"relative mx-auto min-h-[37.5rem]"},cY={key:"content",class:"w-full"},dY={class:"mb-6"},hY={class:"text-neutral-500 dark:text-neutral-400"},uY={key:"skeleton",class:"w-full"},pY={key:"error",class:"flex items-center justify-center p-20 text-red-500 w-full"},Zz=Xt(t.defineComponent({__name:"AutoLayoutForm",props:{layoutCode:{}},setup(a){var C,S;const e=a,n=(S=(C=t.getCurrentInstance())==null?void 0:C.appContext)==null?void 0:S.app;n&&!n._context.provides[Symbol.for("vue-router-route-location")]&&n.provide(Symbol.for("vue-router-route-location"),{query:{},params:{},path:""});let o={query:{},params:{},path:""};try{const b=H1.useRoute();b&&(o=b)}catch{console.warn("useRoute not available, using fallback")}let r={back:()=>console.warn("Router back() not available"),push:()=>console.warn("Router push() not available")};try{const b=H1.useRouter();b&&(r=b)}catch{console.warn("useRouter not available, using fallback")}const{apiUrl:i,DCodeApi:s}=Ke();let c;try{c=MS.useI18n().locale}catch{c=t.ref("en")}const{setPageTitle:d}=iY(),h=t.computed(()=>o.params&&"id"in o.params?!0:o.path?/\/edit\/[^\/]+$/.test(o.path):!1),u=t.computed(()=>{if(o.params&&"id"in o.params)return o.params.id;if(!o.path)return null;const b=o.path.match(/\/edit\/([^\/]+)$/);return b?b[1]:null}),p=t.ref({}),y=t.ref(null),f=t.ref(!0),k=t.ref(!1),m=t.ref(e.layoutCode),g=t.computed(()=>{var I;if(!y.value)return"";const b=((I=c==null?void 0:c.value)==null?void 0:I.toLowerCase())||"en";return(b==="en"||b.startsWith("en-")?y.value.titleEN:y.value.titleID)||y.value.title||e.layoutCode});t.watch(g,b=>{b&&d(b)},{immediate:!0});const v=async()=>{var b,x,I;f.value=!0;try{let V=e.layoutCode;o&&o.query&&typeof o.query=="object"&&"code"in o.query&&(V=o.query.code||e.layoutCode);let B=await i(`/api/auto-layout/form/form-dynamic?code=${V}`,"GET");if(!B.status||!B.data||Array.isArray(B.data)&&B.data.length===0)try{const A=await i(`/api/auto-layout/datatable/form-dynamic?code=${V}`,"GET");if(A.status){const P=Array.isArray(A.data)?A.data[0]:A.data;P&&P.code&&(V=P.code,m.value=V,B=await i(`/api/auto-layout/form/form-dynamic?code=${V}`,"GET"))}}catch(A){console.warn("Failed to resolve layout code via datatable",A)}if(B.status){y.value=Array.isArray(B.data)?B.data[0]:B.data;const A={};if((b=y.value)!=null&&b.sections&&y.value.sections.forEach(P=>{((P.propsForm||P.props||{}).fields||P.fields||[]).forEach(T=>{var N;const H=T.model||((N=T.props)==null?void 0:N.model)||T.key;H&&(A[H]=null)})}),p.value=A,f.value=!1,h.value&&u.value){k.value=!0;try{if((x=y.value.endpointGlobal)!=null&&x.apiUrl){const P=y.value.endpointGlobal.apiUrl,D=y.value.endpointGlobal.apiMethod||"GET",U={id:u.value},T=await s(P,D,U);if(T.status){const H=Array.isArray(T.data)?T.data[0]:T.data;p.value={...p.value,...H}}}else{const P=((I=y.value.endpoint)==null?void 0:I.detailUrl)||`/api/${m.value}/detail/${u.value}`,D=await i(P,"GET");if(D.status){let U=Array.isArray(D.data)?D.data[0]:D.data;if(D.payload){const H={...D.payload};if(Object.keys(H).forEach(N=>{U[N]!==void 0&&U[N]!==null&&(H[N]=U[N])}),!("id"in H)&&U.id){const N=Object.keys(H).find(Q=>Q.startsWith("id")&&Q.length>2&&!H[Q]);N&&(H[N]=U.id)}U=H}const T={...U};Object.keys(p.value).forEach(H=>{if(T[H]===void 0||T[H]===null){if(H.toLowerCase().startsWith("id")&&H.length>2){const Q=H.substring(2).toLowerCase(),j=Array.isArray(D.data)?D.data[0]:D.data,F=Object.keys(j).find(R=>R.toLowerCase()===Q);F&&j[F]&&typeof j[F]=="object"&&"id"in j[F]&&(T[H]=j[F].id)}if(H==="idSupervisor"){const Q=Array.isArray(D.data)?D.data[0]:D.data;Q.supervisorId&&(T[H]=Q.supervisorId)}}}),p.value={...p.value,...T}}}}catch(P){console.error("Failed to fetch record data:",P)}finally{k.value=!1}}}}catch(V){console.error("Failed to load form layout:",V),f.value=!1}},L=async b=>{var x,I,V;try{const B=(V=(I=(x=y.value.sections)==null?void 0:x[0])==null?void 0:I.propsForm)==null?void 0:V.endpointForm,A=y.value.endpointGlobal||y.value.endpoint,P=(B==null?void 0:B.submitUrl)||(A==null?void 0:A.submitUrl)||`/api/generic/${e.layoutCode}`,D=(B==null?void 0:B.submitMethod)||(A==null?void 0:A.submitMethod)||(h.value?"PUT":"POST"),U={...b};h.value&&u.value&&!U.id&&(U.id=u.value),await i(P,D,U),r.back()}catch(B){console.error("Submit failed:",B)}},w=async(b,x)=>{if(b==="cancel"){M();return}const I=x.endpointPropAction||x.propsActionGlobal&&x.propsActionGlobal.endpointPropAction;if(I)try{f.value=!0;const V={...p.value};h.value&&x.model&&u.value&&(V[x.model]=u.value);const B=I.apiUrl,A=I.apiMethod||"POST";(await s(B,A,V)).status&&r.back()}catch(V){console.error("Action failed:",V)}finally{f.value=!1}},M=()=>{r.back()};return t.onMounted(()=>{v()}),t.onUnmounted(()=>{d("")}),(b,x)=>{const I=t.resolveComponent("DynamicForm"),V=t.resolveComponent("AutoLayoutSkeleton");return t.openBlock(),t.createElementBlock("div",sY,[t.createElementVNode("div",lY,[t.createVNode(t.Transition,{name:"fade",mode:"out-in"},{default:t.withCtx(()=>[!f.value&&y.value?(t.openBlock(),t.createElementBlock("div",cY,[t.createElementVNode("div",dY,[t.createElementVNode("p",hY,t.toDisplayString(y.value.description),1)]),t.createVNode(I,{schema:y.value,model:p.value,"is-edit-mode":h.value,loading:k.value,onSubmit:L,onCancel:M,onAction:w,class:"w-full"},null,8,["schema","model","is-edit-mode","loading"])])):f.value?(t.openBlock(),t.createElementBlock("div",uY,[t.createVNode(V)])):(t.openBlock(),t.createElementBlock("div",pY," Failed to load form configuration for "+t.toDisplayString(e.layoutCode),1))]),_:1})])])}}}),[["__scopeId","data-v-fd9d71a6"]]),yY=(a,e="short",n="id-ID")=>{const o=typeof a=="string"?new Date(a):a,r=d=>String(d).padStart(2,"0"),i=d=>`${r(d.getHours())}:${r(d.getMinutes())}:${r(d.getSeconds())}`,c={id:"id-ID",en:"en-GB"}[n]||n;return e==="time"?i(o):e==="datetime"?new Intl.DateTimeFormat(c,{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(o):e==="long"?new Intl.DateTimeFormat(c,{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"}).format(o):new Intl.DateTimeFormat(c,{day:"2-digit",month:"short",year:"numeric"}).format(o)},fY=t.defineComponent({__name:"Sheet",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(a,{emit:e}){const r=mt(a,e);return(i,s)=>(t.openBlock(),t.createBlock(t.unref(BA),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16))}}),kY=t.defineComponent({inheritAttrs:!1,__name:"SheetContent",props:{class:{type:[Boolean,null,String,Object,Array]},side:{},forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:e}){const n=a,o=e,r=De(n,"class","side"),i=mt(r,o);return(s,c)=>(t.openBlock(),t.createBlock(t.unref(NA),null,{default:t.withCtx(()=>[t.createVNode(t.unref(RA),{class:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),t.createVNode(t.unref(OA),t.mergeProps({class:t.unref(be)(t.unref(wY)({side:a.side}),n.class)},{...t.unref(i),...s.$attrs}),{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default"),t.createVNode(t.unref(VA),{class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary"},{default:t.withCtx(()=>[t.createVNode(t.unref(it),{class:"w-4 h-4"})]),_:1})]),_:3},16,["class"])]),_:3}))}}),mY=t.defineComponent({__name:"SheetDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class");return(o,r)=>(t.openBlock(),t.createBlock(t.unref(FA),t.mergeProps({class:t.unref(be)("text-sm text-muted-foreground",e.class)},t.unref(n)),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),gY=t.defineComponent({__name:"SheetFooter",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),bY=t.defineComponent({__name:"SheetHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)("flex flex-col gap-y-2 text-center sm:text-left",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),MY=t.defineComponent({__name:"SheetTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class");return(o,r)=>(t.openBlock(),t.createBlock(t.unref($A),t.mergeProps({class:t.unref(be)("text-lg font-medium text-foreground",e.class)},t.unref(n)),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),xY=t.defineComponent({__name:"SheetTrigger",props:{asChild:{type:Boolean},as:{}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(TT),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),wY=i1("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),vY={class:"flex-1 overflow-hidden"},CY=t.defineComponent({__name:"DataFilterSheet",props:{title:{default:"Filter Data"},description:{default:"Masukan parameter pencarian untuk memfilter data."}},setup(a){return(e,n)=>(t.openBlock(),t.createBlock(t.unref(fY),null,{default:t.withCtx(()=>[t.createVNode(t.unref(xY),{"as-child":""},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"trigger",{},()=>[t.createVNode(t.unref(Ee),{variant:"outline",class:"gap-2"},{default:t.withCtx(()=>[t.createVNode(t.unref(yr),{class:"w-4 h-4"}),n[0]||(n[0]=t.createElementVNode("span",null,"Pencarian",-1))]),_:1})])]),_:3}),t.createVNode(t.unref(kY),{class:"flex flex-col h-full"},{default:t.withCtx(()=>[t.createVNode(t.unref(bY),{class:"flex-shrink-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(MY),null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),t.createVNode(t.unref(mY),null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.description),1)]),_:1})]),_:1}),t.createElementVNode("div",vY,[t.renderSlot(e.$slots,"default")]),t.createVNode(t.unref(gY),{class:"flex-shrink-0"},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"footer")]),_:3})]),_:3})]),_:3}))}}),LY={key:0},SY=["value","name"],Yz=t.defineComponent({__name:"DynamicFilterField",props:{field:{},modelValue:{}},emits:["update:modelValue"],setup(a,{emit:e}){const{locale:n}=MS.useI18n(),o=a,r=e,i=t.ref(o.modelValue);t.watch(()=>o.modelValue,u=>{i.value=u});const s={DCodeTextField:l_,DCodeAutoComplete:qS,DCodeDatePicker:GI,DCodeTextarea:dS,DCodeTextArea:dS,DCodeCheckbox:q1,DCodeSwitch:s_,DCodeOtpInput:r_,DCodeImageField:a_,DCodeSlider:i_},c=t.computed(()=>{const u=o.field.component;return s[u]||null}),d=t.computed(()=>{const u=o.field.props,p={};return(u.labelID||u.labelEN)&&(p.label=n.value==="id"?u.labelID:u.labelEN),(u.placeholderID||u.placeholderEN)&&(p.placeholder=n.value==="id"?u.placeholderID:u.placeholderEN),u.required!==void 0&&(p.required=u.required),u.disabled!==void 0&&(p.disabled=u.disabled),u.readonly!==void 0&&(p.readonly=u.readonly),u.valueType&&(p.type=u.valueType),u.minLength!==void 0&&(p.minlength=u.minLength),u.maxLength!==void 0&&(p.maxlength=u.maxLength),u.min!==void 0&&(p.min=u.min),u.max!==void 0&&(p.max=u.max),u.options&&(p.options=u.options),u.endpoint&&(p.endpoint=u.endpoint),u.itemTitle&&(p.itemTitle=u.itemTitle),u.itemValue&&(p.itemValue=u.itemValue),u.returnObject!==void 0&&(p.returnObject=u.returnObject),u.clearable!==void 0&&(p.clearable=u.clearable),Object.keys(u).forEach(y=>{!["labelID","labelEN","placeholderID","placeholderEN"].includes(y)&&!p.hasOwnProperty(y)&&(p[y]=u[y])}),p}),h=u=>{i.value=u,r("update:modelValue",u)};return(u,p)=>a.field.isHidden?(t.openBlock(),t.createElementBlock("div",LY,[t.createElementVNode("input",{type:"hidden",value:i.value,name:a.field.model},null,8,SY)])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.value),t.mergeProps({key:1},d.value,{modelValue:i.value,"onUpdate:modelValue":[p[0]||(p[0]=y=>i.value=y),h]}),null,16,["modelValue"]))}}),IY=t.defineComponent({__name:"Pagination",props:{page:{},defaultPage:{},itemsPerPage:{},total:{},siblingCount:{},disabled:{type:Boolean},showEdges:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:page"],setup(a,{emit:e}){const n=a,o=e,r=De(n,"class"),i=mt(r,o);return(s,c)=>(t.openBlock(),t.createBlock(t.unref(lH),t.mergeProps({"data-slot":"pagination"},t.unref(i),{class:n.class}),{default:t.withCtx(d=>[t.renderSlot(s.$slots,"default",t.normalizeProps(t.guardReactiveProps(d)))]),_:3},16,["class"]))}}),_Y=t.defineComponent({__name:"PaginationContent",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class");return(o,r)=>(t.openBlock(),t.createBlock(t.unref(kH),t.mergeProps({"data-slot":"pagination-content"},t.unref(n),{class:t.unref(be)("flex flex-row items-center gap-1",e.class)}),{default:t.withCtx(i=>[t.renderSlot(o.$slots,"default",t.normalizeProps(t.guardReactiveProps(i)))]),_:3},16,["class"]))}}),AY=t.defineComponent({__name:"PaginationEllipsis",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class");return(o,r)=>(t.openBlock(),t.createBlock(t.unref(rH),t.mergeProps({"data-slot":"pagination-ellipsis"},t.unref(n),{class:t.unref(be)("flex size-9 items-center justify-center",e.class)}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{},()=>[t.createVNode(t.unref(ua),{class:"size-4"}),r[0]||(r[0]=t.createElementVNode("span",{class:"sr-only"},"More pages",-1))])]),_:3},16,["class"]))}}),BY=t.defineComponent({__name:"PaginationFirst",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class","size"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(dH),t.mergeProps({"data-slot":"pagination-first",class:t.unref(be)(t.unref(xs)({variant:"ghost",size:a.size}),"gap-1 px-2.5 sm:pr-2.5",e.class)},t.unref(o)),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[t.createVNode(t.unref(dn)),i[0]||(i[0]=t.createElementVNode("span",{class:"hidden sm:block"},"First",-1))])]),_:3},16,["class"]))}}),VY=t.defineComponent({__name:"PaginationItem",props:{value:{},asChild:{type:Boolean},as:{},size:{default:"icon"},class:{type:[Boolean,null,String,Object,Array]},isActive:{type:Boolean}},setup(a){const e=a,n=De(e,"class","size","isActive");return(o,r)=>(t.openBlock(),t.createBlock(t.unref(gH),t.mergeProps({"data-slot":"pagination-item"},t.unref(n),{class:t.unref(be)(t.unref(xs)({variant:"ghost",size:a.size}),a.isActive?"bg-[#0056a1] dark:bg-[#003d75] text-white hover:bg-[#0056a1]/90 dark:hover:bg-[#003d75]/90 hover:text-white":"",e.class)}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),zY=t.defineComponent({__name:"PaginationLast",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class","size"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(uH),t.mergeProps({"data-slot":"pagination-last",class:t.unref(be)(t.unref(xs)({variant:"ghost",size:a.size}),"gap-1 px-2.5 sm:pr-2.5",e.class)},t.unref(o)),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[i[0]||(i[0]=t.createElementVNode("span",{class:"hidden sm:block"},"Last",-1)),t.createVNode(t.unref(hn))])]),_:3},16,["class"]))}}),qY=t.defineComponent({__name:"PaginationNext",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class","size"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(MH),t.mergeProps({"data-slot":"pagination-next",class:t.unref(be)(t.unref(xs)({variant:"ghost",size:a.size}),"gap-1 px-2.5 sm:pr-2.5",e.class)},t.unref(o)),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[i[0]||(i[0]=t.createElementVNode("span",{class:"hidden sm:block"},"Next",-1)),t.createVNode(t.unref(hn))])]),_:3},16,["class"]))}}),PY=t.defineComponent({__name:"PaginationPrevious",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class","size"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(wH),t.mergeProps({"data-slot":"pagination-previous",class:t.unref(be)(t.unref(xs)({variant:"ghost",size:a.size}),"gap-1 px-2.5 sm:pr-2.5",e.class)},t.unref(o)),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[t.createVNode(t.unref(dn)),i[0]||(i[0]=t.createElementVNode("span",{class:"hidden sm:block"},"Previous",-1))])]),_:3},16,["class"]))}}),DY=t.defineComponent({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},by:{type:[String,Function]},dir:{},multiple:{type:Boolean},autocomplete:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(a,{emit:e}){const r=mt(a,e);return(i,s)=>(t.openBlock(),t.createBlock(t.unref(_H),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16))}}),EY=t.defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(a,{emit:e}){const n=a,o=e,r=De(n,"class"),i=mt(r,o);return(s,c)=>(t.openBlock(),t.createBlock(t.unref(ej),null,{default:t.withCtx(()=>[t.createVNode(t.unref(NH),t.mergeProps({...t.unref(i),...s.$attrs},{class:t.unref(be)("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a.position==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n.class)}),{default:t.withCtx(()=>[t.createVNode(t.unref(OY)),t.createVNode(t.unref(hj),{class:t.normalizeClass(t.unref(be)("p-1",a.position==="popper"&&"h-[--reka-select-trigger-height] w-full min-w-[--reka-select-trigger-width]"))},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},8,["class"]),t.createVNode(t.unref(jY))]),_:3},16,["class"])]),_:3}))}}),TY={class:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},HY=t.defineComponent({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(KH),t.mergeProps(t.unref(o),{class:t.unref(be)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e.class)}),{default:t.withCtx(()=>[t.createElementVNode("span",TY,[t.createVNode(t.unref(ZH),null,{default:t.withCtx(()=>[t.createVNode(t.unref(ca),{class:"h-4 w-4"})]),_:1})]),t.createVNode(t.unref(QH),null,{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),jY=t.defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(nj),t.mergeProps(t.unref(o),{class:t.unref(be)("flex cursor-default items-center justify-center py-1",e.class)}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[t.createVNode(t.unref(St))])]),_:3},16,["class"]))}}),OY=t.defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(rj),t.mergeProps(t.unref(o),{class:t.unref(be)("flex cursor-default items-center justify-center py-1",e.class)}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[t.createVNode(t.unref(js))])]),_:3},16,["class"]))}}),FY=t.defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(sj),t.mergeProps(t.unref(o),{class:t.unref(be)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:truncate text-start",e.class)}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default"),t.createVNode(t.unref(UH),{"as-child":""},{default:t.withCtx(()=>[t.createVNode(t.unref(St),{class:"w-4 h-4 opacity-50 shrink-0"})]),_:1})]),_:3},16,["class"]))}}),RY=t.defineComponent({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(cj),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),NY={class:"dcode-card animate-slide-up"},$Y={class:"px-4 py-2 bg-primary-700 dark:bg-primary-900 border-b border-primary-500/30 dark:border-primary-900/50 rounded-t-xl relative z-30"},UY={class:"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4"},WY={key:0,class:"flex flex-col sm:flex-row items-start sm:items-center gap-2 flex-1 max-w-2xl"},GY={class:"relative w-full sm:w-64"},KY={key:0,class:"relative"},XY={class:"flex flex-col h-full"},ZY={key:0,class:"flex-1 overflow-y-auto py-4"},YY={class:"grid grid-cols-1 md:grid-cols-2 gap-4 px-1"},QY={key:0,class:"sticky bottom-0 left-0 right-0 bg-white dark:bg-zinc-900 border-t border-neutral-200 dark:border-neutral-700 p-4 flex gap-2"},JY={class:"flex justify-end gap-2 w-full"},eQ={key:0,class:"font-medium text-sm text-neutral-600 dark:text-neutral-400"},tQ={class:"overflow-auto custom-scrollbar relative max-h-[calc(100vh-17rem)]"},aQ={class:"dcode-table w-full"},nQ={class:"bg-primary-700 dark:bg-primary-900 sticky top-0 z-20 shadow-sm"},oQ=["onClick"],rQ={key:0,class:"flex items-center justify-center w-full"},iQ={key:0,class:"px-3 py-2 text-xs font-medium text-white dark:text-neutral-100 uppercase tracking-wider"},sQ={class:"bg-white dark:bg-zinc-900 divide-y divide-neutral-200 dark:divide-neutral-700"},lQ={key:0,class:"px-3 py-0.5"},cQ={key:1},dQ=["colspan"],hQ={class:"flex flex-col items-center gap-4"},uQ={class:"text-base font-medium text-neutral-700 dark:text-neutral-300"},pQ={class:"text-sm text-neutral-500 dark:text-neutral-400 mt-1"},yQ={class:"hover:bg-zinc-50 dark:hover:bg-zinc-800/50 transition-colors duration-150"},fQ={key:0,class:"flex items-center justify-center"},kQ={key:0,class:"px-3 py-0.5 !text-center"},mQ={key:0,class:"flex items-center justify-center gap-1.5"},gQ={key:0,class:"bg-zinc-50/50 dark:bg-zinc-800/30"},bQ=["colspan"],MQ={key:0,class:"px-4 py-3 bg-zinc-50/50 dark:bg-zinc-800/30 border-t border-neutral-200 dark:border-neutral-700 flex flex-col sm:flex-row items-center justify-between gap-4 w-full"},xQ={class:"flex items-center gap-4"},wQ={class:"text-xs text-neutral-500 dark:text-neutral-400 font-medium"},vQ={class:"text-neutral-900 dark:text-neutral-100 font-medium"},CQ={class:"text-neutral-900 dark:text-neutral-100 font-medium"},LQ={class:"text-neutral-900 dark:text-neutral-100 font-medium"},SQ={class:"flex-shrink-0"},IQ={class:"space-y-4"},_Q={class:"text-gray-600 dark:text-gray-400"},AQ={class:"grid grid-cols-1 md:grid-cols-2 gap-4 py-4 px-1"},uS=t.defineComponent({__name:"DataTable",props:{columns:{default:()=>[]},data:{default:()=>[]},perPage:{default:10},loading:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!1},nested:{type:Boolean,default:!1},apiModule:{},apiAction:{default:"list"},apiMethod:{},apiUrl:{},permissionBase:{},apiParams:{default:()=>({})},configKey:{},tableConfig:{},dynamicColumns:{type:Boolean,default:!1},searchApiEndpoint:{},enableQuickSearch:{type:Boolean,default:!0},showPagination:{type:Boolean,default:!0},ignorePermissions:{type:Boolean,default:!1},userPermissions:{default:null},permissionChecker:{type:Function,default:void 0}},emits:["update:search","update:sort","update:page","create","export","action","update:selection","navigate"],setup(a,{expose:e,emit:n}){console.log("[DEBUG] DataTable.vue loaded - top level");const o=a,r=n,{apiUrl:i}=Ke(),{locale:s}=MS.useI18n(),c=t.ref(""),d=t.ref(1),h=t.ref(o.perPage),u=t.ref({key:"",direction:"asc"}),p=t.ref([]),y=t.ref(!1),f=t.ref(0),k=t.ref({}),m=t.ref([]),g=t.ref(null),v=t.ref(!0),L=t.ref([]),w=t.ref([]),M=t.ref([]),C=t.ref(!1),S=t.ref(!1),b=t.ref({}),x=t.ref(null),I=t.ref(null),V=t.ref(null),B=t.ref([]),A=t.computed(()=>{if(xt.value.length===0)return!1;const _=xt.value.map(E=>{const X=de.value.find($=>$.type==="CHECKBOX"),q=(X==null?void 0:X.keyCheckbox)||"id";return E[q]}).filter(E=>E!=null);return _.length===0?!1:_.every(E=>B.value.includes(E))}),P=t.computed(()=>{if(xt.value.length===0)return!1;const _=de.value.find($=>$.type==="CHECKBOX"),E=(_==null?void 0:_.keyCheckbox)||"id",X=xt.value.map($=>$[E]).filter($=>$!=null),q=X.filter($=>B.value.includes($)).length;return q>0&&q<X.length}),D=_=>{const E=de.value.find($=>$.type==="CHECKBOX"),X=(E==null?void 0:E.keyCheckbox)||"id",q=_[X];return q!==void 0&&B.value.includes(q)},U=_=>{const E=de.value.find($=>$.type==="CHECKBOX"),X=(E==null?void 0:E.keyCheckbox)||"id",q=xt.value.map($=>$[X]).filter($=>$!=null);if(_){const $=new Set([...B.value,...q]);B.value=Array.from($)}else B.value=B.value.filter($=>!q.includes($))},T=(_,E)=>{const X=de.value.find(Y=>Y.type==="CHECKBOX"),q=(X==null?void 0:X.keyCheckbox)||"id",$=_[q];$!=null&&(E?B.value.includes($)||B.value.push($):B.value=B.value.filter(Y=>Y!==$))};t.watch(B,_=>{var X;r("update:selection",_);const E=A.value||_.length>1;(X=w.value)!=null&&X.length&&w.value.forEach(q=>{var $;($=q.fieldActionGlobal)!=null&&$.length&&q.fieldActionGlobal.forEach(Y=>{var Ge,rt;const fe=q.endpoint||((Ge=q.propsActionGlobal)==null?void 0:Ge.endpointPropAction)||q.propsActionGlobal,xe=(rt=fe==null?void 0:fe.keyParam)==null?void 0:rt[0];(xe&&Y.model===xe||!xe&&/^(id|ids|idAuditTrail)/i.test(Y.model))&&E&&Y.model&&(b.value[Y.model]=_)})})},{deep:!0});const H=_=>_&&typeof _=="string"&&_.trim()?_:void 0,N=t.computed(()=>{var _,E,X,q;return H((E=(_=g.value)==null?void 0:_.endpoint)==null?void 0:E.apiModule)||H((q=(X=g.value)==null?void 0:X.endpointGlobal)==null?void 0:q.apiModule)||o.apiModule}),Q=t.computed(()=>{var _,E,X,q;return H((E=(_=g.value)==null?void 0:_.endpoint)==null?void 0:E.apiAction)||H((q=(X=g.value)==null?void 0:X.endpointGlobal)==null?void 0:q.apiAction)||o.apiAction}),j=t.computed(()=>{var _,E,X,q;return H((E=(_=g.value)==null?void 0:_.endpoint)==null?void 0:E.apiMethod)||H((q=(X=g.value)==null?void 0:X.endpointGlobal)==null?void 0:q.apiMethod)||o.apiMethod||"POST"}),F=t.computed(()=>{var _,E,X,q;return H((E=(_=g.value)==null?void 0:_.endpoint)==null?void 0:E.apiUrl)||H((q=(X=g.value)==null?void 0:X.endpointGlobal)==null?void 0:q.apiUrl)||o.apiUrl}),R=t.computed(()=>o.permissionBase||""),Z=t.computed(()=>!M.value||M.value.length===0?[]:[...M.value].sort((_,E)=>(_.seq||0)-(E.seq||0))),J=_=>{if(!_)return"col-span-1";const E=_.toLowerCase();return{full:"col-span-1 md:col-span-2",half:"col-span-1",third:"col-span-1","two-thirds":"col-span-1 md:col-span-2",two_thirds:"col-span-1 md:col-span-2"}[E]||"col-span-1"},re=()=>{let _=null;if(o.tableConfig&&(_=o.tableConfig),_){g.value=_,_.headers&&(m.value=_.headers.map(q=>{var fe,xe,Be,Ge,rt,mS,cq,dq,hq,uq;if(q.key==="action"||((fe=q.custom)==null?void 0:fe.type)==="ACTION"||((xe=q.custom)==null?void 0:xe.type)==="action"){const Ba=((Be=q.custom)==null?void 0:Be.actionCustom)||((Ge=q.custom)==null?void 0:Ge.action);return Ba&&(L.value=Ba.map(ia=>{const Fe=ia.propsActionCustom||ia.props||{},gS=ia.propCustomMessage||{};return{permission:ia.permission,label:s.value==="id"?Fe.labelID:Fe.labelEN,tooltip:s.value==="id"?Fe.tooltipID||Fe.labelID:Fe.tooltipEN||Fe.labelEN,icon:Fe.icon,variant:Fe.variant||"ghost",bgColor:Fe.bgColor,action:Fe.actionType||Fe.key,route:Fe.route,path:Fe.path,endpoint:Fe.endpointPropAction,requiredCondition:ia.requiredCondition||!1,propCustomCondition:ia.propCustomCondition||[],openDialog:ia.openDialog||!1,fieldActionCustom:(ia.fieldActionCustom||[]).map(bS=>{const p_=bS.propsFieldCustom||bS.propsFieldGlobal||bS.props||{};return{...bS,props:{...p_,endpoint:p_.endpointComponent||p_.endpoint}}}),requireConfirm:ia.requireConfirm||Fe.requireConfirm||!1,confirmTitle:s.value==="id"?gS.titleID||Fe.confirmTitleID||"Konfirmasi":gS.titleEN||Fe.confirmTitleEN||"Confirm",confirmMessage:s.value==="id"?gS.messageID||Fe.confirmMessageID||"Apakah Anda yakin?":gS.messageEN||Fe.confirmMessageEN||"Are you sure?"}})),null}let $;const Y=((rt=q.custom)==null?void 0:rt.conditionBadge)||((mS=q.custom)==null?void 0:mS.condition);return(((cq=q.custom)==null?void 0:cq.type)==="BADGE"||((dq=q.custom)==null?void 0:dq.type)==="badge")&&Y&&($=Y.map(Ba=>({value:Ba.value,label:s.value==="id"?Ba.labelID:Ba.labelEN,color:Ba.color,variant:Ba.variant}))),{key:q.key,label:s.value==="id"?q.labelID:q.labelEN,width:q.width,align:q.align,sortable:!0,type:(hq=q.custom)==null?void 0:hq.type,condition:$,keyCheckbox:(uq=q.custom)==null?void 0:uq.keyCheckbox}}).filter(q=>q!==null));const E=_.filters||_.filter;E&&Array.isArray(E)&&(M.value=E.map(q=>({...q,props:q.propsFilters||q.props||{}})),M.value.forEach(q=>{k.value[q.model]=""}));const X=_.actionGlobal||_.action;console.log("[DEBUG] loadConfig rawActions:",X),X&&Array.isArray(X)?(w.value=X.map(q=>{const $=q.propsActionGlobal||q.props||{};return{key:$.key,permission:q.permission,label:s.value==="id"?$.labelID||"Action":$.labelEN||"Action",tooltip:s.value==="id"?$.tooltipID||$.labelID:$.tooltipEN||$.labelEN,icon:$.icon,variant:$.variant||"default",bgColor:$.bgColor,textColor:$.textColor,route:$.route,path:$.path,endpoint:$.endpointPropAction||q.endpoint,openDialog:q.openDialog||!1,fieldActionGlobal:(q.fieldActionGlobal||q.field||[]).map(Y=>{const fe=Y.propsFieldGlobal||Y.props||{};return{...Y,props:{...fe,endpoint:fe.endpointComponent||fe.endpoint}}})}}),console.log("[DEBUG] loadConfig headerActions set:",w.value)):console.log("[DEBUG] loadConfig no rawActions found"),_.pagination!==void 0&&(v.value=_.pagination)}};t.watch(()=>o.tableConfig,()=>{re()},{deep:!0,immediate:!0});const de=t.computed(()=>o.dynamicColumns||o.configKey||o.tableConfig?m.value:o.columns||[]),ue=t.computed(()=>o.hasActions||L.value.length>0),ve=t.computed(()=>N.value||F.value?y.value:o.loading),le=t.computed(()=>!!N.value||!!F.value),G=t.computed(()=>[]),z=_=>{if(console.log("[DEBUG] hasAction called:",{actionCode:_,permissionChecker:!!o.permissionChecker,effectivePath:R.value}),o.permissionChecker){const E=o.permissionChecker(R.value,_);return console.log("[DEBUG] permissionChecker result:",E),E}return G.value.some(E=>E.code===_)},W=(_,E)=>{if(!_.visibilityCondition)return!0;const{field:X,operator:q,value:$}=_.visibilityCondition,Y=O(E,X);switch(q){case"equals":return Y===$;case"notEquals":return Y!==$;case"in":return Array.isArray($)&&$.includes(Y);case"notIn":return Array.isArray($)&&!$.includes(Y);case"greaterThan":return Y>$;case"lessThan":return Y<$;case"contains":return String(Y).includes(String($));default:return!0}},ee=t.computed(()=>{if(console.log("[DEBUG] visibleHeaderActions:",{headerActions:w.value,ignorePermissions:o.ignorePermissions}),w.value.length===0)return w.value;const _=w.value.filter(E=>{if(o.ignorePermissions)return!0;if(!E.permission)return console.log("[DEBUG] Action no permission, showing:",E.label),!0;const X=z(E.permission);return console.log("[DEBUG] Action permission check:",{label:E.label,permission:E.permission,hasPerm:X}),X});return console.log("[DEBUG] Filtered header actions:",_.length),_}),pe=t.computed(()=>L.value.length===0?L.value:L.value.filter(_=>o.ignorePermissions||!_.permission?!0:z(_.permission))),qe=_=>pe.value.filter(E=>W(E,_)),ot=(_,E)=>{var $,Y;if(_.requiredCondition&&(($=_.propCustomCondition)==null?void 0:$.length)>0){const fe=O(E,"status"),xe=_.propCustomCondition.find(Be=>Be.value===fe);if(xe)return xe.bgColor||_.bgColor||"primary"}if(!_.dynamicColor||!_.colorCondition)return _.bgColor||"primary";const X=O(E,_.colorCondition.field),q=(Y=_.colorCondition.conditions)==null?void 0:Y.find(fe=>fe.value===X);return(q==null?void 0:q.bgColor)||_.bgColor||"primary"},Mt=_=>{const E=(_||"left").toLowerCase();return E==="center"?"justify-center":E==="right"?"justify-end":"justify-start"},oa={ToggleLeft:n1,SquarePen:Xe,Trash2:_i,Eye:ds,CheckCircle:da,Plus:Qs,Download:$s,RefreshCw:ps,Search:yr,SlidersHorizontal:a1},Aa=_=>_?Gt[_]?Gt[_]:oa[_]||null:null,xt=t.computed(()=>le.value?p.value.map((_,E)=>({..._,no:(d.value-1)*h.value+E+1})):_e.value),$t=t.computed(()=>le.value?f.value:ae.value.length),D1=t.computed(()=>$t.value===0?0:(d.value-1)*h.value+1),E1=t.computed(()=>{const _=d.value*h.value;return _>$t.value?$t.value:_}),O=(_,E)=>{if(!(!_||!E))return E in _?_[E]:E.split(".").reduce((X,q)=>X&&X[q],_)},ae=t.computed(()=>{if(le.value)return[];if(!c.value)return o.data;const _=c.value.toLowerCase();return o.data.filter(E=>de.value.some(X=>{const q=O(E,X.key);return q==null?!1:String(q).toLowerCase().includes(_)}))}),he=t.computed(()=>le.value?[]:u.value.key?[...ae.value].sort((E,X)=>{const q=O(E,u.value.key),$=O(X,u.value.key);if(q===$)return 0;let Y=0;return typeof q=="number"&&typeof $=="number"?Y=q-$:Y=String(q).localeCompare(String($)),u.value.direction==="asc"?Y:-Y}):ae.value),_e=t.computed(()=>{if(le.value)return[];const _=(d.value-1)*h.value,E=_+h.value;return he.value.slice(_,E).map((X,q)=>({...X,no:_+q+1}))}),Pe=t.computed(()=>le.value?Object.values(k.value).some(_=>!!_):!!c.value),K=[10,25,50,100],te=()=>{le.value&&(k.value={...k.value,keyword:c.value},d.value=1,We())};let ne;const ye=()=>{o.enableQuickSearch&&(clearTimeout(ne),ne=setTimeout(()=>{te()},500))};let Ve;const ra=()=>{clearTimeout(Ve),Ve=setTimeout(()=>{le.value&&We()},1e3)};t.watch(c,()=>{o.enableQuickSearch&&le.value&&ye()});const We=async()=>{if(le.value&&!(!N.value&&!F.value))try{y.value=!0;const _={page:d.value,perPage:h.value,...k.value,...o.apiParams};c.value&&(_.keyword=c.value),Object.keys(_).forEach(X=>{(_[X]===""||_[X]===null||_[X]===void 0)&&delete _[X]});let E;N.value?E=await i(N.value,Q.value,_):F.value&&(E=await i(F.value,j.value,_)),tq(E)}catch(_){console.error("DataTable fetch error",_),y.value=!1}},tq=_=>{console.log("DataTable handleResponseData:",_),_&&(o.dynamicColumns&&_.columns&&Array.isArray(_.columns)&&(m.value=_.columns.map(E=>({key:E.key||E.field||E.name,label:E.label||E.header||E.name,width:E.width,align:E.align||"LEFT",sortable:E.sortable!==!1,type:E.type,condition:E.condition,format:E.format}))),_.data&&Array.isArray(_.data)?(p.value=_.data,_.totalData?f.value=_.totalData:_.maxPage?f.value=_.maxPage*h.value:f.value=_.data.length*(_.maxPage||1)):Array.isArray(_)?(p.value=_,f.value=_.length):_.users?(p.value=_.users,f.value=_.users.length):_.items&&Array.isArray(_.items)?(p.value=_.items,f.value=_.total||_.totalItems||_.items.length):_.list&&Array.isArray(_.list)?(p.value=_.list,f.value=_.total||_.list.length):_.rows&&Array.isArray(_.rows)?(p.value=_.rows,f.value=_.count||_.total||_.rows.length):_.result&&Array.isArray(_.result)?(p.value=_.result,f.value=_.total||_.count||_.result.length):(console.warn("DataTable: Unknown response format",_),p.value=[],f.value=0)),y.value=!1};t.onUnmounted(()=>{clearTimeout(ne),clearTimeout(Ve)});const yS=()=>{Object.keys(k.value).forEach(_=>{k.value[_]=""}),c.value="",d.value=1,We()},aq=()=>{d.value=1,We()},fS=(_,E)=>{const X=O(_,E.key);let q={variant:"secondary",class:"",label:X};if(E.condition){const $=E.condition.find(Y=>{const fe=(xe,Be)=>typeof xe=="string"&&typeof Be=="string"?xe.toLowerCase().trim()===Be.toLowerCase().trim():xe==Be;return typeof X=="object"&&X!==null?fe(Y.value,X.code)||fe(Y.value,X.id):fe(Y.value,X)});if($){if($.variant&&(q.variant=$.variant),q.label=$.label||(typeof X=="object"?X.name||X.code:X),$.color){const Y=$.color.toLowerCase(),fe=q.variant==="outline",xe={success:"bg-green-500 hover:bg-green-600 border-transparent text-white shadow",warning:"bg-yellow-500 hover:bg-yellow-600 border-transparent text-white shadow",info:"bg-blue-500 hover:bg-blue-600 border-transparent text-white shadow"},Be={success:"text-green-600 border-green-600 hover:bg-green-50",warning:"text-yellow-600 border-yellow-600 hover:bg-yellow-50",info:"text-blue-600 border-blue-600 hover:bg-blue-50",danger:"text-red-600 border-red-600 hover:bg-red-50",destructive:"text-red-600 border-red-600 hover:bg-red-50",primary:"text-primary-600 border-primary-600 hover:bg-primary-50",secondary:"text-neutral-600 border-neutral-600 hover:bg-zinc-50"},Ge={danger:"destructive",secondary:"secondary",primary:"default"};fe?Be[Y]&&(q.class=Be[Y]):Ge[Y]?q.variant=Ge[Y]:xe[Y]&&(q.class=xe[Y])}}else q.label=typeof X=="object"?(X==null?void 0:X.name)||(X==null?void 0:X.code)||"-":X}else q.label=typeof X=="object"?(X==null?void 0:X.name)||(X==null?void 0:X.code)||"-":X;return q},nq=_=>{u.value.key===_?u.value.direction=u.value.direction==="asc"?"desc":"asc":(u.value.key=_,u.value.direction="asc"),r("update:sort",u.value)},c_=_=>{_!==d.value&&(d.value=_,le.value&&We(),r("update:page",_))},oq=_=>{h.value=_,d.value=1,le.value&&We()},rq=_=>{const E=Math.random()*15+75;if(_.width){const X=parseInt(String(_.width));return X<100?`${Math.floor(X*(Math.random()*.2+.7))}px`:`${E}%`}return`${E}%`},d_=()=>{c.value="",k.value={},d.value=1,We()},iq=_=>{var E;if(console.log("[DEBUG] handleHeaderAction called:",_),_.route||_.path)console.log("[DEBUG] Emitting navigate:",{route:_.route,path:_.path}),r("navigate",{route:_.route,path:_.path,key:_.key});else if(_.openDialog){I.value=_,V.value=null,b.value={};const X=_.fieldActionGlobal||_.field||[];X.length&&X.forEach(q=>{var fe;const $=_.endpoint||((fe=_.propsActionGlobal)==null?void 0:fe.endpointPropAction)||_.propsActionGlobal,Y=$!=null&&$.keyParam&&$.keyParam.length>0?$.keyParam[0]:null;Y&&q.model===Y||!Y&&/^(id|ids|idAuditTrail)/i.test(q.model)?b.value[q.model]=B.value:b.value[q.model]||(b.value[q.model]="")}),S.value=!0}else r("action",{action:((E=_.propsActionCustom)==null?void 0:E.key)||_.key||"create",row:null,selection:B.value})},sq=(_,E)=>{if(_.requireConfirm){x.value={button:_,row:E},C.value=!0;return}if(_.openDialog){I.value=_,V.value=E,b.value={};const X=de.value.find($=>$.type==="CHECKBOX"),q=(X==null?void 0:X.keyCheckbox)||"id";_.fieldActionCustom&&_.fieldActionCustom.forEach($=>{/^(id|ids|idAuditTrail)/i.test($.model)?b.value[$.model]=[E[q]]:b.value[$.model]=""}),S.value=!0;return}h_(_,E)},h_=(_,E)=>{if(_.route){if(_.path){const q=_.route.startsWith("/")?_.route:"/"+_.route;sessionStorage.setItem(`layout_${q}`,_.path)}let X=_.route;X.includes(":")?X=X.replaceAll(/:([a-zA-Z0-9_]+)/g,(q,$)=>E[$]||E.id||$):E.id&&(X=`${X.replace(/\/$/,"")}/${E.id}`),_.path&&_.path,r("navigate",{route:X,path:_.path})}else if(_.endpoint&&_.endpoint.apiUrl){y.value=!0;const{apiUrl:X}=Ke(),q=_.endpoint.apiUrl,$=_.endpoint.apiMethod||"POST",Y={};_.endpoint.keyParam&&Array.isArray(_.endpoint.keyParam)&&_.endpoint.keyParam.forEach((fe,xe)=>{const Be=_.endpoint.model&&xe===0?_.endpoint.model:fe;E[fe]!==void 0&&(Y[Be]=E[fe])}),Object.keys(Y).length===0&&E.id&&(Y.id=E.id),X(q,$,Y).then(()=>{We(),r("action",{action:_.action||"success",row:E})}).catch(fe=>{console.error("Action Failed",fe)}).finally(()=>{y.value=!1})}else r("action",{action:_.action,row:E})},u_=()=>{x.value&&(h_(x.value.button,x.value.row),lq())},DQ=()=>{var _,E;if(I.value){const X=I.value,q=X.endpoint||((_=X.propsActionGlobal)==null?void 0:_.endpointPropAction)||X.propsActionGlobal;let $=(q==null?void 0:q.model)||(q!=null&&q.keyParam&&q.keyParam.length>0?q.keyParam[0]:null);if(!$){const Be=(X.fieldActionGlobal||X.fieldActionCustom||X.field||[]).find(Ge=>/^(id|ids|idAuditTrail)/i.test(Ge.model));$=Be?Be.model:"ids"}let Y=null,fe=!1;if(V.value){const xe=de.value.find(rt=>rt.type==="CHECKBOX"),Be=(xe==null?void 0:xe.keyCheckbox)||"id",Ge=V.value[Be];q!=null&&q.apiUrl&&(Y={...b.value},Y[$]||(Y[$]=[Ge]),fe=!0)}else q!=null&&q.apiUrl&&(Y={...b.value},Y[$]||(Y[$]=B.value||[]),fe=!0);if(fe&&Y&&(q!=null&&q.apiUrl)){const{apiUrl:xe}=Ke(),Be=q.apiUrl,Ge=q.apiMethod||"POST";xe(Be,Ge,Y).then(()=>{S.value=!1,V.value||(B.value=[]),We(),r("action",{action:"success",row:null})}).catch(rt=>{console.error("Action Failed",rt)})}else if(V.value){const xe=de.value.find(mS=>mS.type==="CHECKBOX"),Be=(xe==null?void 0:xe.keyCheckbox)||"id",Ge=V.value[Be],rt={...b.value};rt[$]||(rt[$]=[Ge]),r("action",{action:I.value.action,row:rt}),S.value=!1}else{const xe={...b.value};xe[$]||(xe[$]=B.value);const Be={action:((E=I.value.propsActionGlobal)==null?void 0:E.key)||I.value.key,row:xe,selection:B.value};r("action",Be),S.value=!1}}},lq=()=>{C.value=!1,x.value=null},EQ=t.computed(()=>x.value?x.value.button.confirmTitle||"Confirm":""),TQ=t.computed(()=>x.value?x.value.button.confirmMessage||"Confirm":"");e({fetchData:We,filters:k,resetFilters:yS,handleRefresh:d_});const kS=t.ref(""),HQ=_=>{if(!_)return"";const E=_.endpoint||_.endpointGlobal||{};return JSON.stringify({url:E.apiUrl||_.apiUrl,module:E.apiModule||_.apiModule,action:E.apiAction||_.apiAction,method:E.apiMethod||_.apiMethod,params:_.apiParams,socket:E.socket||_.socketEndpoint,socketParams:_.socketParams})};return t.watch(()=>o.tableConfig,()=>{if(o.tableConfig){re();const _=HQ(o.tableConfig);_!==kS.value&&(!kS.value&&le.value?(kS.value=_,We()):(kS.value=_,le.value&&ra()))}},{deep:!0,immediate:!0}),t.watch(()=>o.apiModule,()=>{le.value&&We()}),t.watch(()=>o.apiParams,()=>{le.value&&We()},{deep:!0}),t.watch(()=>w.value,_=>{console.log("[DEBUG] headerActions changed:",_.length,"items");const E=ee.value;console.log("[DEBUG] visibleHeaderActions evaluated:",E.length,"items")},{deep:!0}),t.onMounted(()=>{re(),le.value&&(o.tableConfig||(y.value=!0,We()))}),(_,E)=>{var X;return t.openBlock(),t.createElementBlock("div",NY,[t.createElementVNode("div",$Y,[t.createElementVNode("div",UY,[a.nested?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",WY,[t.createElementVNode("div",GY,[t.createVNode(t.unref(yr),{class:"absolute left-2.5 top-2.5 h-4 w-4 text-neutral-500 dark:text-neutral-400"}),t.createVNode(t.unref(o_),{modelValue:c.value,"onUpdate:modelValue":E[0]||(E[0]=q=>c.value=q),placeholder:"Search...",style:{"padding-left":"2.25rem !important"},class:"h-9 bg-white/95 dark:bg-zinc-800/95 border-white/30 dark:border-neutral-700/50 text-neutral-900 dark:text-neutral-100 placeholder:text-neutral-500 dark:placeholder:text-neutral-400",onKeyup:t.withKeys(te,["enter"])},null,8,["modelValue"])]),M.value.length>0?(t.openBlock(),t.createElementBlock("div",KY,[t.createVNode(CY,null,{trigger:t.withCtx(()=>[t.createVNode(ws,{variant:"secondary",icon:"SlidersHorizontal",tooltip:"Advance Search",class:"gap-2 h-9 w-full sm:w-auto justify-center bg-white/95 dark:bg-zinc-800/95 text-neutral-700 dark:text-neutral-300 hover:bg-zinc-50 dark:hover:bg-zinc-800 border border-white/30 dark:border-neutral-700/50 shadow-sm backdrop-blur-sm text-xs font-medium"})]),footer:t.withCtx(()=>[t.createElementVNode("div",JY,[t.renderSlot(_.$slots,"filter-footer",{fetch:We,reset:yS})])]),default:t.withCtx(()=>[t.createElementVNode("div",XY,[t.renderSlot(_.$slots,"filter-form",{filters:k.value},()=>[M.value.length>0?(t.openBlock(),t.createElementBlock("div",ZY,[t.createElementVNode("div",YY,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Z.value,(q,$)=>(t.openBlock(),t.createElementBlock("div",{key:$,class:t.normalizeClass(J(q.column))},[t.createVNode(Yz,{field:q,modelValue:k.value[q.model],"onUpdate:modelValue":Y=>k.value[q.model]=Y},null,8,["field","modelValue","onUpdate:modelValue"])],2))),128))])])):t.createCommentVNode("",!0)]),M.value.length>0?(t.openBlock(),t.createElementBlock("div",QY,[t.createVNode(t.unref(Ee),{variant:"outline",onClick:yS,disabled:ve.value,class:"flex-1 w-full"},{default:t.withCtx(()=>[...E[8]||(E[8]=[t.createTextVNode(" Reset ",-1)])]),_:1},8,["disabled"]),t.createVNode(t.unref(Ee),{onClick:aq,disabled:ve.value,class:"flex-1 w-full"},{default:t.withCtx(()=>[...E[9]||(E[9]=[t.createTextVNode(" Search ",-1)])]),_:1},8,["disabled"])])):t.createCommentVNode("",!0)])]),_:3})])):t.createCommentVNode("",!0)])),t.createElementVNode("div",{class:t.normalizeClass(["flex items-center gap-2 flex-wrap",{"w-full justify-between":a.nested}])},[a.nested?(t.openBlock(),t.createElementBlock("span",eQ)):t.createCommentVNode("",!0),a.nested?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ws,{key:1,variant:"secondary",icon:"RefreshCw",text:"Refresh",tooltip:"Refresh",class:"gap-2 h-9 bg-white/95 dark:bg-zinc-800/95 text-neutral-700 dark:text-neutral-300 hover:bg-white dark:hover:bg-zinc-800 border border-white/30 dark:border-neutral-700/50 shadow-sm backdrop-blur-sm text-xs font-medium",onClick:d_,disabled:ve.value},{icon:t.withCtx(()=>[t.createVNode(t.unref(ps),{class:t.normalizeClass(["w-3.5 h-3.5",{"animate-spin":ve.value}])},null,8,["class"])]),_:1},8,["disabled"])),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ee.value,(q,$)=>(t.openBlock(),t.createBlock(ws,{key:$,icon:q.icon,text:q.label,tooltip:q.tooltip,variant:q.variant,"bg-color":q.bgColor,"text-color":q.textColor,class:"gap-2 h-9 shadow-lg shadow-primary-500/20 border-none text-xs font-medium",onClick:Y=>iq(q)},null,8,["icon","text","tooltip","variant","bg-color","text-color","onClick"]))),128)),t.renderSlot(_.$slots,"header-actions")],2)])]),t.createElementVNode("div",tQ,[t.createElementVNode("table",aQ,[t.createElementVNode("thead",nQ,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(de.value,q=>(t.openBlock(),t.createElementBlock("th",{key:q.key,class:t.normalizeClass([q.align?`text-${q.align.toLowerCase()}`:"",q.sortable?"cursor-pointer select-none":"","px-3 py-2 text-xs font-black text-white dark:text-neutral-100 uppercase tracking-wider transition-colors duration-150"]),style:t.normalizeStyle(q.width?{width:q.width}:{}),onClick:$=>q.sortable&&nq(q.key)},[q.type==="CHECKBOX"?(t.openBlock(),t.createElementBlock("div",rQ,[t.createVNode(q1,{"model-value":A.value,indeterminate:P.value,"onUpdate:modelValue":E[1]||(E[1]=$=>U(!!$)),onClick:E[2]||(E[2]=t.withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate"])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["flex items-center gap-2 w-full",Mt(q.align)])},[t.createElementVNode("span",null,t.toDisplayString(q.label),1)],2))],14,oQ))),128)),ue.value?(t.openBlock(),t.createElementBlock("th",iQ,[...E[10]||(E[10]=[t.createElementVNode("div",{class:"flex items-center justify-center w-full"}," Actions ",-1)])])):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",sQ,[ve.value?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(h.value,q=>(t.openBlock(),t.createElementBlock("tr",{key:`skeleton-${q}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(de.value,$=>{var Y,fe;return t.openBlock(),t.createElementBlock("td",{key:$.key,class:t.normalizeClass([$.align?`text-${$.align.toLowerCase()}`:"text-left","px-3 py-0.5"])},[t.createElementVNode("div",{class:t.normalizeClass(["bg-gradient-to-r from-neutral-200 via-neutral-300 to-neutral-200 dark:from-neutral-700 dark:via-neutral-600 dark:to-neutral-700 animate-shimmer",[["badge","BADGE"].includes($.type??"")||$.condition?"h-5 rounded-full w-20":"h-4 rounded-md",((Y=$.align)==null?void 0:Y.toLowerCase())==="center"?"mx-auto":"",((fe=$.align)==null?void 0:fe.toLowerCase())==="right"?"ml-auto":""]]),style:t.normalizeStyle({width:["badge","BADGE"].includes($.type??"")||$.condition?void 0:rq($),backgroundSize:"200% 100%"})},null,6)],2)}),128)),a.hasActions?(t.openBlock(),t.createElementBlock("td",lQ,[...E[11]||(E[11]=[t.createElementVNode("div",{class:"flex items-center justify-center gap-1.5"},[t.createElementVNode("div",{class:"w-9 h-9 bg-zinc-200 dark:bg-zinc-700 rounded-xl animate-pulse"}),t.createElementVNode("div",{class:"w-9 h-9 bg-zinc-200 dark:bg-zinc-700 rounded-xl animate-pulse delay-75"}),t.createElementVNode("div",{class:"w-9 h-9 bg-zinc-200 dark:bg-zinc-700 rounded-xl animate-pulse delay-150"})],-1)])])):t.createCommentVNode("",!0)]))),128)):xt.value.length===0?(t.openBlock(),t.createElementBlock("tr",cQ,[t.createElementVNode("td",{colspan:de.value.length+(ue.value?1:0),class:"text-center py-16"},[t.createElementVNode("div",hQ,[t.createElementVNode("div",null,[t.createElementVNode("p",uQ,t.toDisplayString(Pe.value?"No search results":"No data"),1),t.createElementVNode("p",pQ,t.toDisplayString(Pe.value?"Try changing keywords":"No data added"),1)])])],8,dQ)])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(xt.value,(q,$)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:$},[t.createElementVNode("tr",yQ,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(de.value,Y=>(t.openBlock(),t.createElementBlock("td",{key:Y.key,class:t.normalizeClass([Y.align?`text-${Y.align}`:"text-left","px-3 py-0.5 text-sm text-neutral-900 dark:text-neutral-100"])},[t.renderSlot(_.$slots,`cell-${Y.key}`,{row:q,value:O(q,Y.key)},()=>[Y.type==="CHECKBOX"?(t.openBlock(),t.createElementBlock("div",fQ,[t.createVNode(q1,{"model-value":D(q),"onUpdate:modelValue":fe=>T(q,!!fe),onClick:E[3]||(E[3]=t.withModifiers(()=>{},["stop"]))},null,8,["model-value","onUpdate:modelValue"])])):Y.type==="badge"||Y.type==="BADGE"||Y.condition?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["flex items-center gap-1.5 flex-wrap md:flex-nowrap",[Y.align?`justify-${Y.align}`:"justify-start"]])},[t.createVNode(t.unref(_a),{variant:fS(q,Y).variant,class:t.normalizeClass([fS(q,Y).class,"whitespace-nowrap truncate max-w-[150px] inline-block"])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(fS(q,Y).label),1)]),_:2},1032,["variant","class"])],2)):Y.key==="no"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(t.toDisplayString((d.value-1)*h.value+$+1),1)],64)):Y.type==="date"||Y.type==="DATE"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode(t.toDisplayString(O(q,Y.key)?t.unref(yY)(O(q,Y.key),"long"):"-"),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode(t.toDisplayString(Y.format?Y.format(O(q,Y.key)):O(q,Y.key)),1)],64))])],2))),128)),ue.value?(t.openBlock(),t.createElementBlock("td",kQ,[t.renderSlot(_.$slots,"actions",{row:q,buttons:qe(q),getButtonColor:ot,getIconComponent:Aa},()=>[qe(q).length>0?(t.openBlock(),t.createElementBlock("div",mQ,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(qe(q),(Y,fe)=>(t.openBlock(),t.createElementBlock("div",{key:fe,class:"group relative"},[t.createVNode(ws,{tooltip:Y.tooltip||Y.label,icon:Aa(Y.icon),size:"icon",variant:Y.variant||"ghost","bg-color":ot(Y,q),onClick:xe=>sq(Y,q)},null,8,["tooltip","icon","variant","bg-color","onClick"])]))),128))])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]),_.$slots["expanded-row"]?(t.openBlock(),t.createElementBlock("tr",gQ,[t.createElementVNode("td",{colspan:de.value.length+(ue.value?1:0),class:"px-0 py-0"},[t.renderSlot(_.$slots,"expanded-row",{row:q,index:$})],8,bQ)])):t.createCommentVNode("",!0)],64))),128))])])]),!ve.value&&xt.value.length>0&&a.showPagination&&v.value?(t.openBlock(),t.createElementBlock("div",MQ,[t.createElementVNode("div",xQ,[t.createVNode(t.unref(DY),{"model-value":String(h.value),"onUpdate:modelValue":E[4]||(E[4]=q=>oq(Number(q)))},{default:t.withCtx(()=>[t.createVNode(t.unref(FY),{class:"h-8 w-[70px] bg-white dark:bg-zinc-800 border-neutral-200 dark:border-neutral-700"},{default:t.withCtx(()=>[t.createVNode(t.unref(RY),{placeholder:String(h.value)},null,8,["placeholder"])]),_:1}),t.createVNode(t.unref(EY),null,{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(K,q=>t.createVNode(t.unref(HY),{key:q,value:String(q)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(q),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1},8,["model-value"]),E[16]||(E[16]=t.createElementVNode("div",{class:"h-5 w-px bg-zinc-300 dark:bg-zinc-600"},null,-1)),t.createElementVNode("span",wQ,[E[12]||(E[12]=t.createTextVNode(" Showing ",-1)),t.createElementVNode("span",vQ,t.toDisplayString(D1.value),1),E[13]||(E[13]=t.createTextVNode(" to ",-1)),t.createElementVNode("span",CQ,t.toDisplayString(E1.value),1),E[14]||(E[14]=t.createTextVNode(" of ",-1)),t.createElementVNode("span",LQ,t.toDisplayString($t.value),1),E[15]||(E[15]=t.createTextVNode(" items ",-1))])]),t.createElementVNode("div",SQ,[t.createVNode(t.unref(IY),{total:$t.value,"items-per-page":h.value,"sibling-count":1,"show-edges":"",page:d.value,"onUpdate:page":c_,class:"scale-90 origin-right"},{default:t.withCtx(()=>[t.createVNode(t.unref(_Y),{class:"flex items-center gap-1"},{default:t.withCtx(({items:q})=>[t.createVNode(t.unref(BY),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:opacity-50 disabled:cursor-not-allowed"},{default:t.withCtx(()=>[t.createVNode(t.unref(Os),{class:"h-4 w-4"})]),_:1}),t.createVNode(t.unref(PY),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:cursor-not-allowed"},{default:t.withCtx(()=>[t.createVNode(t.unref(dn),{class:"h-4 w-4"})]),_:1}),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(q,($,Y)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[$.type==="page"?(t.openBlock(),t.createBlock(t.unref(VY),{key:Y,value:$.value,"as-child":""},{default:t.withCtx(()=>[t.createVNode(t.unref(Ee),{class:"w-8 h-8 p-0 text-sm",variant:$.value===d.value?"default":"outline",disabled:$.value===d.value,onClick:fe=>c_($.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString($.value),1)]),_:2},1032,["variant","disabled","onClick"])]),_:2},1032,["value"])):(t.openBlock(),t.createBlock(t.unref(AY),{key:$.type,index:Y},null,8,["index"]))],64))),256)),t.createVNode(t.unref(qY),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:cursor-not-allowed"},{default:t.withCtx(()=>[t.createVNode(t.unref(hn),{class:"h-4 w-4"})]),_:1}),t.createVNode(t.unref(zY),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:cursor-not-allowed"},{default:t.withCtx(()=>[t.createVNode(t.unref(Fs),{class:"h-4 w-4"})]),_:1})]),_:1})]),_:1},8,["total","items-per-page","page"])])])):t.createCommentVNode("",!0),t.createVNode(lS,{modelValue:C.value,"onUpdate:modelValue":E[5]||(E[5]=q=>C.value=q),title:EQ.value,icon:"AlertCircle","max-width":450,persistent:!1},{actions:t.withCtx(()=>[t.createVNode(t.unref(Ee),{variant:"outline",onClick:lq},{default:t.withCtx(()=>[...E[17]||(E[17]=[t.createTextVNode(" Cancel ",-1)])]),_:1}),t.createVNode(t.unref(Ee),{onClick:u_},{default:t.withCtx(()=>[...E[18]||(E[18]=[t.createTextVNode(" Yes ",-1)])]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",IQ,[t.createElementVNode("p",_Q,t.toDisplayString(TQ.value),1)])]),_:1},8,["modelValue","title"]),t.createVNode(lS,{modelValue:S.value,"onUpdate:modelValue":E[7]||(E[7]=q=>S.value=q),title:((X=I.value)==null?void 0:X.label)||"Action",icon:"AlertCircle","max-width":450},{actions:t.withCtx(()=>[t.createVNode(t.unref(Ee),{variant:"outline",onClick:E[6]||(E[6]=q=>S.value=!1)},{default:t.withCtx(()=>[...E[19]||(E[19]=[t.createTextVNode(" Cancel ",-1)])]),_:1}),t.createVNode(t.unref(Ee),{onClick:DQ},{default:t.withCtx(()=>[...E[20]||(E[20]=[t.createTextVNode(" Save ",-1)])]),_:1})]),default:t.withCtx(()=>{var q,$;return[t.createElementVNode("div",AQ,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(((q=I.value)==null?void 0:q.fieldActionCustom)||(($=I.value)==null?void 0:$.fieldActionGlobal)||[],(Y,fe)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:fe},[Y.isHidden?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(J(Y.column))},[t.createVNode(Yz,{field:Y,modelValue:b.value[Y.model],"onUpdate:modelValue":xe=>b.value[Y.model]=xe},null,8,["field","modelValue","onUpdate:modelValue"])],2))],64))),128))])]}),_:1},8,["modelValue","title"])])}}}),BQ={class:"h-full flex flex-col"},VQ={key:1,class:"flex-1 flex items-center justify-center"},zQ={key:2,class:"flex-1 flex items-center justify-center text-red-500"},Qz=t.defineComponent({__name:"AutoLayoutDatatable",props:{layoutCode:{},userPermissions:{},permissionBase:{}},emits:["action","navigate"],setup(a,{emit:e}){const n=a,o=e,r=H1.useRoute();H1.useRouter();const{apiUrl:i}=Ke(),s=t.inject("hasActionAccess",()=>!1),c=t.inject("userPermissions",null),d=t.ref(null),h=t.ref(!0),u=t.ref(null),p=async()=>{var k;h.value=!0;try{const m=await i(`/api/auto-layout/datatable/form-dynamic?code=${n.layoutCode}`,"GET");m.status&&(d.value=Array.isArray(m.data)?m.data[0]:m.data,console.log("[DEBUG] AutoLayoutDatatable config loaded:",d.value),console.log("[DEBUG] actionGlobal in config:",(k=d.value)==null?void 0:k.actionGlobal))}catch(m){console.error("Gagal Menampilkan Datatable:",m)}finally{h.value=!1}},y=k=>{k.action==="add"&&console.log("[AutoLayoutDatatable] Add action triggered"),console.log("Aksi:",k.action,k)},f=k=>{console.log("[DEBUG] AutoLayoutDatatable handleNavigate:",k);let m=k.route;if(m||(m=`/${((r==null?void 0:r.path)||"").split("/")[1]||"product"}/create`),m){const g=k.path?{code:k.path}:{};console.log("[DEBUG] Emitting navigate to parent:",{path:m,query:g}),o("navigate",{route:m,query:g})}else console.warn("[DEBUG] No route or path provided for navigation")};return t.onMounted(()=>{p()}),(k,m)=>(t.openBlock(),t.createElementBlock("div",BQ,[!h.value&&d.value?(t.openBlock(),t.createBlock(uS,{key:0,ref_key:"dtRef",ref:u,"api-url":`/api/auto-layout/datatable/form-dynamic?code=${n.layoutCode}`,"api-method":"GET","table-config":d.value,"permission-base":n.permissionBase||"","user-permissions":n.userPermissions||t.unref(c),"permission-checker":t.unref(s),onAction:y,onNavigate:f},{"header-actions":t.withCtx(()=>[...m[0]||(m[0]=[])]),_:1},8,["api-url","table-config","permission-base","user-permissions","permission-checker"])):h.value?(t.openBlock(),t.createElementBlock("div",VQ,[...m[1]||(m[1]=[t.createElementVNode("i",{class:"mdi mdi-loading mdi-spin text-4xl text-primary-600"},null,-1)])])):(t.openBlock(),t.createElementBlock("div",zQ," Failed to load configuration for "+t.toDisplayString(n.layoutCode),1))]))}}),Jz=t.defineCustomElement(Zz),eq=t.defineCustomElement(Qz);typeof customElements<"u"&&(customElements.get("micro-dynamic-form")||customElements.define("micro-dynamic-form",Jz),customElements.get("micro-dynamic-datatable")||customElements.define("micro-dynamic-datatable",eq));const qQ=[qS,j_,ws,rI,gz,q1,bz,GI,lS,Ez,cS,Tz,QI,Hz,e_,a_,t_,n_,jz,r_,Oz,Fz,Rz,Nz,i_,s_,l_,dS,Gz,Kz,Xz,uS],PQ={install(a,e={}){e&&Object.keys(e).length>0&&gq(e),qQ.forEach(n=>{n.name&&a.component(n.name,n)})}};oe.AutoLayoutDatatable=Qz,oe.AutoLayoutForm=Zz,oe.DCodeAutoComplete=qS,oe.DCodeButton=ws,oe.DCodeCard=rI,oe.DCodeChart=gz,oe.DCodeCheckbox=q1,oe.DCodeCurrencyField=bz,oe.DCodeDatePicker=GI,oe.DCodeDialog=lS,oe.DCodeDialogCloseBtn=Ez,oe.DCodeDropzone=cS,oe.DCodeFileField=Tz,oe.DCodeFileResult=QI,oe.DCodeIconDropdown=Hz,oe.DCodeImageCropperDialog=e_,oe.DCodeImageField=a_,oe.DCodeImageResult=t_,oe.DCodeInfiniteAutoComplete=j_,oe.DCodeLabel=n_,oe.DCodeMultiSelect=jz,oe.DCodeOtpInput=r_,oe.DCodeProgress=Oz,oe.DCodeProgressBar=Fz,oe.DCodeRadio=Rz,oe.DCodeRadioCustom=Nz,oe.DCodeSlider=i_,oe.DCodeSwitch=s_,oe.DCodeTextField=l_,oe.DCodeTextarea=dS,oe.DCodeTimelineWithIcons=Gz,oe.DCodeUploadFile=Kz,oe.DCodeWizard=Xz,oe.DataTable=uS,oe.DataTableComponent=uS,oe.MicroDynamicDatatable=eq,oe.MicroDynamicForm=Jz,oe.cn=be,oe.default=PQ,Object.defineProperties(oe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
8595
|
+
`,""),W=Number(z);return Number.isFinite(W)?W:null}return G},D=G=>{m.value=G,o("update:modelValue",P(G))},U=(G,z)=>{const W=y(z);v.value=!0,G.value=W,D(W),queueMicrotask(()=>v.value=!1)},T=(G,z)=>{const W=G.selectionStart??G.value.length,ee=G.selectionEnd??G.value.length;if(p.value>0){const pe=G.value.length-(ee-W),qe=p.value-pe;if(qe<=0)return;z=z.slice(0,qe)}G.setRangeText(z,W,ee,"end"),U(G,B(G.value))},H=G=>{var ee;if(!A||g.value||v.value||!((ee=G.inputType)!=null&&ee.startsWith("insert")))return;const z=G.data;if(z==null)return;const W=B(z);W!==z&&(G.preventDefault(),W.length>0&&T(A,W))},N=G=>{var ee;if(!A||g.value||v.value)return;const z=((ee=G.clipboardData)==null?void 0:ee.getData("text"))??"",W=B(z);W!==z&&(G.preventDefault(),W.length>0&&T(A,W))},Q=async G=>{if(!A||g.value||v.value)return;const z=G.target,W=z.value??"",ee=B(W);if(ee===W){const pe=z.selectionStart??ee.length,qe=z.selectionEnd??ee.length;U(z,ee),await t.nextTick();try{z.setSelectionRange(pe,qe)}catch{}D(ee)}else{const pe=z.selectionStart??ee.length,qe=z.selectionEnd??ee.length;U(z,ee),await t.nextTick();try{z.setSelectionRange(pe,qe)}catch{}}},j=()=>g.value=!0,F=()=>{if(g.value=!1,!A)return;const G=A.value??"",z=B(G);z===G?D(z):U(A,z)};t.onMounted(()=>{if(A=document.getElementById(d.value),!A)return;A.addEventListener("beforeinput",H),A.addEventListener("paste",N),A.addEventListener("input",Q),A.addEventListener("compositionstart",j),A.addEventListener("compositionend",F);const G=A.value??"",z=B(G);z===G?D(z):U(A,z)}),t.onBeforeUnmount(()=>{A&&(A.removeEventListener("beforeinput",H),A.removeEventListener("paste",N),A.removeEventListener("input",Q),A.removeEventListener("compositionstart",j),A.removeEventListener("compositionend",F),A=null)});const R=()=>{m.value="",A&&(A.value=""),o("update:modelValue",null),o("clear")},Z=t.computed(()=>m.value.length),J=t.computed(()=>r.showCharCount?p.value>0:!1),re=t.computed(()=>J.value&&Z.value>0),de=t.computed(()=>`${Z.value} / ${p.value}`),ue=t.computed(()=>!!r.error),ve=t.computed(()=>{const G=n.rows,z=typeof G=="number"?G:Number.parseInt(String(G??""),10);return Number.isFinite(z)&&z>0?z:3}),le=t.computed(()=>({height:`${ve.value*24+16}px`}));return(G,z)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["flex flex-col gap-1 w-full",t.unref(n).class]),"aria-busy":r.skeleton},[r.skeleton?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.value?(t.openBlock(),t.createElementBlock("div",mX)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse",style:t.normalizeStyle(le.value)},null,4)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.value?(t.openBlock(),t.createBlock(t.unref(La),{key:0,for:d.value,class:"text-sm font-medium"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value)+" ",1),h.value?(t.openBlock(),t.createElementBlock("span",gX,"*")):t.createCommentVNode("",!0)]),_:1},8,["for"])):t.createCommentVNode("",!0),t.createElementVNode("div",bX,[t.createElementVNode("textarea",t.mergeProps({id:d.value,value:m.value},u.value,{style:`text-transform: ${C.value}; padding-right: ${k.value?"2.5rem":"0.75rem"} !important; padding-left: 0.75rem !important;`,class:["flex min-h-[120px] w-full rounded-lg border py-2 bg-white dark:bg-neutral-900 text-foreground dark:text-gray-300 border-gray-300 dark:border-gray-700 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",ue.value?"border-destructive focus-visible:ring-destructive":""]}),null,16,MX),k.value?(t.openBlock(),t.createElementBlock("div",xX,[t.createElementVNode("button",{type:"button",class:"text-muted-foreground hover:text-foreground text-sm leading-none","aria-label":"Clear textarea",onClick:R}," ✕ ")])):t.createCommentVNode("",!0),re.value&&!ue.value?(t.openBlock(),t.createElementBlock("p",wX,t.toDisplayString(de.value),1)):t.createCommentVNode("",!0)]),ue.value?(t.openBlock(),t.createElementBlock("p",vX,t.toDisplayString(r.error),1)):t.createCommentVNode("",!0)],64))],10,kX)),[[t.vShow,s.value]])}}),Uz=t.defineComponent({__name:"Avatar",props:{class:{type:[Boolean,null,String,Object,Array]},size:{default:"sm"},shape:{default:"circle"}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(OT),{class:t.normalizeClass(t.unref(be)(t.unref(CX)({size:a.size,shape:a.shape}),e.class))},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["class"]))}}),Wz=t.defineComponent({__name:"AvatarFallback",props:{delayMs:{},asChild:{type:Boolean},as:{}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(RT),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),Gz=t.defineComponent({__name:"AvatarImage",props:{src:{},referrerPolicy:{},crossOrigin:{},asChild:{type:Boolean},as:{}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(UT),t.mergeProps(e,{class:"h-full w-full object-cover"}),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),CX=i1("inline-flex items-center justify-center font-normal text-foreground select-none shrink-0 bg-secondary overflow-hidden",{variants:{size:{sm:"h-10 w-10 text-xs",base:"h-16 w-16 text-2xl",lg:"h-32 w-32 text-5xl"},shape:{circle:"rounded-full",square:"rounded-md"}}}),hS=t.defineComponent({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class");return(o,r)=>(t.openBlock(),t.createBlock(t.unref(fj),t.mergeProps(t.unref(n),{class:t.unref(be)("shrink-0 bg-border",e.orientation==="horizontal"?"h-px w-full":"w-px h-full",e.class)}),null,16,["class"]))}}),LX={class:"bg-card text-card-foreground"},SX={class:"pb-6 px-3"},IX={key:0,class:"flex justify-center p-8"},_X={key:1,class:"p-8 text-center text-red-500"},AX={key:2,class:"relative"},BX={class:"space-y-6"},VX={class:"rounded-xl border bg-card text-card-foreground shadow"},zX={class:"p-4"},qX={class:"flex items-center justify-between gap-3"},PX={class:"font-medium"},DX={class:"text-xs text-muted-foreground"},EX={class:"mt-1 text-sm text-muted-foreground"},TX={class:"text-foreground"},HX={class:"text-foreground"},jX={class:"mt-1 text-xs text-muted-foreground"},OX={key:0,class:"mt-3 flex items-center gap-2 text-sm"},FX={class:"flex items-center justify-between gap-3"},RX={class:"font-medium"},NX={class:"text-xs text-muted-foreground"},$X={class:"mt-2 text-sm text-muted-foreground"},UX={class:"flex flex-wrap items-center justify-between gap-3"},WX={class:"flex items-center gap-3"},GX={class:"leading-tight"},KX={class:"text-sm font-medium"},XX={class:"text-xs text-muted-foreground"},ZX={class:"flex items-center gap-2"},YX={key:2,class:"flex flex-col gap-3 sm:flex-row sm:items-start"},QX={class:"h-16 w-16 shrink-0 rounded-lg bg-muted flex items-center justify-center"},JX=["src"],eZ={class:"flex-1"},tZ={class:"flex items-center justify-between gap-3"},aZ={class:"font-medium"},nZ={class:"text-xs text-muted-foreground"},oZ={class:"mt-1 text-sm text-muted-foreground"},rZ={class:"text-left sm:text-center"},iZ={class:"text-xs text-muted-foreground"},sZ={class:"text-left sm:text-center"},lZ={class:"text-xs text-muted-foreground"},cZ={class:"text-left sm:text-center"},dZ={class:"text-xs text-muted-foreground"},hZ={class:"flex items-center justify-between gap-3"},uZ={class:"font-medium"},pZ={class:"text-xs text-muted-foreground"},yZ={class:"mt-2 text-sm text-muted-foreground"},fZ={class:"mt-3 flex items-center gap-3"},kZ={class:"text-sm font-medium"},mZ={class:"flex items-start justify-between gap-3"},gZ={class:"font-medium"},bZ={class:"mt-3 grid gap-2 text-sm"},MZ={class:"flex items-center justify-between gap-3"},xZ={class:"flex items-center gap-2 text-muted-foreground"},wZ={class:"font-medium"},vZ={class:"flex items-center justify-between gap-3"},CZ={class:"flex items-center gap-2 text-muted-foreground"},LZ={class:"font-medium"},SZ={class:"flex items-center justify-between gap-3"},IZ={class:"flex items-center gap-2 text-muted-foreground"},_Z={class:"font-medium"},AZ={class:"flex items-center justify-between"},BZ={class:"flex items-center gap-2"},VZ={class:"flex items-start justify-between gap-3"},zZ={class:"flex items-center gap-2"},qZ={class:"font-medium"},PZ={class:"mt-2 text-sm text-muted-foreground"},DZ={key:0,class:"mt-1 text-sm text-muted-foreground"},EZ={class:"flex flex-wrap items-center justify-between gap-3"},TZ={class:"flex items-center gap-2"},HZ={class:"text-xs text-muted-foreground"},Kz=t.defineComponent({__name:"DCodeTimelineWithIcons",props:{items:{},apiUrl:{},apiMethod:{}},setup(a){const n=AE(_E).smaller("md");t.ref(!1);const o=a,r=t.ref(!1),i=t.ref(null),s=t.ref([]),c=t.computed(()=>s.value.length>0?s.value:o.items&&o.items.length>0?o.items:[]),d=async()=>{if(o.apiUrl){r.value=!0,i.value=null;try{const p=await fetch(o.apiUrl,{method:o.apiMethod||"GET",headers:{"Content-Type":"application/json"}});if(!p.ok)throw new Error(`Error: ${p.status} ${p.statusText}`);const y=await p.json();Array.isArray(y)?s.value=y:y.data&&Array.isArray(y.data)?s.value=y.data:y.items&&Array.isArray(y.items)?s.value=y.items:s.value=[]}catch(p){console.error("Failed to fetch timeline items:",p),i.value=p.message||"Failed to fetch data"}finally{r.value=!1}}};t.onMounted(()=>{o.apiUrl&&d()}),t.watch(()=>o.apiUrl,()=>{o.apiUrl?d():s.value=[]});const h=p=>{switch(p){case"flight":return{Icon:Ys,Circle:"bg-primary/10 text-primary border-primary/30"};case"interview":return{Icon:Ns,Circle:"bg-emerald-500/10 text-emerald-600 border-emerald-500/30"};case"product":return{Icon:t1,Circle:"bg-amber-500/10 text-amber-600 border-amber-500/30"};case"design":return{Icon:sr,Circle:"bg-sky-500/10 text-sky-600 border-sky-500/30"};case"server":return{Icon:Js,Circle:"bg-rose-500/10 text-rose-600 border-rose-500/30"};case"location":return{Icon:Ks,Circle:"bg-emerald-500/10 text-emerald-600 border-emerald-500/30"};default:return{Icon:Rs,Circle:"bg-primary/10 text-primary border-primary/30"}}},u=p=>p.split(" ").filter(Boolean).slice(0,2).map(y=>{var f;return(f=y[0])==null?void 0:f.toUpperCase()}).join("");return(p,y)=>{const f=t.resolveComponent("ShoppingCart"),k=t.resolveComponent("RefreshCcw"),m=t.resolveComponent("MapPin");return t.openBlock(),t.createElementBlock("div",LX,[y[8]||(y[8]=t.createElementVNode("div",{class:"flex flex-col space-y-1.5 py-6 px-3"},[t.createElementVNode("h3",{class:"leading-none tracking-tight text-lg font-medium"},"Timeline With Icons")],-1)),t.createElementVNode("div",SX,[r.value?(t.openBlock(),t.createElementBlock("div",IX,[...y[0]||(y[0]=[t.createElementVNode("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"},null,-1)])])):i.value?(t.openBlock(),t.createElementBlock("div",_X,t.toDisplayString(i.value),1)):(t.openBlock(),t.createElementBlock("div",AX,[y[7]||(y[7]=t.createElementVNode("div",{class:"absolute left-4 top-0 h-full w-px bg-border"},null,-1)),t.createElementVNode("div",BX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(g,v)=>(t.openBlock(),t.createElementBlock("div",{key:v,class:"relative pl-14"},[t.createElementVNode("div",{class:t.normalizeClass(["absolute left-0 top-2 flex h-8 w-8 items-center justify-center rounded-full border",h(g.type).Circle])},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(h(g.type).Icon),{class:"h-4 w-4"}))],2),t.createElementVNode("div",VX,[t.createElementVNode("div",zX,[g.type==="flight"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",qX,[t.createElementVNode("p",PX,t.toDisplayString(g.title),1),t.createElementVNode("p",DX,t.toDisplayString(g.meta),1)]),t.createElementVNode("p",EX,[t.createElementVNode("span",TX,t.toDisplayString(g.from),1),t.createVNode(t.unref(Ts),{class:"mx-2 inline h-4 w-4"}),t.createElementVNode("span",HX,t.toDisplayString(g.to),1)]),t.createElementVNode("p",jX,t.toDisplayString(g.time),1),g.fileName?(t.openBlock(),t.createElementBlock("div",OX,[t.createVNode(t.unref(hs),{class:"h-4 w-4 text-muted-foreground"}),t.createElementVNode("span",null,t.toDisplayString(g.fileName),1)])):t.createCommentVNode("",!0)],64)):g.type==="interview"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",FX,[t.createElementVNode("p",RX,t.toDisplayString(g.title),1),t.createElementVNode("p",NX,t.toDisplayString(g.meta),1)]),t.createElementVNode("p",$X,t.toDisplayString(g.desc),1),t.createVNode(t.unref(hS),{class:"my-4"}),t.createElementVNode("div",UX,[t.createElementVNode("div",WX,[t.createVNode(t.unref(Uz),{class:"h-10 w-10"},{default:t.withCtx(()=>[g.avatarUrl?(t.openBlock(),t.createBlock(t.unref(Gz),{key:0,src:g.avatarUrl},null,8,["src"])):t.createCommentVNode("",!0),t.createVNode(t.unref(Wz),null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u(g.personName??"")),1)]),_:2},1024)]),_:2},1024),t.createElementVNode("div",GX,[t.createElementVNode("p",KX,t.toDisplayString(g.personName),1),t.createElementVNode("p",XX,t.toDisplayString(g.personRole),1)])]),t.createElementVNode("div",ZX,[t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(t.unref(us),{class:"h-4 w-4"})]),_:1}),t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(t.unref(Zs),{class:"h-4 w-4"})]),_:1})])])],64)):g.type==="product"?(t.openBlock(),t.createElementBlock("div",YX,[t.createElementVNode("div",QX,[g.imgUrl?(t.openBlock(),t.createElementBlock("img",{key:0,src:g.imgUrl,class:"h-full w-full rounded-lg object-cover",alt:"product"},null,8,JX)):(t.openBlock(),t.createBlock(f,{key:1,class:"h-5 w-5 text-muted-foreground"}))]),t.createElementVNode("div",eZ,[t.createElementVNode("div",tZ,[t.createElementVNode("p",aZ,t.toDisplayString(g.title),1),t.createElementVNode("p",nZ,t.toDisplayString(g.meta),1)]),t.createElementVNode("p",oZ,t.toDisplayString(g.desc),1),t.createElementVNode("div",{class:t.normalizeClass(["mt-4 grid gap-3",t.unref(n)?"grid-cols-1":"grid-cols-3"])},[t.createElementVNode("div",rZ,[y[1]||(y[1]=t.createElementVNode("p",{class:"text-sm font-medium"},"Customer",-1)),t.createElementVNode("p",iZ,t.toDisplayString(g.customer),1)]),t.createElementVNode("div",sZ,[y[2]||(y[2]=t.createElementVNode("p",{class:"text-sm font-medium"},"Price",-1)),t.createElementVNode("p",lZ,t.toDisplayString(g.price),1)]),t.createElementVNode("div",cZ,[y[3]||(y[3]=t.createElementVNode("p",{class:"text-sm font-medium"},"Quantity",-1)),t.createElementVNode("p",dZ,t.toDisplayString(g.qty),1)])],2)])])):g.type==="design"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("div",hZ,[t.createElementVNode("p",uZ,t.toDisplayString(g.title),1),t.createElementVNode("p",pZ,t.toDisplayString(g.meta),1)]),t.createElementVNode("p",yZ,t.toDisplayString(g.desc),1),t.createElementVNode("div",fZ,[t.createVNode(t.unref(Uz),{class:"h-10 w-10"},{default:t.withCtx(()=>[g.avatarUrl?(t.openBlock(),t.createBlock(t.unref(Gz),{key:0,src:g.avatarUrl},null,8,["src"])):t.createCommentVNode("",!0),t.createVNode(t.unref(Wz),null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u(g.personName??"")),1)]),_:2},1024)]),_:2},1024),t.createElementVNode("p",kZ,t.toDisplayString(g.personName),1)])],64)):g.type==="server"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createElementVNode("div",mZ,[t.createElementVNode("p",gZ,t.toDisplayString(g.title),1),t.createVNode(t.unref(_a),{variant:"destructive",class:"h-6"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.chipText??""),1)]),_:2},1024)]),t.createElementVNode("div",bZ,[t.createElementVNode("div",MZ,[t.createElementVNode("div",xZ,[t.createVNode(t.unref(Ws),{class:"h-4 w-4"}),y[4]||(y[4]=t.createElementVNode("span",null,"IP Address",-1))]),t.createElementVNode("span",wZ,t.toDisplayString(g.ip),1)]),t.createElementVNode("div",vZ,[t.createElementVNode("div",CZ,[t.createVNode(t.unref(cs),{class:"h-4 w-4"}),y[5]||(y[5]=t.createElementVNode("span",null,"CPU",-1))]),t.createElementVNode("span",LZ,t.toDisplayString(g.cpu),1)]),t.createElementVNode("div",SZ,[t.createElementVNode("div",IZ,[t.createVNode(t.unref(cs),{class:"h-4 w-4"}),y[6]||(y[6]=t.createElementVNode("span",null,"Memory",-1))]),t.createElementVNode("span",_Z,t.toDisplayString(g.memory),1)])]),t.createVNode(t.unref(hS),{class:"my-4"}),t.createElementVNode("div",AZ,[t.createElementVNode("div",BZ,[t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(t.unref(e1),{class:"h-4 w-4"})]),_:1}),t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(k,{class:"h-4 w-4"})]),_:1})])])],64)):g.type==="location"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[t.createElementVNode("div",VZ,[t.createElementVNode("div",zZ,[t.createVNode(m,{class:"h-4 w-4 text-muted-foreground"}),t.createElementVNode("p",qZ,t.toDisplayString(g.title),1)]),t.createVNode(t.unref(_a),{variant:"destructive",class:"h-6"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.chipText),1)]),_:2},1024)]),t.createElementVNode("p",PZ,t.toDisplayString(g.desc1),1),g.desc2?(t.openBlock(),t.createElementBlock("p",DZ,t.toDisplayString(g.desc2),1)):t.createCommentVNode("",!0),t.createVNode(t.unref(hS),{class:"my-4"}),t.createElementVNode("div",EZ,[t.createElementVNode("div",TZ,[t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(t.unref(Gs),{class:"h-4 w-4"})]),_:1}),t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(t.unref(us),{class:"h-4 w-4"})]),_:1}),t.createVNode(t.unref(Ee),{size:"icon",variant:"ghost"},{default:t.withCtx(()=>[t.createVNode(t.unref(o1),{class:"h-4 w-4"})]),_:1})]),t.createElementVNode("p",HZ,"Due date: "+t.toDisplayString(g.due),1)])],64)):t.createCommentVNode("",!0)])])]))),128))])]))])])}}}),jZ={class:"dcode-upload-file"},OZ={class:"border-2 border-dashed border-gray-300 dark:border-gray-700 rounded-lg p-6 flex flex-col items-center justify-center text-center hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors cursor-pointer"},FZ={key:0,class:"text-xs text-gray-500 mt-1"},RZ=["accept"],NZ={key:1,class:"text-xs text-red-600 mt-1"},Xz=t.defineComponent({__name:"DCodeUploadFile",props:{label:{},accept:{},errorMessage:{},modelValue:{}},emits:["update:modelValue"],setup(a,{emit:e}){const n=e,o=r=>{var s;const i=(s=r.target.files)==null?void 0:s[0];i&&n("update:modelValue",i)};return(r,i)=>(t.openBlock(),t.createElementBlock("div",jZ,[a.label?(t.openBlock(),t.createBlock(n_,{key:0,label:a.label},null,8,["label"])):t.createCommentVNode("",!0),t.createElementVNode("div",OZ,[t.createVNode(t.unref(ha),{class:"w-8 h-8 text-gray-400 mb-2"}),i[0]||(i[0]=t.createElementVNode("p",{class:"text-sm text-gray-600 dark:text-gray-400"},[t.createElementVNode("span",{class:"font-medium text-primary-600"},"Click to upload"),t.createTextVNode(" or drag and drop ")],-1)),a.accept?(t.openBlock(),t.createElementBlock("p",FZ,t.toDisplayString(a.accept),1)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"file",class:"hidden",onChange:o,accept:a.accept},null,40,RZ)]),a.errorMessage?(t.openBlock(),t.createElementBlock("p",NZ,t.toDisplayString(a.errorMessage),1)):t.createCommentVNode("",!0)]))}}),$Z=["onClick"],UZ={key:1,class:"mr-2 text-xs font-bold shrink-0 opacity-50"},WZ={class:"font-semibold text-sm whitespace-normal text-center leading-tight"},GZ={key:1},KZ={key:0,class:"text-white"},XZ={key:1},ZZ={key:2},YZ=["disabled","onClick"],QZ={key:1,class:"mr-2 text-sm font-bold opacity-70"},JZ={class:"whitespace-normal text-sm text-center leading-tight"},eY={class:"flex flex-col flex-1 min-w-0"},tY={class:"text-sm text-muted-foreground"},aY={class:"px-1"},nY=["disabled"],oY=["type"],rY=["disabled"],Zz=Xt(t.defineComponent({__name:"DCodeWizard",props:{tabs:{},modelValue:{},defaultTab:{default:0},allowTabClick:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},cache:{type:Boolean,default:!0},autoFetchOnMount:{type:Boolean,default:!0},apiOptions:{type:[Object,Function],default:void 0},isVertical:{type:Boolean,default:!1},isWizard:{type:Boolean,default:!1},typeWizard:{default:"icon"},showNavigation:{type:Boolean,default:!0},submitText:{default:"Simpan"},loading:{type:Boolean,default:!1},isSubmit:{type:Boolean,default:!1}},emits:["update:modelValue","change","loaded","error"],setup(a,{emit:e}){const n=a,o=e,r=Ke(),i=r==null?void 0:r.DCodeApi;typeof i!="function"&&console.error("[DCodeWizardTabs] useApi() must expose DCodeApi()");const s=t.ref(n.defaultTab),c=t.computed({get(){var b;if(typeof n.modelValue=="string"){const x=(b=n.tabs)==null?void 0:b.findIndex(I=>I.key===n.modelValue);if(x!==void 0&&x>=0)return x}return(typeof n.modelValue=="number"?n.modelValue:void 0)??s.value},set(b){var x;if(s.value=b,typeof n.modelValue=="string"){const I=(x=n.tabs)==null?void 0:x[b];I?o("update:modelValue",I.key):o("update:modelValue",b)}else o("update:modelValue",b)}}),d=t.computed(()=>{var b;return((b=n.tabs)==null?void 0:b.length)??0}),h=t.computed(()=>{var b;return(b=n.tabs)==null?void 0:b[c.value]});function u(b){return d.value<=0?0:Math.min(Math.max(b,0),d.value-1)}function p(b){return b?typeof b=="string"?Gt[b]||null:b:null}const y=t.reactive({});function f(b){return y[b.key]||(y[b.key]={loaded:!1,loading:!1,data:null,error:null}),y[b.key]}function k(){if(n.apiOptions)return typeof n.apiOptions=="function"?n.apiOptions():n.apiOptions}function m(b){const x=b.endpoint||{};return{apiModule:b.apiModule||x.apiModule,apiAction:b.apiAction||x.apiAction,apiUrl:x.apiUrl,apiMethod:x.apiMethod||"GET",apiParams:b.apiParams}}function g(b){if(n.isWizard||!n.allowTabClick||n.disabled)return!1;const x=n.tabs[b];return!(!x||x.disabled)}async function v(b){if(typeof b.tab.fetchData=="function"){const D=await b.tab.fetchData(),U=(D==null?void 0:D.data)??D;return(U==null?void 0:U.data)??U}const x=m(b.tab);if(!(x.apiModule&&x.apiAction||x.apiUrl))return null;if(typeof i!="function")throw new Error("DCodeApi is not available");const V=k();let B;if(x.apiUrl)B=await i("","",V,{_url:x.apiUrl,_method:x.apiMethod,_data:x.apiParams??void 0});else{const D={...V,...x.apiParams};B=await i(x.apiModule,x.apiAction,D)}const A=(B==null?void 0:B.data)??B;return(A==null?void 0:A.data)??A}async function L(b,{force:x=!1}={}){const I=u(b),V=n.tabs[I];if(!V)return;const B=f(V);if(!(n.cache&&B.loaded&&!x)&&!B.loading){B.loading=!0,B.error=null;try{const A=await v({tabIndex:I,tab:V});B.data=A,B.loaded=!0,o("loaded",{tabIndex:I,tab:V,data:A})}catch(A){const P=typeof(A==null?void 0:A.message)=="string"&&A.message||typeof A=="string"&&A||"Failed to load tab data.";B.error=P,o("error",{tabIndex:I,tab:V,message:P})}finally{B.loading=!1}}}function w(b){const x=u(b);g(x)&&x!==c.value&&(c.value=x)}function M(b=c.value){return L(b,{force:!0})}function C(){const b=u(c.value-1);b!==c.value&&(c.value=b)}function S(){const b=u(c.value+1);b!==c.value&&(c.value=b)}return t.watch(()=>n.tabs,b=>{for(const x of b??[])f(x)},{immediate:!0}),t.watch(()=>c.value,async b=>{var I;const x=(I=n.tabs)==null?void 0:I[b];x&&o("change",{tabIndex:b,tab:x}),await L(b)},{immediate:!0}),t.watch(()=>n.autoFetchOnMount,async b=>{b&&await L(c.value)},{immediate:!0}),(b,x)=>{var I,V,B;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["w-full rounded-lg border bg-card text-card-foreground shadow-sm",{"flex flex-row":a.isVertical}])},[t.createElementVNode("div",{class:t.normalizeClass(["flex flex-col space-y-1.5 p-6",{"w-64 border-r pr-0":a.isVertical,"pb-2":a.isWizard&&!a.isVertical}])},[t.createElementVNode("div",{class:t.normalizeClass({"mt-4":!a.isVertical||a.isWizard})},[a.isWizard?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["w-full relative flex overflow-visible rounded-lg",a.isVertical?"flex-col gap-2":""])},[a.isVertical?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(a.tabs,(A,P)=>(t.openBlock(),t.createElementBlock("div",{key:A.key,class:"relative z-10 box-border flex items-center gap-3 w-full pb-6 last:pb-0"},[t.createElementVNode("div",{class:t.normalizeClass(["w-8 h-8 rounded-full flex shrink-0 items-center justify-center font-bold text-sm border-2 transition-all bg-card",[P<c.value?"wizard-num-done":"",P===c.value?"wizard-num-active":P>c.value?"wizard-num-pending":""]])},[a.typeWizard==="icon"&&A.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(p(A.icon)),{key:0,class:"w-4 h-4"})):a.typeWizard==="number"||!A.icon&&a.typeWizard!=="none"?(t.openBlock(),t.createElementBlock("span",GZ,[P<c.value?(t.openBlock(),t.createElementBlock("span",KZ,"✓")):(t.openBlock(),t.createElementBlock("span",XZ,t.toDisplayString(P+1),1))])):(t.openBlock(),t.createElementBlock("span",ZZ))],2),t.createElementVNode("span",{class:t.normalizeClass(["text-xs font-semibold whitespace-normal px-2 py-1 rounded transition-colors text-left",P===c.value?"wizard-text-active":"wizard-text-pending"])},t.toDisplayString(A.title),3)]))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.tabs,(A,P)=>(t.openBlock(),t.createElementBlock("div",{key:A.key,onClick:D=>w(P),style:t.normalizeStyle({zIndex:a.tabs.length-P}),class:"relative flex-1 group"},[t.createElementVNode("div",{class:t.normalizeClass(["relative flex items-center justify-center min-h-[3rem] h-auto py-2 px-2 cursor-pointer transition-colors w-full",[P>0?"pl-8":"",P===c.value?"wizard-step-active":P<c.value?"wizard-step-done":"wizard-step-pending"]])},[a.typeWizard==="icon"&&A.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(p(A.icon)),{key:0,class:"w-4 h-4 mr-2 shrink-0"})):a.typeWizard==="number"?(t.openBlock(),t.createElementBlock("span",UZ,t.toDisplayString(P+1),1)):t.createCommentVNode("",!0),t.createElementVNode("span",WZ,t.toDisplayString(A.title),1)],2),P<a.tabs.length-1?(t.openBlock(),t.createElementBlock("svg",{key:0,class:t.normalizeClass(["absolute top-0 -right-[15.5px] w-[16px] h-full transition-colors block z-10",[P===c.value?"wizard-svg-active":P<c.value?"wizard-svg-done":"wizard-svg-pending"]]),preserveAspectRatio:"none",viewBox:"0 0 16 48"},[...x[0]||(x[0]=[t.createElementVNode("polygon",{points:"0,0 16,24 0,48"},null,-1)])],2)):t.createCommentVNode("",!0)],12,$Z))),128))],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["flex w-full",a.isVertical?"flex-col gap-1":"flex-wrap border-b border-separate"])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.tabs,(A,P)=>(t.openBlock(),t.createElementBlock("button",{key:A.key,type:"button",disabled:!g(P),onClick:D=>w(P),class:t.normalizeClass(["relative min-h-[3rem] h-auto py-2 flex items-center justify-center gap-2 px-4 transition-all rounded-none focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 wizard-btn-common",t.unref(be)("border-b border-r",!a.isVertical&&P===a.tabs.length-1&&"border-r-0",P===c.value?"wizard-btn-active":"wizard-btn-pending",!g(P)&&"opacity-60 cursor-not-allowed",a.isVertical?"w-full justify-start border-r-0":"flex-1")])},[a.typeWizard==="icon"&&A.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(p(A.icon)),{key:0,class:"h-4 w-4 shrink-0"})):a.typeWizard==="number"?(t.openBlock(),t.createElementBlock("span",QZ,t.toDisplayString(P+1),1)):t.createCommentVNode("",!0),t.createElementVNode("span",JZ,t.toDisplayString(A.title),1)],10,YZ))),128))],2))],2)],2),a.isVertical?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(hS),{key:0})),t.createElementVNode("div",eY,[t.createElementVNode("div",{class:t.normalizeClass(["p-6 flex-1 min-w-0",{"pl-6":a.isVertical}])},[h.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(I=y[h.value.key])!=null&&I.loading?t.renderSlot(b.$slots,"loading",{key:0,tab:h.value,tabIndex:c.value},()=>[x[1]||(x[1]=t.createElementVNode("div",{class:"rounded-lg border bg-muted/30 px-4 py-3 text-sm text-muted-foreground"},"Loading...",-1))],!0):t.renderSlot(b.$slots,`tab-${h.value.key}`,{key:1,tab:h.value,tabIndex:c.value,data:(V=y[h.value.key])==null?void 0:V.data,loaded:(B=y[h.value.key])==null?void 0:B.loaded,reload:M},()=>[t.createElementVNode("div",tY,[x[2]||(x[2]=t.createTextVNode(" Slot ",-1)),t.createElementVNode("code",aY,"tab-"+t.toDisplayString(h.value.key),1),x[3]||(x[3]=t.createTextVNode(" belum dibuat. ",-1))])],!0)],64)):t.createCommentVNode("",!0)],2),a.isWizard||a.showNavigation?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["flex items-center justify-between p-6 pt-0",{"pl-6":a.isVertical}])},[t.createElementVNode("button",{type:"button",onClick:C,disabled:c.value<=0,class:"relative inline-flex items-center justify-center gap-2 px-5 py-2.5 text-sm font-medium transition-all duration-300 rounded-lg bg-[#ffffff] border border-[#e2e8f0] text-[#334155] shadow-sm hover:bg-[#f8fafc] hover:text-[#0f172a] hover:-translate-y-0.5 hover:shadow disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-none disabled:hover:bg-[#ffffff] disabled:hover:text-[#334155] disabled:hover:translate-y-0 disabled:active:scale-100 dark:bg-[#18181b] dark:border-[#27272a] dark:text-[#d4d4d8] dark:hover:bg-[#27272a] dark:hover:border-[#3f3f46] dark:disabled:hover:bg-[#18181b] dark:disabled:hover:text-[#d4d4d8] focus:outline-none focus:ring-2 focus:ring-[#e2e8f0] focus:ring-offset-2 active:scale-95"}," Sebelumnya ",8,nY),c.value<d.value-1?(t.openBlock(),t.createElementBlock("button",{key:0,type:a.isSubmit?"submit":"button",onClick:S,class:"relative inline-flex items-center justify-center gap-2 px-6 py-2.5 text-sm font-medium text-[#ffffff] transition-all duration-300 rounded-lg shadow-md bg-[#2563eb] hover:bg-[#1d4ed8] hover:shadow-lg hover:-translate-y-0.5 disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-none disabled:hover:bg-[#2563eb] disabled:hover:translate-y-0 disabled:active:scale-100 focus:outline-none focus:ring-2 focus:ring-[#2563eb] focus:ring-offset-2 active:scale-95"}," Selanjutnya ",8,oY)):(t.openBlock(),t.createElementBlock("button",{key:1,type:"submit",disabled:a.loading,class:"relative inline-flex items-center justify-center gap-2 px-6 py-2.5 text-sm font-medium text-[#ffffff] transition-all duration-300 rounded-lg shadow-md bg-[#2563eb] hover:bg-[#1d4ed8] hover:shadow-lg hover:-translate-y-0.5 disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-none disabled:hover:bg-[#2563eb] disabled:hover:translate-y-0 disabled:active:scale-100 dark:bg-[#3b82f6] dark:hover:bg-[#2563eb] focus:outline-none focus:ring-2 focus:ring-[#2563eb] focus:ring-offset-2 active:scale-95"},[a.loading?(t.openBlock(),t.createBlock(t.unref(kt),{key:0,class:"w-4 h-4 mr-2 animate-spin"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(a.submitText),1)],8,rY))],2)):t.createCommentVNode("",!0)])],2)}}}),[["__scopeId","data-v-d10736f3"]]);function iY(){return{setPageTitle:n=>{typeof document<"u"&&(document.title=n||document.title),typeof window<"u"&&window.dispatchEvent(new CustomEvent("micro:page-title",{detail:{title:n},bubbles:!0,composed:!0}))},setBreadcrumb:n=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("micro:breadcrumb",{detail:{items:n},bubbles:!0,composed:!0}))}}}const sY={class:"w-full"},lY={class:"relative mx-auto min-h-[37.5rem]"},cY={key:"content",class:"w-full"},dY={class:"mb-6"},hY={class:"text-neutral-500 dark:text-neutral-400"},uY={key:"skeleton",class:"w-full"},pY={key:"error",class:"flex items-center justify-center p-20 text-red-500 w-full"},Yz=Xt(t.defineComponent({__name:"AutoLayoutForm",props:{layoutCode:{}},setup(a){var C,S;const e=a,n=(S=(C=t.getCurrentInstance())==null?void 0:C.appContext)==null?void 0:S.app;n&&!n._context.provides[Symbol.for("vue-router-route-location")]&&n.provide(Symbol.for("vue-router-route-location"),{query:{},params:{},path:""});let o={query:{},params:{},path:""};try{const b=H1.useRoute();b&&(o=b)}catch{console.warn("useRoute not available, using fallback")}let r={back:()=>console.warn("Router back() not available"),push:()=>console.warn("Router push() not available")};try{const b=H1.useRouter();b&&(r=b)}catch{console.warn("useRouter not available, using fallback")}const{apiUrl:i,DCodeApi:s}=Ke();let c;try{c=MS.useI18n().locale}catch{c=t.ref("en")}const{setPageTitle:d}=iY(),h=t.computed(()=>o.params&&"id"in o.params?!0:o.path?/\/edit\/[^\/]+$/.test(o.path):!1),u=t.computed(()=>{if(o.params&&"id"in o.params)return o.params.id;if(!o.path)return null;const b=o.path.match(/\/edit\/([^\/]+)$/);return b?b[1]:null}),p=t.ref({}),y=t.ref(null),f=t.ref(!0),k=t.ref(!1),m=t.ref(e.layoutCode),g=t.computed(()=>{var I;if(!y.value)return"";const b=((I=c==null?void 0:c.value)==null?void 0:I.toLowerCase())||"en";return(b==="en"||b.startsWith("en-")?y.value.titleEN:y.value.titleID)||y.value.title||e.layoutCode});t.watch(g,b=>{b&&d(b)},{immediate:!0});const v=async()=>{var b,x,I;f.value=!0;try{let V=e.layoutCode;o&&o.query&&typeof o.query=="object"&&"code"in o.query&&(V=o.query.code||e.layoutCode);let B=await i(`/api/auto-layout/form/form-dynamic?code=${V}`,"GET");if(!B.status||!B.data||Array.isArray(B.data)&&B.data.length===0)try{const A=await i(`/api/auto-layout/datatable/form-dynamic?code=${V}`,"GET");if(A.status){const P=Array.isArray(A.data)?A.data[0]:A.data;P&&P.code&&(V=P.code,m.value=V,B=await i(`/api/auto-layout/form/form-dynamic?code=${V}`,"GET"))}}catch(A){console.warn("Failed to resolve layout code via datatable",A)}if(B.status){y.value=Array.isArray(B.data)?B.data[0]:B.data;const A={};if((b=y.value)!=null&&b.sections&&y.value.sections.forEach(P=>{((P.propsForm||P.props||{}).fields||P.fields||[]).forEach(T=>{var N;const H=T.model||((N=T.props)==null?void 0:N.model)||T.key;H&&(A[H]=null)})}),p.value=A,f.value=!1,h.value&&u.value){k.value=!0;try{if((x=y.value.endpointGlobal)!=null&&x.apiUrl){const P=y.value.endpointGlobal.apiUrl,D=y.value.endpointGlobal.apiMethod||"GET",U={id:u.value},T=await s(P,D,U);if(T.status){const H=Array.isArray(T.data)?T.data[0]:T.data;p.value={...p.value,...H}}}else{const P=((I=y.value.endpoint)==null?void 0:I.detailUrl)||`/api/${m.value}/detail/${u.value}`,D=await i(P,"GET");if(D.status){let U=Array.isArray(D.data)?D.data[0]:D.data;if(D.payload){const H={...D.payload};if(Object.keys(H).forEach(N=>{U[N]!==void 0&&U[N]!==null&&(H[N]=U[N])}),!("id"in H)&&U.id){const N=Object.keys(H).find(Q=>Q.startsWith("id")&&Q.length>2&&!H[Q]);N&&(H[N]=U.id)}U=H}const T={...U};Object.keys(p.value).forEach(H=>{if(T[H]===void 0||T[H]===null){if(H.toLowerCase().startsWith("id")&&H.length>2){const Q=H.substring(2).toLowerCase(),j=Array.isArray(D.data)?D.data[0]:D.data,F=Object.keys(j).find(R=>R.toLowerCase()===Q);F&&j[F]&&typeof j[F]=="object"&&"id"in j[F]&&(T[H]=j[F].id)}if(H==="idSupervisor"){const Q=Array.isArray(D.data)?D.data[0]:D.data;Q.supervisorId&&(T[H]=Q.supervisorId)}}}),p.value={...p.value,...T}}}}catch(P){console.error("Failed to fetch record data:",P)}finally{k.value=!1}}}}catch(V){console.error("Failed to load form layout:",V),f.value=!1}},L=async b=>{var x,I,V;try{const B=(V=(I=(x=y.value.sections)==null?void 0:x[0])==null?void 0:I.propsForm)==null?void 0:V.endpointForm,A=y.value.endpointGlobal||y.value.endpoint,P=(B==null?void 0:B.submitUrl)||(A==null?void 0:A.submitUrl)||`/api/generic/${e.layoutCode}`,D=(B==null?void 0:B.submitMethod)||(A==null?void 0:A.submitMethod)||(h.value?"PUT":"POST"),U={...b};h.value&&u.value&&!U.id&&(U.id=u.value),await i(P,D,U),r.back()}catch(B){console.error("Submit failed:",B)}},w=async(b,x)=>{if(b==="cancel"){M();return}const I=x.endpointPropAction||x.propsActionGlobal&&x.propsActionGlobal.endpointPropAction;if(I)try{f.value=!0;const V={...p.value};h.value&&x.model&&u.value&&(V[x.model]=u.value);const B=I.apiUrl,A=I.apiMethod||"POST";(await s(B,A,V)).status&&r.back()}catch(V){console.error("Action failed:",V)}finally{f.value=!1}},M=()=>{r.back()};return t.onMounted(()=>{v()}),t.onUnmounted(()=>{d("")}),(b,x)=>{const I=t.resolveComponent("DynamicForm"),V=t.resolveComponent("AutoLayoutSkeleton");return t.openBlock(),t.createElementBlock("div",sY,[t.createElementVNode("div",lY,[t.createVNode(t.Transition,{name:"fade",mode:"out-in"},{default:t.withCtx(()=>[!f.value&&y.value?(t.openBlock(),t.createElementBlock("div",cY,[t.createElementVNode("div",dY,[t.createElementVNode("p",hY,t.toDisplayString(y.value.description),1)]),t.createVNode(I,{schema:y.value,model:p.value,"is-edit-mode":h.value,loading:k.value,onSubmit:L,onCancel:M,onAction:w,class:"w-full"},null,8,["schema","model","is-edit-mode","loading"])])):f.value?(t.openBlock(),t.createElementBlock("div",uY,[t.createVNode(V)])):(t.openBlock(),t.createElementBlock("div",pY," Failed to load form configuration for "+t.toDisplayString(e.layoutCode),1))]),_:1})])])}}}),[["__scopeId","data-v-fd9d71a6"]]),yY=(a,e="short",n="id-ID")=>{const o=typeof a=="string"?new Date(a):a,r=d=>String(d).padStart(2,"0"),i=d=>`${r(d.getHours())}:${r(d.getMinutes())}:${r(d.getSeconds())}`,c={id:"id-ID",en:"en-GB"}[n]||n;return e==="time"?i(o):e==="datetime"?new Intl.DateTimeFormat(c,{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(o):e==="long"?new Intl.DateTimeFormat(c,{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"}).format(o):new Intl.DateTimeFormat(c,{day:"2-digit",month:"short",year:"numeric"}).format(o)},fY=t.defineComponent({__name:"Sheet",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(a,{emit:e}){const r=mt(a,e);return(i,s)=>(t.openBlock(),t.createBlock(t.unref(VA),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16))}}),kY=t.defineComponent({inheritAttrs:!1,__name:"SheetContent",props:{class:{type:[Boolean,null,String,Object,Array]},side:{},forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:e}){const n=a,o=e,r=De(n,"class","side"),i=mt(r,o);return(s,c)=>(t.openBlock(),t.createBlock(t.unref($A),null,{default:t.withCtx(()=>[t.createVNode(t.unref(NA),{class:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),t.createVNode(t.unref(FA),t.mergeProps({class:t.unref(be)(t.unref(wY)({side:a.side}),n.class)},{...t.unref(i),...s.$attrs}),{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default"),t.createVNode(t.unref(zA),{class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary"},{default:t.withCtx(()=>[t.createVNode(t.unref(it),{class:"w-4 h-4"})]),_:1})]),_:3},16,["class"])]),_:3}))}}),mY=t.defineComponent({__name:"SheetDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class");return(o,r)=>(t.openBlock(),t.createBlock(t.unref(RA),t.mergeProps({class:t.unref(be)("text-sm text-muted-foreground",e.class)},t.unref(n)),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),gY=t.defineComponent({__name:"SheetFooter",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),bY=t.defineComponent({__name:"SheetHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(be)("flex flex-col gap-y-2 text-center sm:text-left",e.class))},[t.renderSlot(n.$slots,"default")],2))}}),MY=t.defineComponent({__name:"SheetTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class");return(o,r)=>(t.openBlock(),t.createBlock(t.unref(UA),t.mergeProps({class:t.unref(be)("text-lg font-medium text-foreground",e.class)},t.unref(n)),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),xY=t.defineComponent({__name:"SheetTrigger",props:{asChild:{type:Boolean},as:{}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(TT),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),wY=i1("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),vY={class:"flex-1 overflow-hidden"},CY=t.defineComponent({__name:"DataFilterSheet",props:{title:{default:"Filter Data"},description:{default:"Masukan parameter pencarian untuk memfilter data."}},setup(a){return(e,n)=>(t.openBlock(),t.createBlock(t.unref(fY),null,{default:t.withCtx(()=>[t.createVNode(t.unref(xY),{"as-child":""},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"trigger",{},()=>[t.createVNode(t.unref(Ee),{variant:"outline",class:"gap-2"},{default:t.withCtx(()=>[t.createVNode(t.unref(yr),{class:"w-4 h-4"}),n[0]||(n[0]=t.createElementVNode("span",null,"Pencarian",-1))]),_:1})])]),_:3}),t.createVNode(t.unref(kY),{class:"flex flex-col h-full"},{default:t.withCtx(()=>[t.createVNode(t.unref(bY),{class:"flex-shrink-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(MY),null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),t.createVNode(t.unref(mY),null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.description),1)]),_:1})]),_:1}),t.createElementVNode("div",vY,[t.renderSlot(e.$slots,"default")]),t.createVNode(t.unref(gY),{class:"flex-shrink-0"},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"footer")]),_:3})]),_:3})]),_:3}))}}),LY={key:0},SY=["value","name"],Qz=t.defineComponent({__name:"DynamicFilterField",props:{field:{},modelValue:{}},emits:["update:modelValue"],setup(a,{emit:e}){const{locale:n}=MS.useI18n(),o=a,r=e,i=t.ref(o.modelValue);t.watch(()=>o.modelValue,u=>{i.value=u});const s={DCodeTextField:l_,DCodeAutoComplete:qS,DCodeDatePicker:GI,DCodeTextarea:dS,DCodeTextArea:dS,DCodeCheckbox:q1,DCodeSwitch:s_,DCodeOtpInput:r_,DCodeImageField:a_,DCodeSlider:i_},c=t.computed(()=>{const u=o.field.component;return s[u]||null}),d=t.computed(()=>{const u=o.field.props,p={};return(u.labelID||u.labelEN)&&(p.label=n.value==="id"?u.labelID:u.labelEN),(u.placeholderID||u.placeholderEN)&&(p.placeholder=n.value==="id"?u.placeholderID:u.placeholderEN),u.required!==void 0&&(p.required=u.required),u.disabled!==void 0&&(p.disabled=u.disabled),u.readonly!==void 0&&(p.readonly=u.readonly),u.valueType&&(p.type=u.valueType),u.minLength!==void 0&&(p.minlength=u.minLength),u.maxLength!==void 0&&(p.maxlength=u.maxLength),u.min!==void 0&&(p.min=u.min),u.max!==void 0&&(p.max=u.max),u.options&&(p.options=u.options),u.endpoint&&(p.endpoint=u.endpoint),u.itemTitle&&(p.itemTitle=u.itemTitle),u.itemValue&&(p.itemValue=u.itemValue),u.returnObject!==void 0&&(p.returnObject=u.returnObject),u.clearable!==void 0&&(p.clearable=u.clearable),Object.keys(u).forEach(y=>{!["labelID","labelEN","placeholderID","placeholderEN"].includes(y)&&!p.hasOwnProperty(y)&&(p[y]=u[y])}),p}),h=u=>{i.value=u,r("update:modelValue",u)};return(u,p)=>a.field.isHidden?(t.openBlock(),t.createElementBlock("div",LY,[t.createElementVNode("input",{type:"hidden",value:i.value,name:a.field.model},null,8,SY)])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.value),t.mergeProps({key:1},d.value,{modelValue:i.value,"onUpdate:modelValue":[p[0]||(p[0]=y=>i.value=y),h]}),null,16,["modelValue"]))}}),IY=t.defineComponent({__name:"Pagination",props:{page:{},defaultPage:{},itemsPerPage:{},total:{},siblingCount:{},disabled:{type:Boolean},showEdges:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:page"],setup(a,{emit:e}){const n=a,o=e,r=De(n,"class"),i=mt(r,o);return(s,c)=>(t.openBlock(),t.createBlock(t.unref(lH),t.mergeProps({"data-slot":"pagination"},t.unref(i),{class:n.class}),{default:t.withCtx(d=>[t.renderSlot(s.$slots,"default",t.normalizeProps(t.guardReactiveProps(d)))]),_:3},16,["class"]))}}),_Y=t.defineComponent({__name:"PaginationContent",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class");return(o,r)=>(t.openBlock(),t.createBlock(t.unref(kH),t.mergeProps({"data-slot":"pagination-content"},t.unref(n),{class:t.unref(be)("flex flex-row items-center gap-1",e.class)}),{default:t.withCtx(i=>[t.renderSlot(o.$slots,"default",t.normalizeProps(t.guardReactiveProps(i)))]),_:3},16,["class"]))}}),AY=t.defineComponent({__name:"PaginationEllipsis",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class");return(o,r)=>(t.openBlock(),t.createBlock(t.unref(rH),t.mergeProps({"data-slot":"pagination-ellipsis"},t.unref(n),{class:t.unref(be)("flex size-9 items-center justify-center",e.class)}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{},()=>[t.createVNode(t.unref(ua),{class:"size-4"}),r[0]||(r[0]=t.createElementVNode("span",{class:"sr-only"},"More pages",-1))])]),_:3},16,["class"]))}}),BY=t.defineComponent({__name:"PaginationFirst",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class","size"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(dH),t.mergeProps({"data-slot":"pagination-first",class:t.unref(be)(t.unref(xs)({variant:"ghost",size:a.size}),"gap-1 px-2.5 sm:pr-2.5",e.class)},t.unref(o)),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[t.createVNode(t.unref(dn)),i[0]||(i[0]=t.createElementVNode("span",{class:"hidden sm:block"},"First",-1))])]),_:3},16,["class"]))}}),VY=t.defineComponent({__name:"PaginationItem",props:{value:{},asChild:{type:Boolean},as:{},size:{default:"icon"},class:{type:[Boolean,null,String,Object,Array]},isActive:{type:Boolean}},setup(a){const e=a,n=De(e,"class","size","isActive");return(o,r)=>(t.openBlock(),t.createBlock(t.unref(gH),t.mergeProps({"data-slot":"pagination-item"},t.unref(n),{class:t.unref(be)(t.unref(xs)({variant:"ghost",size:a.size}),a.isActive?"bg-[#0056a1] dark:bg-[#003d75] text-white hover:bg-[#0056a1]/90 dark:hover:bg-[#003d75]/90 hover:text-white":"",e.class)}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),zY=t.defineComponent({__name:"PaginationLast",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class","size"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(uH),t.mergeProps({"data-slot":"pagination-last",class:t.unref(be)(t.unref(xs)({variant:"ghost",size:a.size}),"gap-1 px-2.5 sm:pr-2.5",e.class)},t.unref(o)),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[i[0]||(i[0]=t.createElementVNode("span",{class:"hidden sm:block"},"Last",-1)),t.createVNode(t.unref(hn))])]),_:3},16,["class"]))}}),qY=t.defineComponent({__name:"PaginationNext",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class","size"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(MH),t.mergeProps({"data-slot":"pagination-next",class:t.unref(be)(t.unref(xs)({variant:"ghost",size:a.size}),"gap-1 px-2.5 sm:pr-2.5",e.class)},t.unref(o)),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[i[0]||(i[0]=t.createElementVNode("span",{class:"hidden sm:block"},"Next",-1)),t.createVNode(t.unref(hn))])]),_:3},16,["class"]))}}),PY=t.defineComponent({__name:"PaginationPrevious",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class","size"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(wH),t.mergeProps({"data-slot":"pagination-previous",class:t.unref(be)(t.unref(xs)({variant:"ghost",size:a.size}),"gap-1 px-2.5 sm:pr-2.5",e.class)},t.unref(o)),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[t.createVNode(t.unref(dn)),i[0]||(i[0]=t.createElementVNode("span",{class:"hidden sm:block"},"Previous",-1))])]),_:3},16,["class"]))}}),DY=t.defineComponent({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},by:{type:[String,Function]},dir:{},multiple:{type:Boolean},autocomplete:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(a,{emit:e}){const r=mt(a,e);return(i,s)=>(t.openBlock(),t.createBlock(t.unref(_H),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16))}}),EY=t.defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(a,{emit:e}){const n=a,o=e,r=De(n,"class"),i=mt(r,o);return(s,c)=>(t.openBlock(),t.createBlock(t.unref(ej),null,{default:t.withCtx(()=>[t.createVNode(t.unref(NH),t.mergeProps({...t.unref(i),...s.$attrs},{class:t.unref(be)("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a.position==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n.class)}),{default:t.withCtx(()=>[t.createVNode(t.unref(OY)),t.createVNode(t.unref(hj),{class:t.normalizeClass(t.unref(be)("p-1",a.position==="popper"&&"h-[--reka-select-trigger-height] w-full min-w-[--reka-select-trigger-width]"))},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},8,["class"]),t.createVNode(t.unref(jY))]),_:3},16,["class"])]),_:3}))}}),TY={class:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},HY=t.defineComponent({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(KH),t.mergeProps(t.unref(o),{class:t.unref(be)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e.class)}),{default:t.withCtx(()=>[t.createElementVNode("span",TY,[t.createVNode(t.unref(ZH),null,{default:t.withCtx(()=>[t.createVNode(t.unref(ca),{class:"h-4 w-4"})]),_:1})]),t.createVNode(t.unref(QH),null,{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),jY=t.defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(nj),t.mergeProps(t.unref(o),{class:t.unref(be)("flex cursor-default items-center justify-center py-1",e.class)}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[t.createVNode(t.unref(St))])]),_:3},16,["class"]))}}),OY=t.defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(rj),t.mergeProps(t.unref(o),{class:t.unref(be)("flex cursor-default items-center justify-center py-1",e.class)}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[t.createVNode(t.unref(js))])]),_:3},16,["class"]))}}),FY=t.defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,n=De(e,"class"),o=Ze(n);return(r,i)=>(t.openBlock(),t.createBlock(t.unref(sj),t.mergeProps(t.unref(o),{class:t.unref(be)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:truncate text-start",e.class)}),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default"),t.createVNode(t.unref(UH),{"as-child":""},{default:t.withCtx(()=>[t.createVNode(t.unref(St),{class:"w-4 h-4 opacity-50 shrink-0"})]),_:1})]),_:3},16,["class"]))}}),RY=t.defineComponent({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(a){const e=a;return(n,o)=>(t.openBlock(),t.createBlock(t.unref(cj),t.normalizeProps(t.guardReactiveProps(e)),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16))}}),NY={class:"dcode-card animate-slide-up"},$Y={class:"px-4 py-2 bg-primary-700 dark:bg-primary-900 border-b border-primary-500/30 dark:border-primary-900/50 rounded-t-xl relative z-30"},UY={class:"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4"},WY={key:0,class:"flex flex-col sm:flex-row items-start sm:items-center gap-2 flex-1 max-w-2xl"},GY={class:"relative w-full sm:w-64"},KY={key:0,class:"relative"},XY={class:"flex flex-col h-full"},ZY={key:0,class:"flex-1 overflow-y-auto py-4"},YY={class:"grid grid-cols-1 md:grid-cols-2 gap-4 px-1"},QY={key:0,class:"sticky bottom-0 left-0 right-0 bg-white dark:bg-zinc-900 border-t border-neutral-200 dark:border-neutral-700 p-4 flex gap-2"},JY={class:"flex justify-end gap-2 w-full"},eQ={key:0,class:"font-medium text-sm text-neutral-600 dark:text-neutral-400"},tQ={class:"overflow-auto custom-scrollbar relative max-h-[calc(100vh-17rem)]"},aQ={class:"dcode-table w-full"},nQ={class:"bg-primary-700 dark:bg-primary-900 sticky top-0 z-20 shadow-sm"},oQ=["onClick"],rQ={key:0,class:"flex items-center justify-center w-full"},iQ={key:0,class:"px-3 py-2 text-xs font-medium text-white dark:text-neutral-100 uppercase tracking-wider"},sQ={class:"bg-white dark:bg-zinc-900 divide-y divide-neutral-200 dark:divide-neutral-700"},lQ={key:0,class:"px-3 py-0.5"},cQ={key:1},dQ=["colspan"],hQ={class:"flex flex-col items-center gap-4"},uQ={class:"text-base font-medium text-neutral-700 dark:text-neutral-300"},pQ={class:"text-sm text-neutral-500 dark:text-neutral-400 mt-1"},yQ={class:"hover:bg-zinc-50 dark:hover:bg-zinc-800/50 transition-colors duration-150"},fQ={key:0,class:"flex items-center justify-center"},kQ={key:0,class:"px-3 py-0.5 !text-center"},mQ={key:0,class:"flex items-center justify-center gap-1.5"},gQ={key:0,class:"bg-zinc-50/50 dark:bg-zinc-800/30"},bQ=["colspan"],MQ={key:0,class:"px-4 py-3 bg-zinc-50/50 dark:bg-zinc-800/30 border-t border-neutral-200 dark:border-neutral-700 flex flex-col sm:flex-row items-center justify-between gap-4 w-full"},xQ={class:"flex items-center gap-4"},wQ={class:"text-xs text-neutral-500 dark:text-neutral-400 font-medium"},vQ={class:"text-neutral-900 dark:text-neutral-100 font-medium"},CQ={class:"text-neutral-900 dark:text-neutral-100 font-medium"},LQ={class:"text-neutral-900 dark:text-neutral-100 font-medium"},SQ={class:"flex-shrink-0"},IQ={class:"space-y-4"},_Q={class:"text-gray-600 dark:text-gray-400"},AQ={class:"grid grid-cols-1 md:grid-cols-2 gap-4 py-4 px-1"},uS=t.defineComponent({__name:"DataTable",props:{columns:{default:()=>[]},data:{default:()=>[]},perPage:{default:10},loading:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!1},nested:{type:Boolean,default:!1},apiModule:{},apiAction:{default:"list"},apiMethod:{},apiUrl:{},permissionBase:{},apiParams:{default:()=>({})},configKey:{},tableConfig:{},dynamicColumns:{type:Boolean,default:!1},searchApiEndpoint:{},enableQuickSearch:{type:Boolean,default:!0},showPagination:{type:Boolean,default:!0},ignorePermissions:{type:Boolean,default:!1},userPermissions:{default:null},permissionChecker:{type:Function,default:void 0}},emits:["update:search","update:sort","update:page","create","export","action","update:selection","navigate"],setup(a,{expose:e,emit:n}){console.log("[DEBUG] DataTable.vue loaded - top level");const o=a,r=n,{apiUrl:i}=Ke(),{locale:s}=MS.useI18n(),c=t.ref(""),d=t.ref(1),h=t.ref(o.perPage),u=t.ref({key:"",direction:"asc"}),p=t.ref([]),y=t.ref(!1),f=t.ref(0),k=t.ref({}),m=t.ref([]),g=t.ref(null),v=t.ref(!0),L=t.ref([]),w=t.ref([]),M=t.ref([]),C=t.ref(!1),S=t.ref(!1),b=t.ref({}),x=t.ref(null),I=t.ref(null),V=t.ref(null),B=t.ref([]),A=t.computed(()=>{if(xt.value.length===0)return!1;const _=xt.value.map(E=>{const X=de.value.find($=>$.type==="CHECKBOX"),q=(X==null?void 0:X.keyCheckbox)||"id";return E[q]}).filter(E=>E!=null);return _.length===0?!1:_.every(E=>B.value.includes(E))}),P=t.computed(()=>{if(xt.value.length===0)return!1;const _=de.value.find($=>$.type==="CHECKBOX"),E=(_==null?void 0:_.keyCheckbox)||"id",X=xt.value.map($=>$[E]).filter($=>$!=null),q=X.filter($=>B.value.includes($)).length;return q>0&&q<X.length}),D=_=>{const E=de.value.find($=>$.type==="CHECKBOX"),X=(E==null?void 0:E.keyCheckbox)||"id",q=_[X];return q!==void 0&&B.value.includes(q)},U=_=>{const E=de.value.find($=>$.type==="CHECKBOX"),X=(E==null?void 0:E.keyCheckbox)||"id",q=xt.value.map($=>$[X]).filter($=>$!=null);if(_){const $=new Set([...B.value,...q]);B.value=Array.from($)}else B.value=B.value.filter($=>!q.includes($))},T=(_,E)=>{const X=de.value.find(Y=>Y.type==="CHECKBOX"),q=(X==null?void 0:X.keyCheckbox)||"id",$=_[q];$!=null&&(E?B.value.includes($)||B.value.push($):B.value=B.value.filter(Y=>Y!==$))};t.watch(B,_=>{var X;r("update:selection",_);const E=A.value||_.length>1;(X=w.value)!=null&&X.length&&w.value.forEach(q=>{var $;($=q.fieldActionGlobal)!=null&&$.length&&q.fieldActionGlobal.forEach(Y=>{var Ge,rt;const fe=q.endpoint||((Ge=q.propsActionGlobal)==null?void 0:Ge.endpointPropAction)||q.propsActionGlobal,xe=(rt=fe==null?void 0:fe.keyParam)==null?void 0:rt[0];(xe&&Y.model===xe||!xe&&/^(id|ids|idAuditTrail)/i.test(Y.model))&&E&&Y.model&&(b.value[Y.model]=_)})})},{deep:!0});const H=_=>_&&typeof _=="string"&&_.trim()?_:void 0,N=t.computed(()=>{var _,E,X,q;return H((E=(_=g.value)==null?void 0:_.endpoint)==null?void 0:E.apiModule)||H((q=(X=g.value)==null?void 0:X.endpointGlobal)==null?void 0:q.apiModule)||o.apiModule}),Q=t.computed(()=>{var _,E,X,q;return H((E=(_=g.value)==null?void 0:_.endpoint)==null?void 0:E.apiAction)||H((q=(X=g.value)==null?void 0:X.endpointGlobal)==null?void 0:q.apiAction)||o.apiAction}),j=t.computed(()=>{var _,E,X,q;return H((E=(_=g.value)==null?void 0:_.endpoint)==null?void 0:E.apiMethod)||H((q=(X=g.value)==null?void 0:X.endpointGlobal)==null?void 0:q.apiMethod)||o.apiMethod||"POST"}),F=t.computed(()=>{var _,E,X,q;return H((E=(_=g.value)==null?void 0:_.endpoint)==null?void 0:E.apiUrl)||H((q=(X=g.value)==null?void 0:X.endpointGlobal)==null?void 0:q.apiUrl)||o.apiUrl}),R=t.computed(()=>o.permissionBase||""),Z=t.computed(()=>!M.value||M.value.length===0?[]:[...M.value].sort((_,E)=>(_.seq||0)-(E.seq||0))),J=_=>{if(!_)return"col-span-1";const E=_.toLowerCase();return{full:"col-span-1 md:col-span-2",half:"col-span-1",third:"col-span-1","two-thirds":"col-span-1 md:col-span-2",two_thirds:"col-span-1 md:col-span-2"}[E]||"col-span-1"},re=()=>{let _=null;if(o.tableConfig&&(_=o.tableConfig),_){g.value=_,_.headers&&(m.value=_.headers.map(q=>{var fe,xe,Be,Ge,rt,mS,dq,hq,uq,pq;if(q.key==="action"||((fe=q.custom)==null?void 0:fe.type)==="ACTION"||((xe=q.custom)==null?void 0:xe.type)==="action"){const Ba=((Be=q.custom)==null?void 0:Be.actionCustom)||((Ge=q.custom)==null?void 0:Ge.action);return Ba&&(L.value=Ba.map(ia=>{const Fe=ia.propsActionCustom||ia.props||{},gS=ia.propCustomMessage||{};return{permission:ia.permission,label:s.value==="id"?Fe.labelID:Fe.labelEN,tooltip:s.value==="id"?Fe.tooltipID||Fe.labelID:Fe.tooltipEN||Fe.labelEN,icon:Fe.icon,variant:Fe.variant||"ghost",bgColor:Fe.bgColor,action:Fe.actionType||Fe.key,route:Fe.route,path:Fe.path,endpoint:Fe.endpointPropAction,requiredCondition:ia.requiredCondition||!1,propCustomCondition:ia.propCustomCondition||[],openDialog:ia.openDialog||!1,fieldActionCustom:(ia.fieldActionCustom||[]).map(bS=>{const p_=bS.propsFieldCustom||bS.propsFieldGlobal||bS.props||{};return{...bS,props:{...p_,endpoint:p_.endpointComponent||p_.endpoint}}}),requireConfirm:ia.requireConfirm||Fe.requireConfirm||!1,confirmTitle:s.value==="id"?gS.titleID||Fe.confirmTitleID||"Konfirmasi":gS.titleEN||Fe.confirmTitleEN||"Confirm",confirmMessage:s.value==="id"?gS.messageID||Fe.confirmMessageID||"Apakah Anda yakin?":gS.messageEN||Fe.confirmMessageEN||"Are you sure?"}})),null}let $;const Y=((rt=q.custom)==null?void 0:rt.conditionBadge)||((mS=q.custom)==null?void 0:mS.condition);return(((dq=q.custom)==null?void 0:dq.type)==="BADGE"||((hq=q.custom)==null?void 0:hq.type)==="badge")&&Y&&($=Y.map(Ba=>({value:Ba.value,label:s.value==="id"?Ba.labelID:Ba.labelEN,color:Ba.color,variant:Ba.variant}))),{key:q.key,label:s.value==="id"?q.labelID:q.labelEN,width:q.width,align:q.align,sortable:!0,type:(uq=q.custom)==null?void 0:uq.type,condition:$,keyCheckbox:(pq=q.custom)==null?void 0:pq.keyCheckbox}}).filter(q=>q!==null));const E=_.filters||_.filter;E&&Array.isArray(E)&&(M.value=E.map(q=>({...q,props:q.propsFilters||q.props||{}})),M.value.forEach(q=>{k.value[q.model]=""}));const X=_.actionGlobal||_.action;console.log("[DEBUG] loadConfig rawActions:",X),X&&Array.isArray(X)?(w.value=X.map(q=>{const $=q.propsActionGlobal||q.props||{};return{key:$.key,permission:q.permission,label:s.value==="id"?$.labelID||"Action":$.labelEN||"Action",tooltip:s.value==="id"?$.tooltipID||$.labelID:$.tooltipEN||$.labelEN,icon:$.icon,variant:$.variant||"default",bgColor:$.bgColor,textColor:$.textColor,route:$.route,path:$.path,endpoint:$.endpointPropAction||q.endpoint,openDialog:q.openDialog||!1,fieldActionGlobal:(q.fieldActionGlobal||q.field||[]).map(Y=>{const fe=Y.propsFieldGlobal||Y.props||{};return{...Y,props:{...fe,endpoint:fe.endpointComponent||fe.endpoint}}})}}),console.log("[DEBUG] loadConfig headerActions set:",w.value)):console.log("[DEBUG] loadConfig no rawActions found"),_.pagination!==void 0&&(v.value=_.pagination)}};t.watch(()=>o.tableConfig,()=>{re()},{deep:!0,immediate:!0});const de=t.computed(()=>o.dynamicColumns||o.configKey||o.tableConfig?m.value:o.columns||[]),ue=t.computed(()=>o.hasActions||L.value.length>0),ve=t.computed(()=>N.value||F.value?y.value:o.loading),le=t.computed(()=>!!N.value||!!F.value),G=t.computed(()=>[]),z=_=>{if(console.log("[DEBUG] hasAction called:",{actionCode:_,permissionChecker:!!o.permissionChecker,effectivePath:R.value}),o.permissionChecker){const E=o.permissionChecker(R.value,_);return console.log("[DEBUG] permissionChecker result:",E),E}return G.value.some(E=>E.code===_)},W=(_,E)=>{if(!_.visibilityCondition)return!0;const{field:X,operator:q,value:$}=_.visibilityCondition,Y=O(E,X);switch(q){case"equals":return Y===$;case"notEquals":return Y!==$;case"in":return Array.isArray($)&&$.includes(Y);case"notIn":return Array.isArray($)&&!$.includes(Y);case"greaterThan":return Y>$;case"lessThan":return Y<$;case"contains":return String(Y).includes(String($));default:return!0}},ee=t.computed(()=>{if(console.log("[DEBUG] visibleHeaderActions:",{headerActions:w.value,ignorePermissions:o.ignorePermissions}),w.value.length===0)return w.value;const _=w.value.filter(E=>{if(o.ignorePermissions)return!0;if(!E.permission)return console.log("[DEBUG] Action no permission, showing:",E.label),!0;const X=z(E.permission);return console.log("[DEBUG] Action permission check:",{label:E.label,permission:E.permission,hasPerm:X}),X});return console.log("[DEBUG] Filtered header actions:",_.length),_}),pe=t.computed(()=>L.value.length===0?L.value:L.value.filter(_=>o.ignorePermissions||!_.permission?!0:z(_.permission))),qe=_=>pe.value.filter(E=>W(E,_)),ot=(_,E)=>{var $,Y;if(_.requiredCondition&&(($=_.propCustomCondition)==null?void 0:$.length)>0){const fe=O(E,"status"),xe=_.propCustomCondition.find(Be=>Be.value===fe);if(xe)return xe.bgColor||_.bgColor||"primary"}if(!_.dynamicColor||!_.colorCondition)return _.bgColor||"primary";const X=O(E,_.colorCondition.field),q=(Y=_.colorCondition.conditions)==null?void 0:Y.find(fe=>fe.value===X);return(q==null?void 0:q.bgColor)||_.bgColor||"primary"},Mt=_=>{const E=(_||"left").toLowerCase();return E==="center"?"justify-center":E==="right"?"justify-end":"justify-start"},oa={ToggleLeft:n1,SquarePen:Xe,Trash2:_i,Eye:ds,CheckCircle:da,Plus:Qs,Download:$s,RefreshCw:ps,Search:yr,SlidersHorizontal:a1},Aa=_=>_?Gt[_]?Gt[_]:oa[_]||null:null,xt=t.computed(()=>le.value?p.value.map((_,E)=>({..._,no:(d.value-1)*h.value+E+1})):_e.value),$t=t.computed(()=>le.value?f.value:ae.value.length),D1=t.computed(()=>$t.value===0?0:(d.value-1)*h.value+1),E1=t.computed(()=>{const _=d.value*h.value;return _>$t.value?$t.value:_}),O=(_,E)=>{if(!(!_||!E))return E in _?_[E]:E.split(".").reduce((X,q)=>X&&X[q],_)},ae=t.computed(()=>{if(le.value)return[];if(!c.value)return o.data;const _=c.value.toLowerCase();return o.data.filter(E=>de.value.some(X=>{const q=O(E,X.key);return q==null?!1:String(q).toLowerCase().includes(_)}))}),he=t.computed(()=>le.value?[]:u.value.key?[...ae.value].sort((E,X)=>{const q=O(E,u.value.key),$=O(X,u.value.key);if(q===$)return 0;let Y=0;return typeof q=="number"&&typeof $=="number"?Y=q-$:Y=String(q).localeCompare(String($)),u.value.direction==="asc"?Y:-Y}):ae.value),_e=t.computed(()=>{if(le.value)return[];const _=(d.value-1)*h.value,E=_+h.value;return he.value.slice(_,E).map((X,q)=>({...X,no:_+q+1}))}),Pe=t.computed(()=>le.value?Object.values(k.value).some(_=>!!_):!!c.value),K=[10,25,50,100],te=()=>{le.value&&(k.value={...k.value,keyword:c.value},d.value=1,We())};let ne;const ye=()=>{o.enableQuickSearch&&(clearTimeout(ne),ne=setTimeout(()=>{te()},500))};let Ve;const ra=()=>{clearTimeout(Ve),Ve=setTimeout(()=>{le.value&&We()},1e3)};t.watch(c,()=>{o.enableQuickSearch&&le.value&&ye()});const We=async()=>{if(le.value&&!(!N.value&&!F.value))try{y.value=!0;const _={page:d.value,perPage:h.value,...k.value,...o.apiParams};c.value&&(_.keyword=c.value),Object.keys(_).forEach(X=>{(_[X]===""||_[X]===null||_[X]===void 0)&&delete _[X]});let E;N.value?E=await i(N.value,Q.value,_):F.value&&(E=await i(F.value,j.value,_)),aq(E)}catch(_){console.error("DataTable fetch error",_),y.value=!1}},aq=_=>{console.log("DataTable handleResponseData:",_),_&&(o.dynamicColumns&&_.columns&&Array.isArray(_.columns)&&(m.value=_.columns.map(E=>({key:E.key||E.field||E.name,label:E.label||E.header||E.name,width:E.width,align:E.align||"LEFT",sortable:E.sortable!==!1,type:E.type,condition:E.condition,format:E.format}))),_.data&&Array.isArray(_.data)?(p.value=_.data,_.totalData?f.value=_.totalData:_.maxPage?f.value=_.maxPage*h.value:f.value=_.data.length*(_.maxPage||1)):Array.isArray(_)?(p.value=_,f.value=_.length):_.users?(p.value=_.users,f.value=_.users.length):_.items&&Array.isArray(_.items)?(p.value=_.items,f.value=_.total||_.totalItems||_.items.length):_.list&&Array.isArray(_.list)?(p.value=_.list,f.value=_.total||_.list.length):_.rows&&Array.isArray(_.rows)?(p.value=_.rows,f.value=_.count||_.total||_.rows.length):_.result&&Array.isArray(_.result)?(p.value=_.result,f.value=_.total||_.count||_.result.length):(console.warn("DataTable: Unknown response format",_),p.value=[],f.value=0)),y.value=!1};t.onUnmounted(()=>{clearTimeout(ne),clearTimeout(Ve)});const yS=()=>{Object.keys(k.value).forEach(_=>{k.value[_]=""}),c.value="",d.value=1,We()},nq=()=>{d.value=1,We()},fS=(_,E)=>{const X=O(_,E.key);let q={variant:"secondary",class:"",label:X};if(E.condition){const $=E.condition.find(Y=>{const fe=(xe,Be)=>typeof xe=="string"&&typeof Be=="string"?xe.toLowerCase().trim()===Be.toLowerCase().trim():xe==Be;return typeof X=="object"&&X!==null?fe(Y.value,X.code)||fe(Y.value,X.id):fe(Y.value,X)});if($){if($.variant&&(q.variant=$.variant),q.label=$.label||(typeof X=="object"?X.name||X.code:X),$.color){const Y=$.color.toLowerCase(),fe=q.variant==="outline",xe={success:"bg-green-500 hover:bg-green-600 border-transparent text-white shadow",warning:"bg-yellow-500 hover:bg-yellow-600 border-transparent text-white shadow",info:"bg-blue-500 hover:bg-blue-600 border-transparent text-white shadow"},Be={success:"text-green-600 border-green-600 hover:bg-green-50",warning:"text-yellow-600 border-yellow-600 hover:bg-yellow-50",info:"text-blue-600 border-blue-600 hover:bg-blue-50",danger:"text-red-600 border-red-600 hover:bg-red-50",destructive:"text-red-600 border-red-600 hover:bg-red-50",primary:"text-primary-600 border-primary-600 hover:bg-primary-50",secondary:"text-neutral-600 border-neutral-600 hover:bg-zinc-50"},Ge={danger:"destructive",secondary:"secondary",primary:"default"};fe?Be[Y]&&(q.class=Be[Y]):Ge[Y]?q.variant=Ge[Y]:xe[Y]&&(q.class=xe[Y])}}else q.label=typeof X=="object"?(X==null?void 0:X.name)||(X==null?void 0:X.code)||"-":X}else q.label=typeof X=="object"?(X==null?void 0:X.name)||(X==null?void 0:X.code)||"-":X;return q},oq=_=>{u.value.key===_?u.value.direction=u.value.direction==="asc"?"desc":"asc":(u.value.key=_,u.value.direction="asc"),r("update:sort",u.value)},c_=_=>{_!==d.value&&(d.value=_,le.value&&We(),r("update:page",_))},rq=_=>{h.value=_,d.value=1,le.value&&We()},iq=_=>{const E=Math.random()*15+75;if(_.width){const X=parseInt(String(_.width));return X<100?`${Math.floor(X*(Math.random()*.2+.7))}px`:`${E}%`}return`${E}%`},d_=()=>{c.value="",k.value={},d.value=1,We()},sq=_=>{var E;if(console.log("[DEBUG] handleHeaderAction called:",_),_.route||_.path)console.log("[DEBUG] Emitting navigate:",{route:_.route,path:_.path}),r("navigate",{route:_.route,path:_.path,key:_.key});else if(_.openDialog){I.value=_,V.value=null,b.value={};const X=_.fieldActionGlobal||_.field||[];X.length&&X.forEach(q=>{var fe;const $=_.endpoint||((fe=_.propsActionGlobal)==null?void 0:fe.endpointPropAction)||_.propsActionGlobal,Y=$!=null&&$.keyParam&&$.keyParam.length>0?$.keyParam[0]:null;Y&&q.model===Y||!Y&&/^(id|ids|idAuditTrail)/i.test(q.model)?b.value[q.model]=B.value:b.value[q.model]||(b.value[q.model]="")}),S.value=!0}else r("action",{action:((E=_.propsActionCustom)==null?void 0:E.key)||_.key||"create",row:null,selection:B.value})},lq=(_,E)=>{if(_.requireConfirm){x.value={button:_,row:E},C.value=!0;return}if(_.openDialog){I.value=_,V.value=E,b.value={};const X=de.value.find($=>$.type==="CHECKBOX"),q=(X==null?void 0:X.keyCheckbox)||"id";_.fieldActionCustom&&_.fieldActionCustom.forEach($=>{/^(id|ids|idAuditTrail)/i.test($.model)?b.value[$.model]=[E[q]]:b.value[$.model]=""}),S.value=!0;return}h_(_,E)},h_=(_,E)=>{if(_.route){if(_.path){const q=_.route.startsWith("/")?_.route:"/"+_.route;sessionStorage.setItem(`layout_${q}`,_.path)}let X=_.route;X.includes(":")?X=X.replaceAll(/:([a-zA-Z0-9_]+)/g,(q,$)=>E[$]||E.id||$):E.id&&(X=`${X.replace(/\/$/,"")}/${E.id}`),_.path&&_.path,r("navigate",{route:X,path:_.path})}else if(_.endpoint&&_.endpoint.apiUrl){y.value=!0;const{apiUrl:X}=Ke(),q=_.endpoint.apiUrl,$=_.endpoint.apiMethod||"POST",Y={};_.endpoint.keyParam&&Array.isArray(_.endpoint.keyParam)&&_.endpoint.keyParam.forEach((fe,xe)=>{const Be=_.endpoint.model&&xe===0?_.endpoint.model:fe;E[fe]!==void 0&&(Y[Be]=E[fe])}),Object.keys(Y).length===0&&E.id&&(Y.id=E.id),X(q,$,Y).then(()=>{We(),r("action",{action:_.action||"success",row:E})}).catch(fe=>{console.error("Action Failed",fe)}).finally(()=>{y.value=!1})}else r("action",{action:_.action,row:E})},u_=()=>{x.value&&(h_(x.value.button,x.value.row),cq())},DQ=()=>{var _,E;if(I.value){const X=I.value,q=X.endpoint||((_=X.propsActionGlobal)==null?void 0:_.endpointPropAction)||X.propsActionGlobal;let $=(q==null?void 0:q.model)||(q!=null&&q.keyParam&&q.keyParam.length>0?q.keyParam[0]:null);if(!$){const Be=(X.fieldActionGlobal||X.fieldActionCustom||X.field||[]).find(Ge=>/^(id|ids|idAuditTrail)/i.test(Ge.model));$=Be?Be.model:"ids"}let Y=null,fe=!1;if(V.value){const xe=de.value.find(rt=>rt.type==="CHECKBOX"),Be=(xe==null?void 0:xe.keyCheckbox)||"id",Ge=V.value[Be];q!=null&&q.apiUrl&&(Y={...b.value},Y[$]||(Y[$]=[Ge]),fe=!0)}else q!=null&&q.apiUrl&&(Y={...b.value},Y[$]||(Y[$]=B.value||[]),fe=!0);if(fe&&Y&&(q!=null&&q.apiUrl)){const{apiUrl:xe}=Ke(),Be=q.apiUrl,Ge=q.apiMethod||"POST";xe(Be,Ge,Y).then(()=>{S.value=!1,V.value||(B.value=[]),We(),r("action",{action:"success",row:null})}).catch(rt=>{console.error("Action Failed",rt)})}else if(V.value){const xe=de.value.find(mS=>mS.type==="CHECKBOX"),Be=(xe==null?void 0:xe.keyCheckbox)||"id",Ge=V.value[Be],rt={...b.value};rt[$]||(rt[$]=[Ge]),r("action",{action:I.value.action,row:rt}),S.value=!1}else{const xe={...b.value};xe[$]||(xe[$]=B.value);const Be={action:((E=I.value.propsActionGlobal)==null?void 0:E.key)||I.value.key,row:xe,selection:B.value};r("action",Be),S.value=!1}}},cq=()=>{C.value=!1,x.value=null},EQ=t.computed(()=>x.value?x.value.button.confirmTitle||"Confirm":""),TQ=t.computed(()=>x.value?x.value.button.confirmMessage||"Confirm":"");e({fetchData:We,filters:k,resetFilters:yS,handleRefresh:d_});const kS=t.ref(""),HQ=_=>{if(!_)return"";const E=_.endpoint||_.endpointGlobal||{};return JSON.stringify({url:E.apiUrl||_.apiUrl,module:E.apiModule||_.apiModule,action:E.apiAction||_.apiAction,method:E.apiMethod||_.apiMethod,params:_.apiParams,socket:E.socket||_.socketEndpoint,socketParams:_.socketParams})};return t.watch(()=>o.tableConfig,()=>{if(o.tableConfig){re();const _=HQ(o.tableConfig);_!==kS.value&&(!kS.value&&le.value?(kS.value=_,We()):(kS.value=_,le.value&&ra()))}},{deep:!0,immediate:!0}),t.watch(()=>o.apiModule,()=>{le.value&&We()}),t.watch(()=>o.apiParams,()=>{le.value&&We()},{deep:!0}),t.watch(()=>w.value,_=>{console.log("[DEBUG] headerActions changed:",_.length,"items");const E=ee.value;console.log("[DEBUG] visibleHeaderActions evaluated:",E.length,"items")},{deep:!0}),t.onMounted(()=>{re(),le.value&&(o.tableConfig||(y.value=!0,We()))}),(_,E)=>{var X;return t.openBlock(),t.createElementBlock("div",NY,[t.createElementVNode("div",$Y,[t.createElementVNode("div",UY,[a.nested?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",WY,[t.createElementVNode("div",GY,[t.createVNode(t.unref(yr),{class:"absolute left-2.5 top-2.5 h-4 w-4 text-neutral-500 dark:text-neutral-400"}),t.createVNode(t.unref(o_),{modelValue:c.value,"onUpdate:modelValue":E[0]||(E[0]=q=>c.value=q),placeholder:"Search...",style:{"padding-left":"2.25rem !important"},class:"h-9 bg-white/95 dark:bg-zinc-800/95 border-white/30 dark:border-neutral-700/50 text-neutral-900 dark:text-neutral-100 placeholder:text-neutral-500 dark:placeholder:text-neutral-400",onKeyup:t.withKeys(te,["enter"])},null,8,["modelValue"])]),M.value.length>0?(t.openBlock(),t.createElementBlock("div",KY,[t.createVNode(CY,null,{trigger:t.withCtx(()=>[t.createVNode(ws,{variant:"secondary",icon:"SlidersHorizontal",tooltip:"Advance Search",class:"gap-2 h-9 w-full sm:w-auto justify-center bg-white/95 dark:bg-zinc-800/95 text-neutral-700 dark:text-neutral-300 hover:bg-zinc-50 dark:hover:bg-zinc-800 border border-white/30 dark:border-neutral-700/50 shadow-sm backdrop-blur-sm text-xs font-medium"})]),footer:t.withCtx(()=>[t.createElementVNode("div",JY,[t.renderSlot(_.$slots,"filter-footer",{fetch:We,reset:yS})])]),default:t.withCtx(()=>[t.createElementVNode("div",XY,[t.renderSlot(_.$slots,"filter-form",{filters:k.value},()=>[M.value.length>0?(t.openBlock(),t.createElementBlock("div",ZY,[t.createElementVNode("div",YY,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Z.value,(q,$)=>(t.openBlock(),t.createElementBlock("div",{key:$,class:t.normalizeClass(J(q.column))},[t.createVNode(Qz,{field:q,modelValue:k.value[q.model],"onUpdate:modelValue":Y=>k.value[q.model]=Y},null,8,["field","modelValue","onUpdate:modelValue"])],2))),128))])])):t.createCommentVNode("",!0)]),M.value.length>0?(t.openBlock(),t.createElementBlock("div",QY,[t.createVNode(t.unref(Ee),{variant:"outline",onClick:yS,disabled:ve.value,class:"flex-1 w-full"},{default:t.withCtx(()=>[...E[8]||(E[8]=[t.createTextVNode(" Reset ",-1)])]),_:1},8,["disabled"]),t.createVNode(t.unref(Ee),{onClick:nq,disabled:ve.value,class:"flex-1 w-full"},{default:t.withCtx(()=>[...E[9]||(E[9]=[t.createTextVNode(" Search ",-1)])]),_:1},8,["disabled"])])):t.createCommentVNode("",!0)])]),_:3})])):t.createCommentVNode("",!0)])),t.createElementVNode("div",{class:t.normalizeClass(["flex items-center gap-2 flex-wrap",{"w-full justify-between":a.nested}])},[a.nested?(t.openBlock(),t.createElementBlock("span",eQ)):t.createCommentVNode("",!0),a.nested?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ws,{key:1,variant:"secondary",icon:"RefreshCw",text:"Refresh",tooltip:"Refresh",class:"gap-2 h-9 bg-white/95 dark:bg-zinc-800/95 text-neutral-700 dark:text-neutral-300 hover:bg-white dark:hover:bg-zinc-800 border border-white/30 dark:border-neutral-700/50 shadow-sm backdrop-blur-sm text-xs font-medium",onClick:d_,disabled:ve.value},{icon:t.withCtx(()=>[t.createVNode(t.unref(ps),{class:t.normalizeClass(["w-3.5 h-3.5",{"animate-spin":ve.value}])},null,8,["class"])]),_:1},8,["disabled"])),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ee.value,(q,$)=>(t.openBlock(),t.createBlock(ws,{key:$,icon:q.icon,text:q.label,tooltip:q.tooltip,variant:q.variant,"bg-color":q.bgColor,"text-color":q.textColor,class:"gap-2 h-9 shadow-lg shadow-primary-500/20 border-none text-xs font-medium",onClick:Y=>sq(q)},null,8,["icon","text","tooltip","variant","bg-color","text-color","onClick"]))),128)),t.renderSlot(_.$slots,"header-actions")],2)])]),t.createElementVNode("div",tQ,[t.createElementVNode("table",aQ,[t.createElementVNode("thead",nQ,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(de.value,q=>(t.openBlock(),t.createElementBlock("th",{key:q.key,class:t.normalizeClass([q.align?`text-${q.align.toLowerCase()}`:"",q.sortable?"cursor-pointer select-none":"","px-3 py-2 text-xs font-black text-white dark:text-neutral-100 uppercase tracking-wider transition-colors duration-150"]),style:t.normalizeStyle(q.width?{width:q.width}:{}),onClick:$=>q.sortable&&oq(q.key)},[q.type==="CHECKBOX"?(t.openBlock(),t.createElementBlock("div",rQ,[t.createVNode(q1,{"model-value":A.value,indeterminate:P.value,"onUpdate:modelValue":E[1]||(E[1]=$=>U(!!$)),onClick:E[2]||(E[2]=t.withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate"])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["flex items-center gap-2 w-full",Mt(q.align)])},[t.createElementVNode("span",null,t.toDisplayString(q.label),1)],2))],14,oQ))),128)),ue.value?(t.openBlock(),t.createElementBlock("th",iQ,[...E[10]||(E[10]=[t.createElementVNode("div",{class:"flex items-center justify-center w-full"}," Actions ",-1)])])):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",sQ,[ve.value?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(h.value,q=>(t.openBlock(),t.createElementBlock("tr",{key:`skeleton-${q}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(de.value,$=>{var Y,fe;return t.openBlock(),t.createElementBlock("td",{key:$.key,class:t.normalizeClass([$.align?`text-${$.align.toLowerCase()}`:"text-left","px-3 py-0.5"])},[t.createElementVNode("div",{class:t.normalizeClass(["bg-gradient-to-r from-neutral-200 via-neutral-300 to-neutral-200 dark:from-neutral-700 dark:via-neutral-600 dark:to-neutral-700 animate-shimmer",[["badge","BADGE"].includes($.type??"")||$.condition?"h-5 rounded-full w-20":"h-4 rounded-md",((Y=$.align)==null?void 0:Y.toLowerCase())==="center"?"mx-auto":"",((fe=$.align)==null?void 0:fe.toLowerCase())==="right"?"ml-auto":""]]),style:t.normalizeStyle({width:["badge","BADGE"].includes($.type??"")||$.condition?void 0:iq($),backgroundSize:"200% 100%"})},null,6)],2)}),128)),a.hasActions?(t.openBlock(),t.createElementBlock("td",lQ,[...E[11]||(E[11]=[t.createElementVNode("div",{class:"flex items-center justify-center gap-1.5"},[t.createElementVNode("div",{class:"w-9 h-9 bg-zinc-200 dark:bg-zinc-700 rounded-xl animate-pulse"}),t.createElementVNode("div",{class:"w-9 h-9 bg-zinc-200 dark:bg-zinc-700 rounded-xl animate-pulse delay-75"}),t.createElementVNode("div",{class:"w-9 h-9 bg-zinc-200 dark:bg-zinc-700 rounded-xl animate-pulse delay-150"})],-1)])])):t.createCommentVNode("",!0)]))),128)):xt.value.length===0?(t.openBlock(),t.createElementBlock("tr",cQ,[t.createElementVNode("td",{colspan:de.value.length+(ue.value?1:0),class:"text-center py-16"},[t.createElementVNode("div",hQ,[t.createElementVNode("div",null,[t.createElementVNode("p",uQ,t.toDisplayString(Pe.value?"No search results":"No data"),1),t.createElementVNode("p",pQ,t.toDisplayString(Pe.value?"Try changing keywords":"No data added"),1)])])],8,dQ)])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(xt.value,(q,$)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:$},[t.createElementVNode("tr",yQ,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(de.value,Y=>(t.openBlock(),t.createElementBlock("td",{key:Y.key,class:t.normalizeClass([Y.align?`text-${Y.align}`:"text-left","px-3 py-0.5 text-sm text-neutral-900 dark:text-neutral-100"])},[t.renderSlot(_.$slots,`cell-${Y.key}`,{row:q,value:O(q,Y.key)},()=>[Y.type==="CHECKBOX"?(t.openBlock(),t.createElementBlock("div",fQ,[t.createVNode(q1,{"model-value":D(q),"onUpdate:modelValue":fe=>T(q,!!fe),onClick:E[3]||(E[3]=t.withModifiers(()=>{},["stop"]))},null,8,["model-value","onUpdate:modelValue"])])):Y.type==="badge"||Y.type==="BADGE"||Y.condition?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["flex items-center gap-1.5 flex-wrap md:flex-nowrap",[Y.align?`justify-${Y.align}`:"justify-start"]])},[t.createVNode(t.unref(_a),{variant:fS(q,Y).variant,class:t.normalizeClass([fS(q,Y).class,"whitespace-nowrap truncate max-w-[150px] inline-block"])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(fS(q,Y).label),1)]),_:2},1032,["variant","class"])],2)):Y.key==="no"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(t.toDisplayString((d.value-1)*h.value+$+1),1)],64)):Y.type==="date"||Y.type==="DATE"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode(t.toDisplayString(O(q,Y.key)?t.unref(yY)(O(q,Y.key),"long"):"-"),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode(t.toDisplayString(Y.format?Y.format(O(q,Y.key)):O(q,Y.key)),1)],64))])],2))),128)),ue.value?(t.openBlock(),t.createElementBlock("td",kQ,[t.renderSlot(_.$slots,"actions",{row:q,buttons:qe(q),getButtonColor:ot,getIconComponent:Aa},()=>[qe(q).length>0?(t.openBlock(),t.createElementBlock("div",mQ,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(qe(q),(Y,fe)=>(t.openBlock(),t.createElementBlock("div",{key:fe,class:"group relative"},[t.createVNode(ws,{tooltip:Y.tooltip||Y.label,icon:Aa(Y.icon),size:"icon",variant:Y.variant||"ghost","bg-color":ot(Y,q),onClick:xe=>lq(Y,q)},null,8,["tooltip","icon","variant","bg-color","onClick"])]))),128))])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]),_.$slots["expanded-row"]?(t.openBlock(),t.createElementBlock("tr",gQ,[t.createElementVNode("td",{colspan:de.value.length+(ue.value?1:0),class:"px-0 py-0"},[t.renderSlot(_.$slots,"expanded-row",{row:q,index:$})],8,bQ)])):t.createCommentVNode("",!0)],64))),128))])])]),!ve.value&&xt.value.length>0&&a.showPagination&&v.value?(t.openBlock(),t.createElementBlock("div",MQ,[t.createElementVNode("div",xQ,[t.createVNode(t.unref(DY),{"model-value":String(h.value),"onUpdate:modelValue":E[4]||(E[4]=q=>rq(Number(q)))},{default:t.withCtx(()=>[t.createVNode(t.unref(FY),{class:"h-8 w-[70px] bg-white dark:bg-zinc-800 border-neutral-200 dark:border-neutral-700"},{default:t.withCtx(()=>[t.createVNode(t.unref(RY),{placeholder:String(h.value)},null,8,["placeholder"])]),_:1}),t.createVNode(t.unref(EY),null,{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(K,q=>t.createVNode(t.unref(HY),{key:q,value:String(q)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(q),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1},8,["model-value"]),E[16]||(E[16]=t.createElementVNode("div",{class:"h-5 w-px bg-zinc-300 dark:bg-zinc-600"},null,-1)),t.createElementVNode("span",wQ,[E[12]||(E[12]=t.createTextVNode(" Showing ",-1)),t.createElementVNode("span",vQ,t.toDisplayString(D1.value),1),E[13]||(E[13]=t.createTextVNode(" to ",-1)),t.createElementVNode("span",CQ,t.toDisplayString(E1.value),1),E[14]||(E[14]=t.createTextVNode(" of ",-1)),t.createElementVNode("span",LQ,t.toDisplayString($t.value),1),E[15]||(E[15]=t.createTextVNode(" items ",-1))])]),t.createElementVNode("div",SQ,[t.createVNode(t.unref(IY),{total:$t.value,"items-per-page":h.value,"sibling-count":1,"show-edges":"",page:d.value,"onUpdate:page":c_,class:"scale-90 origin-right"},{default:t.withCtx(()=>[t.createVNode(t.unref(_Y),{class:"flex items-center gap-1"},{default:t.withCtx(({items:q})=>[t.createVNode(t.unref(BY),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:opacity-50 disabled:cursor-not-allowed"},{default:t.withCtx(()=>[t.createVNode(t.unref(Os),{class:"h-4 w-4"})]),_:1}),t.createVNode(t.unref(PY),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:cursor-not-allowed"},{default:t.withCtx(()=>[t.createVNode(t.unref(dn),{class:"h-4 w-4"})]),_:1}),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(q,($,Y)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[$.type==="page"?(t.openBlock(),t.createBlock(t.unref(VY),{key:Y,value:$.value,"as-child":""},{default:t.withCtx(()=>[t.createVNode(t.unref(Ee),{class:"w-8 h-8 p-0 text-sm",variant:$.value===d.value?"default":"outline",disabled:$.value===d.value,onClick:fe=>c_($.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString($.value),1)]),_:2},1032,["variant","disabled","onClick"])]),_:2},1032,["value"])):(t.openBlock(),t.createBlock(t.unref(AY),{key:$.type,index:Y},null,8,["index"]))],64))),256)),t.createVNode(t.unref(qY),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:cursor-not-allowed"},{default:t.withCtx(()=>[t.createVNode(t.unref(hn),{class:"h-4 w-4"})]),_:1}),t.createVNode(t.unref(zY),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:cursor-not-allowed"},{default:t.withCtx(()=>[t.createVNode(t.unref(Fs),{class:"h-4 w-4"})]),_:1})]),_:1})]),_:1},8,["total","items-per-page","page"])])])):t.createCommentVNode("",!0),t.createVNode(lS,{modelValue:C.value,"onUpdate:modelValue":E[5]||(E[5]=q=>C.value=q),title:EQ.value,icon:"AlertCircle","max-width":450,persistent:!1},{actions:t.withCtx(()=>[t.createVNode(t.unref(Ee),{variant:"outline",onClick:cq},{default:t.withCtx(()=>[...E[17]||(E[17]=[t.createTextVNode(" Cancel ",-1)])]),_:1}),t.createVNode(t.unref(Ee),{onClick:u_},{default:t.withCtx(()=>[...E[18]||(E[18]=[t.createTextVNode(" Yes ",-1)])]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",IQ,[t.createElementVNode("p",_Q,t.toDisplayString(TQ.value),1)])]),_:1},8,["modelValue","title"]),t.createVNode(lS,{modelValue:S.value,"onUpdate:modelValue":E[7]||(E[7]=q=>S.value=q),title:((X=I.value)==null?void 0:X.label)||"Action",icon:"AlertCircle","max-width":450},{actions:t.withCtx(()=>[t.createVNode(t.unref(Ee),{variant:"outline",onClick:E[6]||(E[6]=q=>S.value=!1)},{default:t.withCtx(()=>[...E[19]||(E[19]=[t.createTextVNode(" Cancel ",-1)])]),_:1}),t.createVNode(t.unref(Ee),{onClick:DQ},{default:t.withCtx(()=>[...E[20]||(E[20]=[t.createTextVNode(" Save ",-1)])]),_:1})]),default:t.withCtx(()=>{var q,$;return[t.createElementVNode("div",AQ,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(((q=I.value)==null?void 0:q.fieldActionCustom)||(($=I.value)==null?void 0:$.fieldActionGlobal)||[],(Y,fe)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:fe},[Y.isHidden?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(J(Y.column))},[t.createVNode(Qz,{field:Y,modelValue:b.value[Y.model],"onUpdate:modelValue":xe=>b.value[Y.model]=xe},null,8,["field","modelValue","onUpdate:modelValue"])],2))],64))),128))])]}),_:1},8,["modelValue","title"])])}}}),BQ={class:"h-full flex flex-col"},VQ={key:1,class:"flex-1 flex items-center justify-center"},zQ={key:2,class:"flex-1 flex items-center justify-center text-red-500"},Jz=t.defineComponent({__name:"AutoLayoutDatatable",props:{layoutCode:{},userPermissions:{},permissionBase:{}},emits:["action","navigate"],setup(a,{emit:e}){const n=a,o=e,r=H1.useRoute();H1.useRouter();const{apiUrl:i}=Ke(),s=t.inject("hasActionAccess",()=>!1),c=t.inject("userPermissions",null),d=t.ref(null),h=t.ref(!0),u=t.ref(null),p=async()=>{var k;h.value=!0;try{const m=await i(`/api/auto-layout/datatable/form-dynamic?code=${n.layoutCode}`,"GET");m.status&&(d.value=Array.isArray(m.data)?m.data[0]:m.data,console.log("[DEBUG] AutoLayoutDatatable config loaded:",d.value),console.log("[DEBUG] actionGlobal in config:",(k=d.value)==null?void 0:k.actionGlobal))}catch(m){console.error("Gagal Menampilkan Datatable:",m)}finally{h.value=!1}},y=k=>{k.action==="add"&&console.log("[AutoLayoutDatatable] Add action triggered"),console.log("Aksi:",k.action,k)},f=k=>{console.log("[DEBUG] AutoLayoutDatatable handleNavigate:",k);let m=k.route;if(m||(m=`/${((r==null?void 0:r.path)||"").split("/")[1]||"product"}/create`),m){const g=k.path?{code:k.path}:{};console.log("[DEBUG] Emitting navigate to parent:",{path:m,query:g}),o("navigate",{route:m,query:g})}else console.warn("[DEBUG] No route or path provided for navigation")};return t.onMounted(()=>{p()}),(k,m)=>(t.openBlock(),t.createElementBlock("div",BQ,[!h.value&&d.value?(t.openBlock(),t.createBlock(uS,{key:0,ref_key:"dtRef",ref:u,"api-url":`/api/auto-layout/datatable/form-dynamic?code=${n.layoutCode}`,"api-method":"GET","table-config":d.value,"permission-base":n.permissionBase||"","user-permissions":n.userPermissions||t.unref(c),"permission-checker":t.unref(s),onAction:y,onNavigate:f},{"header-actions":t.withCtx(()=>[...m[0]||(m[0]=[])]),_:1},8,["api-url","table-config","permission-base","user-permissions","permission-checker"])):h.value?(t.openBlock(),t.createElementBlock("div",VQ,[...m[1]||(m[1]=[t.createElementVNode("i",{class:"mdi mdi-loading mdi-spin text-4xl text-primary-600"},null,-1)])])):(t.openBlock(),t.createElementBlock("div",zQ," Failed to load configuration for "+t.toDisplayString(n.layoutCode),1))]))}}),eq=t.defineCustomElement(Yz),tq=t.defineCustomElement(Jz);typeof customElements<"u"&&(customElements.get("micro-dynamic-form")||customElements.define("micro-dynamic-form",eq),customElements.get("micro-dynamic-datatable")||customElements.define("micro-dynamic-datatable",tq));const qQ=[qS,O_,ws,rI,bz,q1,Mz,GI,lS,Tz,cS,Hz,QI,jz,e_,a_,t_,n_,Oz,r_,Fz,Rz,Nz,$z,i_,s_,l_,dS,Kz,Xz,Zz,uS],PQ={install(a,e={}){e&&Object.keys(e).length>0&&f_(e),qQ.forEach(n=>{n.name&&a.component(n.name,n)})}};oe.AutoLayoutDatatable=Jz,oe.AutoLayoutForm=Yz,oe.DCodeAutoComplete=qS,oe.DCodeButton=ws,oe.DCodeCard=rI,oe.DCodeChart=bz,oe.DCodeCheckbox=q1,oe.DCodeCurrencyField=Mz,oe.DCodeDatePicker=GI,oe.DCodeDialog=lS,oe.DCodeDialogCloseBtn=Tz,oe.DCodeDropzone=cS,oe.DCodeFileField=Hz,oe.DCodeFileResult=QI,oe.DCodeIconDropdown=jz,oe.DCodeImageCropperDialog=e_,oe.DCodeImageField=a_,oe.DCodeImageResult=t_,oe.DCodeInfiniteAutoComplete=O_,oe.DCodeLabel=n_,oe.DCodeMultiSelect=Oz,oe.DCodeOtpInput=r_,oe.DCodeProgress=Fz,oe.DCodeProgressBar=Rz,oe.DCodeRadio=Nz,oe.DCodeRadioCustom=$z,oe.DCodeSlider=i_,oe.DCodeSwitch=s_,oe.DCodeTextField=l_,oe.DCodeTextarea=dS,oe.DCodeTimelineWithIcons=Kz,oe.DCodeUploadFile=Xz,oe.DCodeWizard=Zz,oe.DataTable=uS,oe.DataTableComponent=uS,oe.MicroDynamicDatatable=tq,oe.MicroDynamicForm=eq,oe.cn=be,oe.default=PQ,oe.setApiConfig=f_,Object.defineProperties(oe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|