codesaaz-core 0.0.32 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/codesaaz.es.js +3546 -3719
- package/dist/codesaaz.umd.js +21 -20
- package/dist/{codesaaz-core.css → index.css} +1 -1
- package/package.json +11 -7
package/dist/codesaaz.umd.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
(function(we,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("vue-router"),require("primevue")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","primevue"],a):(we=typeof globalThis<"u"?globalThis:we||self,a(we.Codesaaz={},we.Vue,we.VueRouter,we.PrimeVue))})(this,function(we,a,Ke,os){"use strict";var Z2=Object.defineProperty;var eE=(we,a,Ke)=>a in we?Z2(we,a,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):we[a]=Ke;var H=(we,a,Ke)=>eE(we,typeof a!="symbol"?a+"":a,Ke);/*!
|
|
1
|
+
(function(xe,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue"),require("vue-router"),require("primevue")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","primevue"],s):(xe=typeof globalThis<"u"?globalThis:xe||self,s(xe.Codesaaz={},xe.Vue,xe.VueRouter,xe.PrimeVue))})(this,function(xe,s,nt,os){"use strict";var M2=Object.defineProperty;var F2=(xe,s,nt)=>s in xe?M2(xe,s,{enumerable:!0,configurable:!0,writable:!0,value:nt}):xe[s]=nt;var H=(xe,s,nt)=>F2(xe,typeof s!="symbol"?s+"":s,nt);var xi;var rs=document.createElement("style");rs.textContent=`.text-color-hint[data-v-8820d348]{color:var( --text-color)}.p-message-wrapper{padding:.5rem}.showHideColor{color:var(--primary-color)}.chart-container[data-v-8e3e786b]{max-width:80%;height:70%;margin:auto;padding:1rem}canvas[data-v-8e3e786b]{width:400%!important;height:400%!important}.chart-container[data-v-021825b3]{max-width:100%;margin:auto;padding:1rem}.error-message[data-v-021825b3]{color:red;font-weight:700;text-align:center;margin-top:1rem}.chart-container[data-v-cc915538]{max-width:100%;margin:auto;padding:1rem}.error-message[data-v-cc915538]{color:red;font-weight:700;text-align:center;margin-top:1rem}.chart-container[data-v-eec06405]{max-width:100%;margin:auto;padding:1rem}.error-message[data-v-eec06405]{color:red;font-weight:700;text-align:center;margin-top:1rem}.chart-container[data-v-c4082893]{max-width:100%;margin:auto;padding:1rem}.error-message[data-v-c4082893]{color:red;font-weight:700;text-align:center;margin-top:1rem}.chart-container[data-v-54dad7d5]{max-width:100%;margin:auto;padding:1rem}.error-message[data-v-54dad7d5]{color:red;font-weight:700;text-align:center;margin-top:1rem}.sorting-filter-section[data-v-a358808d]:hover,.linked-entity-section[data-v-412eec44]:hover{color:var(--primary-color)}.border-bottom-section[data-v-412eec44]{border-bottom:1px solid var(--surface-border)}.section-heading[data-v-12a444f4]:hover{color:var(--primary-color)}.custom-sidebar[data-v-12a444f4]{padding-left:8%;padding-top:14px;padding-bottom:14px;border-bottom-left-radius:5px;border-bottom-right-radius:5px;background:var(--surface-card);border-top:1px solid var(--surface-border);bottom:0;left:0;position:fixed;right:0;z-index:1111;transition-property:none;transition-duration:.3s;transform:translateY(0)}.custom-sidebar-content[data-v-12a444f4]{display:flex;align-items:center!important;justify-content:space-between;display:inline-flex;word-break:break-word;overflow:visible;flex-grow:1;width:100%}.custom-sidebar-button[data-v-12a444f4]{display:flex;flex-wrap:nowrap;flex-shrink:1}.custom-sidebar-text[data-v-12a444f4]{flex-shrink:100000;width:100%;overflow-x:auto;overflow-y:hidden;display:flex;flex-direction:column;white-space:normal;padding-left:10px}.column-item[data-v-12a444f4]{width:calc(33.33% - 10px);margin-bottom:20px}.tile-grid[data-v-bce4d0f0]{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.tile[data-v-f59ea2d9]:hover{background:var(--surface-hover)}.tile-grid[data-v-066206a2]{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.record-list[data-v-066206a2]{color:var(--primary-color)}.record-head[data-v-066206a2]{color:var(--p-red-400)}.tile[data-v-edc5e5a2]:hover{background:var(--surface-hover)}.error-message[data-v-edc5e5a2]{background-color:#ffe4e4;border:1px solid red;padding:10px;margin-bottom:10px;text-align:center;border-radius:5px}.flex[data-v-c78e676f]{display:flex}.flex-col[data-v-c78e676f]{flex-direction:column}.flex-grow[data-v-c78e676f]{flex-grow:1}.gap-4[data-v-c78e676f]{gap:1rem}.gap-2[data-v-c78e676f]{gap:.5rem}.p-6[data-v-c78e676f]{padding:1.5rem}.bg-white[data-v-c78e676f]{background-color:#fff}.shadow-md[data-v-c78e676f]{box-shadow:0 4px 6px #0000001a}.rounded-lg[data-v-c78e676f]{border-radius:.5rem}.border[data-v-c78e676f]{border-width:1px}.border-gray-300[data-v-c78e676f]{border-color:#d1d5db}.font-bold[data-v-c78e676f]{font-weight:700}.text-gray-700[data-v-c78e676f]{color:#4a5568}.text-gray-600[data-v-c78e676f]{color:#718096}.tile[data-v-037944bc]:hover{background:var(--surface-hover)}.error-message[data-v-037944bc]{background-color:#ffe4e4;border:1px solid red;padding:10px;margin-bottom:10px;text-align:center;border-radius:5px}.flex[data-v-27c0e644]{display:flex}.flex-col[data-v-27c0e644]{flex-direction:column}.flex-grow[data-v-27c0e644]{flex-grow:1}.gap-4[data-v-27c0e644]{gap:1rem}.gap-2[data-v-27c0e644]{gap:.5rem}.p-6[data-v-27c0e644]{padding:1.5rem}.bg-white[data-v-27c0e644]{background-color:#fff}.shadow-md[data-v-27c0e644]{box-shadow:0 4px 6px #0000001a}.rounded-lg[data-v-27c0e644]{border-radius:.5rem}.border[data-v-27c0e644]{border-width:1px}.border-gray-300[data-v-27c0e644]{border-color:#d1d5db}.font-bold[data-v-27c0e644]{font-weight:700}.text-gray-700[data-v-27c0e644]{color:#4a5568}.text-gray-600[data-v-27c0e644]{color:#718096}@media (min-width: 400px) and (max-width: 520px){.responsive-box[data-v-27c0e644]{width:75%}}:root{--vc-clr-primary: #000;--vc-clr-secondary: #090f207f;--vc-clr-white: #ffffff}.carousel,.carousel *{box-sizing:border-box}.carousel{height:var(--vc-carousel-height);overscroll-behavior:none;position:relative;touch-action:pan-y;z-index:1}.carousel.is-dragging{touch-action:none}.carousel__track{display:flex;gap:var(--vc-slide-gap);height:100%;list-style:none;margin:0!important;padding:0!important;position:relative;transition:transform ease-out;transition-duration:var(--vc-transition-duration);width:100%}.carousel__viewport{height:100%;overflow:hidden;width:100%}.carousel__sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.carousel.is-ttb .carousel__track{flex-direction:column}.carousel.is-btt .carousel__track{flex-direction:column-reverse}.carousel.is-vertical .carousel__slide--clone:first-child{margin-block-start:var(--vc-cloned-offset)}.carousel:not(.is-vertical) .carousel__slide--clone:first-child{margin-inline-start:var(--vc-cloned-offset)}.carousel.is-effect-fade .carousel__track{display:grid;grid-template-columns:100%;grid-template-rows:100%;transition:none}.carousel.is-effect-fade .carousel__slide{grid-area:1 / 1;height:100%!important;opacity:0;pointer-events:none;transition:opacity ease-in-out;transition-duration:var(--vc-transition-duration);width:100%!important}.carousel.is-effect-fade .carousel__slide--active{opacity:1;pointer-events:auto}:root{--vc-icn-width: 1.2em}.carousel__icon{fill:currentColor;height:var(--vc-icn-width);width:var(--vc-icn-width)}:root{--vc-nav-background: transparent;--vc-nav-border-radius: 0;--vc-nav-color: var(--vc-clr-primary);--vc-nav-color-hover: var(--vc-clr-secondary);--vc-nav-height: 30px;--vc-nav-width: 30px}.carousel__next,.carousel__prev{align-items:center;background:var(--vc-nav-background);border:0;border-radius:var(--vc-nav-border-radius);box-sizing:content-box;color:var(--vc-nav-color);cursor:pointer;display:flex;font-size:var(--vc-nav-height);height:var(--vc-nav-height);justify-content:center;margin:0 10px;padding:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);width:var(--vc-nav-width)}.carousel__next--disabled,.carousel__prev--disabled{cursor:not-allowed;opacity:.5}.carousel__next{right:0}.carousel__prev{left:0}.carousel.is-btt .carousel__next{top:0}.carousel.is-btt .carousel__prev{bottom:0}.carousel.is-rtl .carousel__next{left:0;right:auto}.carousel.is-rtl .carousel__prev{left:auto;right:0}.carousel.is-ttb .carousel__next{bottom:0}.carousel.is-ttb .carousel__prev{top:0}.carousel.is-vertical .carousel__next,.carousel.is-vertical .carousel__prev{left:auto;margin:5px auto;right:50%;top:auto;transform:translate(50%)}@media (hover: hover){.carousel__next:hover,.carousel__prev:hover{color:var(--vc-nav-color-hover)}}:root{--vc-pgn-active-color: var(--vc-clr-primary);--vc-pgn-background-color: var(--vc-clr-secondary);--vc-pgn-border-radius: 0;--vc-pgn-height: 4px;--vc-pgn-margin: 6px 5px;--vc-pgn-width: 16px}.carousel__pagination{bottom:5px;display:flex;justify-content:center;left:50%;line-height:0;list-style:none!important;margin:0!important;padding:0!important;position:absolute;transform:translate(-50%)}.carousel__pagination-button{border:0;cursor:pointer;margin:var(--vc-pgn-margin);background-color:var(--vc-pgn-background-color);border-radius:var(--vc-pgn-border-radius);display:block;height:var(--vc-pgn-height);width:var(--vc-pgn-width);padding:0}.carousel__pagination-button--active{background-color:var(--vc-pgn-active-color)}@media (hover: hover){.carousel__pagination-button:hover{background-color:var(--vc-pgn-active-color)}}.carousel.is-vertical .carousel__pagination{bottom:50%;flex-direction:column;left:auto;right:5px;transform:translateY(50%)}.carousel.is-vertical .carousel__pagination-button{height:var(--vc-pgn-width);width:var(--vc-pgn-height)}.carousel.is-btt .carousel__pagination{flex-direction:column-reverse}.carousel__slide{align-items:center;display:flex;flex-shrink:0;justify-content:center;margin:0;transform:translateZ(0)}.tile[data-v-2c25fd02]:hover{background:var(--surface-hover)}.error-message[data-v-2c25fd02]{background-color:#ffe4e4;border:1px solid red;padding:10px;margin-bottom:10px;text-align:center;border-radius:5px}[data-v-2c25fd02] .carousel__prev,[data-v-2c25fd02] .carousel__next{background-color:var(--primary-color);border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;transition:background-color .3s}[data-v-2c25fd02] .carousel__prev:hover,[data-v-2c25fd02] .carousel__next:hover{background-color:var(--primary-color)}[data-v-2c25fd02] .carousel__pagination{display:flex;justify-content:center;margin-top:10px}[data-v-2c25fd02] .carousel__pagination-button{width:10px;height:10px;background:gray;border-radius:50%;margin:0 5px;transition:background .3s}[data-v-2c25fd02] .carousel__pagination-button--active{background:var(--primary-color)}@media (min-width: 360px) and (max-width: 520px){[data-v-2c25fd02] .carousel__prev,[data-v-2c25fd02] .carousel__next{background-color:var(--primary-color);border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;transition:background-color .3s}}.layout-menu-vertical .layout-root-menuitem.is-open>.submenu-vertical[data-v-918f9cb5]{display:block;left:9rem;background-color:#fff;width:12rem}.layout-menu-horizontal .layout-root-menuitem.is-open>.submenu-horizontal[data-v-918f9cb5]{display:block;top:49px;left:0!important}.layout-container.layout-slim-plus .layout-menu .layout-root-menuitem>ul[data-v-918f9cb5]{left:7rem;position:absolute}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(rs);/*!
|
|
2
3
|
* pinia v2.3.1
|
|
3
4
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
5
|
* @license MIT
|
|
5
|
-
*/var xi;let rs;const vi=t=>rs=t,Tf=Symbol();function wi(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var tr;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(tr||(tr={}));const ns=()=>{};function is(t,e,o,r=ns){t.push(e);const n=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!o&&a.getCurrentScope()&&a.onScopeDispose(n),n}function Ao(t,...e){t.slice().forEach(o=>{o(...e)})}const Pf=t=>t(),as=Symbol(),Ci=Symbol();function _i(t,e){t instanceof Map&&e instanceof Map?e.forEach((o,r)=>t.set(r,o)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const o in e){if(!e.hasOwnProperty(o))continue;const r=e[o],n=t[o];wi(n)&&wi(r)&&t.hasOwnProperty(o)&&!a.isRef(r)&&!a.isReactive(r)?t[o]=_i(n,r):t[o]=r}return t}const $f=Symbol();function Af(t){return!wi(t)||!t.hasOwnProperty($f)}const{assign:Xt}=Object;function Mf(t){return!!(a.isRef(t)&&t.effect)}function Ff(t,e,o,r){const{state:n,actions:i,getters:s}=e,l=o.state.value[t];let c;function d(){l||(o.state.value[t]=n?n():{});const u=a.toRefs(o.state.value[t]);return Xt(u,i,Object.keys(s||{}).reduce((f,h)=>(f[h]=a.markRaw(a.computed(()=>{vi(o);const g=o._s.get(t);return s[h].call(g,g)})),f),{}))}return c=ss(t,d,e,o,r,!0),c}function ss(t,e,o={},r,n,i){let s;const l=Xt({actions:{}},o),c={deep:!0};let d,u,f=[],h=[],g;const m=r.state.value[t];!i&&!m&&(r.state.value[t]={}),a.ref({});let p;function b(k){let S;d=u=!1,typeof k=="function"?(k(r.state.value[t]),S={type:tr.patchFunction,storeId:t,events:g}):(_i(r.state.value[t],k),S={type:tr.patchObject,payload:k,storeId:t,events:g});const N=p=Symbol();a.nextTick().then(()=>{p===N&&(d=!0)}),u=!0,Ao(f,S,r.state.value[t])}const y=i?function(){const{state:S}=o,N=S?S():{};this.$patch(E=>{Xt(E,N)})}:ns;function x(){s.stop(),f=[],h=[],r._s.delete(t)}const C=(k,S="")=>{if(as in k)return k[Ci]=S,k;const N=function(){vi(r);const E=Array.from(arguments),D=[],M=[];function T(W){D.push(W)}function F(W){M.push(W)}Ao(h,{args:E,name:N[Ci],store:w,after:T,onError:F});let $;try{$=k.apply(this&&this.$id===t?this:w,E)}catch(W){throw Ao(M,W),W}return $ instanceof Promise?$.then(W=>(Ao(D,W),W)).catch(W=>(Ao(M,W),Promise.reject(W))):(Ao(D,$),$)};return N[as]=!0,N[Ci]=S,N},B={_p:r,$id:t,$onAction:is.bind(null,h),$patch:b,$reset:y,$subscribe(k,S={}){const N=is(f,k,S.detached,()=>E()),E=s.run(()=>a.watch(()=>r.state.value[t],D=>{(S.flush==="sync"?u:d)&&k({storeId:t,type:tr.direct,events:g},D)},Xt({},c,S)));return N},$dispose:x},w=a.reactive(B);r._s.set(t,w);const v=(r._a&&r._a.runWithContext||Pf)(()=>r._e.run(()=>(s=a.effectScope()).run(()=>e({action:C}))));for(const k in v){const S=v[k];if(a.isRef(S)&&!Mf(S)||a.isReactive(S))i||(m&&Af(S)&&(a.isRef(S)?S.value=m[k]:_i(S,m[k])),r.state.value[t][k]=S);else if(typeof S=="function"){const N=C(S,k);v[k]=N,l.actions[k]=S}}return Xt(w,v),Xt(a.toRaw(w),v),Object.defineProperty(w,"$state",{get:()=>r.state.value[t],set:k=>{b(S=>{Xt(S,k)})}}),r._p.forEach(k=>{Xt(w,s.run(()=>k({store:w,app:r._a,pinia:r,options:l})))}),m&&i&&o.hydrate&&o.hydrate(w.$state,m),d=!0,u=!0,w}/*! #__NO_SIDE_EFFECTS__ */function Si(t,e,o){let r,n;const i=typeof e=="function";typeof t=="string"?(r=t,n=i?o:e):(n=t,r=t.id);function s(l,c){const d=a.hasInjectionContext();return l=l||(d?a.inject(Tf,null):null),l&&vi(l),l=rs,l._s.has(r)||(i?ss(r,e,n,l):Ff(r,n,l)),l._s.get(r)}return s.$id=r,s}const Qe=Si("globalConfigsStore",{state:()=>({globalConfigs:{}}),actions:{setBaseUrl(t){this.globalConfigs.baseUrl=t},setAppId(t){this.globalConfigs.appId=t}},getters:{getBaseUrl:t=>()=>t.globalConfigs.baseUrl,getAppId:t=>()=>t.globalConfigs.appId}});function ls(t,e){return function(){return t.apply(e,arguments)}}const{toString:Vf}=Object.prototype,{getPrototypeOf:Bi}=Object,dn=(t=>e=>{const o=Vf.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),gt=t=>(t=t.toLowerCase(),e=>dn(e)===t),un=t=>e=>typeof e===t,{isArray:Mo}=Array,or=un("undefined");function If(t){return t!==null&&!or(t)&&t.constructor!==null&&!or(t.constructor)&&it(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const cs=gt("ArrayBuffer");function Lf(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&cs(t.buffer),e}const zf=un("string"),it=un("function"),ds=un("number"),fn=t=>t!==null&&typeof t=="object",jf=t=>t===!0||t===!1,hn=t=>{if(dn(t)!=="object")return!1;const e=Bi(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Wf=gt("Date"),Hf=gt("File"),Uf=gt("Blob"),qf=gt("FileList"),Yf=t=>fn(t)&&it(t.pipe),Xf=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||it(t.append)&&((e=dn(t))==="formdata"||e==="object"&&it(t.toString)&&t.toString()==="[object FormData]"))},Kf=gt("URLSearchParams"),[Gf,Qf,Jf,Zf]=["ReadableStream","Request","Response","Headers"].map(gt),eh=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rr(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let r,n;if(typeof t!="object"&&(t=[t]),Mo(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{const i=o?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let l;for(r=0;r<s;r++)l=i[r],e.call(null,t[l],l,t)}}function us(t,e){e=e.toLowerCase();const o=Object.keys(t);let r=o.length,n;for(;r-- >0;)if(n=o[r],e===n.toLowerCase())return n;return null}const po=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fs=t=>!or(t)&&t!==po;function Ei(){const{caseless:t}=fs(this)&&this||{},e={},o=(r,n)=>{const i=t&&us(e,n)||n;hn(e[i])&&hn(r)?e[i]=Ei(e[i],r):hn(r)?e[i]=Ei({},r):Mo(r)?e[i]=r.slice():e[i]=r};for(let r=0,n=arguments.length;r<n;r++)arguments[r]&&rr(arguments[r],o);return e}const th=(t,e,o,{allOwnKeys:r}={})=>(rr(e,(n,i)=>{o&&it(n)?t[i]=ls(n,o):t[i]=n},{allOwnKeys:r}),t),oh=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),rh=(t,e,o,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},nh=(t,e,o,r)=>{let n,i,s;const l={};if(e=e||{},t==null)return e;do{for(n=Object.getOwnPropertyNames(t),i=n.length;i-- >0;)s=n[i],(!r||r(s,t,e))&&!l[s]&&(e[s]=t[s],l[s]=!0);t=o!==!1&&Bi(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},ih=(t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;const r=t.indexOf(e,o);return r!==-1&&r===o},ah=t=>{if(!t)return null;if(Mo(t))return t;let e=t.length;if(!ds(e))return null;const o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},sh=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Bi(Uint8Array)),lh=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const i=n.value;e.call(t,i[0],i[1])}},ch=(t,e)=>{let o;const r=[];for(;(o=t.exec(e))!==null;)r.push(o);return r},dh=gt("HTMLFormElement"),uh=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,r,n){return r.toUpperCase()+n}),hs=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),fh=gt("RegExp"),gs=(t,e)=>{const o=Object.getOwnPropertyDescriptors(t),r={};rr(o,(n,i)=>{let s;(s=e(n,i,t))!==!1&&(r[i]=s||n)}),Object.defineProperties(t,r)},hh=t=>{gs(t,(e,o)=>{if(it(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const r=t[o];if(it(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},gh=(t,e)=>{const o={},r=n=>{n.forEach(i=>{o[i]=!0})};return Mo(t)?r(t):r(String(t).split(e)),o},mh=()=>{},ph=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Ri="abcdefghijklmnopqrstuvwxyz",ms="0123456789",ps={DIGIT:ms,ALPHA:Ri,ALPHA_DIGIT:Ri+Ri.toUpperCase()+ms},bh=(t=16,e=ps.ALPHA_DIGIT)=>{let o="";const{length:r}=e;for(;t--;)o+=e[Math.random()*r|0];return o};function yh(t){return!!(t&&it(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const kh=t=>{const e=new Array(10),o=(r,n)=>{if(fn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[n]=r;const i=Mo(r)?[]:{};return rr(r,(s,l)=>{const c=o(s,n+1);!or(c)&&(i[l]=c)}),e[n]=void 0,i}}return r};return o(t,0)},xh=gt("AsyncFunction"),vh=t=>t&&(fn(t)||it(t))&&it(t.then)&&it(t.catch),bs=((t,e)=>t?setImmediate:e?((o,r)=>(po.addEventListener("message",({source:n,data:i})=>{n===po&&i===o&&r.length&&r.shift()()},!1),n=>{r.push(n),po.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",it(po.postMessage)),wh=typeof queueMicrotask<"u"?queueMicrotask.bind(po):typeof process<"u"&&process.nextTick||bs,P={isArray:Mo,isArrayBuffer:cs,isBuffer:If,isFormData:Xf,isArrayBufferView:Lf,isString:zf,isNumber:ds,isBoolean:jf,isObject:fn,isPlainObject:hn,isReadableStream:Gf,isRequest:Qf,isResponse:Jf,isHeaders:Zf,isUndefined:or,isDate:Wf,isFile:Hf,isBlob:Uf,isRegExp:fh,isFunction:it,isStream:Yf,isURLSearchParams:Kf,isTypedArray:sh,isFileList:qf,forEach:rr,merge:Ei,extend:th,trim:eh,stripBOM:oh,inherits:rh,toFlatObject:nh,kindOf:dn,kindOfTest:gt,endsWith:ih,toArray:ah,forEachEntry:lh,matchAll:ch,isHTMLForm:dh,hasOwnProperty:hs,hasOwnProp:hs,reduceDescriptors:gs,freezeMethods:hh,toObjectSet:gh,toCamelCase:uh,noop:mh,toFiniteNumber:ph,findKey:us,global:po,isContextDefined:fs,ALPHABET:ps,generateString:bh,isSpecCompliantForm:yh,toJSONObject:kh,isAsyncFn:xh,isThenable:vh,setImmediate:bs,asap:wh};function ae(t,e,o,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}P.inherits(ae,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:P.toJSONObject(this.config),code:this.code,status:this.status}}});const ys=ae.prototype,ks={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{ks[t]={value:t}}),Object.defineProperties(ae,ks),Object.defineProperty(ys,"isAxiosError",{value:!0}),ae.from=(t,e,o,r,n,i)=>{const s=Object.create(ys);return P.toFlatObject(t,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),ae.call(s,t.message,e,o,r,n),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const Ch=null;function Oi(t){return P.isPlainObject(t)||P.isArray(t)}function xs(t){return P.endsWith(t,"[]")?t.slice(0,-2):t}function vs(t,e,o){return t?t.concat(e).map(function(n,i){return n=xs(n),!o&&i?"["+n+"]":n}).join(o?".":""):e}function _h(t){return P.isArray(t)&&!t.some(Oi)}const Sh=P.toFlatObject(P,{},null,function(e){return/^is[A-Z]/.test(e)});function gn(t,e,o){if(!P.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,o=P.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,b){return!P.isUndefined(b[p])});const r=o.metaTokens,n=o.visitor||u,i=o.dots,s=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&P.isSpecCompliantForm(e);if(!P.isFunction(n))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(P.isDate(m))return m.toISOString();if(!c&&P.isBlob(m))throw new ae("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(m)||P.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,b){let y=m;if(m&&!b&&typeof m=="object"){if(P.endsWith(p,"{}"))p=r?p:p.slice(0,-2),m=JSON.stringify(m);else if(P.isArray(m)&&_h(m)||(P.isFileList(m)||P.endsWith(p,"[]"))&&(y=P.toArray(m)))return p=xs(p),y.forEach(function(C,B){!(P.isUndefined(C)||C===null)&&e.append(s===!0?vs([p],B,i):s===null?p:p+"[]",d(C))}),!1}return Oi(m)?!0:(e.append(vs(b,p,i),d(m)),!1)}const f=[],h=Object.assign(Sh,{defaultVisitor:u,convertValue:d,isVisitable:Oi});function g(m,p){if(!P.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),P.forEach(m,function(y,x){(!(P.isUndefined(y)||y===null)&&n.call(e,y,P.isString(x)?x.trim():x,p,h))===!0&&g(y,p?p.concat(x):[x])}),f.pop()}}if(!P.isObject(t))throw new TypeError("data must be an object");return g(t),e}function ws(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Di(t,e){this._pairs=[],t&&gn(t,this,e)}const Cs=Di.prototype;Cs.append=function(e,o){this._pairs.push([e,o])},Cs.toString=function(e){const o=e?function(r){return e.call(this,r,ws)}:ws;return this._pairs.map(function(n){return o(n[0])+"="+o(n[1])},"").join("&")};function Bh(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _s(t,e,o){if(!e)return t;const r=o&&o.encode||Bh;P.isFunction(o)&&(o={serialize:o});const n=o&&o.serialize;let i;if(n?i=n(e,o):i=P.isURLSearchParams(e)?e.toString():new Di(e,o).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ss{constructor(){this.handlers=[]}use(e,o,r){return this.handlers.push({fulfilled:e,rejected:o,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){P.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Bs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Eh={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Di,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ni=typeof window<"u"&&typeof document<"u",Ti=typeof navigator=="object"&&navigator||void 0,Rh=Ni&&(!Ti||["ReactNative","NativeScript","NS"].indexOf(Ti.product)<0),Oh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Dh=Ni&&window.location.href||"http://localhost",Ue={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ni,hasStandardBrowserEnv:Rh,hasStandardBrowserWebWorkerEnv:Oh,navigator:Ti,origin:Dh},Symbol.toStringTag,{value:"Module"})),...Eh};function Nh(t,e){return gn(t,new Ue.classes.URLSearchParams,Object.assign({visitor:function(o,r,n,i){return Ue.isNode&&P.isBuffer(o)?(this.append(r,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Th(t){return P.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Ph(t){const e={},o=Object.keys(t);let r;const n=o.length;let i;for(r=0;r<n;r++)i=o[r],e[i]=t[i];return e}function Es(t){function e(o,r,n,i){let s=o[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=i>=o.length;return s=!s&&P.isArray(n)?n.length:s,c?(P.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!l):((!n[s]||!P.isObject(n[s]))&&(n[s]=[]),e(o,r,n[s],i)&&P.isArray(n[s])&&(n[s]=Ph(n[s])),!l)}if(P.isFormData(t)&&P.isFunction(t.entries)){const o={};return P.forEachEntry(t,(r,n)=>{e(Th(r),n,o,0)}),o}return null}function $h(t,e,o){if(P.isString(t))try{return(e||JSON.parse)(t),P.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const nr={transitional:Bs,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const r=o.getContentType()||"",n=r.indexOf("application/json")>-1,i=P.isObject(e);if(i&&P.isHTMLForm(e)&&(e=new FormData(e)),P.isFormData(e))return n?JSON.stringify(Es(e)):e;if(P.isArrayBuffer(e)||P.isBuffer(e)||P.isStream(e)||P.isFile(e)||P.isBlob(e)||P.isReadableStream(e))return e;if(P.isArrayBufferView(e))return e.buffer;if(P.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Nh(e,this.formSerializer).toString();if((l=P.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return gn(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||n?(o.setContentType("application/json",!1),$h(e)):e}],transformResponse:[function(e){const o=this.transitional||nr.transitional,r=o&&o.forcedJSONParsing,n=this.responseType==="json";if(P.isResponse(e)||P.isReadableStream(e))return e;if(e&&P.isString(e)&&(r&&!this.responseType||n)){const s=!(o&&o.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(l){if(s)throw l.name==="SyntaxError"?ae.from(l,ae.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch"],t=>{nr.headers[t]={}});const Ah=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mh=t=>{const e={};let o,r,n;return t&&t.split(`
|
|
6
|
-
`).forEach(function(
|
|
7
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){const r=new this(e);return o.forEach(n=>r.set(n)),r}static accessor(e){const r=(this[Rs]=this[Rs]={accessors:{}}).accessors,n=this.prototype;function i(s){const l=ir(s);r[l]||(Lh(n,s),r[l]=!0)}return P.isArray(e)?e.forEach(i):i(e),this}}Je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),P.reduceDescriptors(Je.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[o]=r}}}),P.freezeMethods(Je);function $i(t,e){const o=this||nr,r=e||o,n=Je.from(r.headers);let i=r.data;return P.forEach(t,function(l){i=l.call(o,i,n.normalize(),e?e.status:void 0)}),n.normalize(),i}function Os(t){return!!(t&&t.__CANCEL__)}function Fo(t,e,o){ae.call(this,t??"canceled",ae.ERR_CANCELED,e,o),this.name="CanceledError"}P.inherits(Fo,ae,{__CANCEL__:!0});function Ds(t,e,o){const r=o.config.validateStatus;!o.status||!r||r(o.status)?t(o):e(new ae("Request failed with status code "+o.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function zh(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function jh(t,e){t=t||10;const o=new Array(t),r=new Array(t);let n=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const d=Date.now(),u=r[i];s||(s=d),o[n]=c,r[n]=d;let f=i,h=0;for(;f!==n;)h+=o[f++],f=f%t;if(n=(n+1)%t,n===i&&(i=(i+1)%t),d-s<e)return;const g=u&&d-u;return g?Math.round(h*1e3/g):void 0}}function Wh(t,e){let o=0,r=1e3/e,n,i;const s=(d,u=Date.now())=>{o=u,n=null,i&&(clearTimeout(i),i=null),t.apply(null,d)};return[(...d)=>{const u=Date.now(),f=u-o;f>=r?s(d,u):(n=d,i||(i=setTimeout(()=>{i=null,s(n)},r-f)))},()=>n&&s(n)]}const pn=(t,e,o=3)=>{let r=0;const n=jh(50,250);return Wh(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-r,d=n(c),u=s<=l;r=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-s)/d:void 0,event:i,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(f)},o)},Ns=(t,e)=>{const o=t!=null;return[r=>e[0]({lengthComputable:o,total:t,loaded:r}),e[1]]},Ts=t=>(...e)=>P.asap(()=>t(...e)),Hh=Ue.hasStandardBrowserEnv?((t,e)=>o=>(o=new URL(o,Ue.origin),t.protocol===o.protocol&&t.host===o.host&&(e||t.port===o.port)))(new URL(Ue.origin),Ue.navigator&&/(msie|trident)/i.test(Ue.navigator.userAgent)):()=>!0,Uh=Ue.hasStandardBrowserEnv?{write(t,e,o,r,n,i){const s=[t+"="+encodeURIComponent(e)];P.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),P.isString(r)&&s.push("path="+r),P.isString(n)&&s.push("domain="+n),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function qh(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Yh(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Ps(t,e){return t&&!qh(e)?Yh(t,e):e}const $s=t=>t instanceof Je?{...t}:t;function bo(t,e){e=e||{};const o={};function r(d,u,f,h){return P.isPlainObject(d)&&P.isPlainObject(u)?P.merge.call({caseless:h},d,u):P.isPlainObject(u)?P.merge({},u):P.isArray(u)?u.slice():u}function n(d,u,f,h){if(P.isUndefined(u)){if(!P.isUndefined(d))return r(void 0,d,f,h)}else return r(d,u,f,h)}function i(d,u){if(!P.isUndefined(u))return r(void 0,u)}function s(d,u){if(P.isUndefined(u)){if(!P.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function l(d,u,f){if(f in e)return r(d,u);if(f in t)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(d,u,f)=>n($s(d),$s(u),f,!0)};return P.forEach(Object.keys(Object.assign({},t,e)),function(u){const f=c[u]||n,h=f(t[u],e[u],u);P.isUndefined(h)&&f!==l||(o[u]=h)}),o}const As=t=>{const e=bo({},t);let{data:o,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:i,headers:s,auth:l}=e;e.headers=s=Je.from(s),e.url=_s(Ps(e.baseURL,e.url),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(P.isFormData(o)){if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[d,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",...u].join("; "))}}if(Ue.hasStandardBrowserEnv&&(r&&P.isFunction(r)&&(r=r(e)),r||r!==!1&&Hh(e.url))){const d=n&&i&&Uh.read(i);d&&s.set(n,d)}return e},Xh=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(o,r){const n=As(t);let i=n.data;const s=Je.from(n.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=n,u,f,h,g,m;function p(){g&&g(),m&&m(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(n.method.toUpperCase(),n.url,!0),b.timeout=n.timeout;function y(){if(!b)return;const C=Je.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:C,config:t,request:b};Ds(function(v){o(v),p()},function(v){r(v),p()},w),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(y)},b.onabort=function(){b&&(r(new ae("Request aborted",ae.ECONNABORTED,t,b)),b=null)},b.onerror=function(){r(new ae("Network Error",ae.ERR_NETWORK,t,b)),b=null},b.ontimeout=function(){let B=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const w=n.transitional||Bs;n.timeoutErrorMessage&&(B=n.timeoutErrorMessage),r(new ae(B,w.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,t,b)),b=null},i===void 0&&s.setContentType(null),"setRequestHeader"in b&&P.forEach(s.toJSON(),function(B,w){b.setRequestHeader(w,B)}),P.isUndefined(n.withCredentials)||(b.withCredentials=!!n.withCredentials),l&&l!=="json"&&(b.responseType=n.responseType),d&&([h,m]=pn(d,!0),b.addEventListener("progress",h)),c&&b.upload&&([f,g]=pn(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",g)),(n.cancelToken||n.signal)&&(u=C=>{b&&(r(!C||C.type?new Fo(null,t,b):C),b.abort(),b=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const x=zh(n.url);if(x&&Ue.protocols.indexOf(x)===-1){r(new ae("Unsupported protocol "+x+":",ae.ERR_BAD_REQUEST,t));return}b.send(i||null)})},Kh=(t,e)=>{const{length:o}=t=t?t.filter(Boolean):[];if(e||o){let r=new AbortController,n;const i=function(d){if(!n){n=!0,l();const u=d instanceof Error?d:this.reason;r.abort(u instanceof ae?u:new Fo(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{s=null,i(new ae(`timeout ${e} of ms exceeded`,ae.ETIMEDOUT))},e);const l=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),t=null)};t.forEach(d=>d.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>P.asap(l),c}},Gh=function*(t,e){let o=t.byteLength;if(o<e){yield t;return}let r=0,n;for(;r<o;)n=r+e,yield t.slice(r,n),r=n},Qh=async function*(t,e){for await(const o of Jh(t))yield*Gh(o,e)},Jh=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:o,value:r}=await e.read();if(o)break;yield r}}finally{await e.cancel()}},Ms=(t,e,o,r)=>{const n=Qh(t,e);let i=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await n.next();if(d){l(),c.close();return}let f=u.byteLength;if(o){let h=i+=f;o(h)}c.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(c){return l(c),n.return()}},{highWaterMark:2})},bn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fs=bn&&typeof ReadableStream=="function",Zh=bn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Vs=(t,...e)=>{try{return!!t(...e)}catch{return!1}},eg=Fs&&Vs(()=>{let t=!1;const e=new Request(Ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Is=64*1024,Ai=Fs&&Vs(()=>P.isReadableStream(new Response("").body)),yn={stream:Ai&&(t=>t.body)};bn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!yn[e]&&(yn[e]=P.isFunction(t[e])?o=>o[e]():(o,r)=>{throw new ae(`Response type '${e}' is not supported`,ae.ERR_NOT_SUPPORT,r)})})})(new Response);const tg=async t=>{if(t==null)return 0;if(P.isBlob(t))return t.size;if(P.isSpecCompliantForm(t))return(await new Request(Ue.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(P.isArrayBufferView(t)||P.isArrayBuffer(t))return t.byteLength;if(P.isURLSearchParams(t)&&(t=t+""),P.isString(t))return(await Zh(t)).byteLength},og=async(t,e)=>{const o=P.toFiniteNumber(t.getContentLength());return o??tg(e)},Mi={http:Ch,xhr:Xh,fetch:bn&&(async t=>{let{url:e,method:o,data:r,signal:n,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:u,withCredentials:f="same-origin",fetchOptions:h}=As(t);d=d?(d+"").toLowerCase():"text";let g=Kh([n,i&&i.toAbortSignal()],s),m;const p=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let b;try{if(c&&eg&&o!=="get"&&o!=="head"&&(b=await og(u,r))!==0){let w=new Request(e,{method:"POST",body:r,duplex:"half"}),_;if(P.isFormData(r)&&(_=w.headers.get("content-type"))&&u.setContentType(_),w.body){const[v,k]=Ns(b,pn(Ts(c)));r=Ms(w.body,Is,v,k)}}P.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;m=new Request(e,{...h,signal:g,method:o.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let x=await fetch(m);const C=Ai&&(d==="stream"||d==="response");if(Ai&&(l||C&&p)){const w={};["status","statusText","headers"].forEach(S=>{w[S]=x[S]});const _=P.toFiniteNumber(x.headers.get("content-length")),[v,k]=l&&Ns(_,pn(Ts(l),!0))||[];x=new Response(Ms(x.body,Is,v,()=>{k&&k(),p&&p()}),w)}d=d||"text";let B=await yn[P.findKey(yn,d)||"text"](x,t);return!C&&p&&p(),await new Promise((w,_)=>{Ds(w,_,{data:B,headers:Je.from(x.headers),status:x.status,statusText:x.statusText,config:t,request:m})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,t,m),{cause:y.cause||y}):ae.from(y,y&&y.code,t,m)}})};P.forEach(Mi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ls=t=>`- ${t}`,rg=t=>P.isFunction(t)||t===null||t===!1,zs={getAdapter:t=>{t=P.isArray(t)?t:[t];const{length:e}=t;let o,r;const n={};for(let i=0;i<e;i++){o=t[i];let s;if(r=o,!rg(o)&&(r=Mi[(s=String(o)).toLowerCase()],r===void 0))throw new ae(`Unknown adapter '${s}'`);if(r)break;n[s||"#"+i]=r}if(!r){const i=Object.entries(n).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since :
|
|
8
|
-
`+i.map(
|
|
9
|
-
`):" "+
|
|
10
|
-
`+i):r.stack=i}catch{}}throw r}}_request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=bo(this.defaults,o);const{transitional:r,paramsSerializer:n,headers:i}=o;r!==void 0&&xn.assertOptions(r,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean)},!1),n!=null&&(P.isFunction(n)?o.paramsSerializer={serialize:n}:xn.assertOptions(n,{encode:_t.function,serialize:_t.function},!0)),xn.assertOptions(o,{baseUrl:_t.spelling("baseURL"),withXsrfToken:_t.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=i&&P.merge(i.common,i[o.method]);i&&P.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),o.headers=Je.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(o)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let u,f=0,h;if(!c){const m=[js.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,d),h=m.length,u=Promise.resolve(o);f<h;)u=u.then(m[f++],m[f++]);return u}h=l.length;let g=o;for(f=0;f<h;){const m=l[f++],p=l[f++];try{g=m(g)}catch(b){p.call(this,b);break}}try{u=js.call(this,g)}catch(m){return Promise.reject(m)}for(f=0,h=d.length;f<h;)u=u.then(d[f++],d[f++]);return u}getUri(e){e=bo(this.defaults,e);const o=Ps(e.baseURL,e.url);return _s(o,e.params,e.paramsSerializer)}}P.forEach(["delete","get","head","options"],function(e){yo.prototype[e]=function(o,r){return this.request(bo(r||{},{method:e,url:o,data:(r||{}).data}))}}),P.forEach(["post","put","patch"],function(e){function o(r){return function(i,s,l){return this.request(bo(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}yo.prototype[e]=o(),yo.prototype[e+"Form"]=o(!0)});class Vi{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const r=this;this.promise.then(n=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](n);r._listeners=null}),this.promise.then=n=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(n);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,l){r.reason||(r.reason=new Fo(i,s,l),o(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const e=new AbortController,o=r=>{e.abort(r)};return this.subscribe(o),e.signal.unsubscribe=()=>this.unsubscribe(o),e.signal}static source(){let e;return{token:new Vi(function(n){e=n}),cancel:e}}}function ig(t){return function(o){return t.apply(null,o)}}function ag(t){return P.isObject(t)&&t.isAxiosError===!0}const Ii={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ii).forEach(([t,e])=>{Ii[e]=t});function Us(t){const e=new yo(t),o=ls(yo.prototype.request,e);return P.extend(o,yo.prototype,e,{allOwnKeys:!0}),P.extend(o,e,null,{allOwnKeys:!0}),o.create=function(n){return Us(bo(t,n))},o}const $e=Us(nr);$e.Axios=yo,$e.CanceledError=Fo,$e.CancelToken=Vi,$e.isCancel=Os,$e.VERSION=Ws,$e.toFormData=gn,$e.AxiosError=ae,$e.Cancel=$e.CanceledError,$e.all=function(e){return Promise.all(e)},$e.spread=ig,$e.isAxiosError=ag,$e.mergeConfig=bo,$e.AxiosHeaders=Je,$e.formToJSON=t=>Es(P.isHTMLForm(t)?new FormData(t):t),$e.getAdapter=zs.getAdapter,$e.HttpStatusCode=Ii,$e.default=$e;const sg=Si("loading",{state:()=>({loading:!1}),actions:{setLoading(t){this.loading=t}}});function lg(){const t=sg();return{onResponse(e){return t.setLoading(!1),["post","put","delete"].includes(e.config.method)&&console.log("🌐 Operation completed successfully"),e},onError(e){var r,n,i,s,l;t.setLoading(!1);const o=((n=(r=e.response)==null?void 0:r.data)==null?void 0:n.message)||e.message||"Unexpected error occurred";return console.error("🌐 API Error",{url:(i=e.config)==null?void 0:i.url,method:(s=e.config)==null?void 0:s.method,status:(l=e.response)==null?void 0:l.status,message:o}),Promise.reject(e)}}}function qs(t={}){return{"Content-Type":"application/json",...t}}function ar(){Qe();const t=lg(),e=$e.create({headers:qs()});e.interceptors.response.use(c=>t.onResponse(c),c=>(t.onError(c),Promise.reject(c)));const o=()=>"",r=(c={})=>qs(c),n=(c={})=>({...c,requestSource:"web"}),i=c=>{const{data:d}=c;return console.log("API Response:",d),d!=null&&d.response||console.warn("Unexpected response format:",d),d},s=c=>{if(c.response){const{status:d,data:u}=c.response;return{success:!1,status:d,message:(u==null?void 0:u.message)||"Something went wrong",data:u||null}}return Promise.reject(c)},l=async({url:c,method:d="get",payload:u=null,headers:f={}})=>{const h=c.startsWith("http")?c:o()+c,g=r(f),m=u?n(u):null;console.log(`Making ${d.toUpperCase()} request to ${h}`),console.log("Payload:",m),console.log("Headers:",g);try{const p={url:h,method:d,headers:g,data:m},b=await e.request(p);return i(b)}catch(p){return s(p)}};return{get:(c,d={})=>l({url:c,method:"get",headers:d}),post:(c,d,u={})=>l({url:c,method:"post",payload:d,headers:u}),put:(c,d,u={})=>l({url:c,method:"put",payload:d,headers:u}),del:(c,d={},u={})=>l({url:c,method:"delete",payload:d,headers:u})}}function mt(){const t=Qe(),{get:e,post:o,put:r,del:n}=ar(),i=()=>t.getAppId();return{getEntityRecords:async m=>{const p=i();return await e(`/api/app/v1/${p}/entity/${m}/record`)},searchEntityRecords:async(m,p)=>{const b=i();return await o(`/api/app/v1/${b}/entity/${m}/record/search`,p)},getRelatedEntityRecord:async(m,p)=>{const b=i();return await e(`/api/app/v1/${b}/entity/${m}/link/record/${p}?fetchRelatedEntities=true`)},saveRelatedEntityRecord:async(m,p,b)=>{const y=i();return await o(`/api/app/v1/${y}/entity/${m}/link/record/${p}`,b)},getRecord:async(m,p)=>{const b=i();return await e(`/api/app/v1/${b}/entity/${m}/record/${p}?fetchRelatedEntities=false`)},addRecord:async(m,p)=>{const b=i();return await o(`/api/app/v1/${b}/entity/${m}/record`,p)},updateRecord:async(m,p,b)=>{const y=i();return await r(`/api/app/v1/${y}/entity/${m}/record/${p}`,b)},deleteRecord:async(m,p)=>{const b=i();return await n(`/api/app/v1/${b}/entity/${m}/record/${p}`)}}}function cg(t=""){const e=new mt,o={gt:"GREATER_THAN",dateAfter:"GREATER_THAN",equals:"EQUAL",dateIs:"EQUAL",notEquals:"NOT_EQUAL",dateIsNot:"NOT_EQUAL",lt:"LESS_THAN",dateBefore:"LESS_THAN",lte:"LESS_THAN_EQUAL",gte:"GREATER_THAN_EQUAL",between:"BETWEEN",contains:"CONTAINS",startsWith:"STARTS_WITH",notContains:"NOT_CONTAINS",endsWith:"ENDS_WITH"};let r=a.ref({}),n=a.ref([]),i=a.ref([]),s=a.ref([]);const l=a.ref(""),c=a.ref(1),d=a.ref(25),u=a.ref(0),f=a.ref(0),h=a.ref(0),g=a.ref(!1),m=a.ref([]),p=a.ref(""),b=a.ref({}),y=async(E,D=!0)=>{g.value=!0;try{const M=await e.getEntityRecords(E);M&&M.response&&(r.value=M.response,n.value=M.response.result,s.value=M.response.entity.entityDefinition.columns,i.value=C(M.response.entity.entityDefinition.columns),f.value=M.response.totalRecords,N())}catch(M){console.error("Error fetching entity:",M.errorMessage)}finally{g.value=!1}},x=async(E=!0)=>{g.value=!0;try{const D={sortBy:[l.value],sortDirection:c.value===1?"ASC":"DESC",pageSize:d.value,currentPage:u.value,columnList:null,filter:m.value,fullTextSearch:p.value};Object.keys(D.filter).length===0&&(D.filter=[]);const M=await e.searchEntityRecords(t,D);M&&M.response&&(g.value=!1,r.value=M.response,n.value=M.response.result,f.value=M.response.totalRecords,h.value=u.value*d.value)}catch(D){console.error("Error fetching entity:",D.errorMessage)}finally{g.value=!1}},C=E=>E.map(D=>({field:D.name,name:D.displayName?D.displayName:D.name,filterable:D.filterable,datatype:D.type,sortable:!0,displayFormatKey:D.displayFormatKey,displayFormat:D.displayFormat})),B=E=>{l.value=E.sortField,c.value=E.sortOrder,h.value=0,x()},w=E=>{d.value=E.rows,u.value=E.page,h.value=E.first,x()},_=()=>{x()},v=()=>{x()},k=E=>{switch(E.toLowerCase()){case"integer":case"int":case"numeric":return"numeric";case"date":return"date";case"bool":case"boolean":return"boolean";default:return"text"}},S=E=>{const D=i.value.find(M=>M.field===E);return D?D.datatype:null},N=()=>{for(let E=0;E<s.value.length;E++){const D=s.value[E];if(D.primaryKey&&D.primaryKey==!0){b.value=D,l.value=D.name;break}}};return{items:n,headers:i,first:h,totalRecords:f,pageSize:d,loading:g,sortBy:l,sortDirection:c,operatorMap:o,filterToSend:m,fullTextSearch:p,listingResponse:r,primarayKeyColumn:b,onFullTextSearch:v,getDatatypeByField:S,getColumnDatatype:k,onSort:B,onPage:w,onFilter:_,fetchEntityFilterData:x,fetchEntityByName:y}}const Te=(t,e)=>{const o=t.__vccOpts||t;for(const[r,n]of e)o[r]=n;return o},dg={key:0,class:"field flex flex-col mb-3"},ug=["for"],fg={key:0},hg={key:0,class:"font-bold"},gg={key:1,class:"font-bold text-color-hint"},mg={key:1,class:"flex items-center mb-3"},pg={class:"ml-2"},bg={key:0},vn=Te({__name:"EntityForm",props:a.mergeModels({column:Object,errors:Array},{modelValue:{},modelModifiers:{}}),emits:a.mergeModels(["input"],["update:modelValue"]),setup(t,{emit:e}){const o=a.useModel(t,"modelValue"),r=e,n=i=>{r("input",i.name)};if(t.column&&!t.column.inputComponent){let i="";switch(t.column.type.toLowerCase()){case"text":i="INPUT_TEXT";break;case"int":i="INPUT_NUMBER";break;case"float":i="INPUT_FLOAT";break;case"boolean":i="INPUT_BOOLEAN";break;case"uuid":i="INPUT_UUID";break;case"date":i="INPUT_DATE";break;default:i="INPUT_STRING"}t.column.inputComponent=i}return(i,s)=>{var f,h,g,m,p;const l=a.resolveComponent("DatePicker"),c=a.resolveComponent("InputNumber"),d=a.resolveComponent("InputText"),u=a.resolveComponent("Checkbox");return a.openBlock(),a.createElementBlock(a.Fragment,null,[t.column.inputComponent.toLowerCase()!="input_boolean"?(a.openBlock(),a.createElementBlock("div",dg,[a.createElementVNode("label",{class:"mb-1",for:t.column.name},[a.createTextVNode(a.toDisplayString(t.column.displayName||t.column.name)+" ",1),t.column.required?(a.openBlock(),a.createElementBlock("span",fg,"*")):a.createCommentVNode("",!0)],8,ug),t.column.inputComponent.toLowerCase()=="input_date"?(a.openBlock(),a.createBlock(l,{key:0,modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=b=>o.value=b),id:t.column.name,name:t.column.name,onDateSelect:s[1]||(s[1]=b=>n(t.column)),invalid:((f=t.errors)==null?void 0:f.length)>0},null,8,["modelValue","id","name","invalid"])):t.column.inputComponent.toLowerCase()=="input_number"?(a.openBlock(),a.createBlock(c,{key:1,modelValue:o.value,"onUpdate:modelValue":s[2]||(s[2]=b=>o.value=b),id:t.column.name,name:t.column.name,allowEmpty:!0,format:!1,onInput:s[3]||(s[3]=b=>n(t.column)),invalid:((h=t.errors)==null?void 0:h.length)>0},null,8,["modelValue","id","name","invalid"])):t.column.type.toLowerCase()=="input_float"?(a.openBlock(),a.createBlock(c,{key:2,type:"decimal",minFractionDigits:1,id:t.column.name,allowEmpty:!0,format:!1,name:t.column.name,onInput:s[4]||(s[4]=b=>n(t.column)),invalid:((g=t.errors)==null?void 0:g.length)>0},null,8,["id","name","invalid"])):(a.openBlock(),a.createBlock(d,{key:3,modelValue:o.value,"onUpdate:modelValue":s[5]||(s[5]=b=>o.value=b),id:t.column.name,name:t.column.name,onInput:s[6]||(s[6]=b=>n(t.column)),invalid:((m=t.errors)==null?void 0:m.length)>0},null,8,["modelValue","id","name","invalid"])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.errors,(b,y)=>(a.openBlock(),a.createElementBlock("div",{key:y,class:"text-red-500 mt-1 ml-2"},[b.includes("hint:")?(a.openBlock(),a.createElementBlock("small",gg,a.toDisplayString(b.split(":")[1]),1)):(a.openBlock(),a.createElementBlock("small",hg,a.toDisplayString(b),1))]))),128))])):a.createCommentVNode("",!0),t.column.inputComponent.toLowerCase()=="input_boolean"?(a.openBlock(),a.createElementBlock("div",mg,[a.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":s[7]||(s[7]=b=>o.value=b),invalid:((p=t.errors)==null?void 0:p.length)>0,onInput:s[8]||(s[8]=b=>n(t.column.name)),binary:""},null,8,["modelValue","invalid"]),a.createElementVNode("label",pg,[a.createTextVNode(a.toDisplayString(t.column.displayName||t.column.name)+" ",1),t.column.required?(a.openBlock(),a.createElementBlock("span",bg,"*")):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-8820d348"]]);/**
|
|
6
|
+
*/let ns;const vi=t=>ns=t,Pf=Symbol();function wi(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var or;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(or||(or={}));const is=()=>{};function as(t,e,o,r=is){t.push(e);const n=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!o&&s.getCurrentScope()&&s.onScopeDispose(n),n}function Mo(t,...e){t.slice().forEach(o=>{o(...e)})}const Af=t=>t(),ss=Symbol(),Ci=Symbol();function _i(t,e){t instanceof Map&&e instanceof Map?e.forEach((o,r)=>t.set(r,o)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const o in e){if(!e.hasOwnProperty(o))continue;const r=e[o],n=t[o];wi(n)&&wi(r)&&t.hasOwnProperty(o)&&!s.isRef(r)&&!s.isReactive(r)?t[o]=_i(n,r):t[o]=r}return t}const $f=Symbol();function Mf(t){return!wi(t)||!t.hasOwnProperty($f)}const{assign:Xt}=Object;function Ff(t){return!!(s.isRef(t)&&t.effect)}function Vf(t,e,o,r){const{state:n,actions:i,getters:a}=e,l=o.state.value[t];let c;function d(){l||(o.state.value[t]=n?n():{});const u=s.toRefs(o.state.value[t]);return Xt(u,i,Object.keys(a||{}).reduce((f,h)=>(f[h]=s.markRaw(s.computed(()=>{vi(o);const g=o._s.get(t);return a[h].call(g,g)})),f),{}))}return c=ls(t,d,e,o,r,!0),c}function ls(t,e,o={},r,n,i){let a;const l=Xt({actions:{}},o),c={deep:!0};let d,u,f=[],h=[],g;const m=r.state.value[t];!i&&!m&&(r.state.value[t]={}),s.ref({});let p;function b(k){let S;d=u=!1,typeof k=="function"?(k(r.state.value[t]),S={type:or.patchFunction,storeId:t,events:g}):(_i(r.state.value[t],k),S={type:or.patchObject,payload:k,storeId:t,events:g});const N=p=Symbol();s.nextTick().then(()=>{p===N&&(d=!0)}),u=!0,Mo(f,S,r.state.value[t])}const y=i?function(){const{state:S}=o,N=S?S():{};this.$patch(E=>{Xt(E,N)})}:is;function x(){a.stop(),f=[],h=[],r._s.delete(t)}const C=(k,S="")=>{if(ss in k)return k[Ci]=S,k;const N=function(){vi(r);const E=Array.from(arguments),D=[],M=[];function T(W){D.push(W)}function F(W){M.push(W)}Mo(h,{args:E,name:N[Ci],store:w,after:T,onError:F});let A;try{A=k.apply(this&&this.$id===t?this:w,E)}catch(W){throw Mo(M,W),W}return A instanceof Promise?A.then(W=>(Mo(D,W),W)).catch(W=>(Mo(M,W),Promise.reject(W))):(Mo(D,A),A)};return N[ss]=!0,N[Ci]=S,N},B={_p:r,$id:t,$onAction:as.bind(null,h),$patch:b,$reset:y,$subscribe(k,S={}){const N=as(f,k,S.detached,()=>E()),E=a.run(()=>s.watch(()=>r.state.value[t],D=>{(S.flush==="sync"?u:d)&&k({storeId:t,type:or.direct,events:g},D)},Xt({},c,S)));return N},$dispose:x},w=s.reactive(B);r._s.set(t,w);const v=(r._a&&r._a.runWithContext||Af)(()=>r._e.run(()=>(a=s.effectScope()).run(()=>e({action:C}))));for(const k in v){const S=v[k];if(s.isRef(S)&&!Ff(S)||s.isReactive(S))i||(m&&Mf(S)&&(s.isRef(S)?S.value=m[k]:_i(S,m[k])),r.state.value[t][k]=S);else if(typeof S=="function"){const N=C(S,k);v[k]=N,l.actions[k]=S}}return Xt(w,v),Xt(s.toRaw(w),v),Object.defineProperty(w,"$state",{get:()=>r.state.value[t],set:k=>{b(S=>{Xt(S,k)})}}),r._p.forEach(k=>{Xt(w,a.run(()=>k({store:w,app:r._a,pinia:r,options:l})))}),m&&i&&o.hydrate&&o.hydrate(w.$state,m),d=!0,u=!0,w}/*! #__NO_SIDE_EFFECTS__ */function Si(t,e,o){let r,n;const i=typeof e=="function";typeof t=="string"?(r=t,n=i?o:e):(n=t,r=t.id);function a(l,c){const d=s.hasInjectionContext();return l=l||(d?s.inject(Pf,null):null),l&&vi(l),l=ns,l._s.has(r)||(i?ls(r,e,n,l):Vf(r,n,l)),l._s.get(r)}return a.$id=r,a}const Ue=Si("globalConfigsStore",{state:()=>({globalConfigs:{}}),actions:{setBaseUrl(t){this.globalConfigs.baseUrl=t},setAppId(t){this.globalConfigs.appId=t}},getters:{getBaseUrl:t=>()=>t.globalConfigs.baseUrl,getAppId:t=>()=>t.globalConfigs.appId}});function cs(t,e){return function(){return t.apply(e,arguments)}}const{toString:Lf}=Object.prototype,{getPrototypeOf:Bi}=Object,dn=(t=>e=>{const o=Lf.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),gt=t=>(t=t.toLowerCase(),e=>dn(e)===t),un=t=>e=>typeof e===t,{isArray:Fo}=Array,rr=un("undefined");function If(t){return t!==null&&!rr(t)&&t.constructor!==null&&!rr(t.constructor)&&it(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ds=gt("ArrayBuffer");function zf(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ds(t.buffer),e}const jf=un("string"),it=un("function"),us=un("number"),fn=t=>t!==null&&typeof t=="object",Wf=t=>t===!0||t===!1,hn=t=>{if(dn(t)!=="object")return!1;const e=Bi(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Hf=gt("Date"),Uf=gt("File"),qf=gt("Blob"),Yf=gt("FileList"),Xf=t=>fn(t)&&it(t.pipe),Kf=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||it(t.append)&&((e=dn(t))==="formdata"||e==="object"&&it(t.toString)&&t.toString()==="[object FormData]"))},Gf=gt("URLSearchParams"),[Qf,Jf,Zf,eh]=["ReadableStream","Request","Response","Headers"].map(gt),th=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nr(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let r,n;if(typeof t!="object"&&(t=[t]),Fo(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{const i=o?Object.getOwnPropertyNames(t):Object.keys(t),a=i.length;let l;for(r=0;r<a;r++)l=i[r],e.call(null,t[l],l,t)}}function fs(t,e){e=e.toLowerCase();const o=Object.keys(t);let r=o.length,n;for(;r-- >0;)if(n=o[r],e===n.toLowerCase())return n;return null}const po=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hs=t=>!rr(t)&&t!==po;function Ei(){const{caseless:t}=hs(this)&&this||{},e={},o=(r,n)=>{const i=t&&fs(e,n)||n;hn(e[i])&&hn(r)?e[i]=Ei(e[i],r):hn(r)?e[i]=Ei({},r):Fo(r)?e[i]=r.slice():e[i]=r};for(let r=0,n=arguments.length;r<n;r++)arguments[r]&&nr(arguments[r],o);return e}const oh=(t,e,o,{allOwnKeys:r}={})=>(nr(e,(n,i)=>{o&&it(n)?t[i]=cs(n,o):t[i]=n},{allOwnKeys:r}),t),rh=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),nh=(t,e,o,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},ih=(t,e,o,r)=>{let n,i,a;const l={};if(e=e||{},t==null)return e;do{for(n=Object.getOwnPropertyNames(t),i=n.length;i-- >0;)a=n[i],(!r||r(a,t,e))&&!l[a]&&(e[a]=t[a],l[a]=!0);t=o!==!1&&Bi(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},ah=(t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;const r=t.indexOf(e,o);return r!==-1&&r===o},sh=t=>{if(!t)return null;if(Fo(t))return t;let e=t.length;if(!us(e))return null;const o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},lh=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Bi(Uint8Array)),ch=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const i=n.value;e.call(t,i[0],i[1])}},dh=(t,e)=>{let o;const r=[];for(;(o=t.exec(e))!==null;)r.push(o);return r},uh=gt("HTMLFormElement"),fh=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,r,n){return r.toUpperCase()+n}),gs=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),hh=gt("RegExp"),ms=(t,e)=>{const o=Object.getOwnPropertyDescriptors(t),r={};nr(o,(n,i)=>{let a;(a=e(n,i,t))!==!1&&(r[i]=a||n)}),Object.defineProperties(t,r)},gh=t=>{ms(t,(e,o)=>{if(it(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const r=t[o];if(it(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},mh=(t,e)=>{const o={},r=n=>{n.forEach(i=>{o[i]=!0})};return Fo(t)?r(t):r(String(t).split(e)),o},ph=()=>{},bh=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Ri="abcdefghijklmnopqrstuvwxyz",ps="0123456789",bs={DIGIT:ps,ALPHA:Ri,ALPHA_DIGIT:Ri+Ri.toUpperCase()+ps},yh=(t=16,e=bs.ALPHA_DIGIT)=>{let o="";const{length:r}=e;for(;t--;)o+=e[Math.random()*r|0];return o};function kh(t){return!!(t&&it(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const xh=t=>{const e=new Array(10),o=(r,n)=>{if(fn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[n]=r;const i=Fo(r)?[]:{};return nr(r,(a,l)=>{const c=o(a,n+1);!rr(c)&&(i[l]=c)}),e[n]=void 0,i}}return r};return o(t,0)},vh=gt("AsyncFunction"),wh=t=>t&&(fn(t)||it(t))&&it(t.then)&&it(t.catch),ys=((t,e)=>t?setImmediate:e?((o,r)=>(po.addEventListener("message",({source:n,data:i})=>{n===po&&i===o&&r.length&&r.shift()()},!1),n=>{r.push(n),po.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",it(po.postMessage)),Ch=typeof queueMicrotask<"u"?queueMicrotask.bind(po):typeof process<"u"&&process.nextTick||ys,P={isArray:Fo,isArrayBuffer:ds,isBuffer:If,isFormData:Kf,isArrayBufferView:zf,isString:jf,isNumber:us,isBoolean:Wf,isObject:fn,isPlainObject:hn,isReadableStream:Qf,isRequest:Jf,isResponse:Zf,isHeaders:eh,isUndefined:rr,isDate:Hf,isFile:Uf,isBlob:qf,isRegExp:hh,isFunction:it,isStream:Xf,isURLSearchParams:Gf,isTypedArray:lh,isFileList:Yf,forEach:nr,merge:Ei,extend:oh,trim:th,stripBOM:rh,inherits:nh,toFlatObject:ih,kindOf:dn,kindOfTest:gt,endsWith:ah,toArray:sh,forEachEntry:ch,matchAll:dh,isHTMLForm:uh,hasOwnProperty:gs,hasOwnProp:gs,reduceDescriptors:ms,freezeMethods:gh,toObjectSet:mh,toCamelCase:fh,noop:ph,toFiniteNumber:bh,findKey:fs,global:po,isContextDefined:hs,ALPHABET:bs,generateString:yh,isSpecCompliantForm:kh,toJSONObject:xh,isAsyncFn:vh,isThenable:wh,setImmediate:ys,asap:Ch};function ae(t,e,o,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}P.inherits(ae,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:P.toJSONObject(this.config),code:this.code,status:this.status}}});const ks=ae.prototype,xs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{xs[t]={value:t}}),Object.defineProperties(ae,xs),Object.defineProperty(ks,"isAxiosError",{value:!0}),ae.from=(t,e,o,r,n,i)=>{const a=Object.create(ks);return P.toFlatObject(t,a,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),ae.call(a,t.message,e,o,r,n),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};const _h=null;function Oi(t){return P.isPlainObject(t)||P.isArray(t)}function vs(t){return P.endsWith(t,"[]")?t.slice(0,-2):t}function ws(t,e,o){return t?t.concat(e).map(function(n,i){return n=vs(n),!o&&i?"["+n+"]":n}).join(o?".":""):e}function Sh(t){return P.isArray(t)&&!t.some(Oi)}const Bh=P.toFlatObject(P,{},null,function(e){return/^is[A-Z]/.test(e)});function gn(t,e,o){if(!P.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,o=P.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,b){return!P.isUndefined(b[p])});const r=o.metaTokens,n=o.visitor||u,i=o.dots,a=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&P.isSpecCompliantForm(e);if(!P.isFunction(n))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(P.isDate(m))return m.toISOString();if(!c&&P.isBlob(m))throw new ae("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(m)||P.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,b){let y=m;if(m&&!b&&typeof m=="object"){if(P.endsWith(p,"{}"))p=r?p:p.slice(0,-2),m=JSON.stringify(m);else if(P.isArray(m)&&Sh(m)||(P.isFileList(m)||P.endsWith(p,"[]"))&&(y=P.toArray(m)))return p=vs(p),y.forEach(function(C,B){!(P.isUndefined(C)||C===null)&&e.append(a===!0?ws([p],B,i):a===null?p:p+"[]",d(C))}),!1}return Oi(m)?!0:(e.append(ws(b,p,i),d(m)),!1)}const f=[],h=Object.assign(Bh,{defaultVisitor:u,convertValue:d,isVisitable:Oi});function g(m,p){if(!P.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),P.forEach(m,function(y,x){(!(P.isUndefined(y)||y===null)&&n.call(e,y,P.isString(x)?x.trim():x,p,h))===!0&&g(y,p?p.concat(x):[x])}),f.pop()}}if(!P.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Cs(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Di(t,e){this._pairs=[],t&&gn(t,this,e)}const _s=Di.prototype;_s.append=function(e,o){this._pairs.push([e,o])},_s.toString=function(e){const o=e?function(r){return e.call(this,r,Cs)}:Cs;return this._pairs.map(function(n){return o(n[0])+"="+o(n[1])},"").join("&")};function Eh(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ss(t,e,o){if(!e)return t;const r=o&&o.encode||Eh;P.isFunction(o)&&(o={serialize:o});const n=o&&o.serialize;let i;if(n?i=n(e,o):i=P.isURLSearchParams(e)?e.toString():new Di(e,o).toString(r),i){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Bs{constructor(){this.handlers=[]}use(e,o,r){return this.handlers.push({fulfilled:e,rejected:o,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){P.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Es={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Rh={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Di,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ni=typeof window<"u"&&typeof document<"u",Ti=typeof navigator=="object"&&navigator||void 0,Oh=Ni&&(!Ti||["ReactNative","NativeScript","NS"].indexOf(Ti.product)<0),Dh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nh=Ni&&window.location.href||"http://localhost",qe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ni,hasStandardBrowserEnv:Oh,hasStandardBrowserWebWorkerEnv:Dh,navigator:Ti,origin:Nh},Symbol.toStringTag,{value:"Module"})),...Rh};function Th(t,e){return gn(t,new qe.classes.URLSearchParams,Object.assign({visitor:function(o,r,n,i){return qe.isNode&&P.isBuffer(o)?(this.append(r,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Ph(t){return P.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Ah(t){const e={},o=Object.keys(t);let r;const n=o.length;let i;for(r=0;r<n;r++)i=o[r],e[i]=t[i];return e}function Rs(t){function e(o,r,n,i){let a=o[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=i>=o.length;return a=!a&&P.isArray(n)?n.length:a,c?(P.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!l):((!n[a]||!P.isObject(n[a]))&&(n[a]=[]),e(o,r,n[a],i)&&P.isArray(n[a])&&(n[a]=Ah(n[a])),!l)}if(P.isFormData(t)&&P.isFunction(t.entries)){const o={};return P.forEachEntry(t,(r,n)=>{e(Ph(r),n,o,0)}),o}return null}function $h(t,e,o){if(P.isString(t))try{return(e||JSON.parse)(t),P.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const ir={transitional:Es,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const r=o.getContentType()||"",n=r.indexOf("application/json")>-1,i=P.isObject(e);if(i&&P.isHTMLForm(e)&&(e=new FormData(e)),P.isFormData(e))return n?JSON.stringify(Rs(e)):e;if(P.isArrayBuffer(e)||P.isBuffer(e)||P.isStream(e)||P.isFile(e)||P.isBlob(e)||P.isReadableStream(e))return e;if(P.isArrayBufferView(e))return e.buffer;if(P.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Th(e,this.formSerializer).toString();if((l=P.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return gn(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||n?(o.setContentType("application/json",!1),$h(e)):e}],transformResponse:[function(e){const o=this.transitional||ir.transitional,r=o&&o.forcedJSONParsing,n=this.responseType==="json";if(P.isResponse(e)||P.isReadableStream(e))return e;if(e&&P.isString(e)&&(r&&!this.responseType||n)){const a=!(o&&o.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(l){if(a)throw l.name==="SyntaxError"?ae.from(l,ae.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch"],t=>{ir.headers[t]={}});const Mh=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fh=t=>{const e={};let o,r,n;return t&&t.split(`
|
|
7
|
+
`).forEach(function(a){n=a.indexOf(":"),o=a.substring(0,n).trim().toLowerCase(),r=a.substring(n+1).trim(),!(!o||e[o]&&Mh[o])&&(o==="set-cookie"?e[o]?e[o].push(r):e[o]=[r]:e[o]=e[o]?e[o]+", "+r:r)}),e},Os=Symbol("internals");function ar(t){return t&&String(t).trim().toLowerCase()}function mn(t){return t===!1||t==null?t:P.isArray(t)?t.map(mn):String(t)}function Vh(t){const e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=o.exec(t);)e[r[1]]=r[2];return e}const Lh=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Pi(t,e,o,r,n){if(P.isFunction(r))return r.call(this,e,o);if(n&&(e=o),!!P.isString(e)){if(P.isString(r))return e.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(e)}}function Ih(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,r)=>o.toUpperCase()+r)}function zh(t,e){const o=P.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+o,{value:function(n,i,a){return this[r].call(this,e,n,i,a)},configurable:!0})})}class Qe{constructor(e){e&&this.set(e)}set(e,o,r){const n=this;function i(l,c,d){const u=ar(c);if(!u)throw new Error("header name must be a non-empty string");const f=P.findKey(n,u);(!f||n[f]===void 0||d===!0||d===void 0&&n[f]!==!1)&&(n[f||c]=mn(l))}const a=(l,c)=>P.forEach(l,(d,u)=>i(d,u,c));if(P.isPlainObject(e)||e instanceof this.constructor)a(e,o);else if(P.isString(e)&&(e=e.trim())&&!Lh(e))a(Fh(e),o);else if(P.isHeaders(e))for(const[l,c]of e.entries())i(c,l,r);else e!=null&&i(o,e,r);return this}get(e,o){if(e=ar(e),e){const r=P.findKey(this,e);if(r){const n=this[r];if(!o)return n;if(o===!0)return Vh(n);if(P.isFunction(o))return o.call(this,n,r);if(P.isRegExp(o))return o.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=ar(e),e){const r=P.findKey(this,e);return!!(r&&this[r]!==void 0&&(!o||Pi(this,this[r],r,o)))}return!1}delete(e,o){const r=this;let n=!1;function i(a){if(a=ar(a),a){const l=P.findKey(r,a);l&&(!o||Pi(r,r[l],l,o))&&(delete r[l],n=!0)}}return P.isArray(e)?e.forEach(i):i(e),n}clear(e){const o=Object.keys(this);let r=o.length,n=!1;for(;r--;){const i=o[r];(!e||Pi(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){const o=this,r={};return P.forEach(this,(n,i)=>{const a=P.findKey(r,i);if(a){o[a]=mn(n),delete o[i];return}const l=e?Ih(i):String(i).trim();l!==i&&delete o[i],o[l]=mn(n),r[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const o=Object.create(null);return P.forEach(this,(r,n)=>{r!=null&&r!==!1&&(o[n]=e&&P.isArray(r)?r.join(", "):r)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(`
|
|
8
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){const r=new this(e);return o.forEach(n=>r.set(n)),r}static accessor(e){const r=(this[Os]=this[Os]={accessors:{}}).accessors,n=this.prototype;function i(a){const l=ar(a);r[l]||(zh(n,a),r[l]=!0)}return P.isArray(e)?e.forEach(i):i(e),this}}Qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),P.reduceDescriptors(Qe.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[o]=r}}}),P.freezeMethods(Qe);function Ai(t,e){const o=this||ir,r=e||o,n=Qe.from(r.headers);let i=r.data;return P.forEach(t,function(l){i=l.call(o,i,n.normalize(),e?e.status:void 0)}),n.normalize(),i}function Ds(t){return!!(t&&t.__CANCEL__)}function Vo(t,e,o){ae.call(this,t??"canceled",ae.ERR_CANCELED,e,o),this.name="CanceledError"}P.inherits(Vo,ae,{__CANCEL__:!0});function Ns(t,e,o){const r=o.config.validateStatus;!o.status||!r||r(o.status)?t(o):e(new ae("Request failed with status code "+o.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function jh(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Wh(t,e){t=t||10;const o=new Array(t),r=new Array(t);let n=0,i=0,a;return e=e!==void 0?e:1e3,function(c){const d=Date.now(),u=r[i];a||(a=d),o[n]=c,r[n]=d;let f=i,h=0;for(;f!==n;)h+=o[f++],f=f%t;if(n=(n+1)%t,n===i&&(i=(i+1)%t),d-a<e)return;const g=u&&d-u;return g?Math.round(h*1e3/g):void 0}}function Hh(t,e){let o=0,r=1e3/e,n,i;const a=(d,u=Date.now())=>{o=u,n=null,i&&(clearTimeout(i),i=null),t.apply(null,d)};return[(...d)=>{const u=Date.now(),f=u-o;f>=r?a(d,u):(n=d,i||(i=setTimeout(()=>{i=null,a(n)},r-f)))},()=>n&&a(n)]}const pn=(t,e,o=3)=>{let r=0;const n=Wh(50,250);return Hh(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,c=a-r,d=n(c),u=a<=l;r=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-a)/d:void 0,event:i,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(f)},o)},Ts=(t,e)=>{const o=t!=null;return[r=>e[0]({lengthComputable:o,total:t,loaded:r}),e[1]]},Ps=t=>(...e)=>P.asap(()=>t(...e)),Uh=qe.hasStandardBrowserEnv?((t,e)=>o=>(o=new URL(o,qe.origin),t.protocol===o.protocol&&t.host===o.host&&(e||t.port===o.port)))(new URL(qe.origin),qe.navigator&&/(msie|trident)/i.test(qe.navigator.userAgent)):()=>!0,qh=qe.hasStandardBrowserEnv?{write(t,e,o,r,n,i){const a=[t+"="+encodeURIComponent(e)];P.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),P.isString(r)&&a.push("path="+r),P.isString(n)&&a.push("domain="+n),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Yh(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Xh(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function As(t,e){return t&&!Yh(e)?Xh(t,e):e}const $s=t=>t instanceof Qe?{...t}:t;function bo(t,e){e=e||{};const o={};function r(d,u,f,h){return P.isPlainObject(d)&&P.isPlainObject(u)?P.merge.call({caseless:h},d,u):P.isPlainObject(u)?P.merge({},u):P.isArray(u)?u.slice():u}function n(d,u,f,h){if(P.isUndefined(u)){if(!P.isUndefined(d))return r(void 0,d,f,h)}else return r(d,u,f,h)}function i(d,u){if(!P.isUndefined(u))return r(void 0,u)}function a(d,u){if(P.isUndefined(u)){if(!P.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function l(d,u,f){if(f in e)return r(d,u);if(f in t)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(d,u,f)=>n($s(d),$s(u),f,!0)};return P.forEach(Object.keys(Object.assign({},t,e)),function(u){const f=c[u]||n,h=f(t[u],e[u],u);P.isUndefined(h)&&f!==l||(o[u]=h)}),o}const Ms=t=>{const e=bo({},t);let{data:o,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:i,headers:a,auth:l}=e;e.headers=a=Qe.from(a),e.url=Ss(As(e.baseURL,e.url),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(P.isFormData(o)){if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[d,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([d||"multipart/form-data",...u].join("; "))}}if(qe.hasStandardBrowserEnv&&(r&&P.isFunction(r)&&(r=r(e)),r||r!==!1&&Uh(e.url))){const d=n&&i&&qh.read(i);d&&a.set(n,d)}return e},Kh=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(o,r){const n=Ms(t);let i=n.data;const a=Qe.from(n.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=n,u,f,h,g,m;function p(){g&&g(),m&&m(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(n.method.toUpperCase(),n.url,!0),b.timeout=n.timeout;function y(){if(!b)return;const C=Qe.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:C,config:t,request:b};Ns(function(v){o(v),p()},function(v){r(v),p()},w),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(y)},b.onabort=function(){b&&(r(new ae("Request aborted",ae.ECONNABORTED,t,b)),b=null)},b.onerror=function(){r(new ae("Network Error",ae.ERR_NETWORK,t,b)),b=null},b.ontimeout=function(){let B=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const w=n.transitional||Es;n.timeoutErrorMessage&&(B=n.timeoutErrorMessage),r(new ae(B,w.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,t,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&P.forEach(a.toJSON(),function(B,w){b.setRequestHeader(w,B)}),P.isUndefined(n.withCredentials)||(b.withCredentials=!!n.withCredentials),l&&l!=="json"&&(b.responseType=n.responseType),d&&([h,m]=pn(d,!0),b.addEventListener("progress",h)),c&&b.upload&&([f,g]=pn(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",g)),(n.cancelToken||n.signal)&&(u=C=>{b&&(r(!C||C.type?new Vo(null,t,b):C),b.abort(),b=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const x=jh(n.url);if(x&&qe.protocols.indexOf(x)===-1){r(new ae("Unsupported protocol "+x+":",ae.ERR_BAD_REQUEST,t));return}b.send(i||null)})},Gh=(t,e)=>{const{length:o}=t=t?t.filter(Boolean):[];if(e||o){let r=new AbortController,n;const i=function(d){if(!n){n=!0,l();const u=d instanceof Error?d:this.reason;r.abort(u instanceof ae?u:new Vo(u instanceof Error?u.message:u))}};let a=e&&setTimeout(()=>{a=null,i(new ae(`timeout ${e} of ms exceeded`,ae.ETIMEDOUT))},e);const l=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),t=null)};t.forEach(d=>d.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>P.asap(l),c}},Qh=function*(t,e){let o=t.byteLength;if(o<e){yield t;return}let r=0,n;for(;r<o;)n=r+e,yield t.slice(r,n),r=n},Jh=async function*(t,e){for await(const o of Zh(t))yield*Qh(o,e)},Zh=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:o,value:r}=await e.read();if(o)break;yield r}}finally{await e.cancel()}},Fs=(t,e,o,r)=>{const n=Jh(t,e);let i=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await n.next();if(d){l(),c.close();return}let f=u.byteLength;if(o){let h=i+=f;o(h)}c.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(c){return l(c),n.return()}},{highWaterMark:2})},bn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vs=bn&&typeof ReadableStream=="function",eg=bn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Ls=(t,...e)=>{try{return!!t(...e)}catch{return!1}},tg=Vs&&Ls(()=>{let t=!1;const e=new Request(qe.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Is=64*1024,$i=Vs&&Ls(()=>P.isReadableStream(new Response("").body)),yn={stream:$i&&(t=>t.body)};bn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!yn[e]&&(yn[e]=P.isFunction(t[e])?o=>o[e]():(o,r)=>{throw new ae(`Response type '${e}' is not supported`,ae.ERR_NOT_SUPPORT,r)})})})(new Response);const og=async t=>{if(t==null)return 0;if(P.isBlob(t))return t.size;if(P.isSpecCompliantForm(t))return(await new Request(qe.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(P.isArrayBufferView(t)||P.isArrayBuffer(t))return t.byteLength;if(P.isURLSearchParams(t)&&(t=t+""),P.isString(t))return(await eg(t)).byteLength},rg=async(t,e)=>{const o=P.toFiniteNumber(t.getContentLength());return o??og(e)},Mi={http:_h,xhr:Kh,fetch:bn&&(async t=>{let{url:e,method:o,data:r,signal:n,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:u,withCredentials:f="same-origin",fetchOptions:h}=Ms(t);d=d?(d+"").toLowerCase():"text";let g=Gh([n,i&&i.toAbortSignal()],a),m;const p=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let b;try{if(c&&tg&&o!=="get"&&o!=="head"&&(b=await rg(u,r))!==0){let w=new Request(e,{method:"POST",body:r,duplex:"half"}),_;if(P.isFormData(r)&&(_=w.headers.get("content-type"))&&u.setContentType(_),w.body){const[v,k]=Ts(b,pn(Ps(c)));r=Fs(w.body,Is,v,k)}}P.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;m=new Request(e,{...h,signal:g,method:o.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let x=await fetch(m);const C=$i&&(d==="stream"||d==="response");if($i&&(l||C&&p)){const w={};["status","statusText","headers"].forEach(S=>{w[S]=x[S]});const _=P.toFiniteNumber(x.headers.get("content-length")),[v,k]=l&&Ts(_,pn(Ps(l),!0))||[];x=new Response(Fs(x.body,Is,v,()=>{k&&k(),p&&p()}),w)}d=d||"text";let B=await yn[P.findKey(yn,d)||"text"](x,t);return!C&&p&&p(),await new Promise((w,_)=>{Ns(w,_,{data:B,headers:Qe.from(x.headers),status:x.status,statusText:x.statusText,config:t,request:m})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,t,m),{cause:y.cause||y}):ae.from(y,y&&y.code,t,m)}})};P.forEach(Mi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const zs=t=>`- ${t}`,ng=t=>P.isFunction(t)||t===null||t===!1,js={getAdapter:t=>{t=P.isArray(t)?t:[t];const{length:e}=t;let o,r;const n={};for(let i=0;i<e;i++){o=t[i];let a;if(r=o,!ng(o)&&(r=Mi[(a=String(o)).toLowerCase()],r===void 0))throw new ae(`Unknown adapter '${a}'`);if(r)break;n[a||"#"+i]=r}if(!r){const i=Object.entries(n).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?i.length>1?`since :
|
|
9
|
+
`+i.map(zs).join(`
|
|
10
|
+
`):" "+zs(i[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Mi};function Fi(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Vo(null,t)}function Ws(t){return Fi(t),t.headers=Qe.from(t.headers),t.data=Ai.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),js.getAdapter(t.adapter||ir.adapter)(t).then(function(r){return Fi(t),r.data=Ai.call(t,t.transformResponse,r),r.headers=Qe.from(r.headers),r},function(r){return Ds(r)||(Fi(t),r&&r.response&&(r.response.data=Ai.call(t,t.transformResponse,r.response),r.response.headers=Qe.from(r.response.headers))),Promise.reject(r)})}const Hs="1.7.9",kn={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{kn[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Us={};kn.transitional=function(e,o,r){function n(i,a){return"[Axios v"+Hs+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(e===!1)throw new ae(n(a," has been removed"+(o?" in "+o:"")),ae.ERR_DEPRECATED);return o&&!Us[a]&&(Us[a]=!0,console.warn(n(a," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(i,a,l):!0}},kn.spelling=function(e){return(o,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function ig(t,e,o){if(typeof t!="object")throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let n=r.length;for(;n-- >0;){const i=r[n],a=e[i];if(a){const l=t[i],c=l===void 0||a(l,i,t);if(c!==!0)throw new ae("option "+i+" must be "+c,ae.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new ae("Unknown option "+i,ae.ERR_BAD_OPTION)}}const xn={assertOptions:ig,validators:kn},_t=xn.validators;class yo{constructor(e){this.defaults=e,this.interceptors={request:new Bs,response:new Bs}}async request(e,o){try{return await this._request(e,o)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
11
|
+
`+i):r.stack=i}catch{}}throw r}}_request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=bo(this.defaults,o);const{transitional:r,paramsSerializer:n,headers:i}=o;r!==void 0&&xn.assertOptions(r,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean)},!1),n!=null&&(P.isFunction(n)?o.paramsSerializer={serialize:n}:xn.assertOptions(n,{encode:_t.function,serialize:_t.function},!0)),xn.assertOptions(o,{baseUrl:_t.spelling("baseURL"),withXsrfToken:_t.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let a=i&&P.merge(i.common,i[o.method]);i&&P.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),o.headers=Qe.concat(a,i);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(o)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let u,f=0,h;if(!c){const m=[Ws.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,d),h=m.length,u=Promise.resolve(o);f<h;)u=u.then(m[f++],m[f++]);return u}h=l.length;let g=o;for(f=0;f<h;){const m=l[f++],p=l[f++];try{g=m(g)}catch(b){p.call(this,b);break}}try{u=Ws.call(this,g)}catch(m){return Promise.reject(m)}for(f=0,h=d.length;f<h;)u=u.then(d[f++],d[f++]);return u}getUri(e){e=bo(this.defaults,e);const o=As(e.baseURL,e.url);return Ss(o,e.params,e.paramsSerializer)}}P.forEach(["delete","get","head","options"],function(e){yo.prototype[e]=function(o,r){return this.request(bo(r||{},{method:e,url:o,data:(r||{}).data}))}}),P.forEach(["post","put","patch"],function(e){function o(r){return function(i,a,l){return this.request(bo(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}yo.prototype[e]=o(),yo.prototype[e+"Form"]=o(!0)});class Vi{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const r=this;this.promise.then(n=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](n);r._listeners=null}),this.promise.then=n=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(n);return a.cancel=function(){r.unsubscribe(i)},a},e(function(i,a,l){r.reason||(r.reason=new Vo(i,a,l),o(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const e=new AbortController,o=r=>{e.abort(r)};return this.subscribe(o),e.signal.unsubscribe=()=>this.unsubscribe(o),e.signal}static source(){let e;return{token:new Vi(function(n){e=n}),cancel:e}}}function ag(t){return function(o){return t.apply(null,o)}}function sg(t){return P.isObject(t)&&t.isAxiosError===!0}const Li={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Li).forEach(([t,e])=>{Li[e]=t});function qs(t){const e=new yo(t),o=cs(yo.prototype.request,e);return P.extend(o,yo.prototype,e,{allOwnKeys:!0}),P.extend(o,e,null,{allOwnKeys:!0}),o.create=function(n){return qs(bo(t,n))},o}const Me=qs(ir);Me.Axios=yo,Me.CanceledError=Vo,Me.CancelToken=Vi,Me.isCancel=Ds,Me.VERSION=Hs,Me.toFormData=gn,Me.AxiosError=ae,Me.Cancel=Me.CanceledError,Me.all=function(e){return Promise.all(e)},Me.spread=ag,Me.isAxiosError=sg,Me.mergeConfig=bo,Me.AxiosHeaders=Qe,Me.formToJSON=t=>Rs(P.isHTMLForm(t)?new FormData(t):t),Me.getAdapter=js.getAdapter,Me.HttpStatusCode=Li,Me.default=Me;const lg=Si("loading",{state:()=>({loading:!1}),actions:{setLoading(t){this.loading=t}}});function cg(){const t=lg();return{onResponse(e){return t.setLoading(!1),["post","put","delete"].includes(e.config.method)&&console.log("🌐 Operation completed successfully"),e},onError(e){var r,n,i,a,l;t.setLoading(!1);const o=((n=(r=e.response)==null?void 0:r.data)==null?void 0:n.message)||e.message||"Unexpected error occurred";return console.error("🌐 API Error",{url:(i=e.config)==null?void 0:i.url,method:(a=e.config)==null?void 0:a.method,status:(l=e.response)==null?void 0:l.status,message:o}),Promise.reject(e)}}}function Ys(t={}){return{"Content-Type":"application/json",...t}}function ko(){Ue();const t=cg(),e=Me.create({headers:Ys()});e.interceptors.response.use(c=>t.onResponse(c),c=>(t.onError(c),Promise.reject(c)));const o=()=>"",r=(c={})=>Ys(c),n=(c={})=>({...c,requestSource:"web"}),i=c=>{const{data:d}=c;return console.log("API Response:",d),d!=null&&d.response||console.warn("Unexpected response format:",d),d},a=c=>{if(c.response){const{status:d,data:u}=c.response;return{success:!1,status:d,message:(u==null?void 0:u.message)||"Something went wrong",data:u||null}}return Promise.reject(c)},l=async({url:c,method:d="get",payload:u=null,headers:f={}})=>{const h=c.startsWith("http")?c:o()+c,g=r(f),m=u?n(u):null;console.log(`Making ${d.toUpperCase()} request to ${h}`),console.log("Payload:",m),console.log("Headers:",g);try{const p={url:h,method:d,headers:g,data:m},b=await e.request(p);return i(b)}catch(p){return a(p)}};return{get:(c,d={})=>l({url:c,method:"get",headers:d}),post:(c,d,u={})=>l({url:c,method:"post",payload:d,headers:u}),put:(c,d,u={})=>l({url:c,method:"put",payload:d,headers:u}),del:(c,d={},u={})=>l({url:c,method:"delete",payload:d,headers:u})}}function mt(){const t=Ue(),{get:e,post:o,put:r,del:n}=ko(),i=()=>t.getAppId();return{getEntityRecords:async m=>{const p=i();return await e(`/api/app/v1/${p}/entity/${m}/record`)},searchEntityRecords:async(m,p)=>{const b=i();return await o(`/api/app/v1/${b}/entity/${m}/record/search`,p)},getRelatedEntityRecord:async(m,p)=>{const b=i();return await e(`/api/app/v1/${b}/entity/${m}/link/record/${p}?fetchRelatedEntities=true`)},saveRelatedEntityRecord:async(m,p,b)=>{const y=i();return await o(`/api/app/v1/${y}/entity/${m}/link/record/${p}`,b)},getRecord:async(m,p)=>{const b=i();return await e(`/api/app/v1/${b}/entity/${m}/record/${p}?fetchRelatedEntities=false`)},addRecord:async(m,p)=>{const b=i();return await o(`/api/app/v1/${b}/entity/${m}/record`,p)},updateRecord:async(m,p,b)=>{const y=i();return await r(`/api/app/v1/${y}/entity/${m}/record/${p}`,b)},deleteRecord:async(m,p)=>{const b=i();return await n(`/api/app/v1/${b}/entity/${m}/record/${p}`)}}}function dg(t=""){const e=new mt,o={gt:"GREATER_THAN",dateAfter:"GREATER_THAN",equals:"EQUAL",dateIs:"EQUAL",notEquals:"NOT_EQUAL",dateIsNot:"NOT_EQUAL",lt:"LESS_THAN",dateBefore:"LESS_THAN",lte:"LESS_THAN_EQUAL",gte:"GREATER_THAN_EQUAL",between:"BETWEEN",contains:"CONTAINS",startsWith:"STARTS_WITH",notContains:"NOT_CONTAINS",endsWith:"ENDS_WITH"};let r=s.ref({}),n=s.ref([]),i=s.ref([]),a=s.ref([]);const l=s.ref(""),c=s.ref(1),d=s.ref(25),u=s.ref(0),f=s.ref(0),h=s.ref(0),g=s.ref(!1),m=s.ref([]),p=s.ref(""),b=s.ref({}),y=async(E,D=!0)=>{g.value=!0;try{const M=await e.getEntityRecords(E);M&&M.response&&(r.value=M.response,n.value=M.response.result,a.value=M.response.entity.entityDefinition.columns,i.value=C(M.response.entity.entityDefinition.columns),f.value=M.response.totalRecords,N())}catch(M){console.error("Error fetching entity:",M.errorMessage)}finally{g.value=!1}},x=async(E=!0)=>{g.value=!0;try{const D={sortBy:[l.value],sortDirection:c.value===1?"ASC":"DESC",pageSize:d.value,currentPage:u.value,columnList:null,filter:m.value,fullTextSearch:p.value};Object.keys(D.filter).length===0&&(D.filter=[]);const M=await e.searchEntityRecords(t,D);M&&M.response&&(g.value=!1,r.value=M.response,n.value=M.response.result,f.value=M.response.totalRecords,h.value=u.value*d.value)}catch(D){console.error("Error fetching entity:",D.errorMessage)}finally{g.value=!1}},C=E=>E.map(D=>({field:D.name,name:D.displayName?D.displayName:D.name,filterable:D.filterable,datatype:D.type,sortable:!0,displayFormatKey:D.displayFormatKey,displayFormat:D.displayFormat})),B=E=>{l.value=E.sortField,c.value=E.sortOrder,h.value=0,x()},w=E=>{d.value=E.rows,u.value=E.page,h.value=E.first,x()},_=()=>{x()},v=()=>{x()},k=E=>{switch(E.toLowerCase()){case"integer":case"int":case"numeric":return"numeric";case"date":return"date";case"bool":case"boolean":return"boolean";default:return"text"}},S=E=>{const D=i.value.find(M=>M.field===E);return D?D.datatype:null},N=()=>{for(let E=0;E<a.value.length;E++){const D=a.value[E];if(D.primaryKey&&D.primaryKey==!0){b.value=D,l.value=D.name;break}}};return{items:n,headers:i,first:h,totalRecords:f,pageSize:d,loading:g,sortBy:l,sortDirection:c,operatorMap:o,filterToSend:m,fullTextSearch:p,listingResponse:r,primarayKeyColumn:b,onFullTextSearch:v,getDatatypeByField:S,getColumnDatatype:k,onSort:B,onPage:w,onFilter:_,fetchEntityFilterData:x,fetchEntityByName:y}}const Fe=(t,e)=>{const o=t.__vccOpts||t;for(const[r,n]of e)o[r]=n;return o},ug={key:0,class:"field flex flex-col mb-3"},fg=["for"],hg={key:0},gg={key:0,class:"font-bold"},mg={key:1,class:"font-bold text-color-hint"},pg={key:1,class:"flex items-center mb-3"},bg={class:"ml-2"},yg={key:0},vn=Fe({__name:"EntityForm",props:s.mergeModels({column:Object,errors:Array},{modelValue:{},modelModifiers:{}}),emits:s.mergeModels(["input"],["update:modelValue"]),setup(t,{emit:e}){const o=s.useModel(t,"modelValue"),r=e,n=i=>{r("input",i.name)};if(t.column&&!t.column.inputComponent){let i="";switch(t.column.type.toLowerCase()){case"text":i="INPUT_TEXT";break;case"int":i="INPUT_NUMBER";break;case"float":i="INPUT_FLOAT";break;case"boolean":i="INPUT_BOOLEAN";break;case"uuid":i="INPUT_UUID";break;case"date":i="INPUT_DATE";break;default:i="INPUT_STRING"}t.column.inputComponent=i}return(i,a)=>{var f,h,g,m,p;const l=s.resolveComponent("DatePicker"),c=s.resolveComponent("InputNumber"),d=s.resolveComponent("InputText"),u=s.resolveComponent("Checkbox");return s.openBlock(),s.createElementBlock(s.Fragment,null,[t.column.inputComponent.toLowerCase()!="input_boolean"?(s.openBlock(),s.createElementBlock("div",ug,[s.createElementVNode("label",{class:"mb-1",for:t.column.name},[s.createTextVNode(s.toDisplayString(t.column.displayName||t.column.name)+" ",1),t.column.required?(s.openBlock(),s.createElementBlock("span",hg,"*")):s.createCommentVNode("",!0)],8,fg),t.column.inputComponent.toLowerCase()=="input_date"?(s.openBlock(),s.createBlock(l,{key:0,modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=b=>o.value=b),id:t.column.name,name:t.column.name,onDateSelect:a[1]||(a[1]=b=>n(t.column)),invalid:((f=t.errors)==null?void 0:f.length)>0},null,8,["modelValue","id","name","invalid"])):t.column.inputComponent.toLowerCase()=="input_number"?(s.openBlock(),s.createBlock(c,{key:1,modelValue:o.value,"onUpdate:modelValue":a[2]||(a[2]=b=>o.value=b),id:t.column.name,name:t.column.name,allowEmpty:!0,format:!1,onInput:a[3]||(a[3]=b=>n(t.column)),invalid:((h=t.errors)==null?void 0:h.length)>0},null,8,["modelValue","id","name","invalid"])):t.column.type.toLowerCase()=="input_float"?(s.openBlock(),s.createBlock(c,{key:2,type:"decimal",minFractionDigits:1,id:t.column.name,allowEmpty:!0,format:!1,name:t.column.name,onInput:a[4]||(a[4]=b=>n(t.column)),invalid:((g=t.errors)==null?void 0:g.length)>0},null,8,["id","name","invalid"])):(s.openBlock(),s.createBlock(d,{key:3,modelValue:o.value,"onUpdate:modelValue":a[5]||(a[5]=b=>o.value=b),id:t.column.name,name:t.column.name,onInput:a[6]||(a[6]=b=>n(t.column)),invalid:((m=t.errors)==null?void 0:m.length)>0},null,8,["modelValue","id","name","invalid"])),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.errors,(b,y)=>(s.openBlock(),s.createElementBlock("div",{key:y,class:"text-red-500 mt-1 ml-2"},[b.includes("hint:")?(s.openBlock(),s.createElementBlock("small",mg,s.toDisplayString(b.split(":")[1]),1)):(s.openBlock(),s.createElementBlock("small",gg,s.toDisplayString(b),1))]))),128))])):s.createCommentVNode("",!0),t.column.inputComponent.toLowerCase()=="input_boolean"?(s.openBlock(),s.createElementBlock("div",pg,[s.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":a[7]||(a[7]=b=>o.value=b),invalid:((p=t.errors)==null?void 0:p.length)>0,onInput:a[8]||(a[8]=b=>n(t.column.name)),binary:""},null,8,["modelValue","invalid"]),s.createElementVNode("label",bg,[s.createTextVNode(s.toDisplayString(t.column.displayName||t.column.name)+" ",1),t.column.required?(s.openBlock(),s.createElementBlock("span",yg,"*")):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-8820d348"]]);/**
|
|
11
12
|
* vee-validate v4.15.0
|
|
12
13
|
* (c) 2024 Abdelrahman Awad
|
|
13
14
|
* @license MIT
|
|
14
|
-
*/function pt(t){return typeof t=="function"}function Ys(t){return t==null}const Vo=t=>t!==null&&!!t&&typeof t=="object"&&!Array.isArray(t);function Li(t){return Number(t)>=0}function yg(t){return typeof t=="object"&&t!==null}function kg(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function Xs(t){if(!yg(t)||kg(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function sr(t,e){return Object.keys(e).forEach(o=>{if(Xs(e[o])&&Xs(t[o])){t[o]||(t[o]={}),sr(t[o],e[o]);return}t[o]=e[o]}),t}function wn(t){const e=t.split(".");if(!e.length)return"";let o=String(e[0]);for(let r=1;r<e.length;r++){if(Li(e[r])){o+=`[${e[r]}]`;continue}o+=`.${e[r]}`}return o}const xg={};function vg(t){return xg[t]}function Ks(t,e,o){typeof o.value=="object"&&(o.value=xe(o.value)),!o.enumerable||o.get||o.set||!o.configurable||!o.writable||e==="__proto__"?Object.defineProperty(t,e,o):t[e]=o.value}function xe(t){if(typeof t!="object")return t;var e=0,o,r,n,i=Object.prototype.toString.call(t);if(i==="[object Object]"?n=Object.create(t.__proto__||null):i==="[object Array]"?n=Array(t.length):i==="[object Set]"?(n=new Set,t.forEach(function(s){n.add(xe(s))})):i==="[object Map]"?(n=new Map,t.forEach(function(s,l){n.set(xe(l),xe(s))})):i==="[object Date]"?n=new Date(+t):i==="[object RegExp]"?n=new RegExp(t.source,t.flags):i==="[object DataView]"?n=new t.constructor(xe(t.buffer)):i==="[object ArrayBuffer]"?n=t.slice(0):i.slice(-6)==="Array]"&&(n=new t.constructor(t)),n){for(r=Object.getOwnPropertySymbols(t);e<r.length;e++)Ks(n,r[e],Object.getOwnPropertyDescriptor(t,r[e]));for(e=0,r=Object.getOwnPropertyNames(t);e<r.length;e++)Object.hasOwnProperty.call(n,o=r[e])&&n[o]===t[o]||Ks(n,o,Object.getOwnPropertyDescriptor(t,o))}return n||t}const wg=Symbol("vee-validate-form"),Cg=Symbol("vee-validate-form-context"),_g=typeof window<"u";function Sg(t){return pt(t)&&!!t.__locatorRef}function Kt(t){return!!t&&pt(t.parse)&&t.__type==="VVTypedSchema"}function Gs(t){return!!t&&pt(t.validate)}function Bg(t){return t==="checkbox"||t==="radio"}function Eg(t){return Vo(t)||Array.isArray(t)}function Rg(t){return Array.isArray(t)?t.length===0:Vo(t)&&Object.keys(t).length===0}function Cn(t){return/^\[.+\]$/i.test(t)}function Og(t){return Qs(t)&&t.multiple}function Qs(t){return t.tagName==="SELECT"}function Dg(t){return Js(t)&&t.target&&"submit"in t.target}function Js(t){return t?!!(typeof Event<"u"&&pt(Event)&&t instanceof Event||t&&t.srcElement):!1}function lr(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,r,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(r=o;r--!==0;)if(!lr(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!lr(r[1],e.get(r[0])))return!1;return!0}if(el(t)&&el(e))return!(t.size!==e.size||t.name!==e.name||t.lastModified!==e.lastModified||t.type!==e.type);if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(o=t.length,o!=e.length)return!1;for(r=o;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(n=Object.keys(t),o=n.length-Zs(t,n),o!==Object.keys(e).length-Zs(e,Object.keys(e)))return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[r]))return!1;for(r=o;r--!==0;){var i=n[r];if(!lr(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Zs(t,e){let o=0;for(let n=e.length;n--!==0;){var r=e[n];t[r]===void 0&&o++}return o}function el(t){return _g?t instanceof File:!1}function zi(t){return Cn(t)?t.replace(/\[|\]/gi,""):t}function $t(t,e,o){return t?Cn(e)?t[zi(e)]:(e||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((n,i)=>Eg(n)&&i in n?n[i]:o,t):o}function At(t,e,o){if(Cn(e)){t[zi(e)]=o;return}const r=e.split(/\.|\[(\d+)\]/).filter(Boolean);let n=t;for(let i=0;i<r.length;i++){if(i===r.length-1){n[r[i]]=o;return}(!(r[i]in n)||Ys(n[r[i]]))&&(n[r[i]]=Li(r[i+1])?[]:{}),n=n[r[i]]}}function ji(t,e){if(Array.isArray(t)&&Li(e)){t.splice(Number(e),1);return}Vo(t)&&delete t[e]}function tl(t,e){if(Cn(e)){delete t[zi(e)];return}const o=e.split(/\.|\[(\d+)\]/).filter(Boolean);let r=t;for(let i=0;i<o.length;i++){if(i===o.length-1){ji(r,o[i]);break}if(!(o[i]in r)||Ys(r[o[i]]))break;r=r[o[i]]}const n=o.map((i,s)=>$t(t,o.slice(0,s).join(".")));for(let i=n.length-1;i>=0;i--)if(Rg(n[i])){if(i===0){ji(t,o[0]);continue}ji(n[i-1],o[i-1])}}function ct(t){return Object.keys(t)}function ol(t,e=0){let o=null,r=[];return function(...n){return o&&clearTimeout(o),o=setTimeout(()=>{const i=t(...n);r.forEach(s=>s(i)),r=[]},e),new Promise(i=>r.push(i))}}function Ng(t,e){let o;return async function(...n){const i=t(...n);o=i;const s=await i;return i!==o?s:(o=void 0,e(s,n))}}function rl(t){return Array.isArray(t)?t:t?[t]:[]}function _n(t,e){const o={};for(const r in t)e.includes(r)||(o[r]=t[r]);return o}function Tg(t){let e=null,o=[];return function(...r){const n=a.nextTick(()=>{if(e!==n)return;const i=t(...r);o.forEach(s=>s(i)),o=[],e=null});return e=n,new Promise(i=>o.push(i))}}function Wi(t){if(nl(t))return t._value}function nl(t){return"_value"in t}function Pg(t){return t.type==="number"||t.type==="range"?Number.isNaN(t.valueAsNumber)?t.value:t.valueAsNumber:t.value}function il(t){if(!Js(t))return t;const e=t.target;if(Bg(e.type)&&nl(e))return Wi(e);if(e.type==="file"&&e.files){const o=Array.from(e.files);return e.multiple?o:o[0]}if(Og(e))return Array.from(e.options).filter(o=>o.selected&&!o.disabled).map(Wi);if(Qs(e)){const o=Array.from(e.options).find(r=>r.selected);return o?Wi(o):e.value}return Pg(e)}function $g(t){const e={};return Object.defineProperty(e,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),t?Vo(t)&&t._$$isNormalized?t:Vo(t)?Object.keys(t).reduce((o,r)=>{const n=Ag(t[r]);return t[r]!==!1&&(o[r]=al(n)),o},e):typeof t!="string"?e:t.split("|").reduce((o,r)=>{const n=Mg(r);return n.name&&(o[n.name]=al(n.params)),o},e):e}function Ag(t){return t===!0?[]:Array.isArray(t)||Vo(t)?t:[t]}function al(t){const e=o=>typeof o=="string"&&o[0]==="@"?Fg(o.slice(1)):o;return Array.isArray(t)?t.map(e):t instanceof RegExp?[t]:Object.keys(t).reduce((o,r)=>(o[r]=e(t[r]),o),{})}const Mg=t=>{let e=[];const o=t.split(":")[0];return t.includes(":")&&(e=t.split(":").slice(1).join(":").split(",")),{name:o,params:e}};function Fg(t){const e=o=>{var r;return(r=$t(o,t))!==null&&r!==void 0?r:o[t]};return e.__locatorRef=t,e}let Vg=Object.assign({},{generateMessage:({field:t})=>`${t} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const cr=()=>Vg;async function Ig(t,e,o={}){const r=o==null?void 0:o.bails,n={name:(o==null?void 0:o.name)||"{field}",rules:e,label:o==null?void 0:o.label,bails:r??!0,formData:(o==null?void 0:o.values)||{}},i=await Lg(n,t);return Object.assign(Object.assign({},i),{valid:!i.errors.length})}async function Lg(t,e){const o=t.rules;if(Kt(o)||Gs(o))return jg(e,Object.assign(Object.assign({},t),{rules:o}));if(pt(o)||Array.isArray(o)){const l={field:t.label||t.name,name:t.name,label:t.label,form:t.formData,value:e},c=Array.isArray(o)?o:[o],d=c.length,u=[];for(let f=0;f<d;f++){const h=c[f],g=await h(e,l);if(!(typeof g!="string"&&!Array.isArray(g)&&g)){if(Array.isArray(g))u.push(...g);else{const p=typeof g=="string"?g:ll(l);u.push(p)}if(t.bails)return{errors:u}}}return{errors:u}}const r=Object.assign(Object.assign({},t),{rules:$g(o)}),n=[],i=Object.keys(r.rules),s=i.length;for(let l=0;l<s;l++){const c=i[l],d=await Wg(r,e,{name:c,params:r.rules[c]});if(d.error&&(n.push(d.error),t.bails))return{errors:n}}return{errors:n}}function zg(t){return!!t&&t.name==="ValidationError"}function sl(t){return{__type:"VVTypedSchema",async parse(o,r){var n;try{return{output:await t.validate(o,{abortEarly:!1,context:(r==null?void 0:r.formData)||{}}),errors:[]}}catch(i){if(!zg(i))throw i;if(!(!((n=i.inner)===null||n===void 0)&&n.length)&&i.errors.length)return{errors:[{path:i.path,errors:i.errors}]};const s=i.inner.reduce((l,c)=>{const d=c.path||"";return l[d]||(l[d]={errors:[],path:d}),l[d].errors.push(...c.errors),l},{});return{errors:Object.values(s)}}}}}async function jg(t,e){const r=await(Kt(e.rules)?e.rules:sl(e.rules)).parse(t,{formData:e.formData}),n=[];for(const i of r.errors)i.errors.length&&n.push(...i.errors);return{value:r.value,errors:n}}async function Wg(t,e,o){const r=vg(o.name);if(!r)throw new Error(`No such validator '${o.name}' exists.`);const n=Hg(o.params,t.formData),i={field:t.label||t.name,name:t.name,label:t.label,value:e,form:t.formData,rule:Object.assign(Object.assign({},o),{params:n})},s=await r(e,n,i);return typeof s=="string"?{error:s}:{error:s?void 0:ll(i)}}function ll(t){const e=cr().generateMessage;return e?e(t):"Field is invalid"}function Hg(t,e){const o=r=>Sg(r)?r(e):r;return Array.isArray(t)?t.map(o):Object.keys(t).reduce((r,n)=>(r[n]=o(t[n]),r),{})}async function Ug(t,e){const r=await(Kt(t)?t:sl(t)).parse(xe(e),{formData:xe(e)}),n={},i={};for(const s of r.errors){const l=s.errors,c=(s.path||"").replace(/\["(\d+)"\]/g,(d,u)=>`[${u}]`);n[c]={valid:!l.length,errors:l},l.length&&(i[c]=l[0])}return{valid:!r.errors.length,results:n,errors:i,values:r.value,source:"schema"}}async function qg(t,e,o){const n=ct(t).map(async d=>{var u,f,h;const g=(u=o==null?void 0:o.names)===null||u===void 0?void 0:u[d],m=await Ig($t(e,d),t[d],{name:(g==null?void 0:g.name)||d,label:g==null?void 0:g.label,values:e,bails:(h=(f=o==null?void 0:o.bailsMap)===null||f===void 0?void 0:f[d])!==null&&h!==void 0?h:!0});return Object.assign(Object.assign({},m),{path:d})});let i=!0;const s=await Promise.all(n),l={},c={};for(const d of s)l[d.path]={valid:d.valid,errors:d.errors},d.valid||(i=!1,c[d.path]=d.errors[0]);return{valid:i,results:l,errors:c,source:"schema"}}let Yg=0;const Sn=["bails","fieldsCount","id","multiple","type","validate"];function cl(t){const e={},o=Object.assign({},a.toValue(e)),r=a.unref(void 0);return r&&Kt(r)&&pt(r.cast)?xe(r.cast(o)||{}):xe(o)}function dl(t){var e;const o=Yg++,r="Form";let n=0;const i=a.ref(!1),s=a.ref(!1),l=a.ref(0),c=[],d=a.reactive(cl()),u=a.ref([]),f=a.ref({}),h=a.ref({}),g=Tg(()=>{h.value=u.value.reduce((R,O)=>(R[wn(a.toValue(O.path))]=O,R),{})});function m(R,O){const I=W(R);if(!I){typeof R=="string"&&(f.value[wn(R)]=rl(O));return}if(typeof R=="string"){const Y=wn(R);f.value[Y]&&delete f.value[Y]}I.errors=rl(O),I.valid=!I.errors.length}function p(R){ct(R).forEach(O=>{m(O,R[O])})}const b=a.computed(()=>{const R=u.value.reduce((O,I)=>(I.errors.length&&(O[a.toValue(I.path)]=I.errors),O),{});return Object.assign(Object.assign({},f.value),R)}),y=a.computed(()=>ct(b.value).reduce((R,O)=>{const I=b.value[O];return I!=null&&I.length&&(R[O]=I[0]),R},{})),x=a.computed(()=>u.value.reduce((R,O)=>(R[a.toValue(O.path)]={name:a.toValue(O.path)||"",label:O.label||""},R),{})),C=a.computed(()=>u.value.reduce((R,O)=>{var I;return R[a.toValue(O.path)]=(I=O.bails)!==null&&I!==void 0?I:!0,R},{})),B=Object.assign({},{}),w=(e=void 0)!==null&&e!==void 0?e:!1,{initialValues:_,originalInitialValues:v,setInitialValues:k}=Kg(u,d),S=Xg(u,d,v,y),N=a.computed(()=>u.value.reduce((R,O)=>{const I=$t(d,a.toValue(O.path));return At(R,a.toValue(O.path),I),R},{})),E=void 0;function D(R,O){var I,Y;const te=a.computed(()=>$t(_.value,a.toValue(R))),le=h.value[a.toValue(R)],Z=(O==null?void 0:O.type)==="checkbox"||(O==null?void 0:O.type)==="radio";if(le&&Z){le.multiple=!0;const Ne=n++;return Array.isArray(le.id)?le.id.push(Ne):le.id=[le.id,Ne],le.fieldsCount++,le.__flags.pendingUnmount[Ne]=!1,le}const V=a.computed(()=>$t(d,a.toValue(R))),U=a.toValue(R),G=A.findIndex(Ne=>Ne===U);G!==-1&&A.splice(G,1);const K=a.computed(()=>{var Ne,He,sn,ln;const cn=a.toValue(E);if(Kt(cn))return(He=(Ne=cn.describe)===null||Ne===void 0?void 0:Ne.call(cn,a.toValue(R)).required)!==null&&He!==void 0?He:!1;const ts=a.toValue(O==null?void 0:O.schema);return Kt(ts)&&(ln=(sn=ts.describe)===null||sn===void 0?void 0:sn.call(ts).required)!==null&&ln!==void 0?ln:!1}),re=n++,ke=a.reactive({id:re,path:R,touched:!1,pending:!1,valid:!0,validated:!!(!((I=B[U])===null||I===void 0)&&I.length),required:K,initialValue:te,errors:a.shallowRef([]),bails:(Y=O==null?void 0:O.bails)!==null&&Y!==void 0?Y:!1,label:O==null?void 0:O.label,type:(O==null?void 0:O.type)||"default",value:V,multiple:!1,__flags:{pendingUnmount:{[re]:!1},pendingReset:!1},fieldsCount:1,validate:O==null?void 0:O.validate,dirty:a.computed(()=>!lr(a.unref(V),a.unref(te)))});return u.value.push(ke),h.value[U]=ke,g(),y.value[U]&&!B[U]&&a.nextTick(()=>{rt(U,{mode:"silent"})}),a.isRef(R)&&a.watch(R,Ne=>{g();const He=xe(V.value);h.value[Ne]=ke,a.nextTick(()=>{At(d,Ne,He)})}),ke}const M=ol(ht,5),T=ol(ht,5),F=Ng(async R=>await(R==="silent"?M():T()),(R,[O])=>{const I=ct(ue.errorBag.value),te=[...new Set([...ct(R.results),...u.value.map(le=>le.path),...I])].sort().reduce((le,Z)=>{var V;const U=Z,G=W(U)||z(U),K=((V=R.results[U])===null||V===void 0?void 0:V.errors)||[],re=a.toValue(G==null?void 0:G.path)||U,ke=Gg({errors:K,valid:!K.length},le.results[re]);return le.results[re]=ke,ke.valid||(le.errors[re]=ke.errors[0]),G&&f.value[re]&&delete f.value[re],G?(G.valid=ke.valid,O==="silent"||O==="validated-only"&&!G.validated||m(G,ke.errors),le):(m(re,K),le)},{valid:R.valid,results:{},errors:{},source:R.source});return R.values&&(te.values=R.values,te.source=R.source),ct(te.results).forEach(le=>{var Z;const V=W(le);V&&O!=="silent"&&(O==="validated-only"&&!V.validated||m(V,(Z=te.results[le])===null||Z===void 0?void 0:Z.errors))}),te});function $(R){u.value.forEach(R)}function W(R){const O=typeof R=="string"?wn(R):R;return typeof O=="string"?h.value[O]:O}function z(R){return u.value.filter(I=>R.startsWith(a.toValue(I.path))).reduce((I,Y)=>I?Y.path.length>I.path.length?Y:I:Y,void 0)}let A=[],j;function J(R){return A.push(R),j||(j=a.nextTick(()=>{[...A].sort().reverse().forEach(I=>{tl(d,I)}),A=[],j=null})),j}function oe(R){return function(I,Y){return function(le){return le instanceof Event&&(le.preventDefault(),le.stopPropagation()),$(Z=>Z.touched=!0),i.value=!0,l.value++,Pe().then(Z=>{const V=xe(d);if(Z.valid&&typeof I=="function"){const U=xe(N.value);let G=R?U:V;return Z.values&&(G=Z.source==="schema"?Z.values:Object.assign({},G,Z.values)),I(G,{evt:le,controlledValues:U,setErrors:p,setFieldError:m,setTouched:me,setFieldTouched:ft,setValues:Xe,setFieldValue:De,resetForm:pe,resetField:ge})}!Z.valid&&typeof Y=="function"&&Y({values:V,evt:le,errors:Z.errors,results:Z.results})}).then(Z=>(i.value=!1,Z),Z=>{throw i.value=!1,Z})}}}const X=oe(!1);X.withControlled=oe(!0);function Q(R,O){const I=u.value.findIndex(te=>te.path===R&&(Array.isArray(te.id)?te.id.includes(O):te.id===O)),Y=u.value[I];if(!(I===-1||!Y)){if(a.nextTick(()=>{rt(R,{mode:"silent",warn:!1})}),Y.multiple&&Y.fieldsCount&&Y.fieldsCount--,Array.isArray(Y.id)){const te=Y.id.indexOf(O);te>=0&&Y.id.splice(te,1),delete Y.__flags.pendingUnmount[O]}(!Y.multiple||Y.fieldsCount<=0)&&(u.value.splice(I,1),Pt(R),g(),delete h.value[R])}}function ie(R){ct(h.value).forEach(O=>{O.startsWith(R)&&delete h.value[O]}),u.value=u.value.filter(O=>!O.path.startsWith(R)),a.nextTick(()=>{g()})}const ue={name:r,formId:o,values:d,controlledValues:N,errorBag:b,errors:y,schema:E,submitCount:l,meta:S,isSubmitting:i,isValidating:s,fieldArrays:c,keepValuesOnUnmount:w,validateSchema:a.unref(E)?F:void 0,validate:Pe,setFieldError:m,validateField:rt,setFieldValue:De,setValues:Xe,setErrors:p,setFieldTouched:ft,setTouched:me,resetForm:pe,resetField:ge,handleSubmit:X,useFieldModel:$o,defineInputBinds:ee,defineComponentBinds:Ct,defineField:mo,stageInitialValue:ze,unsetInitialValue:Pt,setFieldInitialValue:nt,createPathState:D,getPathState:W,unsetPathValue:J,removePathState:Q,initialValues:_,getAllPathStates:()=>u.value,destroyPath:ie,isFieldTouched:q,isFieldDirty:L,isFieldValid:he};function De(R,O,I=!0){const Y=xe(O),te=typeof R=="string"?R:R.path;W(te)||D(te),At(d,te,Y),I&&rt(te)}function lt(R,O=!0){ct(d).forEach(I=>{delete d[I]}),ct(R).forEach(I=>{De(I,R[I],!1)}),O&&Pe()}function Xe(R,O=!0){sr(d,R),c.forEach(I=>I&&I.reset()),O&&Pe()}function wt(R,O){const I=W(a.toValue(R))||D(R);return a.computed({get(){return I.value},set(Y){var te;const le=a.toValue(R);De(le,Y,(te=a.toValue(O))!==null&&te!==void 0?te:!1)}})}function ft(R,O){const I=W(R);I&&(I.touched=O)}function q(R){const O=W(R);return O?O.touched:u.value.filter(I=>I.path.startsWith(R)).some(I=>I.touched)}function L(R){const O=W(R);return O?O.dirty:u.value.filter(I=>I.path.startsWith(R)).some(I=>I.dirty)}function he(R){const O=W(R);return O?O.valid:u.value.filter(I=>I.path.startsWith(R)).every(I=>I.valid)}function me(R){if(typeof R=="boolean"){$(O=>{O.touched=R});return}ct(R).forEach(O=>{ft(O,!!R[O])})}function ge(R,O){var I;const Y=O&&"value"in O?O.value:$t(_.value,R),te=W(R);te&&(te.__flags.pendingReset=!0),nt(R,xe(Y),!0),De(R,Y,!1),ft(R,(I=O==null?void 0:O.touched)!==null&&I!==void 0?I:!1),m(R,(O==null?void 0:O.errors)||[]),a.nextTick(()=>{te&&(te.__flags.pendingReset=!1)})}function pe(R,O){let I=xe(R!=null&&R.values?R.values:v.value);I=O!=null&&O.force?I:sr(v.value,I),I=Kt(E)&&pt(E.cast)?E.cast(I):I,k(I,{force:O==null?void 0:O.force}),$(Y=>{var te;Y.__flags.pendingReset=!0,Y.validated=!1,Y.touched=((te=R==null?void 0:R.touched)===null||te===void 0?void 0:te[a.toValue(Y.path)])||!1,De(a.toValue(Y.path),$t(I,a.toValue(Y.path)),!1),m(a.toValue(Y.path),void 0)}),O!=null&&O.force?lt(I,!1):Xe(I,!1),p((R==null?void 0:R.errors)||{}),l.value=(R==null?void 0:R.submitCount)||0,a.nextTick(()=>{Pe({mode:"silent"}),$(Y=>{Y.__flags.pendingReset=!1})})}async function Pe(R){const O=(R==null?void 0:R.mode)||"force";if(O==="force"&&$(Z=>Z.validated=!0),ue.validateSchema)return ue.validateSchema(O);s.value=!0;const I=await Promise.all(u.value.map(Z=>Z.validate?Z.validate(R).then(V=>({key:a.toValue(Z.path),valid:V.valid,errors:V.errors,value:V.value})):Promise.resolve({key:a.toValue(Z.path),valid:!0,errors:[],value:void 0})));s.value=!1;const Y={},te={},le={};for(const Z of I)Y[Z.key]={valid:Z.valid,errors:Z.errors},Z.value&&At(le,Z.key,Z.value),Z.errors.length&&(te[Z.key]=Z.errors[0]);return{valid:I.every(Z=>Z.valid),results:Y,errors:te,values:le,source:"fields"}}async function rt(R,O){var I;const Y=W(R);return Y&&(O==null?void 0:O.mode)!=="silent"&&(Y.validated=!0),Y!=null&&Y.validate?Y.validate(O):(!Y&&(I=O==null?void 0:O.warn),Promise.resolve({errors:[],valid:!0}))}function Pt(R){tl(_.value,R)}function ze(R,O,I=!1){nt(R,O),At(d,R,O),I&&At(v.value,R,xe(O))}function nt(R,O,I=!1){At(_.value,R,xe(O)),I&&At(v.value,R,xe(O))}async function ht(){const R=a.unref(E);if(!R)return{valid:!0,results:{},errors:{},source:"none"};s.value=!0;const O=Gs(R)||Kt(R)?await Ug(R,d):await qg(R,d,{names:x.value,bailsMap:C.value});return s.value=!1,O}const go=X((R,{evt:O})=>{Dg(O)&&O.target.submit()});a.onMounted(()=>{ue.validateSchema&&ue.validateSchema("silent")}),a.isRef(E)&&a.watch(E,()=>{var R;(R=ue.validateSchema)===null||R===void 0||R.call(ue,"validated-only")}),a.provide(wg,ue);function mo(R,O){const I=pt(O)||O==null?void 0:O.label,Y=W(a.toValue(R))||D(R,{label:I}),te=()=>pt(O)?O(_n(Y,Sn)):O||{};function le(){var K;Y.touched=!0,((K=te().validateOnBlur)!==null&&K!==void 0?K:cr().validateOnBlur)&&rt(a.toValue(Y.path))}function Z(){var K;((K=te().validateOnInput)!==null&&K!==void 0?K:cr().validateOnInput)&&a.nextTick(()=>{rt(a.toValue(Y.path))})}function V(){var K;((K=te().validateOnChange)!==null&&K!==void 0?K:cr().validateOnChange)&&a.nextTick(()=>{rt(a.toValue(Y.path))})}const U=a.computed(()=>{const K={onChange:V,onInput:Z,onBlur:le};return pt(O)?Object.assign(Object.assign({},K),O(_n(Y,Sn)).props||{}):O!=null&&O.props?Object.assign(Object.assign({},K),O.props(_n(Y,Sn))):K});return[wt(R,()=>{var K,re,ke;return(ke=(K=te().validateOnModelUpdate)!==null&&K!==void 0?K:(re=cr())===null||re===void 0?void 0:re.validateOnModelUpdate)!==null&&ke!==void 0?ke:!0}),U]}function $o(R){return Array.isArray(R)?R.map(O=>wt(O,!0)):wt(R)}function ee(R,O){const[I,Y]=mo(R,O);function te(){Y.value.onBlur()}function le(V){const U=il(V);De(a.toValue(R),U,!1),Y.value.onInput()}function Z(V){const U=il(V);De(a.toValue(R),U,!1),Y.value.onChange()}return a.computed(()=>Object.assign(Object.assign({},Y.value),{onBlur:te,onInput:le,onChange:Z,value:I.value}))}function Ct(R,O){const[I,Y]=mo(R,O),te=W(a.toValue(R));function le(Z){I.value=Z}return a.computed(()=>{const Z=pt(O)?O(_n(te,Sn)):O||{};return Object.assign({[Z.model||"modelValue"]:I.value,[`onUpdate:${Z.model||"modelValue"}`]:le},Y.value)})}const Me=Object.assign(Object.assign({},ue),{values:a.readonly(d),handleReset:()=>pe(),submitForm:go});return a.provide(Cg,Me),Me}function Xg(t,e,o,r){const n={touched:"some",pending:"some",valid:"every"},i=a.computed(()=>!lr(e,a.unref(o)));function s(){const c=t.value;return ct(n).reduce((d,u)=>{const f=n[u];return d[u]=c[f](h=>h[u]),d},{})}const l=a.reactive(s());return a.watchEffect(()=>{const c=s();l.touched=c.touched,l.valid=c.valid,l.pending=c.pending}),a.computed(()=>Object.assign(Object.assign({initialValues:a.unref(o)},l),{valid:l.valid&&!ct(r.value).length,dirty:i.value}))}function Kg(t,e,o){const r=cl(),n=a.ref(r),i=a.ref(xe(r));function s(l,c){c!=null&&c.force?(n.value=xe(l),i.value=xe(l)):(n.value=sr(xe(n.value)||{},xe(l)),i.value=sr(xe(i.value)||{},xe(l))),c!=null&&c.updateFields&&t.value.forEach(d=>{if(d.touched)return;const f=$t(n.value,a.toValue(d.path));At(e,a.toValue(d.path),xe(f))})}return{initialValues:n,originalInitialValues:i,setInitialValues:s}}function Gg(t,e){return e?{valid:t.valid&&e.valid,errors:[...t.errors,...e.errors]}:t}function ul(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hi,fl;function Qg(){if(fl)return Hi;fl=1;function t(y){this._maxSize=y,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(y){return this._values[y]},t.prototype.set=function(y,x){return this._size>=this._maxSize&&this.clear(),y in this._values||this._size++,this._values[y]=x};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,o=/^\d+$/,r=/^\d/,n=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,s=512,l=new t(s),c=new t(s),d=new t(s);Hi={Cache:t,split:f,normalizePath:u,setter:function(y){var x=u(y);return c.get(y)||c.set(y,function(B,w){for(var _=0,v=x.length,k=B;_<v-1;){var S=x[_];if(S==="__proto__"||S==="constructor"||S==="prototype")return B;k=k[x[_++]]}k[x[_]]=w})},getter:function(y,x){var C=u(y);return d.get(y)||d.set(y,function(w){for(var _=0,v=C.length;_<v;)if(w!=null||!x)w=w[C[_++]];else return;return w})},join:function(y){return y.reduce(function(x,C){return x+(g(C)||o.test(C)?"["+C+"]":(x?".":"")+C)},"")},forEach:function(y,x,C){h(Array.isArray(y)?y:f(y),x,C)}};function u(y){return l.get(y)||l.set(y,f(y).map(function(x){return x.replace(i,"$2")}))}function f(y){return y.match(e)||[""]}function h(y,x,C){var B=y.length,w,_,v,k;for(_=0;_<B;_++)w=y[_],w&&(b(w)&&(w='"'+w+'"'),k=g(w),v=!k&&/^\d+$/.test(w),x.call(C,w,k,v,_,y))}function g(y){return typeof y=="string"&&y&&["'",'"'].indexOf(y.charAt(0))!==-1}function m(y){return y.match(r)&&!y.match(o)}function p(y){return n.test(y)}function b(y){return!g(y)&&(m(y)||p(y))}return Hi}var ko=Qg(),Ui,hl;function Jg(){if(hl)return Ui;hl=1;const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,e=u=>u.match(t)||[],o=u=>u[0].toUpperCase()+u.slice(1),r=(u,f)=>e(u).join(f).toLowerCase(),n=u=>e(u).reduce((f,h)=>`${f}${f?h[0].toUpperCase()+h.slice(1).toLowerCase():h.toLowerCase()}`,"");return Ui={words:e,upperFirst:o,camelCase:n,pascalCase:u=>o(n(u)),snakeCase:u=>r(u,"_"),kebabCase:u=>r(u,"-"),sentenceCase:u=>o(r(u," ")),titleCase:u=>e(u).map(o).join(" ")},Ui}var qi=Jg(),Bn={exports:{}},gl;function Zg(){if(gl)return Bn.exports;gl=1,Bn.exports=function(n){return t(e(n),n)},Bn.exports.array=t;function t(n,i){var s=n.length,l=new Array(s),c={},d=s,u=o(i),f=r(n);for(i.forEach(function(g){if(!f.has(g[0])||!f.has(g[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)c[d]||h(n[d],d,new Set);return l;function h(g,m,p){if(p.has(g)){var b;try{b=", node was:"+JSON.stringify(g)}catch{b=""}throw new Error("Cyclic dependency"+b)}if(!f.has(g))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(g));if(!c[m]){c[m]=!0;var y=u.get(g)||new Set;if(y=Array.from(y),m=y.length){p.add(g);do{var x=y[--m];h(x,f.get(x),p)}while(m);p.delete(g)}l[--s]=g}}}function e(n){for(var i=new Set,s=0,l=n.length;s<l;s++){var c=n[s];i.add(c[0]),i.add(c[1])}return Array.from(i)}function o(n){for(var i=new Map,s=0,l=n.length;s<l;s++){var c=n[s];i.has(c[0])||i.set(c[0],new Set),i.has(c[1])||i.set(c[1],new Set),i.get(c[0]).add(c[1])}return i}function r(n){for(var i=new Map,s=0,l=n.length;s<l;s++)i.set(n[s],s);return i}return Bn.exports}var em=Zg();const tm=ul(em),om=Object.prototype.toString,rm=Error.prototype.toString,nm=RegExp.prototype.toString,im=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",am=/^Symbol\((.*)\)(.*)$/;function sm(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function ml(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const o=typeof t;if(o==="number")return sm(t);if(o==="string")return e?`"${t}"`:t;if(o==="function")return"[Function "+(t.name||"anonymous")+"]";if(o==="symbol")return im.call(t).replace(am,"Symbol($1)");const r=om.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+rm.call(t)+"]":r==="RegExp"?nm.call(t):null}function Gt(t,e){let o=ml(t,e);return o!==null?o:JSON.stringify(t,function(r,n){let i=ml(this[r],e);return i!==null?i:n},2)}function pl(t){return t==null?[]:[].concat(t)}let bl,yl,kl,lm=/\$\{\s*(\w+)\s*\}/g;bl=Symbol.toStringTag;class xl{constructor(e,o,r,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[bl]="Error",this.name="ValidationError",this.value=o,this.path=r,this.type=n,this.errors=[],this.inner=[],pl(e).forEach(i=>{if(Ze.isError(i)){this.errors.push(...i.errors);const s=i.inner.length?i.inner:[i];this.inner.push(...s)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}yl=Symbol.hasInstance,kl=Symbol.toStringTag;class Ze extends Error{static formatError(e,o){const r=o.label||o.path||"this";return o=Object.assign({},o,{path:r,originalPath:o.path}),typeof e=="string"?e.replace(lm,(n,i)=>Gt(o[i])):typeof e=="function"?e(o):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,o,r,n,i){const s=new xl(e,o,r,n);if(i)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[kl]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Ze)}static[yl](e){return xl[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let St={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:o,originalValue:r})=>{const n=r!=null&&r!==o?` (cast from the value \`${Gt(r,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Gt(o,!0)}\``+n:`${t} must match the configured type. The validated value was: \`${Gt(o,!0)}\``+n}},et={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},cm={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Yi={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},dm={isValue:"${path} field must be ${value}"},En={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:St,string:et,number:cm,date:Yi,object:En,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:dm,tuple:{notType:t=>{const{path:e,value:o,spec:r}=t,n=r.types.length;if(Array.isArray(o)){if(o.length<n)return`${e} tuple value has too few items, expected a length of ${n} but got ${o.length} for value: \`${Gt(o,!0)}\``;if(o.length>n)return`${e} tuple value has too many items, expected a length of ${n} but got ${o.length} for value: \`${Gt(o,!0)}\``}return Ze.formatError(St.notType,t)}}});const Xi=t=>t&&t.__isYupSchema__;class Rn{static fromOptions(e,o){if(!o.then&&!o.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:i}=o,s=typeof r=="function"?r:(...l)=>l.every(c=>c===r);return new Rn(e,(l,c)=>{var d;let u=s(...l)?n:i;return(d=u==null?void 0:u(c))!=null?d:c})}constructor(e,o){this.fn=void 0,this.refs=e,this.refs=e,this.fn=o}resolve(e,o){let r=this.refs.map(i=>i.getValue(o==null?void 0:o.value,o==null?void 0:o.parent,o==null?void 0:o.context)),n=this.fn(r,e,o);if(n===void 0||n===e)return e;if(!Xi(n))throw new TypeError("conditions must return a schema object");return n.resolve(o)}}const On={context:"$",value:"."};class xo{constructor(e,o={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===On.context,this.isValue=this.key[0]===On.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?On.context:this.isValue?On.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&ko.getter(this.path,!0),this.map=o.map}getValue(e,o,r){let n=this.isContext?r:this.isValue?e:o;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,o){return this.getValue(e,o==null?void 0:o.parent,o==null?void 0:o.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}xo.prototype.__isYupRef=!0;const vo=t=>t==null;function Io(t){function e({value:o,path:r="",options:n,originalValue:i,schema:s},l,c){const{name:d,test:u,params:f,message:h,skipAbsent:g}=t;let{parent:m,context:p,abortEarly:b=s.spec.abortEarly,disableStackTrace:y=s.spec.disableStackTrace}=n;function x(E){return xo.isRef(E)?E.getValue(o,m,p):E}function C(E={}){const D=Object.assign({value:o,originalValue:i,label:s.spec.label,path:E.path||r,spec:s.spec,disableStackTrace:E.disableStackTrace||y},f,E.params);for(const T of Object.keys(D))D[T]=x(D[T]);const M=new Ze(Ze.formatError(E.message||h,D),o,D.path,E.type||d,D.disableStackTrace);return M.params=D,M}const B=b?l:c;let w={path:r,parent:m,type:d,from:n.from,createError:C,resolve:x,options:n,originalValue:i,schema:s};const _=E=>{Ze.isError(E)?B(E):E?c(null):B(C())},v=E=>{Ze.isError(E)?B(E):l(E)};if(g&&vo(o))return _(!0);let S;try{var N;if(S=u.call(w,o,w),typeof((N=S)==null?void 0:N.then)=="function"){if(n.sync)throw new Error(`Validation test of type: "${w.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(S).then(_,v)}}catch(E){v(E);return}_(S)}return e.OPTIONS=t,e}function um(t,e,o,r=o){let n,i,s;return e?(ko.forEach(e,(l,c,d)=>{let u=c?l.slice(1,l.length-1):l;t=t.resolve({context:r,parent:n,value:o});let f=t.type==="tuple",h=d?parseInt(u,10):0;if(t.innerType||f){if(f&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(o&&h>=o.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${e}. because there is no value at that index. `);n=o,o=o&&o[h],t=f?t.spec.types[h]:t.innerType}if(!d){if(!t.fields||!t.fields[u])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${s} which is a type: "${t.type}")`);n=o,o=o&&o[u],t=t.fields[u]}i=u,s=c?"["+l+"]":"."+l}),{schema:t,parent:n,parentPath:i}):{parent:n,parentPath:e,schema:t}}class Dn extends Set{describe(){const e=[];for(const o of this.values())e.push(xo.isRef(o)?o.describe():o);return e}resolveAll(e){let o=[];for(const r of this.values())o.push(e(r));return o}clone(){return new Dn(this.values())}merge(e,o){const r=this.clone();return e.forEach(n=>r.add(n)),o.forEach(n=>r.delete(n)),r}}function Lo(t,e=new Map){if(Xi(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let o;if(t instanceof Date)o=new Date(t.getTime()),e.set(t,o);else if(t instanceof RegExp)o=new RegExp(t),e.set(t,o);else if(Array.isArray(t)){o=new Array(t.length),e.set(t,o);for(let r=0;r<t.length;r++)o[r]=Lo(t[r],e)}else if(t instanceof Map){o=new Map,e.set(t,o);for(const[r,n]of t.entries())o.set(r,Lo(n,e))}else if(t instanceof Set){o=new Set,e.set(t,o);for(const r of t)o.add(Lo(r,e))}else if(t instanceof Object){o={},e.set(t,o);for(const[r,n]of Object.entries(t))o[r]=Lo(n,e)}else throw Error(`Unable to clone ${t}`);return o}class Bt{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Dn,this._blacklist=new Dn,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(St.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(o=>{o.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const o=Object.create(Object.getPrototypeOf(this));return o.type=this.type,o._typeCheck=this._typeCheck,o._whitelist=this._whitelist.clone(),o._blacklist=this._blacklist.clone(),o.internalTests=Object.assign({},this.internalTests),o.exclusiveTests=Object.assign({},this.exclusiveTests),o.deps=[...this.deps],o.conditions=[...this.conditions],o.tests=[...this.tests],o.transforms=[...this.transforms],o.spec=Lo(Object.assign({},this.spec,e)),o}label(e){let o=this.clone();return o.spec.label=e,o}meta(...e){if(e.length===0)return this.spec.meta;let o=this.clone();return o.spec.meta=Object.assign(o.spec.meta||{},e[0]),o}withMutation(e){let o=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=o,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let o=this,r=e.clone();const n=Object.assign({},o.spec,r.spec);return r.spec=n,r.internalTests=Object.assign({},o.internalTests,r.internalTests),r._whitelist=o._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=o._blacklist.merge(e._blacklist,e._whitelist),r.tests=o.tests,r.exclusiveTests=o.exclusiveTests,r.withMutation(i=>{e.tests.forEach(s=>{i.test(s.OPTIONS)})}),r.transforms=[...o.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let o=this;if(o.conditions.length){let r=o.conditions;o=o.clone(),o.conditions=[],o=r.reduce((n,i)=>i.resolve(n,e),o),o=o.resolve(e)}return o}resolveOptions(e){var o,r,n,i;return Object.assign({},e,{from:e.from||[],strict:(o=e.strict)!=null?o:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(n=e.recursive)!=null?n:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,o={}){let r=this.resolve(Object.assign({value:e},o)),n=o.assert==="ignore-optionality",i=r._cast(e,o);if(o.assert!==!1&&!r.isType(i)){if(n&&vo(i))return i;let s=Gt(e),l=Gt(i);throw new TypeError(`The value of ${o.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
15
|
+
*/function pt(t){return typeof t=="function"}function Xs(t){return t==null}const Lo=t=>t!==null&&!!t&&typeof t=="object"&&!Array.isArray(t);function Ii(t){return Number(t)>=0}function kg(t){return typeof t=="object"&&t!==null}function xg(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function Ks(t){if(!kg(t)||xg(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function sr(t,e){return Object.keys(e).forEach(o=>{if(Ks(e[o])&&Ks(t[o])){t[o]||(t[o]={}),sr(t[o],e[o]);return}t[o]=e[o]}),t}function wn(t){const e=t.split(".");if(!e.length)return"";let o=String(e[0]);for(let r=1;r<e.length;r++){if(Ii(e[r])){o+=`[${e[r]}]`;continue}o+=`.${e[r]}`}return o}const vg={};function wg(t){return vg[t]}function Gs(t,e,o){typeof o.value=="object"&&(o.value=ve(o.value)),!o.enumerable||o.get||o.set||!o.configurable||!o.writable||e==="__proto__"?Object.defineProperty(t,e,o):t[e]=o.value}function ve(t){if(typeof t!="object")return t;var e=0,o,r,n,i=Object.prototype.toString.call(t);if(i==="[object Object]"?n=Object.create(t.__proto__||null):i==="[object Array]"?n=Array(t.length):i==="[object Set]"?(n=new Set,t.forEach(function(a){n.add(ve(a))})):i==="[object Map]"?(n=new Map,t.forEach(function(a,l){n.set(ve(l),ve(a))})):i==="[object Date]"?n=new Date(+t):i==="[object RegExp]"?n=new RegExp(t.source,t.flags):i==="[object DataView]"?n=new t.constructor(ve(t.buffer)):i==="[object ArrayBuffer]"?n=t.slice(0):i.slice(-6)==="Array]"&&(n=new t.constructor(t)),n){for(r=Object.getOwnPropertySymbols(t);e<r.length;e++)Gs(n,r[e],Object.getOwnPropertyDescriptor(t,r[e]));for(e=0,r=Object.getOwnPropertyNames(t);e<r.length;e++)Object.hasOwnProperty.call(n,o=r[e])&&n[o]===t[o]||Gs(n,o,Object.getOwnPropertyDescriptor(t,o))}return n||t}const Cg=Symbol("vee-validate-form"),_g=Symbol("vee-validate-form-context"),Sg=typeof window<"u";function Bg(t){return pt(t)&&!!t.__locatorRef}function Kt(t){return!!t&&pt(t.parse)&&t.__type==="VVTypedSchema"}function Qs(t){return!!t&&pt(t.validate)}function Eg(t){return t==="checkbox"||t==="radio"}function Rg(t){return Lo(t)||Array.isArray(t)}function Og(t){return Array.isArray(t)?t.length===0:Lo(t)&&Object.keys(t).length===0}function Cn(t){return/^\[.+\]$/i.test(t)}function Dg(t){return Js(t)&&t.multiple}function Js(t){return t.tagName==="SELECT"}function Ng(t){return Zs(t)&&t.target&&"submit"in t.target}function Zs(t){return t?!!(typeof Event<"u"&&pt(Event)&&t instanceof Event||t&&t.srcElement):!1}function lr(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,r,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(r=o;r--!==0;)if(!lr(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!lr(r[1],e.get(r[0])))return!1;return!0}if(tl(t)&&tl(e))return!(t.size!==e.size||t.name!==e.name||t.lastModified!==e.lastModified||t.type!==e.type);if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(o=t.length,o!=e.length)return!1;for(r=o;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(n=Object.keys(t),o=n.length-el(t,n),o!==Object.keys(e).length-el(e,Object.keys(e)))return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[r]))return!1;for(r=o;r--!==0;){var i=n[r];if(!lr(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function el(t,e){let o=0;for(let n=e.length;n--!==0;){var r=e[n];t[r]===void 0&&o++}return o}function tl(t){return Sg?t instanceof File:!1}function zi(t){return Cn(t)?t.replace(/\[|\]/gi,""):t}function At(t,e,o){return t?Cn(e)?t[zi(e)]:(e||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((n,i)=>Rg(n)&&i in n?n[i]:o,t):o}function $t(t,e,o){if(Cn(e)){t[zi(e)]=o;return}const r=e.split(/\.|\[(\d+)\]/).filter(Boolean);let n=t;for(let i=0;i<r.length;i++){if(i===r.length-1){n[r[i]]=o;return}(!(r[i]in n)||Xs(n[r[i]]))&&(n[r[i]]=Ii(r[i+1])?[]:{}),n=n[r[i]]}}function ji(t,e){if(Array.isArray(t)&&Ii(e)){t.splice(Number(e),1);return}Lo(t)&&delete t[e]}function ol(t,e){if(Cn(e)){delete t[zi(e)];return}const o=e.split(/\.|\[(\d+)\]/).filter(Boolean);let r=t;for(let i=0;i<o.length;i++){if(i===o.length-1){ji(r,o[i]);break}if(!(o[i]in r)||Xs(r[o[i]]))break;r=r[o[i]]}const n=o.map((i,a)=>At(t,o.slice(0,a).join(".")));for(let i=n.length-1;i>=0;i--)if(Og(n[i])){if(i===0){ji(t,o[0]);continue}ji(n[i-1],o[i-1])}}function ct(t){return Object.keys(t)}function rl(t,e=0){let o=null,r=[];return function(...n){return o&&clearTimeout(o),o=setTimeout(()=>{const i=t(...n);r.forEach(a=>a(i)),r=[]},e),new Promise(i=>r.push(i))}}function Tg(t,e){let o;return async function(...n){const i=t(...n);o=i;const a=await i;return i!==o?a:(o=void 0,e(a,n))}}function nl(t){return Array.isArray(t)?t:t?[t]:[]}function _n(t,e){const o={};for(const r in t)e.includes(r)||(o[r]=t[r]);return o}function Pg(t){let e=null,o=[];return function(...r){const n=s.nextTick(()=>{if(e!==n)return;const i=t(...r);o.forEach(a=>a(i)),o=[],e=null});return e=n,new Promise(i=>o.push(i))}}function Wi(t){if(il(t))return t._value}function il(t){return"_value"in t}function Ag(t){return t.type==="number"||t.type==="range"?Number.isNaN(t.valueAsNumber)?t.value:t.valueAsNumber:t.value}function al(t){if(!Zs(t))return t;const e=t.target;if(Eg(e.type)&&il(e))return Wi(e);if(e.type==="file"&&e.files){const o=Array.from(e.files);return e.multiple?o:o[0]}if(Dg(e))return Array.from(e.options).filter(o=>o.selected&&!o.disabled).map(Wi);if(Js(e)){const o=Array.from(e.options).find(r=>r.selected);return o?Wi(o):e.value}return Ag(e)}function $g(t){const e={};return Object.defineProperty(e,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),t?Lo(t)&&t._$$isNormalized?t:Lo(t)?Object.keys(t).reduce((o,r)=>{const n=Mg(t[r]);return t[r]!==!1&&(o[r]=sl(n)),o},e):typeof t!="string"?e:t.split("|").reduce((o,r)=>{const n=Fg(r);return n.name&&(o[n.name]=sl(n.params)),o},e):e}function Mg(t){return t===!0?[]:Array.isArray(t)||Lo(t)?t:[t]}function sl(t){const e=o=>typeof o=="string"&&o[0]==="@"?Vg(o.slice(1)):o;return Array.isArray(t)?t.map(e):t instanceof RegExp?[t]:Object.keys(t).reduce((o,r)=>(o[r]=e(t[r]),o),{})}const Fg=t=>{let e=[];const o=t.split(":")[0];return t.includes(":")&&(e=t.split(":").slice(1).join(":").split(",")),{name:o,params:e}};function Vg(t){const e=o=>{var r;return(r=At(o,t))!==null&&r!==void 0?r:o[t]};return e.__locatorRef=t,e}let Lg=Object.assign({},{generateMessage:({field:t})=>`${t} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const cr=()=>Lg;async function Ig(t,e,o={}){const r=o==null?void 0:o.bails,n={name:(o==null?void 0:o.name)||"{field}",rules:e,label:o==null?void 0:o.label,bails:r??!0,formData:(o==null?void 0:o.values)||{}},i=await zg(n,t);return Object.assign(Object.assign({},i),{valid:!i.errors.length})}async function zg(t,e){const o=t.rules;if(Kt(o)||Qs(o))return Wg(e,Object.assign(Object.assign({},t),{rules:o}));if(pt(o)||Array.isArray(o)){const l={field:t.label||t.name,name:t.name,label:t.label,form:t.formData,value:e},c=Array.isArray(o)?o:[o],d=c.length,u=[];for(let f=0;f<d;f++){const h=c[f],g=await h(e,l);if(!(typeof g!="string"&&!Array.isArray(g)&&g)){if(Array.isArray(g))u.push(...g);else{const p=typeof g=="string"?g:cl(l);u.push(p)}if(t.bails)return{errors:u}}}return{errors:u}}const r=Object.assign(Object.assign({},t),{rules:$g(o)}),n=[],i=Object.keys(r.rules),a=i.length;for(let l=0;l<a;l++){const c=i[l],d=await Hg(r,e,{name:c,params:r.rules[c]});if(d.error&&(n.push(d.error),t.bails))return{errors:n}}return{errors:n}}function jg(t){return!!t&&t.name==="ValidationError"}function ll(t){return{__type:"VVTypedSchema",async parse(o,r){var n;try{return{output:await t.validate(o,{abortEarly:!1,context:(r==null?void 0:r.formData)||{}}),errors:[]}}catch(i){if(!jg(i))throw i;if(!(!((n=i.inner)===null||n===void 0)&&n.length)&&i.errors.length)return{errors:[{path:i.path,errors:i.errors}]};const a=i.inner.reduce((l,c)=>{const d=c.path||"";return l[d]||(l[d]={errors:[],path:d}),l[d].errors.push(...c.errors),l},{});return{errors:Object.values(a)}}}}}async function Wg(t,e){const r=await(Kt(e.rules)?e.rules:ll(e.rules)).parse(t,{formData:e.formData}),n=[];for(const i of r.errors)i.errors.length&&n.push(...i.errors);return{value:r.value,errors:n}}async function Hg(t,e,o){const r=wg(o.name);if(!r)throw new Error(`No such validator '${o.name}' exists.`);const n=Ug(o.params,t.formData),i={field:t.label||t.name,name:t.name,label:t.label,value:e,form:t.formData,rule:Object.assign(Object.assign({},o),{params:n})},a=await r(e,n,i);return typeof a=="string"?{error:a}:{error:a?void 0:cl(i)}}function cl(t){const e=cr().generateMessage;return e?e(t):"Field is invalid"}function Ug(t,e){const o=r=>Bg(r)?r(e):r;return Array.isArray(t)?t.map(o):Object.keys(t).reduce((r,n)=>(r[n]=o(t[n]),r),{})}async function qg(t,e){const r=await(Kt(t)?t:ll(t)).parse(ve(e),{formData:ve(e)}),n={},i={};for(const a of r.errors){const l=a.errors,c=(a.path||"").replace(/\["(\d+)"\]/g,(d,u)=>`[${u}]`);n[c]={valid:!l.length,errors:l},l.length&&(i[c]=l[0])}return{valid:!r.errors.length,results:n,errors:i,values:r.value,source:"schema"}}async function Yg(t,e,o){const n=ct(t).map(async d=>{var u,f,h;const g=(u=o==null?void 0:o.names)===null||u===void 0?void 0:u[d],m=await Ig(At(e,d),t[d],{name:(g==null?void 0:g.name)||d,label:g==null?void 0:g.label,values:e,bails:(h=(f=o==null?void 0:o.bailsMap)===null||f===void 0?void 0:f[d])!==null&&h!==void 0?h:!0});return Object.assign(Object.assign({},m),{path:d})});let i=!0;const a=await Promise.all(n),l={},c={};for(const d of a)l[d.path]={valid:d.valid,errors:d.errors},d.valid||(i=!1,c[d.path]=d.errors[0]);return{valid:i,results:l,errors:c,source:"schema"}}let Xg=0;const Sn=["bails","fieldsCount","id","multiple","type","validate"];function dl(t){const e={},o=Object.assign({},s.toValue(e)),r=s.unref(void 0);return r&&Kt(r)&&pt(r.cast)?ve(r.cast(o)||{}):ve(o)}function ul(t){var e;const o=Xg++,r="Form";let n=0;const i=s.ref(!1),a=s.ref(!1),l=s.ref(0),c=[],d=s.reactive(dl()),u=s.ref([]),f=s.ref({}),h=s.ref({}),g=Pg(()=>{h.value=u.value.reduce((R,O)=>(R[wn(s.toValue(O.path))]=O,R),{})});function m(R,O){const L=W(R);if(!L){typeof R=="string"&&(f.value[wn(R)]=nl(O));return}if(typeof R=="string"){const Y=wn(R);f.value[Y]&&delete f.value[Y]}L.errors=nl(O),L.valid=!L.errors.length}function p(R){ct(R).forEach(O=>{m(O,R[O])})}const b=s.computed(()=>{const R=u.value.reduce((O,L)=>(L.errors.length&&(O[s.toValue(L.path)]=L.errors),O),{});return Object.assign(Object.assign({},f.value),R)}),y=s.computed(()=>ct(b.value).reduce((R,O)=>{const L=b.value[O];return L!=null&&L.length&&(R[O]=L[0]),R},{})),x=s.computed(()=>u.value.reduce((R,O)=>(R[s.toValue(O.path)]={name:s.toValue(O.path)||"",label:O.label||""},R),{})),C=s.computed(()=>u.value.reduce((R,O)=>{var L;return R[s.toValue(O.path)]=(L=O.bails)!==null&&L!==void 0?L:!0,R},{})),B=Object.assign({},{}),w=(e=void 0)!==null&&e!==void 0?e:!1,{initialValues:_,originalInitialValues:v,setInitialValues:k}=Gg(u,d),S=Kg(u,d,v,y),N=s.computed(()=>u.value.reduce((R,O)=>{const L=At(d,s.toValue(O.path));return $t(R,s.toValue(O.path),L),R},{})),E=void 0;function D(R,O){var L,Y;const te=s.computed(()=>At(_.value,s.toValue(R))),le=h.value[s.toValue(R)],Z=(O==null?void 0:O.type)==="checkbox"||(O==null?void 0:O.type)==="radio";if(le&&Z){le.multiple=!0;const Ne=n++;return Array.isArray(le.id)?le.id.push(Ne):le.id=[le.id,Ne],le.fieldsCount++,le.__flags.pendingUnmount[Ne]=!1,le}const V=s.computed(()=>At(d,s.toValue(R))),U=s.toValue(R),G=$.findIndex(Ne=>Ne===U);G!==-1&&$.splice(G,1);const K=s.computed(()=>{var Ne,He,sn,ln;const cn=s.toValue(E);if(Kt(cn))return(He=(Ne=cn.describe)===null||Ne===void 0?void 0:Ne.call(cn,s.toValue(R)).required)!==null&&He!==void 0?He:!1;const ts=s.toValue(O==null?void 0:O.schema);return Kt(ts)&&(ln=(sn=ts.describe)===null||sn===void 0?void 0:sn.call(ts).required)!==null&&ln!==void 0?ln:!1}),re=n++,ke=s.reactive({id:re,path:R,touched:!1,pending:!1,valid:!0,validated:!!(!((L=B[U])===null||L===void 0)&&L.length),required:K,initialValue:te,errors:s.shallowRef([]),bails:(Y=O==null?void 0:O.bails)!==null&&Y!==void 0?Y:!1,label:O==null?void 0:O.label,type:(O==null?void 0:O.type)||"default",value:V,multiple:!1,__flags:{pendingUnmount:{[re]:!1},pendingReset:!1},fieldsCount:1,validate:O==null?void 0:O.validate,dirty:s.computed(()=>!lr(s.unref(V),s.unref(te)))});return u.value.push(ke),h.value[U]=ke,g(),y.value[U]&&!B[U]&&s.nextTick(()=>{ot(U,{mode:"silent"})}),s.isRef(R)&&s.watch(R,Ne=>{g();const He=ve(V.value);h.value[Ne]=ke,s.nextTick(()=>{$t(d,Ne,He)})}),ke}const M=rl(ht,5),T=rl(ht,5),F=Tg(async R=>await(R==="silent"?M():T()),(R,[O])=>{const L=ct(ue.errorBag.value),te=[...new Set([...ct(R.results),...u.value.map(le=>le.path),...L])].sort().reduce((le,Z)=>{var V;const U=Z,G=W(U)||z(U),K=((V=R.results[U])===null||V===void 0?void 0:V.errors)||[],re=s.toValue(G==null?void 0:G.path)||U,ke=Qg({errors:K,valid:!K.length},le.results[re]);return le.results[re]=ke,ke.valid||(le.errors[re]=ke.errors[0]),G&&f.value[re]&&delete f.value[re],G?(G.valid=ke.valid,O==="silent"||O==="validated-only"&&!G.validated||m(G,ke.errors),le):(m(re,K),le)},{valid:R.valid,results:{},errors:{},source:R.source});return R.values&&(te.values=R.values,te.source=R.source),ct(te.results).forEach(le=>{var Z;const V=W(le);V&&O!=="silent"&&(O==="validated-only"&&!V.validated||m(V,(Z=te.results[le])===null||Z===void 0?void 0:Z.errors))}),te});function A(R){u.value.forEach(R)}function W(R){const O=typeof R=="string"?wn(R):R;return typeof O=="string"?h.value[O]:O}function z(R){return u.value.filter(L=>R.startsWith(s.toValue(L.path))).reduce((L,Y)=>L?Y.path.length>L.path.length?Y:L:Y,void 0)}let $=[],j;function J(R){return $.push(R),j||(j=s.nextTick(()=>{[...$].sort().reverse().forEach(L=>{ol(d,L)}),$=[],j=null})),j}function oe(R){return function(L,Y){return function(le){return le instanceof Event&&(le.preventDefault(),le.stopPropagation()),A(Z=>Z.touched=!0),i.value=!0,l.value++,Te().then(Z=>{const V=ve(d);if(Z.valid&&typeof L=="function"){const U=ve(N.value);let G=R?U:V;return Z.values&&(G=Z.source==="schema"?Z.values:Object.assign({},G,Z.values)),L(G,{evt:le,controlledValues:U,setErrors:p,setFieldError:m,setTouched:me,setFieldTouched:ft,setValues:Ke,setFieldValue:De,resetForm:pe,resetField:ge})}!Z.valid&&typeof Y=="function"&&Y({values:V,evt:le,errors:Z.errors,results:Z.results})}).then(Z=>(i.value=!1,Z),Z=>{throw i.value=!1,Z})}}}const X=oe(!1);X.withControlled=oe(!0);function Q(R,O){const L=u.value.findIndex(te=>te.path===R&&(Array.isArray(te.id)?te.id.includes(O):te.id===O)),Y=u.value[L];if(!(L===-1||!Y)){if(s.nextTick(()=>{ot(R,{mode:"silent",warn:!1})}),Y.multiple&&Y.fieldsCount&&Y.fieldsCount--,Array.isArray(Y.id)){const te=Y.id.indexOf(O);te>=0&&Y.id.splice(te,1),delete Y.__flags.pendingUnmount[O]}(!Y.multiple||Y.fieldsCount<=0)&&(u.value.splice(L,1),Pt(R),g(),delete h.value[R])}}function ie(R){ct(h.value).forEach(O=>{O.startsWith(R)&&delete h.value[O]}),u.value=u.value.filter(O=>!O.path.startsWith(R)),s.nextTick(()=>{g()})}const ue={name:r,formId:o,values:d,controlledValues:N,errorBag:b,errors:y,schema:E,submitCount:l,meta:S,isSubmitting:i,isValidating:a,fieldArrays:c,keepValuesOnUnmount:w,validateSchema:s.unref(E)?F:void 0,validate:Te,setFieldError:m,validateField:ot,setFieldValue:De,setValues:Ke,setErrors:p,setFieldTouched:ft,setTouched:me,resetForm:pe,resetField:ge,handleSubmit:X,useFieldModel:$o,defineInputBinds:ee,defineComponentBinds:Ct,defineField:mo,stageInitialValue:ze,unsetInitialValue:Pt,setFieldInitialValue:rt,createPathState:D,getPathState:W,unsetPathValue:J,removePathState:Q,initialValues:_,getAllPathStates:()=>u.value,destroyPath:ie,isFieldTouched:q,isFieldDirty:I,isFieldValid:he};function De(R,O,L=!0){const Y=ve(O),te=typeof R=="string"?R:R.path;W(te)||D(te),$t(d,te,Y),L&&ot(te)}function lt(R,O=!0){ct(d).forEach(L=>{delete d[L]}),ct(R).forEach(L=>{De(L,R[L],!1)}),O&&Te()}function Ke(R,O=!0){sr(d,R),c.forEach(L=>L&&L.reset()),O&&Te()}function wt(R,O){const L=W(s.toValue(R))||D(R);return s.computed({get(){return L.value},set(Y){var te;const le=s.toValue(R);De(le,Y,(te=s.toValue(O))!==null&&te!==void 0?te:!1)}})}function ft(R,O){const L=W(R);L&&(L.touched=O)}function q(R){const O=W(R);return O?O.touched:u.value.filter(L=>L.path.startsWith(R)).some(L=>L.touched)}function I(R){const O=W(R);return O?O.dirty:u.value.filter(L=>L.path.startsWith(R)).some(L=>L.dirty)}function he(R){const O=W(R);return O?O.valid:u.value.filter(L=>L.path.startsWith(R)).every(L=>L.valid)}function me(R){if(typeof R=="boolean"){A(O=>{O.touched=R});return}ct(R).forEach(O=>{ft(O,!!R[O])})}function ge(R,O){var L;const Y=O&&"value"in O?O.value:At(_.value,R),te=W(R);te&&(te.__flags.pendingReset=!0),rt(R,ve(Y),!0),De(R,Y,!1),ft(R,(L=O==null?void 0:O.touched)!==null&&L!==void 0?L:!1),m(R,(O==null?void 0:O.errors)||[]),s.nextTick(()=>{te&&(te.__flags.pendingReset=!1)})}function pe(R,O){let L=ve(R!=null&&R.values?R.values:v.value);L=O!=null&&O.force?L:sr(v.value,L),L=Kt(E)&&pt(E.cast)?E.cast(L):L,k(L,{force:O==null?void 0:O.force}),A(Y=>{var te;Y.__flags.pendingReset=!0,Y.validated=!1,Y.touched=((te=R==null?void 0:R.touched)===null||te===void 0?void 0:te[s.toValue(Y.path)])||!1,De(s.toValue(Y.path),At(L,s.toValue(Y.path)),!1),m(s.toValue(Y.path),void 0)}),O!=null&&O.force?lt(L,!1):Ke(L,!1),p((R==null?void 0:R.errors)||{}),l.value=(R==null?void 0:R.submitCount)||0,s.nextTick(()=>{Te({mode:"silent"}),A(Y=>{Y.__flags.pendingReset=!1})})}async function Te(R){const O=(R==null?void 0:R.mode)||"force";if(O==="force"&&A(Z=>Z.validated=!0),ue.validateSchema)return ue.validateSchema(O);a.value=!0;const L=await Promise.all(u.value.map(Z=>Z.validate?Z.validate(R).then(V=>({key:s.toValue(Z.path),valid:V.valid,errors:V.errors,value:V.value})):Promise.resolve({key:s.toValue(Z.path),valid:!0,errors:[],value:void 0})));a.value=!1;const Y={},te={},le={};for(const Z of L)Y[Z.key]={valid:Z.valid,errors:Z.errors},Z.value&&$t(le,Z.key,Z.value),Z.errors.length&&(te[Z.key]=Z.errors[0]);return{valid:L.every(Z=>Z.valid),results:Y,errors:te,values:le,source:"fields"}}async function ot(R,O){var L;const Y=W(R);return Y&&(O==null?void 0:O.mode)!=="silent"&&(Y.validated=!0),Y!=null&&Y.validate?Y.validate(O):(!Y&&(L=O==null?void 0:O.warn),Promise.resolve({errors:[],valid:!0}))}function Pt(R){ol(_.value,R)}function ze(R,O,L=!1){rt(R,O),$t(d,R,O),L&&$t(v.value,R,ve(O))}function rt(R,O,L=!1){$t(_.value,R,ve(O)),L&&$t(v.value,R,ve(O))}async function ht(){const R=s.unref(E);if(!R)return{valid:!0,results:{},errors:{},source:"none"};a.value=!0;const O=Qs(R)||Kt(R)?await qg(R,d):await Yg(R,d,{names:x.value,bailsMap:C.value});return a.value=!1,O}const go=X((R,{evt:O})=>{Ng(O)&&O.target.submit()});s.onMounted(()=>{ue.validateSchema&&ue.validateSchema("silent")}),s.isRef(E)&&s.watch(E,()=>{var R;(R=ue.validateSchema)===null||R===void 0||R.call(ue,"validated-only")}),s.provide(Cg,ue);function mo(R,O){const L=pt(O)||O==null?void 0:O.label,Y=W(s.toValue(R))||D(R,{label:L}),te=()=>pt(O)?O(_n(Y,Sn)):O||{};function le(){var K;Y.touched=!0,((K=te().validateOnBlur)!==null&&K!==void 0?K:cr().validateOnBlur)&&ot(s.toValue(Y.path))}function Z(){var K;((K=te().validateOnInput)!==null&&K!==void 0?K:cr().validateOnInput)&&s.nextTick(()=>{ot(s.toValue(Y.path))})}function V(){var K;((K=te().validateOnChange)!==null&&K!==void 0?K:cr().validateOnChange)&&s.nextTick(()=>{ot(s.toValue(Y.path))})}const U=s.computed(()=>{const K={onChange:V,onInput:Z,onBlur:le};return pt(O)?Object.assign(Object.assign({},K),O(_n(Y,Sn)).props||{}):O!=null&&O.props?Object.assign(Object.assign({},K),O.props(_n(Y,Sn))):K});return[wt(R,()=>{var K,re,ke;return(ke=(K=te().validateOnModelUpdate)!==null&&K!==void 0?K:(re=cr())===null||re===void 0?void 0:re.validateOnModelUpdate)!==null&&ke!==void 0?ke:!0}),U]}function $o(R){return Array.isArray(R)?R.map(O=>wt(O,!0)):wt(R)}function ee(R,O){const[L,Y]=mo(R,O);function te(){Y.value.onBlur()}function le(V){const U=al(V);De(s.toValue(R),U,!1),Y.value.onInput()}function Z(V){const U=al(V);De(s.toValue(R),U,!1),Y.value.onChange()}return s.computed(()=>Object.assign(Object.assign({},Y.value),{onBlur:te,onInput:le,onChange:Z,value:L.value}))}function Ct(R,O){const[L,Y]=mo(R,O),te=W(s.toValue(R));function le(Z){L.value=Z}return s.computed(()=>{const Z=pt(O)?O(_n(te,Sn)):O||{};return Object.assign({[Z.model||"modelValue"]:L.value,[`onUpdate:${Z.model||"modelValue"}`]:le},Y.value)})}const Ae=Object.assign(Object.assign({},ue),{values:s.readonly(d),handleReset:()=>pe(),submitForm:go});return s.provide(_g,Ae),Ae}function Kg(t,e,o,r){const n={touched:"some",pending:"some",valid:"every"},i=s.computed(()=>!lr(e,s.unref(o)));function a(){const c=t.value;return ct(n).reduce((d,u)=>{const f=n[u];return d[u]=c[f](h=>h[u]),d},{})}const l=s.reactive(a());return s.watchEffect(()=>{const c=a();l.touched=c.touched,l.valid=c.valid,l.pending=c.pending}),s.computed(()=>Object.assign(Object.assign({initialValues:s.unref(o)},l),{valid:l.valid&&!ct(r.value).length,dirty:i.value}))}function Gg(t,e,o){const r=dl(),n=s.ref(r),i=s.ref(ve(r));function a(l,c){c!=null&&c.force?(n.value=ve(l),i.value=ve(l)):(n.value=sr(ve(n.value)||{},ve(l)),i.value=sr(ve(i.value)||{},ve(l))),c!=null&&c.updateFields&&t.value.forEach(d=>{if(d.touched)return;const f=At(n.value,s.toValue(d.path));$t(e,s.toValue(d.path),ve(f))})}return{initialValues:n,originalInitialValues:i,setInitialValues:a}}function Qg(t,e){return e?{valid:t.valid&&e.valid,errors:[...t.errors,...e.errors]}:t}function fl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hi,hl;function Jg(){if(hl)return Hi;hl=1;function t(y){this._maxSize=y,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(y){return this._values[y]},t.prototype.set=function(y,x){return this._size>=this._maxSize&&this.clear(),y in this._values||this._size++,this._values[y]=x};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,o=/^\d+$/,r=/^\d/,n=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,l=new t(a),c=new t(a),d=new t(a);Hi={Cache:t,split:f,normalizePath:u,setter:function(y){var x=u(y);return c.get(y)||c.set(y,function(B,w){for(var _=0,v=x.length,k=B;_<v-1;){var S=x[_];if(S==="__proto__"||S==="constructor"||S==="prototype")return B;k=k[x[_++]]}k[x[_]]=w})},getter:function(y,x){var C=u(y);return d.get(y)||d.set(y,function(w){for(var _=0,v=C.length;_<v;)if(w!=null||!x)w=w[C[_++]];else return;return w})},join:function(y){return y.reduce(function(x,C){return x+(g(C)||o.test(C)?"["+C+"]":(x?".":"")+C)},"")},forEach:function(y,x,C){h(Array.isArray(y)?y:f(y),x,C)}};function u(y){return l.get(y)||l.set(y,f(y).map(function(x){return x.replace(i,"$2")}))}function f(y){return y.match(e)||[""]}function h(y,x,C){var B=y.length,w,_,v,k;for(_=0;_<B;_++)w=y[_],w&&(b(w)&&(w='"'+w+'"'),k=g(w),v=!k&&/^\d+$/.test(w),x.call(C,w,k,v,_,y))}function g(y){return typeof y=="string"&&y&&["'",'"'].indexOf(y.charAt(0))!==-1}function m(y){return y.match(r)&&!y.match(o)}function p(y){return n.test(y)}function b(y){return!g(y)&&(m(y)||p(y))}return Hi}var xo=Jg(),Ui,gl;function Zg(){if(gl)return Ui;gl=1;const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,e=u=>u.match(t)||[],o=u=>u[0].toUpperCase()+u.slice(1),r=(u,f)=>e(u).join(f).toLowerCase(),n=u=>e(u).reduce((f,h)=>`${f}${f?h[0].toUpperCase()+h.slice(1).toLowerCase():h.toLowerCase()}`,"");return Ui={words:e,upperFirst:o,camelCase:n,pascalCase:u=>o(n(u)),snakeCase:u=>r(u,"_"),kebabCase:u=>r(u,"-"),sentenceCase:u=>o(r(u," ")),titleCase:u=>e(u).map(o).join(" ")},Ui}var qi=Zg(),Bn={exports:{}},ml;function em(){if(ml)return Bn.exports;ml=1,Bn.exports=function(n){return t(e(n),n)},Bn.exports.array=t;function t(n,i){var a=n.length,l=new Array(a),c={},d=a,u=o(i),f=r(n);for(i.forEach(function(g){if(!f.has(g[0])||!f.has(g[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)c[d]||h(n[d],d,new Set);return l;function h(g,m,p){if(p.has(g)){var b;try{b=", node was:"+JSON.stringify(g)}catch{b=""}throw new Error("Cyclic dependency"+b)}if(!f.has(g))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(g));if(!c[m]){c[m]=!0;var y=u.get(g)||new Set;if(y=Array.from(y),m=y.length){p.add(g);do{var x=y[--m];h(x,f.get(x),p)}while(m);p.delete(g)}l[--a]=g}}}function e(n){for(var i=new Set,a=0,l=n.length;a<l;a++){var c=n[a];i.add(c[0]),i.add(c[1])}return Array.from(i)}function o(n){for(var i=new Map,a=0,l=n.length;a<l;a++){var c=n[a];i.has(c[0])||i.set(c[0],new Set),i.has(c[1])||i.set(c[1],new Set),i.get(c[0]).add(c[1])}return i}function r(n){for(var i=new Map,a=0,l=n.length;a<l;a++)i.set(n[a],a);return i}return Bn.exports}var tm=em();const om=fl(tm),rm=Object.prototype.toString,nm=Error.prototype.toString,im=RegExp.prototype.toString,am=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",sm=/^Symbol\((.*)\)(.*)$/;function lm(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function pl(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const o=typeof t;if(o==="number")return lm(t);if(o==="string")return e?`"${t}"`:t;if(o==="function")return"[Function "+(t.name||"anonymous")+"]";if(o==="symbol")return am.call(t).replace(sm,"Symbol($1)");const r=rm.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+nm.call(t)+"]":r==="RegExp"?im.call(t):null}function Gt(t,e){let o=pl(t,e);return o!==null?o:JSON.stringify(t,function(r,n){let i=pl(this[r],e);return i!==null?i:n},2)}function bl(t){return t==null?[]:[].concat(t)}let yl,kl,xl,cm=/\$\{\s*(\w+)\s*\}/g;yl=Symbol.toStringTag;class vl{constructor(e,o,r,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[yl]="Error",this.name="ValidationError",this.value=o,this.path=r,this.type=n,this.errors=[],this.inner=[],bl(e).forEach(i=>{if(Je.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}kl=Symbol.hasInstance,xl=Symbol.toStringTag;class Je extends Error{static formatError(e,o){const r=o.label||o.path||"this";return o=Object.assign({},o,{path:r,originalPath:o.path}),typeof e=="string"?e.replace(cm,(n,i)=>Gt(o[i])):typeof e=="function"?e(o):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,o,r,n,i){const a=new vl(e,o,r,n);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[xl]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Je)}static[kl](e){return vl[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let St={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:o,originalValue:r})=>{const n=r!=null&&r!==o?` (cast from the value \`${Gt(r,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Gt(o,!0)}\``+n:`${t} must match the configured type. The validated value was: \`${Gt(o,!0)}\``+n}},Ze={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},dm={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Yi={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},um={isValue:"${path} field must be ${value}"},En={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:St,string:Ze,number:dm,date:Yi,object:En,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:um,tuple:{notType:t=>{const{path:e,value:o,spec:r}=t,n=r.types.length;if(Array.isArray(o)){if(o.length<n)return`${e} tuple value has too few items, expected a length of ${n} but got ${o.length} for value: \`${Gt(o,!0)}\``;if(o.length>n)return`${e} tuple value has too many items, expected a length of ${n} but got ${o.length} for value: \`${Gt(o,!0)}\``}return Je.formatError(St.notType,t)}}});const Xi=t=>t&&t.__isYupSchema__;class Rn{static fromOptions(e,o){if(!o.then&&!o.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:i}=o,a=typeof r=="function"?r:(...l)=>l.every(c=>c===r);return new Rn(e,(l,c)=>{var d;let u=a(...l)?n:i;return(d=u==null?void 0:u(c))!=null?d:c})}constructor(e,o){this.fn=void 0,this.refs=e,this.refs=e,this.fn=o}resolve(e,o){let r=this.refs.map(i=>i.getValue(o==null?void 0:o.value,o==null?void 0:o.parent,o==null?void 0:o.context)),n=this.fn(r,e,o);if(n===void 0||n===e)return e;if(!Xi(n))throw new TypeError("conditions must return a schema object");return n.resolve(o)}}const On={context:"$",value:"."};class vo{constructor(e,o={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===On.context,this.isValue=this.key[0]===On.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?On.context:this.isValue?On.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&xo.getter(this.path,!0),this.map=o.map}getValue(e,o,r){let n=this.isContext?r:this.isValue?e:o;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,o){return this.getValue(e,o==null?void 0:o.parent,o==null?void 0:o.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}vo.prototype.__isYupRef=!0;const wo=t=>t==null;function Io(t){function e({value:o,path:r="",options:n,originalValue:i,schema:a},l,c){const{name:d,test:u,params:f,message:h,skipAbsent:g}=t;let{parent:m,context:p,abortEarly:b=a.spec.abortEarly,disableStackTrace:y=a.spec.disableStackTrace}=n;function x(E){return vo.isRef(E)?E.getValue(o,m,p):E}function C(E={}){const D=Object.assign({value:o,originalValue:i,label:a.spec.label,path:E.path||r,spec:a.spec,disableStackTrace:E.disableStackTrace||y},f,E.params);for(const T of Object.keys(D))D[T]=x(D[T]);const M=new Je(Je.formatError(E.message||h,D),o,D.path,E.type||d,D.disableStackTrace);return M.params=D,M}const B=b?l:c;let w={path:r,parent:m,type:d,from:n.from,createError:C,resolve:x,options:n,originalValue:i,schema:a};const _=E=>{Je.isError(E)?B(E):E?c(null):B(C())},v=E=>{Je.isError(E)?B(E):l(E)};if(g&&wo(o))return _(!0);let S;try{var N;if(S=u.call(w,o,w),typeof((N=S)==null?void 0:N.then)=="function"){if(n.sync)throw new Error(`Validation test of type: "${w.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(S).then(_,v)}}catch(E){v(E);return}_(S)}return e.OPTIONS=t,e}function fm(t,e,o,r=o){let n,i,a;return e?(xo.forEach(e,(l,c,d)=>{let u=c?l.slice(1,l.length-1):l;t=t.resolve({context:r,parent:n,value:o});let f=t.type==="tuple",h=d?parseInt(u,10):0;if(t.innerType||f){if(f&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(o&&h>=o.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${e}. because there is no value at that index. `);n=o,o=o&&o[h],t=f?t.spec.types[h]:t.innerType}if(!d){if(!t.fields||!t.fields[u])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${a} which is a type: "${t.type}")`);n=o,o=o&&o[u],t=t.fields[u]}i=u,a=c?"["+l+"]":"."+l}),{schema:t,parent:n,parentPath:i}):{parent:n,parentPath:e,schema:t}}class Dn extends Set{describe(){const e=[];for(const o of this.values())e.push(vo.isRef(o)?o.describe():o);return e}resolveAll(e){let o=[];for(const r of this.values())o.push(e(r));return o}clone(){return new Dn(this.values())}merge(e,o){const r=this.clone();return e.forEach(n=>r.add(n)),o.forEach(n=>r.delete(n)),r}}function zo(t,e=new Map){if(Xi(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let o;if(t instanceof Date)o=new Date(t.getTime()),e.set(t,o);else if(t instanceof RegExp)o=new RegExp(t),e.set(t,o);else if(Array.isArray(t)){o=new Array(t.length),e.set(t,o);for(let r=0;r<t.length;r++)o[r]=zo(t[r],e)}else if(t instanceof Map){o=new Map,e.set(t,o);for(const[r,n]of t.entries())o.set(r,zo(n,e))}else if(t instanceof Set){o=new Set,e.set(t,o);for(const r of t)o.add(zo(r,e))}else if(t instanceof Object){o={},e.set(t,o);for(const[r,n]of Object.entries(t))o[r]=zo(n,e)}else throw Error(`Unable to clone ${t}`);return o}class Bt{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Dn,this._blacklist=new Dn,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(St.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(o=>{o.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const o=Object.create(Object.getPrototypeOf(this));return o.type=this.type,o._typeCheck=this._typeCheck,o._whitelist=this._whitelist.clone(),o._blacklist=this._blacklist.clone(),o.internalTests=Object.assign({},this.internalTests),o.exclusiveTests=Object.assign({},this.exclusiveTests),o.deps=[...this.deps],o.conditions=[...this.conditions],o.tests=[...this.tests],o.transforms=[...this.transforms],o.spec=zo(Object.assign({},this.spec,e)),o}label(e){let o=this.clone();return o.spec.label=e,o}meta(...e){if(e.length===0)return this.spec.meta;let o=this.clone();return o.spec.meta=Object.assign(o.spec.meta||{},e[0]),o}withMutation(e){let o=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=o,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let o=this,r=e.clone();const n=Object.assign({},o.spec,r.spec);return r.spec=n,r.internalTests=Object.assign({},o.internalTests,r.internalTests),r._whitelist=o._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=o._blacklist.merge(e._blacklist,e._whitelist),r.tests=o.tests,r.exclusiveTests=o.exclusiveTests,r.withMutation(i=>{e.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...o.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let o=this;if(o.conditions.length){let r=o.conditions;o=o.clone(),o.conditions=[],o=r.reduce((n,i)=>i.resolve(n,e),o),o=o.resolve(e)}return o}resolveOptions(e){var o,r,n,i;return Object.assign({},e,{from:e.from||[],strict:(o=e.strict)!=null?o:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(n=e.recursive)!=null?n:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,o={}){let r=this.resolve(Object.assign({value:e},o)),n=o.assert==="ignore-optionality",i=r._cast(e,o);if(o.assert!==!1&&!r.isType(i)){if(n&&wo(i))return i;let a=Gt(e),l=Gt(i);throw new TypeError(`The value of ${o.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
15
16
|
|
|
16
|
-
attempted value: ${
|
|
17
|
-
`+(l!==s?`result of cast: ${l}`:""))}return i}_cast(e,o){let r=e===void 0?e:this.transforms.reduce((n,i)=>i.call(this,n,e,this),e);return r===void 0&&(r=this.getDefault(o)),r}_validate(e,o={},r,n){let{path:i,originalValue:s=e,strict:l=this.spec.strict}=o,c=e;l||(c=this._cast(c,Object.assign({assert:!1},o)));let d=[];for(let u of Object.values(this.internalTests))u&&d.push(u);this.runTests({path:i,value:c,originalValue:s,options:o,tests:d},r,u=>{if(u.length)return n(u,c);this.runTests({path:i,value:c,originalValue:s,options:o,tests:this.tests},r,n)})}runTests(e,o,r){let n=!1,{tests:i,value:s,originalValue:l,path:c,options:d}=e,u=p=>{n||(n=!0,o(p,s))},f=p=>{n||(n=!0,r(p,s))},h=i.length,g=[];if(!h)return f([]);let m={value:s,originalValue:l,path:c,options:d,schema:this};for(let p=0;p<i.length;p++){const b=i[p];b(m,u,function(x){x&&(Array.isArray(x)?g.push(...x):g.push(x)),--h<=0&&f(g)})}}asNestedTest({key:e,index:o,parent:r,parentPath:n,originalParent:i,options:s}){const l=e??o;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const c=typeof l=="number";let d=r[l];const u=Object.assign({},s,{strict:!0,parent:r,value:d,originalValue:i[l],key:void 0,[c?"index":"key"]:l,path:c||l.includes(".")?`${n||""}[${c?l:`"${l}"`}]`:(n?`${n}.`:"")+e});return(f,h,g)=>this.resolve(u)._validate(d,u,h,g)}validate(e,o){var r;let n=this.resolve(Object.assign({},o,{value:e})),i=(r=o==null?void 0:o.disableStackTrace)!=null?r:n.spec.disableStackTrace;return new Promise((s,l)=>n._validate(e,o,(c,d)=>{Ze.isError(c)&&(c.value=d),l(c)},(c,d)=>{c.length?l(new Ze(c,d,void 0,void 0,i)):s(d)}))}validateSync(e,o){var r;let n=this.resolve(Object.assign({},o,{value:e})),i,s=(r=o==null?void 0:o.disableStackTrace)!=null?r:n.spec.disableStackTrace;return n._validate(e,Object.assign({},o,{sync:!0}),(l,c)=>{throw Ze.isError(l)&&(l.value=c),l},(l,c)=>{if(l.length)throw new Ze(l,e,void 0,void 0,s);i=c}),i}isValid(e,o){return this.validate(e,o).then(()=>!0,r=>{if(Ze.isError(r))return!1;throw r})}isValidSync(e,o){try{return this.validateSync(e,o),!0}catch(r){if(Ze.isError(r))return!1;throw r}}_getDefault(e){let o=this.spec.default;return o==null?o:typeof o=="function"?o.call(this,e):Lo(o)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,o){const r=this.clone({nullable:e});return r.internalTests.nullable=Io({message:o,name:"nullable",test(n){return n===null?this.schema.spec.nullable:!0}}),r}optionality(e,o){const r=this.clone({optional:e});return r.internalTests.optionality=Io({message:o,name:"optionality",test(n){return n===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(e=St.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=St.notNull){return this.nullability(!1,e)}required(e=St.required){return this.clone().withMutation(o=>o.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let o=this.clone();return o.transforms.push(e),o}test(...e){let o;if(e.length===1?typeof e[0]=="function"?o={test:e[0]}:o=e[0]:e.length===2?o={name:e[0],test:e[1]}:o={name:e[0],message:e[1],test:e[2]},o.message===void 0&&(o.message=St.default),typeof o.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),n=Io(o),i=o.exclusive||o.name&&r.exclusiveTests[o.name]===!0;if(o.exclusive&&!o.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return o.name&&(r.exclusiveTests[o.name]=!!o.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===o.name&&(i||s.OPTIONS.test===n.OPTIONS.test))),r.tests.push(n),r}when(e,o){!Array.isArray(e)&&typeof e!="string"&&(o=e,e=".");let r=this.clone(),n=pl(e).map(i=>new xo(i));return n.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof o=="function"?new Rn(n,o):Rn.fromOptions(n,o)),r}typeError(e){let o=this.clone();return o.internalTests.typeError=Io({message:e,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),o}oneOf(e,o=St.oneOf){let r=this.clone();return e.forEach(n=>{r._whitelist.add(n),r._blacklist.delete(n)}),r.internalTests.whiteList=Io({message:o,name:"oneOf",skipAbsent:!0,test(n){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(n)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(e,o=St.notOneOf){let r=this.clone();return e.forEach(n=>{r._blacklist.add(n),r._whitelist.delete(n)}),r.internalTests.blacklist=Io({message:o,name:"notOneOf",test(n){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(n)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!0}}),r}strip(e=!0){let o=this.clone();return o.spec.strip=e,o}describe(e){const o=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:i,nullable:s}=o.spec;return{meta:n,label:r,optional:i,nullable:s,default:o.getDefault(e),type:o.type,oneOf:o._whitelist.describe(),notOneOf:o._blacklist.describe(),tests:o.tests.map(c=>({name:c.OPTIONS.name,params:c.OPTIONS.params})).filter((c,d,u)=>u.findIndex(f=>f.name===c.name)===d)}}}Bt.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])Bt.prototype[`${t}At`]=function(e,o,r={}){const{parent:n,parentPath:i,schema:s}=um(this,e,o,r.context);return s[t](n&&n[i],Object.assign({},r,{parent:n,path:e}))};for(const t of["equals","is"])Bt.prototype[t]=Bt.prototype.oneOf;for(const t of["not","nope"])Bt.prototype[t]=Bt.prototype.notOneOf;const fm=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function hm(t){const e=Ki(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let o=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(o=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(o=0-o)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+o,e.second,e.millisecond)}function Ki(t){var e,o;const r=fm.exec(t);return r?{year:Mt(r[1]),month:Mt(r[2],1)-1,day:Mt(r[3],1),hour:Mt(r[4]),minute:Mt(r[5]),second:Mt(r[6]),millisecond:r[7]?Mt(r[7].substring(0,3)):0,precision:(e=(o=r[7])==null?void 0:o.length)!=null?e:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Mt(r[10]),minuteOffset:Mt(r[11])}:null}function Mt(t,e=0){return Number(t)||e}let gm=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,mm=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,pm=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,bm="^\\d{4}-\\d{2}-\\d{2}",ym="\\d{2}:\\d{2}:\\d{2}",km="(([+-]\\d{2}(:?\\d{2})?)|Z)",xm=new RegExp(`${bm}T${ym}(\\.\\d+)?${km}$`),vm=t=>vo(t)||t===t.trim(),wm={}.toString();function Gi(){return new vl}class vl extends Bt{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,o,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;const n=e!=null&&e.toString?e.toString():e;return n===wm?e:n})})}required(e){return super.required(e).withMutation(o=>o.test({message:e||St.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(o=>o.OPTIONS.name!=="required"),e))}length(e,o=et.length){return this.test({message:o,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,o=et.min){return this.test({message:o,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,o=et.max){return this.test({name:"max",exclusive:!0,message:o,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}matches(e,o){let r=!1,n,i;return o&&(typeof o=="object"?{excludeEmptyString:r=!1,message:n,name:i}=o:n=o),this.test({name:i||"matches",message:n||et.matches,params:{regex:e},skipAbsent:!0,test:s=>s===""&&r||s.search(e)!==-1})}email(e=et.email){return this.matches(gm,{name:"email",message:e,excludeEmptyString:!0})}url(e=et.url){return this.matches(mm,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=et.uuid){return this.matches(pm,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let o="",r,n;return e&&(typeof e=="object"?{message:o="",allowOffset:r=!1,precision:n=void 0}=e:o=e),this.matches(xm,{name:"datetime",message:o||et.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:o||et.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const s=Ki(i);return s?!!s.z:!1}}).test({name:"datetime_precision",message:o||et.datetime_precision,params:{precision:n},skipAbsent:!0,test:i=>{if(!i||n==null)return!0;const s=Ki(i);return s?s.precision===n:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=et.trim){return this.transform(o=>o!=null?o.trim():o).test({message:e,name:"trim",test:vm})}lowercase(e=et.lowercase){return this.transform(o=>vo(o)?o:o.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:o=>vo(o)||o===o.toLowerCase()})}uppercase(e=et.uppercase){return this.transform(o=>vo(o)?o:o.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:o=>vo(o)||o===o.toUpperCase()})}}Gi.prototype=vl.prototype;let Cm=new Date(""),_m=t=>Object.prototype.toString.call(t)==="[object Date]";class Nn extends Bt{constructor(){super({type:"date",check(e){return _m(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,o,r)=>!r.spec.coerce||r.isType(e)||e===null?e:(e=hm(e),isNaN(e)?Nn.INVALID_DATE:new Date(e)))})}prepareParam(e,o){let r;if(xo.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw new TypeError(`\`${o}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,o=Yi.min){let r=this.prepareParam(e,"min");return this.test({message:o,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n>=this.resolve(r)}})}max(e,o=Yi.max){let r=this.prepareParam(e,"max");return this.test({message:o,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n<=this.resolve(r)}})}}Nn.INVALID_DATE=Cm,Nn.prototype;function Sm(t,e=[]){let o=[],r=new Set,n=new Set(e.map(([s,l])=>`${s}-${l}`));function i(s,l){let c=ko.split(s)[0];r.add(c),n.has(`${l}-${c}`)||o.push([l,c])}for(const s of Object.keys(t)){let l=t[s];r.add(s),xo.isRef(l)&&l.isSibling?i(l.path,s):Xi(l)&&"deps"in l&&l.deps.forEach(c=>i(c,s))}return tm.array(Array.from(r),o).reverse()}function wl(t,e){let o=1/0;return t.some((r,n)=>{var i;if((i=e.path)!=null&&i.includes(r))return o=n,!0}),o}function Cl(t){return(e,o)=>wl(t,e)-wl(t,o)}const Bm=(t,e,o)=>{if(typeof t!="string")return t;let r=t;try{r=JSON.parse(t)}catch{}return o.isType(r)?r:t};function Tn(t){if("fields"in t){const e={};for(const[o,r]of Object.entries(t.fields))e[o]=Tn(r);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=Tn(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(Tn)}):"optional"in t?t.optional():t}const Em=(t,e)=>{const o=[...ko.normalizePath(e)];if(o.length===1)return o[0]in t;let r=o.pop(),n=ko.getter(ko.join(o),!0)(t);return!!(n&&r in n)};let _l=t=>Object.prototype.toString.call(t)==="[object Object]";function Sl(t,e){let o=Object.keys(t.fields);return Object.keys(e).filter(r=>o.indexOf(r)===-1)}const Rm=Cl([]);function Qi(t){return new Bl(t)}class Bl extends Bt{constructor(e){super({type:"object",check(o){return _l(o)||typeof o=="function"}}),this.fields=Object.create(null),this._sortErrors=Rm,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,o={}){var r;let n=super._cast(e,o);if(n===void 0)return this.getDefault(o);if(!this._typeCheck(n))return n;let i=this.fields,s=(r=o.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(n).filter(f=>!this._nodes.includes(f))),c={},d=Object.assign({},o,{parent:c,__validating:o.__validating||!1}),u=!1;for(const f of l){let h=i[f],g=f in n;if(h){let m,p=n[f];d.path=(o.path?`${o.path}.`:"")+f,h=h.resolve({value:p,context:o.context,parent:c});let b=h instanceof Bt?h.spec:void 0,y=b==null?void 0:b.strict;if(b!=null&&b.strip){u=u||f in n;continue}m=!o.__validating||!y?h.cast(n[f],d):n[f],m!==void 0&&(c[f]=m)}else g&&!s&&(c[f]=n[f]);(g!==f in c||c[f]!==n[f])&&(u=!0)}return u?c:n}_validate(e,o={},r,n){let{from:i=[],originalValue:s=e,recursive:l=this.spec.recursive}=o;o.from=[{schema:this,value:s},...i],o.__validating=!0,o.originalValue=s,super._validate(e,o,r,(c,d)=>{if(!l||!_l(d)){n(c,d);return}s=s||d;let u=[];for(let f of this._nodes){let h=this.fields[f];!h||xo.isRef(h)||u.push(h.asNestedTest({options:o,key:f,parent:d,parentPath:o.path,originalParent:s}))}this.runTests({tests:u,value:d,originalValue:s,options:o},r,f=>{n(f.sort(this._sortErrors).concat(c),d)})})}clone(e){const o=super.clone(e);return o.fields=Object.assign({},this.fields),o._nodes=this._nodes,o._excludedEdges=this._excludedEdges,o._sortErrors=this._sortErrors,o}concat(e){let o=super.concat(e),r=o.fields;for(let[n,i]of Object.entries(this.fields)){const s=r[n];r[n]=s===void 0?i:s}return o.withMutation(n=>n.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let o={};return this._nodes.forEach(r=>{var n;const i=this.fields[r];let s=e;(n=s)!=null&&n.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),o[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),o}setFields(e,o){let r=this.clone();return r.fields=e,r._nodes=Sm(e,o),r._sortErrors=Cl(Object.keys(e)),o&&(r._excludedEdges=o),r}shape(e,o=[]){return this.clone().withMutation(r=>{let n=r._excludedEdges;return o.length&&(Array.isArray(o[0])||(o=[o]),n=[...r._excludedEdges,...o]),r.setFields(Object.assign(r.fields,e),n)})}partial(){const e={};for(const[o,r]of Object.entries(this.fields))e[o]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return Tn(this)}pick(e){const o={};for(const r of e)this.fields[r]&&(o[r]=this.fields[r]);return this.setFields(o,this._excludedEdges.filter(([r,n])=>e.includes(r)&&e.includes(n)))}omit(e){const o=[];for(const r of Object.keys(this.fields))e.includes(r)||o.push(r);return this.pick(o)}from(e,o,r){let n=ko.getter(e,!0);return this.transform(i=>{if(!i)return i;let s=i;return Em(i,e)&&(s=Object.assign({},i),r||delete s[e],s[o]=n(i)),s})}json(){return this.transform(Bm)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||En.exact,test(o){if(o==null)return!0;const r=Sl(this.schema,o);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,o=En.noUnknown){typeof e!="boolean"&&(o=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:o,test(n){if(n==null)return!0;const i=Sl(this.schema,n);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,o=En.noUnknown){return this.noUnknown(!e,o)}transformKeys(e){return this.transform(o=>{if(!o)return o;const r={};for(const n of Object.keys(o))r[e(n)]=o[n];return r})}camelCase(){return this.transformKeys(qi.camelCase)}snakeCase(){return this.transformKeys(qi.snakeCase)}constantCase(){return this.transformKeys(e=>qi.snakeCase(e).toUpperCase())}describe(e){const o=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[i,s]of Object.entries(o.fields)){var n;let l=e;(n=l)!=null&&n.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),r.fields[i]=s.describe(l)}return r}}Qi.prototype=Bl.prototype;function Ji(t,e,o){const r=new mt;let n=a.ref({});const i=a.ref({}),s=a.ref({});let l=a.ref([]);const c=a.ref(null),d=a.ref([]);let u=a.ref([]),f=a.ref(!1);const h=a.ref({});let{handleSubmit:g,errors:m,setErrors:p}=dl();const b=async()=>{var z;try{const A=await r.getEntityRecords(t);A&&A.response&&(n.value=A.response,l.value=(z=A.response.entity.entityDefinition)==null?void 0:z.columns,W(),v(),E())}catch(A){toast.add({severity:"error",summary:"Error",detail:A.errorMessage,life:3e3})}finally{}},y=async()=>{var z;try{const A=await r.getRecord(t,e);A&&A.response&&(n.value=A.response,l.value=(z=A.response.entity.entityDefinition)==null?void 0:z.columns,W(),i.value=JSON.parse(JSON.stringify(A.response.result[0])),E())}catch(A){console.error("Error fetching entity:",A.errorMessage)}finally{}},x=async()=>{var z,A;try{const j=await r.getRelatedEntityRecord(t,e);j&&j.response&&(n.value=j.response,l.value=(A=(z=j.response.entity)==null?void 0:z.entityDefinition)==null?void 0:A.columns,W(),i.value=JSON.parse(JSON.stringify(j.response.result[0])),i.value.entityName&&delete i.value.entityName,i.value.linkedEntities&&delete i.value.linkedEntities,u.value=j.response.result[0].linkedEntities,s.value=JSON.parse(JSON.stringify(i.value)),E())}catch(j){console.error("Error fetching entity:",j.errorMessage)}finally{}},C=async z=>{try{let A=await r.addRecord(t,z);A&&A.response&&o("onSaveDialog",{entityName:t,recordId:e})}catch(A){A.validationErrors&&(d.value=JSON.parse(JSON.stringify(A.validationErrors))),console.error("Error fetching entity:",A.errorMessage)}finally{}},B=async(z,A)=>{try{let j=await r.addRecord(t,A);if(j&&j.response){let J=await r.saveRelatedEntityRecord(t,j.response.recordId,z.linkedEntities);J&&J.response&&o("onSaveDialog",{entityName:t,recordId:e})}}catch(j){j.validationErrors&&(d.value=JSON.parse(JSON.stringify(j.validationErrors))),console.error("Error fetching entity:",j.errorMessage)}finally{}},w=async z=>{try{const A=await r.updateRecord(t,e,z);A&&A.response&&(f.value=!1,s.value=JSON.parse(JSON.stringify(i.value)),o("onSaveDialog",{entityName:t,recordId:e}))}catch(A){A.validationErrors&&(d.value=JSON.parse(JSON.stringify(A.errvalidationErrorsors))),console.error("Error fetching entity:",A.errorMessage)}finally{}},_=async(z,A,j)=>{try{let J=await r.saveRelatedEntityRecord(z,A,j);J&&J.response&&o("onSaveDialog",{entityName:t,enityRecordId:A})}catch(J){J.validationErrors&&(d.value=JSON.parse(JSON.stringify(J.validationErrors))),console.error("Error fetching entity:",J.errorMessage)}finally{}},v=()=>{for(let z=0;z<l.value.length;z++){let A=l.value[z];A.autoGenerated||(i.value[A.name]="")}},k=z=>{let A="";for(let j=0;j<l.value.length;j++){let J=l.value[j];if(z==J.name){A=J.type;break}}return A},S=()=>{const z=l.value.filter(j=>j.autoGenerated).map(j=>j.name);return Object.entries(i.value).filter(([j])=>!z.includes(j)).map(([j,J])=>({recordColumnName:j,recordColumnValue:J,columnType:k(j)}))},N=async(z={})=>{try{await c.value.validate(i.value,{abortEarly:!1}),p({})}catch(j){const J=j.inner.reduce((ne,X)=>(ne[X.path]||(ne[X.path]={messages:[]}),ne[X.path].messages.push(...X.errors),ne),{}),oe=Object.entries(J).reduce((ne,[X,Q])=>(ne[X]={messages:Q.messages},ne),{});p(oe);return}const A={dataDefinitions:S()};e?await w(A):z.relationType=="MANY_TO_ONE"?await B(z,A):await C(A)},E=()=>{c.value=Qi().shape(l.value.reduce((z,A)=>(A.autoGenerated||(z[A.name]=Gi().nullable(!1).test({name:"custom-validation",test:function(j){const J=[];let oe="";if(A.required&&(!j||j.trim()===""))if(A.validations){oe=D(A.validations,"VALIDATE_REQUIRED"),J.push(oe);let ne=T(A.validations,"VALIDATE_REQUIRED");ne&&(ne="hint:"+ne,J.push(ne))}else oe=A.displayName+" is required.",J.push(oe);else{if(A.maxLength&&j.length>A.maxLength)if(A.validations){oe=D(A.validations,"VALIDATE_MAXLENGTH"),J.push(oe);let ne=T(A.validations,"VALIDATE_MAXLENGTH");ne&&(ne="hint:"+ne,J.push(ne))}else oe=A.displayName+" cannot exceed from "+A.maxLength+" characters",J.push(oe);if(A.regxId&&!new RegExp(M(A.validations,"VALIDATE_REGX")).test(j))if(A.validations){oe=D(A.validations,"VALIDATE_REGX"),J.push(oe);let ne=T(A.validations,"VALIDATE_REGX");ne&&(ne="hint:"+ne,J.push(ne))}else oe=A.displayName+" invalid format.",J.push(oe)}return J.length>0?this.createError({message:J}):!0}})),z),{}))},D=(z,A)=>{for(let j=0;j<z.length;j++)if(A==z[j].type)return z[j].message},M=(z,A)=>{for(let j=0;j<z.length;j++)if(A==z[j].type)return z[j].regx},T=(z,A)=>{for(let j=0;j<z.length;j++)if(A==z[j].type)return z[j].hint},F=z=>{p({...m.value,[z]:null}),f.value=!0},$=()=>{f.value=!1;for(let z in i.value)i.value.hasOwnProperty(z)&&p({...m.value,[z]:null});i.value=JSON.parse(JSON.stringify(s.value))},W=()=>{for(let z=0;z<l.value.length;z++){const A=l.value[z];if(A.primaryKey&&A.primaryKey==!0){h.value=A;break}}};return{formData:i,columns:l,errors:m,backendErrors:d,isDataChange:f,linkedEntities:u,primarayKeyColumn:h,clearErrors:F,saveRecord:N,fetchAllRecords:b,fetchRecord:y,getRelatedEntityRecordById:x,cancleRecord:$,saveRelatedEntityRecord:_}}const Om={key:0,class:"surface-card"},Dm={class:"info"},Nm={key:0,class:"list-none p-0"},El={__name:"EntityFormErrors",props:{errors:Array},setup(t){let e=a.ref(!0);const o=()=>{e.value=!e.value};return(r,n)=>{var s;const i=a.resolveComponent("Message");return((s=t.errors)==null?void 0:s.length)>0?(a.openBlock(),a.createElementBlock("div",Om,[n[1]||(n[1]=a.createElementVNode("h4",{class:"flex-1 font-bold text-red-500"},"Errors",-1)),a.createElementVNode("div",Dm,[a.createElementVNode("span",{onClick:n[0]||(n[0]=l=>o()),class:"cursor-pointer underline showHideColor"},a.toDisplayString(a.unref(e)?"Hide":"Show"),1)]),a.unref(e)?(a.openBlock(),a.createElementBlock("ul",Nm,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.errors,(l,c)=>(a.openBlock(),a.createElementBlock("li",{key:c,class:"mb-2"},[a.createVNode(i,{style:{"word-break":"break-all"},closable:!1,severity:"error"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.message),1)]),_:2},1024)]))),128))])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},Tm={class:"field flex flex-col mb-3"},Pm=["for"],$m={key:0,class:"flex items-center"},Am={key:1},Mm={class:"flex items-center"},Rl={__name:"RelatedEntitySelection",props:{modelValue:{required:!0},entityName:{type:String,required:!0},columnName:{type:String,required:!0},relatedEntityColumn:{type:String,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){useRoute();const{getEntityRecords:o,searchEntityRecords:r,saveRelatedEntityRecord:n,getRecord:i,addRecord:s,updateRecord:l,deleteRecord:c}=mt(),d=t,u=a.ref({});let f=a.ref("");const h=e;a.onMounted(()=>{g()});const g=async()=>{try{const b=await o(d.entityName);b&&b.response&&(u.value=b.response,p())}catch{}finally{}},m=()=>{h("update:modelValue",f.value[d.relatedEntityColumn])},p=()=>{for(let b=0;b<u.value.result.length;b++){const y=u.value.result[b];if(y[d.relatedEntityColumn]==d.modelValue){f.value=y;break}}};return(b,y)=>{const x=a.resolveComponent("Select");return a.openBlock(),a.createElementBlock("div",Tm,[a.createElementVNode("label",{for:t.columnName},a.toDisplayString(t.columnName),9,Pm),a.createVNode(x,{modelValue:a.unref(f),"onUpdate:modelValue":[y[0]||(y[0]=C=>a.isRef(f)?f.value=C:f=C),m],"item-value":t.relatedEntityColumn,options:u.value.result,filter:"",optionLabel:t.relatedEntityColumn,placeholder:"Select "+t.relatedEntityColumn,class:"w-full"},{value:a.withCtx(C=>[C.value?(a.openBlock(),a.createElementBlock("div",$m,[a.createElementVNode("div",null,a.toDisplayString(C.value[t.relatedEntityColumn]),1)])):(a.openBlock(),a.createElementBlock("span",Am,a.toDisplayString(C.placeholder),1))]),option:a.withCtx(C=>[a.createElementVNode("div",Mm,[a.createElementVNode("div",null,a.toDisplayString(C.option[t.relatedEntityColumn]),1)])]),_:1},8,["modelValue","item-value","options","optionLabel","placeholder"])])}}},Fm={key:0,style:{"font-weight":"700","font-size":"1.25rem"}},Vm={key:1,style:{"font-weight":"700","font-size":"1.25rem"}},Im={__name:"EntityDialog",props:a.mergeModels({entityName:{type:String,required:!0},recordId:{type:[String,Number],default:null}},{showForm:{},showFormModifiers:{}}),emits:a.mergeModels(["onSaveDialog"],["update:showForm"]),setup(t,{emit:e}){const o=a.useModel(t,"showForm"),r=e,{formData:n,columns:i,errors:s,backendErrors:l,clearErrors:c,saveRecord:d,fetchAllRecords:u,fetchRecord:f}=Ji(t.entityName,t.recordId,r);return a.onMounted(()=>{t.recordId?f():u()}),(h,g)=>{const m=a.resolveComponent("Button"),p=a.resolveComponent("Dialog");return o.value?(a.openBlock(),a.createBlock(p,{key:0,showFooter:!1,visible:o.value,"onUpdate:visible":g[2]||(g[2]=b=>o.value=b),style:{width:"50rem"},breakpoints:{"1199px":"75vw","575px":"90vw"},modal:!0,class:"p-fluid"},{header:a.withCtx(()=>[t.recordId?(a.openBlock(),a.createElementBlock("span",Fm,"Edit "+a.toDisplayString(t.entityName)+" record details",1)):a.createCommentVNode("",!0),t.recordId?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Vm,"Add "+a.toDisplayString(t.entityName)+" record details",1))]),footer:a.withCtx(()=>[a.createVNode(m,{type:"button",icon:"",label:"Cancel",severity:"secondary",onClick:g[0]||(g[0]=b=>o.value=!1)}),a.createVNode(m,{type:"button",icon:"",label:"Save",severity:"success",onClick:g[1]||(g[1]=b=>a.unref(d)())})]),default:a.withCtx(()=>{var b;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i),(y,x)=>{var C;return a.openBlock(),a.createElementBlock("div",{key:x},[!y.autoGenerated&&!y.foreignKey?(a.openBlock(),a.createBlock(vn,{key:0,modelValue:a.unref(n)[y.name],"onUpdate:modelValue":B=>a.unref(n)[y.name]=B,column:y,errors:(C=a.unref(s)[y.name])==null?void 0:C.messages,onInput:a.unref(c)},null,8,["modelValue","onUpdate:modelValue","column","errors","onInput"])):a.createCommentVNode("",!0),!y.autoGenerated&&y.foreignKey?(a.openBlock(),a.createBlock(Rl,{key:1,modelValue:a.unref(n)[y.name],"onUpdate:modelValue":B=>a.unref(n)[y.name]=B,entityName:y.foreignKey.referencedEntityName,columnName:y.name,relatedEntityColumn:y.foreignKey.referencedColumnName},null,8,["modelValue","onUpdate:modelValue","entityName","columnName","relatedEntityColumn"])):a.createCommentVNode("",!0)])}),128)),((b=a.unref(l))==null?void 0:b.length)>0?(a.openBlock(),a.createBlock(El,{key:0,errors:a.unref(l)},null,8,["errors"])):a.createCommentVNode("",!0)]}),_:1},8,["visible"])):a.createCommentVNode("",!0)}}},Lm={__name:"DeleteConfirmationDialog",props:a.mergeModels({entityName:{type:String,required:!0},recordId:{type:[String,Number],default:null}},{showDeleteDialog:{},showDeleteDialogModifiers:{}}),emits:a.mergeModels(["onDeleteItem"],["update:showDeleteDialog"]),setup(t,{emit:e}){const o=new mt,r=a.useModel(t,"showDeleteDialog"),n=e,i=async()=>{try{const s=await o.deleteRecord(t.entityName,t.recordId);s&&s.response&&n("onDeleteItem")}catch(s){console.error("Error deleting record:",s.errorMessage)}finally{}};return(s,l)=>{const c=a.resolveComponent("Button"),d=a.resolveComponent("Dialog");return a.openBlock(),a.createBlock(d,{visible:r.value,"onUpdate:visible":l[1]||(l[1]=u=>r.value=u),style:{width:"450px"},header:"Confirm",modal:!0},{footer:a.withCtx(()=>[a.createVNode(c,{label:"No",icon:"pi pi-times",text:"",onClick:l[0]||(l[0]=u=>r.value=!1)}),a.createVNode(c,{label:"Yes",icon:"pi pi-check",text:"",onClick:i})]),default:a.withCtx(()=>[l[2]||(l[2]=a.createElementVNode("div",{class:"flex items-center justify-center"},[a.createElementVNode("i",{class:"pi pi-exclamation-triangle mr-3",style:{"font-size":"2rem"}}),a.createElementVNode("span",null,"Are you sure you want to delete the selected item?")],-1))]),_:1},8,["visible"])}}};var zm=Object.defineProperty,Ol=Object.getOwnPropertySymbols,jm=Object.prototype.hasOwnProperty,Wm=Object.prototype.propertyIsEnumerable,Dl=(t,e,o)=>e in t?zm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Hm=(t,e)=>{for(var o in e||(e={}))jm.call(e,o)&&Dl(t,o,e[o]);if(Ol)for(var o of Ol(e))Wm.call(e,o)&&Dl(t,o,e[o]);return t};function Zi(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Nl(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Ee(t){return!Zi(t)}function Qt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function bt(t,...e){return Nl(t)?t(...e):t}function Et(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Jt(t){return Et(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Tl(t,e="",o={}){const r=Jt(e).split("."),n=r.shift();return n?Qt(t)?Tl(bt(t[Object.keys(t).find(i=>Jt(i)===n)||""],o),r.join("."),o):void 0:bt(t,o)}function ea(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Um(t){return Ee(t)&&!isNaN(t)}function Ft(t,e){if(e){const o=e.test(t);return e.lastIndex=0,o}return!1}function Pl(...t){const e=(o={},r={})=>{const n=Hm({},o);return Object.keys(r).forEach(i=>{Qt(r[i])&&i in o&&Qt(o[i])?n[i]=e(o[i],r[i]):n[i]=r[i]}),n};return t.reduce((o,r,n)=>n===0?r:e(o,r),{})}function dr(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function $l(t){return Et(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,o)=>o===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Al(t){return Et(t)?t.replace(/[A-Z]/g,(e,o)=>o===0?e:"."+e.toLowerCase()).toLowerCase():t}var zo={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},qm={AND:"and",OR:"or"};const Ym={key:0},Xm={key:1},ta={__name:"RecordColumnRenderer",props:{column:Object,value:null},setup(t){const e=a.ref(null),o=Object.assign({});async function r(){await a.nextTick();const n=o[`/src/directives/${t.column.displayFormatKey}.js`];n&&e.value&&n().then(i=>{i.default.beforeMount(e.value,{value:t.value,arg:t.column.displayFormat})})}return a.onMounted(()=>{r()}),a.onUpdated(()=>{r()}),(n,i)=>t.column.displayFormatKey?(a.openBlock(),a.createElementBlock("span",Ym,[a.createElementVNode("span",{ref_key:"el",ref:e},a.toDisplayString(t.value),513)])):(a.openBlock(),a.createElementBlock("span",Xm,a.toDisplayString(t.value),1))}},Km={class:"my-2"},Gm={class:"flex flex-col md:flex-row md:justify-between md:items-center"},Qm={class:"flex flex-row gap-2"},oa={__name:"Grid",props:{entityName:String,showAddButton:Boolean,showClearFilters:Boolean,columnsToShow:Array,editable:Boolean,deleteable:Boolean,showPagination:Boolean},setup(t){const e=Qe(),o=t;console.log("columnsToShow",o.columnsToShow);const r=Ke.useRoute(),n=a.ref(o.entityName||r.params.entityName),i=a.ref({}),s=a.ref(""),l=a.ref(!1),c=a.ref(!1),{items:d,headers:u,first:f,totalRecords:h,pageSize:g,loading:m,sortBy:p,sortDirection:b,operatorMap:y,filterToSend:x,primarayKeyColumn:C,fullTextSearch:B,listingResponse:w,onFullTextSearch:_,getDatatypeByField:v,getColumnDatatype:k,onSort:S,onPage:N,onFilter:E,fetchEntityFilterData:D,fetchEntityByName:M}=cg(n.value),T=a.ref();let F=a.ref(!1);const $=X=>{i.value=X.reduce((Q,ie)=>{if(!ie.filterable)return Q;let ue=zo.CONTAINS;switch(ie.datatype.toLowerCase()){case"string":case"uuid":ue=zo.STARTS_WITH;break;case"date":ue=zo.DATE_IS;break;case"numeric":case"int":case"integer":ue=zo.EQUALS;break;case"bool":case"boolean":ue=zo.EQUALS;break}return ie.datatype=="bool"||ie.datatype=="boolean"?Q[ie.field]={value:null,matchMode:zo.EQUALS}:Q[ie.field]={operator:qm.AND,constraints:[{value:null,matchMode:ue}]},Q},{})},W=()=>{$(u.value),x.value=ne(i.value),E()},z=X=>{x.value=ne(i.value),E()},A=X=>{X?s.value=X[C.value.name]:s.value="",l.value=!l.value},j=()=>{l.value=!1,D(!1)},J=X=>{s.value=X[C.value.name],c.value=!0},oe=()=>{c.value=!1,D(!1)},ne=X=>Object.keys(X).map(Q=>{const ie=X[Q];return ie.constraints?ie.constraints.filter(ue=>ue.value!==null&&ue.value!=="").map(ue=>({columnName:Q,operator:y[ue.matchMode]??ue.matchMode,value:ue.value,columnType:v(Q)})):ie.value!==null&&ie.value!==""?{columnName:Q,operator:y[ie.matchMode]??ie.matchMode,value:ie.value,columnType:v(Q)}:[]}).flat();return a.watch(()=>e.globalConfigs.appId,async X=>{X&&M(n.value)},{immediate:!0}),a.watch(()=>u.value,X=>{!F.value&&X&&X.length&&($(X),F.value=!0)},{immediate:!0}),(X,Q)=>{const ie=a.resolveComponent("Button"),ue=a.resolveComponent("Toolbar"),De=a.resolveComponent("ProgressSpinner"),lt=a.resolveComponent("InputIcon"),Xe=a.resolveComponent("IconField"),wt=a.resolveComponent("DatePicker"),ft=a.resolveComponent("InputNumber"),q=a.resolveComponent("Checkbox"),L=a.resolveComponent("Column"),he=a.resolveComponent("DataTable");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.normalizeProps(a.guardReactiveProps(X.$attrs)),[a.renderSlot(X.$slots,"header"),t.showClearFilters||t.showAddButton?(a.openBlock(),a.createBlock(ue,{key:0,class:"mb-4 mt-4"},a.createSlots({_:2},[t.showClearFilters?{name:"start",fn:a.withCtx(()=>[a.createElementVNode("div",Km,[a.createVNode(ie,{type:"button",icon:"pi pi-filter-slash",label:"Clear",severity:"warning",onClick:Q[0]||(Q[0]=me=>W())})])]),key:"0"}:void 0,t.showAddButton?{name:"end",fn:a.withCtx(()=>[a.createVNode(ie,{label:"Add",icon:"pi pi-plus",class:"mr-2",severity:"success",onClick:Q[1]||(Q[1]=me=>A())})]),key:"1"}:void 0]),1024)):a.createCommentVNode("",!0),a.createVNode(he,{lazy:"",value:a.unref(d),loading:a.unref(m),ref_key:"dt",ref:T,stripedRows:!0,showGridlines:"",rowHover:!0,paginator:t.showPagination,rows:a.unref(g),rowsPerPageOptions:[10,25,50,100],totalRecords:a.unref(h),first:a.unref(f),sortField:a.unref(p),sortOrder:a.unref(b),filters:i.value,"onUpdate:filters":Q[5]||(Q[5]=me=>i.value=me),filterDisplay:"menu",scrollable:"",scrollHeight:"400px",onSort:a.unref(S),onPage:a.unref(N),onFilter:Q[6]||(Q[6]=me=>z()),size:"large",paginatorTemplate:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown",currentPageReportTemplate:"Showing {first} to {last} of {totalRecords} items"},{empty:a.withCtx(()=>Q[9]||(Q[9]=[a.createTextVNode(" No data found. ")])),loading:a.withCtx(()=>[a.createVNode(De)]),header:a.withCtx(()=>[a.createElementVNode("div",Gm,[a.createVNode(Xe,{iconPosition:"left",class:"block mt-2 md:mt-0"},{default:a.withCtx(()=>[a.createVNode(lt,{class:"pi pi-search",onClick:Q[2]||(Q[2]=me=>a.unref(_)())}),a.createVNode(a.unref(os.InputText),{class:"w-full sm:w-auto",onKeyup:Q[3]||(Q[3]=a.withKeys(me=>a.unref(_)(),["enter"])),modelValue:a.unref(B),"onUpdate:modelValue":Q[4]||(Q[4]=me=>a.isRef(B)?B.value=me:null),placeholder:"Search..."},null,8,["modelValue"])]),_:1})])]),default:a.withCtx(()=>{var me;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(u).filter(ge=>!o.columnsToShow||o.columnsToShow.length===0||o.columnsToShow.includes(ge.field)),ge=>(a.openBlock(),a.createBlock(L,{key:ge.field,dataType:a.unref(k)(ge.datatype),field:ge.field,header:ge.name,sortable:ge.sortable,showAddButton:!1,showFilterOperator:!1,style:{"text-wrap":"nowrap"}},a.createSlots({body:a.withCtx(({data:pe})=>[a.createVNode(ta,{column:ge,value:pe[ge.field]},null,8,["column","value"])]),_:2},[ge.datatype.toLowerCase()==="date"&&ge.filterable?{name:"filter",fn:a.withCtx(({filterModel:pe})=>[a.createVNode(wt,{modelValue:pe.value,"onUpdate:modelValue":Pe=>pe.value=Pe,dateFormat:"mm/dd/yy",placeholder:"mm/dd/yyyy"},null,8,["modelValue","onUpdate:modelValue"])]),key:"0"}:ge.datatype.toLowerCase()==="int"&&ge.filterable?{name:"filter",fn:a.withCtx(({filterModel:pe})=>[a.createVNode(ft,{modelValue:pe.value,"onUpdate:modelValue":Pe=>pe.value=Pe,placeholder:"Search..."},null,8,["modelValue","onUpdate:modelValue"])]),key:"1"}:ge.datatype.toLowerCase()==="boolean"&&ge.filterable?{name:"filter",fn:a.withCtx(({filterModel:pe})=>[a.createVNode(q,{modelValue:pe.value,"onUpdate:modelValue":Pe=>pe.value=Pe,indeterminate:pe.value===null,binary:""},null,8,["modelValue","onUpdate:modelValue","indeterminate"])]),key:"2"}:ge.filterable?{name:"filter",fn:a.withCtx(({filterModel:pe})=>[a.createVNode(a.unref(os.InputText),{style:{width:"150px"},type:"text",modelValue:pe.value,"onUpdate:modelValue":Pe=>pe.value=Pe,class:"p-column-filter",placeholder:"Search..."},null,8,["modelValue","onUpdate:modelValue"])]),key:"3"}:void 0]),1032,["dataType","field","header","sortable"]))),128)),((me=a.unref(d))==null?void 0:me.length)>0&&(t.editable||t.deleteable)?(a.openBlock(),a.createBlock(L,{key:0,header:"Actions"},{body:a.withCtx(({data:ge})=>[a.createElementVNode("div",Qm,[t.editable?(a.openBlock(),a.createBlock(ie,{key:0,onClick:pe=>A(ge),icon:"pi pi-pencil",severity:"success",size:"",rounded:"","aria-label":"Edit"},null,8,["onClick"])):a.createCommentVNode("",!0),t.deleteable?(a.openBlock(),a.createBlock(ie,{key:1,onClick:pe=>J(ge),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"},null,8,["onClick"])):a.createCommentVNode("",!0)])]),_:1})):a.createCommentVNode("",!0)]}),_:1},8,["value","loading","paginator","rows","totalRecords","first","sortField","sortOrder","filters","onSort","onPage"]),a.renderSlot(X.$slots,"footer")],16),l.value?(a.openBlock(),a.createBlock(Im,{key:0,showForm:l.value,"onUpdate:showForm":Q[7]||(Q[7]=me=>l.value=me),entityName:a.unref(w).entityName,recordId:s.value,onOnSaveDialog:j},null,8,["showForm","entityName","recordId"])):a.createCommentVNode("",!0),c.value?(a.openBlock(),a.createBlock(Lm,{key:1,showDeleteDialog:c.value,"onUpdate:showDeleteDialog":Q[8]||(Q[8]=me=>c.value=me),entityName:a.unref(w).entityName,recordId:s.value,onOnDeleteItem:oe},null,8,["showDeleteDialog","entityName","recordId"])):a.createCommentVNode("",!0)],64)}}};function Jm(){const t=new Map;return{on(e,o){let r=t.get(e);return r?r.push(o):r=[o],t.set(e,r),this},off(e,o){let r=t.get(e);return r&&r.splice(r.indexOf(o)>>>0,1),this},emit(e,o){let r=t.get(e);r&&r.slice().map(n=>{n(o)})},clear(){t.clear()}}}var Zm=Object.defineProperty,ep=Object.defineProperties,tp=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,Ml=Object.prototype.hasOwnProperty,Fl=Object.prototype.propertyIsEnumerable,Vl=(t,e,o)=>e in t?Zm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Re=(t,e)=>{for(var o in e||(e={}))Ml.call(e,o)&&Vl(t,o,e[o]);if(Pn)for(var o of Pn(e))Fl.call(e,o)&&Vl(t,o,e[o]);return t},jo=(t,e)=>ep(t,tp(e)),Vt=(t,e)=>{var o={};for(var r in t)Ml.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(t!=null&&Pn)for(var r of Pn(t))e.indexOf(r)<0&&Fl.call(t,r)&&(o[r]=t[r]);return o},op=Jm(),Zt=op;function Il(t,e){ea(t)?t.push(...e||[]):Qt(t)&&Object.assign(t,e)}function rp(t){return Qt(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function np(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function ra(t="",e=""){return np(`${Et(t,!1)&&Et(e,!1)?`${t}-`:t}${e}`)}function Ll(t="",e=""){return`--${ra(t,e)}`}function ip(t=""){const e=(t.match(/{/g)||[]).length,o=(t.match(/}/g)||[]).length;return(e+o)%2!==0}function zl(t,e="",o="",r=[],n){if(Et(t)){const i=/{([^}]*)}/g,s=t.trim();if(ip(s))return;if(Ft(s,i)){const l=s.replaceAll(i,u=>{const h=u.replace(/{|}/g,"").split(".").filter(g=>!r.some(m=>Ft(g,m)));return`var(${Ll(o,$l(h.join("-")))}${Ee(n)?`, ${n}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return Ft(l.replace(d,"0"),c)?`calc(${l})`:l}return s}else if(Um(t))return t}function ap(t,e,o){Et(e,!1)&&t.push(`${e}:${o};`)}function Wo(t,e){return t?`${t}{${e}}`:""}var ur=(...t)=>sp(Ce.getTheme(),...t),sp=(t={},e,o,r)=>{if(e){const{variable:n,options:i}=Ce.defaults||{},{prefix:s,transform:l}=(t==null?void 0:t.options)||i||{},d=Ft(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||Zi(r)&&l==="strict"?Ce.getTokenValue(e):zl(d,void 0,s,[n.excludedKeyRegex],o)}return""},jl=(t={})=>{let{preset:e,options:o}=t;return{preset(r){return e=e?Pl(e,r):r,this},options(r){return o=o?Re(Re({},o),r):r,this},primaryPalette(r){const{semantic:n}=e||{};return e=jo(Re({},e),{semantic:jo(Re({},n),{primary:r})}),this},surfacePalette(r){var n,i;const{semantic:s}=e||{},l=r!=null&&r.hasOwnProperty("light")?r==null?void 0:r.light:r,c=r!=null&&r.hasOwnProperty("dark")?r==null?void 0:r.dark:r,d={colorScheme:{light:Re(Re({},(n=s==null?void 0:s.colorScheme)==null?void 0:n.light),!!l&&{surface:l}),dark:Re(Re({},(i=s==null?void 0:s.colorScheme)==null?void 0:i.dark),!!c&&{surface:c})}};return e=jo(Re({},e),{semantic:Re(Re({},s),d)}),this},define({useDefaultPreset:r=!1,useDefaultOptions:n=!1}={}){return{preset:r?Ce.getPreset():e,options:n?Ce.getOptions():o}},update({mergePresets:r=!0,mergeOptions:n=!0}={}){const i={preset:r?Pl(Ce.getPreset(),e):e,options:n?Re(Re({},Ce.getOptions()),o):o};return Ce.setTheme(i),i},use(r){const n=this.define(r);return Ce.setTheme(n),n}}};function lp(t,e={}){const o=Ce.defaults.variable,{prefix:r=o.prefix,selector:n=o.selector,excludedKeyRegex:i=o.excludedKeyRegex}=e,s=(d,u="")=>Object.entries(d).reduce((f,[h,g])=>{const m=Ft(h,i)?ra(u):ra(u,$l(h)),p=rp(g);if(Qt(p)){const{variables:b,tokens:y}=s(p,m);Il(f.tokens,y),Il(f.variables,b)}else f.tokens.push((r?m.replace(`${r}-`,""):m).replaceAll("-",".")),ap(f.variables,Ll(m),zl(p,m,r,[i]));return f},{variables:[],tokens:[]}),{variables:l,tokens:c}=s(t,r);return{value:l,tokens:c,declarations:l.join(""),css:Wo(n,l.join(""))}}var yt={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(o=>o!=="custom").map(o=>this.rules[o]);return[t].flat().map(o=>{var r;return(r=e.map(n=>n.resolve(o)).find(n=>n.matched))!=null?r:this.rules.custom.resolve(o)})}},_toVariables(t,e){return lp(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:o,set:r,defaults:n}){var i,s,l,c,d,u,f;const{preset:h,options:g}=e;let m,p,b,y,x,C,B;if(Ee(h)&&g.transform!=="strict"){const{primitive:w,semantic:_,extend:v}=h,k=_||{},{colorScheme:S}=k,N=Vt(k,["colorScheme"]),E=v||{},{colorScheme:D}=E,M=Vt(E,["colorScheme"]),T=S||{},{dark:F}=T,$=Vt(T,["dark"]),W=D||{},{dark:z}=W,A=Vt(W,["dark"]),j=Ee(w)?this._toVariables({primitive:w},g):{},J=Ee(N)?this._toVariables({semantic:N},g):{},oe=Ee($)?this._toVariables({light:$},g):{},ne=Ee(F)?this._toVariables({dark:F},g):{},X=Ee(M)?this._toVariables({semantic:M},g):{},Q=Ee(A)?this._toVariables({light:A},g):{},ie=Ee(z)?this._toVariables({dark:z},g):{},[ue,De]=[(i=j.declarations)!=null?i:"",j.tokens],[lt,Xe]=[(s=J.declarations)!=null?s:"",J.tokens||[]],[wt,ft]=[(l=oe.declarations)!=null?l:"",oe.tokens||[]],[q,L]=[(c=ne.declarations)!=null?c:"",ne.tokens||[]],[he,me]=[(d=X.declarations)!=null?d:"",X.tokens||[]],[ge,pe]=[(u=Q.declarations)!=null?u:"",Q.tokens||[]],[Pe,rt]=[(f=ie.declarations)!=null?f:"",ie.tokens||[]];m=this.transformCSS(t,ue,"light","variable",g,r,n),p=De;const Pt=this.transformCSS(t,`${lt}${wt}`,"light","variable",g,r,n),ze=this.transformCSS(t,`${q}`,"dark","variable",g,r,n);b=`${Pt}${ze}`,y=[...new Set([...Xe,...ft,...L])];const nt=this.transformCSS(t,`${he}${ge}color-scheme:light`,"light","variable",g,r,n),ht=this.transformCSS(t,`${Pe}color-scheme:dark`,"dark","variable",g,r,n);x=`${nt}${ht}`,C=[...new Set([...me,...pe,...rt])],B=bt(h.css,{dt:ur})}return{primitive:{css:m,tokens:p},semantic:{css:b,tokens:y},global:{css:x,tokens:C},style:B}},getPreset({name:t="",preset:e={},options:o,params:r,set:n,defaults:i,selector:s}){var l,c,d;let u,f,h;if(Ee(e)&&o.transform!=="strict"){const g=t.replace("-directive",""),m=e,{colorScheme:p,extend:b,css:y}=m,x=Vt(m,["colorScheme","extend","css"]),C=b||{},{colorScheme:B}=C,w=Vt(C,["colorScheme"]),_=p||{},{dark:v}=_,k=Vt(_,["dark"]),S=B||{},{dark:N}=S,E=Vt(S,["dark"]),D=Ee(x)?this._toVariables({[g]:Re(Re({},x),w)},o):{},M=Ee(k)?this._toVariables({[g]:Re(Re({},k),E)},o):{},T=Ee(v)?this._toVariables({[g]:Re(Re({},v),N)},o):{},[F,$]=[(l=D.declarations)!=null?l:"",D.tokens||[]],[W,z]=[(c=M.declarations)!=null?c:"",M.tokens||[]],[A,j]=[(d=T.declarations)!=null?d:"",T.tokens||[]],J=this.transformCSS(g,`${F}${W}`,"light","variable",o,n,i,s),oe=this.transformCSS(g,A,"dark","variable",o,n,i,s);u=`${J}${oe}`,f=[...new Set([...$,...z,...j])],h=bt(y,{dt:ur})}return{css:u,tokens:f,style:h}},getPresetC({name:t="",theme:e={},params:o,set:r,defaults:n}){var i;const{preset:s,options:l}=e,c=(i=s==null?void 0:s.components)==null?void 0:i[t];return this.getPreset({name:t,preset:c,options:l,params:o,set:r,defaults:n})},getPresetD({name:t="",theme:e={},params:o,set:r,defaults:n}){var i;const s=t.replace("-directive",""),{preset:l,options:c}=e,d=(i=l==null?void 0:l.directives)==null?void 0:i[s];return this.getPreset({name:s,preset:d,options:c,params:o,set:r,defaults:n})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var o;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(o=t.darkModeSelector)!=null?o:e.options.darkModeSelector):[]},getLayerOrder(t,e={},o,r){const{cssLayer:n}=e;return n?`@layer ${bt(n.order||"primeui",o)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:o,props:r={},set:n,defaults:i}){const s=this.getCommon({name:t,theme:e,params:o,set:n,defaults:i}),l=Object.entries(r).reduce((c,[d,u])=>c.push(`${d}="${u}"`)&&c,[]).join(" ");return Object.entries(s||{}).reduce((c,[d,u])=>{if(u!=null&&u.css){const f=dr(u==null?void 0:u.css),h=`${d}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${h}" ${l}>${f}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:o,props:r={},set:n,defaults:i}){var s;const l={name:t,theme:e,params:o,set:n,defaults:i},c=(s=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:s.css,d=Object.entries(r).reduce((u,[f,h])=>u.push(`${f}="${h}"`)&&u,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${dr(c)}</style>`:""},createTokens(t={},e,o="",r="",n={}){return Object.entries(t).forEach(([i,s])=>{const l=Ft(i,e.variable.excludedKeyRegex)?o:o?`${o}.${Al(i)}`:Al(i),c=r?`${r}.${i}`:i;Qt(s)?this.createTokens(s,e,l,c,n):(n[l]||(n[l]={paths:[],computed(d,u={}){var f,h;return this.paths.length===1?(f=this.paths[0])==null?void 0:f.computed(this.paths[0].scheme,u.binding):d&&d!=="none"?(h=this.paths.find(g=>g.scheme===d))==null?void 0:h.computed(d,u.binding):this.paths.map(g=>g.computed(g.scheme,u[g.scheme]))}}),n[l].paths.push({path:c,value:s,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(d,u={}){const f=/{([^}]*)}/g;let h=s;if(u.name=this.path,u.binding||(u.binding={}),Ft(s,f)){const m=s.trim().replaceAll(f,y=>{var x;const C=y.replace(/{|}/g,""),B=(x=n[C])==null?void 0:x.computed(d,u);return ea(B)&&B.length===2?`light-dark(${B[0].value},${B[1].value})`:B==null?void 0:B.value}),p=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,b=/var\([^)]+\)/g;h=Ft(m.replace(b,"0"),p)?`calc(${m})`:m}return Zi(u.binding)&&delete u.binding,{colorScheme:d,path:this.path,paths:u,value:h.includes("undefined")?void 0:h}}}))}),n},getTokenValue(t,e,o){var r;const i=(c=>c.split(".").filter(u=>!Ft(u.toLowerCase(),o.variable.excludedKeyRegex)).join("."))(e),s=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,l=[(r=t[i])==null?void 0:r.computed(s)].flat().filter(c=>c);return l.length===1?l[0].value:l.reduce((c={},d)=>{const u=d,{colorScheme:f}=u,h=Vt(u,["colorScheme"]);return c[f]=h,c},void 0)},getSelectorRule(t,e,o,r){return o==="class"||o==="attr"?Wo(Ee(e)?`${t}${e},${t} ${e}`:t,r):Wo(t,Ee(e)?Wo(e,r):r)},transformCSS(t,e,o,r,n={},i,s,l){if(Ee(e)){const{cssLayer:c}=n;if(r!=="style"){const d=this.getColorSchemeOption(n,s);e=o==="dark"?d.reduce((u,{type:f,selector:h})=>(Ee(h)&&(u+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,l,f,e)),u),""):Wo(l??":root",e)}if(c){const d={name:"primeui",order:"primeui"};Qt(c)&&(d.name=bt(c.name,{name:t,type:r})),Ee(d.name)&&(e=Wo(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},Ce={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=jo(Re({},e),{options:Re(Re({},this.defaults.options),e.options)}),this._tokens=yt.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),Zt.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=jo(Re({},this.theme),{preset:t}),this._tokens=yt.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Zt.emit("preset:change",t),Zt.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=jo(Re({},this.theme),{options:t}),this.clearLoadedStyleNames(),Zt.emit("options:change",t),Zt.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return yt.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return yt.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const o={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return yt.getPresetC(o)},getDirective(t="",e){const o={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return yt.getPresetD(o)},getCustomPreset(t="",e,o,r){const n={name:t,preset:e,options:this.options,selector:o,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return yt.getPreset(n)},getLayerOrderCSS(t=""){return yt.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,o="style",r){return yt.transformCSS(t,e,r,o,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,o={}){return yt.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,o={}){return yt.getStyleSheet({name:t,theme:this.theme,params:e,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),Zt.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Zt.emit("theme:load"))}};function cp(t){return jl().surfacePalette(t).update().preset}function na(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function ia(t,e={}){if(na(t)){const o=(r,n)=>{var i,s;const l=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(s=t==null?void 0:t.$attrs)==null?void 0:s[r]]:[];return[n].flat().reduce((c,d)=>{if(d!=null){const u=typeof d;if(u==="string"||u==="number")c.push(d);else if(u==="object"){const f=Array.isArray(d)?o(r,d):Object.entries(d).map(([h,g])=>r==="style"&&(g||g===0)?`${h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${g}`:g?h:void 0);c=f.length?c.concat(f.filter(h=>!!h)):c}}return c},l)};Object.entries(e).forEach(([r,n])=>{if(n!=null){const i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),n):r==="p-bind"||r==="pBind"?ia(t,n):(n=r==="class"?[...new Set(o("class",n))].join(" ").trim():r==="style"?o("style",n).join(";").trim():n,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=n),t.setAttribute(r,n))}})}}function dp(t,e){return na(t)?t.matches(e)?t:t.querySelector(e):null}function up(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function fp(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&up(t))}function Wl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function hp(t,e="",o){na(t)&&o!==null&&o!==void 0&&t.setAttribute(e,o)}var $n={};function gp(t="pui_id_"){return $n.hasOwnProperty(t)||($n[t]=0),$n[t]++,`${t}${$n[t]}`}var fr={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function hr(t){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hr(t)}function Hl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function Ul(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Hl(Object(o),!0).forEach(function(r){mp(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Hl(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function mp(t,e,o){return(e=pp(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function pp(t){var e=bp(t,"string");return hr(e)=="symbol"?e:e+""}function bp(t,e){if(hr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(hr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yp(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a.getCurrentInstance()?a.onMounted(t):e?t():a.nextTick(t)}var kp=0;function xp(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.ref(!1),r=a.ref(t),n=a.ref(null),i=Wl()?window.document:void 0,s=e.document,l=s===void 0?i:s,c=e.immediate,d=c===void 0?!0:c,u=e.manual,f=u===void 0?!1:u,h=e.name,g=h===void 0?"style_".concat(++kp):h,m=e.id,p=m===void 0?void 0:m,b=e.media,y=b===void 0?void 0:b,x=e.nonce,C=x===void 0?void 0:x,B=e.first,w=B===void 0?!1:B,_=e.onMounted,v=_===void 0?void 0:_,k=e.onUpdated,S=k===void 0?void 0:k,N=e.onLoad,E=N===void 0?void 0:N,D=e.props,M=D===void 0?{}:D,T=function(){},F=function(z){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var j=Ul(Ul({},M),A),J=j.name||g,oe=j.id||p,ne=j.nonce||C;n.value=l.querySelector('style[data-primevue-style-id="'.concat(J,'"]'))||l.getElementById(oe)||l.createElement("style"),n.value.isConnected||(r.value=z||t,ia(n.value,{type:"text/css",id:oe,media:y,nonce:ne}),w?l.head.prepend(n.value):l.head.appendChild(n.value),hp(n.value,"data-primevue-style-id",J),ia(n.value,j),n.value.onload=function(X){return E==null?void 0:E(X,{name:J})},v==null||v(J)),!o.value&&(T=a.watch(r,function(X){n.value.textContent=X,S==null||S(J)},{immediate:!0}),o.value=!0)}},$=function(){!l||!o.value||(T(),fp(n.value)&&l.head.removeChild(n.value),o.value=!1)};return d&&!f&&yp(F),{id:p,name:g,el:n,css:r,unload:$,load:F,isLoaded:a.readonly(o)}}function gr(t){"@babel/helpers - typeof";return gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gr(t)}function ql(t,e){return _p(t)||Cp(t,e)||wp(t,e)||vp()}function vp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
17
|
+
attempted value: ${a}
|
|
18
|
+
`+(l!==a?`result of cast: ${l}`:""))}return i}_cast(e,o){let r=e===void 0?e:this.transforms.reduce((n,i)=>i.call(this,n,e,this),e);return r===void 0&&(r=this.getDefault(o)),r}_validate(e,o={},r,n){let{path:i,originalValue:a=e,strict:l=this.spec.strict}=o,c=e;l||(c=this._cast(c,Object.assign({assert:!1},o)));let d=[];for(let u of Object.values(this.internalTests))u&&d.push(u);this.runTests({path:i,value:c,originalValue:a,options:o,tests:d},r,u=>{if(u.length)return n(u,c);this.runTests({path:i,value:c,originalValue:a,options:o,tests:this.tests},r,n)})}runTests(e,o,r){let n=!1,{tests:i,value:a,originalValue:l,path:c,options:d}=e,u=p=>{n||(n=!0,o(p,a))},f=p=>{n||(n=!0,r(p,a))},h=i.length,g=[];if(!h)return f([]);let m={value:a,originalValue:l,path:c,options:d,schema:this};for(let p=0;p<i.length;p++){const b=i[p];b(m,u,function(x){x&&(Array.isArray(x)?g.push(...x):g.push(x)),--h<=0&&f(g)})}}asNestedTest({key:e,index:o,parent:r,parentPath:n,originalParent:i,options:a}){const l=e??o;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const c=typeof l=="number";let d=r[l];const u=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:i[l],key:void 0,[c?"index":"key"]:l,path:c||l.includes(".")?`${n||""}[${c?l:`"${l}"`}]`:(n?`${n}.`:"")+e});return(f,h,g)=>this.resolve(u)._validate(d,u,h,g)}validate(e,o){var r;let n=this.resolve(Object.assign({},o,{value:e})),i=(r=o==null?void 0:o.disableStackTrace)!=null?r:n.spec.disableStackTrace;return new Promise((a,l)=>n._validate(e,o,(c,d)=>{Je.isError(c)&&(c.value=d),l(c)},(c,d)=>{c.length?l(new Je(c,d,void 0,void 0,i)):a(d)}))}validateSync(e,o){var r;let n=this.resolve(Object.assign({},o,{value:e})),i,a=(r=o==null?void 0:o.disableStackTrace)!=null?r:n.spec.disableStackTrace;return n._validate(e,Object.assign({},o,{sync:!0}),(l,c)=>{throw Je.isError(l)&&(l.value=c),l},(l,c)=>{if(l.length)throw new Je(l,e,void 0,void 0,a);i=c}),i}isValid(e,o){return this.validate(e,o).then(()=>!0,r=>{if(Je.isError(r))return!1;throw r})}isValidSync(e,o){try{return this.validateSync(e,o),!0}catch(r){if(Je.isError(r))return!1;throw r}}_getDefault(e){let o=this.spec.default;return o==null?o:typeof o=="function"?o.call(this,e):zo(o)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,o){const r=this.clone({nullable:e});return r.internalTests.nullable=Io({message:o,name:"nullable",test(n){return n===null?this.schema.spec.nullable:!0}}),r}optionality(e,o){const r=this.clone({optional:e});return r.internalTests.optionality=Io({message:o,name:"optionality",test(n){return n===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(e=St.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=St.notNull){return this.nullability(!1,e)}required(e=St.required){return this.clone().withMutation(o=>o.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let o=this.clone();return o.transforms.push(e),o}test(...e){let o;if(e.length===1?typeof e[0]=="function"?o={test:e[0]}:o=e[0]:e.length===2?o={name:e[0],test:e[1]}:o={name:e[0],message:e[1],test:e[2]},o.message===void 0&&(o.message=St.default),typeof o.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),n=Io(o),i=o.exclusive||o.name&&r.exclusiveTests[o.name]===!0;if(o.exclusive&&!o.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return o.name&&(r.exclusiveTests[o.name]=!!o.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===o.name&&(i||a.OPTIONS.test===n.OPTIONS.test))),r.tests.push(n),r}when(e,o){!Array.isArray(e)&&typeof e!="string"&&(o=e,e=".");let r=this.clone(),n=bl(e).map(i=>new vo(i));return n.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof o=="function"?new Rn(n,o):Rn.fromOptions(n,o)),r}typeError(e){let o=this.clone();return o.internalTests.typeError=Io({message:e,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),o}oneOf(e,o=St.oneOf){let r=this.clone();return e.forEach(n=>{r._whitelist.add(n),r._blacklist.delete(n)}),r.internalTests.whiteList=Io({message:o,name:"oneOf",skipAbsent:!0,test(n){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(n)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(e,o=St.notOneOf){let r=this.clone();return e.forEach(n=>{r._blacklist.add(n),r._whitelist.delete(n)}),r.internalTests.blacklist=Io({message:o,name:"notOneOf",test(n){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(n)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(e=!0){let o=this.clone();return o.spec.strip=e,o}describe(e){const o=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:i,nullable:a}=o.spec;return{meta:n,label:r,optional:i,nullable:a,default:o.getDefault(e),type:o.type,oneOf:o._whitelist.describe(),notOneOf:o._blacklist.describe(),tests:o.tests.map(c=>({name:c.OPTIONS.name,params:c.OPTIONS.params})).filter((c,d,u)=>u.findIndex(f=>f.name===c.name)===d)}}}Bt.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])Bt.prototype[`${t}At`]=function(e,o,r={}){const{parent:n,parentPath:i,schema:a}=fm(this,e,o,r.context);return a[t](n&&n[i],Object.assign({},r,{parent:n,path:e}))};for(const t of["equals","is"])Bt.prototype[t]=Bt.prototype.oneOf;for(const t of["not","nope"])Bt.prototype[t]=Bt.prototype.notOneOf;const hm=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function gm(t){const e=Ki(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let o=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(o=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(o=0-o)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+o,e.second,e.millisecond)}function Ki(t){var e,o;const r=hm.exec(t);return r?{year:Mt(r[1]),month:Mt(r[2],1)-1,day:Mt(r[3],1),hour:Mt(r[4]),minute:Mt(r[5]),second:Mt(r[6]),millisecond:r[7]?Mt(r[7].substring(0,3)):0,precision:(e=(o=r[7])==null?void 0:o.length)!=null?e:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Mt(r[10]),minuteOffset:Mt(r[11])}:null}function Mt(t,e=0){return Number(t)||e}let mm=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,pm=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,bm=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,ym="^\\d{4}-\\d{2}-\\d{2}",km="\\d{2}:\\d{2}:\\d{2}",xm="(([+-]\\d{2}(:?\\d{2})?)|Z)",vm=new RegExp(`${ym}T${km}(\\.\\d+)?${xm}$`),wm=t=>wo(t)||t===t.trim(),Cm={}.toString();function Gi(){return new wl}class wl extends Bt{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,o,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;const n=e!=null&&e.toString?e.toString():e;return n===Cm?e:n})})}required(e){return super.required(e).withMutation(o=>o.test({message:e||St.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(o=>o.OPTIONS.name!=="required"),e))}length(e,o=Ze.length){return this.test({message:o,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,o=Ze.min){return this.test({message:o,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,o=Ze.max){return this.test({name:"max",exclusive:!0,message:o,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}matches(e,o){let r=!1,n,i;return o&&(typeof o=="object"?{excludeEmptyString:r=!1,message:n,name:i}=o:n=o),this.test({name:i||"matches",message:n||Ze.matches,params:{regex:e},skipAbsent:!0,test:a=>a===""&&r||a.search(e)!==-1})}email(e=Ze.email){return this.matches(mm,{name:"email",message:e,excludeEmptyString:!0})}url(e=Ze.url){return this.matches(pm,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Ze.uuid){return this.matches(bm,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let o="",r,n;return e&&(typeof e=="object"?{message:o="",allowOffset:r=!1,precision:n=void 0}=e:o=e),this.matches(vm,{name:"datetime",message:o||Ze.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:o||Ze.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=Ki(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:o||Ze.datetime_precision,params:{precision:n},skipAbsent:!0,test:i=>{if(!i||n==null)return!0;const a=Ki(i);return a?a.precision===n:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=Ze.trim){return this.transform(o=>o!=null?o.trim():o).test({message:e,name:"trim",test:wm})}lowercase(e=Ze.lowercase){return this.transform(o=>wo(o)?o:o.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:o=>wo(o)||o===o.toLowerCase()})}uppercase(e=Ze.uppercase){return this.transform(o=>wo(o)?o:o.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:o=>wo(o)||o===o.toUpperCase()})}}Gi.prototype=wl.prototype;let _m=new Date(""),Sm=t=>Object.prototype.toString.call(t)==="[object Date]";class Nn extends Bt{constructor(){super({type:"date",check(e){return Sm(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,o,r)=>!r.spec.coerce||r.isType(e)||e===null?e:(e=gm(e),isNaN(e)?Nn.INVALID_DATE:new Date(e)))})}prepareParam(e,o){let r;if(vo.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw new TypeError(`\`${o}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,o=Yi.min){let r=this.prepareParam(e,"min");return this.test({message:o,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n>=this.resolve(r)}})}max(e,o=Yi.max){let r=this.prepareParam(e,"max");return this.test({message:o,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n<=this.resolve(r)}})}}Nn.INVALID_DATE=_m,Nn.prototype;function Bm(t,e=[]){let o=[],r=new Set,n=new Set(e.map(([a,l])=>`${a}-${l}`));function i(a,l){let c=xo.split(a)[0];r.add(c),n.has(`${l}-${c}`)||o.push([l,c])}for(const a of Object.keys(t)){let l=t[a];r.add(a),vo.isRef(l)&&l.isSibling?i(l.path,a):Xi(l)&&"deps"in l&&l.deps.forEach(c=>i(c,a))}return om.array(Array.from(r),o).reverse()}function Cl(t,e){let o=1/0;return t.some((r,n)=>{var i;if((i=e.path)!=null&&i.includes(r))return o=n,!0}),o}function _l(t){return(e,o)=>Cl(t,e)-Cl(t,o)}const Em=(t,e,o)=>{if(typeof t!="string")return t;let r=t;try{r=JSON.parse(t)}catch{}return o.isType(r)?r:t};function Tn(t){if("fields"in t){const e={};for(const[o,r]of Object.entries(t.fields))e[o]=Tn(r);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=Tn(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(Tn)}):"optional"in t?t.optional():t}const Rm=(t,e)=>{const o=[...xo.normalizePath(e)];if(o.length===1)return o[0]in t;let r=o.pop(),n=xo.getter(xo.join(o),!0)(t);return!!(n&&r in n)};let Sl=t=>Object.prototype.toString.call(t)==="[object Object]";function Bl(t,e){let o=Object.keys(t.fields);return Object.keys(e).filter(r=>o.indexOf(r)===-1)}const Om=_l([]);function Qi(t){return new El(t)}class El extends Bt{constructor(e){super({type:"object",check(o){return Sl(o)||typeof o=="function"}}),this.fields=Object.create(null),this._sortErrors=Om,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,o={}){var r;let n=super._cast(e,o);if(n===void 0)return this.getDefault(o);if(!this._typeCheck(n))return n;let i=this.fields,a=(r=o.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(n).filter(f=>!this._nodes.includes(f))),c={},d=Object.assign({},o,{parent:c,__validating:o.__validating||!1}),u=!1;for(const f of l){let h=i[f],g=f in n;if(h){let m,p=n[f];d.path=(o.path?`${o.path}.`:"")+f,h=h.resolve({value:p,context:o.context,parent:c});let b=h instanceof Bt?h.spec:void 0,y=b==null?void 0:b.strict;if(b!=null&&b.strip){u=u||f in n;continue}m=!o.__validating||!y?h.cast(n[f],d):n[f],m!==void 0&&(c[f]=m)}else g&&!a&&(c[f]=n[f]);(g!==f in c||c[f]!==n[f])&&(u=!0)}return u?c:n}_validate(e,o={},r,n){let{from:i=[],originalValue:a=e,recursive:l=this.spec.recursive}=o;o.from=[{schema:this,value:a},...i],o.__validating=!0,o.originalValue=a,super._validate(e,o,r,(c,d)=>{if(!l||!Sl(d)){n(c,d);return}a=a||d;let u=[];for(let f of this._nodes){let h=this.fields[f];!h||vo.isRef(h)||u.push(h.asNestedTest({options:o,key:f,parent:d,parentPath:o.path,originalParent:a}))}this.runTests({tests:u,value:d,originalValue:a,options:o},r,f=>{n(f.sort(this._sortErrors).concat(c),d)})})}clone(e){const o=super.clone(e);return o.fields=Object.assign({},this.fields),o._nodes=this._nodes,o._excludedEdges=this._excludedEdges,o._sortErrors=this._sortErrors,o}concat(e){let o=super.concat(e),r=o.fields;for(let[n,i]of Object.entries(this.fields)){const a=r[n];r[n]=a===void 0?i:a}return o.withMutation(n=>n.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let o={};return this._nodes.forEach(r=>{var n;const i=this.fields[r];let a=e;(n=a)!=null&&n.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),o[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),o}setFields(e,o){let r=this.clone();return r.fields=e,r._nodes=Bm(e,o),r._sortErrors=_l(Object.keys(e)),o&&(r._excludedEdges=o),r}shape(e,o=[]){return this.clone().withMutation(r=>{let n=r._excludedEdges;return o.length&&(Array.isArray(o[0])||(o=[o]),n=[...r._excludedEdges,...o]),r.setFields(Object.assign(r.fields,e),n)})}partial(){const e={};for(const[o,r]of Object.entries(this.fields))e[o]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return Tn(this)}pick(e){const o={};for(const r of e)this.fields[r]&&(o[r]=this.fields[r]);return this.setFields(o,this._excludedEdges.filter(([r,n])=>e.includes(r)&&e.includes(n)))}omit(e){const o=[];for(const r of Object.keys(this.fields))e.includes(r)||o.push(r);return this.pick(o)}from(e,o,r){let n=xo.getter(e,!0);return this.transform(i=>{if(!i)return i;let a=i;return Rm(i,e)&&(a=Object.assign({},i),r||delete a[e],a[o]=n(i)),a})}json(){return this.transform(Em)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||En.exact,test(o){if(o==null)return!0;const r=Bl(this.schema,o);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,o=En.noUnknown){typeof e!="boolean"&&(o=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:o,test(n){if(n==null)return!0;const i=Bl(this.schema,n);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,o=En.noUnknown){return this.noUnknown(!e,o)}transformKeys(e){return this.transform(o=>{if(!o)return o;const r={};for(const n of Object.keys(o))r[e(n)]=o[n];return r})}camelCase(){return this.transformKeys(qi.camelCase)}snakeCase(){return this.transformKeys(qi.snakeCase)}constantCase(){return this.transformKeys(e=>qi.snakeCase(e).toUpperCase())}describe(e){const o=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[i,a]of Object.entries(o.fields)){var n;let l=e;(n=l)!=null&&n.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),r.fields[i]=a.describe(l)}return r}}Qi.prototype=El.prototype;function Ji(t,e,o){const r=new mt;let n=s.ref({});const i=s.ref({}),a=s.ref({});let l=s.ref([]);const c=s.ref(null),d=s.ref([]);let u=s.ref([]),f=s.ref(!1);const h=s.ref({});let{handleSubmit:g,errors:m,setErrors:p}=ul();const b=async()=>{var z;try{const $=await r.getEntityRecords(t);$&&$.response&&(n.value=$.response,l.value=(z=$.response.entity.entityDefinition)==null?void 0:z.columns,W(),v(),E())}catch($){toast.add({severity:"error",summary:"Error",detail:$.errorMessage,life:3e3})}finally{}},y=async()=>{var z;try{const $=await r.getRecord(t,e);$&&$.response&&(n.value=$.response,l.value=(z=$.response.entity.entityDefinition)==null?void 0:z.columns,W(),i.value=JSON.parse(JSON.stringify($.response.result[0])),E())}catch($){console.error("Error fetching entity:",$.errorMessage)}finally{}},x=async()=>{var z,$;try{const j=await r.getRelatedEntityRecord(t,e);j&&j.response&&(n.value=j.response,l.value=($=(z=j.response.entity)==null?void 0:z.entityDefinition)==null?void 0:$.columns,W(),i.value=JSON.parse(JSON.stringify(j.response.result[0])),i.value.entityName&&delete i.value.entityName,i.value.linkedEntities&&delete i.value.linkedEntities,u.value=j.response.result[0].linkedEntities,a.value=JSON.parse(JSON.stringify(i.value)),E())}catch(j){console.error("Error fetching entity:",j.errorMessage)}finally{}},C=async z=>{try{let $=await r.addRecord(t,z);$&&$.response&&o("onSaveDialog",{entityName:t,recordId:e})}catch($){$.validationErrors&&(d.value=JSON.parse(JSON.stringify($.validationErrors))),console.error("Error fetching entity:",$.errorMessage)}finally{}},B=async(z,$)=>{try{let j=await r.addRecord(t,$);if(j&&j.response){let J=await r.saveRelatedEntityRecord(t,j.response.recordId,z.linkedEntities);J&&J.response&&o("onSaveDialog",{entityName:t,recordId:e})}}catch(j){j.validationErrors&&(d.value=JSON.parse(JSON.stringify(j.validationErrors))),console.error("Error fetching entity:",j.errorMessage)}finally{}},w=async z=>{try{const $=await r.updateRecord(t,e,z);$&&$.response&&(f.value=!1,a.value=JSON.parse(JSON.stringify(i.value)),o("onSaveDialog",{entityName:t,recordId:e}))}catch($){$.validationErrors&&(d.value=JSON.parse(JSON.stringify($.errvalidationErrorsors))),console.error("Error fetching entity:",$.errorMessage)}finally{}},_=async(z,$,j)=>{try{let J=await r.saveRelatedEntityRecord(z,$,j);J&&J.response&&o("onSaveDialog",{entityName:t,enityRecordId:$})}catch(J){J.validationErrors&&(d.value=JSON.parse(JSON.stringify(J.validationErrors))),console.error("Error fetching entity:",J.errorMessage)}finally{}},v=()=>{for(let z=0;z<l.value.length;z++){let $=l.value[z];$.autoGenerated||(i.value[$.name]="")}},k=z=>{let $="";for(let j=0;j<l.value.length;j++){let J=l.value[j];if(z==J.name){$=J.type;break}}return $},S=()=>{const z=l.value.filter(j=>j.autoGenerated).map(j=>j.name);return Object.entries(i.value).filter(([j])=>!z.includes(j)).map(([j,J])=>({recordColumnName:j,recordColumnValue:J,columnType:k(j)}))},N=async(z={})=>{try{await c.value.validate(i.value,{abortEarly:!1}),p({})}catch(j){const J=j.inner.reduce((ne,X)=>(ne[X.path]||(ne[X.path]={messages:[]}),ne[X.path].messages.push(...X.errors),ne),{}),oe=Object.entries(J).reduce((ne,[X,Q])=>(ne[X]={messages:Q.messages},ne),{});p(oe);return}const $={dataDefinitions:S()};e?await w($):z.relationType=="MANY_TO_ONE"?await B(z,$):await C($)},E=()=>{c.value=Qi().shape(l.value.reduce((z,$)=>($.autoGenerated||(z[$.name]=Gi().nullable(!1).test({name:"custom-validation",test:function(j){const J=[];let oe="";if($.required&&(!j||j.trim()===""))if($.validations){oe=D($.validations,"VALIDATE_REQUIRED"),J.push(oe);let ne=T($.validations,"VALIDATE_REQUIRED");ne&&(ne="hint:"+ne,J.push(ne))}else oe=$.displayName+" is required.",J.push(oe);else{if($.maxLength&&j.length>$.maxLength)if($.validations){oe=D($.validations,"VALIDATE_MAXLENGTH"),J.push(oe);let ne=T($.validations,"VALIDATE_MAXLENGTH");ne&&(ne="hint:"+ne,J.push(ne))}else oe=$.displayName+" cannot exceed from "+$.maxLength+" characters",J.push(oe);if($.regxId&&!new RegExp(M($.validations,"VALIDATE_REGX")).test(j))if($.validations){oe=D($.validations,"VALIDATE_REGX"),J.push(oe);let ne=T($.validations,"VALIDATE_REGX");ne&&(ne="hint:"+ne,J.push(ne))}else oe=$.displayName+" invalid format.",J.push(oe)}return J.length>0?this.createError({message:J}):!0}})),z),{}))},D=(z,$)=>{for(let j=0;j<z.length;j++)if($==z[j].type)return z[j].message},M=(z,$)=>{for(let j=0;j<z.length;j++)if($==z[j].type)return z[j].regx},T=(z,$)=>{for(let j=0;j<z.length;j++)if($==z[j].type)return z[j].hint},F=z=>{p({...m.value,[z]:null}),f.value=!0},A=()=>{f.value=!1;for(let z in i.value)i.value.hasOwnProperty(z)&&p({...m.value,[z]:null});i.value=JSON.parse(JSON.stringify(a.value))},W=()=>{for(let z=0;z<l.value.length;z++){const $=l.value[z];if($.primaryKey&&$.primaryKey==!0){h.value=$;break}}};return{formData:i,columns:l,errors:m,backendErrors:d,isDataChange:f,linkedEntities:u,primarayKeyColumn:h,clearErrors:F,saveRecord:N,fetchAllRecords:b,fetchRecord:y,getRelatedEntityRecordById:x,cancleRecord:A,saveRelatedEntityRecord:_}}const Dm={key:0,class:"surface-card"},Nm={class:"info"},Tm={key:0,class:"list-none p-0"},Rl={__name:"EntityFormErrors",props:{errors:Array},setup(t){let e=s.ref(!0);const o=()=>{e.value=!e.value};return(r,n)=>{var a;const i=s.resolveComponent("Message");return((a=t.errors)==null?void 0:a.length)>0?(s.openBlock(),s.createElementBlock("div",Dm,[n[1]||(n[1]=s.createElementVNode("h4",{class:"flex-1 font-bold text-red-500"},"Errors",-1)),s.createElementVNode("div",Nm,[s.createElementVNode("span",{onClick:n[0]||(n[0]=l=>o()),class:"cursor-pointer underline showHideColor"},s.toDisplayString(s.unref(e)?"Hide":"Show"),1)]),s.unref(e)?(s.openBlock(),s.createElementBlock("ul",Tm,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.errors,(l,c)=>(s.openBlock(),s.createElementBlock("li",{key:c,class:"mb-2"},[s.createVNode(i,{style:{"word-break":"break-all"},closable:!1,severity:"error"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(l.message),1)]),_:2},1024)]))),128))])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)}}},Pm={class:"field flex flex-col mb-3"},Am=["for"],$m={key:0,class:"flex items-center"},Mm={key:1},Fm={class:"flex items-center"},Ol={__name:"RelatedEntitySelection",props:{modelValue:{required:!0},entityName:{type:String,required:!0},columnName:{type:String,required:!0},relatedEntityColumn:{type:String,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){useRoute();const{getEntityRecords:o,searchEntityRecords:r,saveRelatedEntityRecord:n,getRecord:i,addRecord:a,updateRecord:l,deleteRecord:c}=mt(),d=t,u=s.ref({});let f=s.ref("");const h=e;s.onMounted(()=>{g()});const g=async()=>{try{const b=await o(d.entityName);b&&b.response&&(u.value=b.response,p())}catch{}finally{}},m=()=>{h("update:modelValue",f.value[d.relatedEntityColumn])},p=()=>{for(let b=0;b<u.value.result.length;b++){const y=u.value.result[b];if(y[d.relatedEntityColumn]==d.modelValue){f.value=y;break}}};return(b,y)=>{const x=s.resolveComponent("Select");return s.openBlock(),s.createElementBlock("div",Pm,[s.createElementVNode("label",{for:t.columnName},s.toDisplayString(t.columnName),9,Am),s.createVNode(x,{modelValue:s.unref(f),"onUpdate:modelValue":[y[0]||(y[0]=C=>s.isRef(f)?f.value=C:f=C),m],"item-value":t.relatedEntityColumn,options:u.value.result,filter:"",optionLabel:t.relatedEntityColumn,placeholder:"Select "+t.relatedEntityColumn,class:"w-full"},{value:s.withCtx(C=>[C.value?(s.openBlock(),s.createElementBlock("div",$m,[s.createElementVNode("div",null,s.toDisplayString(C.value[t.relatedEntityColumn]),1)])):(s.openBlock(),s.createElementBlock("span",Mm,s.toDisplayString(C.placeholder),1))]),option:s.withCtx(C=>[s.createElementVNode("div",Fm,[s.createElementVNode("div",null,s.toDisplayString(C.option[t.relatedEntityColumn]),1)])]),_:1},8,["modelValue","item-value","options","optionLabel","placeholder"])])}}},Vm={key:0,style:{"font-weight":"700","font-size":"1.25rem"}},Lm={key:1,style:{"font-weight":"700","font-size":"1.25rem"}},Im={__name:"EntityDialog",props:s.mergeModels({entityName:{type:String,required:!0},recordId:{type:[String,Number],default:null}},{showForm:{},showFormModifiers:{}}),emits:s.mergeModels(["onSaveDialog"],["update:showForm"]),setup(t,{emit:e}){const o=s.useModel(t,"showForm"),r=e,{formData:n,columns:i,errors:a,backendErrors:l,clearErrors:c,saveRecord:d,fetchAllRecords:u,fetchRecord:f}=Ji(t.entityName,t.recordId,r);return s.onMounted(()=>{t.recordId?f():u()}),(h,g)=>{const m=s.resolveComponent("Button"),p=s.resolveComponent("Dialog");return o.value?(s.openBlock(),s.createBlock(p,{key:0,showFooter:!1,visible:o.value,"onUpdate:visible":g[2]||(g[2]=b=>o.value=b),style:{width:"50rem"},breakpoints:{"1199px":"75vw","575px":"90vw"},modal:!0,class:"p-fluid"},{header:s.withCtx(()=>[t.recordId?(s.openBlock(),s.createElementBlock("span",Vm,"Edit "+s.toDisplayString(t.entityName)+" record details",1)):s.createCommentVNode("",!0),t.recordId?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",Lm,"Add "+s.toDisplayString(t.entityName)+" record details",1))]),footer:s.withCtx(()=>[s.createVNode(m,{type:"button",icon:"",label:"Cancel",severity:"secondary",onClick:g[0]||(g[0]=b=>o.value=!1)}),s.createVNode(m,{type:"button",icon:"",label:"Save",severity:"success",onClick:g[1]||(g[1]=b=>s.unref(d)())})]),default:s.withCtx(()=>{var b;return[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i),(y,x)=>{var C;return s.openBlock(),s.createElementBlock("div",{key:x},[!y.autoGenerated&&!y.foreignKey?(s.openBlock(),s.createBlock(vn,{key:0,modelValue:s.unref(n)[y.name],"onUpdate:modelValue":B=>s.unref(n)[y.name]=B,column:y,errors:(C=s.unref(a)[y.name])==null?void 0:C.messages,onInput:s.unref(c)},null,8,["modelValue","onUpdate:modelValue","column","errors","onInput"])):s.createCommentVNode("",!0),!y.autoGenerated&&y.foreignKey?(s.openBlock(),s.createBlock(Ol,{key:1,modelValue:s.unref(n)[y.name],"onUpdate:modelValue":B=>s.unref(n)[y.name]=B,entityName:y.foreignKey.referencedEntityName,columnName:y.name,relatedEntityColumn:y.foreignKey.referencedColumnName},null,8,["modelValue","onUpdate:modelValue","entityName","columnName","relatedEntityColumn"])):s.createCommentVNode("",!0)])}),128)),((b=s.unref(l))==null?void 0:b.length)>0?(s.openBlock(),s.createBlock(Rl,{key:0,errors:s.unref(l)},null,8,["errors"])):s.createCommentVNode("",!0)]}),_:1},8,["visible"])):s.createCommentVNode("",!0)}}},zm={__name:"DeleteConfirmationDialog",props:s.mergeModels({entityName:{type:String,required:!0},recordId:{type:[String,Number],default:null}},{showDeleteDialog:{},showDeleteDialogModifiers:{}}),emits:s.mergeModels(["onDeleteItem"],["update:showDeleteDialog"]),setup(t,{emit:e}){const o=new mt,r=s.useModel(t,"showDeleteDialog"),n=e,i=async()=>{try{const a=await o.deleteRecord(t.entityName,t.recordId);a&&a.response&&n("onDeleteItem")}catch(a){console.error("Error deleting record:",a.errorMessage)}finally{}};return(a,l)=>{const c=s.resolveComponent("Button"),d=s.resolveComponent("Dialog");return s.openBlock(),s.createBlock(d,{visible:r.value,"onUpdate:visible":l[1]||(l[1]=u=>r.value=u),style:{width:"450px"},header:"Confirm",modal:!0},{footer:s.withCtx(()=>[s.createVNode(c,{label:"No",icon:"pi pi-times",text:"",onClick:l[0]||(l[0]=u=>r.value=!1)}),s.createVNode(c,{label:"Yes",icon:"pi pi-check",text:"",onClick:i})]),default:s.withCtx(()=>[l[2]||(l[2]=s.createElementVNode("div",{class:"flex items-center justify-center"},[s.createElementVNode("i",{class:"pi pi-exclamation-triangle mr-3",style:{"font-size":"2rem"}}),s.createElementVNode("span",null,"Are you sure you want to delete the selected item?")],-1))]),_:1},8,["visible"])}}};var jm=Object.defineProperty,Dl=Object.getOwnPropertySymbols,Wm=Object.prototype.hasOwnProperty,Hm=Object.prototype.propertyIsEnumerable,Nl=(t,e,o)=>e in t?jm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Um=(t,e)=>{for(var o in e||(e={}))Wm.call(e,o)&&Nl(t,o,e[o]);if(Dl)for(var o of Dl(e))Hm.call(e,o)&&Nl(t,o,e[o]);return t};function Zi(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Tl(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Ee(t){return!Zi(t)}function Qt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function bt(t,...e){return Tl(t)?t(...e):t}function Et(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Jt(t){return Et(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Pl(t,e="",o={}){const r=Jt(e).split("."),n=r.shift();return n?Qt(t)?Pl(bt(t[Object.keys(t).find(i=>Jt(i)===n)||""],o),r.join("."),o):void 0:bt(t,o)}function ea(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function qm(t){return Ee(t)&&!isNaN(t)}function Ft(t,e){if(e){const o=e.test(t);return e.lastIndex=0,o}return!1}function Al(...t){const e=(o={},r={})=>{const n=Um({},o);return Object.keys(r).forEach(i=>{Qt(r[i])&&i in o&&Qt(o[i])?n[i]=e(o[i],r[i]):n[i]=r[i]}),n};return t.reduce((o,r,n)=>n===0?r:e(o,r),{})}function dr(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function $l(t){return Et(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,o)=>o===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Ml(t){return Et(t)?t.replace(/[A-Z]/g,(e,o)=>o===0?e:"."+e.toLowerCase()).toLowerCase():t}var jo={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},Ym={AND:"and",OR:"or"};const Xm={key:0},Km={key:1},ta={__name:"RecordColumnRenderer",props:{column:Object,value:null},setup(t){const e=s.ref(null),o=Object.assign({});async function r(){await s.nextTick();const n=o[`/src/directives/${t.column.displayFormatKey}.js`];n&&e.value&&n().then(i=>{i.default.beforeMount(e.value,{value:t.value,arg:t.column.displayFormat})})}return s.onMounted(()=>{r()}),s.onUpdated(()=>{r()}),(n,i)=>t.column.displayFormatKey?(s.openBlock(),s.createElementBlock("span",Xm,[s.createElementVNode("span",{ref_key:"el",ref:e},s.toDisplayString(t.value),513)])):(s.openBlock(),s.createElementBlock("span",Km,s.toDisplayString(t.value),1))}},Gm={class:"my-2"},Qm={class:"flex flex-col md:flex-row md:justify-between md:items-center"},Jm={class:"flex flex-row gap-2"},oa={__name:"Grid",props:{entityName:String,showAddButton:Boolean,showClearFilters:Boolean,columnsToShow:Array,editable:Boolean,deleteable:Boolean,showPagination:Boolean},setup(t){const e=Ue(),o=t;console.log("columnsToShow",o.columnsToShow);const r=nt.useRoute(),n=s.ref(o.entityName||r.params.entityName),i=s.ref({}),a=s.ref(""),l=s.ref(!1),c=s.ref(!1),{items:d,headers:u,first:f,totalRecords:h,pageSize:g,loading:m,sortBy:p,sortDirection:b,operatorMap:y,filterToSend:x,primarayKeyColumn:C,fullTextSearch:B,listingResponse:w,onFullTextSearch:_,getDatatypeByField:v,getColumnDatatype:k,onSort:S,onPage:N,onFilter:E,fetchEntityFilterData:D,fetchEntityByName:M}=dg(n.value),T=s.ref();let F=s.ref(!1);const A=X=>{i.value=X.reduce((Q,ie)=>{if(!ie.filterable)return Q;let ue=jo.CONTAINS;switch(ie.datatype.toLowerCase()){case"string":case"uuid":ue=jo.STARTS_WITH;break;case"date":ue=jo.DATE_IS;break;case"numeric":case"int":case"integer":ue=jo.EQUALS;break;case"bool":case"boolean":ue=jo.EQUALS;break}return ie.datatype=="bool"||ie.datatype=="boolean"?Q[ie.field]={value:null,matchMode:jo.EQUALS}:Q[ie.field]={operator:Ym.AND,constraints:[{value:null,matchMode:ue}]},Q},{})},W=()=>{A(u.value),x.value=ne(i.value),E()},z=X=>{x.value=ne(i.value),E()},$=X=>{X?a.value=X[C.value.name]:a.value="",l.value=!l.value},j=()=>{l.value=!1,D(!1)},J=X=>{a.value=X[C.value.name],c.value=!0},oe=()=>{c.value=!1,D(!1)},ne=X=>Object.keys(X).map(Q=>{const ie=X[Q];return ie.constraints?ie.constraints.filter(ue=>ue.value!==null&&ue.value!=="").map(ue=>({columnName:Q,operator:y[ue.matchMode]??ue.matchMode,value:ue.value,columnType:v(Q)})):ie.value!==null&&ie.value!==""?{columnName:Q,operator:y[ie.matchMode]??ie.matchMode,value:ie.value,columnType:v(Q)}:[]}).flat();return s.watch(()=>e.globalConfigs.appId,async X=>{X&&M(n.value)},{immediate:!0}),s.watch(()=>u.value,X=>{!F.value&&X&&X.length&&(A(X),F.value=!0)},{immediate:!0}),(X,Q)=>{const ie=s.resolveComponent("Button"),ue=s.resolveComponent("Toolbar"),De=s.resolveComponent("ProgressSpinner"),lt=s.resolveComponent("InputIcon"),Ke=s.resolveComponent("IconField"),wt=s.resolveComponent("DatePicker"),ft=s.resolveComponent("InputNumber"),q=s.resolveComponent("Checkbox"),I=s.resolveComponent("Column"),he=s.resolveComponent("DataTable");return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",s.normalizeProps(s.guardReactiveProps(X.$attrs)),[s.renderSlot(X.$slots,"header"),t.showClearFilters||t.showAddButton?(s.openBlock(),s.createBlock(ue,{key:0,class:"mb-4 mt-4"},s.createSlots({_:2},[t.showClearFilters?{name:"start",fn:s.withCtx(()=>[s.createElementVNode("div",Gm,[s.createVNode(ie,{type:"button",icon:"pi pi-filter-slash",label:"Clear",severity:"warning",onClick:Q[0]||(Q[0]=me=>W())})])]),key:"0"}:void 0,t.showAddButton?{name:"end",fn:s.withCtx(()=>[s.createVNode(ie,{label:"Add",icon:"pi pi-plus",class:"mr-2",severity:"success",onClick:Q[1]||(Q[1]=me=>$())})]),key:"1"}:void 0]),1024)):s.createCommentVNode("",!0),s.createVNode(he,{lazy:"",value:s.unref(d),loading:s.unref(m),ref_key:"dt",ref:T,stripedRows:!0,showGridlines:"",rowHover:!0,paginator:t.showPagination,rows:s.unref(g),rowsPerPageOptions:[10,25,50,100],totalRecords:s.unref(h),first:s.unref(f),sortField:s.unref(p),sortOrder:s.unref(b),filters:i.value,"onUpdate:filters":Q[5]||(Q[5]=me=>i.value=me),filterDisplay:"menu",scrollable:"",scrollHeight:"400px",onSort:s.unref(S),onPage:s.unref(N),onFilter:Q[6]||(Q[6]=me=>z()),size:"large",paginatorTemplate:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown",currentPageReportTemplate:"Showing {first} to {last} of {totalRecords} items"},{empty:s.withCtx(()=>Q[9]||(Q[9]=[s.createTextVNode(" No data found. ")])),loading:s.withCtx(()=>[s.createVNode(De)]),header:s.withCtx(()=>[s.createElementVNode("div",Qm,[s.createVNode(Ke,{iconPosition:"left",class:"block mt-2 md:mt-0"},{default:s.withCtx(()=>[s.createVNode(lt,{class:"pi pi-search",onClick:Q[2]||(Q[2]=me=>s.unref(_)())}),s.createVNode(s.unref(os.InputText),{class:"w-full sm:w-auto",onKeyup:Q[3]||(Q[3]=s.withKeys(me=>s.unref(_)(),["enter"])),modelValue:s.unref(B),"onUpdate:modelValue":Q[4]||(Q[4]=me=>s.isRef(B)?B.value=me:null),placeholder:"Search..."},null,8,["modelValue"])]),_:1})])]),default:s.withCtx(()=>{var me;return[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(u).filter(ge=>!o.columnsToShow||o.columnsToShow.length===0||o.columnsToShow.includes(ge.field)),ge=>(s.openBlock(),s.createBlock(I,{key:ge.field,dataType:s.unref(k)(ge.datatype),field:ge.field,header:ge.name,sortable:ge.sortable,showAddButton:!1,showFilterOperator:!1,style:{"text-wrap":"nowrap"}},s.createSlots({body:s.withCtx(({data:pe})=>[s.createVNode(ta,{column:ge,value:pe[ge.field]},null,8,["column","value"])]),_:2},[ge.datatype.toLowerCase()==="date"&&ge.filterable?{name:"filter",fn:s.withCtx(({filterModel:pe})=>[s.createVNode(wt,{modelValue:pe.value,"onUpdate:modelValue":Te=>pe.value=Te,dateFormat:"mm/dd/yy",placeholder:"mm/dd/yyyy"},null,8,["modelValue","onUpdate:modelValue"])]),key:"0"}:ge.datatype.toLowerCase()==="int"&&ge.filterable?{name:"filter",fn:s.withCtx(({filterModel:pe})=>[s.createVNode(ft,{modelValue:pe.value,"onUpdate:modelValue":Te=>pe.value=Te,placeholder:"Search..."},null,8,["modelValue","onUpdate:modelValue"])]),key:"1"}:ge.datatype.toLowerCase()==="boolean"&&ge.filterable?{name:"filter",fn:s.withCtx(({filterModel:pe})=>[s.createVNode(q,{modelValue:pe.value,"onUpdate:modelValue":Te=>pe.value=Te,indeterminate:pe.value===null,binary:""},null,8,["modelValue","onUpdate:modelValue","indeterminate"])]),key:"2"}:ge.filterable?{name:"filter",fn:s.withCtx(({filterModel:pe})=>[s.createVNode(s.unref(os.InputText),{style:{width:"150px"},type:"text",modelValue:pe.value,"onUpdate:modelValue":Te=>pe.value=Te,class:"p-column-filter",placeholder:"Search..."},null,8,["modelValue","onUpdate:modelValue"])]),key:"3"}:void 0]),1032,["dataType","field","header","sortable"]))),128)),((me=s.unref(d))==null?void 0:me.length)>0&&(t.editable||t.deleteable)?(s.openBlock(),s.createBlock(I,{key:0,header:"Actions"},{body:s.withCtx(({data:ge})=>[s.createElementVNode("div",Jm,[t.editable?(s.openBlock(),s.createBlock(ie,{key:0,onClick:pe=>$(ge),icon:"pi pi-pencil",severity:"success",size:"",rounded:"","aria-label":"Edit"},null,8,["onClick"])):s.createCommentVNode("",!0),t.deleteable?(s.openBlock(),s.createBlock(ie,{key:1,onClick:pe=>J(ge),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"},null,8,["onClick"])):s.createCommentVNode("",!0)])]),_:1})):s.createCommentVNode("",!0)]}),_:1},8,["value","loading","paginator","rows","totalRecords","first","sortField","sortOrder","filters","onSort","onPage"]),s.renderSlot(X.$slots,"footer")],16),l.value?(s.openBlock(),s.createBlock(Im,{key:0,showForm:l.value,"onUpdate:showForm":Q[7]||(Q[7]=me=>l.value=me),entityName:s.unref(w).entityName,recordId:a.value,onOnSaveDialog:j},null,8,["showForm","entityName","recordId"])):s.createCommentVNode("",!0),c.value?(s.openBlock(),s.createBlock(zm,{key:1,showDeleteDialog:c.value,"onUpdate:showDeleteDialog":Q[8]||(Q[8]=me=>c.value=me),entityName:s.unref(w).entityName,recordId:a.value,onOnDeleteItem:oe},null,8,["showDeleteDialog","entityName","recordId"])):s.createCommentVNode("",!0)],64)}}};function Zm(){const t=new Map;return{on(e,o){let r=t.get(e);return r?r.push(o):r=[o],t.set(e,r),this},off(e,o){let r=t.get(e);return r&&r.splice(r.indexOf(o)>>>0,1),this},emit(e,o){let r=t.get(e);r&&r.slice().map(n=>{n(o)})},clear(){t.clear()}}}var ep=Object.defineProperty,tp=Object.defineProperties,op=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,Fl=Object.prototype.hasOwnProperty,Vl=Object.prototype.propertyIsEnumerable,Ll=(t,e,o)=>e in t?ep(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Re=(t,e)=>{for(var o in e||(e={}))Fl.call(e,o)&&Ll(t,o,e[o]);if(Pn)for(var o of Pn(e))Vl.call(e,o)&&Ll(t,o,e[o]);return t},Wo=(t,e)=>tp(t,op(e)),Vt=(t,e)=>{var o={};for(var r in t)Fl.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(t!=null&&Pn)for(var r of Pn(t))e.indexOf(r)<0&&Vl.call(t,r)&&(o[r]=t[r]);return o},rp=Zm(),Zt=rp;function Il(t,e){ea(t)?t.push(...e||[]):Qt(t)&&Object.assign(t,e)}function np(t){return Qt(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function ip(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function ra(t="",e=""){return ip(`${Et(t,!1)&&Et(e,!1)?`${t}-`:t}${e}`)}function zl(t="",e=""){return`--${ra(t,e)}`}function ap(t=""){const e=(t.match(/{/g)||[]).length,o=(t.match(/}/g)||[]).length;return(e+o)%2!==0}function jl(t,e="",o="",r=[],n){if(Et(t)){const i=/{([^}]*)}/g,a=t.trim();if(ap(a))return;if(Ft(a,i)){const l=a.replaceAll(i,u=>{const h=u.replace(/{|}/g,"").split(".").filter(g=>!r.some(m=>Ft(g,m)));return`var(${zl(o,$l(h.join("-")))}${Ee(n)?`, ${n}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return Ft(l.replace(d,"0"),c)?`calc(${l})`:l}return a}else if(qm(t))return t}function sp(t,e,o){Et(e,!1)&&t.push(`${e}:${o};`)}function Ho(t,e){return t?`${t}{${e}}`:""}var ur=(...t)=>lp(Ce.getTheme(),...t),lp=(t={},e,o,r)=>{if(e){const{variable:n,options:i}=Ce.defaults||{},{prefix:a,transform:l}=(t==null?void 0:t.options)||i||{},d=Ft(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||Zi(r)&&l==="strict"?Ce.getTokenValue(e):jl(d,void 0,a,[n.excludedKeyRegex],o)}return""},Wl=(t={})=>{let{preset:e,options:o}=t;return{preset(r){return e=e?Al(e,r):r,this},options(r){return o=o?Re(Re({},o),r):r,this},primaryPalette(r){const{semantic:n}=e||{};return e=Wo(Re({},e),{semantic:Wo(Re({},n),{primary:r})}),this},surfacePalette(r){var n,i;const{semantic:a}=e||{},l=r!=null&&r.hasOwnProperty("light")?r==null?void 0:r.light:r,c=r!=null&&r.hasOwnProperty("dark")?r==null?void 0:r.dark:r,d={colorScheme:{light:Re(Re({},(n=a==null?void 0:a.colorScheme)==null?void 0:n.light),!!l&&{surface:l}),dark:Re(Re({},(i=a==null?void 0:a.colorScheme)==null?void 0:i.dark),!!c&&{surface:c})}};return e=Wo(Re({},e),{semantic:Re(Re({},a),d)}),this},define({useDefaultPreset:r=!1,useDefaultOptions:n=!1}={}){return{preset:r?Ce.getPreset():e,options:n?Ce.getOptions():o}},update({mergePresets:r=!0,mergeOptions:n=!0}={}){const i={preset:r?Al(Ce.getPreset(),e):e,options:n?Re(Re({},Ce.getOptions()),o):o};return Ce.setTheme(i),i},use(r){const n=this.define(r);return Ce.setTheme(n),n}}};function cp(t,e={}){const o=Ce.defaults.variable,{prefix:r=o.prefix,selector:n=o.selector,excludedKeyRegex:i=o.excludedKeyRegex}=e,a=(d,u="")=>Object.entries(d).reduce((f,[h,g])=>{const m=Ft(h,i)?ra(u):ra(u,$l(h)),p=np(g);if(Qt(p)){const{variables:b,tokens:y}=a(p,m);Il(f.tokens,y),Il(f.variables,b)}else f.tokens.push((r?m.replace(`${r}-`,""):m).replaceAll("-",".")),sp(f.variables,zl(m),jl(p,m,r,[i]));return f},{variables:[],tokens:[]}),{variables:l,tokens:c}=a(t,r);return{value:l,tokens:c,declarations:l.join(""),css:Ho(n,l.join(""))}}var yt={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(o=>o!=="custom").map(o=>this.rules[o]);return[t].flat().map(o=>{var r;return(r=e.map(n=>n.resolve(o)).find(n=>n.matched))!=null?r:this.rules.custom.resolve(o)})}},_toVariables(t,e){return cp(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:o,set:r,defaults:n}){var i,a,l,c,d,u,f;const{preset:h,options:g}=e;let m,p,b,y,x,C,B;if(Ee(h)&&g.transform!=="strict"){const{primitive:w,semantic:_,extend:v}=h,k=_||{},{colorScheme:S}=k,N=Vt(k,["colorScheme"]),E=v||{},{colorScheme:D}=E,M=Vt(E,["colorScheme"]),T=S||{},{dark:F}=T,A=Vt(T,["dark"]),W=D||{},{dark:z}=W,$=Vt(W,["dark"]),j=Ee(w)?this._toVariables({primitive:w},g):{},J=Ee(N)?this._toVariables({semantic:N},g):{},oe=Ee(A)?this._toVariables({light:A},g):{},ne=Ee(F)?this._toVariables({dark:F},g):{},X=Ee(M)?this._toVariables({semantic:M},g):{},Q=Ee($)?this._toVariables({light:$},g):{},ie=Ee(z)?this._toVariables({dark:z},g):{},[ue,De]=[(i=j.declarations)!=null?i:"",j.tokens],[lt,Ke]=[(a=J.declarations)!=null?a:"",J.tokens||[]],[wt,ft]=[(l=oe.declarations)!=null?l:"",oe.tokens||[]],[q,I]=[(c=ne.declarations)!=null?c:"",ne.tokens||[]],[he,me]=[(d=X.declarations)!=null?d:"",X.tokens||[]],[ge,pe]=[(u=Q.declarations)!=null?u:"",Q.tokens||[]],[Te,ot]=[(f=ie.declarations)!=null?f:"",ie.tokens||[]];m=this.transformCSS(t,ue,"light","variable",g,r,n),p=De;const Pt=this.transformCSS(t,`${lt}${wt}`,"light","variable",g,r,n),ze=this.transformCSS(t,`${q}`,"dark","variable",g,r,n);b=`${Pt}${ze}`,y=[...new Set([...Ke,...ft,...I])];const rt=this.transformCSS(t,`${he}${ge}color-scheme:light`,"light","variable",g,r,n),ht=this.transformCSS(t,`${Te}color-scheme:dark`,"dark","variable",g,r,n);x=`${rt}${ht}`,C=[...new Set([...me,...pe,...ot])],B=bt(h.css,{dt:ur})}return{primitive:{css:m,tokens:p},semantic:{css:b,tokens:y},global:{css:x,tokens:C},style:B}},getPreset({name:t="",preset:e={},options:o,params:r,set:n,defaults:i,selector:a}){var l,c,d;let u,f,h;if(Ee(e)&&o.transform!=="strict"){const g=t.replace("-directive",""),m=e,{colorScheme:p,extend:b,css:y}=m,x=Vt(m,["colorScheme","extend","css"]),C=b||{},{colorScheme:B}=C,w=Vt(C,["colorScheme"]),_=p||{},{dark:v}=_,k=Vt(_,["dark"]),S=B||{},{dark:N}=S,E=Vt(S,["dark"]),D=Ee(x)?this._toVariables({[g]:Re(Re({},x),w)},o):{},M=Ee(k)?this._toVariables({[g]:Re(Re({},k),E)},o):{},T=Ee(v)?this._toVariables({[g]:Re(Re({},v),N)},o):{},[F,A]=[(l=D.declarations)!=null?l:"",D.tokens||[]],[W,z]=[(c=M.declarations)!=null?c:"",M.tokens||[]],[$,j]=[(d=T.declarations)!=null?d:"",T.tokens||[]],J=this.transformCSS(g,`${F}${W}`,"light","variable",o,n,i,a),oe=this.transformCSS(g,$,"dark","variable",o,n,i,a);u=`${J}${oe}`,f=[...new Set([...A,...z,...j])],h=bt(y,{dt:ur})}return{css:u,tokens:f,style:h}},getPresetC({name:t="",theme:e={},params:o,set:r,defaults:n}){var i;const{preset:a,options:l}=e,c=(i=a==null?void 0:a.components)==null?void 0:i[t];return this.getPreset({name:t,preset:c,options:l,params:o,set:r,defaults:n})},getPresetD({name:t="",theme:e={},params:o,set:r,defaults:n}){var i;const a=t.replace("-directive",""),{preset:l,options:c}=e,d=(i=l==null?void 0:l.directives)==null?void 0:i[a];return this.getPreset({name:a,preset:d,options:c,params:o,set:r,defaults:n})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var o;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(o=t.darkModeSelector)!=null?o:e.options.darkModeSelector):[]},getLayerOrder(t,e={},o,r){const{cssLayer:n}=e;return n?`@layer ${bt(n.order||"primeui",o)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:o,props:r={},set:n,defaults:i}){const a=this.getCommon({name:t,theme:e,params:o,set:n,defaults:i}),l=Object.entries(r).reduce((c,[d,u])=>c.push(`${d}="${u}"`)&&c,[]).join(" ");return Object.entries(a||{}).reduce((c,[d,u])=>{if(u!=null&&u.css){const f=dr(u==null?void 0:u.css),h=`${d}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${h}" ${l}>${f}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:o,props:r={},set:n,defaults:i}){var a;const l={name:t,theme:e,params:o,set:n,defaults:i},c=(a=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:a.css,d=Object.entries(r).reduce((u,[f,h])=>u.push(`${f}="${h}"`)&&u,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${dr(c)}</style>`:""},createTokens(t={},e,o="",r="",n={}){return Object.entries(t).forEach(([i,a])=>{const l=Ft(i,e.variable.excludedKeyRegex)?o:o?`${o}.${Ml(i)}`:Ml(i),c=r?`${r}.${i}`:i;Qt(a)?this.createTokens(a,e,l,c,n):(n[l]||(n[l]={paths:[],computed(d,u={}){var f,h;return this.paths.length===1?(f=this.paths[0])==null?void 0:f.computed(this.paths[0].scheme,u.binding):d&&d!=="none"?(h=this.paths.find(g=>g.scheme===d))==null?void 0:h.computed(d,u.binding):this.paths.map(g=>g.computed(g.scheme,u[g.scheme]))}}),n[l].paths.push({path:c,value:a,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(d,u={}){const f=/{([^}]*)}/g;let h=a;if(u.name=this.path,u.binding||(u.binding={}),Ft(a,f)){const m=a.trim().replaceAll(f,y=>{var x;const C=y.replace(/{|}/g,""),B=(x=n[C])==null?void 0:x.computed(d,u);return ea(B)&&B.length===2?`light-dark(${B[0].value},${B[1].value})`:B==null?void 0:B.value}),p=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,b=/var\([^)]+\)/g;h=Ft(m.replace(b,"0"),p)?`calc(${m})`:m}return Zi(u.binding)&&delete u.binding,{colorScheme:d,path:this.path,paths:u,value:h.includes("undefined")?void 0:h}}}))}),n},getTokenValue(t,e,o){var r;const i=(c=>c.split(".").filter(u=>!Ft(u.toLowerCase(),o.variable.excludedKeyRegex)).join("."))(e),a=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,l=[(r=t[i])==null?void 0:r.computed(a)].flat().filter(c=>c);return l.length===1?l[0].value:l.reduce((c={},d)=>{const u=d,{colorScheme:f}=u,h=Vt(u,["colorScheme"]);return c[f]=h,c},void 0)},getSelectorRule(t,e,o,r){return o==="class"||o==="attr"?Ho(Ee(e)?`${t}${e},${t} ${e}`:t,r):Ho(t,Ee(e)?Ho(e,r):r)},transformCSS(t,e,o,r,n={},i,a,l){if(Ee(e)){const{cssLayer:c}=n;if(r!=="style"){const d=this.getColorSchemeOption(n,a);e=o==="dark"?d.reduce((u,{type:f,selector:h})=>(Ee(h)&&(u+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,l,f,e)),u),""):Ho(l??":root",e)}if(c){const d={name:"primeui",order:"primeui"};Qt(c)&&(d.name=bt(c.name,{name:t,type:r})),Ee(d.name)&&(e=Ho(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},Ce={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=Wo(Re({},e),{options:Re(Re({},this.defaults.options),e.options)}),this._tokens=yt.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),Zt.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Wo(Re({},this.theme),{preset:t}),this._tokens=yt.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Zt.emit("preset:change",t),Zt.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Wo(Re({},this.theme),{options:t}),this.clearLoadedStyleNames(),Zt.emit("options:change",t),Zt.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return yt.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return yt.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const o={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return yt.getPresetC(o)},getDirective(t="",e){const o={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return yt.getPresetD(o)},getCustomPreset(t="",e,o,r){const n={name:t,preset:e,options:this.options,selector:o,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return yt.getPreset(n)},getLayerOrderCSS(t=""){return yt.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,o="style",r){return yt.transformCSS(t,e,r,o,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,o={}){return yt.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,o={}){return yt.getStyleSheet({name:t,theme:this.theme,params:e,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),Zt.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Zt.emit("theme:load"))}};function dp(t){return Wl().surfacePalette(t).update().preset}function na(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function ia(t,e={}){if(na(t)){const o=(r,n)=>{var i,a;const l=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(a=t==null?void 0:t.$attrs)==null?void 0:a[r]]:[];return[n].flat().reduce((c,d)=>{if(d!=null){const u=typeof d;if(u==="string"||u==="number")c.push(d);else if(u==="object"){const f=Array.isArray(d)?o(r,d):Object.entries(d).map(([h,g])=>r==="style"&&(g||g===0)?`${h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${g}`:g?h:void 0);c=f.length?c.concat(f.filter(h=>!!h)):c}}return c},l)};Object.entries(e).forEach(([r,n])=>{if(n!=null){const i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),n):r==="p-bind"||r==="pBind"?ia(t,n):(n=r==="class"?[...new Set(o("class",n))].join(" ").trim():r==="style"?o("style",n).join(";").trim():n,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=n),t.setAttribute(r,n))}})}}function up(t,e){return na(t)?t.matches(e)?t:t.querySelector(e):null}function fp(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function hp(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&fp(t))}function Hl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function gp(t,e="",o){na(t)&&o!==null&&o!==void 0&&t.setAttribute(e,o)}var An={};function mp(t="pui_id_"){return An.hasOwnProperty(t)||(An[t]=0),An[t]++,`${t}${An[t]}`}var fr={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function hr(t){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hr(t)}function Ul(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function ql(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ul(Object(o),!0).forEach(function(r){pp(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ul(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function pp(t,e,o){return(e=bp(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function bp(t){var e=yp(t,"string");return hr(e)=="symbol"?e:e+""}function yp(t,e){if(hr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(hr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function kp(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.getCurrentInstance()?s.onMounted(t):e?t():s.nextTick(t)}var xp=0;function vp(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=s.ref(!1),r=s.ref(t),n=s.ref(null),i=Hl()?window.document:void 0,a=e.document,l=a===void 0?i:a,c=e.immediate,d=c===void 0?!0:c,u=e.manual,f=u===void 0?!1:u,h=e.name,g=h===void 0?"style_".concat(++xp):h,m=e.id,p=m===void 0?void 0:m,b=e.media,y=b===void 0?void 0:b,x=e.nonce,C=x===void 0?void 0:x,B=e.first,w=B===void 0?!1:B,_=e.onMounted,v=_===void 0?void 0:_,k=e.onUpdated,S=k===void 0?void 0:k,N=e.onLoad,E=N===void 0?void 0:N,D=e.props,M=D===void 0?{}:D,T=function(){},F=function(z){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var j=ql(ql({},M),$),J=j.name||g,oe=j.id||p,ne=j.nonce||C;n.value=l.querySelector('style[data-primevue-style-id="'.concat(J,'"]'))||l.getElementById(oe)||l.createElement("style"),n.value.isConnected||(r.value=z||t,ia(n.value,{type:"text/css",id:oe,media:y,nonce:ne}),w?l.head.prepend(n.value):l.head.appendChild(n.value),gp(n.value,"data-primevue-style-id",J),ia(n.value,j),n.value.onload=function(X){return E==null?void 0:E(X,{name:J})},v==null||v(J)),!o.value&&(T=s.watch(r,function(X){n.value.textContent=X,S==null||S(J)},{immediate:!0}),o.value=!0)}},A=function(){!l||!o.value||(T(),hp(n.value)&&l.head.removeChild(n.value),o.value=!1)};return d&&!f&&kp(F),{id:p,name:g,el:n,css:r,unload:A,load:F,isLoaded:s.readonly(o)}}function gr(t){"@babel/helpers - typeof";return gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gr(t)}function Yl(t,e){return Sp(t)||_p(t,e)||Cp(t,e)||wp()}function wp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cp(t,e){if(t){if(typeof t=="string")return Xl(t,e);var o={}.toString.call(t).slice(8,-1);return o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set"?Array.from(t):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Xl(t,e):void 0}}function Xl(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,r=Array(e);o<e;o++)r[o]=t[o];return r}function _p(t,e){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var r,n,i,a,l=[],c=!0,d=!1;try{if(i=(o=o.call(t)).next,e!==0)for(;!(c=(r=i.call(o)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(u){d=!0,n=u}finally{try{if(!c&&o.return!=null&&(a=o.return(),Object(a)!==a))return}finally{if(d)throw n}}return l}}function Sp(t){if(Array.isArray(t))return t}function Kl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function aa(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Kl(Object(o),!0).forEach(function(r){Bp(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Kl(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function Bp(t,e,o){return(e=Ep(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ep(t){var e=Rp(t,"string");return gr(e)=="symbol"?e:e+""}function Rp(t,e){if(gr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(gr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Op=function(e){var o=e.dt;return`
|
|
19
20
|
*,
|
|
20
21
|
::before,
|
|
21
22
|
::after {
|
|
@@ -136,7 +137,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
136
137
|
background: transparent;
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
|
-
`)},
|
|
140
|
+
`)},Dp=function(e){var o=e.dt;return`
|
|
140
141
|
.p-hidden-accessible {
|
|
141
142
|
border: 0;
|
|
142
143
|
clip: rect(0 0 0 0);
|
|
@@ -157,32 +158,32 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
157
158
|
overflow: hidden;
|
|
158
159
|
padding-right: `.concat(o("scrollbar.width"),`;
|
|
159
160
|
}
|
|
160
|
-
`)},
|
|
161
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ql(t,e){if(t){if(typeof t=="string")return Jl(t,e);var o={}.toString.call(t).slice(8,-1);return o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set"?Array.from(t):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Jl(t,e):void 0}}function Jl(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,r=Array(e);o<e;o++)r[o]=t[o];return r}function $p(t,e){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var r,n,i,s,l=[],c=!0,d=!1;try{if(i=(o=o.call(t)).next,e===0){if(Object(o)!==o)return;c=!1}else for(;!(c=(r=i.call(o)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(u){d=!0,n=u}finally{try{if(!c&&o.return!=null&&(s=o.return(),Object(s)!==s))return}finally{if(d)throw n}}return l}}function Zl(t){if(Array.isArray(t))return t}function ec(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function ce(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?ec(Object(o),!0).forEach(function(r){br(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ec(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function br(t,e,o){return(e=Ap(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ap(t){var e=Mp(t,"string");return mr(e)=="symbol"?e:e+""}function Mp(t,e){if(mr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(mr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fp={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var o=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return o._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,$attrSelector:void 0,beforeCreate:function(){var e,o,r,n,i,s,l,c,d,u,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,g=h?(o=this.pt)===null||o===void 0||(o=o.originalValue)===null||o===void 0?void 0:o[this.$.type.name]:void 0,m=h?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(n=m||g)===null||n===void 0||(n=n.hooks)===null||n===void 0||(i=n.onBeforeCreate)===null||i===void 0||i.call(n);var p=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,b=p?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.originalValue:void 0,y=p?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=y||b)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(f=u.onBeforeCreate)===null||f===void 0||f.call(u),this.$attrSelector=gp("pc")},created:function(){this._hook("onCreated")},beforeMount:function(){this.rootEl=dp(this.$el,'[data-pc-name="'.concat(Jt(this.$.type.name),'"]')),this.rootEl&&(this.$attrSelector&&!this.rootEl.hasAttribute(this.$attrSelector)&&this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=ce({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var o=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));o==null||o(),r==null||r()}},_mergeProps:function(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return Nl(e)?e.apply(void 0,r):a.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,o=function(){fr.isStyleNameLoaded("base")||(It.loadCSS(e.$styleOptions),e._loadGlobalStyles(),fr.setLoadedStyleName("base")),e._loadThemeStyles()};o(),this._themeChangeListener(o)},_loadCoreStyles:function(){var e,o;!fr.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(o=this.$style)!==null&&o!==void 0&&o.name&&(Kl.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),fr.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Ee(e)&&It.load(e,ce({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,o;if(!(this.isUnstyled||this.$theme==="none")){if(!Ce.isStyleNameLoaded("common")){var r,n,i=((r=this.$style)===null||r===void 0||(n=r.getCommonTheme)===null||n===void 0?void 0:n.call(r))||{},s=i.primitive,l=i.semantic,c=i.global,d=i.style;It.load(s==null?void 0:s.css,ce({name:"primitive-variables"},this.$styleOptions)),It.load(l==null?void 0:l.css,ce({name:"semantic-variables"},this.$styleOptions)),It.load(c==null?void 0:c.css,ce({name:"global-variables"},this.$styleOptions)),It.loadTheme(ce({name:"global-style"},this.$styleOptions),d),Ce.setLoadedStyleName("common")}if(!Ce.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(o=this.$style)!==null&&o!==void 0&&o.name){var u,f,h,g,m=((u=this.$style)===null||u===void 0||(f=u.getComponentTheme)===null||f===void 0?void 0:f.call(u))||{},p=m.css,b=m.style;(h=this.$style)===null||h===void 0||h.load(p,ce({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(g=this.$style)===null||g===void 0||g.loadTheme(ce({name:"".concat(this.$style.name,"-style")},this.$styleOptions),b),Ce.setLoadedStyleName(this.$style.name)}if(!Ce.isStyleNameLoaded("layer-order")){var y,x,C=(y=this.$style)===null||y===void 0||(x=y.getLayerOrderThemeCSS)===null||x===void 0?void 0:x.call(y);It.load(C,ce({name:"layer-order",first:!0},this.$styleOptions)),Ce.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var o,r,n,i=((o=this.$style)===null||o===void 0||(r=o.getPresetTheme)===null||r===void 0?void 0:r.call(o,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,l=(n=this.$style)===null||n===void 0?void 0:n.load(s,ce({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=l.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};fr.clearLoadedStyleNames(),Zt.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var o;return this[e]||((o=this._getHostInstance(this))===null||o===void 0?void 0:o[e])},_getOptionValue:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Tl(e,o,r)},_getPTValue:function(){var e,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(r)&&!!n[r.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=l.mergeSections,d=c===void 0?!0:c,u=l.mergeProps,f=u===void 0?!1:u,h=i?s?this._useGlobalPT(this._getPTClassValue,r,n):this._useDefaultPT(this._getPTClassValue,r,n):void 0,g=s?void 0:this._getPTSelf(o,this._getPTClassValue,r,ce(ce({},n),{},{global:h||{}})),m=this._getPTDatasets(r);return d||!d&&g?f?this._mergeProps(f,h,g,m):ce(ce(ce({},h),g),m):ce(ce({},g),m)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return a.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,o,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n="data-pc-",i=r==="root"&&Ee((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&ce(ce({},r==="root"&&ce(ce(br({},"".concat(n,"name"),Jt(i?(o=this.pt)===null||o===void 0?void 0:o["data-pc-section"]:this.$.type.name)),i&&br({},"".concat(n,"extend"),Jt(this.$.type.name))),Wl()&&br({},"".concat(this.$attrSelector),""))),{},br({},"".concat(n,"section"),Jt(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return Et(e)||ea(e)?{class:e}:e},_getPT:function(e){var o=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=function(l){var c,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=n?n(l):l,f=Jt(r),h=Jt(o.$name);return(c=d?f!==h?u==null?void 0:u[f]:void 0:u==null?void 0:u[f])!==null&&c!==void 0?c:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,o,r,n){var i=function(p){return o(p,r,n)};if(e!=null&&e.hasOwnProperty("_usept")){var s,l=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},c=l.mergeSections,d=c===void 0?!0:c,u=l.mergeProps,f=u===void 0?!1:u,h=i(e.originalValue),g=i(e.value);return h===void 0&&g===void 0?void 0:Et(g)?g:Et(h)?h:d||!d&&g?f?this._mergeProps(f,h,g):ce(ce({},h),g):g}return i(e)},_useGlobalPT:function(e,o,r){return this._usePT(this.globalPT,e,o,r)},_useDefaultPT:function(e,o,r){return this._usePT(this.defaultPT,e,o,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,ce(ce({},this.$params),o))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a.mergeProps(this.$_attrsWithoutPT,this.ptm(e,o))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,o,ce({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,ce(ce({},this.$params),o))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(o){var n=this._getOptionValue(this.$style.inlineStyles,e,ce(ce({},this.$params),r)),i=this._getOptionValue(Kl.inlineStyles,e,ce(ce({},this.$params),r));return[i,n]}}},computed:{globalPT:function(){var e,o=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return bt(r,{instance:o})})},defaultPT:function(){var e,o=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return o._getOptionValue(r,o.$name,ce({},o.$params))||bt(r,ce({},o.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$inProps:function(){var e,o=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(r){var n=pr(r,1),i=n[0];return o==null?void 0:o.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return ce(ce({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var o=pr(e,1),r=o[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,o){var r=pr(o,2),n=r[0],i=r[1],s=n.split(":"),l=Tp(s),c=l.slice(1);return c==null||c.reduce(function(d,u,f,h){return!d[u]&&(d[u]=f===h.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var o=pr(e,1),r=o[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,o){var r=pr(o,2),n=r[0],i=r[1];return e[n]=i,e},{})}}},Vp={root:{position:"relative"}},Ip={root:"p-chart"},Lp=It.extend({name:"chart",classes:Ip,inlineStyles:Vp}),zp={name:"BaseChart",extends:Fp,props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150},canvasProps:{type:null,default:null}},style:Lp,provide:function(){return{$pcChart:this,$parentInstance:this}}},tc={name:"Chart",extends:zp,inheritAttrs:!1,emits:["select","loaded"],chart:null,watch:{data:{handler:function(){this.reinit()},deep:!0},type:function(){this.reinit()},options:function(){this.reinit()}},mounted:function(){this.initChart()},beforeUnmount:function(){this.chart&&(this.chart.destroy(),this.chart=null)},methods:{initChart:function(){var e=this;Promise.resolve().then(()=>J2).then(function(o){e.chart&&(e.chart.destroy(),e.chart=null),o&&o.default&&(e.chart=new o.default(e.$refs.canvas,{type:e.type,data:e.data,options:e.options,plugins:e.plugins})),e.$emit("loaded",e.chart)})},getCanvas:function(){return this.$canvas},getChart:function(){return this.chart},getBase64Image:function(){return this.chart.toBase64Image()},refresh:function(){this.chart&&this.chart.update()},reinit:function(){this.initChart()},onCanvasClick:function(e){if(this.chart){var o=this.chart.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),r=this.chart.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1);o&&o[0]&&r&&this.$emit("select",{originalEvent:e,element:o[0],dataset:r})}},generateLegend:function(){if(this.chart)return this.chart.generateLegend()}}};function yr(t){"@babel/helpers - typeof";return yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yr(t)}function oc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function rc(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?oc(Object(o),!0).forEach(function(r){jp(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):oc(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function jp(t,e,o){return(e=Wp(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Wp(t){var e=Hp(t,"string");return yr(e)=="symbol"?e:e+""}function Hp(t,e){if(yr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(yr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Up=["width","height"];function qp(t,e,o,r,n,i){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:t.cx("root"),style:t.sx("root")},t.ptmi("root")),[a.createElementVNode("canvas",a.mergeProps({ref:"canvas",width:t.width,height:t.height,onClick:e[0]||(e[0]=function(s){return i.onCanvasClick(s)})},rc(rc({},t.canvasProps),t.ptm("canvas"))),null,16,Up)],16)}tc.render=qp;function Yp(){const t={primary:"#0efcf1",primaryBorder:"#388E3C",secondary:"#0ec6fc",secondaryBorder:"#FBC02D",tertiary:"#f1fc0e",tertiaryBorder:"#FFA000"},e=["linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInBounce","easeOutBounce","easeInOutBounce","easeInOutElastic"],o=a.ref("easeInOutElastic"),r=a.computed(()=>({responsive:!0,maintainAspectRatio:!0,plugins:{legend:{position:"top",labels:{font:{size:16}}},tooltip:{enabled:!0,titleFont:{size:14},bodyFont:{size:12}},zoom:{zoom:{wheel:{enabled:!0},drag:{enabled:!0},mode:"xy"},pan:{enabled:!0,mode:"xy"}}},scales:{x:{grid:{display:!1},ticks:{font:{size:14}}},y:{grid:{display:!0,color:"#e0e0e0"},ticks:{font:{size:14}}}},animation:{duration:2e3,easing:o.value,delay:500,loop:!1,animateRotate:!0,animateScale:!0},elements:{point:{radius:6,hoverRadius:10,backgroundColor:t.secondary},line:{tension:.4,borderWidth:2},bar:{borderWidth:2,borderRadius:4}}}));return{colorConfig:t,animationOptions:e,selectedAnimation:o,defaultChartOptions:r}}const Xp={components:{Chart:tc},props:{type:{type:String,required:!0},chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>({})}},setup(t){const{colorConfig:e,defaultChartOptions:o}=Yp(),r=a.computed(()=>{const i=t.chartData.datasets.map((s,l)=>{const c=Object.values(e);return{...s,backgroundColor:c[l%c.length],borderColor:c[l%c.length+1]}});return{...t.chartData,datasets:i}}),n=a.computed(()=>({...o.value,maintainAspectRatio:!0,...t.chartOptions}));return{computedChartData:r,computedChartOptions:n}}},Kp={class:"chart-container"},Gp={key:0},Qp={key:1};function Jp(t,e,o,r,n,i){const s=a.resolveComponent("Chart",!0);return a.openBlock(),a.createElementBlock("div",Kp,[o.chartData?(a.openBlock(),a.createElementBlock("div",Gp,[a.createVNode(s,{type:o.type,data:r.computedChartData,options:r.computedChartOptions},null,8,["type","data","options"])])):(a.openBlock(),a.createElementBlock("div",Qp,e[0]||(e[0]=[a.createElementVNode("p",null,"No data available for the chart.",-1)])))])}const kr=Te(Xp,[["render",Jp],["__scopeId","data-v-8e3e786b"]]);function xr(){const t=a.ref(null),e=a.ref(!1),o=a.ref(null);return{chartData:t,fetchChartData:async({entityName:n,xaxis:i=null,yaxis:s=null})=>{e.value=!0,o.value=null;const l="https://mocki.io/v1/1ab17035-c115-4049-8ebf-a1e1b92d739a";try{const d=await(await fetch(l)).json();if(!d||!d.response||!d.response.result)throw new Error("Invalid data structure from API.");const u=d.response.result;if(!i&&!s){const f=Object.keys(u[0]);i=f[1],s=f.slice(4);const h=u.reduce((p,b)=>(s.forEach(y=>{p[y]||(p[y]=0),p[y]+=b[y]||0}),p),{}),g=Object.keys(h),m=Object.values(h);t.value={labels:g,datasets:[{label:"Default Data",data:m,borderWidth:1}]}}else{const f=u.map(m=>m[i]),g=(Array.isArray(s)?s:[s]).map(m=>({label:m,data:u.map(p=>p[m]||0),borderWidth:1}));t.value={labels:f,datasets:g}}}catch(c){o.value=c.message,t.value=null}finally{e.value=!1}},loading:e,error:o}}const Zp={components:{chart:kr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Bar Chart"},yaxis:{type:String,required:!0},xaxis:{type:String,required:!0}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=xr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.dataset.label}: ${l.raw}`}}}}}),s=async()=>{if(!t.yaxis||!t.xaxis){console.error("xaxis or yaxis is not defined."),n.value="x-axis or y-axis is not properly configured.";return}await o({entityName:t.entityName,yaxis:t.yaxis,xaxis:t.xaxis})};return a.onMounted(()=>{console.log("Fetching data for yAxis:",t.yaxis),console.log("Fetching data for xAxis:",t.xaxis),s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},e0={key:0,class:"chart-container"},t0={key:1},o0={key:0},r0={key:1},n0={key:2};function i0(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",e0,[a.createElementVNode("h3",null,a.toDisplayString(o.title)+" , x-axis : "+a.toDisplayString(o.xaxis)+" , y-axis : "+a.toDisplayString(o.yaxis),1),a.createVNode(s,{type:"bar",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",t0,[r.loading?(a.openBlock(),a.createElementBlock("p",o0,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",r0,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",n0,"No data available for the chart."))]))])}const nc=Te(Zp,[["render",i0],["__scopeId","data-v-021825b3"]]),a0={components:{chart:kr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Bar Chart"},yaxis:{type:String,required:!0},xaxis:{type:String,required:!0}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=xr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.dataset.label}: ${l.raw}`}}}}}),s=async()=>{if(!t.yaxis||!t.xaxis){console.error("xaxis or yaxis is not defined."),n.value="x-axis or y-axis is not properly configured.";return}await o({entityName:t.entityName,yaxis:t.yaxis,xaxis:t.xaxis})};return a.onMounted(()=>{console.log("Fetching data for yAxis:",t.yaxis),console.log("Fetching data for xAxis:",t.xaxis),s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},s0={key:0,class:"chart-container"},l0={key:1},c0={key:0},d0={key:1},u0={key:2};function f0(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",s0,[a.createElementVNode("h3",null,a.toDisplayString(o.title)+" , x-axis : "+a.toDisplayString(o.xaxis)+" , y-axis : "+a.toDisplayString(o.yaxis),1),a.createVNode(s,{type:"line",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",l0,[r.loading?(a.openBlock(),a.createElementBlock("p",c0,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",d0,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",u0,"No data available for the chart."))]))])}const ic=Te(a0,[["render",f0],["__scopeId","data-v-cc915538"]]),h0={components:{chart:kr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Pie Chart"},yaxis:{type:String,default:null},xaxis:{type:String,default:null}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=xr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.label}: ${l.raw}`}}}}}),s=async()=>{await o({entityName:t.entityName,xaxis:t.xaxis,yaxis:t.yaxis})};return a.onMounted(()=>{s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},g0={key:0,class:"chart-container"},m0={key:1},p0={key:0},b0={key:1},y0={key:2};function k0(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",g0,[a.createElementVNode("h3",null,a.toDisplayString(o.title),1),a.createVNode(s,{type:"pie",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",m0,[r.loading?(a.openBlock(),a.createElementBlock("p",p0,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",b0,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",y0,"No data available for the chart."))]))])}const ac=Te(h0,[["render",k0],["__scopeId","data-v-eec06405"]]),x0={components:{chart:kr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Pie Chart"},yaxis:{type:String,default:null},xaxis:{type:String,default:null}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=xr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.label}: ${l.raw}`}}}}}),s=async()=>{await o({entityName:t.entityName,xaxis:t.xaxis,yaxis:t.yaxis})};return a.onMounted(()=>{s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},v0={key:0,class:"chart-container"},w0={key:1},C0={key:0},_0={key:1},S0={key:2};function B0(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",v0,[a.createElementVNode("h3",null,a.toDisplayString(o.title),1),a.createVNode(s,{type:"polarArea",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",w0,[r.loading?(a.openBlock(),a.createElementBlock("p",C0,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",_0,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",S0,"No data available for the chart."))]))])}const sc=Te(x0,[["render",B0],["__scopeId","data-v-c4082893"]]),E0={components:{chart:kr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Bar Chart"},yaxis:{type:String,required:!0},xaxis:{type:String,required:!0}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=xr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.dataset.label}: ${l.raw}`}}}}}),s=async()=>{if(!t.yaxis||!t.xaxis){console.error("xaxis or yaxis is not defined."),n.value="x-axis or y-axis is not properly configured.";return}await o({entityName:t.entityName,yaxis:t.yaxis,xaxis:t.xaxis})};return a.onMounted(()=>{console.log("Fetching data for yAxis:",t.yaxis),console.log("Fetching data for xAxis:",t.xaxis),s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},R0={key:0,class:"chart-container"},O0={key:1},D0={key:0},N0={key:1},T0={key:2};function P0(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",R0,[a.createElementVNode("h3",null,a.toDisplayString(o.title)+" , x-axis : "+a.toDisplayString(o.xaxis)+" , y-axis : "+a.toDisplayString(o.yaxis),1),a.createVNode(s,{type:"radar",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",O0,[r.loading?(a.openBlock(),a.createElementBlock("p",D0,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",N0,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",T0,"No data available for the chart."))]))])}const lc=Te(E0,[["render",P0],["__scopeId","data-v-54dad7d5"]]),$0={class:"flex flex-col p-3"},A0={class:"flex justify-center flex-row mb-2 cursor-pointer"},M0={style:{"word-break":"break-all"}},F0={__name:"LinkEntityContent",props:{linkEntityListItem:{type:Object,required:!0}},setup(t){Ke.useRoute();const e=Qe(),o=a.ref("");e.getAppId()!=null&&e.getAppId()!=""&&(o.value=e.getAppId());const r=a.ref(),n=a.ref(!1),i=a.ref(!1),s=a.ref({}),l=a.ref([{label:"Remove association",icon:"",command:f=>{c()}}]),c=()=>{console.log(s.value),console.log("Function is calling")},d=(f,h)=>{s.value=h,r.value.show(f),i.value=!0},u=()=>{s.value={},i.value=!1};return(f,h)=>{const g=a.resolveComponent("Button"),m=a.resolveComponent("ContextMenu"),p=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",{onMouseenter:h[4]||(h[4]=a.withModifiers(b=>n.value=!0,["prevent"])),onMouseleave:h[5]||(h[5]=a.withModifiers(b=>n.value=!1,["prevent"])),class:"flex relative m-3",style:{border:"1px solid var(--surface-border)","border-radius":"5px"}},[a.withDirectives(a.createVNode(g,{onClick:h[0]||(h[0]=b=>d(b,t.linkEntityListItem)),class:"!absolute right-0",size:"small",style:{width:"55px",height:"25px","border-radius":"5px","font-size":"12px"}},{default:a.withCtx(()=>h[6]||(h[6]=[a.createTextVNode(" More")])),_:1},512),[[a.vShow,n.value||i.value]]),a.createVNode(m,{ref_key:"menu",ref:r,model:l.value,onMouseenter:h[1]||(h[1]=a.withModifiers(b=>n.value=!0,["prevent"])),onMouseleave:h[2]||(h[2]=a.withModifiers(b=>n.value=!1,["prevent"])),onHide:h[3]||(h[3]=b=>u())},null,8,["model"]),a.createElementVNode("div",$0,[a.createElementVNode("div",A0,[a.createElementVNode("div",M0,a.toDisplayString(t.linkEntityListItem.entityName),1),a.createVNode(p,{to:{name:"entity360view",params:{entityName:t.linkEntityListItem.entityName,id:t.linkEntityListItem.id,appId:o.value}},target:"_blank"},{default:a.withCtx(()=>h[7]||(h[7]=[a.createElementVNode("div",{class:"pi pi-external-link ml-3"},null,-1)])),_:1},8,["to"])]),a.createElementVNode("div",null,"Id: "+a.toDisplayString(t.linkEntityListItem.id),1)])],32)}}},V0={class:"flex flex-col mt-3"},I0={class:"flex flex-row items-center"},L0={class:"flex items-center justify-center mt-5"},z0={key:0,class:"pi pi-caret-right"},j0={key:1,class:"pi pi-caret-down"},W0={key:0},H0={class:"flex flex-col mt-5"},U0={class:"col-12"},q0={class:"flex flex-col mt-5"},Y0={class:"col-12 font-bold"},X0={key:0},K0={class:"flex flex-col mt-5"},G0={class:"col-12"},Q0={class:"flex flex-col mt-5"},J0={class:"col-12"},Z0={class:"flex flex-col mt-5"},eb={class:"col-12"},tb={class:"flex flex-row justify-between items-center mt-5"},ob={key:1,class:"mt-2"},rb={class:"flex flex-row justify-between items-center"},nb={key:1,class:"text-red-500"},ib={class:"flex flex-col mt-5"},ab={class:"flex flex-row justify-between items-center mt-2"},sb={class:"flex flex-row items-center mt-5 mb-5"},lb={class:"font-bold"},cb={class:"font-bold ml-2 flex-1"},db={class:"flex flex-row justify-center items-center mb-2"},ub={class:"ml-2 flex-1"},fb={key:0,class:"pi pi-exclamation-circle"},hb={class:"flex flex-col justify-center"},gb={class:"flex flex-row justify-between items-center"},mb={class:"justify-start"},pb={class:"justify-start"},bb=Te({__name:"EntityLookup",props:a.mergeModels({linkedEntity:{type:Object,required:!0},entity360Name:{type:String,required:!0},entity360Id:{required:!0},saveExistingRelatedEntityRecord:{type:Function,required:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){Ke.useRoute();const e=t,o=a.useModel(t,"modelValue"),r=new mt,n=a.ref({}),i=a.ref([]),s=a.ref({}),l=a.ref([]),c=a.ref([]),d=a.ref({}),u=a.ref("id"),f=a.ref(1),h=a.ref([]),g=a.ref(25),m=a.ref(0),p=a.ref(0),b=a.ref(0);let y=a.ref([]);const x=a.ref(!1),C={gt:"GREATER_THAN",dateAfter:"GREATER_THAN",equals:"EQUAL",dateIs:"EQUAL",notEquals:"NOT_EQUAL",dateIsNot:"NOT_EQUAL",lt:"LESS_THAN",dateBefore:"LESS_THAN",lte:"LESS_THAN_EQUAL",gte:"GREATER_THAN_EQUAL",between:"BETWEEN",contains:"CONTAINS",startsWith:"STARTS_WITH",notContains:"NOT_CONTAINS",endsWith:"ENDS_WITH"},B={gt:"is greater than",dateAfter:"is after",equals:"is equals",dateIs:"is equals",notEquals:"is not equals",dateIsNot:"is not equals",lt:"is less than",dateBefore:"is before",lte:"is less than or equal to",gte:"is greater than or equal to",between:"between",contains:"contains",startsWith:"starts with",notContains:"not contains",endsWith:"ends with"};a.onMounted(()=>{_()});const w=q=>e.linkedEntity.list.some(L=>L[d.value.name]===q),_=async()=>{try{const q={sortBy:[u.value],sortDirection:f.value===1?"ASC":"DESC",pageSize:g.value,currentPage:m.value,columnList:null,filter:y.value,fullTextSearch:""},L=await r.searchEntityRecords(e.linkedEntity.entityName,q);L&&L.response&&(n.value=L.response,l.value=L.response.entity.entityDefinition.columns,c.value=De(L.response.entity.entityDefinition.columns),p.value=L.response.totalRecords,await v(),await k(),S())}catch{}finally{}},v=async()=>{for(let q=0;q<l.value.length;q++){const L=l.value[q];!L.autoGeneerated&&L.foreignKey&&L.foreignKey.referencedEntityName.toLowerCase()==e.entity360Name.toLowerCase()&&(s.value=L)}},k=async()=>{for(let q=0;q<l.value.length;q++){const L=l.value[q];if(L.primaryKey&&L.primaryKey==!0){d.value=L;break}}},S=()=>{for(let q=0;q<e.linkedEntity.list.length;q++){const L=e.linkedEntity.list[q];L.is_deleted==!1&&L[s.value.name]==e.entity360Id&&i.value.push(L[d.value.name])}},N=()=>{let q=JSON.parse(JSON.stringify(i.value));q=q.filter(he=>!w(he));let L={linkEntityName:n.value.entityName,linkRecordIdList:[]};for(let he=0;he<q.length;he++){const me=q[he];L.linkRecordIdList.push(me)}e.saveExistingRelatedEntityRecord(L)},E=()=>{x.value=!x.value},D=[{label:"Starts with",value:"startsWith"},{label:"Contains",value:"contains"},{label:"Not contains",value:"notContains"},{label:"Ends with",value:"endsWith"},{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"}],M=[{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"},{label:"Less than",value:"lt"},{label:"Less than or equal to",value:"lte"},{label:"Greater than",value:"gt"},{label:"Greater than or equal to",value:"gte"}],T=[{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"}],F=[{label:"Date is",value:"dateIs"},{label:"Date is not",value:"dateIsNot"},{label:"Date is before",value:"dateBefore"},{label:"Date is after",value:"dateAfter"}],$=[{label:"ASC",value:1},{label:"DESC",value:-1}];let W=[];const z=a.computed(()=>c.value.filter(q=>q.sortable)),A=a.computed(()=>c.value.filter(q=>q.filterable)),j=q=>c.value.filter(L=>{var he;return L.filterable?((he=h.value[q])==null?void 0:he.columnName)===L.name?!0:!h.value.some((me,ge)=>ge!==q&&me.columnName===L.name):!1}).map(L=>({label:L.name,value:L.field})),J=q=>{let L="";switch(Xe(q.columnName).toLowerCase()){case"string":case"uuid":L="startsWith";break;case"date":L="dateIs";break;case"numeric":case"int":case"integer":L="equals";break;case"bool":case"boolean":L="equals";break}q.operator=L,q.value=""},oe=q=>{const L=Xe(q.columnName);switch(L&&L.toLowerCase()){case"integer":case"int":case"numeric":W=M;break;case"date":W=F;break;case"bool":case"boolean":W=T;break;default:W=D}return W},ne=q=>{if(q&&q.columnName){const L=Xe(q.columnName);return wt(L)}else return""},X=()=>{for(let q=0;q<h.value.length;q++){const L=h.value[q];L.editing=!1}h.value.push({columnName:"",value:"",operator:"",editing:!0})},Q=q=>{h.value.splice(q,1)},ie=q=>{q.editing=!q.editing},ue=()=>{let q=JSON.parse(JSON.stringify(h.value));y.value=[];for(let L=0;L<q.length;L++){const he=q[L];delete he.editing,he.columnName&&he.operator&&he.value&&(he.columnType=Xe(he.columnName),he.operator=C[he.operator],y.value.push(he))}_()},De=q=>q.map(L=>({field:L.name,name:L.displayName?L.displayName:L.name,filterable:L.filterable,datatype:L.type,sortable:!0,displayFormatKey:L.displayFormatKey,displayFormat:L.displayFormat})),lt=()=>{_()},Xe=q=>{const L=c.value.find(he=>he.field===q);return L?L.datatype:null},wt=q=>{switch(q.toLowerCase()){case"integer":case"int":case"numeric":return"numeric";case"date":return"date";case"bool":case"boolean":return"boolean";default:return"text"}},ft=q=>{g.value=q.rows,m.value=q.page,b.value=q.first,_()};return(q,L)=>{var mo,$o;const he=a.resolveComponent("InputIcon"),me=a.resolveComponent("InputText"),ge=a.resolveComponent("IconField"),pe=a.resolveComponent("Select"),Pe=a.resolveComponent("Divider"),rt=a.resolveComponent("InputNumber"),Pt=a.resolveComponent("DatePicker"),ze=a.resolveComponent("Button"),nt=a.resolveComponent("Checkbox"),ht=a.resolveComponent("Paginator"),go=a.resolveDirective("tooltip");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",V0,[a.createElementVNode("div",I0,[a.createVNode(ge,{class:"block mt-2 md:mt-0 w-full"},{default:a.withCtx(()=>[a.createVNode(he,{onClick:L[0]||(L[0]=()=>{}),class:"pi pi-search"}),a.createVNode(me,{class:"w-full",onKeyup:L[1]||(L[1]=a.withKeys(()=>{},["enter"])),placeholder:`Search ${n.value.entityName}`},null,8,["placeholder"])]),_:1})]),a.createElementVNode("div",L0,[a.createElementVNode("div",{class:"flex items-center cursor-pointer sorting-filter-section flex-1 line-height-4",onClick:L[2]||(L[2]=ee=>E())},[x.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",z0)),x.value?(a.openBlock(),a.createElementBlock("div",j0)):a.createCommentVNode("",!0),L[9]||(L[9]=a.createElementVNode("div",{class:"ml-3 font-bold"}," Sorting & Filters ",-1))])]),x.value?(a.openBlock(),a.createElementBlock("div",W0,[a.createElementVNode("div",H0,[L[10]||(L[10]=a.createElementVNode("div",{class:"col-12 font-bold"},"Sort Column",-1)),a.createElementVNode("div",U0,[a.createVNode(pe,{modelValue:u.value,"onUpdate:modelValue":L[3]||(L[3]=ee=>u.value=ee),options:z.value,optionLabel:"name",optionValue:"field",highlightOnSelect:!1,class:"w-full",onChange:L[4]||(L[4]=ee=>lt(q.event))},null,8,["modelValue","options"])])]),a.createElementVNode("div",q0,[L[11]||(L[11]=a.createElementVNode("div",{class:"col-12 font-bold"},[a.createElementVNode("div",{class:"col-12 font-bold"},"Sort Direction")],-1)),a.createElementVNode("div",Y0,[a.createVNode(pe,{modelValue:f.value,"onUpdate:modelValue":L[5]||(L[5]=ee=>f.value=ee),options:$,optionLabel:"label",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:L[6]||(L[6]=ee=>lt(q.event))},null,8,["modelValue"])])]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(ee,Ct)=>(a.openBlock(),a.createElementBlock("div",{key:Ct},[ee.editing?(a.openBlock(),a.createElementBlock("div",X0,[a.createVNode(Pe,{class:"mt-5"}),a.createElementVNode("div",K0,[L[12]||(L[12]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter Column",-1)),a.createElementVNode("div",G0,[a.createVNode(pe,{modelValue:ee.columnName,"onUpdate:modelValue":Me=>ee.columnName=Me,options:j(Ct),optionLabel:"label",placeholder:"Select column",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:Me=>J(ee)},null,8,["modelValue","onUpdate:modelValue","options","onChange"])])]),a.createElementVNode("div",Q0,[L[13]||(L[13]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter Operator",-1)),a.createElementVNode("div",J0,[a.createVNode(pe,{modelValue:ee.operator,"onUpdate:modelValue":Me=>ee.operator=Me,options:oe(ee),optionLabel:"label",placeholder:"Select operator",optionValue:"value",highlightOnSelect:!1,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","options"])])]),a.createElementVNode("div",Z0,[L[14]||(L[14]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter value",-1)),a.createElementVNode("div",eb,[ne(ee)=="numeric"?(a.openBlock(),a.createBlock(rt,{key:0,format:!1,class:"w-full",modelValue:ee.value,"onUpdate:modelValue":Me=>ee.value=Me,placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"])):ne(ee)=="date"?(a.openBlock(),a.createBlock(Pt,{key:1,class:"w-full",modelValue:ee.value,"onUpdate:modelValue":Me=>ee.value=Me,dateFormat:"mm/dd/yy",placeholder:"mm/dd/yyyy"},null,8,["modelValue","onUpdate:modelValue"])):(a.openBlock(),a.createBlock(me,{key:2,modelValue:ee.value,"onUpdate:modelValue":Me=>ee.value=Me,class:"w-full",placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"]))])]),a.createElementVNode("div",tb,[a.createVNode(ze,{style:{width:"100px"},label:"Hide",icon:"",severity:"warning",onClick:Me=>ie(ee)},null,8,["onClick"]),a.createVNode(ze,{style:{width:"100px"},label:"Delete",icon:"",severity:"danger",onClick:Me=>Q(Ct)},null,8,["onClick"])])])):a.createCommentVNode("",!0),ee.editing?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",ob,[a.createVNode(Pe),a.createElementVNode("div",rb,[a.createElementVNode("span",null,[ee.columnName||ee.operator||ee.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!ee.columnName})},a.toDisplayString(ee.columnName?" "+ee.columnName:" column"),3),a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!B[ee.operator]})},a.toDisplayString(ee.operator?" "+B[ee.operator]:" operator"),3),a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!ee.value})},a.toDisplayString(ee.value?" "+ee.value:" value"),3)],64)):(a.openBlock(),a.createElementBlock("span",nb,"Filter is empty"))]),a.createVNode(ze,{style:{width:"100px"},label:"Edit",icon:"",severity:"info",onClick:Me=>ie(ee)},null,8,["onClick"])])]))]))),128)),a.createElementVNode("div",ib,[a.createVNode(Pe),a.createElementVNode("div",ab,[a.createVNode(ze,{style:{width:"100px"},label:"Add",disabled:A.value.length===h.value.length,icon:"",severity:"success",onClick:X},null,8,["disabled"]),a.createVNode(ze,{style:{width:"100px"},label:"Apply",severity:"info",onClick:ue})])])])):a.createCommentVNode("",!0),a.createElementVNode("div",sb,[a.createElementVNode("div",lb,a.toDisplayString((mo=n.value)==null?void 0:mo.totalRecords),1),a.createElementVNode("div",cb,a.toDisplayString(($o=n.value)==null?void 0:$o.entityName),1)]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value.result,(ee,Ct)=>(a.openBlock(),a.createElementBlock("div",{key:Ct},[a.createElementVNode("div",db,[a.createVNode(nt,{disabled:w(ee[d.value.name]),modelValue:i.value,"onUpdate:modelValue":L[7]||(L[7]=Me=>i.value=Me),value:ee[d.value.name]},null,8,["disabled","modelValue","value"]),a.createElementVNode("div",ub,[a.createTextVNode(a.toDisplayString(t.linkedEntity.entityName)+" ",1),a.createElementVNode("span",null,a.toDisplayString(ee[d.value.name]),1)]),w(ee[d.value.name])?a.withDirectives((a.openBlock(),a.createElementBlock("div",fb,null,512)),[[go,"This record is already associated.",void 0,{left:!0}]]):a.createCommentVNode("",!0)])]))),128)),a.createVNode(ht,{rows:g.value,totalRecords:p.value,rowsPerPageOptions:[10,25,50,100],onPage:ft,template:"FirstPageLink PageLinks LastPageLink CurrentPageReport RowsPerPageDropdown",currentPageReportTemplate:""},null,8,["rows","totalRecords"])]),a.createElementVNode("div",hb,[a.createVNode(Pe,{class:"mt-5"}),a.createElementVNode("div",gb,[a.createElementVNode("div",mb,[a.createVNode(ze,{label:"Cancel",icon:"",severity:"secondary",onClick:L[8]||(L[8]=ee=>o.value=!1)})]),a.createElementVNode("div",pb,[a.createVNode(ze,{label:"Save",severity:"success",onClick:N})])])])],64)}}},[["__scopeId","data-v-a358808d"]]),yb={class:"field flex flex-col"},kb={key:0,class:"flex items-center"},xb={key:1},vb={class:"flex items-center"},wb={class:"flex flex-col justify-center"},Cb={class:"flex flex-row justify-between items-center"},_b={class:"justify-start"},Sb={class:"justify-start"},Bb={__name:"EntityLookupObject",props:a.mergeModels({linkedEntity:{type:Object,required:!0},entity360Name:{type:String,required:!0},entity360Id:{type:[String,Number]},saveExistingEntityObject:{type:Function}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){Ke.useRoute();const{getEntityRecords:e,searchEntityRecords:o,saveRelatedEntityRecord:r,getRecord:n,addRecord:i,updateRecord:s,deleteRecord:l}=mt(),c=t,d=a.useModel(t,"modelValue");new EntityRecordService;const u=a.ref({}),f=a.ref({});let h=a.ref("");const g=a.ref({}),m=a.ref({});a.onMounted(async()=>{console.log("linkedEntity"),console.log(c.linkedEntity),console.log("entity360Name"),console.log(c.entity360Name),console.log("entity360Id"),console.log(c.entity360Id),await b(),await p()});const p=async()=>{try{const w=await e(c.linkedEntity.entityName);w&&w.response&&(u.value=w.response,await y(w.response.entity.entityDefinition.columns),await C(),console.log(u.value))}catch{}finally{}},b=async()=>{try{const w=await n(c.entity360Name,c.entity360Id);w&&w.response&&(f.value=w.response,await x(w.response.entity.entityDefinition.columns),console.log(f.value))}catch{}finally{}},y=async w=>{for(let _=0;_<w.length;_++){const v=w[_];if(v.primaryKey&&v.primaryKey==!0){g.value=v;break}}},x=async w=>{for(let _=0;_<w.length;_++){const v=w[_];if(!v.autoGeneerated&&v.foreignKey&&v.foreignKey.referencedEntityName.toLowerCase()==c.linkedEntity.entityName.toLowerCase()){m.value=v;break}}},C=async()=>{for(let w=0;w<u.value.result.length;w++){const _=u.value.result[w];if(_[g.value.name]==f.value.result[0][m.value.name]){h.value=_;break}}},B=()=>{const w={linkedEntityRecordId:h.value[g.value.name],linkedEntityName:c.linkedEntity.entityName,relationType:"ManyToOne"};c.saveExistingEntityObject(w)};return(w,_)=>{const v=a.resolveComponent("Select"),k=a.resolveComponent("Divider"),S=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock("div",yb,[a.createVNode(v,{modelValue:a.unref(h),"onUpdate:modelValue":_[0]||(_[0]=N=>a.isRef(h)?h.value=N:h=N),"item-value":g.value.name,options:u.value.result,filter:"",optionLabel:g.value.name,placeholder:"Select "+g.value.name,class:"w-full"},{value:a.withCtx(N=>[N.value?(a.openBlock(),a.createElementBlock("div",kb,[a.createElementVNode("div",null,a.toDisplayString(N.value[g.value.name]),1)])):(a.openBlock(),a.createElementBlock("span",xb,a.toDisplayString(N.placeholder),1))]),option:a.withCtx(N=>[a.createElementVNode("div",vb,[a.createElementVNode("div",null,a.toDisplayString(N.option[g.value.name]),1)])]),_:1},8,["modelValue","item-value","options","optionLabel","placeholder"]),a.createElementVNode("div",wb,[a.createVNode(k),a.createElementVNode("div",Cb,[a.createElementVNode("div",_b,[a.createVNode(S,{label:"Cancel",icon:"",severity:"secondary",onClick:_[1]||(_[1]=N=>d.value=!1)})]),a.createElementVNode("div",Sb,[a.createVNode(S,{label:"Save",severity:"success",onClick:B})])])])])}}},Eb={style:{"font-weight":"700","font-size":"1.25rem"}},Rb={class:"flex flex-col"},Ob={class:"flex flex-row justify-between items-center"},Db={class:"justify-start"},Nb={class:"justify-start"},Tb="",Pb={__name:"CreateRelatedentity",props:a.mergeModels({entity360Id:{required:!0},entity360Name:{type:String,required:!0},linkedEntity:{type:Object,required:!0}},{showCreateRelatedEntityForm:{},showCreateRelatedEntityFormModifiers:{}}),emits:a.mergeModels(["onSaveDialog"],["update:showCreateRelatedEntityForm"]),setup(t,{emit:e}){const o=a.useModel(t,"showCreateRelatedEntityForm");Ke.useRoute();const r=t,n=r.linkedEntity.entityName,i=e,s=a.ref("Add existing");a.onMounted(()=>{g()});const{formData:l,columns:c,errors:d,backendErrors:u,clearErrors:f,saveRecord:h,fetchAllRecords:g,saveRelatedEntityRecord:m}=Ji(n,Tb,i),p=()=>{for(let C=0;C<c.value.length;C++){const B=c.value[C];!B.autoGenerated&&B.foreignKey&&(l.value[B.name]=r.entity360Id)}const x={relationType:r.linkedEntity.relationType,linkedEntities:{entityLinkage:[{linkEntityName:r.entity360Name,linkRecordIdList:[r.entity360Id]}]}};h(x)},b=x=>{var C;if(((C=x==null?void 0:x.linkRecordIdList)==null?void 0:C.length)>0){const B={entityLinkage:[{linkEntityName:x.linkEntityName,linkRecordIdList:x.linkRecordIdList}]};m(r.entity360Name,r.entity360Id,B)}},y=x=>{const C={entityLinkage:[{linkEntityName:r.entity360Name,linkRecordIdList:[r.entity360Id]}]};m(x.linkedEntityName,x.linkedEntityRecordId,C)};return(x,C)=>{const B=a.resolveComponent("Tab"),w=a.resolveComponent("TabList"),_=a.resolveComponent("Divider"),v=a.resolveComponent("Button"),k=a.resolveComponent("TabPanel"),S=a.resolveComponent("TabPanels"),N=a.resolveComponent("Tabs"),E=a.resolveComponent("Drawer");return a.openBlock(),a.createBlock(E,{visible:o.value,"onUpdate:visible":C[3]||(C[3]=D=>o.value=D),blockScroll:!0,position:"right",class:"p-fluid layout-profile-sidebar",style:{width:"40%"},pt:{closeButton:"ml-auto"}},{header:a.withCtx(()=>[a.createElementVNode("span",Eb,a.toDisplayString(s.value)+" "+a.toDisplayString(t.linkedEntity.entityName),1)]),default:a.withCtx(()=>[a.createVNode(N,{value:"1"},{default:a.withCtx(()=>[a.createVNode(w,null,{default:a.withCtx(()=>[a.createVNode(B,{value:"0"},{default:a.withCtx(()=>C[4]||(C[4]=[a.createTextVNode("Create new")])),_:1}),a.createVNode(B,{value:"1"},{default:a.withCtx(()=>C[5]||(C[5]=[a.createTextVNode("Add existing")])),_:1})]),_:1}),a.createVNode(S,null,{default:a.withCtx(()=>[a.createVNode(k,{value:"0"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(c),(D,M)=>{var T;return a.openBlock(),a.createElementBlock("div",{key:M,class:"mt-3"},[!D.autoGenerated&&!D.foreignKey?(a.openBlock(),a.createBlock(vn,{key:0,modelValue:a.unref(l)[D.name],"onUpdate:modelValue":F=>a.unref(l)[D.name]=F,column:D,errors:(T=a.unref(d)[D.name])==null?void 0:T.messages,onInput:a.unref(f)},null,8,["modelValue","onUpdate:modelValue","column","errors","onInput"])):a.createCommentVNode("",!0)])}),128)),a.createElementVNode("div",Rb,[a.createVNode(_),a.createElementVNode("div",Ob,[a.createElementVNode("div",Db,[a.createVNode(v,{label:"Cancel",icon:"",severity:"secondary",onClick:C[0]||(C[0]=D=>o.value=!1)})]),a.createElementVNode("div",Nb,[a.createVNode(v,{label:"Save",severity:"success",onClick:p})])])])]),_:1}),a.createVNode(k,{value:"1"},{default:a.withCtx(()=>[t.linkedEntity.relationType=="ONE_TO_MANY"?(a.openBlock(),a.createBlock(bb,{key:0,modelValue:o.value,"onUpdate:modelValue":C[1]||(C[1]=D=>o.value=D),linkedEntity:t.linkedEntity,entity360Name:t.entity360Name,entity360Id:t.entity360Id,saveExistingRelatedEntityRecord:b},null,8,["modelValue","linkedEntity","entity360Name","entity360Id"])):a.createCommentVNode("",!0),t.linkedEntity.relationType=="MANY_TO_ONE"?(a.openBlock(),a.createBlock(Bb,{key:1,modelValue:o.value,"onUpdate:modelValue":C[2]||(C[2]=D=>o.value=D),linkedEntity:t.linkedEntity,entity360Name:t.entity360Name,entity360Id:t.entity360Id,saveExistingEntityObject:y},null,8,["modelValue","linkedEntity","entity360Name","entity360Id"])):a.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["visible"])}}},$b={class:"flex flex-col border-bottom-section pb-3 pt-3"},Ab={class:"flex items-center pl-3 pr-3 justify-between"},Mb={key:0,class:"pi pi-caret-right"},Fb={key:1,class:"pi pi-caret-down"},Vb={class:"ml-3 font-bold"},Ib={class:"ml-1"},Lb={class:"text-right"},zb={key:0},jb=Te({__name:"LinkEntitySection",props:{entity360Id:{required:!0},entity360Name:{type:String,required:!0},linkedEntity:{type:Object,required:!0},entity360Name:{type:[String,Number]},onSaveRelatedEnttity:{type:Function}},setup(t){Ke.useRoute();const e=t,o=a.ref(!1),r=a.ref(!1),n=()=>{o.value=!o.value},i=()=>{r.value=!r.value},s=()=>{r.value=!1,e.onSaveRelatedEnttity()},l=a.computed(()=>e.linkedEntity.list.filter(c=>!c.is_deleted).length);return(c,d)=>{const u=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",$b,[a.createElementVNode("div",Ab,[a.createElementVNode("div",{class:"flex cursor-pointer items-center linked-entity-section grow line-height-4",onClick:d[0]||(d[0]=f=>n())},[o.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Mb)),o.value?(a.openBlock(),a.createElementBlock("div",Fb)):a.createCommentVNode("",!0),a.createElementVNode("div",Vb,a.toDisplayString(t.linkedEntity.entityName),1),a.createElementVNode("div",Ib," ("+a.toDisplayString(l.value)+") ",1)]),a.createElementVNode("div",Lb,[a.createVNode(u,{label:"Add",icon:"pi pi-plus",size:"small",onClick:d[1]||(d[1]=f=>i())})])]),o.value?(a.openBlock(),a.createElementBlock("div",zb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.linkedEntity.list,(f,h)=>(a.openBlock(),a.createElementBlock("div",{class:"flex flex-col",key:h},[f.is_deleted?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(F0,{key:0,linkEntityListItem:f},null,8,["linkEntityListItem"]))]))),128))])):a.createCommentVNode("",!0)]),r.value?(a.openBlock(),a.createBlock(Pb,{key:0,showCreateRelatedEntityForm:r.value,"onUpdate:showCreateRelatedEntityForm":d[2]||(d[2]=f=>r.value=f),linkedEntity:t.linkedEntity,entity360Name:t.entity360Name,entity360Id:t.entity360Id,onOnSaveDialog:s},null,8,["showCreateRelatedEntityForm","linkedEntity","entity360Name","entity360Id"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-412eec44"]]),Wb={key:0},Hb={class:"flex"},Ub={class:"p-3 mt-3 flex-col items-center"},qb={key:0,class:"pi pi-caret-right"},Yb={key:1,class:"pi pi-caret-down"},Xb={class:"font-bold ml-2"},Kb={key:0,class:"flex flex-col mt-4"},Gb={class:"flex flex-col mt-2"},Qb={class:"flex flex-row flex-wrap justify-between pl-5"},Jb={class:"flex flex-col"},Zb={class:"font-bold"},ey={class:"mt-2"},ty={key:0,class:"flex flex-col",style:{position:"relative","max-width":"400px","background-color":"var(--surface-card)"}},oy={key:2,style:{width:"350px"},class:"flex flex-col justify-center"},ry={key:0,class:"custom-sidebar"},ny={class:"custom-sidebar-content"},iy={class:"custom-sidebar-button"},ay={class:"custom-sidebar-text"},cc=Te({__name:"Entity360",props:{entityName:{type:String},recordId:{type:String},variable:{type:String,default:"item"},linkedEntity:Array},emits:["onSaveDialog"],setup(t,{expose:e,emit:o}){var E,D;const r=Qe(),n=Ke.useRoute(),i=t,s=a.ref(!0),l=a.ref(!1),c=a.ref([]);let d=(E=n==null?void 0:n.params)==null?void 0:E.entityName,u=(D=n==null?void 0:n.params)==null?void 0:D.id;i.entityName&&(d=i.entityName),i.recordId&&(u=i.recordId);const f=o,{formData:h,columns:g,errors:m,backendErrors:p,isDataChange:b,linkedEntities:y,primarayColumn:x,clearErrors:C,saveRecord:B,getRelatedEntityRecordById:w,cancleRecord:_}=Ji(d,u,f);a.watch(()=>r.globalConfigs.appId,async M=>{M&&w()},{immediate:!0});const v=()=>{s.value=!s.value},k=()=>{l.value=!l.value},S=()=>{w()},N=M=>{if(!c.value||c.value.length===0)return[];const T=c.value.find(F=>F.entityName===M);return T&&T.list?T.list:(console.log("No related entity found"),[])};return e({getRelatedEntity:N}),a.watch(()=>y.value,M=>{Array.isArray(M)&&M.length>0&&M[0]&&(c.value=M)},{immediate:!0,deep:!0}),(M,T)=>{var ne;const F=a.resolveComponent("SplitterPanel"),$=a.resolveComponent("Tab"),W=a.resolveComponent("TabList"),z=a.resolveComponent("TabPanel"),A=a.resolveComponent("TabPanels"),j=a.resolveComponent("Tabs"),J=a.resolveComponent("Splitter"),oe=a.resolveComponent("Button");return M.$slots["list-item-display-360"]?(a.openBlock(),a.createElementBlock("div",Wb,[a.renderSlot(M.$slots,"header",{},void 0,!0),a.createElementVNode("div",null,[a.renderSlot(M.$slots,"list-item-display-360",a.normalizeProps({[t.variable||""]:{formData:a.unref(h),columns:a.unref(g),linkedEntities:a.unref(y),errors:a.unref(m),recordId:a.unref(u),entityName:a.unref(d),getRelatedEntity:N}}),void 0,!0)]),a.renderSlot(M.$slots,"footer",{},void 0,!0)])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",Hb,[a.createVNode(J,{class:"flex-1",layout:"horizontal",gutterSize:8,size:100},{default:a.withCtx(()=>[a.createVNode(F,{size:20,minSize:10,maxSize:20},{default:a.withCtx(()=>[a.createElementVNode("div",Ub,[a.createElementVNode("div",{onClick:T[0]||(T[0]=X=>v()),class:"section-heading cursor-pointer"},[s.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("i",qb)),s.value?(a.openBlock(),a.createElementBlock("i",Yb)):a.createCommentVNode("",!0),a.createElementVNode("span",Xb," About this "+a.toDisplayString(a.unref(d)),1)]),s.value?(a.openBlock(),a.createElementBlock("div",Kb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(g),(X,Q)=>{var ie;return a.openBlock(),a.createElementBlock("div",{key:Q},[X.autoGenerated?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(vn,{key:0,modelValue:a.unref(h)[X.name],"onUpdate:modelValue":ue=>a.unref(h)[X.name]=ue,column:X,errors:(ie=a.unref(m)[X.name])==null?void 0:ie.messages,onInput:a.unref(C)},null,8,["modelValue","onUpdate:modelValue","column","errors","onInput"]))])}),128))])):a.createCommentVNode("",!0)])]),_:1}),a.createVNode(F,{size:55,minSize:35,style:{height:"100%"}},{default:a.withCtx(()=>[a.createVNode(j,{value:"0"},{default:a.withCtx(()=>[a.createVNode(W,null,{default:a.withCtx(()=>[a.createVNode($,{value:"0"},{default:a.withCtx(()=>T[3]||(T[3]=[a.createTextVNode("Overview")])),_:1}),a.createVNode($,{value:"1"},{default:a.withCtx(()=>T[4]||(T[4]=[a.createTextVNode("Activity")])),_:1})]),_:1}),a.createVNode(A,null,{default:a.withCtx(()=>[a.createVNode(z,{value:"0"},{default:a.withCtx(()=>[a.createElementVNode("div",Gb,[T[5]||(T[5]=a.createElementVNode("h3",{class:"mt-2 text-xl font-semibold"},"Data highlights",-1)),a.createElementVNode("div",Qb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(g).filter(X=>X.autoGenerated),(X,Q)=>(a.openBlock(),a.createElementBlock("div",{key:Q,class:"column-item"},[a.createElementVNode("div",Jb,[a.createElementVNode("div",Zb,a.toDisplayString(X.name),1),a.createElementVNode("div",ey,[a.createVNode(ta,{column:X,value:a.unref(h)[X.name]},null,8,["column","value"])])])]))),128))])])]),_:1}),a.createVNode(z,{value:"1"})]),_:1})]),_:1})]),_:1})]),_:1}),((ne=a.unref(y))==null?void 0:ne.length)>0?(a.openBlock(),a.createElementBlock("div",ty,[l.value?(a.openBlock(),a.createBlock(oe,{key:0,icon:"pi pi-caret-right",rounded:"",onClick:k,"aria-label":"Filter",style:{height:"2rem",width:"2rem",left:"-20px"}})):a.createCommentVNode("",!0),l.value?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(oe,{key:1,icon:"pi pi-caret-left",rounded:"",onClick:k,"aria-label":"Filter",style:{height:"2rem",width:"2rem",left:"-20px"}})),l.value?(a.openBlock(),a.createElementBlock("div",oy,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(y),(X,Q)=>(a.openBlock(),a.createElementBlock("div",{key:Q},[a.createVNode(jb,{entity360Name:a.unref(d),entity360Id:a.unref(u),linkedEntity:X,onSaveRelatedEnttity:S},null,8,["entity360Name","entity360Id","linkedEntity"])]))),128))])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]),a.unref(b)?(a.openBlock(),a.createElementBlock("div",ry,[a.createElementVNode("div",ny,[a.createElementVNode("div",iy,[a.createVNode(oe,{severity:"primary",onClick:T[1]||(T[1]=X=>a.unref(B)())},{default:a.withCtx(()=>T[6]||(T[6]=[a.createTextVNode("Save")])),_:1}),a.createVNode(oe,{style:{"margin-left":"10px"},severity:"secondary",onClick:T[2]||(T[2]=X=>a.unref(_)())},{default:a.withCtx(()=>T[7]||(T[7]=[a.createTextVNode("Cancel")])),_:1})]),a.createElementVNode("div",ay," You've changed property in the "+a.toDisplayString(a.unref(d))+". ",1)])])):a.createCommentVNode("",!0)],64))}}},[["__scopeId","data-v-12a444f4"]]);function An(){const t=new mt;let{errors:e,setErrors:o}=dl(),r=a.reactive({data:null});const n=_=>{r.data=_},i=async _=>{try{const v=await t.getEntityRecords(_);if(v&&v.response)return v}catch(v){return console.error("Error fetching entity:",v.errorMessage),v}finally{}},s=async(_,v)=>{try{let k=await t.addRecord(_.entityName,v);if(k)return k}catch(k){return k}finally{}},l=async(_,v,k)=>{try{const S=await t.updateRecord(_.entityName,v,k);if(S&&S.response)return S}catch(S){return S}finally{}},c=async(_,v)=>{try{v.filter==null&&(v.filter={}),Object.keys(v.filter).length===0&&(v.filter=[]);const k=await t.searchEntityRecords(_.entityName,v);if(k)return k.response.sortBy=v.sortBy,k.response.filters=v.filter,k.response.sortDirection=v.sortDirection,k.response.fullTextSearch=v.fullTextSearch,k}catch(k){return k}finally{}},d=async(_,v)=>{try{const k=await t.deleteRecord(_.entityName,v);if(k)return k}catch(k){console.error("Error on deleting record:",k.errorMessage)}finally{}},u=_=>_.result,f=_=>{var v,k;return(k=(v=_==null?void 0:_.entity)==null?void 0:v.entityDefinition)==null?void 0:k.columns},h=_=>{const v=_.entity.entityDefinition.columns;let k={};for(let S=0;S<v.length;S++){const N=v[S];if(N.primaryKey&&N.primaryKey==!0){k=N;break}}return k},g=_=>{const v=_.entity.entityDefinition.columns;let k={};for(let S=0;S<v.length;S++){let N=v[S];N.autoGenerated||(k[N.name]="")}return k},m=(_,v)=>{let k="";const S=_.entity.entityDefinition.columns;for(let N=0;N<S.length;N++){let E=S[N];if(v==E.name){k=E.type;break}}return k},p=(_,v)=>{const S=_.entity.entityDefinition.columns.filter(E=>E.autoGenerated).map(E=>E.name);return Object.entries(v).filter(([E])=>!S.includes(E)).map(([E,D])=>({recordColumnName:E,recordColumnValue:D,columnType:m(r.data,E)}))},b=()=>{const _=r.data.entity.entityDefinition.columns;return Qi().shape(_.reduce((k,S)=>(S.autoGenerated||(k[S.name]=Gi().nullable(!1).test({name:"custom-validation",test:function(N){const E=[];let D="";if(S.required&&(!N||N.trim()===""))if(S.validations){D=y(S.validations,"VALIDATE_REQUIRED"),E.push(D);let M=C(S.validations,"VALIDATE_REQUIRED");M&&(M="hint:"+M,E.push(M))}else D=S.displayName+" is required.",E.push(D);else{if(S.maxLength&&N.length>S.maxLength)if(S.validations){D=y(S.validations,"VALIDATE_MAXLENGTH"),E.push(D);let M=C(S.validations,"VALIDATE_MAXLENGTH");M&&(M="hint:"+M,E.push(M))}else D=S.displayName+" cannot exceed from "+S.maxLength+" characters",E.push(D);if(S.regxId&&!new RegExp(x(S.validations,"VALIDATE_REGX")).test(N))if(S.validations){D=y(S.validations,"VALIDATE_REGX"),E.push(D);let M=C(S.validations,"VALIDATE_REGX");M&&(M="hint:"+M,E.push(M))}else D=S.displayName+" invalid format.",E.push(D)}return E.length>0?this.createError({message:E}):!0}})),k),{}))},y=(_,v)=>{for(let k=0;k<_.length;k++)if(v==_[k].type)return _[k].message},x=(_,v)=>{for(let k=0;k<_.length;k++)if(v==_[k].type)return _[k].regx},C=(_,v)=>{for(let k=0;k<_.length;k++)if(v==_[k].type)return _[k].hint};return{state:r,setEntity:n,getEntity:i,addRecord:s,updateRecord:l,searchRecord:c,entityRecordDelete:d,getEntityItems:u,getEntityColumns:f,getPrimaryKeyColumn:h,getFormData:g,createDataToSave:p,createValidationSchema:b,clearErrors:_=>(o({...e.value,[_]:null}),e.value),validateData:async(_,v)=>{try{return await _.validate(v,{abortEarly:!1}),o({}),{validate:!0}}catch(k){const S=k.inner.reduce((D,M)=>(D[M.path]||(D[M.path]={messages:[]}),D[M.path].messages.push(...M.errors),D),{}),N=Object.entries(S).reduce((D,[M,T])=>(D[M]={messages:T.messages},D),{});return o(N),{validate:!1,errors:e.value}}}}}const Mn={__name:"ConfirmDeleteDialog",props:{showDeleteDialog:{},showDeleteDialogModifiers:{}},emits:a.mergeModels(["onDeleteItem"],["update:showDeleteDialog"]),setup(t,{emit:e}){const o=a.useModel(t,"showDeleteDialog"),r=e,n=i=>{r("onDeleteItem",{remove:i})};return(i,s)=>{const l=a.resolveComponent("Button"),c=a.resolveComponent("Dialog");return a.openBlock(),a.createBlock(c,{visible:o.value,"onUpdate:visible":s[2]||(s[2]=d=>o.value=d),style:{width:"450px"},header:"Confirm",modal:!0},{footer:a.withCtx(()=>[a.createVNode(l,{label:"No",icon:"pi pi-times",text:"",onClick:s[0]||(s[0]=d=>n(!1))}),a.createVNode(l,{label:"Yes",icon:"pi pi-check",text:"",onClick:s[1]||(s[1]=d=>n(!0))})]),default:a.withCtx(()=>[s[3]||(s[3]=a.createElementVNode("div",{class:"flex items-center justify-center"},[a.createElementVNode("i",{class:"pi pi-exclamation-triangle mr-3",style:{"font-size":"2rem"}}),a.createElementVNode("span",null,"Are you sure you want to delete the selected item?")],-1))]),_:1},8,["visible"])}}},sy={key:0,style:{"font-weight":"700","font-size":"1.25rem"}},ly={key:1,style:{"font-weight":"700","font-size":"1.25rem"}},vr={__name:"EntityFormDialog",props:a.mergeModels({item:Object},{showEntityForm:{},showEntityFormModifiers:{}}),emits:["update:showEntityForm"],setup(t){const e=a.useModel(t,"showEntityForm"),o=a.inject("entityObject"),r=t;let n=a.ref([]),i=a.ref({}),s=a.ref([]),l=a.ref(null),c=a.ref({});a.onMounted(()=>{n.value=o.getEntityColumns(o.state.data),r.item?i.value=JSON.parse(JSON.stringify(r.item)):i.value=o.getFormData(o.state.data),l.value=o.createValidationSchema()});const d=async()=>{const g=await o.validateData(l.value,i.value);if(!g.validate){c.value=g.errors;return}const m=o.getPrimaryKeyColumn(o.state.data),p=r.item[m.name],b={dataDefinitions:o.createDataToSave(o.state.data,i.value)},y=await o.updateRecord(o.state.data,p,b);if(y&&y.success){e.value=!1;const x={sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch},C=await o.searchRecord(o.state.data,x);if(C!=null&&C.response){let B=C==null?void 0:C.response;o.setEntity(B)}}else y.validationErrors&&(s.value=JSON.parse(JSON.stringify(y.errvalidationErrorsors)))},u=async()=>{const g=await o.validateData(l.value,i.value);if(!g.validate){c.value=g.errors;return}const m={dataDefinitions:o.createDataToSave(o.state.data,i.value)},p=await o.addRecord(o.state.data,m);p&&p.success?(e.value=!1,o.state.data=await o.getEntity(o.state.data.entityName)):p.validationErrors&&(s.value=JSON.parse(JSON.stringify(p.errvalidationErrorsors)))},f=async()=>{r.item?d():u()},h=g=>{c.value=o.clearErrors(g)};return(g,m)=>{const p=a.resolveComponent("Button"),b=a.resolveComponent("Dialog");return e.value?(a.openBlock(),a.createBlock(b,{key:0,showFooter:!1,visible:e.value,"onUpdate:visible":m[2]||(m[2]=y=>e.value=y),style:{width:"50rem"},breakpoints:{"1199px":"75vw","575px":"90vw"},modal:!0,class:"p-fluid"},{header:a.withCtx(()=>[t.item?(a.openBlock(),a.createElementBlock("span",sy,"Edit "+a.toDisplayString(a.unref(o).state.data.entityName)+" record details",1)):a.createCommentVNode("",!0),t.item?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",ly,"Add "+a.toDisplayString(a.unref(o).state.data.entityName)+" record details",1))]),footer:a.withCtx(()=>[a.createVNode(p,{type:"button",icon:"",label:"Cancel",severity:"secondary",onClick:m[0]||(m[0]=y=>e.value=!1)}),a.createVNode(p,{type:"button",icon:"",label:"Save",severity:"success",onClick:m[1]||(m[1]=y=>f())})]),default:a.withCtx(()=>{var y;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(n),(x,C)=>{var B;return a.openBlock(),a.createElementBlock("div",{key:C},[!x.autoGenerated&&!x.foreignKey?(a.openBlock(),a.createBlock(vn,{key:0,modelValue:a.unref(i)[x.name],"onUpdate:modelValue":w=>a.unref(i)[x.name]=w,column:x,errors:(B=a.unref(c)[x.name])==null?void 0:B.messages,onInput:h},null,8,["modelValue","onUpdate:modelValue","column","errors"])):a.createCommentVNode("",!0),!x.autoGenerated&&x.foreignKey?(a.openBlock(),a.createBlock(Rl,{key:1,modelValue:a.unref(i)[x.name],"onUpdate:modelValue":w=>a.unref(i)[x.name]=w,entityName:x.foreignKey.referencedEntityName,columnName:x.name,relatedEntityColumn:x.foreignKey.referencedColumnName},null,8,["modelValue","onUpdate:modelValue","entityName","columnName","relatedEntityColumn"])):a.createCommentVNode("",!0)])}),128)),((y=a.unref(s))==null?void 0:y.length)>0?(a.openBlock(),a.createBlock(El,{key:0,errors:a.unref(s)},null,8,["errors"])):a.createCommentVNode("",!0)]}),_:1},8,["visible"])):a.createCommentVNode("",!0)}}},cy={class:"flex justify-between items-start"},dy={class:"flex-grow-1"},uy={class:"tile-grid"},fy={class:"font-bold text-lg text-700"},hy={class:"flex flex-col gap-2"},gy=Te({__name:"EntityListSingleRecord",props:{item:Object},setup(t){const e=t,o=a.inject("entityObject"),r=a.ref([]),n=a.ref(!1),i=a.ref(!1);a.onMounted(()=>{r.value=o.getEntityColumns(o.state.data)});const s=()=>{n.value=!0},l=()=>{i.value=!0},c=u=>{u.remove==!0?d():n.value=!1},d=async()=>{const u=o.getPrimaryKeyColumn(o.state.data),f=e.item[u.name],h=await o.entityRecordDelete(o.state.data,f);if(h!=null&&h.success){n.value=!1;const g={sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch},m=await o.searchRecord(o.state.data,g);if(m!=null&&m.response){let p=m==null?void 0:m.response;o.setEntity(p)}console.log(h)}};return(u,f)=>{const h=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",cy,[a.createElementVNode("div",dy,[a.createElementVNode("div",uy,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(g,m)=>(a.openBlock(),a.createElementBlock("div",{key:m},[a.createElementVNode("span",fy,a.toDisplayString(g.name)+" : ",1),a.createVNode(ta,{column:g,value:t.item[g.name]},null,8,["column","value"])]))),128))])]),a.createElementVNode("div",hy,[a.createVNode(h,{onClick:f[0]||(f[0]=g=>l()),icon:"pi pi-pencil",severity:"success",size:"",rounded:"","aria-label":"Edit"}),a.createVNode(h,{onClick:f[1]||(f[1]=g=>s()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})])]),i.value?(a.openBlock(),a.createBlock(vr,{key:0,showEntityForm:i.value,"onUpdate:showEntityForm":f[2]||(f[2]=g=>i.value=g),item:t.item},null,8,["showEntityForm","item"])):a.createCommentVNode("",!0),n.value?(a.openBlock(),a.createBlock(Mn,{key:1,showDeleteDialog:n.value,"onUpdate:showDeleteDialog":f[3]||(f[3]=g=>n.value=g),onOnDeleteItem:c},null,8,["showDeleteDialog"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-bce4d0f0"]]),my=Te({__name:"EntityListRecordParent",props:{listItemDisplay:String},setup(t){const e=a.inject("entityObject"),o=a.ref([]);return a.watch(()=>e.state.data,r=>{r&&(o.value=r.result,console.log("Entity state updated in child:",e))},{immediate:!0}),(r,n)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(i,s)=>(a.openBlock(),a.createElementBlock("div",{key:s,class:"card rounded-md p-5 my-2 shadow-lg relative tile"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listItemDisplay!=null&&t.listItemDisplay!=""?t.listItemDisplay:gy),a.mergeProps({ref_for:!0},{item:i}),null,16))]))),128))}},[["__scopeId","data-v-f59ea2d9"]]),py={};function by(t,e){return null}const yy=Te(py,[["render",by]]),ky={class:"my-2"},xy={class:"m-0"},vy={__name:"EntityListHeaderSlot",setup(t){const e=a.inject("entityObject");let o=a.ref("");return a.watch(()=>e.state.data,r=>{r&&(o.value=r.entityName)},{immediate:!0}),(r,n)=>{const i=a.resolveComponent("Toolbar");return a.openBlock(),a.createBlock(i,{class:"p-2 my-2"},{start:a.withCtx(()=>[a.createElementVNode("div",ky,[a.createElementVNode("h2",xy,"EntityName: "+a.toDisplayString(a.unref(o)),1)])]),end:a.withCtx(()=>n[0]||(n[0]=[])),_:1})}}},wy={class:"flex flex-col mb-5"},Cy={class:"col-12"},_y={class:"flex flex-col mb-5"},Sy={class:"col-12"},By={key:0},Ey={class:"flex flex-col mb-5"},Ry={class:"col-12"},Oy={class:"flex flex-col mb-5"},Dy={class:"col-12"},Ny={class:"flex flex-col mb-5"},Ty={class:"col-12"},Py={class:"flex flex-row justify-between items-center"},$y={key:1},Ay={class:"flex flex-row justify-between items-center"},My={key:1,class:"text-red-500"},Fy={class:"flex flex-col"},Vy={class:"flex flex-row justify-between items-center"},Iy={__name:"FilterSortSidebar",props:a.mergeModels({headers:Array,operatorMap:Object,sortCallback:Function,filterCallback:Function,getColumnDatatype:Function,getDatatypeByField:Function},{sortBy:{},sortByModifiers:{},sortDirection:{},sortDirectionModifiers:{},showFilter:{},showFilterModifiers:{},filters:{},filtersModifiers:{}}),emits:["update:sortBy","update:sortDirection","update:showFilter","update:filters"],setup(t){const e=a.useModel(t,"sortBy"),o=a.useModel(t,"sortDirection"),r=a.useModel(t,"showFilter"),n=a.useModel(t,"filters"),i={GREATER_THAN:"is greater than",dateAfter:"is after",EQUAL:"is equals",dateIs:"is equals",NOT_EQUAL:"is not equals",dateIsNot:"is not equals",LESS_THAN:"is less than",dateBefore:"is before",LESS_THAN_EQUAL:"is less than or equal to",GREATER_THAN_EQUAL:"is greater than or equal to",between:"between",CONTAINS:"contains",STARTS_WITH:"starts with",NOT_CONTAINS:"not contains",ENDS_WITH:"ends with"},s=[{label:"Starts with",value:"STARTS_WITH"},{label:"Contains",value:"CONTAINS"},{label:"Not contains",value:"NOT_CONTAINS"},{label:"Ends with",value:"ENDS_WITH"},{label:"Equals",value:"EQUAL"},{label:"Not equals",value:"NOT_EQUAL"}],l=[{label:"Equals",value:"EQUAL"},{label:"Not equals",value:"NOT_EQUAL"},{label:"Less than",value:"LESS_THAN"},{label:"Less than or equal to",value:"LESS_THAN_EQUAL"},{label:"Greater than",value:"GREATER_THAN_EQUAL"},{label:"Greater than or equal to",value:"gte"}],c=[{label:"Equals",value:"EQUAL"},{label:"Not equals",value:"NOT_EQUAL"}],d=[{label:"Date is",value:"dateIs"},{label:"Date is not",value:"dateIsNot"},{label:"Date is before",value:"dateBefore"},{label:"Date is after",value:"dateAfter"}],u=[{label:"ASC",value:1},{label:"DESC",value:-1}];let f=[];const h=a.computed(()=>t.headers.filter(v=>v.sortable)),g=a.computed(()=>t.headers.filter(v=>v.filterable)),m=v=>t.headers.filter(k=>{var S;return k.filterable?((S=n.value[v])==null?void 0:S.columnName)===k.name?!0:!n.value.some((N,E)=>E!==v&&N.columnName===k.name):!1}).map(k=>({label:k.name,value:k.field})),p=v=>{let k="";switch(t.getDatatypeByField(v.columnName).toLowerCase()){case"string":case"uuid":k="startsWith";break;case"date":k="dateIs";break;case"numeric":case"int":case"integer":k="equals";break;case"bool":case"boolean":k="equals";break}v.operator=k,v.value=""},b=v=>{const k=t.getDatatypeByField(v.columnName);switch(k&&k.toLowerCase()){case"integer":case"int":case"numeric":f=l;break;case"date":f=d;break;case"bool":case"boolean":f=c;break;default:f=s}return f},y=v=>{if(v&&v.columnName){const k=t.getDatatypeByField(v.columnName);return t.getColumnDatatype(k)}else return""},x=()=>{for(let v=0;v<n.value.length;v++){const k=n.value[v];k.editing=!1}n.value.push({columnName:"",value:"",operator:"",editing:!0})},C=v=>{n.value.splice(v,1)},B=v=>{v.editing=!v.editing},w=()=>{let v=[],k=JSON.parse(JSON.stringify(n.value));for(let S=0;S<k.length;S++){const N=k[S];delete N.editing,N.columnName&&N.operator&&N.value&&(N.columnType=t.getDatatypeByField(N.columnName),N.operator=t.operatorMap[N.operator],v.push(N))}t.filterCallback(v)},_=()=>{t.sortCallback()};return(v,k)=>{const S=a.resolveComponent("Select"),N=a.resolveComponent("Divider"),E=a.resolveComponent("InputNumber"),D=a.resolveComponent("DatePicker"),M=a.resolveComponent("InputText"),T=a.resolveComponent("Button"),F=a.resolveComponent("Drawer");return a.openBlock(),a.createBlock(F,{visible:r.value,"onUpdate:visible":k[4]||(k[4]=$=>r.value=$),header:"Sorting and Filter",blockScroll:!0,position:"right",class:"layout-profile-sidebar !w-full md:!w-80 lg:!w-[30rem]",pt:{closeButton:"ml-auto"}},{default:a.withCtx(()=>[a.createElementVNode("div",wy,[k[5]||(k[5]=a.createElementVNode("div",{class:"col-12 font-bold"},"Sort Column",-1)),a.createElementVNode("div",Cy,[a.createVNode(S,{modelValue:e.value,"onUpdate:modelValue":k[0]||(k[0]=$=>e.value=$),options:h.value,optionLabel:"name",optionValue:"field",highlightOnSelect:!1,class:"w-full",onChange:k[1]||(k[1]=$=>_(v.event))},null,8,["modelValue","options"])])]),a.createElementVNode("div",_y,[k[6]||(k[6]=a.createElementVNode("div",{class:"col-12 font-bold"},[a.createElementVNode("div",{class:"col-12 font-bold"},"Sort Direction")],-1)),a.createElementVNode("div",Sy,[a.createVNode(S,{modelValue:o.value,"onUpdate:modelValue":k[2]||(k[2]=$=>o.value=$),options:u,optionLabel:"label",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:k[3]||(k[3]=$=>_(v.event))},null,8,["modelValue"])])]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,($,W)=>(a.openBlock(),a.createElementBlock("div",{key:W},[$.editing?(a.openBlock(),a.createElementBlock("div",By,[a.createVNode(N),a.createElementVNode("div",Ey,[k[7]||(k[7]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter Column",-1)),a.createElementVNode("div",Ry,[a.createVNode(S,{modelValue:$.columnName,"onUpdate:modelValue":z=>$.columnName=z,options:m(W),optionLabel:"label",placeholder:"Select column",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:z=>p($)},null,8,["modelValue","onUpdate:modelValue","options","onChange"])])]),a.createElementVNode("div",Oy,[k[8]||(k[8]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter Operator",-1)),a.createElementVNode("div",Dy,[a.createVNode(S,{modelValue:$.operator,"onUpdate:modelValue":z=>$.operator=z,options:b($),optionLabel:"label",placeholder:"Select operator",optionValue:"value",highlightOnSelect:!1,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","options"])])]),a.createElementVNode("div",Ny,[k[9]||(k[9]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter value",-1)),a.createElementVNode("div",Ty,[y($)=="numeric"?(a.openBlock(),a.createBlock(E,{key:0,format:!1,class:"w-full",modelValue:$.value,"onUpdate:modelValue":z=>$.value=z,placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"])):y($)=="date"?(a.openBlock(),a.createBlock(D,{key:1,class:"w-full",modelValue:$.value,"onUpdate:modelValue":z=>$.value=z,dateFormat:"mm/dd/yy",placeholder:"mm/dd/yyyy"},null,8,["modelValue","onUpdate:modelValue"])):(a.openBlock(),a.createBlock(M,{key:2,modelValue:$.value,"onUpdate:modelValue":z=>$.value=z,class:"w-full",placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"]))])]),a.createElementVNode("div",Py,[a.createVNode(T,{label:"Hide",icon:"",severity:"warn",onClick:z=>B($)},null,8,["onClick"]),a.createVNode(T,{label:"Delete",icon:"",severity:"danger",onClick:z=>C(W)},null,8,["onClick"])])])):a.createCommentVNode("",!0),$.editing?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",$y,[a.createVNode(N),a.createElementVNode("div",Ay,[a.createElementVNode("span",null,[$.columnName||$.operator||$.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!$.columnName})},a.toDisplayString($.columnName?" "+$.columnName:" column"),3),a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!i[$.operator]})},a.toDisplayString($.operator?" "+i[$.operator]:" operator"),3),a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!$.value})},a.toDisplayString($.value?" "+$.value:" value"),3)],64)):(a.openBlock(),a.createElementBlock("span",My,"Filter is empty"))]),a.createVNode(T,{label:"Edit",icon:"",severity:"info",onClick:z=>B($)},null,8,["onClick"])])]))]))),128)),a.createElementVNode("div",Fy,[a.createVNode(N),a.createElementVNode("div",Vy,[a.createVNode(T,{label:"Add",disabled:g.value.length===n.value.length,icon:"",severity:"success",onClick:x},null,8,["disabled"]),a.createVNode(T,{label:"Apply",severity:"info",onClick:w})])])]),_:1},8,["visible"])}}},Ly={class:"my-2"},eo={__name:"EntityListFilters",props:{externalFilterPayload:Object},setup(t){const e=a.inject("entityObject"),o=a.ref(!1),r=a.ref([]),n=a.ref([]),i=a.ref(""),s=a.ref(1),l=a.ref(""),c=a.ref([]),d=a.ref([]),u=a.ref(!1),f=t;console.log("props externalFilterPayload list filte",f.externalFilterPayload);const h={GREATER_THAN:"GREATER_THAN",dateAfter:"GREATER_THAN",EQUAL:"EQUAL",dateIs:"EQUAL",NOT_EQUAL:"NOT_EQUAL",dateIsNot:"NOT_EQUAL",LESS_THAN:"LESS_THAN",dateBefore:"LESS_THAN",LESS_THAN_EQUAL:"LESS_THAN_EQUAL",GREATER_THAN_EQUAL:"GREATER_THAN_EQUAL",between:"BETWEEN",CONTAINS:"CONTAINS",STARTS_WITH:"STARTS_WITH",NOT_CONTAINS:"NOT_CONTAINS",ENDS_WITH:"ENDS_WITH"},g=()=>{var k;const v=f.externalFilterPayload;i.value=((k=v.sortBy)==null?void 0:k[0])||"",s.value=v.sortDirection==="DESC"?-1:1,l.value=v.fullTextSearch||"",r.value=v.filter||[],n.value=v.filter||[],b()};a.watch(()=>e.state.data,v=>{if(v&&!u.value){if(c.value=e.getEntityColumns(v),d.value=B(c.value),!i.value){const k=e.getPrimaryKeyColumn(v);i.value=(k==null?void 0:k.name)||""}f.externalFilterPayload&&g(),u.value=!0}},{immediate:!0});const m=()=>{o.value=!o.value},p=v=>{n.value=v,b()},b=async()=>{const v=e.state.data,k={sortBy:[i.value],sortDirection:s.value===1?"ASC":"DESC",pageSize:(v==null?void 0:v.pageSize)||25,currentPage:(v==null?void 0:v.currentPage)||0,columnList:null,filter:n.value,fullTextSearch:l.value},S=await e.searchRecord(v,k);S!=null&&S.success&&e.setEntity(S.response)},y=()=>{b()},x=()=>{r.value=[],n.value=[],b()},C=()=>{b()},B=v=>v.map(k=>({field:k.name,name:k.displayName||k.name,filterable:k.filterable,datatype:k.type,sortable:k.indexColumn,displayFormatKey:k.displayFormatKey,displayFormat:k.displayFormat})),w=v=>{switch(v.toLowerCase()){case"integer":case"int":case"numeric":return"numeric";case"date":return"date";case"bool":case"boolean":return"boolean";default:return"text"}},_=v=>{const k=c.value.find(S=>S.name===v);return k?k.type:null};return(v,k)=>{const S=a.resolveComponent("Button"),N=a.resolveComponent("InputIcon"),E=a.resolveComponent("InputText"),D=a.resolveComponent("IconField"),M=a.resolveComponent("Toolbar");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(M,{class:"p-2 my-2"},{start:a.withCtx(()=>[a.createElementVNode("div",Ly,[a.createVNode(S,{type:"button",size:"medium",icon:"pi pi-filter",label:"Filter",severity:"info",onClick:k[0]||(k[0]=T=>m())})]),a.createVNode(S,{class:"ml-3",size:"medium",type:"button",icon:"pi pi-filter-slash",label:"Clear",severity:"warn",onClick:k[1]||(k[1]=T=>x())})]),end:a.withCtx(()=>[a.createVNode(D,{iconPosition:"right",class:"block mt-2 md:mt-0"},{default:a.withCtx(()=>[a.createVNode(N,{onClick:k[2]||(k[2]=T=>C()),class:"pi pi-search"}),a.createVNode(E,{class:"w-full sm:w-auto",onKeyup:k[3]||(k[3]=a.withKeys(T=>C(),["enter"])),modelValue:l.value,"onUpdate:modelValue":k[4]||(k[4]=T=>l.value=T),placeholder:"Search..."},null,8,["modelValue"])]),_:1})]),_:1}),a.createVNode(Iy,{sortBy:i.value,"onUpdate:sortBy":k[5]||(k[5]=T=>i.value=T),sortDirection:s.value,"onUpdate:sortDirection":k[6]||(k[6]=T=>s.value=T),showFilter:o.value,"onUpdate:showFilter":k[7]||(k[7]=T=>o.value=T),filters:r.value,"onUpdate:filters":k[8]||(k[8]=T=>r.value=T),headers:d.value,operatorMap:h,sortCallback:y,filterCallback:p,getColumnDatatype:w,getDatatypeByField:_},null,8,["sortBy","sortDirection","showFilter","filters","headers"])],64)}}},wr={__name:"EntityListPagination",setup(t){const e=a.ref(25),o=a.ref(0),r=a.ref(0),n=a.ref(0);let i=a.inject("entityObject");const s=async l=>{e.value=l.rows,o.value=l.page,n.value=l.first;const c={sortBy:i.state.data.sortBy,sortDirection:i.state.data.sortDirection,columnList:null,filter:i.state.data.filters,fullTextSearch:i.state.data.fullTextSearch,pageSize:e.value,currentPage:o.value},d=await i.searchRecord(i.state.data,c);if(d!=null&&d.success){let u=d==null?void 0:d.response;i.setEntity(u),r.value=d.response.totalRecords,n.value=o.value*e.value}};return a.watch(()=>{var l,c;return(c=(l=i==null?void 0:i.state)==null?void 0:l.data)==null?void 0:c.totalRecords},l=>{r&&(r.value=l)},{immediate:!0}),(l,c)=>{const d=a.resolveComponent("Paginator");return a.openBlock(),a.createBlock(d,{class:"my-4",rows:e.value,totalRecords:r.value,rowsPerPageOptions:[10,25,50,100],onPage:s,template:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown",currentPageReportTemplate:"Showing {first} to {last} of {totalRecords} items"},null,8,["rows","totalRecords"])}}},zy={class:"flex flex-row justify-end p-2 my-2"},to={__name:"EntityListAddButton",setup(t){const e=a.ref(!1),o=()=>{e.value=!0};return(r,n)=>{const i=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",zy,[a.createVNode(i,{label:"Add",size:"medium",icon:"pi pi-plus",onClick:n[0]||(n[0]=s=>o())})]),e.value?(a.openBlock(),a.createBlock(vr,{key:0,showEntityForm:e.value,"onUpdate:showEntityForm":n[1]||(n[1]=s=>e.value=s)},null,8,["showEntityForm"])):a.createCommentVNode("",!0)],64)}}},dc={__name:"EntityList",props:{entityName:String,listDisplay:String,listItemDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,showAddButton:Boolean,listFilerSlot:Boolean,className:{type:String,default:"default-class"}},setup(t,{expose:e}){const o=An(),r=Qe();a.provide("entityObject",o);const n=t;return e({props:n,reload:()=>{console.log("reload data")}}),a.watch(()=>r.globalConfigs.appId,async s=>{if(s){const l=await o.getEntity(n.entityName);l.success?o.setEntity(l.response):o.setEntity({result:[]})}},{immediate:!0}),(s,l)=>{var c,d,u;return s.$slots["list-item-display"]?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[t.showAddButton?(a.openBlock(),a.createBlock(to,{key:0})):a.createCommentVNode("",!0),t.listFilerSlot?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||eo),{key:1})):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(((u=(d=(c=a.unref(o))==null?void 0:c.state)==null?void 0:d.data)==null?void 0:u.result)||[],f=>a.renderSlot(s.$slots,"list-item-display",{item:f})),256))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listHeader||vy))),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||eo))),t.showAddButton?(a.openBlock(),a.createBlock(to,{key:0})):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listDisplay||my),a.normalizeProps(a.guardReactiveProps({listItemDisplay:t.listItemDisplay})),null,16)),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||wr))),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFooter||yy)))],64))}}},jy={key:0},Wy=["href"],Hy={key:1},Uy={class:"action-buttons"},qy=Te({__name:"EntityListingSingleRecord",props:{item:Object,entityName:String,showAddButton:Boolean,showFilters:Boolean,className:String,listDisplay:String,listHeader:String,listClass:String,listItemClass:String,listFooter:String,listFilter:String,listPagination:String,displayField:String,baseUrl:String,hrefKey:String,listItemDisplay:String,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean,linkedEntity:Array,externalFilterPayload:Object},setup(t){const e=t;console.log("props entitylistsingle record",e.item);const o=a.inject("entityObject"),r=a.ref([]),n=a.ref(null),i=a.ref(null),s=a.ref(!1),l=a.ref(!1);a.onMounted(()=>{var h;e.linkedEntity&&e.linkedEntity.length>0?r.value=Object.keys(e.linkedEntity[0]).map(g=>({name:g})):r.value=o==null?void 0:o.getEntityColumns(o.state.data),n.value=((h=r==null?void 0:r.value)==null?void 0:h.find(g=>g.name===e.displayField))||null,n.value&&(i.value=e==null?void 0:e.item[n.value.name])});const c=()=>{s.value=!0},d=()=>{l.value=!0},u=async h=>{h.remove?f():s.value=!1},f=async()=>{const h=o.getPrimaryKeyColumn(o.state.data),g=e.item[h.name],m=await o.entityRecordDelete(o.state.data,g);if(m!=null&&m.success){s.value=!1;const p=await o.searchRecord(o.state.data,{sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch});p!=null&&p.response&&o.setEntity(p.response)}};return(h,g)=>{const m=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("ul",{class:a.normalizeClass(e.className)},[n.value?(a.openBlock(),a.createElementBlock("li",jy,[a.createElementVNode("a",{href:`${t.baseUrl}/${t.item[t.hrefKey]}`,target:"_blank",class:"hover:underline"},a.toDisplayString(i.value),9,Wy)])):(a.openBlock(),a.createElementBlock("li",Hy,[a.createElementVNode("span",null,"No matching field found for '"+a.toDisplayString(i.value)+"'.",1)])),a.createElementVNode("li",Uy,[t.editable?(a.openBlock(),a.createBlock(m,{key:0,onClick:g[0]||(g[0]=p=>d()),icon:"pi pi-pencil",severity:"success",rounded:"","aria-label":"Edit"})):a.createCommentVNode("",!0),t.deletable?(a.openBlock(),a.createBlock(m,{key:1,onClick:g[1]||(g[1]=p=>c()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})):a.createCommentVNode("",!0)])],2),l.value?(a.openBlock(),a.createBlock(vr,{key:0,showEntityForm:l.value,"onUpdate:showEntityForm":g[2]||(g[2]=p=>l.value=p),item:t.item},null,8,["showEntityForm","item"])):a.createCommentVNode("",!0),s.value?(a.openBlock(),a.createBlock(Mn,{key:1,showDeleteDialog:s.value,"onUpdate:showDeleteDialog":g[3]||(g[3]=p=>s.value=p),onOnDeleteItem:u},null,8,["showDeleteDialog"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-066206a2"]]),Yy={key:0,class:"error-message"},Xy={class:"text-red-500 font-bold"},Ky={key:0},Gy={key:1},Qy={key:2},Jy={key:3},Zy={key:1},uc=Te({__name:"EntityListing",props:{entityName:String,listClass:String,listItemClass:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,listItemDisplay:String,showAddButton:Boolean,showFilters:Boolean,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},displayField:String,baseUrl:String,hrefKey:String,editable:Boolean,deletable:Boolean,linkedEntity:Array,externalFilterPayload:Object},setup(t,{expose:e,emit:o}){const r=An(),n=Qe();a.provide("entityObject",r);const i=o,s=t;console.log("props externalFilterPayload",s.externalFilterPayload);const l=a.ref([]);return s.linkedEntity?a.watch(()=>s.linkedEntity,u=>{u&&(l.value=u,i("linkedEntityChanged",u))},{immediate:!0}):a.watch(()=>r.state.data,u=>{u&&(l.value=u.result,i("linkedEntityChanged",u.result))},{immediate:!0}),e({props:s,reload:()=>{console.log("reload data")},filter:u=>{console.log("filter data in unordered",u)}}),a.watch(()=>n.globalConfigs.appId,async u=>{if(u)if(s.linkedEntity&&s.linkedEntity.length>0)r.setEntity(s.linkedEntity);else{const f=await r.getEntity(s.entityName);r.setEntity(f.success?f.response:{result:[]})}},{immediate:!0}),(u,f)=>{var h,g,m;return a.openBlock(),a.createElementBlock("div",a.mergeProps(u.$attrs,{class:"flex flex-col"}),[a.renderSlot(u.$slots,"header",{},void 0,!0),u.$slots["list-item-display"]?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[t.showAddButton?(a.openBlock(),a.createBlock(to,{key:0})):a.createCommentVNode("",!0),t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||eo),{key:1,externalFilterPayload:s.externalFilterPayload},null,8,["externalFilterPayload"])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(t.listClass)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.linkedEntity&&t.linkedEntity.length>0?t.linkedEntity:((m=(g=(h=a.unref(r))==null?void 0:h.state)==null?void 0:g.data)==null?void 0:m.result)||[],p=>a.renderSlot(u.$slots,"list-item-display",{item:p,class:a.normalizeClass(t.listItemClass)},void 0,!0)),256))],2),t.showPagination?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||wr),{key:2})):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[!t.displayField||!t.baseUrl||!t.hrefKey?(a.openBlock(),a.createElementBlock("div",Yy,[a.createElementVNode("p",Xy,[f[0]||(f[0]=a.createTextVNode(" Error: Missing required props - ")),t.entityName?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Ky,"Entity Name")),t.displayField?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Gy,"Display Field")),t.baseUrl?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Qy,"Base Url")),t.hrefKey?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Jy,"Href Key"))])])):(a.openBlock(),a.createElementBlock("div",Zy,[t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||eo),{key:0,externalFilterPayload:s.externalFilterPayload},null,8,["externalFilterPayload"])):a.createCommentVNode("",!0),t.showAddButton?(a.openBlock(),a.createBlock(to,{key:1})):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value,(p,b)=>(a.openBlock(),a.createElementBlock("div",{key:b},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listItemDisplay!=null&&t.listItemDisplay!=""?t.listItemDisplay:qy),a.mergeProps({key:p,ref_for:!0},{item:p,...s}),null,16))]))),128)),t.showPagination?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||wr),{key:2})):a.createCommentVNode("",!0)])),a.renderSlot(u.$slots,"footer",{},void 0,!0)],64)),a.renderSlot(u.$slots,"footer",{},void 0,!0)],16)}}},[["__scopeId","data-v-edc5e5a2"]]),ek={class:"p-6 bg-white shadow-md rounded-lg border border-gray-300 flex flex-col"},tk={class:"flex justify-between items-start gap-4"},ok={class:"flex-grow"},rk={class:"flex flex-col gap-2"},nk={class:"font-bold text-gray-700"},ik={class:"text-gray-600"},ak={class:"flex flex-col gap-2"},sk=Te({__name:"EntityListingTileSingleRecord",props:{item:Object,entityName:String,showAddButton:Boolean,showFilters:Boolean,className:String,listDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,listItemDisplay:String,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean},setup(t){const e=t,o=a.inject("entityObject"),r=a.ref([]),n=a.ref(null),i=a.ref(null),s=a.ref(!1),l=a.ref(!1);a.onMounted(()=>{r.value=o.getEntityColumns(o.state.data),n.value=r.value.find(h=>h.name===e.displayField)||null,n.value&&(i.value=e.item[n.value.name])});const c=()=>{s.value=!0},d=()=>{l.value=!0},u=async h=>{h.remove?f():s.value=!1},f=async()=>{const h=o.getPrimaryKeyColumn(o.state.data),g=e.item[h.name],m=await o.entityRecordDelete(o.state.data,g);if(m!=null&&m.success){s.value=!1;const p=await o.searchRecord(o.state.data,{sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch});p!=null&&p.response&&o.setEntity(p.response)}};return(h,g)=>{const m=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",ek,[a.createElementVNode("div",tk,[a.createElementVNode("div",ok,[a.createElementVNode("div",rk,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(p,b)=>(a.openBlock(),a.createElementBlock("div",{key:b,class:"flex flex-col"},[a.createElementVNode("span",nk,a.toDisplayString(p.displayName||p.name)+":",1),a.createElementVNode("span",ik,a.toDisplayString(t.item[p.name]),1)]))),128))])]),a.createElementVNode("div",ak,[t.editable?(a.openBlock(),a.createBlock(m,{key:0,onClick:g[0]||(g[0]=p=>d()),icon:"pi pi-pencil",severity:"success",rounded:"","aria-label":"Edit"})):a.createCommentVNode("",!0),t.deletable?(a.openBlock(),a.createBlock(m,{key:1,onClick:g[1]||(g[1]=p=>c()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})):a.createCommentVNode("",!0)])])]),l.value?(a.openBlock(),a.createBlock(vr,{key:0,showEntityForm:l.value,"onUpdate:showEntityForm":g[2]||(g[2]=p=>l.value=p),item:t.item},null,8,["showEntityForm","item"])):a.createCommentVNode("",!0),s.value?(a.openBlock(),a.createBlock(Mn,{key:1,showDeleteDialog:s.value,"onUpdate:showDeleteDialog":g[3]||(g[3]=p=>s.value=p),onOnDeleteItem:u},null,8,["showDeleteDialog"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-c78e676f"]]),lk={class:"flex flex-wrap gap-4 p-2"},ck={key:0,class:"error-message"},dk={class:"text-red-500 font-bold"},uk={key:0},fk={key:1},hk={class:"flex flex-wrap gap-4 p-4"},fc=Te({__name:"EntityListingTile",props:{entityName:String,listDisplay:String,listItemDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,showAddButton:Boolean,showFilters:Boolean,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean,dynamicPropName:{type:String,default:"item"}},setup(t,{expose:e}){const o=An(),r=Qe();a.provide("entityObject",o);const n=t,i=a.ref([]);return a.watch(()=>o.state.data,c=>{c&&(i.value=c.result)},{immediate:!0}),e({props:n,reload:()=>{console.log("reload data")},filter:()=>{console.log("filter data in unordered")}}),a.watch(()=>r.globalConfigs.appId,async c=>{if(c){const d=await o.getEntity(n.entityName);o.setEntity(d.success?d.response:{result:[]})}},{immediate:!0}),(c,d)=>{var u,f,h;return a.openBlock(),a.createElementBlock("div",a.normalizeProps(a.guardReactiveProps(c.$attrs)),[c.$slots["list-item-display-tile"]?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.renderSlot(c.$slots,"header",{},void 0,!0),t.showAddButton?(a.openBlock(),a.createBlock(to,{key:0})):a.createCommentVNode("",!0),t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||eo),{key:1})):a.createCommentVNode("",!0),a.createElementVNode("div",lk,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(((h=(f=(u=a.unref(o))==null?void 0:u.state)==null?void 0:f.data)==null?void 0:h.result)||[],(g,m)=>(a.openBlock(),a.createElementBlock("div",{key:m,class:"flex flex-col p-6 border border-gray-300 shadow-md rounded-lg bg-white w-full sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/5 2xl:w-1/8"},[a.renderSlot(c.$slots,"list-item-display-tile",a.normalizeProps({[t.dynamicPropName||""]:g}),void 0,!0)]))),128))]),a.renderSlot(c.$slots,"footer",{},void 0,!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.renderSlot(c.$slots,"header",{},void 0,!0),t.entityName?(a.openBlock(),a.createElementBlock("div",fk,[t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||eo),{key:0})):a.createCommentVNode("",!0),t.showAddButton?(a.openBlock(),a.createBlock(to,{key:1})):a.createCommentVNode("",!0),a.createElementVNode("div",hk,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(g,m)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listItemDisplay!=null&&t.listItemDisplay!=""?t.listItemDisplay:sk),a.mergeProps({key:m,ref_for:!0},{item:g,...n}),null,16))),128))]),t.showPagination?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||wr),{key:2})):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",ck,[a.createElementVNode("p",dk,[d[0]||(d[0]=a.createTextVNode(" Error: Missing required props - ")),t.entityName?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",uk,"Entity Name"))])])),a.renderSlot(c.$slots,"footer",{},void 0,!0)],64))],16)}}},[["__scopeId","data-v-037944bc"]]),gk={class:"p-6 bg-white shadow-md rounded-lg border border-gray-300 flex flex-col responsive-box"},mk={class:"flex justify-between items-start gap-4"},pk={class:"flex-grow"},bk={class:"flex flex-col gap-2"},yk={class:"font-bold text-gray-700"},kk={class:"text-gray-600"},xk={class:"flex flex-col gap-2"},vk=Te({__name:"EntityListingCarouselSingleRecord",props:{item:Object,entityName:String,showAddButton:Boolean,showFilters:Boolean,className:String,listDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,listItemDisplay:String,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean},setup(t){const e=t,o=a.inject("entityObject"),r=a.ref([]),n=a.ref(null),i=a.ref(null),s=a.ref(!1),l=a.ref(!1);a.onMounted(()=>{r.value=o.getEntityColumns(o.state.data),n.value=r.value.find(h=>h.name===e.displayField)||null,n.value&&(i.value=e.item[n.value.name])});const c=()=>{s.value=!0},d=()=>{l.value=!0},u=async h=>{h.remove?f():s.value=!1},f=async()=>{const h=o.getPrimaryKeyColumn(o.state.data),g=e.item[h.name],m=await o.entityRecordDelete(o.state.data,g);if(m!=null&&m.success){s.value=!1;const p=await o.searchRecord(o.state.data,{sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch});p!=null&&p.response&&o.setEntity(p.response)}};return(h,g)=>{const m=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",gk,[a.createElementVNode("div",mk,[a.createElementVNode("div",pk,[a.createElementVNode("div",bk,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(p,b)=>(a.openBlock(),a.createElementBlock("div",{key:b,class:"flex flex-col"},[a.createElementVNode("span",yk,a.toDisplayString(p.displayName||p.name)+":",1),a.createElementVNode("span",kk,a.toDisplayString(t.item[p.name]),1)]))),128))])]),a.createElementVNode("div",xk,[t.editable?(a.openBlock(),a.createBlock(m,{key:0,onClick:g[0]||(g[0]=p=>d()),icon:"pi pi-pencil",severity:"success",rounded:"","aria-label":"Edit"})):a.createCommentVNode("",!0),t.deletable?(a.openBlock(),a.createBlock(m,{key:1,onClick:g[1]||(g[1]=p=>c()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})):a.createCommentVNode("",!0)])])]),l.value?(a.openBlock(),a.createBlock(vr,{key:0,showEntityForm:l.value,"onUpdate:showEntityForm":g[2]||(g[2]=p=>l.value=p),item:t.item},null,8,["showEntityForm","item"])):a.createCommentVNode("",!0),s.value?(a.openBlock(),a.createBlock(Mn,{key:1,showDeleteDialog:s.value,"onUpdate:showDeleteDialog":g[3]||(g[3]=p=>s.value=p),onOnDeleteItem:u},null,8,["showDeleteDialog"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-27c0e644"]]);/**
|
|
161
|
+
`)},Np={},Tp={},Lt={name:"base",css:Dp,theme:Op,classes:Np,inlineStyles:Tp,load:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i},n=r(bt(e,{dt:ur}));return Ee(n)?vp(dr(n),aa({name:this.name},o)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadTheme:function(){var e=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.theme,o,function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ce.transformCSS(o.name||e.name,"".concat(n).concat(r))})},getCommonTheme:function(e){return Ce.getCommon(this.name,e)},getComponentTheme:function(e){return Ce.getComponent(this.name,e)},getDirectiveTheme:function(e){return Ce.getDirective(this.name,e)},getPresetTheme:function(e,o,r){return Ce.getCustomPreset(this.name,e,o,r)},getLayerOrderThemeCSS:function(){return Ce.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var r=bt(this.css,{dt:ur})||"",n=dr("".concat(r).concat(e)),i=Object.entries(o).reduce(function(a,l){var c=Yl(l,2),d=c[0],u=c[1];return a.push("".concat(d,'="').concat(u,'"'))&&a},[]).join(" ");return Ee(n)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(n,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ce.getCommonStyleSheet(this.name,e,o)},getThemeStyleSheet:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[Ce.getStyleSheet(this.name,e,o)];if(this.theme){var n=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=bt(this.theme,{dt:ur}),a=dr(Ce.transformCSS(n,i)),l=Object.entries(o).reduce(function(c,d){var u=Yl(d,2),f=u[0],h=u[1];return c.push("".concat(f,'="').concat(h,'"'))&&c},[]).join(" ");Ee(a)&&r.push('<style type="text/css" data-primevue-style-id="'.concat(n,'" ').concat(l,">").concat(a,"</style>"))}return r.join("")},extend:function(e){return aa(aa({},this),{},{css:void 0,theme:void 0},e)}},Gl=Lt.extend({name:"common"});function mr(t){"@babel/helpers - typeof";return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mr(t)}function Pp(t){return ec(t)||Ap(t)||Jl(t)||Ql()}function Ap(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function pr(t,e){return ec(t)||$p(t,e)||Jl(t,e)||Ql()}function Ql(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
162
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jl(t,e){if(t){if(typeof t=="string")return Zl(t,e);var o={}.toString.call(t).slice(8,-1);return o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set"?Array.from(t):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Zl(t,e):void 0}}function Zl(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,r=Array(e);o<e;o++)r[o]=t[o];return r}function $p(t,e){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var r,n,i,a,l=[],c=!0,d=!1;try{if(i=(o=o.call(t)).next,e===0){if(Object(o)!==o)return;c=!1}else for(;!(c=(r=i.call(o)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(u){d=!0,n=u}finally{try{if(!c&&o.return!=null&&(a=o.return(),Object(a)!==a))return}finally{if(d)throw n}}return l}}function ec(t){if(Array.isArray(t))return t}function tc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function ce(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?tc(Object(o),!0).forEach(function(r){br(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):tc(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function br(t,e,o){return(e=Mp(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Mp(t){var e=Fp(t,"string");return mr(e)=="symbol"?e:e+""}function Fp(t,e){if(mr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(mr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Vp={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var o=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return o._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,$attrSelector:void 0,beforeCreate:function(){var e,o,r,n,i,a,l,c,d,u,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,g=h?(o=this.pt)===null||o===void 0||(o=o.originalValue)===null||o===void 0?void 0:o[this.$.type.name]:void 0,m=h?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(n=m||g)===null||n===void 0||(n=n.hooks)===null||n===void 0||(i=n.onBeforeCreate)===null||i===void 0||i.call(n);var p=(a=this.$primevueConfig)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a._usept,b=p?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.originalValue:void 0,y=p?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=y||b)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(f=u.onBeforeCreate)===null||f===void 0||f.call(u),this.$attrSelector=mp("pc")},created:function(){this._hook("onCreated")},beforeMount:function(){this.rootEl=up(this.$el,'[data-pc-name="'.concat(Jt(this.$.type.name),'"]')),this.rootEl&&(this.$attrSelector&&!this.rootEl.hasAttribute(this.$attrSelector)&&this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=ce({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var o=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));o==null||o(),r==null||r()}},_mergeProps:function(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return Tl(e)?e.apply(void 0,r):s.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,o=function(){fr.isStyleNameLoaded("base")||(Lt.loadCSS(e.$styleOptions),e._loadGlobalStyles(),fr.setLoadedStyleName("base")),e._loadThemeStyles()};o(),this._themeChangeListener(o)},_loadCoreStyles:function(){var e,o;!fr.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(o=this.$style)!==null&&o!==void 0&&o.name&&(Gl.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),fr.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Ee(e)&&Lt.load(e,ce({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,o;if(!(this.isUnstyled||this.$theme==="none")){if(!Ce.isStyleNameLoaded("common")){var r,n,i=((r=this.$style)===null||r===void 0||(n=r.getCommonTheme)===null||n===void 0?void 0:n.call(r))||{},a=i.primitive,l=i.semantic,c=i.global,d=i.style;Lt.load(a==null?void 0:a.css,ce({name:"primitive-variables"},this.$styleOptions)),Lt.load(l==null?void 0:l.css,ce({name:"semantic-variables"},this.$styleOptions)),Lt.load(c==null?void 0:c.css,ce({name:"global-variables"},this.$styleOptions)),Lt.loadTheme(ce({name:"global-style"},this.$styleOptions),d),Ce.setLoadedStyleName("common")}if(!Ce.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(o=this.$style)!==null&&o!==void 0&&o.name){var u,f,h,g,m=((u=this.$style)===null||u===void 0||(f=u.getComponentTheme)===null||f===void 0?void 0:f.call(u))||{},p=m.css,b=m.style;(h=this.$style)===null||h===void 0||h.load(p,ce({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(g=this.$style)===null||g===void 0||g.loadTheme(ce({name:"".concat(this.$style.name,"-style")},this.$styleOptions),b),Ce.setLoadedStyleName(this.$style.name)}if(!Ce.isStyleNameLoaded("layer-order")){var y,x,C=(y=this.$style)===null||y===void 0||(x=y.getLayerOrderThemeCSS)===null||x===void 0?void 0:x.call(y);Lt.load(C,ce({name:"layer-order",first:!0},this.$styleOptions)),Ce.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var o,r,n,i=((o=this.$style)===null||o===void 0||(r=o.getPresetTheme)===null||r===void 0?void 0:r.call(o,e,"[".concat(this.$attrSelector,"]")))||{},a=i.css,l=(n=this.$style)===null||n===void 0?void 0:n.load(a,ce({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=l.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};fr.clearLoadedStyleNames(),Zt.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var o;return this[e]||((o=this._getHostInstance(this))===null||o===void 0?void 0:o[e])},_getOptionValue:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Pl(e,o,r)},_getPTValue:function(){var e,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=/./g.test(r)&&!!n[r.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=l.mergeSections,d=c===void 0?!0:c,u=l.mergeProps,f=u===void 0?!1:u,h=i?a?this._useGlobalPT(this._getPTClassValue,r,n):this._useDefaultPT(this._getPTClassValue,r,n):void 0,g=a?void 0:this._getPTSelf(o,this._getPTClassValue,r,ce(ce({},n),{},{global:h||{}})),m=this._getPTDatasets(r);return d||!d&&g?f?this._mergeProps(f,h,g,m):ce(ce(ce({},h),g),m):ce(ce({},g),m)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return s.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,o,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n="data-pc-",i=r==="root"&&Ee((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&ce(ce({},r==="root"&&ce(ce(br({},"".concat(n,"name"),Jt(i?(o=this.pt)===null||o===void 0?void 0:o["data-pc-section"]:this.$.type.name)),i&&br({},"".concat(n,"extend"),Jt(this.$.type.name))),Hl()&&br({},"".concat(this.$attrSelector),""))),{},br({},"".concat(n,"section"),Jt(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return Et(e)||ea(e)?{class:e}:e},_getPT:function(e){var o=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=function(l){var c,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=n?n(l):l,f=Jt(r),h=Jt(o.$name);return(c=d?f!==h?u==null?void 0:u[f]:void 0:u==null?void 0:u[f])!==null&&c!==void 0?c:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,o,r,n){var i=function(p){return o(p,r,n)};if(e!=null&&e.hasOwnProperty("_usept")){var a,l=e._usept||((a=this.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},c=l.mergeSections,d=c===void 0?!0:c,u=l.mergeProps,f=u===void 0?!1:u,h=i(e.originalValue),g=i(e.value);return h===void 0&&g===void 0?void 0:Et(g)?g:Et(h)?h:d||!d&&g?f?this._mergeProps(f,h,g):ce(ce({},h),g):g}return i(e)},_useGlobalPT:function(e,o,r){return this._usePT(this.globalPT,e,o,r)},_useDefaultPT:function(e,o,r){return this._usePT(this.defaultPT,e,o,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,ce(ce({},this.$params),o))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return s.mergeProps(this.$_attrsWithoutPT,this.ptm(e,o))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,o,ce({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,ce(ce({},this.$params),o))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(o){var n=this._getOptionValue(this.$style.inlineStyles,e,ce(ce({},this.$params),r)),i=this._getOptionValue(Gl.inlineStyles,e,ce(ce({},this.$params),r));return[i,n]}}},computed:{globalPT:function(){var e,o=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return bt(r,{instance:o})})},defaultPT:function(){var e,o=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return o._getOptionValue(r,o.$name,ce({},o.$params))||bt(r,ce({},o.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$inProps:function(){var e,o=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(r){var n=pr(r,1),i=n[0];return o==null?void 0:o.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return ce(ce({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var o=pr(e,1),r=o[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,o){var r=pr(o,2),n=r[0],i=r[1],a=n.split(":"),l=Pp(a),c=l.slice(1);return c==null||c.reduce(function(d,u,f,h){return!d[u]&&(d[u]=f===h.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var o=pr(e,1),r=o[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,o){var r=pr(o,2),n=r[0],i=r[1];return e[n]=i,e},{})}}},Lp={root:{position:"relative"}},Ip={root:"p-chart"},zp=Lt.extend({name:"chart",classes:Ip,inlineStyles:Lp}),jp={name:"BaseChart",extends:Vp,props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150},canvasProps:{type:null,default:null}},style:zp,provide:function(){return{$pcChart:this,$parentInstance:this}}},oc={name:"Chart",extends:jp,inheritAttrs:!1,emits:["select","loaded"],chart:null,watch:{data:{handler:function(){this.reinit()},deep:!0},type:function(){this.reinit()},options:function(){this.reinit()}},mounted:function(){this.initChart()},beforeUnmount:function(){this.chart&&(this.chart.destroy(),this.chart=null)},methods:{initChart:function(){var e=this;Promise.resolve().then(()=>$2).then(function(o){e.chart&&(e.chart.destroy(),e.chart=null),o&&o.default&&(e.chart=new o.default(e.$refs.canvas,{type:e.type,data:e.data,options:e.options,plugins:e.plugins})),e.$emit("loaded",e.chart)})},getCanvas:function(){return this.$canvas},getChart:function(){return this.chart},getBase64Image:function(){return this.chart.toBase64Image()},refresh:function(){this.chart&&this.chart.update()},reinit:function(){this.initChart()},onCanvasClick:function(e){if(this.chart){var o=this.chart.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),r=this.chart.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1);o&&o[0]&&r&&this.$emit("select",{originalEvent:e,element:o[0],dataset:r})}},generateLegend:function(){if(this.chart)return this.chart.generateLegend()}}};function yr(t){"@babel/helpers - typeof";return yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yr(t)}function rc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function nc(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?rc(Object(o),!0).forEach(function(r){Wp(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):rc(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function Wp(t,e,o){return(e=Hp(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Hp(t){var e=Up(t,"string");return yr(e)=="symbol"?e:e+""}function Up(t,e){if(yr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(yr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var qp=["width","height"];function Yp(t,e,o,r,n,i){return s.openBlock(),s.createElementBlock("div",s.mergeProps({class:t.cx("root"),style:t.sx("root")},t.ptmi("root")),[s.createElementVNode("canvas",s.mergeProps({ref:"canvas",width:t.width,height:t.height,onClick:e[0]||(e[0]=function(a){return i.onCanvasClick(a)})},nc(nc({},t.canvasProps),t.ptm("canvas"))),null,16,qp)],16)}oc.render=Yp;function Xp(){const t={primary:"#0efcf1",primaryBorder:"#388E3C",secondary:"#0ec6fc",secondaryBorder:"#FBC02D",tertiary:"#f1fc0e",tertiaryBorder:"#FFA000"},e=["linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInBounce","easeOutBounce","easeInOutBounce","easeInOutElastic"],o=s.ref("easeInOutElastic"),r=s.computed(()=>({responsive:!0,maintainAspectRatio:!0,plugins:{legend:{position:"top",labels:{font:{size:16}}},tooltip:{enabled:!0,titleFont:{size:14},bodyFont:{size:12}},zoom:{zoom:{wheel:{enabled:!0},drag:{enabled:!0},mode:"xy"},pan:{enabled:!0,mode:"xy"}}},scales:{x:{grid:{display:!1},ticks:{font:{size:14}}},y:{grid:{display:!0,color:"#e0e0e0"},ticks:{font:{size:14}}}},animation:{duration:2e3,easing:o.value,delay:500,loop:!1,animateRotate:!0,animateScale:!0},elements:{point:{radius:6,hoverRadius:10,backgroundColor:t.secondary},line:{tension:.4,borderWidth:2},bar:{borderWidth:2,borderRadius:4}}}));return{colorConfig:t,animationOptions:e,selectedAnimation:o,defaultChartOptions:r}}const Kp={components:{Chart:oc},props:{type:{type:String,required:!0},chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>({})}},setup(t){const{colorConfig:e,defaultChartOptions:o}=Xp(),r=s.computed(()=>{const i=t.chartData.datasets.map((a,l)=>{const c=Object.values(e);return{...a,backgroundColor:c[l%c.length],borderColor:c[l%c.length+1]}});return{...t.chartData,datasets:i}}),n=s.computed(()=>({...o.value,maintainAspectRatio:!0,...t.chartOptions}));return{computedChartData:r,computedChartOptions:n}}},Gp={class:"chart-container"},Qp={key:0},Jp={key:1};function Zp(t,e,o,r,n,i){const a=s.resolveComponent("Chart",!0);return s.openBlock(),s.createElementBlock("div",Gp,[o.chartData?(s.openBlock(),s.createElementBlock("div",Qp,[s.createVNode(a,{type:o.type,data:r.computedChartData,options:r.computedChartOptions},null,8,["type","data","options"])])):(s.openBlock(),s.createElementBlock("div",Jp,e[0]||(e[0]=[s.createElementVNode("p",null,"No data available for the chart.",-1)])))])}const kr=Fe(Kp,[["render",Zp],["__scopeId","data-v-8e3e786b"]]);function xr(){const t=s.ref(null),e=s.ref(!1),o=s.ref(null);return{chartData:t,fetchChartData:async({entityName:n,xaxis:i=null,yaxis:a=null})=>{e.value=!0,o.value=null;const l="https://mocki.io/v1/1ab17035-c115-4049-8ebf-a1e1b92d739a";try{const d=await(await fetch(l)).json();if(!d||!d.response||!d.response.result)throw new Error("Invalid data structure from API.");const u=d.response.result;if(!i&&!a){const f=Object.keys(u[0]);i=f[1],a=f.slice(4);const h=u.reduce((p,b)=>(a.forEach(y=>{p[y]||(p[y]=0),p[y]+=b[y]||0}),p),{}),g=Object.keys(h),m=Object.values(h);t.value={labels:g,datasets:[{label:"Default Data",data:m,borderWidth:1}]}}else{const f=u.map(m=>m[i]),g=(Array.isArray(a)?a:[a]).map(m=>({label:m,data:u.map(p=>p[m]||0),borderWidth:1}));t.value={labels:f,datasets:g}}}catch(c){o.value=c.message,t.value=null}finally{e.value=!1}},loading:e,error:o}}const e0={components:{chart:kr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Bar Chart"},yaxis:{type:String,required:!0},xaxis:{type:String,required:!0}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=xr(),i=s.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.dataset.label}: ${l.raw}`}}}}}),a=async()=>{if(!t.yaxis||!t.xaxis){console.error("xaxis or yaxis is not defined."),n.value="x-axis or y-axis is not properly configured.";return}await o({entityName:t.entityName,yaxis:t.yaxis,xaxis:t.xaxis})};return s.onMounted(()=>{console.log("Fetching data for yAxis:",t.yaxis),console.log("Fetching data for xAxis:",t.xaxis),a()}),{chartData:e,chartOptions:i,loading:r,error:n}}},t0={key:0,class:"chart-container"},o0={key:1},r0={key:0},n0={key:1},i0={key:2};function a0(t,e,o,r,n,i){const a=s.resolveComponent("chart");return s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",null,[s.createElementVNode("h2",null,"Entity name: "+s.toDisplayString(o.entityName),1)]),r.chartData?(s.openBlock(),s.createElementBlock("div",t0,[s.createElementVNode("h3",null,s.toDisplayString(o.title)+" , x-axis : "+s.toDisplayString(o.xaxis)+" , y-axis : "+s.toDisplayString(o.yaxis),1),s.createVNode(a,{type:"bar",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(s.openBlock(),s.createElementBlock("div",o0,[r.loading?(s.openBlock(),s.createElementBlock("p",r0,"Loading chart data...")):r.error?(s.openBlock(),s.createElementBlock("p",n0,s.toDisplayString(r.error),1)):(s.openBlock(),s.createElementBlock("p",i0,"No data available for the chart."))]))])}const ic=Fe(e0,[["render",a0],["__scopeId","data-v-021825b3"]]),s0={components:{chart:kr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Bar Chart"},yaxis:{type:String,required:!0},xaxis:{type:String,required:!0}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=xr(),i=s.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.dataset.label}: ${l.raw}`}}}}}),a=async()=>{if(!t.yaxis||!t.xaxis){console.error("xaxis or yaxis is not defined."),n.value="x-axis or y-axis is not properly configured.";return}await o({entityName:t.entityName,yaxis:t.yaxis,xaxis:t.xaxis})};return s.onMounted(()=>{console.log("Fetching data for yAxis:",t.yaxis),console.log("Fetching data for xAxis:",t.xaxis),a()}),{chartData:e,chartOptions:i,loading:r,error:n}}},l0={key:0,class:"chart-container"},c0={key:1},d0={key:0},u0={key:1},f0={key:2};function h0(t,e,o,r,n,i){const a=s.resolveComponent("chart");return s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",null,[s.createElementVNode("h2",null,"Entity name: "+s.toDisplayString(o.entityName),1)]),r.chartData?(s.openBlock(),s.createElementBlock("div",l0,[s.createElementVNode("h3",null,s.toDisplayString(o.title)+" , x-axis : "+s.toDisplayString(o.xaxis)+" , y-axis : "+s.toDisplayString(o.yaxis),1),s.createVNode(a,{type:"line",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(s.openBlock(),s.createElementBlock("div",c0,[r.loading?(s.openBlock(),s.createElementBlock("p",d0,"Loading chart data...")):r.error?(s.openBlock(),s.createElementBlock("p",u0,s.toDisplayString(r.error),1)):(s.openBlock(),s.createElementBlock("p",f0,"No data available for the chart."))]))])}const ac=Fe(s0,[["render",h0],["__scopeId","data-v-cc915538"]]),g0={components:{chart:kr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Pie Chart"},yaxis:{type:String,default:null},xaxis:{type:String,default:null}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=xr(),i=s.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.label}: ${l.raw}`}}}}}),a=async()=>{await o({entityName:t.entityName,xaxis:t.xaxis,yaxis:t.yaxis})};return s.onMounted(()=>{a()}),{chartData:e,chartOptions:i,loading:r,error:n}}},m0={key:0,class:"chart-container"},p0={key:1},b0={key:0},y0={key:1},k0={key:2};function x0(t,e,o,r,n,i){const a=s.resolveComponent("chart");return s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",null,[s.createElementVNode("h2",null,"Entity name: "+s.toDisplayString(o.entityName),1)]),r.chartData?(s.openBlock(),s.createElementBlock("div",m0,[s.createElementVNode("h3",null,s.toDisplayString(o.title),1),s.createVNode(a,{type:"pie",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(s.openBlock(),s.createElementBlock("div",p0,[r.loading?(s.openBlock(),s.createElementBlock("p",b0,"Loading chart data...")):r.error?(s.openBlock(),s.createElementBlock("p",y0,s.toDisplayString(r.error),1)):(s.openBlock(),s.createElementBlock("p",k0,"No data available for the chart."))]))])}const sc=Fe(g0,[["render",x0],["__scopeId","data-v-eec06405"]]),v0={components:{chart:kr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Pie Chart"},yaxis:{type:String,default:null},xaxis:{type:String,default:null}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=xr(),i=s.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.label}: ${l.raw}`}}}}}),a=async()=>{await o({entityName:t.entityName,xaxis:t.xaxis,yaxis:t.yaxis})};return s.onMounted(()=>{a()}),{chartData:e,chartOptions:i,loading:r,error:n}}},w0={key:0,class:"chart-container"},C0={key:1},_0={key:0},S0={key:1},B0={key:2};function E0(t,e,o,r,n,i){const a=s.resolveComponent("chart");return s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",null,[s.createElementVNode("h2",null,"Entity name: "+s.toDisplayString(o.entityName),1)]),r.chartData?(s.openBlock(),s.createElementBlock("div",w0,[s.createElementVNode("h3",null,s.toDisplayString(o.title),1),s.createVNode(a,{type:"polarArea",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(s.openBlock(),s.createElementBlock("div",C0,[r.loading?(s.openBlock(),s.createElementBlock("p",_0,"Loading chart data...")):r.error?(s.openBlock(),s.createElementBlock("p",S0,s.toDisplayString(r.error),1)):(s.openBlock(),s.createElementBlock("p",B0,"No data available for the chart."))]))])}const lc=Fe(v0,[["render",E0],["__scopeId","data-v-c4082893"]]),R0={components:{chart:kr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Bar Chart"},yaxis:{type:String,required:!0},xaxis:{type:String,required:!0}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=xr(),i=s.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.dataset.label}: ${l.raw}`}}}}}),a=async()=>{if(!t.yaxis||!t.xaxis){console.error("xaxis or yaxis is not defined."),n.value="x-axis or y-axis is not properly configured.";return}await o({entityName:t.entityName,yaxis:t.yaxis,xaxis:t.xaxis})};return s.onMounted(()=>{console.log("Fetching data for yAxis:",t.yaxis),console.log("Fetching data for xAxis:",t.xaxis),a()}),{chartData:e,chartOptions:i,loading:r,error:n}}},O0={key:0,class:"chart-container"},D0={key:1},N0={key:0},T0={key:1},P0={key:2};function A0(t,e,o,r,n,i){const a=s.resolveComponent("chart");return s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",null,[s.createElementVNode("h2",null,"Entity name: "+s.toDisplayString(o.entityName),1)]),r.chartData?(s.openBlock(),s.createElementBlock("div",O0,[s.createElementVNode("h3",null,s.toDisplayString(o.title)+" , x-axis : "+s.toDisplayString(o.xaxis)+" , y-axis : "+s.toDisplayString(o.yaxis),1),s.createVNode(a,{type:"radar",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(s.openBlock(),s.createElementBlock("div",D0,[r.loading?(s.openBlock(),s.createElementBlock("p",N0,"Loading chart data...")):r.error?(s.openBlock(),s.createElementBlock("p",T0,s.toDisplayString(r.error),1)):(s.openBlock(),s.createElementBlock("p",P0,"No data available for the chart."))]))])}const cc=Fe(R0,[["render",A0],["__scopeId","data-v-54dad7d5"]]),$0={class:"flex flex-col p-3"},M0={class:"flex justify-center flex-row mb-2 cursor-pointer"},F0={style:{"word-break":"break-all"}},V0={__name:"LinkEntityContent",props:{linkEntityListItem:{type:Object,required:!0}},setup(t){nt.useRoute();const e=Ue(),o=s.ref("");e.getAppId()!=null&&e.getAppId()!=""&&(o.value=e.getAppId());const r=s.ref(),n=s.ref(!1),i=s.ref(!1),a=s.ref({}),l=s.ref([{label:"Remove association",icon:"",command:f=>{c()}}]),c=()=>{console.log(a.value),console.log("Function is calling")},d=(f,h)=>{a.value=h,r.value.show(f),i.value=!0},u=()=>{a.value={},i.value=!1};return(f,h)=>{const g=s.resolveComponent("Button"),m=s.resolveComponent("ContextMenu"),p=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",{onMouseenter:h[4]||(h[4]=s.withModifiers(b=>n.value=!0,["prevent"])),onMouseleave:h[5]||(h[5]=s.withModifiers(b=>n.value=!1,["prevent"])),class:"flex relative m-3",style:{border:"1px solid var(--surface-border)","border-radius":"5px"}},[s.withDirectives(s.createVNode(g,{onClick:h[0]||(h[0]=b=>d(b,t.linkEntityListItem)),class:"!absolute right-0",size:"small",style:{width:"55px",height:"25px","border-radius":"5px","font-size":"12px"}},{default:s.withCtx(()=>h[6]||(h[6]=[s.createTextVNode(" More")])),_:1},512),[[s.vShow,n.value||i.value]]),s.createVNode(m,{ref_key:"menu",ref:r,model:l.value,onMouseenter:h[1]||(h[1]=s.withModifiers(b=>n.value=!0,["prevent"])),onMouseleave:h[2]||(h[2]=s.withModifiers(b=>n.value=!1,["prevent"])),onHide:h[3]||(h[3]=b=>u())},null,8,["model"]),s.createElementVNode("div",$0,[s.createElementVNode("div",M0,[s.createElementVNode("div",F0,s.toDisplayString(t.linkEntityListItem.entityName),1),s.createVNode(p,{to:{name:"entity360view",params:{entityName:t.linkEntityListItem.entityName,id:t.linkEntityListItem.id,appId:o.value}},target:"_blank"},{default:s.withCtx(()=>h[7]||(h[7]=[s.createElementVNode("div",{class:"pi pi-external-link ml-3"},null,-1)])),_:1},8,["to"])]),s.createElementVNode("div",null,"Id: "+s.toDisplayString(t.linkEntityListItem.id),1)])],32)}}},L0={class:"flex flex-col mt-3"},I0={class:"flex flex-row items-center"},z0={class:"flex items-center justify-center mt-5"},j0={key:0,class:"pi pi-caret-right"},W0={key:1,class:"pi pi-caret-down"},H0={key:0},U0={class:"flex flex-col mt-5"},q0={class:"col-12"},Y0={class:"flex flex-col mt-5"},X0={class:"col-12 font-bold"},K0={key:0},G0={class:"flex flex-col mt-5"},Q0={class:"col-12"},J0={class:"flex flex-col mt-5"},Z0={class:"col-12"},eb={class:"flex flex-col mt-5"},tb={class:"col-12"},ob={class:"flex flex-row justify-between items-center mt-5"},rb={key:1,class:"mt-2"},nb={class:"flex flex-row justify-between items-center"},ib={key:1,class:"text-red-500"},ab={class:"flex flex-col mt-5"},sb={class:"flex flex-row justify-between items-center mt-2"},lb={class:"flex flex-row items-center mt-5 mb-5"},cb={class:"font-bold"},db={class:"font-bold ml-2 flex-1"},ub={class:"flex flex-row justify-center items-center mb-2"},fb={class:"ml-2 flex-1"},hb={key:0,class:"pi pi-exclamation-circle"},gb={class:"flex flex-col justify-center"},mb={class:"flex flex-row justify-between items-center"},pb={class:"justify-start"},bb={class:"justify-start"},yb=Fe({__name:"EntityLookup",props:s.mergeModels({linkedEntity:{type:Object,required:!0},entity360Name:{type:String,required:!0},entity360Id:{required:!0},saveExistingRelatedEntityRecord:{type:Function,required:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){nt.useRoute();const e=t,o=s.useModel(t,"modelValue"),r=new mt,n=s.ref({}),i=s.ref([]),a=s.ref({}),l=s.ref([]),c=s.ref([]),d=s.ref({}),u=s.ref("id"),f=s.ref(1),h=s.ref([]),g=s.ref(25),m=s.ref(0),p=s.ref(0),b=s.ref(0);let y=s.ref([]);const x=s.ref(!1),C={gt:"GREATER_THAN",dateAfter:"GREATER_THAN",equals:"EQUAL",dateIs:"EQUAL",notEquals:"NOT_EQUAL",dateIsNot:"NOT_EQUAL",lt:"LESS_THAN",dateBefore:"LESS_THAN",lte:"LESS_THAN_EQUAL",gte:"GREATER_THAN_EQUAL",between:"BETWEEN",contains:"CONTAINS",startsWith:"STARTS_WITH",notContains:"NOT_CONTAINS",endsWith:"ENDS_WITH"},B={gt:"is greater than",dateAfter:"is after",equals:"is equals",dateIs:"is equals",notEquals:"is not equals",dateIsNot:"is not equals",lt:"is less than",dateBefore:"is before",lte:"is less than or equal to",gte:"is greater than or equal to",between:"between",contains:"contains",startsWith:"starts with",notContains:"not contains",endsWith:"ends with"};s.onMounted(()=>{_()});const w=q=>e.linkedEntity.list.some(I=>I[d.value.name]===q),_=async()=>{try{const q={sortBy:[u.value],sortDirection:f.value===1?"ASC":"DESC",pageSize:g.value,currentPage:m.value,columnList:null,filter:y.value,fullTextSearch:""},I=await r.searchEntityRecords(e.linkedEntity.entityName,q);I&&I.response&&(n.value=I.response,l.value=I.response.entity.entityDefinition.columns,c.value=De(I.response.entity.entityDefinition.columns),p.value=I.response.totalRecords,await v(),await k(),S())}catch{}finally{}},v=async()=>{for(let q=0;q<l.value.length;q++){const I=l.value[q];!I.autoGeneerated&&I.foreignKey&&I.foreignKey.referencedEntityName.toLowerCase()==e.entity360Name.toLowerCase()&&(a.value=I)}},k=async()=>{for(let q=0;q<l.value.length;q++){const I=l.value[q];if(I.primaryKey&&I.primaryKey==!0){d.value=I;break}}},S=()=>{for(let q=0;q<e.linkedEntity.list.length;q++){const I=e.linkedEntity.list[q];I.is_deleted==!1&&I[a.value.name]==e.entity360Id&&i.value.push(I[d.value.name])}},N=()=>{let q=JSON.parse(JSON.stringify(i.value));q=q.filter(he=>!w(he));let I={linkEntityName:n.value.entityName,linkRecordIdList:[]};for(let he=0;he<q.length;he++){const me=q[he];I.linkRecordIdList.push(me)}e.saveExistingRelatedEntityRecord(I)},E=()=>{x.value=!x.value},D=[{label:"Starts with",value:"startsWith"},{label:"Contains",value:"contains"},{label:"Not contains",value:"notContains"},{label:"Ends with",value:"endsWith"},{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"}],M=[{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"},{label:"Less than",value:"lt"},{label:"Less than or equal to",value:"lte"},{label:"Greater than",value:"gt"},{label:"Greater than or equal to",value:"gte"}],T=[{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"}],F=[{label:"Date is",value:"dateIs"},{label:"Date is not",value:"dateIsNot"},{label:"Date is before",value:"dateBefore"},{label:"Date is after",value:"dateAfter"}],A=[{label:"ASC",value:1},{label:"DESC",value:-1}];let W=[];const z=s.computed(()=>c.value.filter(q=>q.sortable)),$=s.computed(()=>c.value.filter(q=>q.filterable)),j=q=>c.value.filter(I=>{var he;return I.filterable?((he=h.value[q])==null?void 0:he.columnName)===I.name?!0:!h.value.some((me,ge)=>ge!==q&&me.columnName===I.name):!1}).map(I=>({label:I.name,value:I.field})),J=q=>{let I="";switch(Ke(q.columnName).toLowerCase()){case"string":case"uuid":I="startsWith";break;case"date":I="dateIs";break;case"numeric":case"int":case"integer":I="equals";break;case"bool":case"boolean":I="equals";break}q.operator=I,q.value=""},oe=q=>{const I=Ke(q.columnName);switch(I&&I.toLowerCase()){case"integer":case"int":case"numeric":W=M;break;case"date":W=F;break;case"bool":case"boolean":W=T;break;default:W=D}return W},ne=q=>{if(q&&q.columnName){const I=Ke(q.columnName);return wt(I)}else return""},X=()=>{for(let q=0;q<h.value.length;q++){const I=h.value[q];I.editing=!1}h.value.push({columnName:"",value:"",operator:"",editing:!0})},Q=q=>{h.value.splice(q,1)},ie=q=>{q.editing=!q.editing},ue=()=>{let q=JSON.parse(JSON.stringify(h.value));y.value=[];for(let I=0;I<q.length;I++){const he=q[I];delete he.editing,he.columnName&&he.operator&&he.value&&(he.columnType=Ke(he.columnName),he.operator=C[he.operator],y.value.push(he))}_()},De=q=>q.map(I=>({field:I.name,name:I.displayName?I.displayName:I.name,filterable:I.filterable,datatype:I.type,sortable:!0,displayFormatKey:I.displayFormatKey,displayFormat:I.displayFormat})),lt=()=>{_()},Ke=q=>{const I=c.value.find(he=>he.field===q);return I?I.datatype:null},wt=q=>{switch(q.toLowerCase()){case"integer":case"int":case"numeric":return"numeric";case"date":return"date";case"bool":case"boolean":return"boolean";default:return"text"}},ft=q=>{g.value=q.rows,m.value=q.page,b.value=q.first,_()};return(q,I)=>{var mo,$o;const he=s.resolveComponent("InputIcon"),me=s.resolveComponent("InputText"),ge=s.resolveComponent("IconField"),pe=s.resolveComponent("Select"),Te=s.resolveComponent("Divider"),ot=s.resolveComponent("InputNumber"),Pt=s.resolveComponent("DatePicker"),ze=s.resolveComponent("Button"),rt=s.resolveComponent("Checkbox"),ht=s.resolveComponent("Paginator"),go=s.resolveDirective("tooltip");return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",L0,[s.createElementVNode("div",I0,[s.createVNode(ge,{class:"block mt-2 md:mt-0 w-full"},{default:s.withCtx(()=>[s.createVNode(he,{onClick:I[0]||(I[0]=()=>{}),class:"pi pi-search"}),s.createVNode(me,{class:"w-full",onKeyup:I[1]||(I[1]=s.withKeys(()=>{},["enter"])),placeholder:`Search ${n.value.entityName}`},null,8,["placeholder"])]),_:1})]),s.createElementVNode("div",z0,[s.createElementVNode("div",{class:"flex items-center cursor-pointer sorting-filter-section flex-1 line-height-4",onClick:I[2]||(I[2]=ee=>E())},[x.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",j0)),x.value?(s.openBlock(),s.createElementBlock("div",W0)):s.createCommentVNode("",!0),I[9]||(I[9]=s.createElementVNode("div",{class:"ml-3 font-bold"}," Sorting & Filters ",-1))])]),x.value?(s.openBlock(),s.createElementBlock("div",H0,[s.createElementVNode("div",U0,[I[10]||(I[10]=s.createElementVNode("div",{class:"col-12 font-bold"},"Sort Column",-1)),s.createElementVNode("div",q0,[s.createVNode(pe,{modelValue:u.value,"onUpdate:modelValue":I[3]||(I[3]=ee=>u.value=ee),options:z.value,optionLabel:"name",optionValue:"field",highlightOnSelect:!1,class:"w-full",onChange:I[4]||(I[4]=ee=>lt(q.event))},null,8,["modelValue","options"])])]),s.createElementVNode("div",Y0,[I[11]||(I[11]=s.createElementVNode("div",{class:"col-12 font-bold"},[s.createElementVNode("div",{class:"col-12 font-bold"},"Sort Direction")],-1)),s.createElementVNode("div",X0,[s.createVNode(pe,{modelValue:f.value,"onUpdate:modelValue":I[5]||(I[5]=ee=>f.value=ee),options:A,optionLabel:"label",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:I[6]||(I[6]=ee=>lt(q.event))},null,8,["modelValue"])])]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.value,(ee,Ct)=>(s.openBlock(),s.createElementBlock("div",{key:Ct},[ee.editing?(s.openBlock(),s.createElementBlock("div",K0,[s.createVNode(Te,{class:"mt-5"}),s.createElementVNode("div",G0,[I[12]||(I[12]=s.createElementVNode("div",{class:"col-12 font-bold"},"Filter Column",-1)),s.createElementVNode("div",Q0,[s.createVNode(pe,{modelValue:ee.columnName,"onUpdate:modelValue":Ae=>ee.columnName=Ae,options:j(Ct),optionLabel:"label",placeholder:"Select column",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:Ae=>J(ee)},null,8,["modelValue","onUpdate:modelValue","options","onChange"])])]),s.createElementVNode("div",J0,[I[13]||(I[13]=s.createElementVNode("div",{class:"col-12 font-bold"},"Filter Operator",-1)),s.createElementVNode("div",Z0,[s.createVNode(pe,{modelValue:ee.operator,"onUpdate:modelValue":Ae=>ee.operator=Ae,options:oe(ee),optionLabel:"label",placeholder:"Select operator",optionValue:"value",highlightOnSelect:!1,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","options"])])]),s.createElementVNode("div",eb,[I[14]||(I[14]=s.createElementVNode("div",{class:"col-12 font-bold"},"Filter value",-1)),s.createElementVNode("div",tb,[ne(ee)=="numeric"?(s.openBlock(),s.createBlock(ot,{key:0,format:!1,class:"w-full",modelValue:ee.value,"onUpdate:modelValue":Ae=>ee.value=Ae,placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"])):ne(ee)=="date"?(s.openBlock(),s.createBlock(Pt,{key:1,class:"w-full",modelValue:ee.value,"onUpdate:modelValue":Ae=>ee.value=Ae,dateFormat:"mm/dd/yy",placeholder:"mm/dd/yyyy"},null,8,["modelValue","onUpdate:modelValue"])):(s.openBlock(),s.createBlock(me,{key:2,modelValue:ee.value,"onUpdate:modelValue":Ae=>ee.value=Ae,class:"w-full",placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"]))])]),s.createElementVNode("div",ob,[s.createVNode(ze,{style:{width:"100px"},label:"Hide",icon:"",severity:"warning",onClick:Ae=>ie(ee)},null,8,["onClick"]),s.createVNode(ze,{style:{width:"100px"},label:"Delete",icon:"",severity:"danger",onClick:Ae=>Q(Ct)},null,8,["onClick"])])])):s.createCommentVNode("",!0),ee.editing?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",rb,[s.createVNode(Te),s.createElementVNode("div",nb,[s.createElementVNode("span",null,[ee.columnName||ee.operator||ee.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("span",{class:s.normalizeClass({"text-red-500":!ee.columnName})},s.toDisplayString(ee.columnName?" "+ee.columnName:" column"),3),s.createElementVNode("span",{class:s.normalizeClass({"text-red-500":!B[ee.operator]})},s.toDisplayString(ee.operator?" "+B[ee.operator]:" operator"),3),s.createElementVNode("span",{class:s.normalizeClass({"text-red-500":!ee.value})},s.toDisplayString(ee.value?" "+ee.value:" value"),3)],64)):(s.openBlock(),s.createElementBlock("span",ib,"Filter is empty"))]),s.createVNode(ze,{style:{width:"100px"},label:"Edit",icon:"",severity:"info",onClick:Ae=>ie(ee)},null,8,["onClick"])])]))]))),128)),s.createElementVNode("div",ab,[s.createVNode(Te),s.createElementVNode("div",sb,[s.createVNode(ze,{style:{width:"100px"},label:"Add",disabled:$.value.length===h.value.length,icon:"",severity:"success",onClick:X},null,8,["disabled"]),s.createVNode(ze,{style:{width:"100px"},label:"Apply",severity:"info",onClick:ue})])])])):s.createCommentVNode("",!0),s.createElementVNode("div",lb,[s.createElementVNode("div",cb,s.toDisplayString((mo=n.value)==null?void 0:mo.totalRecords),1),s.createElementVNode("div",db,s.toDisplayString(($o=n.value)==null?void 0:$o.entityName),1)]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value.result,(ee,Ct)=>(s.openBlock(),s.createElementBlock("div",{key:Ct},[s.createElementVNode("div",ub,[s.createVNode(rt,{disabled:w(ee[d.value.name]),modelValue:i.value,"onUpdate:modelValue":I[7]||(I[7]=Ae=>i.value=Ae),value:ee[d.value.name]},null,8,["disabled","modelValue","value"]),s.createElementVNode("div",fb,[s.createTextVNode(s.toDisplayString(t.linkedEntity.entityName)+" ",1),s.createElementVNode("span",null,s.toDisplayString(ee[d.value.name]),1)]),w(ee[d.value.name])?s.withDirectives((s.openBlock(),s.createElementBlock("div",hb,null,512)),[[go,"This record is already associated.",void 0,{left:!0}]]):s.createCommentVNode("",!0)])]))),128)),s.createVNode(ht,{rows:g.value,totalRecords:p.value,rowsPerPageOptions:[10,25,50,100],onPage:ft,template:"FirstPageLink PageLinks LastPageLink CurrentPageReport RowsPerPageDropdown",currentPageReportTemplate:""},null,8,["rows","totalRecords"])]),s.createElementVNode("div",gb,[s.createVNode(Te,{class:"mt-5"}),s.createElementVNode("div",mb,[s.createElementVNode("div",pb,[s.createVNode(ze,{label:"Cancel",icon:"",severity:"secondary",onClick:I[8]||(I[8]=ee=>o.value=!1)})]),s.createElementVNode("div",bb,[s.createVNode(ze,{label:"Save",severity:"success",onClick:N})])])])],64)}}},[["__scopeId","data-v-a358808d"]]),kb={class:"field flex flex-col"},xb={key:0,class:"flex items-center"},vb={key:1},wb={class:"flex items-center"},Cb={class:"flex flex-col justify-center"},_b={class:"flex flex-row justify-between items-center"},Sb={class:"justify-start"},Bb={class:"justify-start"},Eb={__name:"EntityLookupObject",props:s.mergeModels({linkedEntity:{type:Object,required:!0},entity360Name:{type:String,required:!0},entity360Id:{type:[String,Number]},saveExistingEntityObject:{type:Function}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){nt.useRoute();const{getEntityRecords:e,searchEntityRecords:o,saveRelatedEntityRecord:r,getRecord:n,addRecord:i,updateRecord:a,deleteRecord:l}=mt(),c=t,d=s.useModel(t,"modelValue");new EntityRecordService;const u=s.ref({}),f=s.ref({});let h=s.ref("");const g=s.ref({}),m=s.ref({});s.onMounted(async()=>{console.log("linkedEntity"),console.log(c.linkedEntity),console.log("entity360Name"),console.log(c.entity360Name),console.log("entity360Id"),console.log(c.entity360Id),await b(),await p()});const p=async()=>{try{const w=await e(c.linkedEntity.entityName);w&&w.response&&(u.value=w.response,await y(w.response.entity.entityDefinition.columns),await C(),console.log(u.value))}catch{}finally{}},b=async()=>{try{const w=await n(c.entity360Name,c.entity360Id);w&&w.response&&(f.value=w.response,await x(w.response.entity.entityDefinition.columns),console.log(f.value))}catch{}finally{}},y=async w=>{for(let _=0;_<w.length;_++){const v=w[_];if(v.primaryKey&&v.primaryKey==!0){g.value=v;break}}},x=async w=>{for(let _=0;_<w.length;_++){const v=w[_];if(!v.autoGeneerated&&v.foreignKey&&v.foreignKey.referencedEntityName.toLowerCase()==c.linkedEntity.entityName.toLowerCase()){m.value=v;break}}},C=async()=>{for(let w=0;w<u.value.result.length;w++){const _=u.value.result[w];if(_[g.value.name]==f.value.result[0][m.value.name]){h.value=_;break}}},B=()=>{const w={linkedEntityRecordId:h.value[g.value.name],linkedEntityName:c.linkedEntity.entityName,relationType:"ManyToOne"};c.saveExistingEntityObject(w)};return(w,_)=>{const v=s.resolveComponent("Select"),k=s.resolveComponent("Divider"),S=s.resolveComponent("Button");return s.openBlock(),s.createElementBlock("div",kb,[s.createVNode(v,{modelValue:s.unref(h),"onUpdate:modelValue":_[0]||(_[0]=N=>s.isRef(h)?h.value=N:h=N),"item-value":g.value.name,options:u.value.result,filter:"",optionLabel:g.value.name,placeholder:"Select "+g.value.name,class:"w-full"},{value:s.withCtx(N=>[N.value?(s.openBlock(),s.createElementBlock("div",xb,[s.createElementVNode("div",null,s.toDisplayString(N.value[g.value.name]),1)])):(s.openBlock(),s.createElementBlock("span",vb,s.toDisplayString(N.placeholder),1))]),option:s.withCtx(N=>[s.createElementVNode("div",wb,[s.createElementVNode("div",null,s.toDisplayString(N.option[g.value.name]),1)])]),_:1},8,["modelValue","item-value","options","optionLabel","placeholder"]),s.createElementVNode("div",Cb,[s.createVNode(k),s.createElementVNode("div",_b,[s.createElementVNode("div",Sb,[s.createVNode(S,{label:"Cancel",icon:"",severity:"secondary",onClick:_[1]||(_[1]=N=>d.value=!1)})]),s.createElementVNode("div",Bb,[s.createVNode(S,{label:"Save",severity:"success",onClick:B})])])])])}}},Rb={style:{"font-weight":"700","font-size":"1.25rem"}},Ob={class:"flex flex-col"},Db={class:"flex flex-row justify-between items-center"},Nb={class:"justify-start"},Tb={class:"justify-start"},Pb="",Ab={__name:"CreateRelatedentity",props:s.mergeModels({entity360Id:{required:!0},entity360Name:{type:String,required:!0},linkedEntity:{type:Object,required:!0}},{showCreateRelatedEntityForm:{},showCreateRelatedEntityFormModifiers:{}}),emits:s.mergeModels(["onSaveDialog"],["update:showCreateRelatedEntityForm"]),setup(t,{emit:e}){const o=s.useModel(t,"showCreateRelatedEntityForm");nt.useRoute();const r=t,n=r.linkedEntity.entityName,i=e,a=s.ref("Add existing");s.onMounted(()=>{g()});const{formData:l,columns:c,errors:d,backendErrors:u,clearErrors:f,saveRecord:h,fetchAllRecords:g,saveRelatedEntityRecord:m}=Ji(n,Pb,i),p=()=>{for(let C=0;C<c.value.length;C++){const B=c.value[C];!B.autoGenerated&&B.foreignKey&&(l.value[B.name]=r.entity360Id)}const x={relationType:r.linkedEntity.relationType,linkedEntities:{entityLinkage:[{linkEntityName:r.entity360Name,linkRecordIdList:[r.entity360Id]}]}};h(x)},b=x=>{var C;if(((C=x==null?void 0:x.linkRecordIdList)==null?void 0:C.length)>0){const B={entityLinkage:[{linkEntityName:x.linkEntityName,linkRecordIdList:x.linkRecordIdList}]};m(r.entity360Name,r.entity360Id,B)}},y=x=>{const C={entityLinkage:[{linkEntityName:r.entity360Name,linkRecordIdList:[r.entity360Id]}]};m(x.linkedEntityName,x.linkedEntityRecordId,C)};return(x,C)=>{const B=s.resolveComponent("Tab"),w=s.resolveComponent("TabList"),_=s.resolveComponent("Divider"),v=s.resolveComponent("Button"),k=s.resolveComponent("TabPanel"),S=s.resolveComponent("TabPanels"),N=s.resolveComponent("Tabs"),E=s.resolveComponent("Drawer");return s.openBlock(),s.createBlock(E,{visible:o.value,"onUpdate:visible":C[3]||(C[3]=D=>o.value=D),blockScroll:!0,position:"right",class:"p-fluid layout-profile-sidebar",style:{width:"40%"},pt:{closeButton:"ml-auto"}},{header:s.withCtx(()=>[s.createElementVNode("span",Rb,s.toDisplayString(a.value)+" "+s.toDisplayString(t.linkedEntity.entityName),1)]),default:s.withCtx(()=>[s.createVNode(N,{value:"1"},{default:s.withCtx(()=>[s.createVNode(w,null,{default:s.withCtx(()=>[s.createVNode(B,{value:"0"},{default:s.withCtx(()=>C[4]||(C[4]=[s.createTextVNode("Create new")])),_:1}),s.createVNode(B,{value:"1"},{default:s.withCtx(()=>C[5]||(C[5]=[s.createTextVNode("Add existing")])),_:1})]),_:1}),s.createVNode(S,null,{default:s.withCtx(()=>[s.createVNode(k,{value:"0"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(c),(D,M)=>{var T;return s.openBlock(),s.createElementBlock("div",{key:M,class:"mt-3"},[!D.autoGenerated&&!D.foreignKey?(s.openBlock(),s.createBlock(vn,{key:0,modelValue:s.unref(l)[D.name],"onUpdate:modelValue":F=>s.unref(l)[D.name]=F,column:D,errors:(T=s.unref(d)[D.name])==null?void 0:T.messages,onInput:s.unref(f)},null,8,["modelValue","onUpdate:modelValue","column","errors","onInput"])):s.createCommentVNode("",!0)])}),128)),s.createElementVNode("div",Ob,[s.createVNode(_),s.createElementVNode("div",Db,[s.createElementVNode("div",Nb,[s.createVNode(v,{label:"Cancel",icon:"",severity:"secondary",onClick:C[0]||(C[0]=D=>o.value=!1)})]),s.createElementVNode("div",Tb,[s.createVNode(v,{label:"Save",severity:"success",onClick:p})])])])]),_:1}),s.createVNode(k,{value:"1"},{default:s.withCtx(()=>[t.linkedEntity.relationType=="ONE_TO_MANY"?(s.openBlock(),s.createBlock(yb,{key:0,modelValue:o.value,"onUpdate:modelValue":C[1]||(C[1]=D=>o.value=D),linkedEntity:t.linkedEntity,entity360Name:t.entity360Name,entity360Id:t.entity360Id,saveExistingRelatedEntityRecord:b},null,8,["modelValue","linkedEntity","entity360Name","entity360Id"])):s.createCommentVNode("",!0),t.linkedEntity.relationType=="MANY_TO_ONE"?(s.openBlock(),s.createBlock(Eb,{key:1,modelValue:o.value,"onUpdate:modelValue":C[2]||(C[2]=D=>o.value=D),linkedEntity:t.linkedEntity,entity360Name:t.entity360Name,entity360Id:t.entity360Id,saveExistingEntityObject:y},null,8,["modelValue","linkedEntity","entity360Name","entity360Id"])):s.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["visible"])}}},$b={class:"flex flex-col border-bottom-section pb-3 pt-3"},Mb={class:"flex items-center pl-3 pr-3 justify-between"},Fb={key:0,class:"pi pi-caret-right"},Vb={key:1,class:"pi pi-caret-down"},Lb={class:"ml-3 font-bold"},Ib={class:"ml-1"},zb={class:"text-right"},jb={key:0},Wb=Fe({__name:"LinkEntitySection",props:{entity360Id:{required:!0},entity360Name:{type:String,required:!0},linkedEntity:{type:Object,required:!0},entity360Name:{type:[String,Number]},onSaveRelatedEnttity:{type:Function}},setup(t){nt.useRoute();const e=t,o=s.ref(!1),r=s.ref(!1),n=()=>{o.value=!o.value},i=()=>{r.value=!r.value},a=()=>{r.value=!1,e.onSaveRelatedEnttity()},l=s.computed(()=>e.linkedEntity.list.filter(c=>!c.is_deleted).length);return(c,d)=>{const u=s.resolveComponent("Button");return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",$b,[s.createElementVNode("div",Mb,[s.createElementVNode("div",{class:"flex cursor-pointer items-center linked-entity-section grow line-height-4",onClick:d[0]||(d[0]=f=>n())},[o.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Fb)),o.value?(s.openBlock(),s.createElementBlock("div",Vb)):s.createCommentVNode("",!0),s.createElementVNode("div",Lb,s.toDisplayString(t.linkedEntity.entityName),1),s.createElementVNode("div",Ib," ("+s.toDisplayString(l.value)+") ",1)]),s.createElementVNode("div",zb,[s.createVNode(u,{label:"Add",icon:"pi pi-plus",size:"small",onClick:d[1]||(d[1]=f=>i())})])]),o.value?(s.openBlock(),s.createElementBlock("div",jb,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.linkedEntity.list,(f,h)=>(s.openBlock(),s.createElementBlock("div",{class:"flex flex-col",key:h},[f.is_deleted?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(V0,{key:0,linkEntityListItem:f},null,8,["linkEntityListItem"]))]))),128))])):s.createCommentVNode("",!0)]),r.value?(s.openBlock(),s.createBlock(Ab,{key:0,showCreateRelatedEntityForm:r.value,"onUpdate:showCreateRelatedEntityForm":d[2]||(d[2]=f=>r.value=f),linkedEntity:t.linkedEntity,entity360Name:t.entity360Name,entity360Id:t.entity360Id,onOnSaveDialog:a},null,8,["showCreateRelatedEntityForm","linkedEntity","entity360Name","entity360Id"])):s.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-412eec44"]]),Hb={key:0},Ub={class:"flex"},qb={class:"p-3 mt-3 flex-col items-center"},Yb={key:0,class:"pi pi-caret-right"},Xb={key:1,class:"pi pi-caret-down"},Kb={class:"font-bold ml-2"},Gb={key:0,class:"flex flex-col mt-4"},Qb={class:"flex flex-col mt-2"},Jb={class:"flex flex-row flex-wrap justify-between pl-5"},Zb={class:"flex flex-col"},ey={class:"font-bold"},ty={class:"mt-2"},oy={key:0,class:"flex flex-col",style:{position:"relative","max-width":"400px","background-color":"var(--surface-card)"}},ry={key:2,style:{width:"350px"},class:"flex flex-col justify-center"},ny={key:0,class:"custom-sidebar"},iy={class:"custom-sidebar-content"},ay={class:"custom-sidebar-button"},sy={class:"custom-sidebar-text"},dc=Fe({__name:"Entity360",props:{entityName:{type:String},recordId:{type:String},variable:{type:String,default:"item"},linkedEntity:Array},emits:["onSaveDialog"],setup(t,{expose:e,emit:o}){var E,D;const r=Ue(),n=nt.useRoute(),i=t,a=s.ref(!0),l=s.ref(!1),c=s.ref([]);let d=(E=n==null?void 0:n.params)==null?void 0:E.entityName,u=(D=n==null?void 0:n.params)==null?void 0:D.id;i.entityName&&(d=i.entityName),i.recordId&&(u=i.recordId);const f=o,{formData:h,columns:g,errors:m,backendErrors:p,isDataChange:b,linkedEntities:y,primarayColumn:x,clearErrors:C,saveRecord:B,getRelatedEntityRecordById:w,cancleRecord:_}=Ji(d,u,f);s.watch(()=>r.globalConfigs.appId,async M=>{M&&w()},{immediate:!0});const v=()=>{a.value=!a.value},k=()=>{l.value=!l.value},S=()=>{w()},N=M=>{if(!c.value||c.value.length===0)return[];const T=c.value.find(F=>F.entityName===M);return T&&T.list?T.list:(console.log("No related entity found"),[])};return e({getRelatedEntity:N}),s.watch(()=>y.value,M=>{Array.isArray(M)&&M.length>0&&M[0]&&(c.value=M)},{immediate:!0,deep:!0}),(M,T)=>{var ne;const F=s.resolveComponent("SplitterPanel"),A=s.resolveComponent("Tab"),W=s.resolveComponent("TabList"),z=s.resolveComponent("TabPanel"),$=s.resolveComponent("TabPanels"),j=s.resolveComponent("Tabs"),J=s.resolveComponent("Splitter"),oe=s.resolveComponent("Button");return M.$slots["list-item-display-360"]?(s.openBlock(),s.createElementBlock("div",Hb,[s.renderSlot(M.$slots,"header",{},void 0,!0),s.createElementVNode("div",null,[s.renderSlot(M.$slots,"list-item-display-360",s.normalizeProps({[t.variable||""]:{formData:s.unref(h),columns:s.unref(g),linkedEntities:s.unref(y),errors:s.unref(m),recordId:s.unref(u),entityName:s.unref(d),getRelatedEntity:N}}),void 0,!0)]),s.renderSlot(M.$slots,"footer",{},void 0,!0)])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",Ub,[s.createVNode(J,{class:"flex-1",layout:"horizontal",gutterSize:8,size:100},{default:s.withCtx(()=>[s.createVNode(F,{size:20,minSize:10,maxSize:20},{default:s.withCtx(()=>[s.createElementVNode("div",qb,[s.createElementVNode("div",{onClick:T[0]||(T[0]=X=>v()),class:"section-heading cursor-pointer"},[a.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("i",Yb)),a.value?(s.openBlock(),s.createElementBlock("i",Xb)):s.createCommentVNode("",!0),s.createElementVNode("span",Kb," About this "+s.toDisplayString(s.unref(d)),1)]),a.value?(s.openBlock(),s.createElementBlock("div",Gb,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(g),(X,Q)=>{var ie;return s.openBlock(),s.createElementBlock("div",{key:Q},[X.autoGenerated?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(vn,{key:0,modelValue:s.unref(h)[X.name],"onUpdate:modelValue":ue=>s.unref(h)[X.name]=ue,column:X,errors:(ie=s.unref(m)[X.name])==null?void 0:ie.messages,onInput:s.unref(C)},null,8,["modelValue","onUpdate:modelValue","column","errors","onInput"]))])}),128))])):s.createCommentVNode("",!0)])]),_:1}),s.createVNode(F,{size:55,minSize:35,style:{height:"100%"}},{default:s.withCtx(()=>[s.createVNode(j,{value:"0"},{default:s.withCtx(()=>[s.createVNode(W,null,{default:s.withCtx(()=>[s.createVNode(A,{value:"0"},{default:s.withCtx(()=>T[3]||(T[3]=[s.createTextVNode("Overview")])),_:1}),s.createVNode(A,{value:"1"},{default:s.withCtx(()=>T[4]||(T[4]=[s.createTextVNode("Activity")])),_:1})]),_:1}),s.createVNode($,null,{default:s.withCtx(()=>[s.createVNode(z,{value:"0"},{default:s.withCtx(()=>[s.createElementVNode("div",Qb,[T[5]||(T[5]=s.createElementVNode("h3",{class:"mt-2 text-xl font-semibold"},"Data highlights",-1)),s.createElementVNode("div",Jb,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(g).filter(X=>X.autoGenerated),(X,Q)=>(s.openBlock(),s.createElementBlock("div",{key:Q,class:"column-item"},[s.createElementVNode("div",Zb,[s.createElementVNode("div",ey,s.toDisplayString(X.name),1),s.createElementVNode("div",ty,[s.createVNode(ta,{column:X,value:s.unref(h)[X.name]},null,8,["column","value"])])])]))),128))])])]),_:1}),s.createVNode(z,{value:"1"})]),_:1})]),_:1})]),_:1})]),_:1}),((ne=s.unref(y))==null?void 0:ne.length)>0?(s.openBlock(),s.createElementBlock("div",oy,[l.value?(s.openBlock(),s.createBlock(oe,{key:0,icon:"pi pi-caret-right",rounded:"",onClick:k,"aria-label":"Filter",style:{height:"2rem",width:"2rem",left:"-20px"}})):s.createCommentVNode("",!0),l.value?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(oe,{key:1,icon:"pi pi-caret-left",rounded:"",onClick:k,"aria-label":"Filter",style:{height:"2rem",width:"2rem",left:"-20px"}})),l.value?(s.openBlock(),s.createElementBlock("div",ry,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(y),(X,Q)=>(s.openBlock(),s.createElementBlock("div",{key:Q},[s.createVNode(Wb,{entity360Name:s.unref(d),entity360Id:s.unref(u),linkedEntity:X,onSaveRelatedEnttity:S},null,8,["entity360Name","entity360Id","linkedEntity"])]))),128))])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)]),s.unref(b)?(s.openBlock(),s.createElementBlock("div",ny,[s.createElementVNode("div",iy,[s.createElementVNode("div",ay,[s.createVNode(oe,{severity:"primary",onClick:T[1]||(T[1]=X=>s.unref(B)())},{default:s.withCtx(()=>T[6]||(T[6]=[s.createTextVNode("Save")])),_:1}),s.createVNode(oe,{style:{"margin-left":"10px"},severity:"secondary",onClick:T[2]||(T[2]=X=>s.unref(_)())},{default:s.withCtx(()=>T[7]||(T[7]=[s.createTextVNode("Cancel")])),_:1})]),s.createElementVNode("div",sy," You've changed property in the "+s.toDisplayString(s.unref(d))+". ",1)])])):s.createCommentVNode("",!0)],64))}}},[["__scopeId","data-v-12a444f4"]]);function $n(){const t=new mt;let{errors:e,setErrors:o}=ul(),r=s.reactive({data:null});const n=_=>{r.data=_},i=async _=>{try{const v=await t.getEntityRecords(_);if(v&&v.response)return v}catch(v){return console.error("Error fetching entity:",v.errorMessage),v}finally{}},a=async(_,v)=>{try{let k=await t.addRecord(_.entityName,v);if(k)return k}catch(k){return k}finally{}},l=async(_,v,k)=>{try{const S=await t.updateRecord(_.entityName,v,k);if(S&&S.response)return S}catch(S){return S}finally{}},c=async(_,v)=>{try{v.filter==null&&(v.filter={}),Object.keys(v.filter).length===0&&(v.filter=[]);const k=await t.searchEntityRecords(_.entityName,v);if(k)return k.response.sortBy=v.sortBy,k.response.filters=v.filter,k.response.sortDirection=v.sortDirection,k.response.fullTextSearch=v.fullTextSearch,k}catch(k){return k}finally{}},d=async(_,v)=>{try{const k=await t.deleteRecord(_.entityName,v);if(k)return k}catch(k){console.error("Error on deleting record:",k.errorMessage)}finally{}},u=_=>_.result,f=_=>{var v,k;return(k=(v=_==null?void 0:_.entity)==null?void 0:v.entityDefinition)==null?void 0:k.columns},h=_=>{const v=_.entity.entityDefinition.columns;let k={};for(let S=0;S<v.length;S++){const N=v[S];if(N.primaryKey&&N.primaryKey==!0){k=N;break}}return k},g=_=>{const v=_.entity.entityDefinition.columns;let k={};for(let S=0;S<v.length;S++){let N=v[S];N.autoGenerated||(k[N.name]="")}return k},m=(_,v)=>{let k="";const S=_.entity.entityDefinition.columns;for(let N=0;N<S.length;N++){let E=S[N];if(v==E.name){k=E.type;break}}return k},p=(_,v)=>{const S=_.entity.entityDefinition.columns.filter(E=>E.autoGenerated).map(E=>E.name);return Object.entries(v).filter(([E])=>!S.includes(E)).map(([E,D])=>({recordColumnName:E,recordColumnValue:D,columnType:m(r.data,E)}))},b=()=>{const _=r.data.entity.entityDefinition.columns;return Qi().shape(_.reduce((k,S)=>(S.autoGenerated||(k[S.name]=Gi().nullable(!1).test({name:"custom-validation",test:function(N){const E=[];let D="";if(S.required&&(!N||N.trim()===""))if(S.validations){D=y(S.validations,"VALIDATE_REQUIRED"),E.push(D);let M=C(S.validations,"VALIDATE_REQUIRED");M&&(M="hint:"+M,E.push(M))}else D=S.displayName+" is required.",E.push(D);else{if(S.maxLength&&N.length>S.maxLength)if(S.validations){D=y(S.validations,"VALIDATE_MAXLENGTH"),E.push(D);let M=C(S.validations,"VALIDATE_MAXLENGTH");M&&(M="hint:"+M,E.push(M))}else D=S.displayName+" cannot exceed from "+S.maxLength+" characters",E.push(D);if(S.regxId&&!new RegExp(x(S.validations,"VALIDATE_REGX")).test(N))if(S.validations){D=y(S.validations,"VALIDATE_REGX"),E.push(D);let M=C(S.validations,"VALIDATE_REGX");M&&(M="hint:"+M,E.push(M))}else D=S.displayName+" invalid format.",E.push(D)}return E.length>0?this.createError({message:E}):!0}})),k),{}))},y=(_,v)=>{for(let k=0;k<_.length;k++)if(v==_[k].type)return _[k].message},x=(_,v)=>{for(let k=0;k<_.length;k++)if(v==_[k].type)return _[k].regx},C=(_,v)=>{for(let k=0;k<_.length;k++)if(v==_[k].type)return _[k].hint};return{state:r,setEntity:n,getEntity:i,addRecord:a,updateRecord:l,searchRecord:c,entityRecordDelete:d,getEntityItems:u,getEntityColumns:f,getPrimaryKeyColumn:h,getFormData:g,createDataToSave:p,createValidationSchema:b,clearErrors:_=>(o({...e.value,[_]:null}),e.value),validateData:async(_,v)=>{try{return await _.validate(v,{abortEarly:!1}),o({}),{validate:!0}}catch(k){const S=k.inner.reduce((D,M)=>(D[M.path]||(D[M.path]={messages:[]}),D[M.path].messages.push(...M.errors),D),{}),N=Object.entries(S).reduce((D,[M,T])=>(D[M]={messages:T.messages},D),{});return o(N),{validate:!1,errors:e.value}}}}}const Mn={__name:"ConfirmDeleteDialog",props:{showDeleteDialog:{},showDeleteDialogModifiers:{}},emits:s.mergeModels(["onDeleteItem"],["update:showDeleteDialog"]),setup(t,{emit:e}){const o=s.useModel(t,"showDeleteDialog"),r=e,n=i=>{r("onDeleteItem",{remove:i})};return(i,a)=>{const l=s.resolveComponent("Button"),c=s.resolveComponent("Dialog");return s.openBlock(),s.createBlock(c,{visible:o.value,"onUpdate:visible":a[2]||(a[2]=d=>o.value=d),style:{width:"450px"},header:"Confirm",modal:!0},{footer:s.withCtx(()=>[s.createVNode(l,{label:"No",icon:"pi pi-times",text:"",onClick:a[0]||(a[0]=d=>n(!1))}),s.createVNode(l,{label:"Yes",icon:"pi pi-check",text:"",onClick:a[1]||(a[1]=d=>n(!0))})]),default:s.withCtx(()=>[a[3]||(a[3]=s.createElementVNode("div",{class:"flex items-center justify-center"},[s.createElementVNode("i",{class:"pi pi-exclamation-triangle mr-3",style:{"font-size":"2rem"}}),s.createElementVNode("span",null,"Are you sure you want to delete the selected item?")],-1))]),_:1},8,["visible"])}}},ly={key:0,style:{"font-weight":"700","font-size":"1.25rem"}},cy={key:1,style:{"font-weight":"700","font-size":"1.25rem"}},vr={__name:"EntityFormDialog",props:s.mergeModels({item:Object},{showEntityForm:{},showEntityFormModifiers:{}}),emits:["update:showEntityForm"],setup(t){const e=s.useModel(t,"showEntityForm"),o=s.inject("entityObject"),r=t;let n=s.ref([]),i=s.ref({}),a=s.ref([]),l=s.ref(null),c=s.ref({});s.onMounted(()=>{n.value=o.getEntityColumns(o.state.data),r.item?i.value=JSON.parse(JSON.stringify(r.item)):i.value=o.getFormData(o.state.data),l.value=o.createValidationSchema()});const d=async()=>{const g=await o.validateData(l.value,i.value);if(!g.validate){c.value=g.errors;return}const m=o.getPrimaryKeyColumn(o.state.data),p=r.item[m.name],b={dataDefinitions:o.createDataToSave(o.state.data,i.value)},y=await o.updateRecord(o.state.data,p,b);if(y&&y.success){e.value=!1;const x={sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch},C=await o.searchRecord(o.state.data,x);if(C!=null&&C.response){let B=C==null?void 0:C.response;o.setEntity(B)}}else y.validationErrors&&(a.value=JSON.parse(JSON.stringify(y.errvalidationErrorsors)))},u=async()=>{const g=await o.validateData(l.value,i.value);if(!g.validate){c.value=g.errors;return}const m={dataDefinitions:o.createDataToSave(o.state.data,i.value)},p=await o.addRecord(o.state.data,m);p&&p.success?(e.value=!1,o.state.data=await o.getEntity(o.state.data.entityName)):p.validationErrors&&(a.value=JSON.parse(JSON.stringify(p.errvalidationErrorsors)))},f=async()=>{r.item?d():u()},h=g=>{c.value=o.clearErrors(g)};return(g,m)=>{const p=s.resolveComponent("Button"),b=s.resolveComponent("Dialog");return e.value?(s.openBlock(),s.createBlock(b,{key:0,showFooter:!1,visible:e.value,"onUpdate:visible":m[2]||(m[2]=y=>e.value=y),style:{width:"50rem"},breakpoints:{"1199px":"75vw","575px":"90vw"},modal:!0,class:"p-fluid"},{header:s.withCtx(()=>[t.item?(s.openBlock(),s.createElementBlock("span",ly,"Edit "+s.toDisplayString(s.unref(o).state.data.entityName)+" record details",1)):s.createCommentVNode("",!0),t.item?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",cy,"Add "+s.toDisplayString(s.unref(o).state.data.entityName)+" record details",1))]),footer:s.withCtx(()=>[s.createVNode(p,{type:"button",icon:"",label:"Cancel",severity:"secondary",onClick:m[0]||(m[0]=y=>e.value=!1)}),s.createVNode(p,{type:"button",icon:"",label:"Save",severity:"success",onClick:m[1]||(m[1]=y=>f())})]),default:s.withCtx(()=>{var y;return[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(n),(x,C)=>{var B;return s.openBlock(),s.createElementBlock("div",{key:C},[!x.autoGenerated&&!x.foreignKey?(s.openBlock(),s.createBlock(vn,{key:0,modelValue:s.unref(i)[x.name],"onUpdate:modelValue":w=>s.unref(i)[x.name]=w,column:x,errors:(B=s.unref(c)[x.name])==null?void 0:B.messages,onInput:h},null,8,["modelValue","onUpdate:modelValue","column","errors"])):s.createCommentVNode("",!0),!x.autoGenerated&&x.foreignKey?(s.openBlock(),s.createBlock(Ol,{key:1,modelValue:s.unref(i)[x.name],"onUpdate:modelValue":w=>s.unref(i)[x.name]=w,entityName:x.foreignKey.referencedEntityName,columnName:x.name,relatedEntityColumn:x.foreignKey.referencedColumnName},null,8,["modelValue","onUpdate:modelValue","entityName","columnName","relatedEntityColumn"])):s.createCommentVNode("",!0)])}),128)),((y=s.unref(a))==null?void 0:y.length)>0?(s.openBlock(),s.createBlock(Rl,{key:0,errors:s.unref(a)},null,8,["errors"])):s.createCommentVNode("",!0)]}),_:1},8,["visible"])):s.createCommentVNode("",!0)}}},dy={class:"flex justify-between items-start"},uy={class:"flex-grow-1"},fy={class:"tile-grid"},hy={class:"font-bold text-lg text-700"},gy={class:"flex flex-col gap-2"},my=Fe({__name:"EntityListSingleRecord",props:{item:Object},setup(t){const e=t,o=s.inject("entityObject"),r=s.ref([]),n=s.ref(!1),i=s.ref(!1);s.onMounted(()=>{r.value=o.getEntityColumns(o.state.data)});const a=()=>{n.value=!0},l=()=>{i.value=!0},c=u=>{u.remove==!0?d():n.value=!1},d=async()=>{const u=o.getPrimaryKeyColumn(o.state.data),f=e.item[u.name],h=await o.entityRecordDelete(o.state.data,f);if(h!=null&&h.success){n.value=!1;const g={sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch},m=await o.searchRecord(o.state.data,g);if(m!=null&&m.response){let p=m==null?void 0:m.response;o.setEntity(p)}console.log(h)}};return(u,f)=>{const h=s.resolveComponent("Button");return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",dy,[s.createElementVNode("div",uy,[s.createElementVNode("div",fy,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.value,(g,m)=>(s.openBlock(),s.createElementBlock("div",{key:m},[s.createElementVNode("span",hy,s.toDisplayString(g.name)+" : ",1),s.createVNode(ta,{column:g,value:t.item[g.name]},null,8,["column","value"])]))),128))])]),s.createElementVNode("div",gy,[s.createVNode(h,{onClick:f[0]||(f[0]=g=>l()),icon:"pi pi-pencil",severity:"success",size:"",rounded:"","aria-label":"Edit"}),s.createVNode(h,{onClick:f[1]||(f[1]=g=>a()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})])]),i.value?(s.openBlock(),s.createBlock(vr,{key:0,showEntityForm:i.value,"onUpdate:showEntityForm":f[2]||(f[2]=g=>i.value=g),item:t.item},null,8,["showEntityForm","item"])):s.createCommentVNode("",!0),n.value?(s.openBlock(),s.createBlock(Mn,{key:1,showDeleteDialog:n.value,"onUpdate:showDeleteDialog":f[3]||(f[3]=g=>n.value=g),onOnDeleteItem:c},null,8,["showDeleteDialog"])):s.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-bce4d0f0"]]),py=Fe({__name:"EntityListRecordParent",props:{listItemDisplay:String},setup(t){const e=s.inject("entityObject"),o=s.ref([]);return s.watch(()=>e.state.data,r=>{r&&(o.value=r.result,console.log("Entity state updated in child:",e))},{immediate:!0}),(r,n)=>(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,(i,a)=>(s.openBlock(),s.createElementBlock("div",{key:a,class:"card rounded-md p-5 my-2 shadow-lg relative tile"},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listItemDisplay!=null&&t.listItemDisplay!=""?t.listItemDisplay:my),s.mergeProps({ref_for:!0},{item:i}),null,16))]))),128))}},[["__scopeId","data-v-f59ea2d9"]]),by={};function yy(t,e){return null}const ky=Fe(by,[["render",yy]]),xy={class:"my-2"},vy={class:"m-0"},wy={__name:"EntityListHeaderSlot",setup(t){const e=s.inject("entityObject");let o=s.ref("");return s.watch(()=>e.state.data,r=>{r&&(o.value=r.entityName)},{immediate:!0}),(r,n)=>{const i=s.resolveComponent("Toolbar");return s.openBlock(),s.createBlock(i,{class:"p-2 my-2"},{start:s.withCtx(()=>[s.createElementVNode("div",xy,[s.createElementVNode("h2",vy,"EntityName: "+s.toDisplayString(s.unref(o)),1)])]),end:s.withCtx(()=>n[0]||(n[0]=[])),_:1})}}},Cy={class:"flex flex-col mb-5"},_y={class:"col-12"},Sy={class:"flex flex-col mb-5"},By={class:"col-12"},Ey={key:0},Ry={class:"flex flex-col mb-5"},Oy={class:"col-12"},Dy={class:"flex flex-col mb-5"},Ny={class:"col-12"},Ty={class:"flex flex-col mb-5"},Py={class:"col-12"},Ay={class:"flex flex-row justify-between items-center"},$y={key:1},My={class:"flex flex-row justify-between items-center"},Fy={key:1,class:"text-red-500"},Vy={class:"flex flex-col"},Ly={class:"flex flex-row justify-between items-center"},Iy={__name:"FilterSortSidebar",props:s.mergeModels({headers:Array,operatorMap:Object,sortCallback:Function,filterCallback:Function,getColumnDatatype:Function,getDatatypeByField:Function},{sortBy:{},sortByModifiers:{},sortDirection:{},sortDirectionModifiers:{},showFilter:{},showFilterModifiers:{},filters:{},filtersModifiers:{}}),emits:["update:sortBy","update:sortDirection","update:showFilter","update:filters"],setup(t){const e=s.useModel(t,"sortBy"),o=s.useModel(t,"sortDirection"),r=s.useModel(t,"showFilter"),n=s.useModel(t,"filters"),i={GREATER_THAN:"is greater than",dateAfter:"is after",EQUAL:"is equals",dateIs:"is equals",NOT_EQUAL:"is not equals",dateIsNot:"is not equals",LESS_THAN:"is less than",dateBefore:"is before",LESS_THAN_EQUAL:"is less than or equal to",GREATER_THAN_EQUAL:"is greater than or equal to",between:"between",CONTAINS:"contains",STARTS_WITH:"starts with",NOT_CONTAINS:"not contains",ENDS_WITH:"ends with"},a=[{label:"Starts with",value:"STARTS_WITH"},{label:"Contains",value:"CONTAINS"},{label:"Not contains",value:"NOT_CONTAINS"},{label:"Ends with",value:"ENDS_WITH"},{label:"Equals",value:"EQUAL"},{label:"Not equals",value:"NOT_EQUAL"}],l=[{label:"Equals",value:"EQUAL"},{label:"Not equals",value:"NOT_EQUAL"},{label:"Less than",value:"LESS_THAN"},{label:"Less than or equal to",value:"LESS_THAN_EQUAL"},{label:"Greater than",value:"GREATER_THAN_EQUAL"},{label:"Greater than or equal to",value:"gte"}],c=[{label:"Equals",value:"EQUAL"},{label:"Not equals",value:"NOT_EQUAL"}],d=[{label:"Date is",value:"dateIs"},{label:"Date is not",value:"dateIsNot"},{label:"Date is before",value:"dateBefore"},{label:"Date is after",value:"dateAfter"}],u=[{label:"ASC",value:1},{label:"DESC",value:-1}];let f=[];const h=s.computed(()=>t.headers.filter(v=>v.sortable)),g=s.computed(()=>t.headers.filter(v=>v.filterable)),m=v=>t.headers.filter(k=>{var S;return k.filterable?((S=n.value[v])==null?void 0:S.columnName)===k.name?!0:!n.value.some((N,E)=>E!==v&&N.columnName===k.name):!1}).map(k=>({label:k.name,value:k.field})),p=v=>{let k="";switch(t.getDatatypeByField(v.columnName).toLowerCase()){case"string":case"uuid":k="startsWith";break;case"date":k="dateIs";break;case"numeric":case"int":case"integer":k="equals";break;case"bool":case"boolean":k="equals";break}v.operator=k,v.value=""},b=v=>{const k=t.getDatatypeByField(v.columnName);switch(k&&k.toLowerCase()){case"integer":case"int":case"numeric":f=l;break;case"date":f=d;break;case"bool":case"boolean":f=c;break;default:f=a}return f},y=v=>{if(v&&v.columnName){const k=t.getDatatypeByField(v.columnName);return t.getColumnDatatype(k)}else return""},x=()=>{for(let v=0;v<n.value.length;v++){const k=n.value[v];k.editing=!1}n.value.push({columnName:"",value:"",operator:"",editing:!0})},C=v=>{n.value.splice(v,1)},B=v=>{v.editing=!v.editing},w=()=>{let v=[],k=JSON.parse(JSON.stringify(n.value));for(let S=0;S<k.length;S++){const N=k[S];delete N.editing,N.columnName&&N.operator&&N.value&&(N.columnType=t.getDatatypeByField(N.columnName),N.operator=t.operatorMap[N.operator],v.push(N))}t.filterCallback(v)},_=()=>{t.sortCallback()};return(v,k)=>{const S=s.resolveComponent("Select"),N=s.resolveComponent("Divider"),E=s.resolveComponent("InputNumber"),D=s.resolveComponent("DatePicker"),M=s.resolveComponent("InputText"),T=s.resolveComponent("Button"),F=s.resolveComponent("Drawer");return s.openBlock(),s.createBlock(F,{visible:r.value,"onUpdate:visible":k[4]||(k[4]=A=>r.value=A),header:"Sorting and Filter",blockScroll:!0,position:"right",class:"layout-profile-sidebar !w-full md:!w-80 lg:!w-[30rem]",pt:{closeButton:"ml-auto"}},{default:s.withCtx(()=>[s.createElementVNode("div",Cy,[k[5]||(k[5]=s.createElementVNode("div",{class:"col-12 font-bold"},"Sort Column",-1)),s.createElementVNode("div",_y,[s.createVNode(S,{modelValue:e.value,"onUpdate:modelValue":k[0]||(k[0]=A=>e.value=A),options:h.value,optionLabel:"name",optionValue:"field",highlightOnSelect:!1,class:"w-full",onChange:k[1]||(k[1]=A=>_(v.event))},null,8,["modelValue","options"])])]),s.createElementVNode("div",Sy,[k[6]||(k[6]=s.createElementVNode("div",{class:"col-12 font-bold"},[s.createElementVNode("div",{class:"col-12 font-bold"},"Sort Direction")],-1)),s.createElementVNode("div",By,[s.createVNode(S,{modelValue:o.value,"onUpdate:modelValue":k[2]||(k[2]=A=>o.value=A),options:u,optionLabel:"label",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:k[3]||(k[3]=A=>_(v.event))},null,8,["modelValue"])])]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(A,W)=>(s.openBlock(),s.createElementBlock("div",{key:W},[A.editing?(s.openBlock(),s.createElementBlock("div",Ey,[s.createVNode(N),s.createElementVNode("div",Ry,[k[7]||(k[7]=s.createElementVNode("div",{class:"col-12 font-bold"},"Filter Column",-1)),s.createElementVNode("div",Oy,[s.createVNode(S,{modelValue:A.columnName,"onUpdate:modelValue":z=>A.columnName=z,options:m(W),optionLabel:"label",placeholder:"Select column",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:z=>p(A)},null,8,["modelValue","onUpdate:modelValue","options","onChange"])])]),s.createElementVNode("div",Dy,[k[8]||(k[8]=s.createElementVNode("div",{class:"col-12 font-bold"},"Filter Operator",-1)),s.createElementVNode("div",Ny,[s.createVNode(S,{modelValue:A.operator,"onUpdate:modelValue":z=>A.operator=z,options:b(A),optionLabel:"label",placeholder:"Select operator",optionValue:"value",highlightOnSelect:!1,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","options"])])]),s.createElementVNode("div",Ty,[k[9]||(k[9]=s.createElementVNode("div",{class:"col-12 font-bold"},"Filter value",-1)),s.createElementVNode("div",Py,[y(A)=="numeric"?(s.openBlock(),s.createBlock(E,{key:0,format:!1,class:"w-full",modelValue:A.value,"onUpdate:modelValue":z=>A.value=z,placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"])):y(A)=="date"?(s.openBlock(),s.createBlock(D,{key:1,class:"w-full",modelValue:A.value,"onUpdate:modelValue":z=>A.value=z,dateFormat:"mm/dd/yy",placeholder:"mm/dd/yyyy"},null,8,["modelValue","onUpdate:modelValue"])):(s.openBlock(),s.createBlock(M,{key:2,modelValue:A.value,"onUpdate:modelValue":z=>A.value=z,class:"w-full",placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"]))])]),s.createElementVNode("div",Ay,[s.createVNode(T,{label:"Hide",icon:"",severity:"warn",onClick:z=>B(A)},null,8,["onClick"]),s.createVNode(T,{label:"Delete",icon:"",severity:"danger",onClick:z=>C(W)},null,8,["onClick"])])])):s.createCommentVNode("",!0),A.editing?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",$y,[s.createVNode(N),s.createElementVNode("div",My,[s.createElementVNode("span",null,[A.columnName||A.operator||A.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("span",{class:s.normalizeClass({"text-red-500":!A.columnName})},s.toDisplayString(A.columnName?" "+A.columnName:" column"),3),s.createElementVNode("span",{class:s.normalizeClass({"text-red-500":!i[A.operator]})},s.toDisplayString(A.operator?" "+i[A.operator]:" operator"),3),s.createElementVNode("span",{class:s.normalizeClass({"text-red-500":!A.value})},s.toDisplayString(A.value?" "+A.value:" value"),3)],64)):(s.openBlock(),s.createElementBlock("span",Fy,"Filter is empty"))]),s.createVNode(T,{label:"Edit",icon:"",severity:"info",onClick:z=>B(A)},null,8,["onClick"])])]))]))),128)),s.createElementVNode("div",Vy,[s.createVNode(N),s.createElementVNode("div",Ly,[s.createVNode(T,{label:"Add",disabled:g.value.length===n.value.length,icon:"",severity:"success",onClick:x},null,8,["disabled"]),s.createVNode(T,{label:"Apply",severity:"info",onClick:w})])])]),_:1},8,["visible"])}}},zy={class:"my-2"},eo={__name:"EntityListFilters",props:{externalFilterPayload:Object},setup(t){const e=s.inject("entityObject"),o=s.ref(!1),r=s.ref([]),n=s.ref([]),i=s.ref(""),a=s.ref(1),l=s.ref(""),c=s.ref([]),d=s.ref([]),u=s.ref(!1),f=t;console.log("props externalFilterPayload list filte",f.externalFilterPayload);const h={GREATER_THAN:"GREATER_THAN",dateAfter:"GREATER_THAN",EQUAL:"EQUAL",dateIs:"EQUAL",NOT_EQUAL:"NOT_EQUAL",dateIsNot:"NOT_EQUAL",LESS_THAN:"LESS_THAN",dateBefore:"LESS_THAN",LESS_THAN_EQUAL:"LESS_THAN_EQUAL",GREATER_THAN_EQUAL:"GREATER_THAN_EQUAL",between:"BETWEEN",CONTAINS:"CONTAINS",STARTS_WITH:"STARTS_WITH",NOT_CONTAINS:"NOT_CONTAINS",ENDS_WITH:"ENDS_WITH"},g=()=>{var k;const v=f.externalFilterPayload;i.value=((k=v.sortBy)==null?void 0:k[0])||"",a.value=v.sortDirection==="DESC"?-1:1,l.value=v.fullTextSearch||"",r.value=v.filter||[],n.value=v.filter||[],b()};s.watch(()=>e.state.data,v=>{if(v&&!u.value){if(c.value=e.getEntityColumns(v),d.value=B(c.value),!i.value){const k=e.getPrimaryKeyColumn(v);i.value=(k==null?void 0:k.name)||""}f.externalFilterPayload&&g(),u.value=!0}},{immediate:!0});const m=()=>{o.value=!o.value},p=v=>{n.value=v,b()},b=async()=>{const v=e.state.data,k={sortBy:[i.value],sortDirection:a.value===1?"ASC":"DESC",pageSize:(v==null?void 0:v.pageSize)||25,currentPage:(v==null?void 0:v.currentPage)||0,columnList:null,filter:n.value,fullTextSearch:l.value},S=await e.searchRecord(v,k);S!=null&&S.success&&e.setEntity(S.response)},y=()=>{b()},x=()=>{r.value=[],n.value=[],b()},C=()=>{b()},B=v=>v.map(k=>({field:k.name,name:k.displayName||k.name,filterable:k.filterable,datatype:k.type,sortable:k.indexColumn,displayFormatKey:k.displayFormatKey,displayFormat:k.displayFormat})),w=v=>{switch(v.toLowerCase()){case"integer":case"int":case"numeric":return"numeric";case"date":return"date";case"bool":case"boolean":return"boolean";default:return"text"}},_=v=>{const k=c.value.find(S=>S.name===v);return k?k.type:null};return(v,k)=>{const S=s.resolveComponent("Button"),N=s.resolveComponent("InputIcon"),E=s.resolveComponent("InputText"),D=s.resolveComponent("IconField"),M=s.resolveComponent("Toolbar");return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(M,{class:"p-2 my-2"},{start:s.withCtx(()=>[s.createElementVNode("div",zy,[s.createVNode(S,{type:"button",size:"medium",icon:"pi pi-filter",label:"Filter",severity:"info",onClick:k[0]||(k[0]=T=>m())})]),s.createVNode(S,{class:"ml-3",size:"medium",type:"button",icon:"pi pi-filter-slash",label:"Clear",severity:"warn",onClick:k[1]||(k[1]=T=>x())})]),end:s.withCtx(()=>[s.createVNode(D,{iconPosition:"right",class:"block mt-2 md:mt-0"},{default:s.withCtx(()=>[s.createVNode(N,{onClick:k[2]||(k[2]=T=>C()),class:"pi pi-search"}),s.createVNode(E,{class:"w-full sm:w-auto",onKeyup:k[3]||(k[3]=s.withKeys(T=>C(),["enter"])),modelValue:l.value,"onUpdate:modelValue":k[4]||(k[4]=T=>l.value=T),placeholder:"Search..."},null,8,["modelValue"])]),_:1})]),_:1}),s.createVNode(Iy,{sortBy:i.value,"onUpdate:sortBy":k[5]||(k[5]=T=>i.value=T),sortDirection:a.value,"onUpdate:sortDirection":k[6]||(k[6]=T=>a.value=T),showFilter:o.value,"onUpdate:showFilter":k[7]||(k[7]=T=>o.value=T),filters:r.value,"onUpdate:filters":k[8]||(k[8]=T=>r.value=T),headers:d.value,operatorMap:h,sortCallback:y,filterCallback:p,getColumnDatatype:w,getDatatypeByField:_},null,8,["sortBy","sortDirection","showFilter","filters","headers"])],64)}}},wr={__name:"EntityListPagination",setup(t){const e=s.ref(25),o=s.ref(0),r=s.ref(0),n=s.ref(0);let i=s.inject("entityObject");const a=async l=>{e.value=l.rows,o.value=l.page,n.value=l.first;const c={sortBy:i.state.data.sortBy,sortDirection:i.state.data.sortDirection,columnList:null,filter:i.state.data.filters,fullTextSearch:i.state.data.fullTextSearch,pageSize:e.value,currentPage:o.value},d=await i.searchRecord(i.state.data,c);if(d!=null&&d.success){let u=d==null?void 0:d.response;i.setEntity(u),r.value=d.response.totalRecords,n.value=o.value*e.value}};return s.watch(()=>{var l,c;return(c=(l=i==null?void 0:i.state)==null?void 0:l.data)==null?void 0:c.totalRecords},l=>{r&&(r.value=l)},{immediate:!0}),(l,c)=>{const d=s.resolveComponent("Paginator");return s.openBlock(),s.createBlock(d,{class:"my-4",rows:e.value,totalRecords:r.value,rowsPerPageOptions:[10,25,50,100],onPage:a,template:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown",currentPageReportTemplate:"Showing {first} to {last} of {totalRecords} items"},null,8,["rows","totalRecords"])}}},jy={class:"flex flex-row justify-end p-2 my-2"},to={__name:"EntityListAddButton",setup(t){const e=s.ref(!1),o=()=>{e.value=!0};return(r,n)=>{const i=s.resolveComponent("Button");return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",jy,[s.createVNode(i,{label:"Add",size:"medium",icon:"pi pi-plus",onClick:n[0]||(n[0]=a=>o())})]),e.value?(s.openBlock(),s.createBlock(vr,{key:0,showEntityForm:e.value,"onUpdate:showEntityForm":n[1]||(n[1]=a=>e.value=a)},null,8,["showEntityForm"])):s.createCommentVNode("",!0)],64)}}},uc={__name:"EntityList",props:{entityName:String,listDisplay:String,listItemDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,showAddButton:Boolean,listFilerSlot:Boolean,className:{type:String,default:"default-class"}},setup(t,{expose:e}){const o=$n(),r=Ue();s.provide("entityObject",o);const n=t;return e({props:n,reload:()=>{console.log("reload data")}}),s.watch(()=>r.globalConfigs.appId,async a=>{if(a){const l=await o.getEntity(n.entityName);l.success?o.setEntity(l.response):o.setEntity({result:[]})}},{immediate:!0}),(a,l)=>{var c,d,u;return a.$slots["list-item-display"]?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[t.showAddButton?(s.openBlock(),s.createBlock(to,{key:0})):s.createCommentVNode("",!0),t.listFilerSlot?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listFilter||eo),{key:1})):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(((u=(d=(c=s.unref(o))==null?void 0:c.state)==null?void 0:d.data)==null?void 0:u.result)||[],f=>s.renderSlot(a.$slots,"list-item-display",{item:f})),256))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listHeader||wy))),(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listFilter||eo))),t.showAddButton?(s.openBlock(),s.createBlock(to,{key:0})):s.createCommentVNode("",!0),(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listDisplay||py),s.normalizeProps(s.guardReactiveProps({listItemDisplay:t.listItemDisplay})),null,16)),(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listPagination||wr))),(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listFooter||ky)))],64))}}},Wy={key:0},Hy=["href"],Uy={key:1},qy={class:"action-buttons"},Yy=Fe({__name:"EntityListingSingleRecord",props:{item:Object,entityName:String,showAddButton:Boolean,showFilters:Boolean,className:String,listDisplay:String,listHeader:String,listClass:String,listItemClass:String,listFooter:String,listFilter:String,listPagination:String,displayField:String,baseUrl:String,hrefKey:String,listItemDisplay:String,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean,linkedEntity:Array,externalFilterPayload:Object},setup(t){const e=t;console.log("props entitylistsingle record",e.item);const o=s.inject("entityObject"),r=s.ref([]),n=s.ref(null),i=s.ref(null),a=s.ref(!1),l=s.ref(!1);s.onMounted(()=>{var h;e.linkedEntity&&e.linkedEntity.length>0?r.value=Object.keys(e.linkedEntity[0]).map(g=>({name:g})):r.value=o==null?void 0:o.getEntityColumns(o.state.data),n.value=((h=r==null?void 0:r.value)==null?void 0:h.find(g=>g.name===e.displayField))||null,n.value&&(i.value=e==null?void 0:e.item[n.value.name])});const c=()=>{a.value=!0},d=()=>{l.value=!0},u=async h=>{h.remove?f():a.value=!1},f=async()=>{const h=o.getPrimaryKeyColumn(o.state.data),g=e.item[h.name],m=await o.entityRecordDelete(o.state.data,g);if(m!=null&&m.success){a.value=!1;const p=await o.searchRecord(o.state.data,{sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch});p!=null&&p.response&&o.setEntity(p.response)}};return(h,g)=>{const m=s.resolveComponent("Button");return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("ul",{class:s.normalizeClass(e.className)},[n.value?(s.openBlock(),s.createElementBlock("li",Wy,[s.createElementVNode("a",{href:`${t.baseUrl}/${t.item[t.hrefKey]}`,target:"_blank",class:"hover:underline"},s.toDisplayString(i.value),9,Hy)])):(s.openBlock(),s.createElementBlock("li",Uy,[s.createElementVNode("span",null,"No matching field found for '"+s.toDisplayString(i.value)+"'.",1)])),s.createElementVNode("li",qy,[t.editable?(s.openBlock(),s.createBlock(m,{key:0,onClick:g[0]||(g[0]=p=>d()),icon:"pi pi-pencil",severity:"success",rounded:"","aria-label":"Edit"})):s.createCommentVNode("",!0),t.deletable?(s.openBlock(),s.createBlock(m,{key:1,onClick:g[1]||(g[1]=p=>c()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})):s.createCommentVNode("",!0)])],2),l.value?(s.openBlock(),s.createBlock(vr,{key:0,showEntityForm:l.value,"onUpdate:showEntityForm":g[2]||(g[2]=p=>l.value=p),item:t.item},null,8,["showEntityForm","item"])):s.createCommentVNode("",!0),a.value?(s.openBlock(),s.createBlock(Mn,{key:1,showDeleteDialog:a.value,"onUpdate:showDeleteDialog":g[3]||(g[3]=p=>a.value=p),onOnDeleteItem:u},null,8,["showDeleteDialog"])):s.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-066206a2"]]),Xy={key:0,class:"error-message"},Ky={class:"text-red-500 font-bold"},Gy={key:0},Qy={key:1},Jy={key:2},Zy={key:3},ek={key:1},fc=Fe({__name:"EntityListing",props:{entityName:String,listClass:String,listItemClass:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,listItemDisplay:String,showAddButton:Boolean,showFilters:Boolean,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},displayField:String,baseUrl:String,hrefKey:String,editable:Boolean,deletable:Boolean,linkedEntity:Array,externalFilterPayload:Object},setup(t,{expose:e,emit:o}){const r=$n(),n=Ue();s.provide("entityObject",r);const i=o,a=t;console.log("props externalFilterPayload",a.externalFilterPayload);const l=s.ref([]);return a.linkedEntity?s.watch(()=>a.linkedEntity,u=>{u&&(l.value=u,i("linkedEntityChanged",u))},{immediate:!0}):s.watch(()=>r.state.data,u=>{u&&(l.value=u.result,i("linkedEntityChanged",u.result))},{immediate:!0}),e({props:a,reload:()=>{console.log("reload data")},filter:u=>{console.log("filter data in unordered",u)}}),s.watch(()=>n.globalConfigs.appId,async u=>{if(u)if(a.linkedEntity&&a.linkedEntity.length>0)r.setEntity(a.linkedEntity);else{const f=await r.getEntity(a.entityName);r.setEntity(f.success?f.response:{result:[]})}},{immediate:!0}),(u,f)=>{var h,g,m;return s.openBlock(),s.createElementBlock("div",s.mergeProps(u.$attrs,{class:"flex flex-col"}),[s.renderSlot(u.$slots,"header",{},void 0,!0),u.$slots["list-item-display"]?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[t.showAddButton?(s.openBlock(),s.createBlock(to,{key:0})):s.createCommentVNode("",!0),t.showFilters?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listFilter||eo),{key:1,externalFilterPayload:a.externalFilterPayload},null,8,["externalFilterPayload"])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(t.listClass)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.linkedEntity&&t.linkedEntity.length>0?t.linkedEntity:((m=(g=(h=s.unref(r))==null?void 0:h.state)==null?void 0:g.data)==null?void 0:m.result)||[],p=>s.renderSlot(u.$slots,"list-item-display",{item:p,class:s.normalizeClass(t.listItemClass)},void 0,!0)),256))],2),t.showPagination?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listPagination||wr),{key:2})):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!t.displayField||!t.baseUrl||!t.hrefKey?(s.openBlock(),s.createElementBlock("div",Xy,[s.createElementVNode("p",Ky,[f[0]||(f[0]=s.createTextVNode(" Error: Missing required props - ")),t.entityName?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",Gy,"Entity Name")),t.displayField?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",Qy,"Display Field")),t.baseUrl?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",Jy,"Base Url")),t.hrefKey?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",Zy,"Href Key"))])])):(s.openBlock(),s.createElementBlock("div",ek,[t.showFilters?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listFilter||eo),{key:0,externalFilterPayload:a.externalFilterPayload},null,8,["externalFilterPayload"])):s.createCommentVNode("",!0),t.showAddButton?(s.openBlock(),s.createBlock(to,{key:1})):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(p,b)=>(s.openBlock(),s.createElementBlock("div",{key:b},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listItemDisplay!=null&&t.listItemDisplay!=""?t.listItemDisplay:Yy),s.mergeProps({key:p,ref_for:!0},{item:p,...a}),null,16))]))),128)),t.showPagination?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listPagination||wr),{key:2})):s.createCommentVNode("",!0)])),s.renderSlot(u.$slots,"footer",{},void 0,!0)],64)),s.renderSlot(u.$slots,"footer",{},void 0,!0)],16)}}},[["__scopeId","data-v-edc5e5a2"]]),tk={class:"p-6 bg-white shadow-md rounded-lg border border-gray-300 flex flex-col"},ok={class:"flex justify-between items-start gap-4"},rk={class:"flex-grow"},nk={class:"flex flex-col gap-2"},ik={class:"font-bold text-gray-700"},ak={class:"text-gray-600"},sk={class:"flex flex-col gap-2"},lk=Fe({__name:"EntityListingTileSingleRecord",props:{item:Object,entityName:String,showAddButton:Boolean,showFilters:Boolean,className:String,listDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,listItemDisplay:String,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean},setup(t){const e=t,o=s.inject("entityObject"),r=s.ref([]),n=s.ref(null),i=s.ref(null),a=s.ref(!1),l=s.ref(!1);s.onMounted(()=>{r.value=o.getEntityColumns(o.state.data),n.value=r.value.find(h=>h.name===e.displayField)||null,n.value&&(i.value=e.item[n.value.name])});const c=()=>{a.value=!0},d=()=>{l.value=!0},u=async h=>{h.remove?f():a.value=!1},f=async()=>{const h=o.getPrimaryKeyColumn(o.state.data),g=e.item[h.name],m=await o.entityRecordDelete(o.state.data,g);if(m!=null&&m.success){a.value=!1;const p=await o.searchRecord(o.state.data,{sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch});p!=null&&p.response&&o.setEntity(p.response)}};return(h,g)=>{const m=s.resolveComponent("Button");return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",tk,[s.createElementVNode("div",ok,[s.createElementVNode("div",rk,[s.createElementVNode("div",nk,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.value,(p,b)=>(s.openBlock(),s.createElementBlock("div",{key:b,class:"flex flex-col"},[s.createElementVNode("span",ik,s.toDisplayString(p.displayName||p.name)+":",1),s.createElementVNode("span",ak,s.toDisplayString(t.item[p.name]),1)]))),128))])]),s.createElementVNode("div",sk,[t.editable?(s.openBlock(),s.createBlock(m,{key:0,onClick:g[0]||(g[0]=p=>d()),icon:"pi pi-pencil",severity:"success",rounded:"","aria-label":"Edit"})):s.createCommentVNode("",!0),t.deletable?(s.openBlock(),s.createBlock(m,{key:1,onClick:g[1]||(g[1]=p=>c()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})):s.createCommentVNode("",!0)])])]),l.value?(s.openBlock(),s.createBlock(vr,{key:0,showEntityForm:l.value,"onUpdate:showEntityForm":g[2]||(g[2]=p=>l.value=p),item:t.item},null,8,["showEntityForm","item"])):s.createCommentVNode("",!0),a.value?(s.openBlock(),s.createBlock(Mn,{key:1,showDeleteDialog:a.value,"onUpdate:showDeleteDialog":g[3]||(g[3]=p=>a.value=p),onOnDeleteItem:u},null,8,["showDeleteDialog"])):s.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-c78e676f"]]),ck={class:"flex flex-wrap gap-4 p-2"},dk={key:0,class:"error-message"},uk={class:"text-red-500 font-bold"},fk={key:0},hk={key:1},gk={class:"flex flex-wrap gap-4 p-4"},hc=Fe({__name:"EntityListingTile",props:{entityName:String,listDisplay:String,listItemDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,showAddButton:Boolean,showFilters:Boolean,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean,dynamicPropName:{type:String,default:"item"}},setup(t,{expose:e}){const o=$n(),r=Ue();s.provide("entityObject",o);const n=t,i=s.ref([]);return s.watch(()=>o.state.data,c=>{c&&(i.value=c.result)},{immediate:!0}),e({props:n,reload:()=>{console.log("reload data")},filter:()=>{console.log("filter data in unordered")}}),s.watch(()=>r.globalConfigs.appId,async c=>{if(c){const d=await o.getEntity(n.entityName);o.setEntity(d.success?d.response:{result:[]})}},{immediate:!0}),(c,d)=>{var u,f,h;return s.openBlock(),s.createElementBlock("div",s.normalizeProps(s.guardReactiveProps(c.$attrs)),[c.$slots["list-item-display-tile"]?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.renderSlot(c.$slots,"header",{},void 0,!0),t.showAddButton?(s.openBlock(),s.createBlock(to,{key:0})):s.createCommentVNode("",!0),t.showFilters?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listFilter||eo),{key:1})):s.createCommentVNode("",!0),s.createElementVNode("div",ck,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(((h=(f=(u=s.unref(o))==null?void 0:u.state)==null?void 0:f.data)==null?void 0:h.result)||[],(g,m)=>(s.openBlock(),s.createElementBlock("div",{key:m,class:"flex flex-col p-6 border border-gray-300 shadow-md rounded-lg bg-white w-full sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/5 2xl:w-1/8"},[s.renderSlot(c.$slots,"list-item-display-tile",s.normalizeProps({[t.dynamicPropName||""]:g}),void 0,!0)]))),128))]),s.renderSlot(c.$slots,"footer",{},void 0,!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.renderSlot(c.$slots,"header",{},void 0,!0),t.entityName?(s.openBlock(),s.createElementBlock("div",hk,[t.showFilters?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listFilter||eo),{key:0})):s.createCommentVNode("",!0),t.showAddButton?(s.openBlock(),s.createBlock(to,{key:1})):s.createCommentVNode("",!0),s.createElementVNode("div",gk,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,(g,m)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listItemDisplay!=null&&t.listItemDisplay!=""?t.listItemDisplay:lk),s.mergeProps({key:m,ref_for:!0},{item:g,...n}),null,16))),128))]),t.showPagination?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listPagination||wr),{key:2})):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("div",dk,[s.createElementVNode("p",uk,[d[0]||(d[0]=s.createTextVNode(" Error: Missing required props - ")),t.entityName?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",fk,"Entity Name"))])])),s.renderSlot(c.$slots,"footer",{},void 0,!0)],64))],16)}}},[["__scopeId","data-v-037944bc"]]),mk={class:"p-6 bg-white shadow-md rounded-lg border border-gray-300 flex flex-col responsive-box"},pk={class:"flex justify-between items-start gap-4"},bk={class:"flex-grow"},yk={class:"flex flex-col gap-2"},kk={class:"font-bold text-gray-700"},xk={class:"text-gray-600"},vk={class:"flex flex-col gap-2"},wk=Fe({__name:"EntityListingCarouselSingleRecord",props:{item:Object,entityName:String,showAddButton:Boolean,showFilters:Boolean,className:String,listDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,listItemDisplay:String,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean},setup(t){const e=t,o=s.inject("entityObject"),r=s.ref([]),n=s.ref(null),i=s.ref(null),a=s.ref(!1),l=s.ref(!1);s.onMounted(()=>{r.value=o.getEntityColumns(o.state.data),n.value=r.value.find(h=>h.name===e.displayField)||null,n.value&&(i.value=e.item[n.value.name])});const c=()=>{a.value=!0},d=()=>{l.value=!0},u=async h=>{h.remove?f():a.value=!1},f=async()=>{const h=o.getPrimaryKeyColumn(o.state.data),g=e.item[h.name],m=await o.entityRecordDelete(o.state.data,g);if(m!=null&&m.success){a.value=!1;const p=await o.searchRecord(o.state.data,{sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch});p!=null&&p.response&&o.setEntity(p.response)}};return(h,g)=>{const m=s.resolveComponent("Button");return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",mk,[s.createElementVNode("div",pk,[s.createElementVNode("div",bk,[s.createElementVNode("div",yk,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.value,(p,b)=>(s.openBlock(),s.createElementBlock("div",{key:b,class:"flex flex-col"},[s.createElementVNode("span",kk,s.toDisplayString(p.displayName||p.name)+":",1),s.createElementVNode("span",xk,s.toDisplayString(t.item[p.name]),1)]))),128))])]),s.createElementVNode("div",vk,[t.editable?(s.openBlock(),s.createBlock(m,{key:0,onClick:g[0]||(g[0]=p=>d()),icon:"pi pi-pencil",severity:"success",rounded:"","aria-label":"Edit"})):s.createCommentVNode("",!0),t.deletable?(s.openBlock(),s.createBlock(m,{key:1,onClick:g[1]||(g[1]=p=>c()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})):s.createCommentVNode("",!0)])])]),l.value?(s.openBlock(),s.createBlock(vr,{key:0,showEntityForm:l.value,"onUpdate:showEntityForm":g[2]||(g[2]=p=>l.value=p),item:t.item},null,8,["showEntityForm","item"])):s.createCommentVNode("",!0),a.value?(s.openBlock(),s.createBlock(Mn,{key:1,showDeleteDialog:a.value,"onUpdate:showDeleteDialog":g[3]||(g[3]=p=>a.value=p),onOnDeleteItem:u},null,8,["showDeleteDialog"])):s.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-27c0e644"]]);/**
|
|
162
163
|
* Vue 3 Carousel 0.13.0
|
|
163
164
|
* (c) 2025
|
|
164
165
|
* @license MIT
|
|
165
|
-
*/const hc=["viewport","carousel"],Cr={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},gc=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],wk={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"};Object.values(Cr);const mc=["slide","fade"],pc=["center","start","end","center-even","center-odd"],Ve={autoplay:0,breakpointMode:hc[0],breakpoints:void 0,dir:gc[0],enabled:!0,gap:0,height:"auto",i18n:wk,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:mc[0],snapAlign:pc[0],touchDrag:!0,transition:300,wrapAround:!1},wo=Symbol("carousel"),Ck=t=>{const e=a.shallowReactive([]),o=r=>{r!==void 0?e.slice(r).forEach((n,i)=>{var s;(s=n.exposed)===null||s===void 0||s.setIndex(r+i)}):e.forEach((n,i)=>{var s;(s=n.exposed)===null||s===void 0||s.setIndex(i)})};return{cleanup:()=>{e.splice(0,e.length)},getSlides:()=>e,registerSlide:(r,n)=>{if(!r||r.props.isClone)return;const i=n??e.length;e.splice(i,0,r),o(i),t("slide-registered",{slide:r,index:i})},unregisterSlide:r=>{const n=e.indexOf(r);n!==-1&&(t("slide-unregistered",{slide:r,index:n}),e.splice(n,1),o(n))}}};function _k(t){return t.length===0?0:t.reduce((o,r)=>o+r,0)/t.length}function bc({slides:t,position:e,toShow:o}){const r=[],n=e==="before",i=n?-o:0,s=n?0:o;if(t.length<=0)return r;for(let l=i;l<s;l++){const d={index:n?l:l+t.length,isClone:!0,position:e,id:void 0,key:`clone-${e}-${l}`},u=t[(l%t.length+t.length)%t.length].vnode,f=a.cloneVNode(u,d);f.el=null,r.push(f)}return r}const Sk='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function yc(t){if(!t.el||!(t.el instanceof Element))return;const e=t.el.querySelectorAll(Sk);for(const o of e)o instanceof HTMLElement&&!o.hasAttribute("disabled")&&o.getAttribute("aria-hidden")!=="true"&&o.setAttribute("tabindex","-1")}function Bk(t,e){return Object.keys(t).filter(o=>!e.includes(o)).reduce((o,r)=>(o[r]=t[r],o),{})}function Ek(t){const{isVertical:e,isReversed:o,dragged:r,effectiveSlideSize:n}=t,i=e?r.y:r.x;if(i===0)return 0;const s=Math.round(i/n);return o?s:-s}function Lt({val:t,max:e,min:o}){return e<o?t:Math.min(Math.max(t,isNaN(o)?t:o),isNaN(e)?t:e)}function Rk(t){const{transform:e}=window.getComputedStyle(t);return e.split(/[(,)]/).slice(1,-1).map(o=>parseFloat(o))}function Ok(t){let e=1,o=1;return t.forEach(r=>{const n=Rk(r);n.length===6&&(e/=n[0],o/=n[3])}),{widthMultiplier:e,heightMultiplier:o}}function Dk(t,e){switch(t){case"start":return 0;case"center":case"center-odd":return(e-1)/2;case"center-even":return(e-2)/2;case"end":return e-1;default:return 0}}function Nk(t,e,o){switch(t){case"start":return 0;case"center":case"center-odd":return(o-e)/2;case"center-even":return o/2-e;case"end":return o-e;default:return 0}}function sa({slideSize:t,viewportSize:e,align:o,itemsToShow:r}){return r!==void 0?Dk(o,r):t!==void 0&&e!==void 0?Nk(o,t,e):0}function kc(t="",e={}){return Object.entries(e).reduce((o,[r,n])=>o.replace(`{${r}}`,String(n)),t)}function xc({val:t,max:e,min:o=0}){const r=e-o+1;return((t-o)%r+r)%r+o}function la(t,e=0){let o=!1,r=0,n=null;function i(...s){if(o)return;o=!0;const l=()=>{n=requestAnimationFrame(c=>{c-r>e?(r=c,t(...s),o=!1):l()})};l()}return i.cancel=()=>{n&&(cancelAnimationFrame(n),n=null,o=!1)},i}function Fn(t,e="px"){if(!(t==null||t===""))return typeof t=="number"||parseFloat(t).toString()===t?`${t}${e}`:t}const Tk=a.defineComponent({name:"CarouselAria",setup(){const t=a.inject(wo);return t?()=>a.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},kc(t.config.i18n.itemXofY,{currentSlide:t.currentSlide+1,slidesCount:t.slidesCount})):()=>""}}),Pk={autoplay:{default:Ve.autoplay,type:Number},breakpoints:{default:Ve.breakpoints,type:Object},breakpointMode:{default:Ve.breakpointMode,validator(t){return hc.includes(t)}},enabled:{default:Ve.enabled,type:Boolean},gap:{default:Ve.gap,type:Number},height:{default:Ve.height,type:[Number,String]},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:Ve.itemsToScroll,type:Number},itemsToShow:{default:Ve.itemsToShow,type:[Number,String]},i18n:{default:Ve.i18n,type:Object},modelValue:{default:void 0,type:Number},mouseDrag:{default:Ve.mouseDrag,type:Boolean},touchDrag:{default:Ve.touchDrag,type:Boolean},pauseAutoplayOnHover:{default:Ve.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(t,e){return t&&e.wrapAround&&console.warn('[vue3-carousel warn]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},snapAlign:{default:Ve.snapAlign,validator(t){return pc.includes(t)}},slideEffect:{type:String,default:Ve.slideEffect,validator(t){return mc.includes(t)}},transition:{default:Ve.transition,type:Number},dir:{type:String,default:Ve.dir,validator(t,e){if(!gc.includes(t))return!1;const o=t in Cr?Cr[t]:t;return["ttb","btt"].includes(o)&&(!e.height||e.height==="auto")&&console.warn(`[vue3-carousel warn]: The dir "${t}" is not supported with height "auto".`),!0}},wrapAround:{default:Ve.wrapAround,type:Boolean}},vc=a.defineComponent({name:"VueCarousel",props:Pk,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue"],setup(t,{slots:e,emit:o,expose:r}){var n;const i=Ck(o),s=i.getSlides(),l=a.computed(()=>s.length),c=a.ref(null),d=a.ref(null),u=a.ref(0),f=a.computed(()=>Object.assign(Object.assign(Object.assign({},Ve),Bk(t,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},Ve.i18n),t.i18n)})),h=a.shallowReactive(Object.assign({},f.value)),g=a.ref((n=t.modelValue)!==null&&n!==void 0?n:0),m=a.ref(g.value);a.watch(g,V=>m.value=V);const p=a.ref(0),b=a.computed(()=>Math.ceil((l.value-1)/2)),y=a.computed(()=>l.value-1),x=a.computed(()=>0);let C=null,B=null,w=null;const _=a.computed(()=>u.value+h.gap),v=a.computed(()=>{const V=h.dir||"ltr";return V in Cr?Cr[V]:V}),k=a.computed(()=>["rtl","btt"].includes(v.value)),S=a.computed(()=>["ttb","btt"].includes(v.value)),N=a.computed(()=>h.itemsToShow==="auto"),E=a.computed(()=>S.value?"height":"width");function D(){var V;if(!Q.value)return;const U=(f.value.breakpointMode==="carousel"?(V=c.value)===null||V===void 0?void 0:V.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,G=Object.keys(t.breakpoints||{}).map(re=>Number(re)).sort((re,ke)=>+ke-+re),K={};G.some(re=>U>=re?(Object.assign(K,t.breakpoints[re]),K.i18n&&Object.assign(K.i18n,f.value.i18n,t.breakpoints[re].i18n),!0):!1),Object.assign(h,f.value,K)}const M=la(()=>{D(),j(),A()}),T=a.shallowReactive(new Set),F=a.ref([]);function $({widthMultiplier:V,heightMultiplier:U}){F.value=s.map(G=>{var K;const re=(K=G.exposed)===null||K===void 0?void 0:K.getBoundingRect();return{width:re.width*V,height:re.height*U}})}const W=a.ref({width:0,height:0});function z({widthMultiplier:V,heightMultiplier:U}){var G;const K=((G=d.value)===null||G===void 0?void 0:G.getBoundingClientRect())||{width:0,height:0};W.value={width:K.width*V,height:K.height*U}}function A(){if(!d.value)return;const V=Ok(T);if(z(V),$(V),N.value)u.value=_k(F.value.map(U=>U[E.value]));else{const U=Number(h.itemsToShow),G=(U-1)*h.gap;u.value=(W.value[E.value]-G)/U}}function j(){!h.wrapAround&&l.value>0&&(g.value=Lt({val:g.value,max:y.value,min:x.value})),N.value||(h.itemsToShow=Lt({val:Number(h.itemsToShow),max:l.value,min:1}))}const J=a.computed(()=>typeof t.ignoreAnimations=="string"?t.ignoreAnimations.split(","):Array.isArray(t.ignoreAnimations)?t.ignoreAnimations:t.ignoreAnimations?!1:[]);a.watchEffect(()=>j()),a.watchEffect(()=>{A()});let oe;const ne=V=>{const U=V.target;if(!(!(U!=null&&U.contains(c.value))||Array.isArray(J.value)&&J.value.includes(V.animationName))&&(T.add(U),!oe)){const G=()=>{oe=requestAnimationFrame(()=>{A(),G()})};G()}},X=V=>{const U=V.target;U&&T.delete(U),oe&&T.size===0&&(cancelAnimationFrame(oe),A())},Q=a.ref(!1);typeof document<"u"&&a.watchEffect(()=>{Q.value&&J.value!==!1?(document.addEventListener("animationstart",ne),document.addEventListener("animationend",X)):(document.removeEventListener("animationstart",ne),document.removeEventListener("animationend",X))}),a.onMounted(()=>{Q.value=!0,D(),Pe(),c.value&&(w=new ResizeObserver(M),w.observe(c.value)),o("init")}),a.onBeforeUnmount(()=>{Q.value=!1,i.cleanup(),B&&clearTimeout(B),oe&&cancelAnimationFrame(oe),C&&clearInterval(C),w&&(w.disconnect(),w=null),typeof document<"u"&&he(),c.value&&(c.value.removeEventListener("transitionend",A),c.value.removeEventListener("animationiteration",A))});let ie=!1;const ue={x:0,y:0},De=a.reactive({x:0,y:0}),lt=a.ref(!1),Xe=a.ref(!1),wt=()=>{lt.value=!0},ft=()=>{lt.value=!1},q=la(V=>{if(!V.ctrlKey)switch(V.key){case"ArrowLeft":case"ArrowUp":S.value===V.key.endsWith("Up")&&(k.value?ht(!0):go(!0));break;case"ArrowRight":case"ArrowDown":S.value===V.key.endsWith("Down")&&(k.value?go(!0):ht(!0));break}},200),L=()=>{document.addEventListener("keydown",q)},he=()=>{document.removeEventListener("keydown",q)};function me(V){const U=V.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(U)||ze.value||(ie=V.type==="touchstart",!ie&&(V.preventDefault(),V.button!==0)))return;ue.x="touches"in V?V.touches[0].clientX:V.clientX,ue.y="touches"in V?V.touches[0].clientY:V.clientY;const G=ie?"touchmove":"mousemove",K=ie?"touchend":"mouseup";document.addEventListener(G,ge,{passive:!1}),document.addEventListener(K,pe,{passive:!0})}const ge=la(V=>{Xe.value=!0;const U="touches"in V?V.touches[0].clientX:V.clientX,G="touches"in V?V.touches[0].clientY:V.clientY;De.x=U-ue.x,De.y=G-ue.y;const K=Ek({isVertical:S.value,isReversed:k.value,dragged:De,effectiveSlideSize:_.value});m.value=h.wrapAround?g.value+K:Lt({val:g.value+K,max:y.value,min:x.value}),o("drag",{deltaX:De.x,deltaY:De.y})});function pe(){if(ge.cancel(),m.value!==g.value&&!ie){const G=K=>{K.preventDefault(),window.removeEventListener("click",G)};window.addEventListener("click",G)}nt(m.value),De.x=0,De.y=0,Xe.value=!1;const V=ie?"touchmove":"mousemove",U=ie?"touchend":"mouseup";document.removeEventListener(V,ge),document.removeEventListener(U,pe)}function Pe(){!h.autoplay||h.autoplay<=0||(C=setInterval(()=>{h.pauseAutoplayOnHover&<.value||ht()},h.autoplay))}function rt(){C&&(clearInterval(C),C=null)}function Pt(){rt(),Pe()}const ze=a.ref(!1);function nt(V,U=!1){if(!U&&ze.value)return;let G=V,K=V;p.value=g.value,h.wrapAround?K=xc({val:G,max:y.value,min:x.value}):G=Lt({val:G,max:y.value,min:x.value}),o("slide-start",{slidingToIndex:V,currentSlideIndex:g.value,prevSlideIndex:p.value,slidesCount:l.value}),rt(),ze.value=!0,g.value=G,K!==G&&$o.pause(),o("update:modelValue",K),B=setTimeout(()=>{h.wrapAround&&K!==G&&($o.resume(),g.value=K,o("loop",{currentSlideIndex:g.value,slidingToIndex:V})),o("slide-end",{currentSlideIndex:g.value,prevSlideIndex:p.value,slidesCount:l.value}),ze.value=!1,Pt()},h.transition)}function ht(V=!1){nt(g.value+h.itemsToScroll,V)}function go(V=!1){nt(g.value-h.itemsToScroll,V)}function mo(){D(),j(),A(),Pt()}a.watch(()=>[f.value,t.breakpoints],()=>D(),{deep:!0}),a.watch(()=>t.autoplay,()=>Pt());const $o=a.watch(()=>t.modelValue,V=>{V!==g.value&&nt(Number(V),!0)});o("before-init");const ee=a.computed(()=>{if(!h.wrapAround)return{before:0,after:0};if(N.value)return{before:s.length,after:s.length};const V=Number(h.itemsToShow),U=Math.ceil(V+(h.itemsToScroll-1)),G=U-m.value,K=U-(l.value-(m.value+1));return{before:Math.max(0,G),after:Math.max(0,K)}}),Ct=a.computed(()=>ee.value.before?N.value?F.value.slice(-1*ee.value.before).reduce((V,U)=>V+U[E.value]+h.gap,0)*-1:ee.value.before*_.value*-1:0),Me=a.computed(()=>{var V;if(N.value){const U=(g.value%s.length+s.length)%s.length;return sa({slideSize:(V=F.value[U])===null||V===void 0?void 0:V[E.value],viewportSize:W.value[E.value],align:h.snapAlign})}return sa({align:h.snapAlign,itemsToShow:+h.itemsToShow})}),R=a.computed(()=>{let V=0;if(N.value){if(g.value<0?V=F.value.slice(g.value).reduce((U,G)=>U+G[E.value]+h.gap,0)*-1:V=F.value.slice(0,g.value).reduce((U,G)=>U+G[E.value]+h.gap,0),V-=Me.value,!h.wrapAround){const U=F.value.reduce((G,K)=>G+K[E.value]+h.gap,0)-W.value[E.value]-h.gap;V=Lt({val:V,max:U,min:0})}}else{let U=g.value-Me.value;h.wrapAround||(U=Lt({val:U,max:l.value-+h.itemsToShow,min:0})),V=U*_.value}return V*(k.value?1:-1)}),O=a.computed(()=>{var V,U;if(!N.value){const re=g.value-Me.value;return h.wrapAround?{min:Math.floor(re),max:Math.ceil(re+Number(h.itemsToShow)-1)}:{min:Math.floor(Lt({val:re,max:l.value-Number(h.itemsToShow),min:0})),max:Math.ceil(Lt({val:re+Number(h.itemsToShow)-1,max:l.value-1,min:0}))}}let G=0;{let re=0,ke=0-ee.value.before;const Ne=Math.abs(R.value+Ct.value);for(;re<=Ne;){const He=(ke%s.length+s.length)%s.length;re+=((V=F.value[He])===null||V===void 0?void 0:V[E.value])+h.gap,ke++}G=ke-1}let K=0;{let re=G,ke=0;for(re<0?ke=F.value.slice(0,re).reduce((Ne,He)=>Ne+He[E.value]+h.gap,0)-Math.abs(R.value+Ct.value):ke=F.value.slice(0,re).reduce((Ne,He)=>Ne+He[E.value]+h.gap,0)-Math.abs(R.value);ke<W.value[E.value];){const Ne=(re%s.length+s.length)%s.length;ke+=((U=F.value[Ne])===null||U===void 0?void 0:U[E.value])+h.gap,re++}K=re-1}return{min:Math.floor(G),max:Math.ceil(K)}}),I=a.computed(()=>{if(h.slideEffect==="fade")return;const V=S.value?"Y":"X",U=S.value?De.y:De.x;let G=R.value+U;if(!h.wrapAround&&h.preventExcessiveDragging){let K=0;N.value?K=F.value.reduce((Ne,He)=>Ne+He[E.value],0):K=(l.value-Number(h.itemsToShow))*_.value;const re=k.value?0:-1*K,ke=k.value?K:0;G=Lt({val:G,min:re,max:ke})}return`translate${V}(${G}px)`}),Y=a.computed(()=>({"--vc-transition-duration":ze.value?Fn(h.transition,"ms"):void 0,"--vc-slide-gap":Fn(h.gap),"--vc-carousel-height":Fn(h.height),"--vc-cloned-offset":Fn(Ct.value)})),te={slideTo:nt,next:ht,prev:go},le=a.reactive({activeSlide:m,config:h,currentSlide:g,isSliding:ze,isVertical:S,maxSlide:y,minSlide:x,nav:te,normalizedDir:v,slideRegistry:i,slideSize:u,slides:s,slidesCount:l,viewport:d,visibleRange:O});a.provide(wo,le);const Z=a.reactive({config:h,currentSlide:g,maxSlide:y,middleSlide:b,minSlide:x,slideSize:u,slidesCount:l});return r({data:Z,nav:te,next:ht,prev:go,restartCarousel:mo,slideTo:nt,updateBreakpointsConfig:D,updateSlideSize:A,updateSlidesData:j}),()=>{var V;const U=e.default||e.slides,G=(U==null?void 0:U(Z))||[],{before:K,after:re}=ee.value,ke=bc({slides:s,position:"before",toShow:K}),Ne=bc({slides:s,position:"after",toShow:re}),He=[...ke,...G,...Ne];if(!h.enabled||!He.length)return a.h("section",{ref:c,class:["carousel","is-disabled"]},He);const sn=((V=e.addons)===null||V===void 0?void 0:V.call(e,Z))||[],ln=a.h("ol",{class:"carousel__track",style:{transform:I.value},onMousedownCapture:h.mouseDrag?me:null,onTouchstartPassiveCapture:h.touchDrag?me:null},He),cn=a.h("div",{class:"carousel__viewport",ref:d},ln);return a.h("section",{ref:c,class:["carousel",`is-${v.value}`,`is-effect-${h.slideEffect}`,{"is-vertical":S.value,"is-sliding":ze.value,"is-dragging":Xe.value,"is-hover":lt.value}],dir:v.value,style:Y.value,"aria-label":h.i18n.ariaGallery,tabindex:"0",onFocus:L,onBlur:he,onMouseenter:wt,onMouseleave:ft},[cn,sn,a.h(Tk)])}}});var ca;(function(t){t.arrowDown="arrowDown",t.arrowLeft="arrowLeft",t.arrowRight="arrowRight",t.arrowUp="arrowUp"})(ca||(ca={}));const wc=t=>`icon${t.charAt(0).toUpperCase()+t.slice(1)}`,$k={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function Ak(t){return t in ca}const Cc=t=>t&&Ak(t),_c=a.defineComponent({props:{name:{type:String,required:!0,validator:Cc},title:{type:String,default:t=>t.name?Ve.i18n[wc(t.name)]:""}},setup(t){const e=a.inject(wo,null);return()=>{const o=t.name;if(!o||!Cc(o))return;const r=$k[o],n=a.h("path",{d:r}),i=(e==null?void 0:e.config.i18n[wc(o)])||t.title,s=a.h("title",i);return a.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":i},[s,n])}}}),Sc=a.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,setup(t,{slots:e,attrs:o}){const r=a.inject(wo);if(!r)return()=>"";const{next:n,prev:i}=e,s=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[r.normalizedDir],l=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[r.normalizedDir],c=a.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),d=a.computed(()=>!r.config.wrapAround&&r.currentSlide>=r.maxSlide);return()=>{const{i18n:u}=r.config,f=a.h("button",Object.assign(Object.assign({type:"button",disabled:c.value,"aria-label":u.ariaPreviousSlide,title:u.ariaPreviousSlide,onClick:r.nav.prev},o),{class:["carousel__prev",{"carousel__prev--disabled":c.value},o.class]}),(i==null?void 0:i())||a.h(_c,{name:s()})),h=a.h("button",Object.assign(Object.assign({type:"button",disabled:d.value,"aria-label":u.ariaNextSlide,title:u.ariaNextSlide,onClick:r.nav.next},o),{class:["carousel__next",{"carousel__next--disabled":d.value},o.class]}),(n==null?void 0:n())||a.h(_c,{name:l()}));return[f,h]}}});a.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean}},setup(t){const e=a.inject(wo);if(!e)return()=>"";const o=a.computed(()=>e.config.itemsToShow),r=a.computed(()=>sa({align:e.config.snapAlign,itemsToShow:o.value})),n=a.computed(()=>t.paginateByItemsToShow&&o.value>1),i=a.computed(()=>Math.ceil((e.activeSlide-r.value)/o.value)),s=a.computed(()=>Math.ceil(e.slidesCount/o.value)),l=c=>xc(n.value?{val:i.value,max:s.value-1,min:0}:{val:e.activeSlide,max:e.maxSlide,min:e.minSlide})===c;return()=>{var c,d;const u=[];for(let f=n.value?0:e.minSlide;f<=(n.value?s.value-1:e.maxSlide);f++){const h=kc(e.config.i18n[n.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:f+1}),g=l(f),m=a.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":g},"aria-label":h,"aria-pressed":g,"aria-controls":(d=(c=e.slides[f])===null||c===void 0?void 0:c.exposed)===null||d===void 0?void 0:d.id,title:h,disabled:t.disableOnClick,onClick:()=>e.nav.slideTo(n.value?Math.floor(f*+e.config.itemsToShow+r.value):f)}),p=a.h("li",{class:"carousel__pagination-item",key:f},m);u.push(p)}return a.h("ol",{class:"carousel__pagination"},u)}}});const Bc=a.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:t=>t.isClone?void 0:a.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1},position:{type:String,default:void 0}},setup(t,{attrs:e,slots:o,expose:r}){const n=a.inject(wo);if(a.provide(wo,void 0),!n)return()=>"";const i=a.ref(t.index),s=m=>{i.value=m},l=a.getCurrentInstance(),c=()=>{const m=l.vnode.el;return m?m.getBoundingClientRect():{width:0,height:0}};r({id:t.id,setIndex:s,getBoundingRect:c});const d=a.computed(()=>i.value===n.activeSlide),u=a.computed(()=>i.value===n.activeSlide-1),f=a.computed(()=>i.value===n.activeSlide+1),h=a.computed(()=>i.value>=n.visibleRange.min&&i.value<=n.visibleRange.max),g=a.computed(()=>{if(n.config.itemsToShow==="auto")return;const m=n.config.itemsToShow,p=n.config.gap>0&&m>1?`calc(${100/m}% - ${n.config.gap*(m-1)/m}px)`:`${100/m}%`;return n.isVertical?{height:p}:{width:p}});return n.slideRegistry.registerSlide(l,t.index),a.onUnmounted(()=>{n.slideRegistry.unregisterSlide(l)}),t.isClone&&(a.onMounted(()=>{yc(l.vnode)}),a.onUpdated(()=>{yc(l.vnode)})),()=>{var m,p;return n.config.enabled?a.h("li",{style:[e.style,Object.assign({},g.value)],class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":h.value,"carousel__slide--active":d.value,"carousel__slide--prev":u.value,"carousel__slide--next":f.value,"carousel__slide--sliding":n.isSliding},onFocusin:()=>{n.viewport&&(n.viewport.scrollLeft=0),n.nav.slideTo(i.value)},id:t.isClone?void 0:t.id,"aria-hidden":t.isClone||void 0},(p=o.default)===null||p===void 0?void 0:p.call(o,{currentIndex:i.value,isActive:d.value,isClone:t.isClone,isPrev:u.value,isNext:f.value,isSliding:n.isSliding,isVisible:h.value})):(m=o.default)===null||m===void 0?void 0:m.call(o)}}}),Mk={class:"p-4 mb-4 flex flex-wrap gap-2 border border-gray-300 shadow-md rounded-lg"},Fk={key:0,class:"error-message"},Vk={class:"text-red-500 font-bold"},Ik={key:0},Lk={key:1,class:"mb-4 mt-4"},Ec=Te({__name:"EntityListingCarousel",props:{entityName:String,listDisplay:String,listItemDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,showAddButton:Boolean,showFilters:Boolean,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean},setup(t,{expose:e}){const o=An(),r=Qe();a.provide("entityObject",o);const n=t,i=a.ref([]);return a.watch(()=>o.state.data,c=>{c&&(i.value=c.result)},{immediate:!0}),e({props:n,reload:()=>{console.log("reload data")},filter:()=>{console.log("filter data in unordered")}}),a.watch(()=>r.globalConfigs.appId,async c=>{if(c){const d=await o.getEntity(n.entityName);o.setEntity(d.success?d.response:{result:[]})}},{immediate:!0}),(c,d)=>(a.openBlock(),a.createElementBlock("div",a.normalizeProps(a.guardReactiveProps(c.$attrs)),[c.$slots["list-item-display-carousel"]?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.renderSlot(c.$slots,"header",{},void 0,!0),t.showAddButton?(a.openBlock(),a.createBlock(to,{key:0})):a.createCommentVNode("",!0),t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||eo),{key:1})):a.createCommentVNode("",!0),i.value.length>1?(a.openBlock(),a.createBlock(a.unref(vc),{key:2,"items-to-show":5,"wrap-around":!0,autoplay:2e3,pauseAutoplayOnHover:!0,transition:500},{addons:a.withCtx(()=>[a.createVNode(a.unref(Sc))]),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(u,f)=>(a.openBlock(),a.createBlock(a.unref(Bc),{key:f},{default:a.withCtx(()=>[a.createElementVNode("div",Mk,[a.renderSlot(c.$slots,"list-item-display-carousel",{item:u},void 0,!0)])]),_:2},1024))),128))]),_:3})):a.createCommentVNode("",!0),a.renderSlot(c.$slots,"footer",{},void 0,!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.renderSlot(c.$slots,"header",{},void 0,!0),t.entityName?(a.openBlock(),a.createElementBlock("div",Lk,[t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||eo),{key:0})):a.createCommentVNode("",!0),t.showAddButton?(a.openBlock(),a.createBlock(to,{key:1})):a.createCommentVNode("",!0),i.value.length?(a.openBlock(),a.createBlock(a.unref(vc),{key:2,"items-to-show":3,"wrap-around":!1,mouseDrag:!0,pauseAutoplayOnHover:!0,breakpoints:{1024:{itemsToShow:3},950:{itemsToShow:2},768:{itemsToShow:1},340:{itemsToShow:1}}},{addons:a.withCtx(()=>[a.createVNode(a.unref(Sc))]),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(u,f)=>(a.openBlock(),a.createBlock(a.unref(Bc),{key:f},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listItemDisplay&&t.listItemDisplay!==""?t.listItemDisplay:vk),a.mergeProps({ref_for:!0},{item:u,...n}),null,16))]),_:2},1024))),128))]),_:1})):a.createCommentVNode("",!0),t.showPagination?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||wr),{key:3})):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",Fk,[a.createElementVNode("p",Vk,[d[0]||(d[0]=a.createTextVNode(" Error: Missing required props - ")),t.entityName?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Ik,"Entity Name"))])])),a.renderSlot(c.$slots,"footer",{},void 0,!0)],64))],16))}},[["__scopeId","data-v-2c25fd02"]]);function Rc(){const t=Qe(),{get:e,post:o,put:r,del:n}=ar(),i=()=>t.getAppId();return{getEntities:async()=>{const T=i();return await e(`/api/app/v1/${T}/entity`)},getEntity:async T=>{const F=i();return await e(`/api/app/v1/${F}/entity/${T}`)},saveEntity:async T=>{const F=i();return await o(`/api/app/v1/${F}/entity`,T)},updateEntityGeneralSettings:async(T,F)=>{const $=i();return await r(`/api/app/v1/${$}/entity/${T}/rename`,F)},updateEntityAuditable:async(T,F)=>{const $=i();return await r(`/api/app/v1/${$}/entity/${T}/auditable`,F)},updateEntityRevisionEnabled:async(T,F)=>{const $=i();return await r(`/api/app/v1/${$}/entity/${T}/revision`,F)},updateEntitySoftDelete:async(T,F)=>{const $=i();return await r(`/api/app/v1/${$}/entity/${T}/soft-delete`,F)},updateEntityDeleteProtected:async(T,F)=>{const $=i();return await r(`/api/app/v1/${$}/entity/${T}/delete-protect`,F)},updateEntityColumn:async(T,F)=>{const $=i();return await r(`/api/app/v1/${$}/entity/${T}/column`,F)},saveEntityColumn:async(T,F)=>{const $=i();return await o(`/api/app/v1/${$}/entity/${T}/column`,F)},dropEntityColumn:async(T,F)=>{const $=i();return await n(`/api/app/v1/${$}/entity/${T}/column/${F}`)},saveForeignKey:async(T,F)=>{const $=i();return await r(`/api/app/v1/${$}/entity/foreignKey`,F)},dropForeignKey:async T=>{const F=i();return await n(`/api/app/v1/${F}/entity/foreignKey`,T)},saveUniqueConstraint:async(T,F)=>{const $=i();return await o(`/api/app/v1/${$}/entity/${T}/column/${F}/constraint`)},dropUniqueConstraint:async(T,F)=>{const $=i();return await n(`/api/app/v1/${$}/entity/${T}/column/${F}/constraint`)},saveIndex:async(T,F)=>{const $=i();return await o(`/api/app/v1/${$}/entity/${T}/column-index`,F)},dropIndex:async(T,F)=>{const $=i();return await n(`/api/app/v1/${$}/entity/${T}/column-index`,F)},deleteEntity:async T=>{const F=i();return await n(`/api/app/v1/${F}/entity/${T}`)},getEntityEvents:async T=>{const F=i();return await e(`/api/app/v1/${F}/entity/${T}/event`)},saveEntityEvent:async(T,F)=>{const $=i();return await o(`/api/app/v1/${$}/entity/${T}/event`,F)},deleteEntityEvent:async(T,F)=>{const $=i();return await n(`/api/app/v1/${$}/entity/${T}/event/${F}`)},updateEntityEvent:async(T,F,$)=>{const W=i();return await r(`/api/app/v1/${W}/entity/${T}/event/${F}`,$)},getActionTypes:async()=>{const T=i();return await e(`/api/app/v1/${T}/action-type`)},getActionConfigByType:async T=>{const F=i();return await e(`/api/app/v1/${F}/notification-config/${T}`)}}}const Oc=Si("entitiesStore",{state:()=>({entities:[],entityService:new Rc}),actions:{async fetchEntities(){try{return await this.entityService.getEntities()}catch(t){console.error("Error fetching entities:",t)}finally{}},async getEntities(){if(this.entities.length===0){const t=await this.fetchEntities();return this.setEntities(t.response),this.entities}else return this.entities},setEntities(t){this.entities=t}},getters:{}}),zk={class:"field flex flex-col w-full"},jk={key:0,class:"flex items-center"},Wk={key:1},Hk={class:"flex items-center"},da={__name:"EntitySelection",props:{entityName:String,onEntityChangeCallback:Function},setup(t){const e=Qe(),o=a.ref(""),r=Oc(),n=a.ref([]),i=async()=>{n.value=await r.getEntities(),s()},s=()=>{for(let c=0;c<n.value.length;c++){const d=n.value[c];d.name.toLowerCase()==t.entityName.toLowerCase()&&(o.value=d)}},l=()=>{t.onEntityChangeCallback(o.value.name)};return a.watch(()=>e.globalConfigs.appId,async c=>{c&&await i()},{immediate:!0}),(c,d)=>{const u=a.resolveComponent("Select");return a.openBlock(),a.createElementBlock("div",zk,[a.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":[d[0]||(d[0]=f=>o.value=f),l],options:n.value,filter:"",optionLabel:"name",placeholder:"Select entity",class:"w-full"},{value:a.withCtx(f=>[f.value?(a.openBlock(),a.createElementBlock("div",jk,[a.createElementVNode("div",null,a.toDisplayString(f.value.name),1)])):(a.openBlock(),a.createElementBlock("span",Wk,a.toDisplayString(f.placeholder),1))]),option:a.withCtx(f=>[a.createElementVNode("div",Hk,[a.createElementVNode("div",null,a.toDisplayString(f.option.name),1)])]),_:1},8,["modelValue","options"])])}}},Dc=6048e5,Uk=864e5,Nc=Symbol.for("constructDateFrom");function oo(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Nc in t?t[Nc](e):t instanceof Date?new t.constructor(e):new Date(e)}function kt(t,e){return oo(e||t,t)}let qk={};function Vn(){return qk}function _r(t,e){var l,c,d,u;const o=Vn(),r=(e==null?void 0:e.weekStartsOn)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??o.weekStartsOn??((u=(d=o.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,n=kt(t,e==null?void 0:e.in),i=n.getDay(),s=(i<r?7:0)+i-r;return n.setDate(n.getDate()-s),n.setHours(0,0,0,0),n}function In(t,e){return _r(t,{...e,weekStartsOn:1})}function Tc(t,e){const o=kt(t,e==null?void 0:e.in),r=o.getFullYear(),n=oo(o,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const i=In(n),s=oo(o,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const l=In(s);return o.getTime()>=i.getTime()?r+1:o.getTime()>=l.getTime()?r:r-1}function Pc(t){const e=kt(t),o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return o.setUTCFullYear(e.getFullYear()),+t-+o}function Yk(t,...e){const o=oo.bind(null,e.find(r=>typeof r=="object"));return e.map(o)}function $c(t,e){const o=kt(t,e==null?void 0:e.in);return o.setHours(0,0,0,0),o}function Xk(t,e,o){const[r,n]=Yk(o==null?void 0:o.in,t,e),i=$c(r),s=$c(n),l=+i-Pc(i),c=+s-Pc(s);return Math.round((l-c)/Uk)}function Kk(t,e){const o=Tc(t,e),r=oo(t,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),In(r)}function Gk(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Qk(t){return!(!Gk(t)&&typeof t!="number"||isNaN(+kt(t)))}function Jk(t,e){const o=kt(t,e==null?void 0:e.in);return o.setFullYear(o.getFullYear(),0,1),o.setHours(0,0,0,0),o}const Zk={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"}},ex=(t,e,o)=>{let r;const n=Zk[t];return typeof n=="string"?r=n:e===1?r=n.one:r=n.other.replace("{{count}}",e.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};function ua(t){return(e={})=>{const o=e.width?String(e.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}const tx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ox={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nx={date:ua({formats:tx,defaultWidth:"full"}),time:ua({formats:ox,defaultWidth:"full"}),dateTime:ua({formats:rx,defaultWidth:"full"})},ix={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ax=(t,e,o,r)=>ix[t];function Sr(t){return(e,o)=>{const r=o!=null&&o.context?String(o.context):"standalone";let n;if(r==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,l=o!=null&&o.width?String(o.width):s;n=t.formattingValues[l]||t.formattingValues[s]}else{const s=t.defaultWidth,l=o!=null&&o.width?String(o.width):t.defaultWidth;n=t.values[l]||t.values[s]}const i=t.argumentCallback?t.argumentCallback(e):e;return n[i]}}const sx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},lx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},cx={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"]},dx={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"]},ux={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"}},fx={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"}},hx={ordinalNumber:(t,e)=>{const o=Number(t),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},era:Sr({values:sx,defaultWidth:"wide"}),quarter:Sr({values:lx,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Sr({values:cx,defaultWidth:"wide"}),day:Sr({values:dx,defaultWidth:"wide"}),dayPeriod:Sr({values:ux,defaultWidth:"wide",formattingValues:fx,defaultFormattingWidth:"wide"})};function Br(t){return(e,o={})=>{const r=o.width,n=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(n);if(!i)return null;const s=i[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?mx(l,f=>f.test(s)):gx(l,f=>f.test(s));let d;d=t.valueCallback?t.valueCallback(c):c,d=o.valueCallback?o.valueCallback(d):d;const u=e.slice(s.length);return{value:d,rest:u}}}function gx(t,e){for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&e(t[o]))return o}function mx(t,e){for(let o=0;o<t.length;o++)if(e(t[o]))return o}function px(t){return(e,o={})=>{const r=e.match(t.matchPattern);if(!r)return null;const n=r[0],i=e.match(t.parsePattern);if(!i)return null;let s=t.valueCallback?t.valueCallback(i[0]):i[0];s=o.valueCallback?o.valueCallback(s):s;const l=e.slice(n.length);return{value:s,rest:l}}}const bx=/^(\d+)(th|st|nd|rd)?/i,yx=/\d+/i,kx={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},xx={any:[/^b/i,/^(a|c)/i]},vx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},wx={any:[/1/i,/2/i,/3/i,/4/i]},Cx={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},_x={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]},Sx={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},Bx={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]},Ex={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},Rx={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}},Ox={ordinalNumber:px({matchPattern:bx,parsePattern:yx,valueCallback:t=>parseInt(t,10)}),era:Br({matchPatterns:kx,defaultMatchWidth:"wide",parsePatterns:xx,defaultParseWidth:"any"}),quarter:Br({matchPatterns:vx,defaultMatchWidth:"wide",parsePatterns:wx,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Br({matchPatterns:Cx,defaultMatchWidth:"wide",parsePatterns:_x,defaultParseWidth:"any"}),day:Br({matchPatterns:Sx,defaultMatchWidth:"wide",parsePatterns:Bx,defaultParseWidth:"any"}),dayPeriod:Br({matchPatterns:Ex,defaultMatchWidth:"any",parsePatterns:Rx,defaultParseWidth:"any"})},Dx={code:"en-US",formatDistance:ex,formatLong:nx,formatRelative:ax,localize:hx,match:Ox,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Nx(t,e){const o=kt(t,e==null?void 0:e.in);return Xk(o,Jk(o))+1}function Tx(t,e){const o=kt(t,e==null?void 0:e.in),r=+In(o)-+Kk(o);return Math.round(r/Dc)+1}function Ac(t,e){var u,f,h,g;const o=kt(t,e==null?void 0:e.in),r=o.getFullYear(),n=Vn(),i=(e==null?void 0:e.firstWeekContainsDate)??((f=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((g=(h=n.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,s=oo((e==null?void 0:e.in)||t,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const l=_r(s,e),c=oo((e==null?void 0:e.in)||t,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const d=_r(c,e);return+o>=+l?r+1:+o>=+d?r:r-1}function Px(t,e){var l,c,d,u;const o=Vn(),r=(e==null?void 0:e.firstWeekContainsDate)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??o.firstWeekContainsDate??((u=(d=o.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,n=Ac(t,e),i=oo((e==null?void 0:e.in)||t,0);return i.setFullYear(n,0,r),i.setHours(0,0,0,0),_r(i,e)}function $x(t,e){const o=kt(t,e==null?void 0:e.in),r=+_r(o,e)-+Px(o,e);return Math.round(r/Dc)+1}function be(t,e){const o=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return o+r}const ro={y(t,e){const o=t.getFullYear(),r=o>0?o:1-o;return be(e==="yy"?r%100:r,e.length)},M(t,e){const o=t.getMonth();return e==="M"?String(o+1):be(o+1,2)},d(t,e){return be(t.getDate(),e.length)},a(t,e){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h(t,e){return be(t.getHours()%12||12,e.length)},H(t,e){return be(t.getHours(),e.length)},m(t,e){return be(t.getMinutes(),e.length)},s(t,e){return be(t.getSeconds(),e.length)},S(t,e){const o=e.length,r=t.getMilliseconds(),n=Math.trunc(r*Math.pow(10,o-3));return be(n,e.length)}},Ho={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Mc={G:function(t,e,o){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})}},y:function(t,e,o){if(e==="yo"){const r=t.getFullYear(),n=r>0?r:1-r;return o.ordinalNumber(n,{unit:"year"})}return ro.y(t,e)},Y:function(t,e,o,r){const n=Ac(t,r),i=n>0?n:1-n;if(e==="YY"){const s=i%100;return be(s,2)}return e==="Yo"?o.ordinalNumber(i,{unit:"year"}):be(i,e.length)},R:function(t,e){const o=Tc(t);return be(o,e.length)},u:function(t,e){const o=t.getFullYear();return be(o,e.length)},Q:function(t,e,o){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return be(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,o){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return be(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,o){const r=t.getMonth();switch(e){case"M":case"MM":return ro.M(t,e);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,o){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return be(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,o,r){const n=$x(t,r);return e==="wo"?o.ordinalNumber(n,{unit:"week"}):be(n,e.length)},I:function(t,e,o){const r=Tx(t);return e==="Io"?o.ordinalNumber(r,{unit:"week"}):be(r,e.length)},d:function(t,e,o){return e==="do"?o.ordinalNumber(t.getDate(),{unit:"date"}):ro.d(t,e)},D:function(t,e,o){const r=Nx(t);return e==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):be(r,e.length)},E:function(t,e,o){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,o,r){const n=t.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return be(i,2);case"eo":return o.ordinalNumber(i,{unit:"day"});case"eee":return o.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,o,r){const n=t.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return be(i,e.length);case"co":return o.ordinalNumber(i,{unit:"day"});case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,o){const r=t.getDay(),n=r===0?7:r;switch(e){case"i":return String(n);case"ii":return be(n,e.length);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,o){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,o){const r=t.getHours();let n;switch(r===12?n=Ho.noon:r===0?n=Ho.midnight:n=r/12>=1?"pm":"am",e){case"b":case"bb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,o){const r=t.getHours();let n;switch(r>=17?n=Ho.evening:r>=12?n=Ho.afternoon:r>=4?n=Ho.morning:n=Ho.night,e){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,o){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return ro.h(t,e)},H:function(t,e,o){return e==="Ho"?o.ordinalNumber(t.getHours(),{unit:"hour"}):ro.H(t,e)},K:function(t,e,o){const r=t.getHours()%12;return e==="Ko"?o.ordinalNumber(r,{unit:"hour"}):be(r,e.length)},k:function(t,e,o){let r=t.getHours();return r===0&&(r=24),e==="ko"?o.ordinalNumber(r,{unit:"hour"}):be(r,e.length)},m:function(t,e,o){return e==="mo"?o.ordinalNumber(t.getMinutes(),{unit:"minute"}):ro.m(t,e)},s:function(t,e,o){return e==="so"?o.ordinalNumber(t.getSeconds(),{unit:"second"}):ro.s(t,e)},S:function(t,e){return ro.S(t,e)},X:function(t,e,o){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Vc(r);case"XXXX":case"XX":return Co(r);case"XXXXX":case"XXX":default:return Co(r,":")}},x:function(t,e,o){const r=t.getTimezoneOffset();switch(e){case"x":return Vc(r);case"xxxx":case"xx":return Co(r);case"xxxxx":case"xxx":default:return Co(r,":")}},O:function(t,e,o){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Fc(r,":");case"OOOO":default:return"GMT"+Co(r,":")}},z:function(t,e,o){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Fc(r,":");case"zzzz":default:return"GMT"+Co(r,":")}},t:function(t,e,o){const r=Math.trunc(+t/1e3);return be(r,e.length)},T:function(t,e,o){return be(+t,e.length)}};function Fc(t,e=""){const o=t>0?"-":"+",r=Math.abs(t),n=Math.trunc(r/60),i=r%60;return i===0?o+String(n):o+String(n)+e+be(i,2)}function Vc(t,e){return t%60===0?(t>0?"-":"+")+be(Math.abs(t)/60,2):Co(t,e)}function Co(t,e=""){const o=t>0?"-":"+",r=Math.abs(t),n=be(Math.trunc(r/60),2),i=be(r%60,2);return o+n+e+i}const Ic=(t,e)=>{switch(t){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"})}},Lc=(t,e)=>{switch(t){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"})}},Ax={p:Lc,P:(t,e)=>{const o=t.match(/(P+)(p+)?/)||[],r=o[1],n=o[2];if(!n)return Ic(t,e);let i;switch(r){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}}",Ic(r,e)).replace("{{time}}",Lc(n,e))}},Mx=/^D+$/,Fx=/^Y+$/,Vx=["D","DD","YY","YYYY"];function Ix(t){return Mx.test(t)}function Lx(t){return Fx.test(t)}function zx(t,e,o){const r=jx(t,e,o);if(console.warn(r),Vx.includes(t))throw new RangeError(r)}function jx(t,e,o){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Wx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Hx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ux=/^'([^]*?)'?$/,qx=/''/g,Yx=/[a-zA-Z]/;function Xx(t,e,o){var u,f,h,g;const r=Vn(),n=r.locale??Dx,i=r.firstWeekContainsDate??((f=(u=r.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,s=r.weekStartsOn??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,l=kt(t,o==null?void 0:o.in);if(!Qk(l))throw new RangeError("Invalid time value");let c=e.match(Hx).map(m=>{const p=m[0];if(p==="p"||p==="P"){const b=Ax[p];return b(m,n.formatLong)}return m}).join("").match(Wx).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const p=m[0];if(p==="'")return{isToken:!1,value:Kx(m)};if(Mc[p])return{isToken:!0,value:m};if(p.match(Yx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:m}});n.localize.preprocessor&&(c=n.localize.preprocessor(l,c));const d={firstWeekContainsDate:i,weekStartsOn:s,locale:n};return c.map(m=>{if(!m.isToken)return m.value;const p=m.value;(Lx(p)||Ix(p))&&zx(p,e,String(t));const b=Mc[p[0]];return b(l,p,n.localize,d)}).join("")}function Kx(t){const e=t.match(Ux);return e?e[1].replace(qx,"'"):t}var Ln={exports:{}};/*! @preserve
|
|
166
|
+
*/const gc=["viewport","carousel"],Cr={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},mc=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],Ck={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"};Object.values(Cr);const pc=["slide","fade"],bc=["center","start","end","center-even","center-odd"],Ve={autoplay:0,breakpointMode:gc[0],breakpoints:void 0,dir:mc[0],enabled:!0,gap:0,height:"auto",i18n:Ck,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:pc[0],snapAlign:bc[0],touchDrag:!0,transition:300,wrapAround:!1},Co=Symbol("carousel"),_k=t=>{const e=s.shallowReactive([]),o=r=>{r!==void 0?e.slice(r).forEach((n,i)=>{var a;(a=n.exposed)===null||a===void 0||a.setIndex(r+i)}):e.forEach((n,i)=>{var a;(a=n.exposed)===null||a===void 0||a.setIndex(i)})};return{cleanup:()=>{e.splice(0,e.length)},getSlides:()=>e,registerSlide:(r,n)=>{if(!r||r.props.isClone)return;const i=n??e.length;e.splice(i,0,r),o(i),t("slide-registered",{slide:r,index:i})},unregisterSlide:r=>{const n=e.indexOf(r);n!==-1&&(t("slide-unregistered",{slide:r,index:n}),e.splice(n,1),o(n))}}};function Sk(t){return t.length===0?0:t.reduce((o,r)=>o+r,0)/t.length}function yc({slides:t,position:e,toShow:o}){const r=[],n=e==="before",i=n?-o:0,a=n?0:o;if(t.length<=0)return r;for(let l=i;l<a;l++){const d={index:n?l:l+t.length,isClone:!0,position:e,id:void 0,key:`clone-${e}-${l}`},u=t[(l%t.length+t.length)%t.length].vnode,f=s.cloneVNode(u,d);f.el=null,r.push(f)}return r}const Bk='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function kc(t){if(!t.el||!(t.el instanceof Element))return;const e=t.el.querySelectorAll(Bk);for(const o of e)o instanceof HTMLElement&&!o.hasAttribute("disabled")&&o.getAttribute("aria-hidden")!=="true"&&o.setAttribute("tabindex","-1")}function Ek(t,e){return Object.keys(t).filter(o=>!e.includes(o)).reduce((o,r)=>(o[r]=t[r],o),{})}function Rk(t){const{isVertical:e,isReversed:o,dragged:r,effectiveSlideSize:n}=t,i=e?r.y:r.x;if(i===0)return 0;const a=Math.round(i/n);return o?a:-a}function It({val:t,max:e,min:o}){return e<o?t:Math.min(Math.max(t,isNaN(o)?t:o),isNaN(e)?t:e)}function Ok(t){const{transform:e}=window.getComputedStyle(t);return e.split(/[(,)]/).slice(1,-1).map(o=>parseFloat(o))}function Dk(t){let e=1,o=1;return t.forEach(r=>{const n=Ok(r);n.length===6&&(e/=n[0],o/=n[3])}),{widthMultiplier:e,heightMultiplier:o}}function Nk(t,e){switch(t){case"start":return 0;case"center":case"center-odd":return(e-1)/2;case"center-even":return(e-2)/2;case"end":return e-1;default:return 0}}function Tk(t,e,o){switch(t){case"start":return 0;case"center":case"center-odd":return(o-e)/2;case"center-even":return o/2-e;case"end":return o-e;default:return 0}}function sa({slideSize:t,viewportSize:e,align:o,itemsToShow:r}){return r!==void 0?Nk(o,r):t!==void 0&&e!==void 0?Tk(o,t,e):0}function xc(t="",e={}){return Object.entries(e).reduce((o,[r,n])=>o.replace(`{${r}}`,String(n)),t)}function vc({val:t,max:e,min:o=0}){const r=e-o+1;return((t-o)%r+r)%r+o}function la(t,e=0){let o=!1,r=0,n=null;function i(...a){if(o)return;o=!0;const l=()=>{n=requestAnimationFrame(c=>{c-r>e?(r=c,t(...a),o=!1):l()})};l()}return i.cancel=()=>{n&&(cancelAnimationFrame(n),n=null,o=!1)},i}function Fn(t,e="px"){if(!(t==null||t===""))return typeof t=="number"||parseFloat(t).toString()===t?`${t}${e}`:t}const Pk=s.defineComponent({name:"CarouselAria",setup(){const t=s.inject(Co);return t?()=>s.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},xc(t.config.i18n.itemXofY,{currentSlide:t.currentSlide+1,slidesCount:t.slidesCount})):()=>""}}),Ak={autoplay:{default:Ve.autoplay,type:Number},breakpoints:{default:Ve.breakpoints,type:Object},breakpointMode:{default:Ve.breakpointMode,validator(t){return gc.includes(t)}},enabled:{default:Ve.enabled,type:Boolean},gap:{default:Ve.gap,type:Number},height:{default:Ve.height,type:[Number,String]},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:Ve.itemsToScroll,type:Number},itemsToShow:{default:Ve.itemsToShow,type:[Number,String]},i18n:{default:Ve.i18n,type:Object},modelValue:{default:void 0,type:Number},mouseDrag:{default:Ve.mouseDrag,type:Boolean},touchDrag:{default:Ve.touchDrag,type:Boolean},pauseAutoplayOnHover:{default:Ve.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(t,e){return t&&e.wrapAround&&console.warn('[vue3-carousel warn]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},snapAlign:{default:Ve.snapAlign,validator(t){return bc.includes(t)}},slideEffect:{type:String,default:Ve.slideEffect,validator(t){return pc.includes(t)}},transition:{default:Ve.transition,type:Number},dir:{type:String,default:Ve.dir,validator(t,e){if(!mc.includes(t))return!1;const o=t in Cr?Cr[t]:t;return["ttb","btt"].includes(o)&&(!e.height||e.height==="auto")&&console.warn(`[vue3-carousel warn]: The dir "${t}" is not supported with height "auto".`),!0}},wrapAround:{default:Ve.wrapAround,type:Boolean}},wc=s.defineComponent({name:"VueCarousel",props:Ak,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue"],setup(t,{slots:e,emit:o,expose:r}){var n;const i=_k(o),a=i.getSlides(),l=s.computed(()=>a.length),c=s.ref(null),d=s.ref(null),u=s.ref(0),f=s.computed(()=>Object.assign(Object.assign(Object.assign({},Ve),Ek(t,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},Ve.i18n),t.i18n)})),h=s.shallowReactive(Object.assign({},f.value)),g=s.ref((n=t.modelValue)!==null&&n!==void 0?n:0),m=s.ref(g.value);s.watch(g,V=>m.value=V);const p=s.ref(0),b=s.computed(()=>Math.ceil((l.value-1)/2)),y=s.computed(()=>l.value-1),x=s.computed(()=>0);let C=null,B=null,w=null;const _=s.computed(()=>u.value+h.gap),v=s.computed(()=>{const V=h.dir||"ltr";return V in Cr?Cr[V]:V}),k=s.computed(()=>["rtl","btt"].includes(v.value)),S=s.computed(()=>["ttb","btt"].includes(v.value)),N=s.computed(()=>h.itemsToShow==="auto"),E=s.computed(()=>S.value?"height":"width");function D(){var V;if(!Q.value)return;const U=(f.value.breakpointMode==="carousel"?(V=c.value)===null||V===void 0?void 0:V.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,G=Object.keys(t.breakpoints||{}).map(re=>Number(re)).sort((re,ke)=>+ke-+re),K={};G.some(re=>U>=re?(Object.assign(K,t.breakpoints[re]),K.i18n&&Object.assign(K.i18n,f.value.i18n,t.breakpoints[re].i18n),!0):!1),Object.assign(h,f.value,K)}const M=la(()=>{D(),j(),$()}),T=s.shallowReactive(new Set),F=s.ref([]);function A({widthMultiplier:V,heightMultiplier:U}){F.value=a.map(G=>{var K;const re=(K=G.exposed)===null||K===void 0?void 0:K.getBoundingRect();return{width:re.width*V,height:re.height*U}})}const W=s.ref({width:0,height:0});function z({widthMultiplier:V,heightMultiplier:U}){var G;const K=((G=d.value)===null||G===void 0?void 0:G.getBoundingClientRect())||{width:0,height:0};W.value={width:K.width*V,height:K.height*U}}function $(){if(!d.value)return;const V=Dk(T);if(z(V),A(V),N.value)u.value=Sk(F.value.map(U=>U[E.value]));else{const U=Number(h.itemsToShow),G=(U-1)*h.gap;u.value=(W.value[E.value]-G)/U}}function j(){!h.wrapAround&&l.value>0&&(g.value=It({val:g.value,max:y.value,min:x.value})),N.value||(h.itemsToShow=It({val:Number(h.itemsToShow),max:l.value,min:1}))}const J=s.computed(()=>typeof t.ignoreAnimations=="string"?t.ignoreAnimations.split(","):Array.isArray(t.ignoreAnimations)?t.ignoreAnimations:t.ignoreAnimations?!1:[]);s.watchEffect(()=>j()),s.watchEffect(()=>{$()});let oe;const ne=V=>{const U=V.target;if(!(!(U!=null&&U.contains(c.value))||Array.isArray(J.value)&&J.value.includes(V.animationName))&&(T.add(U),!oe)){const G=()=>{oe=requestAnimationFrame(()=>{$(),G()})};G()}},X=V=>{const U=V.target;U&&T.delete(U),oe&&T.size===0&&(cancelAnimationFrame(oe),$())},Q=s.ref(!1);typeof document<"u"&&s.watchEffect(()=>{Q.value&&J.value!==!1?(document.addEventListener("animationstart",ne),document.addEventListener("animationend",X)):(document.removeEventListener("animationstart",ne),document.removeEventListener("animationend",X))}),s.onMounted(()=>{Q.value=!0,D(),Te(),c.value&&(w=new ResizeObserver(M),w.observe(c.value)),o("init")}),s.onBeforeUnmount(()=>{Q.value=!1,i.cleanup(),B&&clearTimeout(B),oe&&cancelAnimationFrame(oe),C&&clearInterval(C),w&&(w.disconnect(),w=null),typeof document<"u"&&he(),c.value&&(c.value.removeEventListener("transitionend",$),c.value.removeEventListener("animationiteration",$))});let ie=!1;const ue={x:0,y:0},De=s.reactive({x:0,y:0}),lt=s.ref(!1),Ke=s.ref(!1),wt=()=>{lt.value=!0},ft=()=>{lt.value=!1},q=la(V=>{if(!V.ctrlKey)switch(V.key){case"ArrowLeft":case"ArrowUp":S.value===V.key.endsWith("Up")&&(k.value?ht(!0):go(!0));break;case"ArrowRight":case"ArrowDown":S.value===V.key.endsWith("Down")&&(k.value?go(!0):ht(!0));break}},200),I=()=>{document.addEventListener("keydown",q)},he=()=>{document.removeEventListener("keydown",q)};function me(V){const U=V.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(U)||ze.value||(ie=V.type==="touchstart",!ie&&(V.preventDefault(),V.button!==0)))return;ue.x="touches"in V?V.touches[0].clientX:V.clientX,ue.y="touches"in V?V.touches[0].clientY:V.clientY;const G=ie?"touchmove":"mousemove",K=ie?"touchend":"mouseup";document.addEventListener(G,ge,{passive:!1}),document.addEventListener(K,pe,{passive:!0})}const ge=la(V=>{Ke.value=!0;const U="touches"in V?V.touches[0].clientX:V.clientX,G="touches"in V?V.touches[0].clientY:V.clientY;De.x=U-ue.x,De.y=G-ue.y;const K=Rk({isVertical:S.value,isReversed:k.value,dragged:De,effectiveSlideSize:_.value});m.value=h.wrapAround?g.value+K:It({val:g.value+K,max:y.value,min:x.value}),o("drag",{deltaX:De.x,deltaY:De.y})});function pe(){if(ge.cancel(),m.value!==g.value&&!ie){const G=K=>{K.preventDefault(),window.removeEventListener("click",G)};window.addEventListener("click",G)}rt(m.value),De.x=0,De.y=0,Ke.value=!1;const V=ie?"touchmove":"mousemove",U=ie?"touchend":"mouseup";document.removeEventListener(V,ge),document.removeEventListener(U,pe)}function Te(){!h.autoplay||h.autoplay<=0||(C=setInterval(()=>{h.pauseAutoplayOnHover&<.value||ht()},h.autoplay))}function ot(){C&&(clearInterval(C),C=null)}function Pt(){ot(),Te()}const ze=s.ref(!1);function rt(V,U=!1){if(!U&&ze.value)return;let G=V,K=V;p.value=g.value,h.wrapAround?K=vc({val:G,max:y.value,min:x.value}):G=It({val:G,max:y.value,min:x.value}),o("slide-start",{slidingToIndex:V,currentSlideIndex:g.value,prevSlideIndex:p.value,slidesCount:l.value}),ot(),ze.value=!0,g.value=G,K!==G&&$o.pause(),o("update:modelValue",K),B=setTimeout(()=>{h.wrapAround&&K!==G&&($o.resume(),g.value=K,o("loop",{currentSlideIndex:g.value,slidingToIndex:V})),o("slide-end",{currentSlideIndex:g.value,prevSlideIndex:p.value,slidesCount:l.value}),ze.value=!1,Pt()},h.transition)}function ht(V=!1){rt(g.value+h.itemsToScroll,V)}function go(V=!1){rt(g.value-h.itemsToScroll,V)}function mo(){D(),j(),$(),Pt()}s.watch(()=>[f.value,t.breakpoints],()=>D(),{deep:!0}),s.watch(()=>t.autoplay,()=>Pt());const $o=s.watch(()=>t.modelValue,V=>{V!==g.value&&rt(Number(V),!0)});o("before-init");const ee=s.computed(()=>{if(!h.wrapAround)return{before:0,after:0};if(N.value)return{before:a.length,after:a.length};const V=Number(h.itemsToShow),U=Math.ceil(V+(h.itemsToScroll-1)),G=U-m.value,K=U-(l.value-(m.value+1));return{before:Math.max(0,G),after:Math.max(0,K)}}),Ct=s.computed(()=>ee.value.before?N.value?F.value.slice(-1*ee.value.before).reduce((V,U)=>V+U[E.value]+h.gap,0)*-1:ee.value.before*_.value*-1:0),Ae=s.computed(()=>{var V;if(N.value){const U=(g.value%a.length+a.length)%a.length;return sa({slideSize:(V=F.value[U])===null||V===void 0?void 0:V[E.value],viewportSize:W.value[E.value],align:h.snapAlign})}return sa({align:h.snapAlign,itemsToShow:+h.itemsToShow})}),R=s.computed(()=>{let V=0;if(N.value){if(g.value<0?V=F.value.slice(g.value).reduce((U,G)=>U+G[E.value]+h.gap,0)*-1:V=F.value.slice(0,g.value).reduce((U,G)=>U+G[E.value]+h.gap,0),V-=Ae.value,!h.wrapAround){const U=F.value.reduce((G,K)=>G+K[E.value]+h.gap,0)-W.value[E.value]-h.gap;V=It({val:V,max:U,min:0})}}else{let U=g.value-Ae.value;h.wrapAround||(U=It({val:U,max:l.value-+h.itemsToShow,min:0})),V=U*_.value}return V*(k.value?1:-1)}),O=s.computed(()=>{var V,U;if(!N.value){const re=g.value-Ae.value;return h.wrapAround?{min:Math.floor(re),max:Math.ceil(re+Number(h.itemsToShow)-1)}:{min:Math.floor(It({val:re,max:l.value-Number(h.itemsToShow),min:0})),max:Math.ceil(It({val:re+Number(h.itemsToShow)-1,max:l.value-1,min:0}))}}let G=0;{let re=0,ke=0-ee.value.before;const Ne=Math.abs(R.value+Ct.value);for(;re<=Ne;){const He=(ke%a.length+a.length)%a.length;re+=((V=F.value[He])===null||V===void 0?void 0:V[E.value])+h.gap,ke++}G=ke-1}let K=0;{let re=G,ke=0;for(re<0?ke=F.value.slice(0,re).reduce((Ne,He)=>Ne+He[E.value]+h.gap,0)-Math.abs(R.value+Ct.value):ke=F.value.slice(0,re).reduce((Ne,He)=>Ne+He[E.value]+h.gap,0)-Math.abs(R.value);ke<W.value[E.value];){const Ne=(re%a.length+a.length)%a.length;ke+=((U=F.value[Ne])===null||U===void 0?void 0:U[E.value])+h.gap,re++}K=re-1}return{min:Math.floor(G),max:Math.ceil(K)}}),L=s.computed(()=>{if(h.slideEffect==="fade")return;const V=S.value?"Y":"X",U=S.value?De.y:De.x;let G=R.value+U;if(!h.wrapAround&&h.preventExcessiveDragging){let K=0;N.value?K=F.value.reduce((Ne,He)=>Ne+He[E.value],0):K=(l.value-Number(h.itemsToShow))*_.value;const re=k.value?0:-1*K,ke=k.value?K:0;G=It({val:G,min:re,max:ke})}return`translate${V}(${G}px)`}),Y=s.computed(()=>({"--vc-transition-duration":ze.value?Fn(h.transition,"ms"):void 0,"--vc-slide-gap":Fn(h.gap),"--vc-carousel-height":Fn(h.height),"--vc-cloned-offset":Fn(Ct.value)})),te={slideTo:rt,next:ht,prev:go},le=s.reactive({activeSlide:m,config:h,currentSlide:g,isSliding:ze,isVertical:S,maxSlide:y,minSlide:x,nav:te,normalizedDir:v,slideRegistry:i,slideSize:u,slides:a,slidesCount:l,viewport:d,visibleRange:O});s.provide(Co,le);const Z=s.reactive({config:h,currentSlide:g,maxSlide:y,middleSlide:b,minSlide:x,slideSize:u,slidesCount:l});return r({data:Z,nav:te,next:ht,prev:go,restartCarousel:mo,slideTo:rt,updateBreakpointsConfig:D,updateSlideSize:$,updateSlidesData:j}),()=>{var V;const U=e.default||e.slides,G=(U==null?void 0:U(Z))||[],{before:K,after:re}=ee.value,ke=yc({slides:a,position:"before",toShow:K}),Ne=yc({slides:a,position:"after",toShow:re}),He=[...ke,...G,...Ne];if(!h.enabled||!He.length)return s.h("section",{ref:c,class:["carousel","is-disabled"]},He);const sn=((V=e.addons)===null||V===void 0?void 0:V.call(e,Z))||[],ln=s.h("ol",{class:"carousel__track",style:{transform:L.value},onMousedownCapture:h.mouseDrag?me:null,onTouchstartPassiveCapture:h.touchDrag?me:null},He),cn=s.h("div",{class:"carousel__viewport",ref:d},ln);return s.h("section",{ref:c,class:["carousel",`is-${v.value}`,`is-effect-${h.slideEffect}`,{"is-vertical":S.value,"is-sliding":ze.value,"is-dragging":Ke.value,"is-hover":lt.value}],dir:v.value,style:Y.value,"aria-label":h.i18n.ariaGallery,tabindex:"0",onFocus:I,onBlur:he,onMouseenter:wt,onMouseleave:ft},[cn,sn,s.h(Pk)])}}});var ca;(function(t){t.arrowDown="arrowDown",t.arrowLeft="arrowLeft",t.arrowRight="arrowRight",t.arrowUp="arrowUp"})(ca||(ca={}));const Cc=t=>`icon${t.charAt(0).toUpperCase()+t.slice(1)}`,$k={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function Mk(t){return t in ca}const _c=t=>t&&Mk(t),Sc=s.defineComponent({props:{name:{type:String,required:!0,validator:_c},title:{type:String,default:t=>t.name?Ve.i18n[Cc(t.name)]:""}},setup(t){const e=s.inject(Co,null);return()=>{const o=t.name;if(!o||!_c(o))return;const r=$k[o],n=s.h("path",{d:r}),i=(e==null?void 0:e.config.i18n[Cc(o)])||t.title,a=s.h("title",i);return s.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":i},[a,n])}}}),Bc=s.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,setup(t,{slots:e,attrs:o}){const r=s.inject(Co);if(!r)return()=>"";const{next:n,prev:i}=e,a=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[r.normalizedDir],l=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[r.normalizedDir],c=s.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),d=s.computed(()=>!r.config.wrapAround&&r.currentSlide>=r.maxSlide);return()=>{const{i18n:u}=r.config,f=s.h("button",Object.assign(Object.assign({type:"button",disabled:c.value,"aria-label":u.ariaPreviousSlide,title:u.ariaPreviousSlide,onClick:r.nav.prev},o),{class:["carousel__prev",{"carousel__prev--disabled":c.value},o.class]}),(i==null?void 0:i())||s.h(Sc,{name:a()})),h=s.h("button",Object.assign(Object.assign({type:"button",disabled:d.value,"aria-label":u.ariaNextSlide,title:u.ariaNextSlide,onClick:r.nav.next},o),{class:["carousel__next",{"carousel__next--disabled":d.value},o.class]}),(n==null?void 0:n())||s.h(Sc,{name:l()}));return[f,h]}}});s.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean}},setup(t){const e=s.inject(Co);if(!e)return()=>"";const o=s.computed(()=>e.config.itemsToShow),r=s.computed(()=>sa({align:e.config.snapAlign,itemsToShow:o.value})),n=s.computed(()=>t.paginateByItemsToShow&&o.value>1),i=s.computed(()=>Math.ceil((e.activeSlide-r.value)/o.value)),a=s.computed(()=>Math.ceil(e.slidesCount/o.value)),l=c=>vc(n.value?{val:i.value,max:a.value-1,min:0}:{val:e.activeSlide,max:e.maxSlide,min:e.minSlide})===c;return()=>{var c,d;const u=[];for(let f=n.value?0:e.minSlide;f<=(n.value?a.value-1:e.maxSlide);f++){const h=xc(e.config.i18n[n.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:f+1}),g=l(f),m=s.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":g},"aria-label":h,"aria-pressed":g,"aria-controls":(d=(c=e.slides[f])===null||c===void 0?void 0:c.exposed)===null||d===void 0?void 0:d.id,title:h,disabled:t.disableOnClick,onClick:()=>e.nav.slideTo(n.value?Math.floor(f*+e.config.itemsToShow+r.value):f)}),p=s.h("li",{class:"carousel__pagination-item",key:f},m);u.push(p)}return s.h("ol",{class:"carousel__pagination"},u)}}});const Ec=s.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:t=>t.isClone?void 0:s.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1},position:{type:String,default:void 0}},setup(t,{attrs:e,slots:o,expose:r}){const n=s.inject(Co);if(s.provide(Co,void 0),!n)return()=>"";const i=s.ref(t.index),a=m=>{i.value=m},l=s.getCurrentInstance(),c=()=>{const m=l.vnode.el;return m?m.getBoundingClientRect():{width:0,height:0}};r({id:t.id,setIndex:a,getBoundingRect:c});const d=s.computed(()=>i.value===n.activeSlide),u=s.computed(()=>i.value===n.activeSlide-1),f=s.computed(()=>i.value===n.activeSlide+1),h=s.computed(()=>i.value>=n.visibleRange.min&&i.value<=n.visibleRange.max),g=s.computed(()=>{if(n.config.itemsToShow==="auto")return;const m=n.config.itemsToShow,p=n.config.gap>0&&m>1?`calc(${100/m}% - ${n.config.gap*(m-1)/m}px)`:`${100/m}%`;return n.isVertical?{height:p}:{width:p}});return n.slideRegistry.registerSlide(l,t.index),s.onUnmounted(()=>{n.slideRegistry.unregisterSlide(l)}),t.isClone&&(s.onMounted(()=>{kc(l.vnode)}),s.onUpdated(()=>{kc(l.vnode)})),()=>{var m,p;return n.config.enabled?s.h("li",{style:[e.style,Object.assign({},g.value)],class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":h.value,"carousel__slide--active":d.value,"carousel__slide--prev":u.value,"carousel__slide--next":f.value,"carousel__slide--sliding":n.isSliding},onFocusin:()=>{n.viewport&&(n.viewport.scrollLeft=0),n.nav.slideTo(i.value)},id:t.isClone?void 0:t.id,"aria-hidden":t.isClone||void 0},(p=o.default)===null||p===void 0?void 0:p.call(o,{currentIndex:i.value,isActive:d.value,isClone:t.isClone,isPrev:u.value,isNext:f.value,isSliding:n.isSliding,isVisible:h.value})):(m=o.default)===null||m===void 0?void 0:m.call(o)}}}),Fk={class:"p-4 mb-4 flex flex-wrap gap-2 border border-gray-300 shadow-md rounded-lg"},Vk={key:0,class:"error-message"},Lk={class:"text-red-500 font-bold"},Ik={key:0},zk={key:1,class:"mb-4 mt-4"},Rc=Fe({__name:"EntityListingCarousel",props:{entityName:String,listDisplay:String,listItemDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,showAddButton:Boolean,showFilters:Boolean,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean},setup(t,{expose:e}){const o=$n(),r=Ue();s.provide("entityObject",o);const n=t,i=s.ref([]);return s.watch(()=>o.state.data,c=>{c&&(i.value=c.result)},{immediate:!0}),e({props:n,reload:()=>{console.log("reload data")},filter:()=>{console.log("filter data in unordered")}}),s.watch(()=>r.globalConfigs.appId,async c=>{if(c){const d=await o.getEntity(n.entityName);o.setEntity(d.success?d.response:{result:[]})}},{immediate:!0}),(c,d)=>(s.openBlock(),s.createElementBlock("div",s.normalizeProps(s.guardReactiveProps(c.$attrs)),[c.$slots["list-item-display-carousel"]?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.renderSlot(c.$slots,"header",{},void 0,!0),t.showAddButton?(s.openBlock(),s.createBlock(to,{key:0})):s.createCommentVNode("",!0),t.showFilters?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listFilter||eo),{key:1})):s.createCommentVNode("",!0),i.value.length>1?(s.openBlock(),s.createBlock(s.unref(wc),{key:2,"items-to-show":5,"wrap-around":!0,autoplay:2e3,pauseAutoplayOnHover:!0,transition:500},{addons:s.withCtx(()=>[s.createVNode(s.unref(Bc))]),default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,(u,f)=>(s.openBlock(),s.createBlock(s.unref(Ec),{key:f},{default:s.withCtx(()=>[s.createElementVNode("div",Fk,[s.renderSlot(c.$slots,"list-item-display-carousel",{item:u},void 0,!0)])]),_:2},1024))),128))]),_:3})):s.createCommentVNode("",!0),s.renderSlot(c.$slots,"footer",{},void 0,!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.renderSlot(c.$slots,"header",{},void 0,!0),t.entityName?(s.openBlock(),s.createElementBlock("div",zk,[t.showFilters?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listFilter||eo),{key:0})):s.createCommentVNode("",!0),t.showAddButton?(s.openBlock(),s.createBlock(to,{key:1})):s.createCommentVNode("",!0),i.value.length?(s.openBlock(),s.createBlock(s.unref(wc),{key:2,"items-to-show":3,"wrap-around":!1,mouseDrag:!0,pauseAutoplayOnHover:!0,breakpoints:{1024:{itemsToShow:3},950:{itemsToShow:2},768:{itemsToShow:1},340:{itemsToShow:1}}},{addons:s.withCtx(()=>[s.createVNode(s.unref(Bc))]),default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,(u,f)=>(s.openBlock(),s.createBlock(s.unref(Ec),{key:f},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listItemDisplay&&t.listItemDisplay!==""?t.listItemDisplay:wk),s.mergeProps({ref_for:!0},{item:u,...n}),null,16))]),_:2},1024))),128))]),_:1})):s.createCommentVNode("",!0),t.showPagination?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.listPagination||wr),{key:3})):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("div",Vk,[s.createElementVNode("p",Lk,[d[0]||(d[0]=s.createTextVNode(" Error: Missing required props - ")),t.entityName?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",Ik,"Entity Name"))])])),s.renderSlot(c.$slots,"footer",{},void 0,!0)],64))],16))}},[["__scopeId","data-v-2c25fd02"]]);function Oc(){const t=Ue(),{get:e,post:o,put:r,del:n}=ko(),i=()=>t.getAppId();return{getEntities:async()=>{const T=i();return await e(`/api/app/v1/${T}/entity`)},getEntity:async T=>{const F=i();return await e(`/api/app/v1/${F}/entity/${T}`)},saveEntity:async T=>{const F=i();return await o(`/api/app/v1/${F}/entity`,T)},updateEntityGeneralSettings:async(T,F)=>{const A=i();return await r(`/api/app/v1/${A}/entity/${T}/rename`,F)},updateEntityAuditable:async(T,F)=>{const A=i();return await r(`/api/app/v1/${A}/entity/${T}/auditable`,F)},updateEntityRevisionEnabled:async(T,F)=>{const A=i();return await r(`/api/app/v1/${A}/entity/${T}/revision`,F)},updateEntitySoftDelete:async(T,F)=>{const A=i();return await r(`/api/app/v1/${A}/entity/${T}/soft-delete`,F)},updateEntityDeleteProtected:async(T,F)=>{const A=i();return await r(`/api/app/v1/${A}/entity/${T}/delete-protect`,F)},updateEntityColumn:async(T,F)=>{const A=i();return await r(`/api/app/v1/${A}/entity/${T}/column`,F)},saveEntityColumn:async(T,F)=>{const A=i();return await o(`/api/app/v1/${A}/entity/${T}/column`,F)},dropEntityColumn:async(T,F)=>{const A=i();return await n(`/api/app/v1/${A}/entity/${T}/column/${F}`)},saveForeignKey:async(T,F)=>{const A=i();return await r(`/api/app/v1/${A}/entity/foreignKey`,F)},dropForeignKey:async T=>{const F=i();return await n(`/api/app/v1/${F}/entity/foreignKey`,T)},saveUniqueConstraint:async(T,F)=>{const A=i();return await o(`/api/app/v1/${A}/entity/${T}/column/${F}/constraint`)},dropUniqueConstraint:async(T,F)=>{const A=i();return await n(`/api/app/v1/${A}/entity/${T}/column/${F}/constraint`)},saveIndex:async(T,F)=>{const A=i();return await o(`/api/app/v1/${A}/entity/${T}/column-index`,F)},dropIndex:async(T,F)=>{const A=i();return await n(`/api/app/v1/${A}/entity/${T}/column-index`,F)},deleteEntity:async T=>{const F=i();return await n(`/api/app/v1/${F}/entity/${T}`)},getEntityEvents:async T=>{const F=i();return await e(`/api/app/v1/${F}/entity/${T}/event`)},saveEntityEvent:async(T,F)=>{const A=i();return await o(`/api/app/v1/${A}/entity/${T}/event`,F)},deleteEntityEvent:async(T,F)=>{const A=i();return await n(`/api/app/v1/${A}/entity/${T}/event/${F}`)},updateEntityEvent:async(T,F,A)=>{const W=i();return await r(`/api/app/v1/${W}/entity/${T}/event/${F}`,A)},getActionTypes:async()=>{const T=i();return await e(`/api/app/v1/${T}/action-type`)},getActionConfigByType:async T=>{const F=i();return await e(`/api/app/v1/${F}/notification-config/${T}`)}}}const Dc=Si("entitiesStore",{state:()=>({entities:[],entityService:new Oc}),actions:{async fetchEntities(){try{return await this.entityService.getEntities()}catch(t){console.error("Error fetching entities:",t)}finally{}},async getEntities(){if(this.entities.length===0){const t=await this.fetchEntities();return this.setEntities(t.response),this.entities}else return this.entities},setEntities(t){this.entities=t}},getters:{}}),jk={class:"field flex flex-col w-full"},Wk={key:0,class:"flex items-center"},Hk={key:1},Uk={class:"flex items-center"},da={__name:"EntitySelection",props:{entityName:String,onEntityChangeCallback:Function},setup(t){const e=Ue(),o=s.ref(""),r=Dc(),n=s.ref([]),i=async()=>{n.value=await r.getEntities(),a()},a=()=>{for(let c=0;c<n.value.length;c++){const d=n.value[c];d.name.toLowerCase()==t.entityName.toLowerCase()&&(o.value=d)}},l=()=>{t.onEntityChangeCallback(o.value.name)};return s.watch(()=>e.globalConfigs.appId,async c=>{c&&await i()},{immediate:!0}),(c,d)=>{const u=s.resolveComponent("Select");return s.openBlock(),s.createElementBlock("div",jk,[s.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":[d[0]||(d[0]=f=>o.value=f),l],options:n.value,filter:"",optionLabel:"name",placeholder:"Select entity",class:"w-full"},{value:s.withCtx(f=>[f.value?(s.openBlock(),s.createElementBlock("div",Wk,[s.createElementVNode("div",null,s.toDisplayString(f.value.name),1)])):(s.openBlock(),s.createElementBlock("span",Hk,s.toDisplayString(f.placeholder),1))]),option:s.withCtx(f=>[s.createElementVNode("div",Uk,[s.createElementVNode("div",null,s.toDisplayString(f.option.name),1)])]),_:1},8,["modelValue","options"])])}}},Nc=6048e5,qk=864e5,Tc=Symbol.for("constructDateFrom");function oo(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Tc in t?t[Tc](e):t instanceof Date?new t.constructor(e):new Date(e)}function kt(t,e){return oo(e||t,t)}let Yk={};function Vn(){return Yk}function _r(t,e){var l,c,d,u;const o=Vn(),r=(e==null?void 0:e.weekStartsOn)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??o.weekStartsOn??((u=(d=o.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,n=kt(t,e==null?void 0:e.in),i=n.getDay(),a=(i<r?7:0)+i-r;return n.setDate(n.getDate()-a),n.setHours(0,0,0,0),n}function Ln(t,e){return _r(t,{...e,weekStartsOn:1})}function Pc(t,e){const o=kt(t,e==null?void 0:e.in),r=o.getFullYear(),n=oo(o,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const i=Ln(n),a=oo(o,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const l=Ln(a);return o.getTime()>=i.getTime()?r+1:o.getTime()>=l.getTime()?r:r-1}function Ac(t){const e=kt(t),o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return o.setUTCFullYear(e.getFullYear()),+t-+o}function Xk(t,...e){const o=oo.bind(null,e.find(r=>typeof r=="object"));return e.map(o)}function $c(t,e){const o=kt(t,e==null?void 0:e.in);return o.setHours(0,0,0,0),o}function Kk(t,e,o){const[r,n]=Xk(o==null?void 0:o.in,t,e),i=$c(r),a=$c(n),l=+i-Ac(i),c=+a-Ac(a);return Math.round((l-c)/qk)}function Gk(t,e){const o=Pc(t,e),r=oo(t,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),Ln(r)}function Qk(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Jk(t){return!(!Qk(t)&&typeof t!="number"||isNaN(+kt(t)))}function Zk(t,e){const o=kt(t,e==null?void 0:e.in);return o.setFullYear(o.getFullYear(),0,1),o.setHours(0,0,0,0),o}const ex={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"}},tx=(t,e,o)=>{let r;const n=ex[t];return typeof n=="string"?r=n:e===1?r=n.one:r=n.other.replace("{{count}}",e.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};function ua(t){return(e={})=>{const o=e.width?String(e.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}const ox={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},rx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},nx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ix={date:ua({formats:ox,defaultWidth:"full"}),time:ua({formats:rx,defaultWidth:"full"}),dateTime:ua({formats:nx,defaultWidth:"full"})},ax={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sx=(t,e,o,r)=>ax[t];function Sr(t){return(e,o)=>{const r=o!=null&&o.context?String(o.context):"standalone";let n;if(r==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,l=o!=null&&o.width?String(o.width):a;n=t.formattingValues[l]||t.formattingValues[a]}else{const a=t.defaultWidth,l=o!=null&&o.width?String(o.width):t.defaultWidth;n=t.values[l]||t.values[a]}const i=t.argumentCallback?t.argumentCallback(e):e;return n[i]}}const lx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dx={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"]},ux={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"]},fx={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"}},hx={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"}},gx={ordinalNumber:(t,e)=>{const o=Number(t),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},era:Sr({values:lx,defaultWidth:"wide"}),quarter:Sr({values:cx,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Sr({values:dx,defaultWidth:"wide"}),day:Sr({values:ux,defaultWidth:"wide"}),dayPeriod:Sr({values:fx,defaultWidth:"wide",formattingValues:hx,defaultFormattingWidth:"wide"})};function Br(t){return(e,o={})=>{const r=o.width,n=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(n);if(!i)return null;const a=i[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?px(l,f=>f.test(a)):mx(l,f=>f.test(a));let d;d=t.valueCallback?t.valueCallback(c):c,d=o.valueCallback?o.valueCallback(d):d;const u=e.slice(a.length);return{value:d,rest:u}}}function mx(t,e){for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&e(t[o]))return o}function px(t,e){for(let o=0;o<t.length;o++)if(e(t[o]))return o}function bx(t){return(e,o={})=>{const r=e.match(t.matchPattern);if(!r)return null;const n=r[0],i=e.match(t.parsePattern);if(!i)return null;let a=t.valueCallback?t.valueCallback(i[0]):i[0];a=o.valueCallback?o.valueCallback(a):a;const l=e.slice(n.length);return{value:a,rest:l}}}const yx=/^(\d+)(th|st|nd|rd)?/i,kx=/\d+/i,xx={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},vx={any:[/^b/i,/^(a|c)/i]},wx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Cx={any:[/1/i,/2/i,/3/i,/4/i]},_x={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},Sx={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]},Bx={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},Ex={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]},Rx={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},Ox={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}},Dx={ordinalNumber:bx({matchPattern:yx,parsePattern:kx,valueCallback:t=>parseInt(t,10)}),era:Br({matchPatterns:xx,defaultMatchWidth:"wide",parsePatterns:vx,defaultParseWidth:"any"}),quarter:Br({matchPatterns:wx,defaultMatchWidth:"wide",parsePatterns:Cx,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Br({matchPatterns:_x,defaultMatchWidth:"wide",parsePatterns:Sx,defaultParseWidth:"any"}),day:Br({matchPatterns:Bx,defaultMatchWidth:"wide",parsePatterns:Ex,defaultParseWidth:"any"}),dayPeriod:Br({matchPatterns:Rx,defaultMatchWidth:"any",parsePatterns:Ox,defaultParseWidth:"any"})},Nx={code:"en-US",formatDistance:tx,formatLong:ix,formatRelative:sx,localize:gx,match:Dx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Tx(t,e){const o=kt(t,e==null?void 0:e.in);return Kk(o,Zk(o))+1}function Px(t,e){const o=kt(t,e==null?void 0:e.in),r=+Ln(o)-+Gk(o);return Math.round(r/Nc)+1}function Mc(t,e){var u,f,h,g;const o=kt(t,e==null?void 0:e.in),r=o.getFullYear(),n=Vn(),i=(e==null?void 0:e.firstWeekContainsDate)??((f=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((g=(h=n.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,a=oo((e==null?void 0:e.in)||t,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const l=_r(a,e),c=oo((e==null?void 0:e.in)||t,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const d=_r(c,e);return+o>=+l?r+1:+o>=+d?r:r-1}function Ax(t,e){var l,c,d,u;const o=Vn(),r=(e==null?void 0:e.firstWeekContainsDate)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??o.firstWeekContainsDate??((u=(d=o.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,n=Mc(t,e),i=oo((e==null?void 0:e.in)||t,0);return i.setFullYear(n,0,r),i.setHours(0,0,0,0),_r(i,e)}function $x(t,e){const o=kt(t,e==null?void 0:e.in),r=+_r(o,e)-+Ax(o,e);return Math.round(r/Nc)+1}function be(t,e){const o=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return o+r}const ro={y(t,e){const o=t.getFullYear(),r=o>0?o:1-o;return be(e==="yy"?r%100:r,e.length)},M(t,e){const o=t.getMonth();return e==="M"?String(o+1):be(o+1,2)},d(t,e){return be(t.getDate(),e.length)},a(t,e){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h(t,e){return be(t.getHours()%12||12,e.length)},H(t,e){return be(t.getHours(),e.length)},m(t,e){return be(t.getMinutes(),e.length)},s(t,e){return be(t.getSeconds(),e.length)},S(t,e){const o=e.length,r=t.getMilliseconds(),n=Math.trunc(r*Math.pow(10,o-3));return be(n,e.length)}},Uo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Fc={G:function(t,e,o){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})}},y:function(t,e,o){if(e==="yo"){const r=t.getFullYear(),n=r>0?r:1-r;return o.ordinalNumber(n,{unit:"year"})}return ro.y(t,e)},Y:function(t,e,o,r){const n=Mc(t,r),i=n>0?n:1-n;if(e==="YY"){const a=i%100;return be(a,2)}return e==="Yo"?o.ordinalNumber(i,{unit:"year"}):be(i,e.length)},R:function(t,e){const o=Pc(t);return be(o,e.length)},u:function(t,e){const o=t.getFullYear();return be(o,e.length)},Q:function(t,e,o){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return be(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,o){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return be(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,o){const r=t.getMonth();switch(e){case"M":case"MM":return ro.M(t,e);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,o){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return be(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,o,r){const n=$x(t,r);return e==="wo"?o.ordinalNumber(n,{unit:"week"}):be(n,e.length)},I:function(t,e,o){const r=Px(t);return e==="Io"?o.ordinalNumber(r,{unit:"week"}):be(r,e.length)},d:function(t,e,o){return e==="do"?o.ordinalNumber(t.getDate(),{unit:"date"}):ro.d(t,e)},D:function(t,e,o){const r=Tx(t);return e==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):be(r,e.length)},E:function(t,e,o){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,o,r){const n=t.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return be(i,2);case"eo":return o.ordinalNumber(i,{unit:"day"});case"eee":return o.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,o,r){const n=t.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return be(i,e.length);case"co":return o.ordinalNumber(i,{unit:"day"});case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,o){const r=t.getDay(),n=r===0?7:r;switch(e){case"i":return String(n);case"ii":return be(n,e.length);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,o){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,o){const r=t.getHours();let n;switch(r===12?n=Uo.noon:r===0?n=Uo.midnight:n=r/12>=1?"pm":"am",e){case"b":case"bb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,o){const r=t.getHours();let n;switch(r>=17?n=Uo.evening:r>=12?n=Uo.afternoon:r>=4?n=Uo.morning:n=Uo.night,e){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,o){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return ro.h(t,e)},H:function(t,e,o){return e==="Ho"?o.ordinalNumber(t.getHours(),{unit:"hour"}):ro.H(t,e)},K:function(t,e,o){const r=t.getHours()%12;return e==="Ko"?o.ordinalNumber(r,{unit:"hour"}):be(r,e.length)},k:function(t,e,o){let r=t.getHours();return r===0&&(r=24),e==="ko"?o.ordinalNumber(r,{unit:"hour"}):be(r,e.length)},m:function(t,e,o){return e==="mo"?o.ordinalNumber(t.getMinutes(),{unit:"minute"}):ro.m(t,e)},s:function(t,e,o){return e==="so"?o.ordinalNumber(t.getSeconds(),{unit:"second"}):ro.s(t,e)},S:function(t,e){return ro.S(t,e)},X:function(t,e,o){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Lc(r);case"XXXX":case"XX":return _o(r);case"XXXXX":case"XXX":default:return _o(r,":")}},x:function(t,e,o){const r=t.getTimezoneOffset();switch(e){case"x":return Lc(r);case"xxxx":case"xx":return _o(r);case"xxxxx":case"xxx":default:return _o(r,":")}},O:function(t,e,o){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Vc(r,":");case"OOOO":default:return"GMT"+_o(r,":")}},z:function(t,e,o){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Vc(r,":");case"zzzz":default:return"GMT"+_o(r,":")}},t:function(t,e,o){const r=Math.trunc(+t/1e3);return be(r,e.length)},T:function(t,e,o){return be(+t,e.length)}};function Vc(t,e=""){const o=t>0?"-":"+",r=Math.abs(t),n=Math.trunc(r/60),i=r%60;return i===0?o+String(n):o+String(n)+e+be(i,2)}function Lc(t,e){return t%60===0?(t>0?"-":"+")+be(Math.abs(t)/60,2):_o(t,e)}function _o(t,e=""){const o=t>0?"-":"+",r=Math.abs(t),n=be(Math.trunc(r/60),2),i=be(r%60,2);return o+n+e+i}const Ic=(t,e)=>{switch(t){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"})}},zc=(t,e)=>{switch(t){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"})}},Mx={p:zc,P:(t,e)=>{const o=t.match(/(P+)(p+)?/)||[],r=o[1],n=o[2];if(!n)return Ic(t,e);let i;switch(r){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}}",Ic(r,e)).replace("{{time}}",zc(n,e))}},Fx=/^D+$/,Vx=/^Y+$/,Lx=["D","DD","YY","YYYY"];function Ix(t){return Fx.test(t)}function zx(t){return Vx.test(t)}function jx(t,e,o){const r=Wx(t,e,o);if(console.warn(r),Lx.includes(t))throw new RangeError(r)}function Wx(t,e,o){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Hx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ux=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qx=/^'([^]*?)'?$/,Yx=/''/g,Xx=/[a-zA-Z]/;function Kx(t,e,o){var u,f,h,g;const r=Vn(),n=r.locale??Nx,i=r.firstWeekContainsDate??((f=(u=r.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,a=r.weekStartsOn??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,l=kt(t,o==null?void 0:o.in);if(!Jk(l))throw new RangeError("Invalid time value");let c=e.match(Ux).map(m=>{const p=m[0];if(p==="p"||p==="P"){const b=Mx[p];return b(m,n.formatLong)}return m}).join("").match(Hx).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const p=m[0];if(p==="'")return{isToken:!1,value:Gx(m)};if(Fc[p])return{isToken:!0,value:m};if(p.match(Xx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:m}});n.localize.preprocessor&&(c=n.localize.preprocessor(l,c));const d={firstWeekContainsDate:i,weekStartsOn:a,locale:n};return c.map(m=>{if(!m.isToken)return m.value;const p=m.value;(zx(p)||Ix(p))&&jx(p,e,String(t));const b=Fc[p[0]];return b(l,p,n.localize,d)}).join("")}function Gx(t){const e=t.match(qx);return e?e[1].replace(Yx,"'"):t}var In={exports:{}};/*! @preserve
|
|
166
167
|
* numeral.js
|
|
167
168
|
* version : 2.0.6
|
|
168
169
|
* author : Adam Draper
|
|
169
170
|
* license : MIT
|
|
170
171
|
* http://adamwdraper.github.com/Numeral-js/
|
|
171
|
-
*/var Gx=Ln.exports,zc;function Qx(){return zc||(zc=1,function(t){(function(e,o){t.exports?t.exports=o():e.numeral=o()})(Gx,function(){var e,o,r="2.0.6",n={},i={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function c(d,u){this._input=d,this._value=u}return e=function(d){var u,f,h,g;if(e.isNumeral(d))u=d.value();else if(d===0||typeof d>"u")u=0;else if(d===null||o.isNaN(d))u=null;else if(typeof d=="string")if(l.zeroFormat&&d===l.zeroFormat)u=0;else if(l.nullFormat&&d===l.nullFormat||!d.replace(/[^0-9]+/g,"").length)u=null;else{for(f in n)if(g=typeof n[f].regexps.unformat=="function"?n[f].regexps.unformat():n[f].regexps.unformat,g&&d.match(g)){h=n[f].unformat;break}h=h||e._.stringToNumber,u=h(d)}else u=Number(d)||null;return new c(d,u)},e.version=r,e.isNumeral=function(d){return d instanceof c},e._=o={numberToFormat:function(d,u,f){var h=i[e.options.currentLocale],g=!1,m=!1,p=0,b="",y=1e12,x=1e9,C=1e6,B=1e3,w="",_=!1,v,k,S,N,E,D,M;if(d=d||0,k=Math.abs(d),e._.includes(u,"(")?(g=!0,u=u.replace(/[\(|\)]/g,"")):(e._.includes(u,"+")||e._.includes(u,"-"))&&(E=e._.includes(u,"+")?u.indexOf("+"):d<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),e._.includes(u,"a")&&(v=u.match(/a(k|m|b|t)?/),v=v?v[1]:!1,e._.includes(u," a")&&(b=" "),u=u.replace(new RegExp(b+"a[kmbt]?"),""),k>=y&&!v||v==="t"?(b+=h.abbreviations.trillion,d=d/y):k<y&&k>=x&&!v||v==="b"?(b+=h.abbreviations.billion,d=d/x):k<x&&k>=C&&!v||v==="m"?(b+=h.abbreviations.million,d=d/C):(k<C&&k>=B&&!v||v==="k")&&(b+=h.abbreviations.thousand,d=d/B)),e._.includes(u,"[.]")&&(m=!0,u=u.replace("[.]",".")),S=d.toString().split(".")[0],N=u.split(".")[1],D=u.indexOf(","),p=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,N?(e._.includes(N,"[")?(N=N.replace("]",""),N=N.split("["),w=e._.toFixed(d,N[0].length+N[1].length,f,N[1].length)):w=e._.toFixed(d,N.length,f),S=w.split(".")[0],e._.includes(w,".")?w=h.delimiters.decimal+w.split(".")[1]:w="",m&&Number(w.slice(1))===0&&(w="")):S=e._.toFixed(d,0,f),b&&!v&&Number(S)>=1e3&&b!==h.abbreviations.trillion)switch(S=String(Number(S)/1e3),b){case h.abbreviations.thousand:b=h.abbreviations.million;break;case h.abbreviations.million:b=h.abbreviations.billion;break;case h.abbreviations.billion:b=h.abbreviations.trillion;break}if(e._.includes(S,"-")&&(S=S.slice(1),_=!0),S.length<p)for(var T=p-S.length;T>0;T--)S="0"+S;return D>-1&&(S=S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),u.indexOf(".")===0&&(S=""),M=S+w+(b||""),g?M=(g&&_?"(":"")+M+(g&&_?")":""):E>=0?M=E===0?(_?"-":"+")+M:M+(_?"-":"+"):_&&(M="-"+M),M},stringToNumber:function(d){var u=i[l.currentLocale],f=d,h={thousand:3,million:6,billion:9,trillion:12},g,m,p;if(l.zeroFormat&&d===l.zeroFormat)m=0;else if(l.nullFormat&&d===l.nullFormat||!d.replace(/[^0-9]+/g,"").length)m=null;else{m=1,u.delimiters.decimal!=="."&&(d=d.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(g in h)if(p=new RegExp("[^a-zA-Z]"+u.abbreviations[g]+"(?:\\)|(\\"+u.currency.symbol+")?(?:\\))?)?$"),f.match(p)){m*=Math.pow(10,h[g]);break}m*=(d.split("-").length+Math.min(d.split("(").length-1,d.split(")").length-1))%2?1:-1,d=d.replace(/[^0-9\.]+/g,""),m*=Number(d)}return m},isNaN:function(d){return typeof d=="number"&&isNaN(d)},includes:function(d,u){return d.indexOf(u)!==-1},insert:function(d,u,f){return d.slice(0,f)+u+d.slice(f)},reduce:function(d,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" is not a function");var f=Object(d),h=f.length>>>0,g=0,m;if(arguments.length===3)m=arguments[2];else{for(;g<h&&!(g in f);)g++;if(g>=h)throw new TypeError("Reduce of empty array with no initial value");m=f[g++]}for(;g<h;g++)g in f&&(m=u(m,f[g],g,f));return m},multiplier:function(d){var u=d.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var d=Array.prototype.slice.call(arguments);return d.reduce(function(u,f){var h=o.multiplier(f);return u>h?u:h},1)},toFixed:function(d,u,f,h){var g=d.toString().split("."),m=u-(h||0),p,b,y,x;return g.length===2?p=Math.min(Math.max(g[1].length,m),u):p=m,y=Math.pow(10,p),x=(f(d+"e+"+p)/y).toFixed(p),h>u-p&&(b=new RegExp("\\.?0{1,"+(h-(u-p))+"}$"),x=x.replace(b,"")),x}},e.options=l,e.formats=n,e.locales=i,e.locale=function(d){return d&&(l.currentLocale=d.toLowerCase()),l.currentLocale},e.localeData=function(d){if(!d)return i[l.currentLocale];if(d=d.toLowerCase(),!i[d])throw new Error("Unknown locale : "+d);return i[d]},e.reset=function(){for(var d in s)l[d]=s[d]},e.zeroFormat=function(d){l.zeroFormat=typeof d=="string"?d:null},e.nullFormat=function(d){l.nullFormat=typeof d=="string"?d:null},e.defaultFormat=function(d){l.defaultFormat=typeof d=="string"?d:"0.0"},e.register=function(d,u,f){if(u=u.toLowerCase(),this[d+"s"][u])throw new TypeError(u+" "+d+" already registered.");return this[d+"s"][u]=f,f},e.validate=function(d,u){var f,h,g,m,p,b,y,x;if(typeof d!="string"&&(d+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",d)),d=d.trim(),d.match(/^\d+$/))return!0;if(d==="")return!1;try{y=e.localeData(u)}catch{y=e.localeData(e.locale())}return g=y.currency.symbol,p=y.abbreviations,f=y.delimiters.decimal,y.delimiters.thousands==="."?h="\\.":h=y.delimiters.thousands,x=d.match(/^[^\d]+/),x!==null&&(d=d.substr(1),x[0]!==g)||(x=d.match(/[^\d]+$/),x!==null&&(d=d.slice(0,-1),x[0]!==p.thousand&&x[0]!==p.million&&x[0]!==p.billion&&x[0]!==p.trillion))?!1:(b=new RegExp(h+"{2}"),d.match(/[^\d.,]/g)?!1:(m=d.split(f),m.length>2?!1:m.length<2?!!m[0].match(/^\d+.*\d$/)&&!m[0].match(b):m[0].length===1?!!m[0].match(/^\d+$/)&&!m[0].match(b)&&!!m[1].match(/^\d+$/):!!m[0].match(/^\d+.*\d$/)&&!m[0].match(b)&&!!m[1].match(/^\d+$/)))},e.fn=c.prototype={clone:function(){return e(this)},format:function(d,u){var f=this._value,h=d||l.defaultFormat,g,m,p;if(u=u||Math.round,f===0&&l.zeroFormat!==null)m=l.zeroFormat;else if(f===null&&l.nullFormat!==null)m=l.nullFormat;else{for(g in n)if(h.match(n[g].regexps.format)){p=n[g].format;break}p=p||e._.numberToFormat,m=p(f,h,u)}return m},value:function(){return this._value},input:function(){return this._input},set:function(d){return this._value=Number(d),this},add:function(d){var u=o.correctionFactor.call(null,this._value,d);function f(h,g,m,p){return h+Math.round(u*g)}return this._value=o.reduce([this._value,d],f,0)/u,this},subtract:function(d){var u=o.correctionFactor.call(null,this._value,d);function f(h,g,m,p){return h-Math.round(u*g)}return this._value=o.reduce([d],f,Math.round(this._value*u))/u,this},multiply:function(d){function u(f,h,g,m){var p=o.correctionFactor(f,h);return Math.round(f*p)*Math.round(h*p)/Math.round(p*p)}return this._value=o.reduce([this._value,d],u,1),this},divide:function(d){function u(f,h,g,m){var p=o.correctionFactor(f,h);return Math.round(f*p)/Math.round(h*p)}return this._value=o.reduce([this._value,d],u),this},difference:function(d){return Math.abs(e(this._value).subtract(d).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(d){var u=d%10;return~~(d%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(d,u,f){var h=e._.includes(u," BPS")?" ":"",g;return d=d*1e4,u=u.replace(/\s?BPS/,""),g=e._.numberToFormat(d,u,f),e._.includes(g,")")?(g=g.split(""),g.splice(-1,0,h+"BPS"),g=g.join("")):g=g+h+"BPS",g},unformat:function(d){return+(e._.stringToNumber(d)*1e-4).toFixed(15)}})}(),function(){var d={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=d.suffixes.concat(u.suffixes.filter(function(g){return d.suffixes.indexOf(g)<0})),h=f.join("|");h="("+h.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(g,m,p){var b,y=e._.includes(m,"ib")?u:d,x=e._.includes(m," b")||e._.includes(m," ib")?" ":"",C,B,w;for(m=m.replace(/\s?i?b/,""),C=0;C<=y.suffixes.length;C++)if(B=Math.pow(y.base,C),w=Math.pow(y.base,C+1),g===null||g===0||g>=B&&g<w){x+=y.suffixes[C],B>0&&(g=g/B);break}return b=e._.numberToFormat(g,m,p),b+x},unformat:function(g){var m=e._.stringToNumber(g),p,b;if(m){for(p=d.suffixes.length-1;p>=0;p--){if(e._.includes(g,d.suffixes[p])){b=Math.pow(d.base,p);break}if(e._.includes(g,u.suffixes[p])){b=Math.pow(u.base,p);break}}m*=b||1}return m}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(d,u,f){var h=e.locales[e.options.currentLocale],g={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},m,p,b;for(u=u.replace(/\s?\$\s?/,""),m=e._.numberToFormat(d,u,f),d>=0?(g.before=g.before.replace(/[\-\(]/,""),g.after=g.after.replace(/[\-\)]/,"")):d<0&&!e._.includes(g.before,"-")&&!e._.includes(g.before,"(")&&(g.before="-"+g.before),b=0;b<g.before.length;b++)switch(p=g.before[b],p){case"$":m=e._.insert(m,h.currency.symbol,b);break;case" ":m=e._.insert(m," ",b+h.currency.symbol.length-1);break}for(b=g.after.length-1;b>=0;b--)switch(p=g.after[b],p){case"$":m=b===g.after.length-1?m+h.currency.symbol:e._.insert(m,h.currency.symbol,-(g.after.length-(1+b)));break;case" ":m=b===g.after.length-1?m+" ":e._.insert(m," ",-(g.after.length-(1+b)+h.currency.symbol.length-1));break}return m}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(d,u,f){var h,g=typeof d=="number"&&!e._.isNaN(d)?d.toExponential():"0e+0",m=g.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),h=e._.numberToFormat(Number(m[0]),u,f),h+"e"+m[1]},unformat:function(d){var u=e._.includes(d,"e+")?d.split("e+"):d.split("e-"),f=Number(u[0]),h=Number(u[1]);h=e._.includes(d,"e-")?h*=-1:h;function g(m,p,b,y){var x=e._.correctionFactor(m,p),C=m*x*(p*x)/(x*x);return C}return e._.reduce([f,Math.pow(10,h)],g,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(d,u,f){var h=e.locales[e.options.currentLocale],g,m=e._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),m+=h.ordinal(d),g=e._.numberToFormat(d,u,f),g+m}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(d,u,f){var h=e._.includes(u," %")?" ":"",g;return e.options.scalePercentBy100&&(d=d*100),u=u.replace(/\s?\%/,""),g=e._.numberToFormat(d,u,f),e._.includes(g,")")?(g=g.split(""),g.splice(-1,0,h+"%"),g=g.join("")):g=g+h+"%",g},unformat:function(d){var u=e._.stringToNumber(d);return e.options.scalePercentBy100?u*.01:u}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(d,u,f){var h=Math.floor(d/60/60),g=Math.floor((d-h*60*60)/60),m=Math.round(d-h*60*60-g*60);return h+":"+(g<10?"0"+g:g)+":"+(m<10?"0"+m:m)},unformat:function(d){var u=d.split(":"),f=0;return u.length===3?(f=f+Number(u[0])*60*60,f=f+Number(u[1])*60,f=f+Number(u[2])):u.length===2&&(f=f+Number(u[0])*60,f=f+Number(u[1])),Number(f)}})}(),e})}(Ln)),Ln.exports}var Jx=Qx();const jc=ul(Jx),Wc={__name:"FieldExpression",props:["value","type","displayFormat"],setup(t){const e=a.computed(()=>o()),o=()=>t.type==="DATE"?r():t.type==="NUMBER"?n():t.value,r=()=>Xx(t.value,t.displayFormat?t.displayFormat:"MM/dd/yyyy"),n=()=>t.displayFormat?t.displayFormat==="currency"?jc(t.value).format("$0,0.00"):jc(t.value).format(t.displayFormat):t.value;return(i,s)=>(a.openBlock(),a.createElementBlock("span",null,a.toDisplayString(e.value),1))}},Zx={class:"flex flex-col w-full"},ev={class:"w-1/4"},tv={class:"w-full mt-5"},Hc={__name:"EntityExplorer",props:{entityName:String},setup(t){const e=t,o=a.ref(e.entityName);a.watch(o,n=>{console.log("Entity changed to:",n)});const r=n=>{o.value=n};return(n,i)=>(a.openBlock(),a.createElementBlock("div",Zx,[a.createElementVNode("div",ev,[(a.openBlock(),a.createBlock(da,{key:o.value,entityName:o.value,onEntityChangeCallback:r},null,8,["entityName"]))]),a.createElementVNode("div",tv,[(a.openBlock(),a.createBlock(oa,{key:o.value,entityName:o.value},null,8,["entityName"]))])]))}},ov=["onMouseenter","onMouseleave"],rv=["onClick"],nv=["onClick"],iv={class:"ml-2"},av=["onClick"],sv=["href"],lv={class:"ml-2"},cv=Te({__name:"SampleMenu",props:{menu:String,layoutType:{type:String,default:"vertical",validator:t=>["horizontal","vertical"].includes(t)},menuName:{type:String,required:!0},variable:String,menuItems:Array},emits:["menuItems"],setup(t,{expose:e,emit:o}){const r=Ke.useRouter(),n=o,i=a.ref([]),s=t;a.onMounted(async()=>{console.log("Menu component mounted",s.menuItems);try{if(s.menuItems)i.value=s.menuItems;else{const d=await $e.get("https://mocki.io/v1/8955d801-36fb-4499-9d7d-6f7329fc8407");i.value=d.data.response}console.log("menuItems.value",i.value),i.value.forEach(d=>{d.children&&d.children.length>0&&(d.isOpen=!1),n("menuItems",i.value)})}catch(d){console.error("Error fetching menu items:",d)}});const l=d=>{i.value[d]&&i.value[d].children&&i.value[d].children.length>0&&(i.value[d].isOpen=!i.value[d].isOpen)},c=d=>{console.log("urlbdfkjdbfjkdbfkdfbdk"),r.push(i.value[index].url)};return e({props:s,goToUrl:c,toggleDropdown:l}),(d,u)=>(a.openBlock(),a.createElementBlock("div",{class:"card rounded-none p-0",style:a.normalizeStyle(t.layoutType==="horizontal"?"width: 100%;":"width: 10%;")},[a.createElementVNode("ul",{class:a.normalizeClass(["layout-menu",[t.layoutType==="horizontal"?"layout-menu-horizontal p-0 m-0 flex flex-row":"layout-menu-vertical p-0 m-0"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(f,h)=>(a.openBlock(),a.createElementBlock("li",{key:f.id,class:a.normalizeClass(["layout-root-menuitem relative",{"is-open":f.isOpen}]),onMouseenter:g=>l(h),onMouseleave:g=>l(h)},[d.$slots["list-item-menu-parent"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:g=>c()},[a.renderSlot(d.$slots,"list-item-menu-parent",a.normalizeProps({[t.variable||""]:f}),void 0,!0)],8,rv)):(a.openBlock(),a.createElementBlock("a",{key:1,onClick:g=>c(),href:"#",class:"flex items-center p-3 text-primary-color cursor-pointer transition-colors duration-300"},[u[0]||(u[0]=a.createElementVNode("i",{class:"pi pi-home text-xl"},null,-1)),a.createElementVNode("span",iv,a.toDisplayString(f.displayLabel),1)],8,nv)),f.isOpen?(a.openBlock(),a.createElementBlock("ul",{key:2,class:a.normalizeClass(["submenu",[t.layoutType==="horizontal"?"submenu-horizontal absolute top-full left-0 bg-white shadow-md z-1000":"submenu-vertical pl-5"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.children,(g,m)=>(a.openBlock(),a.createElementBlock("li",{key:g.id},[d.$slots["list-item-menu-child"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:p=>l(h)},[a.renderSlot(d.$slots,"list-item-menu-child",a.normalizeProps({[t.variable||""]:g}),void 0,!0)],8,av)):(a.openBlock(),a.createElementBlock("a",{key:1,href:g.url,class:"layout-submenu-item flex items-center p-3 text-primary-color cursor-pointer transition-colors duration-300"},[u[1]||(u[1]=a.createElementVNode("i",{class:"pi pi-bars text-xl"},null,-1)),a.createElementVNode("span",lv,a.toDisplayString(g.displayLabel),1)],8,sv))]))),128))],2)):a.createCommentVNode("",!0)],42,ov))),128))],2)],4))}},[["__scopeId","data-v-8f1c5b51"]]),dv=["onMouseenter","onMouseleave"],uv=["onClick"],fv=["onClick"],hv={class:"ml-2"},gv=["onClick"],mv=["href"],pv={class:"ml-2"},bv=Te({__name:"ContraMenu",props:{menu:String,layoutType:{type:String,default:"vertical",validator:t=>["horizontal","vertical"].includes(t)},menuName:{type:String,required:!0},variable:String,menuItems:Array},setup(t){const e=Ke.useRouter(),o=a.ref([]),r=t;a.onMounted(()=>{o.value=r.menuItems,o.value.forEach(s=>{s.children&&s.children.length>0&&(s.isOpen=!1)})});const n=s=>{o.value[s]&&o.value[s].children&&o.value[s].children.length>0&&(o.value[s].isOpen=!o.value[s].isOpen)},i=s=>{e.push(o.value[index].url)};return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:"card rounded-none p-0",style:a.normalizeStyle(t.layoutType==="horizontal"?"width: 100%;":"width: 10%;")},[a.createElementVNode("ul",{class:a.normalizeClass(["layout-menu",[t.layoutType==="horizontal"?"layout-menu-horizontal p-0 m-0 flex flex-row space-x-6":"layout-menu-vertical p-0 m-0"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:c.id,class:a.normalizeClass(["layout-root-menuitem relative group",{"is-open":c.isOpen}]),onMouseenter:u=>n(d),onMouseleave:u=>n(d)},[s.$slots["list-item-menu-parent"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:u=>i()},[a.renderSlot(s.$slots,"list-item-menu-parent",a.normalizeProps({[t.variable||""]:c}),void 0,!0)],8,uv)):(a.openBlock(),a.createElementBlock("a",{key:1,onClick:u=>i(),class:"flex items-center p-3 text-white hover:text-green-500 cursor-pointer transition-all duration-300 ease-in-out group-hover:bg-gradient-to-r from-green-400 to-green-600 group-hover:shadow-xl rounded-md"},[l[0]||(l[0]=a.createElementVNode("i",{class:"pi pi-home text-xl"},null,-1)),a.createElementVNode("span",hv,a.toDisplayString(c.displayLabel),1)],8,fv)),c.isOpen?(a.openBlock(),a.createElementBlock("ul",{key:2,class:a.normalizeClass(["submenu transition-all ease-in-out duration-300 opacity-0",[t.layoutType==="horizontal"?"submenu-horizontal absolute top-full left-0 bg-black text-white shadow-lg rounded-md p-2":"submenu-vertical pl-5 mt-2 bg-black text-white shadow-lg rounded-md"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(u,f)=>(a.openBlock(),a.createElementBlock("li",{key:u.id},[s.$slots["list-item-menu-child"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:h=>n(d)},[a.renderSlot(s.$slots,"list-item-menu-child",a.normalizeProps({[t.variable||""]:u}),void 0,!0)],8,gv)):(a.openBlock(),a.createElementBlock("a",{key:1,href:u.url,class:"layout-submenu-item flex items-center p-3 text-white hover:text-green-500 cursor-pointer transition-all duration-300 ease-in-out"},[l[1]||(l[1]=a.createElementVNode("i",{class:"pi pi-bars text-xl"},null,-1)),a.createElementVNode("span",pv,a.toDisplayString(u.displayLabel),1)],8,mv))]))),128))],2)):a.createCommentVNode("",!0)],42,dv))),128))],2)],4))}},[["__scopeId","data-v-198f3d06"]]),yv=["onMouseenter","onMouseleave"],kv=["onClick"],xv=["onClick"],vv={class:"ml-2"},wv=["onClick"],Cv=["href"],_v={class:"ml-2"},Sv=Te({__name:"UltraLightMenu",props:{menu:String,layoutType:{type:String,default:"vertical",validator:t=>["horizontal","vertical"].includes(t)},menuName:{type:String,required:!0},variable:String,menuItems:Array},setup(t){const e=Ke.useRouter(),o=a.ref([]),r=t;a.onMounted(async()=>{console.log("Menu component mounted",r.menuItems);try{if(r.menuItems)o.value=r.menuItems;else{const s=await $e.get("https://mocki.io/v1/8955d801-36fb-4499-9d7d-6f7329fc8407");o.value=s.data.response}console.log("menuItems.value",o.value),o.value.forEach(s=>{s.children&&s.children.length>0&&(s.isOpen=!1)})}catch(s){console.error("Error fetching menu items:",s)}});const n=s=>{o.value[s]&&o.value[s].children&&o.value[s].children.length>0&&(o.value[s].isOpen=!o.value[s].isOpen)},i=s=>{e.push(o.value[s].url)};return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:"card rounded-none p-0",style:a.normalizeStyle(t.layoutType==="horizontal"?"width: 100%;":"width: 250px;")},[a.createElementVNode("ul",{class:a.normalizeClass(["layout-menu",[t.layoutType==="horizontal"?"layout-menu-horizontal p-0 m-0 flex flex-row justify-around":"layout-menu-vertical p-0 m-0"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:c.id,class:a.normalizeClass(["layout-root-menuitem relative",{"is-open":c.isOpen}]),onMouseenter:u=>n(d),onMouseleave:u=>n(d)},[s.$slots["list-item-menu-parent"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:u=>i(d),class:"menu-item"},[a.renderSlot(s.$slots,"list-item-menu-parent",a.normalizeProps({[t.variable||""]:c}),void 0,!0)],8,kv)):(a.openBlock(),a.createElementBlock("a",{key:1,onClick:u=>i(d),href:"#",class:"flex items-center p-4 text-white rounded-lg cursor-pointer transition-all duration-300 transform hover:scale-105 menu-item"},[l[0]||(l[0]=a.createElementVNode("i",{class:"pi pi-home text-xl"},null,-1)),a.createElementVNode("span",vv,a.toDisplayString(c.displayLabel),1)],8,xv)),c.isOpen?(a.openBlock(),a.createElementBlock("ul",{key:2,class:a.normalizeClass(["submenu transition-all ease-in-out duration-300",[t.layoutType==="horizontal"?"submenu-horizontal absolute top-full left-0 bg-blue-600 shadow-xl rounded-lg z-1000":"submenu-vertical pl-5 mt-2 text-white shadow-md rounded-md"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(u,f)=>(a.openBlock(),a.createElementBlock("li",{key:u.id},[s.$slots["list-item-menu-child"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:h=>n(d),class:"submenu-item"},[a.renderSlot(s.$slots,"list-item-menu-child",a.normalizeProps({[t.variable||""]:u}),void 0,!0)],8,wv)):(a.openBlock(),a.createElementBlock("a",{key:1,href:u.url,class:"layout-submenu-item flex items-center p-3 text-white hover:text-blue-400 cursor-pointer transition-all duration-300 transform hover:scale-105"},[l[1]||(l[1]=a.createElementVNode("i",{class:"pi pi-bars text-xl"},null,-1)),a.createElementVNode("span",_v,a.toDisplayString(u.displayLabel),1)],8,Cv))]))),128))],2)):a.createCommentVNode("",!0)],42,yv))),128))],2)],4))}},[["__scopeId","data-v-70c2ee80"]]),Bv={key:0},Ev={key:1},Uc=Te({__name:"Menu",props:{menuName:{type:String,required:!0},menu:String,layoutType:{type:String,default:"vertical",validator:t=>["horizontal","vertical"].includes(t)},variable:String,refra:String},emits:["menuItems"],setup(t,{expose:e,emit:o}){const{get:r}=ar(),n=a.ref(null),i=o,s=h=>{n.value.goToUrl()},l=h=>{i("menuItems",h),console.log("Menu Items 2nd:",h)},c=t,d=a.ref([]),u=a.ref(!1),f={sample:cv,contra:bv,ultra:Sv};return a.onMounted(async()=>{try{const h=await r("https://mocki.io/v1/8955d801-36fb-4499-9d7d-6f7329fc8407");d.value=h.data.response,u.value=!0,d.value.forEach(g=>{g.children&&g.children.length>0&&(g.isOpen=!1)})}catch(h){console.error("Error fetching menu items:",h)}console.log("props.ref",c.refra)}),e({goToUrl:s}),(h,g)=>h.$slots["list-item-menu-parent"]?(a.openBlock(),a.createElementBlock("div",Bv,[u.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(f[c.menuName]),a.mergeProps({key:0},c,{"menu-items":d.value}),a.createSlots({_:2},[a.renderList(h.$slots,(m,p)=>({name:p,fn:a.withCtx(b=>[a.renderSlot(h.$slots,p,a.normalizeProps(a.guardReactiveProps(b)),void 0,!0)])}))]),1040,["menu-items"])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",Ev,[u.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(f[c.menuName]),a.mergeProps({key:0},c,{"menu-items":d.value,ref_key:"componentsRef",ref:n,onMenuItems:l}),null,16,["menu-items"])):a.createCommentVNode("",!0)]))}},[["__scopeId","data-v-1cd2b7a8"]]),Rv={class:"absolute left-3 top-[-10px] bg-[var(--bg-label-color)] px-1 text-xs text-gray-600 text"},Ov={class:"absolute left-3 top-1/2 transform -translate-y-1/2 text-[var(--span-color)]"},Dv=["placeholder"],Nv={key:0,style:{color:"var(--secondary-color)"},class:"absolute left-3 top-full mt-1 text-xs"},qc={__name:"TextInput",props:a.mergeModels({label:{type:String,default:"Label"},placeholder:{type:String,default:"Enter value"},editable:{type:Boolean,default:!0},icon:{type:String,default:""},error:{type:Boolean,default:!1}},{inputValue:{},inputValueModifiers:{}}),emits:a.mergeModels(["update:error"],["update:inputValue"]),setup(t,{emit:e}){const o=e,r=t,n=a.useModel(t,"inputValue");return a.watch(n,i=>{i&&r.error&&o("update:error",!1)}),(i,s)=>(a.openBlock(),a.createElementBlock("div",a.mergeProps({class:"relative"},i.$attrs),[a.createElementVNode("label",Rv,a.toDisplayString(t.label),1),a.createElementVNode("span",Ov,[a.createElementVNode("i",{class:a.normalizeClass(t.icon),style:{"font-size":"1rem"}},null,2)]),a.withDirectives(a.createElementVNode("input",{class:"w-full h-[40px] pl-10 py-2 border border-[var(--border-color)] rounded-lg placeholder:text-xs focus:border-[var(--primary-fore-color)] focus:ring-0 focus:outline-none text","onUpdate:modelValue":s[0]||(s[0]=l=>n.value=l),placeholder:t.placeholder},null,8,Dv),[[a.vModelText,n.value]]),t.error===!0?(a.openBlock(),a.createElementBlock("small",Nv,[a.createElementVNode("pre",null,a.toDisplayString(t.label)+" is required",1)])):a.createCommentVNode("",!0)],16))}},Ge=a.reactive({preset:"Aura",primary:"emerald",surface:null,darkTheme:!1,menuMode:"slim-plus",menuTheme:"light"}),Ie=a.reactive({staticMenuDesktopInactive:!1,overlayMenuActive:!1,configSidebarVisible:!1,staticMenuMobileActive:!1,menuHoverActive:!1,rightMenuActive:!1,topbarMenuActive:!1,sidebarActive:!1,anchored:!1,activeMenuItem:null,overlaySubmenuActive:!1});function Tv(){const t=g=>{if(Ge.menuMode=g,g==="static"&&(Ie.staticMenuDesktopInactive=!1),g==="horizontal")if(Ge.darkTheme){if(!document.startViewTransition){Ge.menuTheme="dark";return}document.startViewTransition(()=>Ge.menuTheme="dark")}else{if(!document.startViewTransition){Ge.menuTheme="light";return}document.startViewTransition(()=>Ge.menuTheme="light")}},e=g=>{Ie.activeMenuItem=g.value||g},o=()=>{Ge.menuMode==="overlay"&&(Ie.overlayMenuActive=!Ie.overlayMenuActive),window.innerWidth>991?Ie.staticMenuDesktopInactive=!Ie.staticMenuDesktopInactive:Ie.staticMenuMobileActive=!Ie.staticMenuMobileActive},r=()=>{n.value&&(Ie.overlayMenuActive=!1,Ie.overlaySubmenuActive=!1,Ie.staticMenuMobileActive=!1,Ie.menuHoverActive=!1,Ie.configSidebarVisible=!1),Ie.configSidebarVisible=!Ie.configSidebarVisible},n=a.computed(()=>Ie.overlayMenuActive||Ie.staticMenuMobileActive||Ie.overlaySubmenuActive),i=a.computed(()=>window.innerWidth>991),s=a.computed(()=>Ge.menuMode==="slim"),l=a.computed(()=>Ge.menuMode==="slim-plus"),c=a.computed(()=>Ge.menuMode==="horizontal"),d=a.computed(()=>Ge.menuMode==="overlay"),u=a.computed(()=>Ge.darkTheme),f=a.computed(()=>Ge.primary),h=a.computed(()=>Ge.surface);return{layoutConfig:Ge,layoutState:Ie,getPrimary:f,getSurface:h,isDarkTheme:u,setMenuMode:t,toggleMenu:o,isSidebarActive:n,setActiveMenuItem:e,toggleConfigSidebar:r,isSlim:s,isSlimPlus:l,isHorizontal:c,isDesktop:i,isOverlay:d}}var Pv={root:{transitionDuration:"{transition.duration}"},panel:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},header:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},content:{borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"}},$v={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},Av={root:{width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},icon:{size:"1rem"},group:{borderColor:"{content.background}",offset:"-0.75rem"},lg:{width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},xl:{width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}}},Mv={root:{borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},dot:{size:"0.5rem"},sm:{fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},lg:{fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},xl:{fontSize:"1rem",minWidth:"2rem",height:"2rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},Fv={primitive:{borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},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"},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"},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"}},semantic:{transitionDuration:"0.2s",focusRing:{width:"1px",style:"solid",color:"{primary.color}",offset:"2px",shadow:"none"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.375rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.625rem"},borderRadius:"{border.radius.md}",focusRing:{width:"0",style:"none",color:"transparent",offset:"0",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.25rem 0.25rem",gap:"2px",header:{padding:"0.5rem 1rem 0.25rem 1rem"},option:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}"},optionGroup:{padding:"0.5rem 0.75rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.25rem 0.25rem",gap:"2px"},item:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 0.75rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"0.75rem",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.25rem",shadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},navigation:{shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.50}",borderColor:"{surface.300}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.500}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}}},Vv={root:{borderRadius:"{content.border.radius}"}},Iv={root:{padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},item:{color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},separator:{color:"{navigation.item.icon.color}"}},Lv={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.5rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},colorScheme:{light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}}},zv={root:{background:"{content.background}",borderRadius:"{border.radius.xl}",color:"{content.color}",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},body:{padding:"1.25rem",gap:"0.5rem"},caption:{gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"500"},subtitle:{color:"{text.muted.color}"}},jv={root:{transitionDuration:"{transition.duration}"},content:{gap:"0.25rem"},indicatorList:{padding:"1rem",gap:"0.5rem"},indicator:{width:"2rem",height:"0.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}}},Wv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},clearIcon:{color:"{form.field.icon.color}"}},Hv={root:{borderRadius:"{border.radius.sm}",width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},icon:{size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}}},Uv={root:{borderRadius:"16px",paddingX:"0.75rem",paddingY:"0.5rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},image:{width:"2rem",height:"2rem"},icon:{size:"1rem"},removeIcon:{size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}}},qv={root:{transitionDuration:"{transition.duration}"},preview:{width:"1.5rem",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},panel:{shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},colorScheme:{light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}}},Yv={icon:{size:"2rem",color:"{overlay.modal.color}"},content:{gap:"1rem"}},Xv={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"1rem"},icon:{size:"1.5rem",color:"{overlay.popover.color}"},footer:{gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"}},Kv={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},Gv={root:{transitionDuration:"{transition.duration}"},header:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},headerCell:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},columnTitle:{fontWeight:"600"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},bodyCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},footerCell:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"600"},footer:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},dropPoint:{color:"{primary.color}"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},rowToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},filter:{inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},paginatorTop:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},Qv={root:{borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},header:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},content:{background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},footer:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"}},Jv={root:{transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},header:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},title:{gap:"0.5rem",fontWeight:"500"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},inputIcon:{color:"{form.field.icon.color}"},selectMonth:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},selectYear:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},group:{borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},dayView:{margin:"0.5rem 0 0 0"},weekDay:{padding:"0.25rem",fontWeight:"500",color:"{content.color}"},date:{hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2rem",height:"2rem",borderRadius:"50%",padding:"0.25rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},monthView:{margin:"0.5rem 0 0 0"},month:{padding:"0.375rem",borderRadius:"{content.border.radius}"},yearView:{margin:"0.5rem 0 0 0"},year:{padding:"0.375rem",borderRadius:"{content.border.radius}"},buttonbar:{padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},timePicker:{padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},colorScheme:{light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}}},Zv={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}",gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"}},ew={root:{borderColor:"{content.border.color}"},content:{background:"{content.background}",color:"{text.color}"},horizontal:{margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},vertical:{margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}}},tw={root:{background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},item:{borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},ow={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}"},title:{fontSize:"1.5rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"{overlay.modal.padding}"}},rw={toolbar:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},toolbarItem:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},overlayOption:{focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},content:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"}},nw={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},legend:{background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.5rem 0.75rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},content:{padding:"0"}},iw={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},header:{background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},content:{highlightBorderColor:"{primary.color}",padding:"0 1.125rem 1.125rem 1.125rem",gap:"1rem"},file:{padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},fileList:{gap:"0.5rem"},progressbar:{height:"0.25rem"},basic:{gap:"0.5rem"}},aw={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},over:{active:{top:"-1.25rem"}},in:{input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},on:{borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}}},sw={root:{borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},navButton:{background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},navIcon:{size:"1.5rem"},thumbnailsContent:{background:"{content.background}",padding:"1rem 0.25rem"},thumbnailNavButton:{size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},thumbnailNavButtonIcon:{size:"1rem"},caption:{background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},indicatorList:{gap:"0.5rem",padding:"1rem"},indicatorButton:{width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},insetIndicatorList:{background:"rgba(0, 0, 0, 0.5)"},insetIndicatorButton:{background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},closeButton:{size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},closeButtonIcon:{size:"1.5rem"},colorScheme:{light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}}},lw={icon:{color:"{form.field.icon.color}"}},cw={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"}},dw={root:{transitionDuration:"{transition.duration}"},preview:{icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},toolbar:{position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},action:{hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},uw={handle:{size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},fw={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},text:{fontWeight:"500"},icon:{size:"1rem"},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}}},hw={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},display:{hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"}},gw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},chip:{borderRadius:"{border.radius.sm}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}}},mw={addon:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.5rem",minWidth:"2.5rem"}},pw={root:{transitionDuration:"{transition.duration}"},button:{width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},colorScheme:{light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}}},bw={root:{gap:"0.5rem"},input:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}}},yw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},kw={root:{transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},value:{background:"{primary.color}"},range:{background:"{content.border.color}"},text:{color:"{text.muted.color}"}},xw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}}},vw={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},overlay:{padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},ww={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},separator:{borderColor:"{content.border.color}"}},Cw={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},_w={root:{borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},content:{padding:"0.5rem 0.75rem",gap:"0.5rem",sm:{padding:"0.375rem 0.625rem"},lg:{padding:"0.625rem 0.875rem"}},text:{fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},icon:{size:"1.125rem",sm:{size:"1rem"},lg:{size:"1.25rem"}},closeButton:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},outlined:{root:{borderWidth:"1px"}},simple:{content:{padding:"0"}},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}}},Sw={root:{borderRadius:"{content.border.radius}",gap:"1rem"},meters:{background:"{content.border.color}",size:"0.5rem"},label:{gap:"0.5rem"},labelMarker:{size:"0.5rem"},labelIcon:{size:"1rem"},labelList:{verticalGap:"0.5rem",horizontalGap:"1rem"}},Bw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"}},Ew={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},Rw={root:{gutter:"0.75rem",transitionDuration:"{transition.duration}"},node:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"0.75rem 1rem",toggleablePadding:"0.75rem 1rem 1.25rem 1rem",borderRadius:"{content.border.radius}"},nodeToggleButton:{background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},connector:{color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"}},Ow={root:{outline:{width:"2px",color:"{content.background}"}}},Dw={root:{padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},navButton:{background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},currentPageReport:{color:"{text.muted.color}"},jumpToPageInput:{maxWidth:"2.5rem"}},Nw={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},header:{background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},toggleableHeader:{padding:"0.375rem 1.125rem"},title:{fontWeight:"600"},content:{padding:"0 1.125rem 1.125rem 1.125rem"},footer:{padding:"0 1.125rem 1.125rem 1.125rem"}},Tw={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"{content.border.radius}",first:{borderWidth:"1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"1px",bottomBorderRadius:"{content.border.radius}"}},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenu:{indent:"1rem"},submenuIcon:{color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"}},Pw={meter:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},icon:{color:"{form.field.icon.color}"},overlay:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},content:{gap:"0.5rem"},colorScheme:{light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}}},$w={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},Aw={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}"}},Mw={root:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.25rem"},value:{background:"{primary.color}"},label:{color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"}},Fw={colorScheme:{light:{root:{"color.1":"{red.500}","color.2":"{blue.500}","color.3":"{green.500}","color.4":"{yellow.500}"}},dark:{root:{"color.1":"{red.400}","color.2":"{blue.400}","color.3":"{green.400}","color.4":"{yellow.400}"}}}},Vw={root:{width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},icon:{size:"0.75rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.5rem"},lg:{size:"1rem"}}},Iw={root:{gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},icon:{size:"1rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},Lw={colorScheme:{light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}}},zw={root:{transitionDuration:"{transition.duration}"},bar:{size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{bar:{background:"{surface.100}"}},dark:{bar:{background:"{surface.800}"}}}},jw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},emptyMessage:{padding:"{list.option.padding}"}},Ww={root:{borderRadius:"{form.field.border.radius}"},colorScheme:{light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}}},Hw={root:{borderRadius:"{content.border.radius}"},colorScheme:{light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}}},Uw={root:{transitionDuration:"{transition.duration}"},track:{background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},range:{background:"{primary.color}"},handle:{width:"20px",height:"20px",borderRadius:"50%",background:"{content.border.color}",hoverBackground:"{content.border.color}",content:{borderRadius:"50%",hoverBackground:"{content.background}",width:"16px",height:"16px",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{handle:{contentBackground:"{surface.0}"}},dark:{handle:{contentBackground:"{surface.950}"}}}},qw={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"}},Yw={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"}},Xw={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},gutter:{background:"{content.border.color}"},handle:{size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Kw={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},step:{padding:"0.5rem",gap:"1rem"},stepHeader:{padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},stepTitle:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},stepNumber:{background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},steppanels:{padding:"0.875rem 0.5rem 1.125rem 0.5rem"},steppanel:{background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"}},Gw={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}"},itemLink:{borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},itemLabel:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},itemNumber:{background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},Qw={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},item:{background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},itemIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},activeBar:{height:"1px",bottom:"-1px",background:"{primary.color}"}},Jw={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},tab:{background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},tabpanel:{background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},activeBar:{height:"1px",bottom:"-1px",background:"{primary.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},Zw={root:{transitionDuration:"{transition.duration}"},tabList:{background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},tabPanel:{background:"{content.background}",color:"{content.color}"},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},eC={root:{fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},icon:{size:"0.75rem"},colorScheme:{light:{primary:{background:"{primary.100}",color:"{primary.700}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.100}",color:"{green.700}"},info:{background:"{sky.100}",color:"{sky.700}"},warn:{background:"{orange.100}",color:"{orange.700}"},danger:{background:"{red.100}",color:"{red.700}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"color-mix(in srgb, {primary.500}, transparent 84%)",color:"{primary.300}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.300}"},info:{background:"color-mix(in srgb, {sky.500}, transparent 84%)",color:"{sky.300}"},warn:{background:"color-mix(in srgb, {orange.500}, transparent 84%)",color:"{orange.300}"},danger:{background:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.300}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},tC={root:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},prompt:{gap:"0.25rem"},commandResponse:{margin:"2px 0"}},oC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},rC={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},nC={event:{minHeight:"5rem"},horizontal:{eventContent:{padding:"1rem 0"}},vertical:{eventContent:{padding:"0 1rem"}},eventMarker:{size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{content.border.color}",content:{borderRadius:"50%",size:"0.375rem",background:"{primary.color}",insetShadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},eventConnector:{color:"{content.border.color}",size:"2px"}},iC={root:{width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},icon:{size:"1.125rem"},content:{padding:"{overlay.popover.padding}",gap:"0.5rem"},text:{gap:"0.5rem"},summary:{fontWeight:"500",fontSize:"1rem"},detail:{fontWeight:"500",fontSize:"0.875rem"},closeButton:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem"},colorScheme:{light:{blur:"1.5px",info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{blur:"10px",info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}}},aC={root:{padding:"0.5rem 1rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.375rem 0.75rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.625rem 1.25rem"}},icon:{disabledColor:"{form.field.disabled.color}"},content:{left:"0.25rem",top:"0.25rem",checkedShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)"},colorScheme:{light:{root:{background:"{surface.100}",checkedBackground:"{surface.100}",hoverBackground:"{surface.100}",borderColor:"{surface.100}",color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}",checkedBorderColor:"{surface.100}"},content:{checkedBackground:"{surface.0}"},icon:{color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}"}},dark:{root:{background:"{surface.950}",checkedBackground:"{surface.950}",hoverBackground:"{surface.950}",borderColor:"{surface.950}",color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}",checkedBorderColor:"{surface.950}"},content:{checkedBackground:"{surface.800}"},icon:{color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}"}}}},sC={root:{width:"2.5rem",height:"1.5rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},handle:{borderRadius:"50%",size:"1rem"},colorScheme:{light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}}},lC={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"}},cC={root:{maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},colorScheme:{light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}}},dC={root:{background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},node:{padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.25rem"},nodeIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},nodeToggleButton:{borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},loadingIcon:{size:"2rem"},filter:{margin:"0 0 0.5rem 0"}},uC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},tree:{padding:"{list.padding}"},clearIcon:{color:"{form.field.icon.color}"},emptyMessage:{padding:"{list.option.padding}"},chip:{borderRadius:"{border.radius.sm}"}},fC={root:{transitionDuration:"{transition.duration}"},header:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},headerCell:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},columnTitle:{fontWeight:"600"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},bodyCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},footerCell:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"600"},footer:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},nodeToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},hC={loader:{mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}}};function Er(t){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er(t)}function Yc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function Xc(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Yc(Object(o),!0).forEach(function(r){gC(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Yc(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function gC(t,e,o){return(e=mC(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function mC(t){var e=pC(t,"string");return Er(e)=="symbol"?e:e+""}function pC(t,e){if(Er(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(Er(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bC=Xc(Xc({},Fv),{},{components:{accordion:Pv,autocomplete:$v,avatar:Av,badge:Mv,blockui:Vv,breadcrumb:Iv,button:Lv,datepicker:Jv,card:zv,carousel:jv,cascadeselect:Wv,checkbox:Hv,chip:Uv,colorpicker:qv,confirmdialog:Yv,confirmpopup:Xv,contextmenu:Kv,dataview:Qv,datatable:Gv,dialog:Zv,divider:ew,dock:tw,drawer:ow,editor:rw,fieldset:nw,fileupload:iw,iftalabel:cw,floatlabel:aw,galleria:sw,iconfield:lw,image:dw,imagecompare:uw,inlinemessage:fw,inplace:hw,inputchips:gw,inputgroup:mw,inputnumber:pw,inputotp:bw,inputtext:yw,knob:kw,listbox:xw,megamenu:vw,menu:ww,menubar:Cw,message:_w,metergroup:Sw,multiselect:Bw,orderlist:Ew,organizationchart:Rw,overlaybadge:Ow,popover:Aw,paginator:Dw,password:Pw,panel:Nw,panelmenu:Tw,picklist:$w,progressbar:Mw,progressspinner:Fw,radiobutton:Vw,rating:Iw,scrollpanel:zw,select:jw,selectbutton:Ww,skeleton:Hw,slider:Uw,speeddial:qw,splitter:Xw,splitbutton:Yw,stepper:Kw,steps:Gw,tabmenu:Qw,tabs:Jw,tabview:Zw,textarea:oC,tieredmenu:rC,tag:eC,terminal:tC,timeline:nC,togglebutton:aC,toggleswitch:sC,tree:dC,treeselect:uC,treetable:fC,toast:iC,toolbar:lC,virtualscroller:hC},directives:{tooltip:cC,ripple:Lw}}),yC={root:{transitionDuration:"{transition.duration}"},panel:{borderWidth:"0",borderColor:"{content.border.color}"},header:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",padding:"1.125rem",fontWeight:"700",borderRadius:"0",borderWidth:"0 1px 1px 1px",borderColor:"{content.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"1px"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},content:{borderWidth:"0 1px 1px 1px",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"1.125rem"},colorScheme:{light:{header:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.50}",activeHoverBackground:"{surface.100}"}},dark:{header:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.800}",activeHoverBackground:"{surface.700}"}}}},kC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},xC={root:{width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},icon:{size:"1rem"},group:{borderColor:"{content.background}",offset:"-0.75rem"},lg:{width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},xl:{width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"}}},vC={root:{borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},dot:{size:"0.5rem"},sm:{fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},lg:{fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},xl:{fontSize:"1rem",minWidth:"2rem",height:"2rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},wC={primitive:{borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},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"},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"},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"}},semantic:{transitionDuration:"0.2s",focusRing:{width:"0",style:"none",color:"transparent",offset:"0"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.625rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.5rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.75rem"},borderRadius:"{border.radius.md}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},list:{padding:"0.5rem 0",gap:"0",header:{padding:"0.625rem 1rem 0 1rem"},option:{padding:"0.625rem 1rem",borderRadius:"0"},optionGroup:{padding:"0.625rem 1rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.5rem 0",gap:"0"},item:{padding:"0.625rem 1rem",borderRadius:"0",gap:"0.5rem"},submenuLabel:{padding:"0.625rem 1rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"1rem",shadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.5rem",shadow:"0 1px 3px rgba(0, 0, 0, 0.3)"},navigation:{shadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},focusRing:{shadow:"0 0 0 0.2rem {primary.200}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.0}",borderColor:"{surface.300}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.500}",shadow:"none"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},focusRing:{shadow:"0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.950}",borderColor:"{surface.600}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"none"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}}},CC={root:{borderRadius:"{content.border.radius}"}},_C={root:{padding:"1.25rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},item:{color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},separator:{color:"{navigation.item.icon.color}"}},SC={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"1rem",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.75rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"},label:{fontWeight:"600"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",offset:"{form.field.focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},colorScheme:{light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {primary.200}"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {surface.200}"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {sky.200}"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {green.200}"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {orange.200}"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {purple.200}"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {red.200}"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {surface.400}"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {sky.400}, transparent 80%)"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.400}, transparent 80%)"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {orange.400}, transparent 80%)"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {purple.400}, transparent 80%)"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.400}, transparent 80%)"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.0}, transparent 80%)"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {help.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {help.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {danger.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {danger.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}}},BC={root:{background:"{content.background}",borderRadius:"{border.radius.lg}",color:"{content.color}",shadow:"0 .125rem .25rem rgba(0,0,0,.075)"},body:{padding:"1.5rem",gap:"0.75rem"},caption:{gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"700"},subtitle:{color:"{text.muted.color}"}},EC={root:{transitionDuration:"{transition.duration}"},content:{gap:"0.25rem"},indicatorList:{padding:"1rem",gap:"0.5rem"},indicator:{width:"1rem",height:"1rem",borderRadius:"50",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}}},RC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1.25rem"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},clearIcon:{color:"{form.field.icon.color}"}},OC={root:{borderRadius:"{border.radius.sm}",width:"1.5rem",height:"1.5rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1.25rem",height:"1.25rem"},lg:{width:"1.75rem",height:"1.75rem"}},icon:{size:"1rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1.25rem"}}},DC={root:{borderRadius:"16px",paddingX:"0.875rem",paddingY:"0.625rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},image:{width:"2rem",height:"2rem"},icon:{size:"1rem"},removeIcon:{size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}}},NC={root:{transitionDuration:"{transition.duration}"},preview:{width:"1.75rem",height:"1.75rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},panel:{shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},colorScheme:{light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}}},TC={icon:{size:"2rem",color:"{overlay.modal.color}"},content:{gap:"1rem"}},PC={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"1rem"},icon:{size:"1.5rem",color:"{overlay.popover.color}"},footer:{gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"}},$C={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1.25rem"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},AC={root:{transitionDuration:"{transition.duration}"},header:{borderColor:"{datatable.border.color}",borderWidth:"1px 0 1px 0",padding:"0.75rem 1rem"},headerCell:{selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},columnTitle:{fontWeight:"700"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},bodyCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},footerCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"700"},footer:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},dropPoint:{color:"{primary.color}"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},rowToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},filter:{inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},paginatorTop:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},header:{background:"{surface.50}",color:"{text.color}"},headerCell:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}"},footer:{background:"{surface.50}",color:"{text.color}"},footerCell:{background:"{surface.50}",color:"{text.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},header:{background:"{surface.800}",color:"{text.color}"},headerCell:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}"},footer:{background:"{surface.800}",color:"{text.color}"},footerCell:{background:"{surface.800}",color:"{text.color}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},MC={root:{borderColor:"{content.border.color}",borderWidth:"1px",borderRadius:"4px",padding:"0"},header:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.875rem 1.125rem",borderRadius:"5px 5px 0 0"},content:{background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"5px"},footer:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.875rem 1.125rem",borderRadius:"0 0 5px 5px"},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},FC={root:{transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},header:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.75rem 0"},title:{gap:"0.5rem",fontWeight:"700"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},inputIcon:{color:"{form.field.icon.color}"},selectMonth:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}"},selectYear:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}"},group:{borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},dayView:{margin:"0.75rem 0 0 0"},weekDay:{padding:"0.375rem",fontWeight:"700",color:"{content.color}"},date:{hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",padding:"0.375rem",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},monthView:{margin:"0.75rem 0 0 0"},month:{padding:"0.5rem",borderRadius:"{content.border.radius}"},yearView:{margin:"0.75rem 0 0 0"},year:{padding:"0.5rem",borderRadius:"{content.border.radius}"},buttonbar:{padding:"0.75rem 0 0 0",borderColor:"{content.border.color}"},timePicker:{padding:"0.75rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},colorScheme:{light:{dropdown:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}}},VC={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}",gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"}},IC={root:{borderColor:"{content.border.color}"},content:{background:"{content.background}",color:"{text.color}"},horizontal:{margin:"1.125rem 0",padding:"0 1.125rem",content:{padding:"0 0.625rem"}},vertical:{margin:"0 1.125rem",padding:"1.125rem 0",content:{padding:"0.625rem 0"}}},LC={root:{background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.lg}"},item:{borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},zC={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}"},title:{fontSize:"1.5rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"{overlay.modal.padding}"}},jC={toolbar:{borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},toolbarItem:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},overlayOption:{focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},content:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},colorScheme:{light:{toolbar:{background:"{surface.50}"}},dark:{toolbar:{background:"{surface.800}"}}}},WC={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0.75rem 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},legend:{borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"{content.border.color}",padding:"0.625rem 0.875rem",gap:"0.5rem",fontWeight:"700",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},content:{padding:"0"},colorScheme:{light:{legend:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}",hoverColor:"{text.hover.color}"}},dark:{legend:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"}}}},HC={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},header:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",padding:"1.125rem",borderRadius:"5px 5px 0 0",gap:"0.5rem"},content:{highlightBorderColor:"{primary.color}",padding:"1.125rem",gap:"1rem"},file:{padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},fileList:{gap:"0.5rem"},progressbar:{height:"0.25rem"},basic:{gap:"0.5rem"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},UC={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},over:{active:{top:"-1.375rem"}},in:{input:{paddingTop:"1.875rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},on:{borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}}},qC={root:{borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},navButton:{background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0",prev:{borderRadius:"0 12px 12px 0"},next:{borderRadius:"12px 0 0 12px"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},navIcon:{size:"1.5rem"},thumbnailsContent:{padding:"1rem 0.25rem"},thumbnailNavButton:{size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},thumbnailNavButtonIcon:{size:"1rem"},caption:{background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},indicatorList:{gap:"0.5rem",padding:"1rem"},indicatorButton:{width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},insetIndicatorList:{background:"rgba(0, 0, 0, 0.5)"},insetIndicatorButton:{background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},closeButton:{size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},closeButtonIcon:{size:"1.5rem"},colorScheme:{light:{thumbnailsContent:{background:"{surface.50}"},thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailsContent:{background:"{surface.800}"},thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}}},YC={icon:{color:"{form.field.icon.color}"}},XC={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},input:{paddingTop:"1.875rem",paddingBottom:"{form.field.padding.y}"}},KC={root:{transitionDuration:"{transition.duration}"},preview:{icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},toolbar:{position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"{content.border.radius}",padding:".5rem",gap:"0.5rem"},action:{hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},GC={handle:{size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"rgba(255,255,255,0.3)",hoverBorderColor:"rgba(255,255,255,0.3)",borderWidth:"3px",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},QC={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},text:{fontWeight:"500"},icon:{size:"1.125rem"},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"color-mix(in srgb, {blue.50}, transparent 5%)",color:"{blue.600}",shadow:"none"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"color-mix(in srgb, {green.50}, transparent 5%)",color:"{green.600}",shadow:"none"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"color-mix(in srgb,{yellow.50}, transparent 5%)",color:"{yellow.600}",shadow:"none"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"color-mix(in srgb, {red.50}, transparent 5%)",color:"{red.600}",shadow:"none"},secondary:{background:"{surface.100}",borderColor:"{surface.100}",color:"{surface.600}",shadow:"none"},contrast:{background:"{surface.900}",borderColor:"{surface.900}",color:"{surface.50}",shadow:"none"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.500}, transparent 84%)",color:"{blue.500}",shadow:"none"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.500}",shadow:"none"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.500}, transparent 84%)",color:"{yellow.500}",shadow:"none"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.500}",shadow:"none"},secondary:{background:"{surface.800}",borderColor:"{surface.800}",color:"{surface.300}",shadow:"none"},contrast:{background:"{surface.0}",borderColor:"{surface.0}",color:"{surface.950}",shadow:"none"}}}},JC={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},display:{hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"}},ZC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},chip:{borderRadius:"{border.radius.sm}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}}},e1={addon:{borderRadius:"{form.field.border.radius}",padding:"0.625rem 0.5rem",minWidth:"2.75rem"},colorScheme:{light:{addon:{background:"{surface.50}",borderColor:"{form.field.border.color}",color:"{text.muted.color}"}},dark:{addon:{background:"{surface.800}",borderColor:"{form.field.border.color}",color:"{text.muted.color}"}}}},t1={root:{transitionDuration:"{transition.duration}"},button:{width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},colorScheme:{light:{button:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{button:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.500}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},o1={root:{gap:"0.5rem"},input:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}}},r1={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},n1={root:{transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},value:{background:"{primary.color}"},range:{background:"{content.border.color}"},text:{color:"{text.muted.color}"}},i1={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.5rem",gutterEnd:"0.5rem"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}}},a1={root:{borderColor:"transparent",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.75rem 1rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"0.75rem 1rem"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},overlay:{padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"2rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.50}"}},dark:{root:{background:"{surface.800}"}}}},s1={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},separator:{borderColor:"{content.border.color}"}},l1={root:{borderColor:"transparent",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem 1rem",transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"0.75rem 1rem"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1.25rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"2rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.50}"}},dark:{root:{background:"{surface.800}"}}}},c1={root:{borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},content:{padding:"0.75rem 1rem",gap:"0.5rem",sm:{padding:"0.5rem 0.625rem"},lg:{padding:"0.75rem 0.875rem"}},text:{fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},icon:{size:"1.25rem",sm:{size:"1rem"},lg:{size:"1.5rem"}},closeButton:{width:"2rem",height:"2rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},outlined:{root:{borderWidth:"1px"}},simple:{content:{padding:"0"}},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"transparent",color:"{blue.600}",shadow:"none",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {blue.200}"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"transparent",color:"{green.600}",shadow:"none",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {green.200}"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"transparent",color:"{yellow.600}",shadow:"none",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {yellow.200}"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"transparent",color:"{red.600}",shadow:"none",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {red.200}"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"transparent",color:"{surface.600}",shadow:"none",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.200}"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"transparent",color:"{surface.50}",shadow:"none",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.400}"}},outlined:{color:"{surface.900}",borderColor:"{surface.900}"},simple:{color:"{surface.900}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"transparent",color:"{blue.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"transparent",color:"{green.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"transparent",color:"{yellow.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"transparent",color:"{red.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"transparent",color:"{surface.300}",shadow:"none",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"transparent",color:"{surface.950}",shadow:"none",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}}},d1={root:{borderRadius:"{content.border.radius}",gap:"1rem"},meters:{background:"{content.border.color}",size:"0.625rem"},label:{gap:"0.5rem"},labelMarker:{size:"0.5rem"},labelIcon:{size:"1rem"},labelList:{verticalGap:"0.5rem",horizontalGap:"1rem"}},u1={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"}},f1={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},h1={root:{gutter:"0.75rem",transitionDuration:"{transition.duration}"},node:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"1rem 1.25rem",toggleablePadding:"1rem 1.25rem 1.5rem 1.25rem",borderRadius:"{content.border.radius}"},nodeToggleButton:{background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},connector:{color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"}},g1={root:{outline:{width:"2px",color:"{content.background}"}}},m1={root:{padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},navButton:{background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},currentPageReport:{color:"{text.muted.color}"},jumpToPageInput:{maxWidth:"2.5rem"}},p1={root:{borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},header:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",padding:"1.125rem",borderRadius:"5px 5px 0 0"},toggleableHeader:{padding:"0.25rem 1.125rem"},title:{fontWeight:"700"},content:{padding:"1.125rem"},footer:{padding:"1.125rem"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},b1={root:{gap:"0",transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"0",first:{borderWidth:"1px 1px 0 1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"0 1px 1px 1px",bottomBorderRadius:"{content.border.radius}"}},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenu:{indent:"1rem"},submenuIcon:{color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"}},y1={meter:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},icon:{color:"{form.field.icon.color}"},overlay:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},content:{gap:"0.75rem"},colorScheme:{light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}}},k1={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},x1={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}"}},v1={root:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.5rem"},value:{background:"{primary.color}"},label:{color:"{primary.contrast.color}",fontSize:"0.875rem",fontWeight:"600"}},w1={colorScheme:{light:{root:{"color.1":"{pink.500}","color.2":"{sky.500}","color.3":"{emerald.500}","color.4":"{amber.500}"}},dark:{root:{"color.1":"{pink.400}","color.2":"{sky.400}","color.3":"{emerald.400}","color.4":"{amber.400}"}}}},C1={root:{width:"1.5rem",height:"1.5rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1.25rem",height:"1.25rem"},lg:{width:"1.75rem",height:"1.75rem"}},icon:{size:"1rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1.25rem"}}},_1={root:{gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},icon:{size:"1.25rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},S1={colorScheme:{light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}}},B1={root:{transitionDuration:"{transition.duration}"},bar:{size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{bar:{background:"{surface.200}"}},dark:{bar:{background:"{surface.700}"}}}},E1={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.5rem",gutterEnd:"0.5rem"},emptyMessage:{padding:"{list.option.padding}"}},R1={root:{borderRadius:"{form.field.border.radius}"},colorScheme:{light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}}},O1={root:{borderRadius:"{content.border.radius}"},colorScheme:{light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}}},D1={root:{transitionDuration:"{transition.duration}"},track:{background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},range:{background:"{primary.color}"},handle:{width:"16px",height:"16px",borderRadius:"50%",background:"{primary.color}",hoverBackground:"{primary.color}",content:{borderRadius:"50%",hoverBackground:"{primary.color}",width:"12px",height:"12px",shadow:"none"},focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},colorScheme:{light:{handle:{contentBackground:"{surface.0}"}},dark:{handle:{contentBackground:"{surface.950}"}}}},N1={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"}},T1={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"}},P1={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},gutter:{background:"{content.border.color}"},handle:{size:"24px",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{handle:{background:"{surface.400}"}},dark:{handle:{background:"{surface.600}"}}}},$1={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},step:{padding:"0.5rem",gap:"1rem"},stepHeader:{padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},stepTitle:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},stepNumber:{background:"{content.background}",activeBackground:"{primary.color}",borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",activeColor:"{primary.contrast.color}",size:"2.25rem",fontSize:"1.125rem",fontWeight:"500",borderRadius:"50%",shadow:"none"},steppanels:{padding:"0.875rem 0.5rem 1.125rem 0.5rem"},steppanel:{background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"}},A1={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}"},itemLink:{borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},itemLabel:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},itemNumber:{background:"{content.background}",activeBackground:"{primary.color}",borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",activeColor:"{primary.contrast.color}",size:"2.25rem",fontSize:"1.125rem",fontWeight:"500",borderRadius:"50%",shadow:"none"}},M1={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0",background:"{content.background}",borderColor:"{content.border.color}"},item:{borderWidth:"2px 0 0 0",borderColor:"transparent",hoverBorderColor:"transparent",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.25rem",fontWeight:"600",margin:"0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},itemIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},activeBar:{height:"0",bottom:"0",background:"transparent"},colorScheme:{light:{item:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.0}"}},dark:{item:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.900}"}}}},F1={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0",background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderWidth:"2px 0 0 0",borderColor:"transparent",hoverBorderColor:"transparent",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.25rem",fontWeight:"700",margin:"0",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},tabpanel:{background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},activeBar:{height:"0",bottom:"0",background:"transparent"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"},tab:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.0}"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"},tab:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.900}"}}}},V1={root:{transitionDuration:"{transition.duration}"},tabList:{background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},tabPanel:{background:"{content.background}",color:"{content.color}"},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},I1={root:{fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},icon:{size:"0.75rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},L1={root:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},prompt:{gap:"0.25rem"},commandResponse:{margin:"2px 0"}},z1={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},j1={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1.25rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},W1={event:{minHeight:"5rem"},horizontal:{eventContent:{padding:"1rem 0"}},vertical:{eventContent:{padding:"0 1rem"}},eventMarker:{size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{primary.color}",content:{borderRadius:"50%",size:"0.375rem",background:"transparent",insetShadow:"none"}},eventConnector:{color:"{content.border.color}",size:"2px"}},H1={root:{width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"0 0 0 6px",transitionDuration:"{transition.duration}"},icon:{size:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"0.5rem"},text:{gap:"0.5rem"},summary:{fontWeight:"500",fontSize:"1rem"},detail:{fontWeight:"500",fontSize:"0.875rem"},closeButton:{width:"2rem",height:"2rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem"},colorScheme:{light:{blur:"1.5px",info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.500}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {blue.200}"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.500}",color:"{green.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {green.200}"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.500}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {yellow.200}"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.500}",color:"{red.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {red.200}"}}},secondary:{background:"{surface.100}",borderColor:"{surface.500}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.200}"}}},contrast:{background:"{surface.900}",borderColor:"{primary.color}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.400}"}}}},dark:{blur:"10px",info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)"}}}}}},U1={root:{padding:"0.625rem 1rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",hoverColor:"{form.field.color}",checkedBackground:"{highlight.background}",checkedColor:"{highlight.color}",checkedBorderColor:"{form.field.border.color}",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.5rem 0.75rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.75rem 1.25rem"}},icon:{color:"{text.muted.color}",hoverColor:"{text.muted.color}",checkedColor:"{highlight.color}",disabledColor:"{form.field.disabled.color}"},content:{left:"0.25rem",top:"0.25rem",checkedBackground:"transparent",checkedShadow:"none"},colorScheme:{light:{root:{hoverBackground:"{surface.100}"}},dark:{root:{hoverBackground:"{surface.800}"}}}},q1={root:{width:"3rem",height:"1.75rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},handle:{borderRadius:"50%",size:"1.25rem"},colorScheme:{light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}}},Y1={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"},colorScheme:{light:{root:{background:"{surface.50}",color:"{content.color}"}},dark:{root:{background:"{surface.800}",color:"{content.color}"}}}},X1={root:{maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.625rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},colorScheme:{light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}}},K1={root:{background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},node:{padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"},gap:"0.25rem"},nodeIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},nodeToggleButton:{borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},loadingIcon:{size:"2rem"},filter:{margin:"0 0 0.5rem 0"}},G1={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},tree:{padding:"{list.padding}"},clearIcon:{color:"{form.field.icon.color}"},emptyMessage:{padding:"{list.option.padding}"},chip:{borderRadius:"{border.radius.sm}"}},Q1={root:{transitionDuration:"{transition.duration}"},header:{borderColor:"{treetable.border.color}",borderWidth:"1px 0 1px 0",padding:"0.75rem 1rem"},headerCell:{selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},columnTitle:{fontWeight:"700"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{sr.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},bodyCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},footerCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"700"},footer:{borderColor:"{treetable.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},nodeToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},header:{background:"{surface.50}",color:"{text.color}"},headerCell:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}"},footer:{background:"{surface.50}",color:"{text.color}"},footerCell:{background:"{surface.50}",color:"{text.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},header:{background:"{surface.800}",color:"{text.color}"},headerCell:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}"},footer:{background:"{surface.800}",color:"{text.color}"},footerCell:{background:"{surface.800}",color:"{text.color}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},J1={loader:{mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}}};function Rr(t){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rr(t)}function Kc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function Gc(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Kc(Object(o),!0).forEach(function(r){Z1(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Kc(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function Z1(t,e,o){return(e=e_(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function e_(t){var e=t_(t,"string");return Rr(e)=="symbol"?e:e+""}function t_(t,e){if(Rr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(Rr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var o_=Gc(Gc({},wC),{},{components:{accordion:yC,autocomplete:kC,avatar:xC,badge:vC,blockui:CC,breadcrumb:_C,button:SC,datepicker:FC,card:BC,carousel:EC,cascadeselect:RC,checkbox:OC,chip:DC,colorpicker:NC,confirmdialog:TC,confirmpopup:PC,contextmenu:$C,dataview:MC,datatable:AC,dialog:VC,divider:IC,dock:LC,drawer:zC,editor:jC,fieldset:WC,fileupload:HC,iftalabel:XC,floatlabel:UC,galleria:qC,iconfield:YC,image:KC,imagecompare:GC,inlinemessage:QC,inplace:JC,inputchips:ZC,inputgroup:e1,inputnumber:t1,inputotp:o1,inputtext:r1,knob:n1,listbox:i1,megamenu:a1,menu:s1,menubar:l1,message:c1,metergroup:d1,multiselect:u1,orderlist:f1,organizationchart:h1,overlaybadge:g1,popover:x1,paginator:m1,password:y1,panel:p1,panelmenu:b1,picklist:k1,progressbar:v1,progressspinner:w1,radiobutton:C1,rating:_1,scrollpanel:B1,select:E1,selectbutton:R1,skeleton:O1,slider:D1,speeddial:N1,splitter:P1,splitbutton:T1,stepper:$1,steps:A1,tabmenu:M1,tabs:F1,tabview:V1,textarea:z1,tieredmenu:j1,tag:I1,terminal:L1,timeline:W1,togglebutton:U1,toggleswitch:q1,tree:K1,treeselect:G1,treetable:Q1,toast:H1,toolbar:Y1,virtualscroller:J1},directives:{tooltip:X1,ripple:S1}});function r_(){const{layoutState:t,layoutConfig:e,setMenuMode:o,isDarkTheme:r}=Tv(),n={Aura:bC,Lara:o_};a.ref(Object.keys(n));const i=a.ref(e.preset);a.ref(e.darkTheme),a.ref(e.menuMode),a.ref([{name:"Light",value:!1},{name:"Dark",value:!0}]);const s=a.ref([{name:"noir",palette:{}},{name:"emerald",palette:{500:"#10b981"}},{name:"green",palette:{500:"#22c55e"}},{name:"lime",palette:{500:"#84cc16"}},{name:"orange",palette:{500:"#f97316"}},{name:"amber",palette:{500:"#f59e0b"}},{name:"yellow",palette:{500:"#eab308"}},{name:"teal",palette:{500:"#14b8a6"}},{name:"cyan",palette:{500:"#06b6d4"}},{name:"sky",palette:{500:"#0ea5e9"}},{name:"blue",palette:{500:"#3b82f6"}},{name:"indigo",palette:{500:"#6366f1"}},{name:"violet",palette:{500:"#8b5cf6"}},{name:"purple",palette:{500:"#a855f7"}},{name:"fuchsia",palette:{500:"#d946ef"}},{name:"pink",palette:{500:"#ec4899"}},{name:"rose",palette:{500:"#f43f5e"}}]),l=a.ref([{name:"slate",palette:{500:"#64748b"}},{name:"gray",palette:{500:"#6b7280"}},{name:"zinc",palette:{500:"#71717a"}},{name:"neutral",palette:{500:"#737373"}},{name:"stone",palette:{500:"#78716c"}},{name:"soho",palette:{500:"#8e8f93"}},{name:"viva",palette:{500:"#87898a"}},{name:"ocean",palette:{500:"#828787"}}]);function c(){if(!document.startViewTransition){d();return}document.startViewTransition(()=>d())}function d(){e.darkTheme=!e.darkTheme,e.menuTheme=r.value?"dark":"light",document.documentElement.classList.toggle("app-dark")}function u(){const m=s.value.find(p=>p.name===e.primary);if(m.name==="noir"){const p=[50,100,200,300,400,500,600,700,800,900,950],b={};return p.forEach(y=>{b[y]=`{surface.${y}}`}),{semantic:{primary:b,colorScheme:{light:{primary:{color:"{primary.950}",contrastColor:"#ffffff",hoverColor:"{primary.800}",activeColor:"{primary.700}"},highlight:{background:"{primary.950}",focusBackground:"{primary.700}",color:"#ffffff",focusColor:"#ffffff"}},dark:{primary:{color:"{primary.50}",contrastColor:"{primary.950}",hoverColor:"{primary.200}",activeColor:"{primary.300}"},highlight:{background:"{primary.50}",focusBackground:"{primary.300}",color:"{primary.950}",focusColor:"{primary.950}"}}}}}}else return{semantic:{primary:m.palette,colorScheme:{light:{primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"}},dark:{primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"}}}}}}function f(m){var p;if((p=m.semantic)!=null&&p.primary){const b=m.semantic.primary[500];document.documentElement.style.setProperty("--p-button-primary-background",b),document.documentElement.style.setProperty("--p-button-primary-border-color",b)}}function h(m,p){let b;if(m==="primary"){if(b=s.value.find(y=>y.name===p),!b)return;e.primary=b.name,f({semantic:{primary:b.palette}})}if(m==="surface"){if(b=l.value.find(y=>y.name===p),!b)return;e.surface=b.name,cp(b.palette)}}function g(){var b;e.preset=i.value;const m=n[i.value],p=(b=l.value.find(y=>y.name===e.surface))==null?void 0:b.palette;jl().preset(m).preset(u()).surfacePalette(p).use({useDefaultOptions:!0})}return{toggleDarkMode:c,updateColors:h,onPresetChange:g}}function n_(t){const e=new mt;return{getEntityRecord:async(r,n,i)=>{try{const s=await e.getRecord(r,n);if(s&&s.response)return i!=null&&i!=""&&t(i,s.response),s}catch(s){return s}finally{}}}}function i_(t){const e=new mt;return{addEntityRecord:async(r,n,i)=>{const s={dataDefinitions:Object.entries(n).map(([l,c])=>({recordColumnName:l,recordColumnValue:c}))};try{const l=await e.addRecord(r,s);if(l&&l.response)return i!=null&&i!=""&&t(i,l.response),l}catch(l){return l}finally{}}}}function a_(t){const e=new mt;return{deleteEntityRecord:async(r,n,i)=>{try{const s=await e.deleteRecord(r,n);if(s&&s.response)return i!=null&&i!=""&&t(i,s.response),s}catch(s){return s}finally{}}}}function s_(){const t=Qe(),{get:e,post:o,put:r,del:n}=ar(),i=()=>t.getAppId();return{getThemes:async()=>{const u=i();return await e(`/api/app/v1/${u}/theme`)},getThemesData:async u=>(i(),await e(`/api/platform/v1/theme/${u}`)),saveTheme:async u=>{const f=i();return await o(`/api/app/v1/${f}/theme`,u)},updatetheme:async u=>{const f=i();return await r(`/api/app/v1/${f}/theme`,u)}}}function l_(){const t=Qe(),{get:e,post:o,put:r,del:n}=ar(),i=()=>t.getAppId();return{getPlatformComponents:async()=>await e("/api/app/v1/platform/content/component"),getComponent:async u=>{const f=i();return await e(`/api/app/v1/${f}/content/component/${u}`)},getAllComponents:async u=>{const f=i();return await e(`/api/app/v1/${f}/content/component`)},createComponent:async u=>{const f=i();return await o(`/api/app/v1/${f}/content/component`,u)}}}const c_={install(t,e){t.component("CSEntityGrid",oa),t.component("csentitygrid",oa),t.component("CSEntityList",dc),t.component("csentitylist",dc),t.component("CSFieldExpression",Wc),t.component("csfieldexpression",Wc),t.component("CSEntityBarChart",nc),t.component("csentitybarchart",nc),t.component("CSEntityLineChart",ic),t.component("csentitylinechart",ic),t.component("CSEntityPieChart",ac),t.component("csentitypiechart",ac),t.component("CSEntityPolarChart",sc),t.component("csentitypolarchart",sc),t.component("CSEntityRadarChart",lc),t.component("csentityradarchart",lc),t.component("CSEntity360View",cc),t.component("csentity360view",cc),t.component("CSEntityListing",uc),t.component("csentitylisting",uc),t.component("CSEntityListingTile",fc),t.component("csentitylistingtile",fc),t.component("CSEntityListingCarousel",Ec),t.component("csentitylistingcarousel",Ec),t.component("CSEntitySelection",da),t.component("csentityselection",da),t.component("CSEntityExplorer",Hc),t.component("csentityexplorer",Hc),t.component("CSMenu",Uc),t.component("csmenu",Uc),t.component("CSTextInput",qc),t.component("cstextinput",qc)}};/*!
|
|
172
|
+
*/var Qx=In.exports,jc;function Jx(){return jc||(jc=1,function(t){(function(e,o){t.exports?t.exports=o():e.numeral=o()})(Qx,function(){var e,o,r="2.0.6",n={},i={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function c(d,u){this._input=d,this._value=u}return e=function(d){var u,f,h,g;if(e.isNumeral(d))u=d.value();else if(d===0||typeof d>"u")u=0;else if(d===null||o.isNaN(d))u=null;else if(typeof d=="string")if(l.zeroFormat&&d===l.zeroFormat)u=0;else if(l.nullFormat&&d===l.nullFormat||!d.replace(/[^0-9]+/g,"").length)u=null;else{for(f in n)if(g=typeof n[f].regexps.unformat=="function"?n[f].regexps.unformat():n[f].regexps.unformat,g&&d.match(g)){h=n[f].unformat;break}h=h||e._.stringToNumber,u=h(d)}else u=Number(d)||null;return new c(d,u)},e.version=r,e.isNumeral=function(d){return d instanceof c},e._=o={numberToFormat:function(d,u,f){var h=i[e.options.currentLocale],g=!1,m=!1,p=0,b="",y=1e12,x=1e9,C=1e6,B=1e3,w="",_=!1,v,k,S,N,E,D,M;if(d=d||0,k=Math.abs(d),e._.includes(u,"(")?(g=!0,u=u.replace(/[\(|\)]/g,"")):(e._.includes(u,"+")||e._.includes(u,"-"))&&(E=e._.includes(u,"+")?u.indexOf("+"):d<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),e._.includes(u,"a")&&(v=u.match(/a(k|m|b|t)?/),v=v?v[1]:!1,e._.includes(u," a")&&(b=" "),u=u.replace(new RegExp(b+"a[kmbt]?"),""),k>=y&&!v||v==="t"?(b+=h.abbreviations.trillion,d=d/y):k<y&&k>=x&&!v||v==="b"?(b+=h.abbreviations.billion,d=d/x):k<x&&k>=C&&!v||v==="m"?(b+=h.abbreviations.million,d=d/C):(k<C&&k>=B&&!v||v==="k")&&(b+=h.abbreviations.thousand,d=d/B)),e._.includes(u,"[.]")&&(m=!0,u=u.replace("[.]",".")),S=d.toString().split(".")[0],N=u.split(".")[1],D=u.indexOf(","),p=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,N?(e._.includes(N,"[")?(N=N.replace("]",""),N=N.split("["),w=e._.toFixed(d,N[0].length+N[1].length,f,N[1].length)):w=e._.toFixed(d,N.length,f),S=w.split(".")[0],e._.includes(w,".")?w=h.delimiters.decimal+w.split(".")[1]:w="",m&&Number(w.slice(1))===0&&(w="")):S=e._.toFixed(d,0,f),b&&!v&&Number(S)>=1e3&&b!==h.abbreviations.trillion)switch(S=String(Number(S)/1e3),b){case h.abbreviations.thousand:b=h.abbreviations.million;break;case h.abbreviations.million:b=h.abbreviations.billion;break;case h.abbreviations.billion:b=h.abbreviations.trillion;break}if(e._.includes(S,"-")&&(S=S.slice(1),_=!0),S.length<p)for(var T=p-S.length;T>0;T--)S="0"+S;return D>-1&&(S=S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),u.indexOf(".")===0&&(S=""),M=S+w+(b||""),g?M=(g&&_?"(":"")+M+(g&&_?")":""):E>=0?M=E===0?(_?"-":"+")+M:M+(_?"-":"+"):_&&(M="-"+M),M},stringToNumber:function(d){var u=i[l.currentLocale],f=d,h={thousand:3,million:6,billion:9,trillion:12},g,m,p;if(l.zeroFormat&&d===l.zeroFormat)m=0;else if(l.nullFormat&&d===l.nullFormat||!d.replace(/[^0-9]+/g,"").length)m=null;else{m=1,u.delimiters.decimal!=="."&&(d=d.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(g in h)if(p=new RegExp("[^a-zA-Z]"+u.abbreviations[g]+"(?:\\)|(\\"+u.currency.symbol+")?(?:\\))?)?$"),f.match(p)){m*=Math.pow(10,h[g]);break}m*=(d.split("-").length+Math.min(d.split("(").length-1,d.split(")").length-1))%2?1:-1,d=d.replace(/[^0-9\.]+/g,""),m*=Number(d)}return m},isNaN:function(d){return typeof d=="number"&&isNaN(d)},includes:function(d,u){return d.indexOf(u)!==-1},insert:function(d,u,f){return d.slice(0,f)+u+d.slice(f)},reduce:function(d,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" is not a function");var f=Object(d),h=f.length>>>0,g=0,m;if(arguments.length===3)m=arguments[2];else{for(;g<h&&!(g in f);)g++;if(g>=h)throw new TypeError("Reduce of empty array with no initial value");m=f[g++]}for(;g<h;g++)g in f&&(m=u(m,f[g],g,f));return m},multiplier:function(d){var u=d.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var d=Array.prototype.slice.call(arguments);return d.reduce(function(u,f){var h=o.multiplier(f);return u>h?u:h},1)},toFixed:function(d,u,f,h){var g=d.toString().split("."),m=u-(h||0),p,b,y,x;return g.length===2?p=Math.min(Math.max(g[1].length,m),u):p=m,y=Math.pow(10,p),x=(f(d+"e+"+p)/y).toFixed(p),h>u-p&&(b=new RegExp("\\.?0{1,"+(h-(u-p))+"}$"),x=x.replace(b,"")),x}},e.options=l,e.formats=n,e.locales=i,e.locale=function(d){return d&&(l.currentLocale=d.toLowerCase()),l.currentLocale},e.localeData=function(d){if(!d)return i[l.currentLocale];if(d=d.toLowerCase(),!i[d])throw new Error("Unknown locale : "+d);return i[d]},e.reset=function(){for(var d in a)l[d]=a[d]},e.zeroFormat=function(d){l.zeroFormat=typeof d=="string"?d:null},e.nullFormat=function(d){l.nullFormat=typeof d=="string"?d:null},e.defaultFormat=function(d){l.defaultFormat=typeof d=="string"?d:"0.0"},e.register=function(d,u,f){if(u=u.toLowerCase(),this[d+"s"][u])throw new TypeError(u+" "+d+" already registered.");return this[d+"s"][u]=f,f},e.validate=function(d,u){var f,h,g,m,p,b,y,x;if(typeof d!="string"&&(d+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",d)),d=d.trim(),d.match(/^\d+$/))return!0;if(d==="")return!1;try{y=e.localeData(u)}catch{y=e.localeData(e.locale())}return g=y.currency.symbol,p=y.abbreviations,f=y.delimiters.decimal,y.delimiters.thousands==="."?h="\\.":h=y.delimiters.thousands,x=d.match(/^[^\d]+/),x!==null&&(d=d.substr(1),x[0]!==g)||(x=d.match(/[^\d]+$/),x!==null&&(d=d.slice(0,-1),x[0]!==p.thousand&&x[0]!==p.million&&x[0]!==p.billion&&x[0]!==p.trillion))?!1:(b=new RegExp(h+"{2}"),d.match(/[^\d.,]/g)?!1:(m=d.split(f),m.length>2?!1:m.length<2?!!m[0].match(/^\d+.*\d$/)&&!m[0].match(b):m[0].length===1?!!m[0].match(/^\d+$/)&&!m[0].match(b)&&!!m[1].match(/^\d+$/):!!m[0].match(/^\d+.*\d$/)&&!m[0].match(b)&&!!m[1].match(/^\d+$/)))},e.fn=c.prototype={clone:function(){return e(this)},format:function(d,u){var f=this._value,h=d||l.defaultFormat,g,m,p;if(u=u||Math.round,f===0&&l.zeroFormat!==null)m=l.zeroFormat;else if(f===null&&l.nullFormat!==null)m=l.nullFormat;else{for(g in n)if(h.match(n[g].regexps.format)){p=n[g].format;break}p=p||e._.numberToFormat,m=p(f,h,u)}return m},value:function(){return this._value},input:function(){return this._input},set:function(d){return this._value=Number(d),this},add:function(d){var u=o.correctionFactor.call(null,this._value,d);function f(h,g,m,p){return h+Math.round(u*g)}return this._value=o.reduce([this._value,d],f,0)/u,this},subtract:function(d){var u=o.correctionFactor.call(null,this._value,d);function f(h,g,m,p){return h-Math.round(u*g)}return this._value=o.reduce([d],f,Math.round(this._value*u))/u,this},multiply:function(d){function u(f,h,g,m){var p=o.correctionFactor(f,h);return Math.round(f*p)*Math.round(h*p)/Math.round(p*p)}return this._value=o.reduce([this._value,d],u,1),this},divide:function(d){function u(f,h,g,m){var p=o.correctionFactor(f,h);return Math.round(f*p)/Math.round(h*p)}return this._value=o.reduce([this._value,d],u),this},difference:function(d){return Math.abs(e(this._value).subtract(d).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(d){var u=d%10;return~~(d%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(d,u,f){var h=e._.includes(u," BPS")?" ":"",g;return d=d*1e4,u=u.replace(/\s?BPS/,""),g=e._.numberToFormat(d,u,f),e._.includes(g,")")?(g=g.split(""),g.splice(-1,0,h+"BPS"),g=g.join("")):g=g+h+"BPS",g},unformat:function(d){return+(e._.stringToNumber(d)*1e-4).toFixed(15)}})}(),function(){var d={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=d.suffixes.concat(u.suffixes.filter(function(g){return d.suffixes.indexOf(g)<0})),h=f.join("|");h="("+h.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(g,m,p){var b,y=e._.includes(m,"ib")?u:d,x=e._.includes(m," b")||e._.includes(m," ib")?" ":"",C,B,w;for(m=m.replace(/\s?i?b/,""),C=0;C<=y.suffixes.length;C++)if(B=Math.pow(y.base,C),w=Math.pow(y.base,C+1),g===null||g===0||g>=B&&g<w){x+=y.suffixes[C],B>0&&(g=g/B);break}return b=e._.numberToFormat(g,m,p),b+x},unformat:function(g){var m=e._.stringToNumber(g),p,b;if(m){for(p=d.suffixes.length-1;p>=0;p--){if(e._.includes(g,d.suffixes[p])){b=Math.pow(d.base,p);break}if(e._.includes(g,u.suffixes[p])){b=Math.pow(u.base,p);break}}m*=b||1}return m}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(d,u,f){var h=e.locales[e.options.currentLocale],g={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},m,p,b;for(u=u.replace(/\s?\$\s?/,""),m=e._.numberToFormat(d,u,f),d>=0?(g.before=g.before.replace(/[\-\(]/,""),g.after=g.after.replace(/[\-\)]/,"")):d<0&&!e._.includes(g.before,"-")&&!e._.includes(g.before,"(")&&(g.before="-"+g.before),b=0;b<g.before.length;b++)switch(p=g.before[b],p){case"$":m=e._.insert(m,h.currency.symbol,b);break;case" ":m=e._.insert(m," ",b+h.currency.symbol.length-1);break}for(b=g.after.length-1;b>=0;b--)switch(p=g.after[b],p){case"$":m=b===g.after.length-1?m+h.currency.symbol:e._.insert(m,h.currency.symbol,-(g.after.length-(1+b)));break;case" ":m=b===g.after.length-1?m+" ":e._.insert(m," ",-(g.after.length-(1+b)+h.currency.symbol.length-1));break}return m}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(d,u,f){var h,g=typeof d=="number"&&!e._.isNaN(d)?d.toExponential():"0e+0",m=g.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),h=e._.numberToFormat(Number(m[0]),u,f),h+"e"+m[1]},unformat:function(d){var u=e._.includes(d,"e+")?d.split("e+"):d.split("e-"),f=Number(u[0]),h=Number(u[1]);h=e._.includes(d,"e-")?h*=-1:h;function g(m,p,b,y){var x=e._.correctionFactor(m,p),C=m*x*(p*x)/(x*x);return C}return e._.reduce([f,Math.pow(10,h)],g,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(d,u,f){var h=e.locales[e.options.currentLocale],g,m=e._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),m+=h.ordinal(d),g=e._.numberToFormat(d,u,f),g+m}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(d,u,f){var h=e._.includes(u," %")?" ":"",g;return e.options.scalePercentBy100&&(d=d*100),u=u.replace(/\s?\%/,""),g=e._.numberToFormat(d,u,f),e._.includes(g,")")?(g=g.split(""),g.splice(-1,0,h+"%"),g=g.join("")):g=g+h+"%",g},unformat:function(d){var u=e._.stringToNumber(d);return e.options.scalePercentBy100?u*.01:u}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(d,u,f){var h=Math.floor(d/60/60),g=Math.floor((d-h*60*60)/60),m=Math.round(d-h*60*60-g*60);return h+":"+(g<10?"0"+g:g)+":"+(m<10?"0"+m:m)},unformat:function(d){var u=d.split(":"),f=0;return u.length===3?(f=f+Number(u[0])*60*60,f=f+Number(u[1])*60,f=f+Number(u[2])):u.length===2&&(f=f+Number(u[0])*60,f=f+Number(u[1])),Number(f)}})}(),e})}(In)),In.exports}var Zx=Jx();const Wc=fl(Zx),Hc={__name:"FieldExpression",props:["value","type","displayFormat"],setup(t){const e=s.computed(()=>o()),o=()=>t.type==="DATE"?r():t.type==="NUMBER"?n():t.value,r=()=>Kx(t.value,t.displayFormat?t.displayFormat:"MM/dd/yyyy"),n=()=>t.displayFormat?t.displayFormat==="currency"?Wc(t.value).format("$0,0.00"):Wc(t.value).format(t.displayFormat):t.value;return(i,a)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(e.value),1))}},ev={class:"flex flex-col w-full"},tv={class:"w-1/4"},ov={class:"w-full mt-5"},Uc={__name:"EntityExplorer",props:{entityName:String},setup(t){const e=t,o=s.ref(e.entityName);s.watch(o,n=>{console.log("Entity changed to:",n)});const r=n=>{o.value=n};return(n,i)=>(s.openBlock(),s.createElementBlock("div",ev,[s.createElementVNode("div",tv,[(s.openBlock(),s.createBlock(da,{key:o.value,entityName:o.value,onEntityChangeCallback:r},null,8,["entityName"]))]),s.createElementVNode("div",ov,[(s.openBlock(),s.createBlock(oa,{key:o.value,entityName:o.value},null,8,["entityName"]))])]))}},rv=["onClick"],nv=["onClick","href"],iv={class:"layout-menuitem-text text-xs font-medium leading-tight break-words"},av=["onClick"],sv=["href"],qc=Fe({__name:"Menu",props:{menuName:{type:String,required:!0},layoutType:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)}},setup(t){const e=nt.useRouter(),o=t,r=s.ref([]),n=async()=>{try{const l={response:[{displayLabel:"Dashboard",icon:"pi pi-home",url:"/"},{displayLabel:"Entity List",icon:"pi pi-building",url:"/entity-list",children:[{displayLabel:"All Entities",url:"/entity-list/all"},{displayLabel:"Create Entity",url:"/entity-list/create"}],isOpen:!1},{displayLabel:"Entity Grid",icon:"pi pi-user",url:"/entity-grid"},{displayLabel:"Entity Tile",icon:"pi pi-building",url:"/entity-tile"},{displayLabel:"Entity Carousel",icon:"pi pi-building",url:"/entity-carousel"},{displayLabel:"Entity Form",icon:"pi pi-building",url:"/entity-form"},{displayLabel:"Entity 360",icon:"pi pi-bars",url:"/entity360"},{displayLabel:"Entity Explorer",icon:"pi pi-bars",url:"/entity-explorer"},{displayLabel:"Panels",icon:"pi pi-cog",url:"/panels"},{displayLabel:"Menu",icon:"pi pi-cog",url:"/menu",children:[{displayLabel:"Main Menu",url:"/menu/main"},{displayLabel:"Sub Menu",url:"/menu/sub"}],isOpen:!1},{displayLabel:"Components",icon:"pi pi-bars",url:"/components"}]};console.log("[Menu] Fetching menu data...",o.menuName),r.value=l.response||[],r.value.forEach(c=>{c.children&&c.children.length>0&&(c.isOpen=!1)}),console.log("[Menu] Loaded menu:",r.value)}catch(l){console.error("[Menu] Failed to load menu:",l)}};s.onMounted(()=>{n()});const i=l=>{r.value.forEach((c,d)=>{c.isOpen=d===l?!c.isOpen:!1})},a=l=>{const c=r.value[l];c.children&&c.children.length>0?i(l):c!=null&&c.url&&e.push(c.url)};return(l,c)=>(s.openBlock(),s.createElementBlock("div",{class:"card rounded-none p-0",style:s.normalizeStyle(t.layoutType==="horizontal"?"width: 100%;":"width: 12rem;")},[s.createElementVNode("ul",{class:s.normalizeClass(["layout-menu list-none",[t.layoutType==="horizontal"?"layout-menu-horizontal p-0 m-0 flex flex-row items-center gap-6":"layout-menu-vertical p-0 m-0 flex flex-col gap-2"]])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.value,(d,u)=>(s.openBlock(),s.createElementBlock("li",{key:d.id,class:s.normalizeClass(["layout-root-menuitem relative",{"is-open":d.isOpen}])},[l.$slots["list-item-menu-parent"]?(s.openBlock(),s.createElementBlock("a",{key:0,onClick:f=>a(u)},[s.renderSlot(l.$slots,"list-item-menu-parent",{item:d},void 0,!0)],8,rv)):(s.openBlock(),s.createElementBlock("a",{key:1,onClick:f=>a(u),href:d.children&&d.children.length>0?"#":d.url,class:"flex flex-col items-center text-center px-3 py-2 text-gray-700 hover:text-purple-700 cursor-pointer transition-colors duration-300"},[s.createElementVNode("i",{class:s.normalizeClass([d.icon+" text-2xl mb-1","layout-menuitem-icon"])},null,2),s.createElementVNode("span",iv,s.toDisplayString(d.displayLabel),1)],8,nv)),d.isOpen?(s.openBlock(),s.createElementBlock("ul",{key:2,style:s.normalizeStyle([{width:"12rem"},[t.layoutType==="horizontal"?"left: 0; top: 49px;":"left: 9rem; top: 0;"]]),class:s.normalizeClass(["submenu rounded-xl bg-white list-none",[t.layoutType==="horizontal"?"submenu-horizontal absolute top-full left-0 mt-2 bg-white shadow-md rounded z-50":"submenu-vertical absolute left-[144px] ml-4 space-y-1"]])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.children,(f,h)=>(s.openBlock(),s.createElementBlock("li",{key:f.id},[l.$slots["list-item-menu-child"]?(s.openBlock(),s.createElementBlock("a",{key:0,onClick:g=>i(u)},[s.renderSlot(l.$slots,"list-item-menu-child",{item:f},void 0,!0)],8,av)):(s.openBlock(),s.createElementBlock("a",{key:1,href:f.url,class:"layout-submenu-item flex items-center gap-2 text-sm text-gray-700 hover:bg-gray-100 px-3 py-2 rounded transition"},[s.createElementVNode("i",{class:s.normalizeClass([f.icon?f.icon:"pi pi-bars","text-base"])},null,2),s.createElementVNode("span",null,s.toDisplayString(f.displayLabel),1)],8,sv))]))),128))],6)):s.createCommentVNode("",!0)],2))),128))],2)],4))}},[["__scopeId","data-v-918f9cb5"]]),lv={class:"absolute left-3 top-[-10px] bg-[var(--bg-label-color)] px-1 text-xs text-gray-600 text"},cv={class:"absolute left-3 top-1/2 transform -translate-y-1/2 text-[var(--span-color)]"},dv=["placeholder"],uv={key:0,style:{color:"var(--secondary-color)"},class:"absolute left-3 top-full mt-1 text-xs"},Yc={__name:"TextInput",props:s.mergeModels({label:{type:String,default:"Label"},placeholder:{type:String,default:"Enter value"},editable:{type:Boolean,default:!0},icon:{type:String,default:""},error:{type:Boolean,default:!1}},{inputValue:{},inputValueModifiers:{}}),emits:s.mergeModels(["update:error"],["update:inputValue"]),setup(t,{emit:e}){const o=e,r=t,n=s.useModel(t,"inputValue");return s.watch(n,i=>{i&&r.error&&o("update:error",!1)}),(i,a)=>(s.openBlock(),s.createElementBlock("div",s.mergeProps({class:"relative"},i.$attrs),[s.createElementVNode("label",lv,s.toDisplayString(t.label),1),s.createElementVNode("span",cv,[s.createElementVNode("i",{class:s.normalizeClass(t.icon),style:{"font-size":"1rem"}},null,2)]),s.withDirectives(s.createElementVNode("input",{class:"w-full h-[40px] pl-10 py-2 border border-[var(--border-color)] rounded-lg placeholder:text-xs focus:border-[var(--primary-fore-color)] focus:ring-0 focus:outline-none text","onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),placeholder:t.placeholder},null,8,dv),[[s.vModelText,n.value]]),t.error===!0?(s.openBlock(),s.createElementBlock("small",uv,[s.createElementVNode("pre",null,s.toDisplayString(t.label)+" is required",1)])):s.createCommentVNode("",!0)],16))}},Ge=s.reactive({preset:"Aura",primary:"emerald",surface:null,darkTheme:!1,menuMode:"slim-plus",menuTheme:"light"}),Le=s.reactive({staticMenuDesktopInactive:!1,overlayMenuActive:!1,configSidebarVisible:!1,staticMenuMobileActive:!1,menuHoverActive:!1,rightMenuActive:!1,topbarMenuActive:!1,sidebarActive:!1,anchored:!1,activeMenuItem:null,overlaySubmenuActive:!1});function fv(){const t=g=>{if(Ge.menuMode=g,g==="static"&&(Le.staticMenuDesktopInactive=!1),g==="horizontal")if(Ge.darkTheme){if(!document.startViewTransition){Ge.menuTheme="dark";return}document.startViewTransition(()=>Ge.menuTheme="dark")}else{if(!document.startViewTransition){Ge.menuTheme="light";return}document.startViewTransition(()=>Ge.menuTheme="light")}},e=g=>{Le.activeMenuItem=g.value||g},o=()=>{Ge.menuMode==="overlay"&&(Le.overlayMenuActive=!Le.overlayMenuActive),window.innerWidth>991?Le.staticMenuDesktopInactive=!Le.staticMenuDesktopInactive:Le.staticMenuMobileActive=!Le.staticMenuMobileActive},r=()=>{n.value&&(Le.overlayMenuActive=!1,Le.overlaySubmenuActive=!1,Le.staticMenuMobileActive=!1,Le.menuHoverActive=!1,Le.configSidebarVisible=!1),Le.configSidebarVisible=!Le.configSidebarVisible},n=s.computed(()=>Le.overlayMenuActive||Le.staticMenuMobileActive||Le.overlaySubmenuActive),i=s.computed(()=>window.innerWidth>991),a=s.computed(()=>Ge.menuMode==="slim"),l=s.computed(()=>Ge.menuMode==="slim-plus"),c=s.computed(()=>Ge.menuMode==="horizontal"),d=s.computed(()=>Ge.menuMode==="overlay"),u=s.computed(()=>Ge.darkTheme),f=s.computed(()=>Ge.primary),h=s.computed(()=>Ge.surface);return{layoutConfig:Ge,layoutState:Le,getPrimary:f,getSurface:h,isDarkTheme:u,setMenuMode:t,toggleMenu:o,isSidebarActive:n,setActiveMenuItem:e,toggleConfigSidebar:r,isSlim:a,isSlimPlus:l,isHorizontal:c,isDesktop:i,isOverlay:d}}var hv={root:{transitionDuration:"{transition.duration}"},panel:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},header:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},content:{borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"}},gv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},mv={root:{width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},icon:{size:"1rem"},group:{borderColor:"{content.background}",offset:"-0.75rem"},lg:{width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},xl:{width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}}},pv={root:{borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},dot:{size:"0.5rem"},sm:{fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},lg:{fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},xl:{fontSize:"1rem",minWidth:"2rem",height:"2rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},bv={primitive:{borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},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"},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"},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"}},semantic:{transitionDuration:"0.2s",focusRing:{width:"1px",style:"solid",color:"{primary.color}",offset:"2px",shadow:"none"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.375rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.625rem"},borderRadius:"{border.radius.md}",focusRing:{width:"0",style:"none",color:"transparent",offset:"0",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.25rem 0.25rem",gap:"2px",header:{padding:"0.5rem 1rem 0.25rem 1rem"},option:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}"},optionGroup:{padding:"0.5rem 0.75rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.25rem 0.25rem",gap:"2px"},item:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 0.75rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"0.75rem",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.25rem",shadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},navigation:{shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.50}",borderColor:"{surface.300}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.500}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}}},yv={root:{borderRadius:"{content.border.radius}"}},kv={root:{padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},item:{color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},separator:{color:"{navigation.item.icon.color}"}},xv={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.5rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},colorScheme:{light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}}},vv={root:{background:"{content.background}",borderRadius:"{border.radius.xl}",color:"{content.color}",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},body:{padding:"1.25rem",gap:"0.5rem"},caption:{gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"500"},subtitle:{color:"{text.muted.color}"}},wv={root:{transitionDuration:"{transition.duration}"},content:{gap:"0.25rem"},indicatorList:{padding:"1rem",gap:"0.5rem"},indicator:{width:"2rem",height:"0.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}}},Cv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},clearIcon:{color:"{form.field.icon.color}"}},_v={root:{borderRadius:"{border.radius.sm}",width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},icon:{size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}}},Sv={root:{borderRadius:"16px",paddingX:"0.75rem",paddingY:"0.5rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},image:{width:"2rem",height:"2rem"},icon:{size:"1rem"},removeIcon:{size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}}},Bv={root:{transitionDuration:"{transition.duration}"},preview:{width:"1.5rem",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},panel:{shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},colorScheme:{light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}}},Ev={icon:{size:"2rem",color:"{overlay.modal.color}"},content:{gap:"1rem"}},Rv={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"1rem"},icon:{size:"1.5rem",color:"{overlay.popover.color}"},footer:{gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"}},Ov={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},Dv={root:{transitionDuration:"{transition.duration}"},header:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},headerCell:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},columnTitle:{fontWeight:"600"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},bodyCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},footerCell:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"600"},footer:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},dropPoint:{color:"{primary.color}"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},rowToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},filter:{inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},paginatorTop:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},Nv={root:{borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},header:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},content:{background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},footer:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"}},Tv={root:{transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},header:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},title:{gap:"0.5rem",fontWeight:"500"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},inputIcon:{color:"{form.field.icon.color}"},selectMonth:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},selectYear:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},group:{borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},dayView:{margin:"0.5rem 0 0 0"},weekDay:{padding:"0.25rem",fontWeight:"500",color:"{content.color}"},date:{hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2rem",height:"2rem",borderRadius:"50%",padding:"0.25rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},monthView:{margin:"0.5rem 0 0 0"},month:{padding:"0.375rem",borderRadius:"{content.border.radius}"},yearView:{margin:"0.5rem 0 0 0"},year:{padding:"0.375rem",borderRadius:"{content.border.radius}"},buttonbar:{padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},timePicker:{padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},colorScheme:{light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}}},Pv={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}",gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"}},Av={root:{borderColor:"{content.border.color}"},content:{background:"{content.background}",color:"{text.color}"},horizontal:{margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},vertical:{margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}}},$v={root:{background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},item:{borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Mv={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}"},title:{fontSize:"1.5rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"{overlay.modal.padding}"}},Fv={toolbar:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},toolbarItem:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},overlayOption:{focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},content:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"}},Vv={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},legend:{background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.5rem 0.75rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},content:{padding:"0"}},Lv={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},header:{background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},content:{highlightBorderColor:"{primary.color}",padding:"0 1.125rem 1.125rem 1.125rem",gap:"1rem"},file:{padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},fileList:{gap:"0.5rem"},progressbar:{height:"0.25rem"},basic:{gap:"0.5rem"}},Iv={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},over:{active:{top:"-1.25rem"}},in:{input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},on:{borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}}},zv={root:{borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},navButton:{background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},navIcon:{size:"1.5rem"},thumbnailsContent:{background:"{content.background}",padding:"1rem 0.25rem"},thumbnailNavButton:{size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},thumbnailNavButtonIcon:{size:"1rem"},caption:{background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},indicatorList:{gap:"0.5rem",padding:"1rem"},indicatorButton:{width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},insetIndicatorList:{background:"rgba(0, 0, 0, 0.5)"},insetIndicatorButton:{background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},closeButton:{size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},closeButtonIcon:{size:"1.5rem"},colorScheme:{light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}}},jv={icon:{color:"{form.field.icon.color}"}},Wv={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"}},Hv={root:{transitionDuration:"{transition.duration}"},preview:{icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},toolbar:{position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},action:{hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Uv={handle:{size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},qv={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},text:{fontWeight:"500"},icon:{size:"1rem"},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}}},Yv={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},display:{hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"}},Xv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},chip:{borderRadius:"{border.radius.sm}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}}},Kv={addon:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.5rem",minWidth:"2.5rem"}},Gv={root:{transitionDuration:"{transition.duration}"},button:{width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},colorScheme:{light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}}},Qv={root:{gap:"0.5rem"},input:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}}},Jv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},Zv={root:{transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},value:{background:"{primary.color}"},range:{background:"{content.border.color}"},text:{color:"{text.muted.color}"}},ew={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}}},tw={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},overlay:{padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},ow={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},separator:{borderColor:"{content.border.color}"}},rw={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},nw={root:{borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},content:{padding:"0.5rem 0.75rem",gap:"0.5rem",sm:{padding:"0.375rem 0.625rem"},lg:{padding:"0.625rem 0.875rem"}},text:{fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},icon:{size:"1.125rem",sm:{size:"1rem"},lg:{size:"1.25rem"}},closeButton:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},outlined:{root:{borderWidth:"1px"}},simple:{content:{padding:"0"}},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}}},iw={root:{borderRadius:"{content.border.radius}",gap:"1rem"},meters:{background:"{content.border.color}",size:"0.5rem"},label:{gap:"0.5rem"},labelMarker:{size:"0.5rem"},labelIcon:{size:"1rem"},labelList:{verticalGap:"0.5rem",horizontalGap:"1rem"}},aw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"}},sw={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},lw={root:{gutter:"0.75rem",transitionDuration:"{transition.duration}"},node:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"0.75rem 1rem",toggleablePadding:"0.75rem 1rem 1.25rem 1rem",borderRadius:"{content.border.radius}"},nodeToggleButton:{background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},connector:{color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"}},cw={root:{outline:{width:"2px",color:"{content.background}"}}},dw={root:{padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},navButton:{background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},currentPageReport:{color:"{text.muted.color}"},jumpToPageInput:{maxWidth:"2.5rem"}},uw={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},header:{background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},toggleableHeader:{padding:"0.375rem 1.125rem"},title:{fontWeight:"600"},content:{padding:"0 1.125rem 1.125rem 1.125rem"},footer:{padding:"0 1.125rem 1.125rem 1.125rem"}},fw={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"{content.border.radius}",first:{borderWidth:"1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"1px",bottomBorderRadius:"{content.border.radius}"}},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenu:{indent:"1rem"},submenuIcon:{color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"}},hw={meter:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},icon:{color:"{form.field.icon.color}"},overlay:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},content:{gap:"0.5rem"},colorScheme:{light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}}},gw={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},mw={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}"}},pw={root:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.25rem"},value:{background:"{primary.color}"},label:{color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"}},bw={colorScheme:{light:{root:{"color.1":"{red.500}","color.2":"{blue.500}","color.3":"{green.500}","color.4":"{yellow.500}"}},dark:{root:{"color.1":"{red.400}","color.2":"{blue.400}","color.3":"{green.400}","color.4":"{yellow.400}"}}}},yw={root:{width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},icon:{size:"0.75rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.5rem"},lg:{size:"1rem"}}},kw={root:{gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},icon:{size:"1rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},xw={colorScheme:{light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}}},vw={root:{transitionDuration:"{transition.duration}"},bar:{size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{bar:{background:"{surface.100}"}},dark:{bar:{background:"{surface.800}"}}}},ww={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},emptyMessage:{padding:"{list.option.padding}"}},Cw={root:{borderRadius:"{form.field.border.radius}"},colorScheme:{light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}}},_w={root:{borderRadius:"{content.border.radius}"},colorScheme:{light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}}},Sw={root:{transitionDuration:"{transition.duration}"},track:{background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},range:{background:"{primary.color}"},handle:{width:"20px",height:"20px",borderRadius:"50%",background:"{content.border.color}",hoverBackground:"{content.border.color}",content:{borderRadius:"50%",hoverBackground:"{content.background}",width:"16px",height:"16px",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{handle:{contentBackground:"{surface.0}"}},dark:{handle:{contentBackground:"{surface.950}"}}}},Bw={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"}},Ew={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"}},Rw={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},gutter:{background:"{content.border.color}"},handle:{size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Ow={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},step:{padding:"0.5rem",gap:"1rem"},stepHeader:{padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},stepTitle:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},stepNumber:{background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},steppanels:{padding:"0.875rem 0.5rem 1.125rem 0.5rem"},steppanel:{background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"}},Dw={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}"},itemLink:{borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},itemLabel:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},itemNumber:{background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},Nw={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},item:{background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},itemIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},activeBar:{height:"1px",bottom:"-1px",background:"{primary.color}"}},Tw={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},tab:{background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},tabpanel:{background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},activeBar:{height:"1px",bottom:"-1px",background:"{primary.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},Pw={root:{transitionDuration:"{transition.duration}"},tabList:{background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},tabPanel:{background:"{content.background}",color:"{content.color}"},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},Aw={root:{fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},icon:{size:"0.75rem"},colorScheme:{light:{primary:{background:"{primary.100}",color:"{primary.700}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.100}",color:"{green.700}"},info:{background:"{sky.100}",color:"{sky.700}"},warn:{background:"{orange.100}",color:"{orange.700}"},danger:{background:"{red.100}",color:"{red.700}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"color-mix(in srgb, {primary.500}, transparent 84%)",color:"{primary.300}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.300}"},info:{background:"color-mix(in srgb, {sky.500}, transparent 84%)",color:"{sky.300}"},warn:{background:"color-mix(in srgb, {orange.500}, transparent 84%)",color:"{orange.300}"},danger:{background:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.300}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},$w={root:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},prompt:{gap:"0.25rem"},commandResponse:{margin:"2px 0"}},Mw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},Fw={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},Vw={event:{minHeight:"5rem"},horizontal:{eventContent:{padding:"1rem 0"}},vertical:{eventContent:{padding:"0 1rem"}},eventMarker:{size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{content.border.color}",content:{borderRadius:"50%",size:"0.375rem",background:"{primary.color}",insetShadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},eventConnector:{color:"{content.border.color}",size:"2px"}},Lw={root:{width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},icon:{size:"1.125rem"},content:{padding:"{overlay.popover.padding}",gap:"0.5rem"},text:{gap:"0.5rem"},summary:{fontWeight:"500",fontSize:"1rem"},detail:{fontWeight:"500",fontSize:"0.875rem"},closeButton:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem"},colorScheme:{light:{blur:"1.5px",info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{blur:"10px",info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}}},Iw={root:{padding:"0.5rem 1rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.375rem 0.75rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.625rem 1.25rem"}},icon:{disabledColor:"{form.field.disabled.color}"},content:{left:"0.25rem",top:"0.25rem",checkedShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)"},colorScheme:{light:{root:{background:"{surface.100}",checkedBackground:"{surface.100}",hoverBackground:"{surface.100}",borderColor:"{surface.100}",color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}",checkedBorderColor:"{surface.100}"},content:{checkedBackground:"{surface.0}"},icon:{color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}"}},dark:{root:{background:"{surface.950}",checkedBackground:"{surface.950}",hoverBackground:"{surface.950}",borderColor:"{surface.950}",color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}",checkedBorderColor:"{surface.950}"},content:{checkedBackground:"{surface.800}"},icon:{color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}"}}}},zw={root:{width:"2.5rem",height:"1.5rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},handle:{borderRadius:"50%",size:"1rem"},colorScheme:{light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}}},jw={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"}},Ww={root:{maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},colorScheme:{light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}}},Hw={root:{background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},node:{padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.25rem"},nodeIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},nodeToggleButton:{borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},loadingIcon:{size:"2rem"},filter:{margin:"0 0 0.5rem 0"}},Uw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},tree:{padding:"{list.padding}"},clearIcon:{color:"{form.field.icon.color}"},emptyMessage:{padding:"{list.option.padding}"},chip:{borderRadius:"{border.radius.sm}"}},qw={root:{transitionDuration:"{transition.duration}"},header:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},headerCell:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},columnTitle:{fontWeight:"600"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},bodyCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},footerCell:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"600"},footer:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},nodeToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},Yw={loader:{mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}}};function Er(t){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er(t)}function Xc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function Kc(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Xc(Object(o),!0).forEach(function(r){Xw(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Xc(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function Xw(t,e,o){return(e=Kw(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Kw(t){var e=Gw(t,"string");return Er(e)=="symbol"?e:e+""}function Gw(t,e){if(Er(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(Er(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Qw=Kc(Kc({},bv),{},{components:{accordion:hv,autocomplete:gv,avatar:mv,badge:pv,blockui:yv,breadcrumb:kv,button:xv,datepicker:Tv,card:vv,carousel:wv,cascadeselect:Cv,checkbox:_v,chip:Sv,colorpicker:Bv,confirmdialog:Ev,confirmpopup:Rv,contextmenu:Ov,dataview:Nv,datatable:Dv,dialog:Pv,divider:Av,dock:$v,drawer:Mv,editor:Fv,fieldset:Vv,fileupload:Lv,iftalabel:Wv,floatlabel:Iv,galleria:zv,iconfield:jv,image:Hv,imagecompare:Uv,inlinemessage:qv,inplace:Yv,inputchips:Xv,inputgroup:Kv,inputnumber:Gv,inputotp:Qv,inputtext:Jv,knob:Zv,listbox:ew,megamenu:tw,menu:ow,menubar:rw,message:nw,metergroup:iw,multiselect:aw,orderlist:sw,organizationchart:lw,overlaybadge:cw,popover:mw,paginator:dw,password:hw,panel:uw,panelmenu:fw,picklist:gw,progressbar:pw,progressspinner:bw,radiobutton:yw,rating:kw,scrollpanel:vw,select:ww,selectbutton:Cw,skeleton:_w,slider:Sw,speeddial:Bw,splitter:Rw,splitbutton:Ew,stepper:Ow,steps:Dw,tabmenu:Nw,tabs:Tw,tabview:Pw,textarea:Mw,tieredmenu:Fw,tag:Aw,terminal:$w,timeline:Vw,togglebutton:Iw,toggleswitch:zw,tree:Hw,treeselect:Uw,treetable:qw,toast:Lw,toolbar:jw,virtualscroller:Yw},directives:{tooltip:Ww,ripple:xw}}),Jw={root:{transitionDuration:"{transition.duration}"},panel:{borderWidth:"0",borderColor:"{content.border.color}"},header:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",padding:"1.125rem",fontWeight:"700",borderRadius:"0",borderWidth:"0 1px 1px 1px",borderColor:"{content.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"1px"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},content:{borderWidth:"0 1px 1px 1px",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"1.125rem"},colorScheme:{light:{header:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.50}",activeHoverBackground:"{surface.100}"}},dark:{header:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.800}",activeHoverBackground:"{surface.700}"}}}},Zw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},eC={root:{width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},icon:{size:"1rem"},group:{borderColor:"{content.background}",offset:"-0.75rem"},lg:{width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},xl:{width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"}}},tC={root:{borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},dot:{size:"0.5rem"},sm:{fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},lg:{fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},xl:{fontSize:"1rem",minWidth:"2rem",height:"2rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},oC={primitive:{borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},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"},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"},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"}},semantic:{transitionDuration:"0.2s",focusRing:{width:"0",style:"none",color:"transparent",offset:"0"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.625rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.5rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.75rem"},borderRadius:"{border.radius.md}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},list:{padding:"0.5rem 0",gap:"0",header:{padding:"0.625rem 1rem 0 1rem"},option:{padding:"0.625rem 1rem",borderRadius:"0"},optionGroup:{padding:"0.625rem 1rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.5rem 0",gap:"0"},item:{padding:"0.625rem 1rem",borderRadius:"0",gap:"0.5rem"},submenuLabel:{padding:"0.625rem 1rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"1rem",shadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.5rem",shadow:"0 1px 3px rgba(0, 0, 0, 0.3)"},navigation:{shadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},focusRing:{shadow:"0 0 0 0.2rem {primary.200}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.0}",borderColor:"{surface.300}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.500}",shadow:"none"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},focusRing:{shadow:"0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.950}",borderColor:"{surface.600}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"none"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}}},rC={root:{borderRadius:"{content.border.radius}"}},nC={root:{padding:"1.25rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},item:{color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},separator:{color:"{navigation.item.icon.color}"}},iC={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"1rem",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.75rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"},label:{fontWeight:"600"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",offset:"{form.field.focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},colorScheme:{light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {primary.200}"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {surface.200}"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {sky.200}"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {green.200}"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {orange.200}"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {purple.200}"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {red.200}"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {surface.400}"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {sky.400}, transparent 80%)"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.400}, transparent 80%)"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {orange.400}, transparent 80%)"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {purple.400}, transparent 80%)"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.400}, transparent 80%)"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.0}, transparent 80%)"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {help.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {help.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {danger.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {danger.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}}},aC={root:{background:"{content.background}",borderRadius:"{border.radius.lg}",color:"{content.color}",shadow:"0 .125rem .25rem rgba(0,0,0,.075)"},body:{padding:"1.5rem",gap:"0.75rem"},caption:{gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"700"},subtitle:{color:"{text.muted.color}"}},sC={root:{transitionDuration:"{transition.duration}"},content:{gap:"0.25rem"},indicatorList:{padding:"1rem",gap:"0.5rem"},indicator:{width:"1rem",height:"1rem",borderRadius:"50",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}}},lC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1.25rem"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},clearIcon:{color:"{form.field.icon.color}"}},cC={root:{borderRadius:"{border.radius.sm}",width:"1.5rem",height:"1.5rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1.25rem",height:"1.25rem"},lg:{width:"1.75rem",height:"1.75rem"}},icon:{size:"1rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1.25rem"}}},dC={root:{borderRadius:"16px",paddingX:"0.875rem",paddingY:"0.625rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},image:{width:"2rem",height:"2rem"},icon:{size:"1rem"},removeIcon:{size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}}},uC={root:{transitionDuration:"{transition.duration}"},preview:{width:"1.75rem",height:"1.75rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},panel:{shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},colorScheme:{light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}}},fC={icon:{size:"2rem",color:"{overlay.modal.color}"},content:{gap:"1rem"}},hC={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"1rem"},icon:{size:"1.5rem",color:"{overlay.popover.color}"},footer:{gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"}},gC={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1.25rem"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},mC={root:{transitionDuration:"{transition.duration}"},header:{borderColor:"{datatable.border.color}",borderWidth:"1px 0 1px 0",padding:"0.75rem 1rem"},headerCell:{selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},columnTitle:{fontWeight:"700"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},bodyCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},footerCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"700"},footer:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},dropPoint:{color:"{primary.color}"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},rowToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},filter:{inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},paginatorTop:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},header:{background:"{surface.50}",color:"{text.color}"},headerCell:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}"},footer:{background:"{surface.50}",color:"{text.color}"},footerCell:{background:"{surface.50}",color:"{text.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},header:{background:"{surface.800}",color:"{text.color}"},headerCell:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}"},footer:{background:"{surface.800}",color:"{text.color}"},footerCell:{background:"{surface.800}",color:"{text.color}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},pC={root:{borderColor:"{content.border.color}",borderWidth:"1px",borderRadius:"4px",padding:"0"},header:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.875rem 1.125rem",borderRadius:"5px 5px 0 0"},content:{background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"5px"},footer:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.875rem 1.125rem",borderRadius:"0 0 5px 5px"},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},bC={root:{transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},header:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.75rem 0"},title:{gap:"0.5rem",fontWeight:"700"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},inputIcon:{color:"{form.field.icon.color}"},selectMonth:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}"},selectYear:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}"},group:{borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},dayView:{margin:"0.75rem 0 0 0"},weekDay:{padding:"0.375rem",fontWeight:"700",color:"{content.color}"},date:{hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",padding:"0.375rem",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},monthView:{margin:"0.75rem 0 0 0"},month:{padding:"0.5rem",borderRadius:"{content.border.radius}"},yearView:{margin:"0.75rem 0 0 0"},year:{padding:"0.5rem",borderRadius:"{content.border.radius}"},buttonbar:{padding:"0.75rem 0 0 0",borderColor:"{content.border.color}"},timePicker:{padding:"0.75rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},colorScheme:{light:{dropdown:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}}},yC={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}",gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"}},kC={root:{borderColor:"{content.border.color}"},content:{background:"{content.background}",color:"{text.color}"},horizontal:{margin:"1.125rem 0",padding:"0 1.125rem",content:{padding:"0 0.625rem"}},vertical:{margin:"0 1.125rem",padding:"1.125rem 0",content:{padding:"0.625rem 0"}}},xC={root:{background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.lg}"},item:{borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},vC={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}"},title:{fontSize:"1.5rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"{overlay.modal.padding}"}},wC={toolbar:{borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},toolbarItem:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},overlayOption:{focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},content:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},colorScheme:{light:{toolbar:{background:"{surface.50}"}},dark:{toolbar:{background:"{surface.800}"}}}},CC={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0.75rem 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},legend:{borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"{content.border.color}",padding:"0.625rem 0.875rem",gap:"0.5rem",fontWeight:"700",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},content:{padding:"0"},colorScheme:{light:{legend:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}",hoverColor:"{text.hover.color}"}},dark:{legend:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"}}}},_C={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},header:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",padding:"1.125rem",borderRadius:"5px 5px 0 0",gap:"0.5rem"},content:{highlightBorderColor:"{primary.color}",padding:"1.125rem",gap:"1rem"},file:{padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},fileList:{gap:"0.5rem"},progressbar:{height:"0.25rem"},basic:{gap:"0.5rem"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},SC={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},over:{active:{top:"-1.375rem"}},in:{input:{paddingTop:"1.875rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},on:{borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}}},BC={root:{borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},navButton:{background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0",prev:{borderRadius:"0 12px 12px 0"},next:{borderRadius:"12px 0 0 12px"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},navIcon:{size:"1.5rem"},thumbnailsContent:{padding:"1rem 0.25rem"},thumbnailNavButton:{size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},thumbnailNavButtonIcon:{size:"1rem"},caption:{background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},indicatorList:{gap:"0.5rem",padding:"1rem"},indicatorButton:{width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},insetIndicatorList:{background:"rgba(0, 0, 0, 0.5)"},insetIndicatorButton:{background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},closeButton:{size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},closeButtonIcon:{size:"1.5rem"},colorScheme:{light:{thumbnailsContent:{background:"{surface.50}"},thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailsContent:{background:"{surface.800}"},thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}}},EC={icon:{color:"{form.field.icon.color}"}},RC={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},input:{paddingTop:"1.875rem",paddingBottom:"{form.field.padding.y}"}},OC={root:{transitionDuration:"{transition.duration}"},preview:{icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},toolbar:{position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"{content.border.radius}",padding:".5rem",gap:"0.5rem"},action:{hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},DC={handle:{size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"rgba(255,255,255,0.3)",hoverBorderColor:"rgba(255,255,255,0.3)",borderWidth:"3px",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},NC={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},text:{fontWeight:"500"},icon:{size:"1.125rem"},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"color-mix(in srgb, {blue.50}, transparent 5%)",color:"{blue.600}",shadow:"none"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"color-mix(in srgb, {green.50}, transparent 5%)",color:"{green.600}",shadow:"none"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"color-mix(in srgb,{yellow.50}, transparent 5%)",color:"{yellow.600}",shadow:"none"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"color-mix(in srgb, {red.50}, transparent 5%)",color:"{red.600}",shadow:"none"},secondary:{background:"{surface.100}",borderColor:"{surface.100}",color:"{surface.600}",shadow:"none"},contrast:{background:"{surface.900}",borderColor:"{surface.900}",color:"{surface.50}",shadow:"none"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.500}, transparent 84%)",color:"{blue.500}",shadow:"none"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.500}",shadow:"none"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.500}, transparent 84%)",color:"{yellow.500}",shadow:"none"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.500}",shadow:"none"},secondary:{background:"{surface.800}",borderColor:"{surface.800}",color:"{surface.300}",shadow:"none"},contrast:{background:"{surface.0}",borderColor:"{surface.0}",color:"{surface.950}",shadow:"none"}}}},TC={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},display:{hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"}},PC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},chip:{borderRadius:"{border.radius.sm}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}}},AC={addon:{borderRadius:"{form.field.border.radius}",padding:"0.625rem 0.5rem",minWidth:"2.75rem"},colorScheme:{light:{addon:{background:"{surface.50}",borderColor:"{form.field.border.color}",color:"{text.muted.color}"}},dark:{addon:{background:"{surface.800}",borderColor:"{form.field.border.color}",color:"{text.muted.color}"}}}},$C={root:{transitionDuration:"{transition.duration}"},button:{width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},colorScheme:{light:{button:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{button:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.500}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},MC={root:{gap:"0.5rem"},input:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}}},FC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},VC={root:{transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},value:{background:"{primary.color}"},range:{background:"{content.border.color}"},text:{color:"{text.muted.color}"}},LC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.5rem",gutterEnd:"0.5rem"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}}},IC={root:{borderColor:"transparent",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.75rem 1rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"0.75rem 1rem"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},overlay:{padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"2rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.50}"}},dark:{root:{background:"{surface.800}"}}}},zC={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},separator:{borderColor:"{content.border.color}"}},jC={root:{borderColor:"transparent",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem 1rem",transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"0.75rem 1rem"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1.25rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"2rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.50}"}},dark:{root:{background:"{surface.800}"}}}},WC={root:{borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},content:{padding:"0.75rem 1rem",gap:"0.5rem",sm:{padding:"0.5rem 0.625rem"},lg:{padding:"0.75rem 0.875rem"}},text:{fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},icon:{size:"1.25rem",sm:{size:"1rem"},lg:{size:"1.5rem"}},closeButton:{width:"2rem",height:"2rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},outlined:{root:{borderWidth:"1px"}},simple:{content:{padding:"0"}},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"transparent",color:"{blue.600}",shadow:"none",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {blue.200}"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"transparent",color:"{green.600}",shadow:"none",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {green.200}"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"transparent",color:"{yellow.600}",shadow:"none",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {yellow.200}"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"transparent",color:"{red.600}",shadow:"none",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {red.200}"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"transparent",color:"{surface.600}",shadow:"none",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.200}"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"transparent",color:"{surface.50}",shadow:"none",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.400}"}},outlined:{color:"{surface.900}",borderColor:"{surface.900}"},simple:{color:"{surface.900}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"transparent",color:"{blue.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"transparent",color:"{green.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"transparent",color:"{yellow.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"transparent",color:"{red.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"transparent",color:"{surface.300}",shadow:"none",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"transparent",color:"{surface.950}",shadow:"none",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}}},HC={root:{borderRadius:"{content.border.radius}",gap:"1rem"},meters:{background:"{content.border.color}",size:"0.625rem"},label:{gap:"0.5rem"},labelMarker:{size:"0.5rem"},labelIcon:{size:"1rem"},labelList:{verticalGap:"0.5rem",horizontalGap:"1rem"}},UC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"}},qC={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},YC={root:{gutter:"0.75rem",transitionDuration:"{transition.duration}"},node:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"1rem 1.25rem",toggleablePadding:"1rem 1.25rem 1.5rem 1.25rem",borderRadius:"{content.border.radius}"},nodeToggleButton:{background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},connector:{color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"}},XC={root:{outline:{width:"2px",color:"{content.background}"}}},KC={root:{padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},navButton:{background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},currentPageReport:{color:"{text.muted.color}"},jumpToPageInput:{maxWidth:"2.5rem"}},GC={root:{borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},header:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",padding:"1.125rem",borderRadius:"5px 5px 0 0"},toggleableHeader:{padding:"0.25rem 1.125rem"},title:{fontWeight:"700"},content:{padding:"1.125rem"},footer:{padding:"1.125rem"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},QC={root:{gap:"0",transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"0",first:{borderWidth:"1px 1px 0 1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"0 1px 1px 1px",bottomBorderRadius:"{content.border.radius}"}},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenu:{indent:"1rem"},submenuIcon:{color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"}},JC={meter:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},icon:{color:"{form.field.icon.color}"},overlay:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},content:{gap:"0.75rem"},colorScheme:{light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}}},ZC={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},e1={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}"}},t1={root:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.5rem"},value:{background:"{primary.color}"},label:{color:"{primary.contrast.color}",fontSize:"0.875rem",fontWeight:"600"}},o1={colorScheme:{light:{root:{"color.1":"{pink.500}","color.2":"{sky.500}","color.3":"{emerald.500}","color.4":"{amber.500}"}},dark:{root:{"color.1":"{pink.400}","color.2":"{sky.400}","color.3":"{emerald.400}","color.4":"{amber.400}"}}}},r1={root:{width:"1.5rem",height:"1.5rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1.25rem",height:"1.25rem"},lg:{width:"1.75rem",height:"1.75rem"}},icon:{size:"1rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1.25rem"}}},n1={root:{gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},icon:{size:"1.25rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},i1={colorScheme:{light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}}},a1={root:{transitionDuration:"{transition.duration}"},bar:{size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{bar:{background:"{surface.200}"}},dark:{bar:{background:"{surface.700}"}}}},s1={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.5rem",gutterEnd:"0.5rem"},emptyMessage:{padding:"{list.option.padding}"}},l1={root:{borderRadius:"{form.field.border.radius}"},colorScheme:{light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}}},c1={root:{borderRadius:"{content.border.radius}"},colorScheme:{light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}}},d1={root:{transitionDuration:"{transition.duration}"},track:{background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},range:{background:"{primary.color}"},handle:{width:"16px",height:"16px",borderRadius:"50%",background:"{primary.color}",hoverBackground:"{primary.color}",content:{borderRadius:"50%",hoverBackground:"{primary.color}",width:"12px",height:"12px",shadow:"none"},focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},colorScheme:{light:{handle:{contentBackground:"{surface.0}"}},dark:{handle:{contentBackground:"{surface.950}"}}}},u1={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"}},f1={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"}},h1={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},gutter:{background:"{content.border.color}"},handle:{size:"24px",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{handle:{background:"{surface.400}"}},dark:{handle:{background:"{surface.600}"}}}},g1={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},step:{padding:"0.5rem",gap:"1rem"},stepHeader:{padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},stepTitle:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},stepNumber:{background:"{content.background}",activeBackground:"{primary.color}",borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",activeColor:"{primary.contrast.color}",size:"2.25rem",fontSize:"1.125rem",fontWeight:"500",borderRadius:"50%",shadow:"none"},steppanels:{padding:"0.875rem 0.5rem 1.125rem 0.5rem"},steppanel:{background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"}},m1={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}"},itemLink:{borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},itemLabel:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},itemNumber:{background:"{content.background}",activeBackground:"{primary.color}",borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",activeColor:"{primary.contrast.color}",size:"2.25rem",fontSize:"1.125rem",fontWeight:"500",borderRadius:"50%",shadow:"none"}},p1={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0",background:"{content.background}",borderColor:"{content.border.color}"},item:{borderWidth:"2px 0 0 0",borderColor:"transparent",hoverBorderColor:"transparent",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.25rem",fontWeight:"600",margin:"0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},itemIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},activeBar:{height:"0",bottom:"0",background:"transparent"},colorScheme:{light:{item:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.0}"}},dark:{item:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.900}"}}}},b1={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0",background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderWidth:"2px 0 0 0",borderColor:"transparent",hoverBorderColor:"transparent",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.25rem",fontWeight:"700",margin:"0",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},tabpanel:{background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},activeBar:{height:"0",bottom:"0",background:"transparent"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"},tab:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.0}"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"},tab:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.900}"}}}},y1={root:{transitionDuration:"{transition.duration}"},tabList:{background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},tabPanel:{background:"{content.background}",color:"{content.color}"},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},k1={root:{fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},icon:{size:"0.75rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},x1={root:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},prompt:{gap:"0.25rem"},commandResponse:{margin:"2px 0"}},v1={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},w1={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1.25rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},C1={event:{minHeight:"5rem"},horizontal:{eventContent:{padding:"1rem 0"}},vertical:{eventContent:{padding:"0 1rem"}},eventMarker:{size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{primary.color}",content:{borderRadius:"50%",size:"0.375rem",background:"transparent",insetShadow:"none"}},eventConnector:{color:"{content.border.color}",size:"2px"}},_1={root:{width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"0 0 0 6px",transitionDuration:"{transition.duration}"},icon:{size:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"0.5rem"},text:{gap:"0.5rem"},summary:{fontWeight:"500",fontSize:"1rem"},detail:{fontWeight:"500",fontSize:"0.875rem"},closeButton:{width:"2rem",height:"2rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem"},colorScheme:{light:{blur:"1.5px",info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.500}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {blue.200}"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.500}",color:"{green.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {green.200}"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.500}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {yellow.200}"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.500}",color:"{red.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {red.200}"}}},secondary:{background:"{surface.100}",borderColor:"{surface.500}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.200}"}}},contrast:{background:"{surface.900}",borderColor:"{primary.color}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.400}"}}}},dark:{blur:"10px",info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)"}}}}}},S1={root:{padding:"0.625rem 1rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",hoverColor:"{form.field.color}",checkedBackground:"{highlight.background}",checkedColor:"{highlight.color}",checkedBorderColor:"{form.field.border.color}",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.5rem 0.75rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.75rem 1.25rem"}},icon:{color:"{text.muted.color}",hoverColor:"{text.muted.color}",checkedColor:"{highlight.color}",disabledColor:"{form.field.disabled.color}"},content:{left:"0.25rem",top:"0.25rem",checkedBackground:"transparent",checkedShadow:"none"},colorScheme:{light:{root:{hoverBackground:"{surface.100}"}},dark:{root:{hoverBackground:"{surface.800}"}}}},B1={root:{width:"3rem",height:"1.75rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},handle:{borderRadius:"50%",size:"1.25rem"},colorScheme:{light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}}},E1={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"},colorScheme:{light:{root:{background:"{surface.50}",color:"{content.color}"}},dark:{root:{background:"{surface.800}",color:"{content.color}"}}}},R1={root:{maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.625rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},colorScheme:{light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}}},O1={root:{background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},node:{padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"},gap:"0.25rem"},nodeIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},nodeToggleButton:{borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},loadingIcon:{size:"2rem"},filter:{margin:"0 0 0.5rem 0"}},D1={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},tree:{padding:"{list.padding}"},clearIcon:{color:"{form.field.icon.color}"},emptyMessage:{padding:"{list.option.padding}"},chip:{borderRadius:"{border.radius.sm}"}},N1={root:{transitionDuration:"{transition.duration}"},header:{borderColor:"{treetable.border.color}",borderWidth:"1px 0 1px 0",padding:"0.75rem 1rem"},headerCell:{selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},columnTitle:{fontWeight:"700"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{sr.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},bodyCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},footerCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"700"},footer:{borderColor:"{treetable.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},nodeToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},header:{background:"{surface.50}",color:"{text.color}"},headerCell:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}"},footer:{background:"{surface.50}",color:"{text.color}"},footerCell:{background:"{surface.50}",color:"{text.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},header:{background:"{surface.800}",color:"{text.color}"},headerCell:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}"},footer:{background:"{surface.800}",color:"{text.color}"},footerCell:{background:"{surface.800}",color:"{text.color}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},T1={loader:{mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}}};function Rr(t){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rr(t)}function Gc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function Qc(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Gc(Object(o),!0).forEach(function(r){P1(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Gc(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function P1(t,e,o){return(e=A1(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function A1(t){var e=$1(t,"string");return Rr(e)=="symbol"?e:e+""}function $1(t,e){if(Rr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(Rr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var M1=Qc(Qc({},oC),{},{components:{accordion:Jw,autocomplete:Zw,avatar:eC,badge:tC,blockui:rC,breadcrumb:nC,button:iC,datepicker:bC,card:aC,carousel:sC,cascadeselect:lC,checkbox:cC,chip:dC,colorpicker:uC,confirmdialog:fC,confirmpopup:hC,contextmenu:gC,dataview:pC,datatable:mC,dialog:yC,divider:kC,dock:xC,drawer:vC,editor:wC,fieldset:CC,fileupload:_C,iftalabel:RC,floatlabel:SC,galleria:BC,iconfield:EC,image:OC,imagecompare:DC,inlinemessage:NC,inplace:TC,inputchips:PC,inputgroup:AC,inputnumber:$C,inputotp:MC,inputtext:FC,knob:VC,listbox:LC,megamenu:IC,menu:zC,menubar:jC,message:WC,metergroup:HC,multiselect:UC,orderlist:qC,organizationchart:YC,overlaybadge:XC,popover:e1,paginator:KC,password:JC,panel:GC,panelmenu:QC,picklist:ZC,progressbar:t1,progressspinner:o1,radiobutton:r1,rating:n1,scrollpanel:a1,select:s1,selectbutton:l1,skeleton:c1,slider:d1,speeddial:u1,splitter:h1,splitbutton:f1,stepper:g1,steps:m1,tabmenu:p1,tabs:b1,tabview:y1,textarea:v1,tieredmenu:w1,tag:k1,terminal:x1,timeline:C1,togglebutton:S1,toggleswitch:B1,tree:O1,treeselect:D1,treetable:N1,toast:_1,toolbar:E1,virtualscroller:T1},directives:{tooltip:R1,ripple:i1}});function F1(){const{layoutState:t,layoutConfig:e,setMenuMode:o,isDarkTheme:r}=fv(),n={Aura:Qw,Lara:M1};s.ref(Object.keys(n));const i=s.ref(e.preset);s.ref(e.darkTheme),s.ref(e.menuMode),s.ref([{name:"Light",value:!1},{name:"Dark",value:!0}]);const a=s.ref([{name:"noir",palette:{}},{name:"emerald",palette:{500:"#10b981"}},{name:"green",palette:{500:"#22c55e"}},{name:"lime",palette:{500:"#84cc16"}},{name:"orange",palette:{500:"#f97316"}},{name:"amber",palette:{500:"#f59e0b"}},{name:"yellow",palette:{500:"#eab308"}},{name:"teal",palette:{500:"#14b8a6"}},{name:"cyan",palette:{500:"#06b6d4"}},{name:"sky",palette:{500:"#0ea5e9"}},{name:"blue",palette:{500:"#3b82f6"}},{name:"indigo",palette:{500:"#6366f1"}},{name:"violet",palette:{500:"#8b5cf6"}},{name:"purple",palette:{500:"#a855f7"}},{name:"fuchsia",palette:{500:"#d946ef"}},{name:"pink",palette:{500:"#ec4899"}},{name:"rose",palette:{500:"#f43f5e"}}]),l=s.ref([{name:"slate",palette:{500:"#64748b"}},{name:"gray",palette:{500:"#6b7280"}},{name:"zinc",palette:{500:"#71717a"}},{name:"neutral",palette:{500:"#737373"}},{name:"stone",palette:{500:"#78716c"}},{name:"soho",palette:{500:"#8e8f93"}},{name:"viva",palette:{500:"#87898a"}},{name:"ocean",palette:{500:"#828787"}}]);function c(){if(!document.startViewTransition){d();return}document.startViewTransition(()=>d())}function d(){e.darkTheme=!e.darkTheme,e.menuTheme=r.value?"dark":"light",document.documentElement.classList.toggle("app-dark")}function u(){const m=a.value.find(p=>p.name===e.primary);if(m.name==="noir"){const p=[50,100,200,300,400,500,600,700,800,900,950],b={};return p.forEach(y=>{b[y]=`{surface.${y}}`}),{semantic:{primary:b,colorScheme:{light:{primary:{color:"{primary.950}",contrastColor:"#ffffff",hoverColor:"{primary.800}",activeColor:"{primary.700}"},highlight:{background:"{primary.950}",focusBackground:"{primary.700}",color:"#ffffff",focusColor:"#ffffff"}},dark:{primary:{color:"{primary.50}",contrastColor:"{primary.950}",hoverColor:"{primary.200}",activeColor:"{primary.300}"},highlight:{background:"{primary.50}",focusBackground:"{primary.300}",color:"{primary.950}",focusColor:"{primary.950}"}}}}}}else return{semantic:{primary:m.palette,colorScheme:{light:{primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"}},dark:{primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"}}}}}}function f(m){var p;if((p=m.semantic)!=null&&p.primary){const b=m.semantic.primary[500];document.documentElement.style.setProperty("--p-button-primary-background",b),document.documentElement.style.setProperty("--p-button-primary-border-color",b)}}function h(m,p){let b;if(m==="primary"){if(b=a.value.find(y=>y.name===p),!b)return;e.primary=b.name,f({semantic:{primary:b.palette}})}if(m==="surface"){if(b=l.value.find(y=>y.name===p),!b)return;e.surface=b.name,dp(b.palette)}}function g(){var b;e.preset=i.value;const m=n[i.value],p=(b=l.value.find(y=>y.name===e.surface))==null?void 0:b.palette;Wl().preset(m).preset(u()).surfacePalette(p).use({useDefaultOptions:!0})}return{toggleDarkMode:c,updateColors:h,onPresetChange:g}}function V1(t){const e=new mt;return{getEntityRecord:async(r,n,i)=>{try{const a=await e.getRecord(r,n);if(a&&a.response)return i!=null&&i!=""&&t(i,a.response),a}catch(a){return a}finally{}}}}function L1(t){const e=new mt;return{addEntityRecord:async(r,n,i)=>{const a={dataDefinitions:Object.entries(n).map(([l,c])=>({recordColumnName:l,recordColumnValue:c}))};try{const l=await e.addRecord(r,a);if(l&&l.response)return i!=null&&i!=""&&t(i,l.response),l}catch(l){return l}finally{}}}}function I1(t){const e=new mt;return{deleteEntityRecord:async(r,n,i)=>{try{const a=await e.deleteRecord(r,n);if(a&&a.response)return i!=null&&i!=""&&t(i,a.response),a}catch(a){return a}finally{}}}}function z1(){const t=Ue(),{get:e,post:o,put:r,del:n}=ko(),i=()=>t.getAppId();return{getThemes:async()=>{const u=i();return await e(`/api/app/v1/${u}/theme`)},getThemesData:async u=>(i(),await e(`/api/platform/v1/theme/${u}`)),saveTheme:async u=>{const f=i();return await o(`/api/app/v1/${f}/theme`,u)},updatetheme:async u=>{const f=i();return await r(`/api/app/v1/${f}/theme`,u)}}}function j1(){const t=Ue(),{get:e,post:o,put:r,del:n}=ko(),i=()=>t.getAppId();return{getPlatformComponents:async()=>await e("/api/platform/v1/search/COMPONENT_PALLET?page=0&size=50&continue"),getComponent:async f=>{const h=i();return await e(`/api/app/v1/${h}/content/component/${f}`)},getAllComponents:async f=>{const h=i();return await e(`/api/app/v1/${h}/content/component`)},createComponent:async f=>{const h=i();return await o(`/api/app/v1/${h}/content/component`,f)},getComponentTemplates:async f=>await e(`api/platform/v1/search/COMPONENT_TEMPLATE?keyword=${f}&page=0&size=50`)}}function W1(){Ue();const{get:t,post:e,put:o,del:r}=ko();return{getActiveUser:async()=>await t("/users/me")}}function H1(){const t=Ue(),{get:e,post:o,put:r,del:n}=ko(),i=()=>t.getAppId();return{getPage:async d=>{const u=i();return await e(`/api/app/v1/${u}/content/page/${d}`)},getPages:async()=>{const d=i();return await e(`/api/app/v1/${d}/content/page`)},createPage:async d=>{const u=i();return await o(`/api/app/v1/${u}/content/page`,d)}}}function U1(){const{get:t,post:e,put:o,del:r}=ko();return{getLayoutTemplates:async l=>await t("/page/layout"),saveLayout:async l=>await e("/page/layout",l),updateLayout:async l=>await o("/page/layout/layout",l)}}const q1={install(t,e){t.component("CSEntityGrid",oa),t.component("csentitygrid",oa),t.component("CSEntityList",uc),t.component("csentitylist",uc),t.component("CSFieldExpression",Hc),t.component("csfieldexpression",Hc),t.component("CSEntityBarChart",ic),t.component("csentitybarchart",ic),t.component("CSEntityLineChart",ac),t.component("csentitylinechart",ac),t.component("CSEntityPieChart",sc),t.component("csentitypiechart",sc),t.component("CSEntityPolarChart",lc),t.component("csentitypolarchart",lc),t.component("CSEntityRadarChart",cc),t.component("csentityradarchart",cc),t.component("CSEntity360View",dc),t.component("csentity360view",dc),t.component("CSEntityListing",fc),t.component("csentitylisting",fc),t.component("CSEntityListingTile",hc),t.component("csentitylistingtile",hc),t.component("CSEntityListingCarousel",Rc),t.component("csentitylistingcarousel",Rc),t.component("CSEntitySelection",da),t.component("csentityselection",da),t.component("CSEntityExplorer",Uc),t.component("csentityexplorer",Uc),t.component("CSMenu",qc),t.component("csmenu",qc),t.component("CSTextInput",Yc),t.component("cstextinput",Yc)}};/*!
|
|
172
173
|
* @kurkle/color v0.3.4
|
|
173
174
|
* https://github.com/kurkle/color#readme
|
|
174
175
|
* (c) 2024 Jukka Kurkela
|
|
175
176
|
* Released under the MIT License
|
|
176
|
-
*/function Or(t){return t+.5|0}const no=(t,e,o)=>Math.max(Math.min(t,o),e);function Dr(t){return no(Or(t*2.55),0,255)}function io(t){return no(Or(t*255),0,255)}function zt(t){return no(Or(t/2.55)/100,0,1)}function
|
|
177
|
+
*/function Or(t){return t+.5|0}const no=(t,e,o)=>Math.max(Math.min(t,o),e);function Dr(t){return no(Or(t*2.55),0,255)}function io(t){return no(Or(t*255),0,255)}function zt(t){return no(Or(t/2.55)/100,0,1)}function Jc(t){return no(Or(t*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},fa=[..."0123456789ABCDEF"],Y1=t=>fa[t&15],X1=t=>fa[(t&240)>>4]+fa[t&15],zn=t=>(t&240)>>4===(t&15),K1=t=>zn(t.r)&&zn(t.g)&&zn(t.b)&&zn(t.a);function G1(t){var e=t.length,o;return t[0]==="#"&&(e===4||e===5?o={r:255&dt[t[1]]*17,g:255&dt[t[2]]*17,b:255&dt[t[3]]*17,a:e===5?dt[t[4]]*17:255}:(e===7||e===9)&&(o={r:dt[t[1]]<<4|dt[t[2]],g:dt[t[3]]<<4|dt[t[4]],b:dt[t[5]]<<4|dt[t[6]],a:e===9?dt[t[7]]<<4|dt[t[8]]:255})),o}const Q1=(t,e)=>t<255?e(t):"";function J1(t){var e=K1(t)?Y1:X1;return t?"#"+e(t.r)+e(t.g)+e(t.b)+Q1(t.a,e):void 0}const Z1=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Zc(t,e,o){const r=e*Math.min(o,1-o),n=(i,a=(i+t/30)%12)=>o-r*Math.max(Math.min(a-3,9-a,1),-1);return[n(0),n(8),n(4)]}function e_(t,e,o){const r=(n,i=(n+t/60)%6)=>o-o*e*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function t_(t,e,o){const r=Zc(t,1,.5);let n;for(e+o>1&&(n=1/(e+o),e*=n,o*=n),n=0;n<3;n++)r[n]*=1-e-o,r[n]+=e;return r}function o_(t,e,o,r,n){return t===n?(e-o)/r+(e<o?6:0):e===n?(o-t)/r+2:(t-e)/r+4}function ha(t){const o=t.r/255,r=t.g/255,n=t.b/255,i=Math.max(o,r,n),a=Math.min(o,r,n),l=(i+a)/2;let c,d,u;return i!==a&&(u=i-a,d=l>.5?u/(2-i-a):u/(i+a),c=o_(o,r,n,u,i),c=c*60+.5),[c|0,d||0,l]}function ga(t,e,o,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,o,r)).map(io)}function ma(t,e,o){return ga(Zc,t,e,o)}function r_(t,e,o){return ga(t_,t,e,o)}function n_(t,e,o){return ga(e_,t,e,o)}function ed(t){return(t%360+360)%360}function i_(t){const e=Z1.exec(t);let o=255,r;if(!e)return;e[5]!==r&&(o=e[6]?Dr(+e[5]):io(+e[5]));const n=ed(+e[2]),i=+e[3]/100,a=+e[4]/100;return e[1]==="hwb"?r=r_(n,i,a):e[1]==="hsv"?r=n_(n,i,a):r=ma(n,i,a),{r:r[0],g:r[1],b:r[2],a:o}}function a_(t,e){var o=ha(t);o[0]=ed(o[0]+e),o=ma(o),t.r=o[0],t.g=o[1],t.b=o[2]}function s_(t){if(!t)return;const e=ha(t),o=e[0],r=Jc(e[1]),n=Jc(e[2]);return t.a<255?`hsla(${o}, ${r}%, ${n}%, ${zt(t.a)})`:`hsl(${o}, ${r}%, ${n}%)`}const td={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"},od={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 l_(){const t={},e=Object.keys(od),o=Object.keys(td);let r,n,i,a,l;for(r=0;r<e.length;r++){for(a=l=e[r],n=0;n<o.length;n++)i=o[n],l=l.replace(i,td[i]);i=parseInt(od[a],16),t[l]=[i>>16&255,i>>8&255,i&255]}return t}let jn;function c_(t){jn||(jn=l_(),jn.transparent=[0,0,0,0]);const e=jn[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const d_=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function u_(t){const e=d_.exec(t);let o=255,r,n,i;if(e){if(e[7]!==r){const a=+e[7];o=e[8]?Dr(a):no(a*255,0,255)}return r=+e[1],n=+e[3],i=+e[5],r=255&(e[2]?Dr(r):no(r,0,255)),n=255&(e[4]?Dr(n):no(n,0,255)),i=255&(e[6]?Dr(i):no(i,0,255)),{r,g:n,b:i,a:o}}}function f_(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${zt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const pa=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,qo=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function h_(t,e,o){const r=qo(zt(t.r)),n=qo(zt(t.g)),i=qo(zt(t.b));return{r:io(pa(r+o*(qo(zt(e.r))-r))),g:io(pa(n+o*(qo(zt(e.g))-n))),b:io(pa(i+o*(qo(zt(e.b))-i))),a:t.a+o*(e.a-t.a)}}function Wn(t,e,o){if(t){let r=ha(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*o,e===0?360:1)),r=ma(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function rd(t,e){return t&&Object.assign(e||{},t)}function nd(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=io(t[3]))):(e=rd(t,{r:0,g:0,b:0,a:1}),e.a=io(e.a)),e}function g_(t){return t.charAt(0)==="r"?u_(t):i_(t)}class Nr{constructor(e){if(e instanceof Nr)return e;const o=typeof e;let r;o==="object"?r=nd(e):o==="string"&&(r=G1(e)||c_(e)||g_(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=rd(this._rgb);return e&&(e.a=zt(e.a)),e}set rgb(e){this._rgb=nd(e)}rgbString(){return this._valid?f_(this._rgb):void 0}hexString(){return this._valid?J1(this._rgb):void 0}hslString(){return this._valid?s_(this._rgb):void 0}mix(e,o){if(e){const r=this.rgb,n=e.rgb;let i;const a=o===i?.5:o,l=2*a-1,c=r.a-n.a,d=((l*c===-1?l:(l+c)/(1+l*c))+1)/2;i=1-d,r.r=255&d*r.r+i*n.r+.5,r.g=255&d*r.g+i*n.g+.5,r.b=255&d*r.b+i*n.b+.5,r.a=a*r.a+(1-a)*n.a,this.rgb=r}return this}interpolate(e,o){return e&&(this._rgb=h_(this._rgb,e._rgb,o)),this}clone(){return new Nr(this.rgb)}alpha(e){return this._rgb.a=io(e),this}clearer(e){const o=this._rgb;return o.a*=1-e,this}greyscale(){const e=this._rgb,o=Or(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=o,this}opaquer(e){const o=this._rgb;return o.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 Wn(this._rgb,2,e),this}darken(e){return Wn(this._rgb,2,-e),this}saturate(e){return Wn(this._rgb,1,e),this}desaturate(e){return Wn(this._rgb,1,-e),this}rotate(e){return a_(this._rgb,e),this}}/*!
|
|
177
178
|
* Chart.js v4.4.7
|
|
178
179
|
* https://www.chartjs.org
|
|
179
180
|
* (c) 2024 Chart.js Contributors
|
|
180
181
|
* Released under the MIT License
|
|
181
|
-
*/function jt(){}const T_=(()=>{let t=0;return()=>t++})();function fe(t){return t==null}function Oe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function de(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Ae(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function at(t,e){return Ae(t)?t:e}function se(t,e){return typeof t>"u"?e:t}const P_=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,nd=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function ve(t,e,o){if(t&&typeof t.call=="function")return t.apply(o,e)}function ye(t,e,o,r){let n,i,s;if(Oe(t))for(i=t.length,n=0;n<i;n++)e.call(o,t[n],n);else if(de(t))for(s=Object.keys(t),i=s.length,n=0;n<i;n++)e.call(o,t[s[n]],s[n])}function Hn(t,e){let o,r,n,i;if(!t||!e||t.length!==e.length)return!1;for(o=0,r=t.length;o<r;++o)if(n=t[o],i=e[o],n.datasetIndex!==i.datasetIndex||n.index!==i.index)return!1;return!0}function Un(t){if(Oe(t))return t.map(Un);if(de(t)){const e=Object.create(null),o=Object.keys(t),r=o.length;let n=0;for(;n<r;++n)e[o[n]]=Un(t[o[n]]);return e}return t}function id(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function $_(t,e,o,r){if(!id(t))return;const n=e[t],i=o[t];de(n)&&de(i)?Tr(n,i,r):e[t]=Un(i)}function Tr(t,e,o){const r=Oe(e)?e:[e],n=r.length;if(!de(t))return t;o=o||{};const i=o.merger||$_;let s;for(let l=0;l<n;++l){if(s=r[l],!de(s))continue;const c=Object.keys(s);for(let d=0,u=c.length;d<u;++d)i(c[d],t,s,o)}return t}function Pr(t,e){return Tr(t,e,{merger:A_})}function A_(t,e,o){if(!id(t))return;const r=e[t],n=o[t];de(r)&&de(n)?Pr(r,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Un(n))}const ad={"":t=>t,x:t=>t.x,y:t=>t.y};function M_(t){const e=t.split("."),o=[];let r="";for(const n of e)r+=n,r.endsWith("\\")?r=r.slice(0,-1)+".":(o.push(r),r="");return o}function F_(t){const e=M_(t);return o=>{for(const r of e){if(r==="")break;o=o&&o[r]}return o}}function ao(t,e){return(ad[e]||(ad[e]=F_(e)))(t)}function ba(t){return t.charAt(0).toUpperCase()+t.slice(1)}const $r=t=>typeof t<"u",so=t=>typeof t=="function",sd=(t,e)=>{if(t.size!==e.size)return!1;for(const o of t)if(!e.has(o))return!1;return!0};function V_(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const _e=Math.PI,Se=2*_e,I_=Se+_e,qn=Number.POSITIVE_INFINITY,L_=_e/180,Fe=_e/2,_o=_e/4,ld=_e*2/3,lo=Math.log10,Rt=Math.sign;function Ar(t,e,o){return Math.abs(t-e)<o}function cd(t){const e=Math.round(t);t=Ar(t,e,t/1e3)?e:t;const o=Math.pow(10,Math.floor(lo(t))),r=t/o;return(r<=1?1:r<=2?2:r<=5?5:10)*o}function z_(t){const e=[],o=Math.sqrt(t);let r;for(r=1;r<o;r++)t%r===0&&(e.push(r),e.push(t/r));return o===(o|0)&&e.push(o),e.sort((n,i)=>n-i).pop(),e}function qo(t){return!isNaN(parseFloat(t))&&isFinite(t)}function j_(t,e){const o=Math.round(t);return o-e<=t&&o+e>=t}function dd(t,e,o){let r,n,i;for(r=0,n=t.length;r<n;r++)i=t[r][o],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function xt(t){return t*(_e/180)}function ya(t){return t*(180/_e)}function ud(t){if(!Ae(t))return;let e=1,o=0;for(;Math.round(t*e)/e!==t;)e*=10,o++;return o}function fd(t,e){const o=e.x-t.x,r=e.y-t.y,n=Math.sqrt(o*o+r*r);let i=Math.atan2(r,o);return i<-.5*_e&&(i+=Se),{angle:i,distance:n}}function ka(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function W_(t,e){return(t-e+I_)%Se-_e}function st(t){return(t%Se+Se)%Se}function Mr(t,e,o,r){const n=st(t),i=st(e),s=st(o),l=st(i-n),c=st(s-n),d=st(n-i),u=st(n-s);return n===i||n===s||r&&i===s||l>c&&d<u}function je(t,e,o){return Math.max(e,Math.min(o,t))}function H_(t){return je(t,-32768,32767)}function Wt(t,e,o,r=1e-6){return t>=Math.min(e,o)-r&&t<=Math.max(e,o)+r}function xa(t,e,o){o=o||(s=>t[s]<e);let r=t.length-1,n=0,i;for(;r-n>1;)i=n+r>>1,o(i)?n=i:r=i;return{lo:n,hi:r}}const Ht=(t,e,o,r)=>xa(t,o,r?n=>{const i=t[n][e];return i<o||i===o&&t[n+1][e]===o}:n=>t[n][e]<o),U_=(t,e,o)=>xa(t,o,r=>t[r][e]>=o);function q_(t,e,o){let r=0,n=t.length;for(;r<n&&t[r]<e;)r++;for(;n>r&&t[n-1]>o;)n--;return r>0||n<t.length?t.slice(r,n):t}const hd=["push","pop","shift","splice","unshift"];function Y_(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),hd.forEach(o=>{const r="_onData"+ba(o),n=t[o];Object.defineProperty(t,o,{configurable:!0,enumerable:!1,value(...i){const s=n.apply(this,i);return t._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),s}})})}function gd(t,e){const o=t._chartjs;if(!o)return;const r=o.listeners,n=r.indexOf(e);n!==-1&&r.splice(n,1),!(r.length>0)&&(hd.forEach(i=>{delete t[i]}),delete t._chartjs)}function md(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const pd=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function bd(t,e){let o=[],r=!1;return function(...n){o=n,r||(r=!0,pd.call(window,()=>{r=!1,t.apply(e,o)}))}}function X_(t,e){let o;return function(...r){return e?(clearTimeout(o),o=setTimeout(t,e,r)):t.apply(this,r),e}}const va=t=>t==="start"?"left":t==="end"?"right":"center",qe=(t,e,o)=>t==="start"?e:t==="end"?o:(e+o)/2,K_=(t,e,o,r)=>t===(r?"left":"right")?o:t==="center"?(e+o)/2:e;function yd(t,e,o){const r=e.length;let n=0,i=r;if(t._sorted){const{iScale:s,_parsed:l}=t,c=s.axis,{min:d,max:u,minDefined:f,maxDefined:h}=s.getUserBounds();f&&(n=je(Math.min(Ht(l,c,d).lo,o?r:Ht(e,c,s.getPixelForValue(d)).lo),0,r-1)),h?i=je(Math.max(Ht(l,s.axis,u,!0).hi+1,o?0:Ht(e,c,s.getPixelForValue(u),!0).hi+1),n,r)-n:i=r-n}return{start:n,count:i}}function kd(t){const{xScale:e,yScale:o,_scaleRanges:r}=t,n={xmin:e.min,xmax:e.max,ymin:o.min,ymax:o.max};if(!r)return t._scaleRanges=n,!0;const i=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==o.min||r.ymax!==o.max;return Object.assign(r,n),i}const Yn=t=>t===0||t===1,xd=(t,e,o)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Se/o)),vd=(t,e,o)=>Math.pow(2,-10*t)*Math.sin((t-e)*Se/o)+1,Fr={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Fe)+1,easeOutSine:t=>Math.sin(t*Fe),easeInOutSine:t=>-.5*(Math.cos(_e*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Yn(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Yn(t)?t:xd(t,.075,.3),easeOutElastic:t=>Yn(t)?t:vd(t,.075,.3),easeInOutElastic(t){return Yn(t)?t:t<.5?.5*xd(t*2,.1125,.45):.5+.5*vd(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Fr.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Fr.easeInBounce(t*2)*.5:Fr.easeOutBounce(t*2-1)*.5+.5};function wa(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function wd(t){return wa(t)?t:new Nr(t)}function Ca(t){return wa(t)?t:new Nr(t).saturate(.5).darken(.1).hexString()}const G_=["x","y","borderWidth","radius","tension"],Q_=["color","borderColor","backgroundColor"];function J_(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:Q_},numbers:{type:"number",properties:G_}}),t.describe("animations",{_fallback:"animation"}),t.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 Z_(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Cd=new Map;function e5(t,e){e=e||{};const o=t+JSON.stringify(e);let r=Cd.get(o);return r||(r=new Intl.NumberFormat(t,e),Cd.set(o,r)),r}function Vr(t,e,o){return e5(e,o).format(t)}const _d={values(t){return Oe(t)?t:""+t},numeric(t,e,o){if(t===0)return"0";const r=this.chart.options.locale;let n,i=t;if(o.length>1){const d=Math.max(Math.abs(o[0].value),Math.abs(o[o.length-1].value));(d<1e-4||d>1e15)&&(n="scientific"),i=t5(t,o)}const s=lo(Math.abs(i)),l=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:n,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),Vr(t,r,c)},logarithmic(t,e,o){if(t===0)return"0";const r=o[e].significand||t/Math.pow(10,Math.floor(lo(t)));return[1,2,3,5,10,15].includes(r)||e>.8*o.length?_d.numeric.call(this,t,e,o):""}};function t5(t,e){let o=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(o)>=1&&t!==Math.floor(t)&&(o=t-Math.floor(t)),o}var Ir={formatters:_d};function o5(t){t.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,o)=>o.lineWidth,tickColor:(e,o)=>o.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:Ir.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const So=Object.create(null),_a=Object.create(null);function Lr(t,e){if(!e)return t;const o=e.split(".");for(let r=0,n=o.length;r<n;++r){const i=o[r];t=t[i]||(t[i]=Object.create(null))}return t}function Sa(t,e,o){return typeof e=="string"?Tr(Lr(t,e),o):Tr(Lr(t,""),e)}class r5{constructor(e,o){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=r=>r.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=(r,n)=>Ca(n.backgroundColor),this.hoverBorderColor=(r,n)=>Ca(n.borderColor),this.hoverColor=(r,n)=>Ca(n.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(o)}set(e,o){return Sa(this,e,o)}get(e){return Lr(this,e)}describe(e,o){return Sa(_a,e,o)}override(e,o){return Sa(So,e,o)}route(e,o,r,n){const i=Lr(this,e),s=Lr(this,r),l="_"+o;Object.defineProperties(i,{[l]:{value:i[o],writable:!0},[o]:{enumerable:!0,get(){const c=this[l],d=s[n];return de(c)?Object.assign({},d,c):se(c,d)},set(c){this[l]=c}}})}apply(e){e.forEach(o=>o(this))}}var Be=new r5({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[J_,Z_,o5]);function n5(t){return!t||fe(t.size)||fe(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Xn(t,e,o,r,n){let i=e[n];return i||(i=e[n]=t.measureText(n).width,o.push(n)),i>r&&(r=i),r}function i5(t,e,o,r){r=r||{};let n=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(n=r.data={},i=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let s=0;const l=o.length;let c,d,u,f,h;for(c=0;c<l;c++)if(f=o[c],f!=null&&!Oe(f))s=Xn(t,n,i,s,f);else if(Oe(f))for(d=0,u=f.length;d<u;d++)h=f[d],h!=null&&!Oe(h)&&(s=Xn(t,n,i,s,h));t.restore();const g=i.length/2;if(g>o.length){for(c=0;c<g;c++)delete n[i[c]];i.splice(0,g)}return s}function Bo(t,e,o){const r=t.currentDevicePixelRatio,n=o!==0?Math.max(o/2,.5):0;return Math.round((e-n)*r)/r+n}function Sd(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Ba(t,e,o,r){Bd(t,e,o,r,null)}function Bd(t,e,o,r,n){let i,s,l,c,d,u,f,h;const g=e.pointStyle,m=e.rotation,p=e.radius;let b=(m||0)*L_;if(g&&typeof g=="object"&&(i=g.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(o,r),t.rotate(b),t.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),t.restore();return}if(!(isNaN(p)||p<=0)){switch(t.beginPath(),g){default:n?t.ellipse(o,r,n/2,p,0,0,Se):t.arc(o,r,p,0,Se),t.closePath();break;case"triangle":u=n?n/2:p,t.moveTo(o+Math.sin(b)*u,r-Math.cos(b)*p),b+=ld,t.lineTo(o+Math.sin(b)*u,r-Math.cos(b)*p),b+=ld,t.lineTo(o+Math.sin(b)*u,r-Math.cos(b)*p),t.closePath();break;case"rectRounded":d=p*.516,c=p-d,s=Math.cos(b+_o)*c,f=Math.cos(b+_o)*(n?n/2-d:c),l=Math.sin(b+_o)*c,h=Math.sin(b+_o)*(n?n/2-d:c),t.arc(o-f,r-l,d,b-_e,b-Fe),t.arc(o+h,r-s,d,b-Fe,b),t.arc(o+f,r+l,d,b,b+Fe),t.arc(o-h,r+s,d,b+Fe,b+_e),t.closePath();break;case"rect":if(!m){c=Math.SQRT1_2*p,u=n?n/2:c,t.rect(o-u,r-c,2*u,2*c);break}b+=_o;case"rectRot":f=Math.cos(b)*(n?n/2:p),s=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+h,r-s),t.lineTo(o+f,r+l),t.lineTo(o-h,r+s),t.closePath();break;case"crossRot":b+=_o;case"cross":f=Math.cos(b)*(n?n/2:p),s=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+f,r+l),t.moveTo(o+h,r-s),t.lineTo(o-h,r+s);break;case"star":f=Math.cos(b)*(n?n/2:p),s=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+f,r+l),t.moveTo(o+h,r-s),t.lineTo(o-h,r+s),b+=_o,f=Math.cos(b)*(n?n/2:p),s=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+f,r+l),t.moveTo(o+h,r-s),t.lineTo(o-h,r+s);break;case"line":s=n?n/2:Math.cos(b)*p,l=Math.sin(b)*p,t.moveTo(o-s,r-l),t.lineTo(o+s,r+l);break;case"dash":t.moveTo(o,r),t.lineTo(o+Math.cos(b)*(n?n/2:p),r+Math.sin(b)*p);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Ut(t,e,o){return o=o||.5,!e||t&&t.x>e.left-o&&t.x<e.right+o&&t.y>e.top-o&&t.y<e.bottom+o}function Kn(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Gn(t){t.restore()}function a5(t,e,o,r,n){if(!e)return t.lineTo(o.x,o.y);if(n==="middle"){const i=(e.x+o.x)/2;t.lineTo(i,e.y),t.lineTo(i,o.y)}else n==="after"!=!!r?t.lineTo(e.x,o.y):t.lineTo(o.x,e.y);t.lineTo(o.x,o.y)}function s5(t,e,o,r){if(!e)return t.lineTo(o.x,o.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?o.cp2x:o.cp1x,r?o.cp2y:o.cp1y,o.x,o.y)}function l5(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),fe(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function c5(t,e,o,r,n){if(n.strikethrough||n.underline){const i=t.measureText(r),s=e-i.actualBoundingBoxLeft,l=e+i.actualBoundingBoxRight,c=o-i.actualBoundingBoxAscent,d=o+i.actualBoundingBoxDescent,u=n.strikethrough?(c+d)/2:d;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(s,u),t.lineTo(l,u),t.stroke()}}function d5(t,e){const o=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=o}function Eo(t,e,o,r,n,i={}){const s=Oe(e)?e:[e],l=i.strokeWidth>0&&i.strokeColor!=="";let c,d;for(t.save(),t.font=n.string,l5(t,i),c=0;c<s.length;++c)d=s[c],i.backdrop&&d5(t,i.backdrop),l&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),fe(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(d,o,r,i.maxWidth)),t.fillText(d,o,r,i.maxWidth),c5(t,o,r,d,i),r+=Number(n.lineHeight);t.restore()}function zr(t,e){const{x:o,y:r,w:n,h:i,radius:s}=e;t.arc(o+s.topLeft,r+s.topLeft,s.topLeft,1.5*_e,_e,!0),t.lineTo(o,r+i-s.bottomLeft),t.arc(o+s.bottomLeft,r+i-s.bottomLeft,s.bottomLeft,_e,Fe,!0),t.lineTo(o+n-s.bottomRight,r+i),t.arc(o+n-s.bottomRight,r+i-s.bottomRight,s.bottomRight,Fe,0,!0),t.lineTo(o+n,r+s.topRight),t.arc(o+n-s.topRight,r+s.topRight,s.topRight,0,-Fe,!0),t.lineTo(o+s.topLeft,r)}const u5=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,f5=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function h5(t,e){const o=(""+t).match(u5);if(!o||o[1]==="normal")return e*1.2;switch(t=+o[2],o[3]){case"px":return t;case"%":t/=100;break}return e*t}const g5=t=>+t||0;function Ea(t,e){const o={},r=de(e),n=r?Object.keys(e):e,i=de(t)?r?s=>se(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of n)o[s]=g5(i(s));return o}function Ed(t){return Ea(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ro(t){return Ea(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ye(t){const e=Ed(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Le(t,e){t=t||{},e=e||Be.font;let o=se(t.size,e.size);typeof o=="string"&&(o=parseInt(o,10));let r=se(t.style,e.style);r&&!(""+r).match(f5)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const n={family:se(t.family,e.family),lineHeight:h5(se(t.lineHeight,e.lineHeight),o),size:o,style:r,weight:se(t.weight,e.weight),string:""};return n.string=n5(n),n}function jr(t,e,o,r){let n,i,s;for(n=0,i=t.length;n<i;++n)if(s=t[n],s!==void 0&&s!==void 0)return s}function m5(t,e,o){const{min:r,max:n}=t,i=nd(e,(n-r)/2),s=(l,c)=>o&&l===0?0:l+c;return{min:s(r,-Math.abs(i)),max:s(n,i)}}function co(t,e){return Object.assign(Object.create(t),e)}function Ra(t,e=[""],o,r,n=()=>t[0]){const i=o||t;typeof r>"u"&&(r=Td("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:r,_getTarget:n,override:l=>Ra([l,...t],e,i,r)};return new Proxy(s,{deleteProperty(l,c){return delete l[c],delete l._keys,delete t[0][c],!0},get(l,c){return Od(l,c,()=>C5(c,e,t,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(l,c){return Pd(l).includes(c)},ownKeys(l){return Pd(l)},set(l,c,d){const u=l._storage||(l._storage=n());return l[c]=u[c]=d,delete l._keys,!0}})}function Yo(t,e,o,r){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:o,_stack:new Set,_descriptors:Rd(t,r),setContext:i=>Yo(t,i,o,r),override:i=>Yo(t.override(i),e,o,r)};return new Proxy(n,{deleteProperty(i,s){return delete i[s],delete t[s],!0},get(i,s,l){return Od(i,s,()=>b5(i,s,l))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(i,s,l){return t[s]=l,delete i[s],!0}})}function Rd(t,e={scriptable:!0,indexable:!0}){const{_scriptable:o=e.scriptable,_indexable:r=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:o,indexable:r,isScriptable:so(o)?o:()=>o,isIndexable:so(r)?r:()=>r}}const p5=(t,e)=>t?t+ba(e):e,Oa=(t,e)=>de(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Od(t,e,o){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=o();return t[e]=r,r}function b5(t,e,o){const{_proxy:r,_context:n,_subProxy:i,_descriptors:s}=t;let l=r[e];return so(l)&&s.isScriptable(e)&&(l=y5(e,l,t,o)),Oe(l)&&l.length&&(l=k5(e,l,t,s.isIndexable)),Oa(e,l)&&(l=Yo(l,n,i&&i[e],s)),l}function y5(t,e,o,r){const{_proxy:n,_context:i,_subProxy:s,_stack:l}=o;if(l.has(t))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+t);l.add(t);let c=e(i,s||r);return l.delete(t),Oa(t,c)&&(c=Da(n._scopes,n,t,c)),c}function k5(t,e,o,r){const{_proxy:n,_context:i,_subProxy:s,_descriptors:l}=o;if(typeof i.index<"u"&&r(t))return e[i.index%e.length];if(de(e[0])){const c=e,d=n._scopes.filter(u=>u!==c);e=[];for(const u of c){const f=Da(d,n,t,u);e.push(Yo(f,i,s&&s[t],l))}}return e}function Dd(t,e,o){return so(t)?t(e,o):t}const x5=(t,e)=>t===!0?e:typeof t=="string"?ao(e,t):void 0;function v5(t,e,o,r,n){for(const i of e){const s=x5(o,i);if(s){t.add(s);const l=Dd(s._fallback,o,n);if(typeof l<"u"&&l!==o&&l!==r)return l}else if(s===!1&&typeof r<"u"&&o!==r)return null}return!1}function Da(t,e,o,r){const n=e._rootScopes,i=Dd(e._fallback,o,r),s=[...t,...n],l=new Set;l.add(r);let c=Nd(l,s,o,i||o,r);return c===null||typeof i<"u"&&i!==o&&(c=Nd(l,s,i,c,r),c===null)?!1:Ra(Array.from(l),[""],n,i,()=>w5(e,o,r))}function Nd(t,e,o,r,n){for(;o;)o=v5(t,e,o,r,n);return o}function w5(t,e,o){const r=t._getTarget();e in r||(r[e]={});const n=r[e];return Oe(n)&&de(o)?o:n||{}}function C5(t,e,o,r){let n;for(const i of e)if(n=Td(p5(i,t),o),typeof n<"u")return Oa(t,n)?Da(o,r,t,n):n}function Td(t,e){for(const o of e){if(!o)continue;const r=o[t];if(typeof r<"u")return r}}function Pd(t){let e=t._keys;return e||(e=t._keys=_5(t._scopes)),e}function _5(t){const e=new Set;for(const o of t)for(const r of Object.keys(o).filter(n=>!n.startsWith("_")))e.add(r);return Array.from(e)}function $d(t,e,o,r){const{iScale:n}=t,{key:i="r"}=this._parsing,s=new Array(r);let l,c,d,u;for(l=0,c=r;l<c;++l)d=l+o,u=e[d],s[l]={r:n.parse(ao(u,i),d)};return s}const S5=Number.EPSILON||1e-14,Xo=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ad=t=>t==="x"?"y":"x";function B5(t,e,o,r){const n=t.skip?e:t,i=e,s=o.skip?e:o,l=ka(i,n),c=ka(s,i);let d=l/(l+c),u=c/(l+c);d=isNaN(d)?0:d,u=isNaN(u)?0:u;const f=r*d,h=r*u;return{previous:{x:i.x-f*(s.x-n.x),y:i.y-f*(s.y-n.y)},next:{x:i.x+h*(s.x-n.x),y:i.y+h*(s.y-n.y)}}}function E5(t,e,o){const r=t.length;let n,i,s,l,c,d=Xo(t,0);for(let u=0;u<r-1;++u)if(c=d,d=Xo(t,u+1),!(!c||!d)){if(Ar(e[u],0,S5)){o[u]=o[u+1]=0;continue}n=o[u]/e[u],i=o[u+1]/e[u],l=Math.pow(n,2)+Math.pow(i,2),!(l<=9)&&(s=3/Math.sqrt(l),o[u]=n*s*e[u],o[u+1]=i*s*e[u])}}function R5(t,e,o="x"){const r=Ad(o),n=t.length;let i,s,l,c=Xo(t,0);for(let d=0;d<n;++d){if(s=l,l=c,c=Xo(t,d+1),!l)continue;const u=l[o],f=l[r];s&&(i=(u-s[o])/3,l[`cp1${o}`]=u-i,l[`cp1${r}`]=f-i*e[d]),c&&(i=(c[o]-u)/3,l[`cp2${o}`]=u+i,l[`cp2${r}`]=f+i*e[d])}}function O5(t,e="x"){const o=Ad(e),r=t.length,n=Array(r).fill(0),i=Array(r);let s,l,c,d=Xo(t,0);for(s=0;s<r;++s)if(l=c,c=d,d=Xo(t,s+1),!!c){if(d){const u=d[e]-c[e];n[s]=u!==0?(d[o]-c[o])/u:0}i[s]=l?d?Rt(n[s-1])!==Rt(n[s])?0:(n[s-1]+n[s])/2:n[s-1]:n[s]}E5(t,n,i),R5(t,i,e)}function Qn(t,e,o){return Math.max(Math.min(t,o),e)}function D5(t,e){let o,r,n,i,s,l=Ut(t[0],e);for(o=0,r=t.length;o<r;++o)s=i,i=l,l=o<r-1&&Ut(t[o+1],e),i&&(n=t[o],s&&(n.cp1x=Qn(n.cp1x,e.left,e.right),n.cp1y=Qn(n.cp1y,e.top,e.bottom)),l&&(n.cp2x=Qn(n.cp2x,e.left,e.right),n.cp2y=Qn(n.cp2y,e.top,e.bottom)))}function N5(t,e,o,r,n){let i,s,l,c;if(e.spanGaps&&(t=t.filter(d=>!d.skip)),e.cubicInterpolationMode==="monotone")O5(t,n);else{let d=r?t[t.length-1]:t[0];for(i=0,s=t.length;i<s;++i)l=t[i],c=B5(d,l,t[Math.min(i+1,s-(r?0:1))%s],e.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,d=l}e.capBezierPoints&&D5(t,o)}function Na(){return typeof window<"u"&&typeof document<"u"}function Ta(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Jn(t,e,o){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[o])):r=t,r}const Zn=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function T5(t,e){return Zn(t).getPropertyValue(e)}const P5=["top","right","bottom","left"];function Oo(t,e,o){const r={};o=o?"-"+o:"";for(let n=0;n<4;n++){const i=P5[n];r[i]=parseFloat(t[e+"-"+i+o])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const $5=(t,e,o)=>(t>0||e>0)&&(!o||!o.shadowRoot);function A5(t,e){const o=t.touches,r=o&&o.length?o[0]:t,{offsetX:n,offsetY:i}=r;let s=!1,l,c;if($5(n,i,t.target))l=n,c=i;else{const d=e.getBoundingClientRect();l=r.clientX-d.left,c=r.clientY-d.top,s=!0}return{x:l,y:c,box:s}}function Do(t,e){if("native"in t)return t;const{canvas:o,currentDevicePixelRatio:r}=e,n=Zn(o),i=n.boxSizing==="border-box",s=Oo(n,"padding"),l=Oo(n,"border","width"),{x:c,y:d,box:u}=A5(t,o),f=s.left+(u&&l.left),h=s.top+(u&&l.top);let{width:g,height:m}=e;return i&&(g-=s.width+l.width,m-=s.height+l.height),{x:Math.round((c-f)/g*o.width/r),y:Math.round((d-h)/m*o.height/r)}}function M5(t,e,o){let r,n;if(e===void 0||o===void 0){const i=t&&Ta(t);if(!i)e=t.clientWidth,o=t.clientHeight;else{const s=i.getBoundingClientRect(),l=Zn(i),c=Oo(l,"border","width"),d=Oo(l,"padding");e=s.width-d.width-c.width,o=s.height-d.height-c.height,r=Jn(l.maxWidth,i,"clientWidth"),n=Jn(l.maxHeight,i,"clientHeight")}}return{width:e,height:o,maxWidth:r||qn,maxHeight:n||qn}}const ei=t=>Math.round(t*10)/10;function F5(t,e,o,r){const n=Zn(t),i=Oo(n,"margin"),s=Jn(n.maxWidth,t,"clientWidth")||qn,l=Jn(n.maxHeight,t,"clientHeight")||qn,c=M5(t,e,o);let{width:d,height:u}=c;if(n.boxSizing==="content-box"){const h=Oo(n,"border","width"),g=Oo(n,"padding");d-=g.width+h.width,u-=g.height+h.height}return d=Math.max(0,d-i.width),u=Math.max(0,r?d/r:u-i.height),d=ei(Math.min(d,s,c.maxWidth)),u=ei(Math.min(u,l,c.maxHeight)),d&&!u&&(u=ei(d/2)),(e!==void 0||o!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,d=ei(Math.floor(u*r))),{width:d,height:u}}function Md(t,e,o){const r=e||1,n=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(o||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||s.height!==n||s.width!==i?(t.currentDevicePixelRatio=r,s.height=n,s.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const V5=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Na()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function Fd(t,e){const o=T5(t,e),r=o&&o.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function No(t,e,o,r){return{x:t.x+o*(e.x-t.x),y:t.y+o*(e.y-t.y)}}function I5(t,e,o,r){return{x:t.x+o*(e.x-t.x),y:r==="middle"?o<.5?t.y:e.y:r==="after"?o<1?t.y:e.y:o>0?e.y:t.y}}function L5(t,e,o,r){const n={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},s=No(t,n,o),l=No(n,i,o),c=No(i,e,o),d=No(s,l,o),u=No(l,c,o);return No(d,u,o)}const z5=function(t,e){return{x(o){return t+t+e-o},setWidth(o){e=o},textAlign(o){return o==="center"?o:o==="right"?"left":"right"},xPlus(o,r){return o-r},leftForLtr(o,r){return o-r}}},j5=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Ko(t,e,o){return t?z5(e,o):j5()}function Vd(t,e){let o,r;(e==="ltr"||e==="rtl")&&(o=t.canvas.style,r=[o.getPropertyValue("direction"),o.getPropertyPriority("direction")],o.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Id(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Ld(t){return t==="angle"?{between:Mr,compare:W_,normalize:st}:{between:Wt,compare:(e,o)=>e-o,normalize:e=>e}}function zd({start:t,end:e,count:o,loop:r,style:n}){return{start:t%o,end:e%o,loop:r&&(e-t+1)%o===0,style:n}}function W5(t,e,o){const{property:r,start:n,end:i}=o,{between:s,normalize:l}=Ld(r),c=e.length;let{start:d,end:u,loop:f}=t,h,g;if(f){for(d+=c,u+=c,h=0,g=c;h<g&&s(l(e[d%c][r]),n,i);++h)d--,u--;d%=c,u%=c}return u<d&&(u+=c),{start:d,end:u,loop:f,style:t.style}}function jd(t,e,o){if(!o)return[t];const{property:r,start:n,end:i}=o,s=e.length,{compare:l,between:c,normalize:d}=Ld(r),{start:u,end:f,loop:h,style:g}=W5(t,e,o),m=[];let p=!1,b=null,y,x,C;const B=()=>c(n,C,y)&&l(n,C)!==0,w=()=>l(i,y)===0||c(i,C,y),_=()=>p||B(),v=()=>!p||w();for(let k=u,S=u;k<=f;++k)x=e[k%s],!x.skip&&(y=d(x[r]),y!==C&&(p=c(y,n,i),b===null&&_()&&(b=l(y,n)===0?k:S),b!==null&&v()&&(m.push(zd({start:b,end:k,loop:h,count:s,style:g})),b=null),S=k,C=y));return b!==null&&m.push(zd({start:b,end:f,loop:h,count:s,style:g})),m}function Wd(t,e){const o=[],r=t.segments;for(let n=0;n<r.length;n++){const i=jd(r[n],t.points,e);i.length&&o.push(...i)}return o}function H5(t,e,o,r){let n=0,i=e-1;if(o&&!r)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,o&&(i+=n);i>n&&t[i%e].skip;)i--;return i%=e,{start:n,end:i}}function U5(t,e,o,r){const n=t.length,i=[];let s=e,l=t[e],c;for(c=e+1;c<=o;++c){const d=t[c%n];d.skip||d.stop?l.skip||(r=!1,i.push({start:e%n,end:(c-1)%n,loop:r}),e=s=d.stop?c:null):(s=c,l.skip&&(e=c)),l=d}return s!==null&&i.push({start:e%n,end:s%n,loop:r}),i}function q5(t,e){const o=t.points,r=t.options.spanGaps,n=o.length;if(!n)return[];const i=!!t._loop,{start:s,end:l}=H5(o,n,i,r);if(r===!0)return Hd(t,[{start:s,end:l,loop:i}],o,e);const c=l<s?l+n:l,d=!!t._fullLoop&&s===0&&l===n-1;return Hd(t,U5(o,s,c,d),o,e)}function Hd(t,e,o,r){return!r||!r.setContext||!o?e:Y5(t,e,o,r)}function Y5(t,e,o,r){const n=t._chart.getContext(),i=Ud(t.options),{_datasetIndex:s,options:{spanGaps:l}}=t,c=o.length,d=[];let u=i,f=e[0].start,h=f;function g(m,p,b,y){const x=l?-1:1;if(m!==p){for(m+=c;o[m%c].skip;)m-=x;for(;o[p%c].skip;)p+=x;m%c!==p%c&&(d.push({start:m%c,end:p%c,loop:b,style:y}),u=y,f=p%c)}}for(const m of e){f=l?f:m.start;let p=o[f%c],b;for(h=f+1;h<=m.end;h++){const y=o[h%c];b=Ud(r.setContext(co(n,{type:"segment",p0:p,p1:y,p0DataIndex:(h-1)%c,p1DataIndex:h%c,datasetIndex:s}))),X5(b,u)&&g(f,h-1,m.loop,u),p=y,u=b}f<h-1&&g(f,h-1,m.loop,u)}return d}function Ud(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function X5(t,e){if(!e)return!1;const o=[],r=function(n,i){return wa(i)?(o.includes(i)||o.push(i),o.indexOf(i)):i};return JSON.stringify(t,r)!==JSON.stringify(e,r)}/*!
|
|
182
|
+
*/function jt(){}const m_=(()=>{let t=0;return()=>t++})();function fe(t){return t==null}function Oe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function de(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Pe(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function at(t,e){return Pe(t)?t:e}function se(t,e){return typeof t>"u"?e:t}const p_=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,id=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function we(t,e,o){if(t&&typeof t.call=="function")return t.apply(o,e)}function ye(t,e,o,r){let n,i,a;if(Oe(t))for(i=t.length,n=0;n<i;n++)e.call(o,t[n],n);else if(de(t))for(a=Object.keys(t),i=a.length,n=0;n<i;n++)e.call(o,t[a[n]],a[n])}function Hn(t,e){let o,r,n,i;if(!t||!e||t.length!==e.length)return!1;for(o=0,r=t.length;o<r;++o)if(n=t[o],i=e[o],n.datasetIndex!==i.datasetIndex||n.index!==i.index)return!1;return!0}function Un(t){if(Oe(t))return t.map(Un);if(de(t)){const e=Object.create(null),o=Object.keys(t),r=o.length;let n=0;for(;n<r;++n)e[o[n]]=Un(t[o[n]]);return e}return t}function ad(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function b_(t,e,o,r){if(!ad(t))return;const n=e[t],i=o[t];de(n)&&de(i)?Tr(n,i,r):e[t]=Un(i)}function Tr(t,e,o){const r=Oe(e)?e:[e],n=r.length;if(!de(t))return t;o=o||{};const i=o.merger||b_;let a;for(let l=0;l<n;++l){if(a=r[l],!de(a))continue;const c=Object.keys(a);for(let d=0,u=c.length;d<u;++d)i(c[d],t,a,o)}return t}function Pr(t,e){return Tr(t,e,{merger:y_})}function y_(t,e,o){if(!ad(t))return;const r=e[t],n=o[t];de(r)&&de(n)?Pr(r,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Un(n))}const sd={"":t=>t,x:t=>t.x,y:t=>t.y};function k_(t){const e=t.split("."),o=[];let r="";for(const n of e)r+=n,r.endsWith("\\")?r=r.slice(0,-1)+".":(o.push(r),r="");return o}function x_(t){const e=k_(t);return o=>{for(const r of e){if(r==="")break;o=o&&o[r]}return o}}function ao(t,e){return(sd[e]||(sd[e]=x_(e)))(t)}function ba(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Ar=t=>typeof t<"u",so=t=>typeof t=="function",ld=(t,e)=>{if(t.size!==e.size)return!1;for(const o of t)if(!e.has(o))return!1;return!0};function v_(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const _e=Math.PI,Se=2*_e,w_=Se+_e,qn=Number.POSITIVE_INFINITY,C_=_e/180,$e=_e/2,So=_e/4,cd=_e*2/3,lo=Math.log10,Rt=Math.sign;function $r(t,e,o){return Math.abs(t-e)<o}function dd(t){const e=Math.round(t);t=$r(t,e,t/1e3)?e:t;const o=Math.pow(10,Math.floor(lo(t))),r=t/o;return(r<=1?1:r<=2?2:r<=5?5:10)*o}function __(t){const e=[],o=Math.sqrt(t);let r;for(r=1;r<o;r++)t%r===0&&(e.push(r),e.push(t/r));return o===(o|0)&&e.push(o),e.sort((n,i)=>n-i).pop(),e}function Yo(t){return!isNaN(parseFloat(t))&&isFinite(t)}function S_(t,e){const o=Math.round(t);return o-e<=t&&o+e>=t}function ud(t,e,o){let r,n,i;for(r=0,n=t.length;r<n;r++)i=t[r][o],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function xt(t){return t*(_e/180)}function ya(t){return t*(180/_e)}function fd(t){if(!Pe(t))return;let e=1,o=0;for(;Math.round(t*e)/e!==t;)e*=10,o++;return o}function hd(t,e){const o=e.x-t.x,r=e.y-t.y,n=Math.sqrt(o*o+r*r);let i=Math.atan2(r,o);return i<-.5*_e&&(i+=Se),{angle:i,distance:n}}function ka(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function B_(t,e){return(t-e+w_)%Se-_e}function st(t){return(t%Se+Se)%Se}function Mr(t,e,o,r){const n=st(t),i=st(e),a=st(o),l=st(i-n),c=st(a-n),d=st(n-i),u=st(n-a);return n===i||n===a||r&&i===a||l>c&&d<u}function je(t,e,o){return Math.max(e,Math.min(o,t))}function E_(t){return je(t,-32768,32767)}function Wt(t,e,o,r=1e-6){return t>=Math.min(e,o)-r&&t<=Math.max(e,o)+r}function xa(t,e,o){o=o||(a=>t[a]<e);let r=t.length-1,n=0,i;for(;r-n>1;)i=n+r>>1,o(i)?n=i:r=i;return{lo:n,hi:r}}const Ht=(t,e,o,r)=>xa(t,o,r?n=>{const i=t[n][e];return i<o||i===o&&t[n+1][e]===o}:n=>t[n][e]<o),R_=(t,e,o)=>xa(t,o,r=>t[r][e]>=o);function O_(t,e,o){let r=0,n=t.length;for(;r<n&&t[r]<e;)r++;for(;n>r&&t[n-1]>o;)n--;return r>0||n<t.length?t.slice(r,n):t}const gd=["push","pop","shift","splice","unshift"];function D_(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),gd.forEach(o=>{const r="_onData"+ba(o),n=t[o];Object.defineProperty(t,o,{configurable:!0,enumerable:!1,value(...i){const a=n.apply(this,i);return t._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),a}})})}function md(t,e){const o=t._chartjs;if(!o)return;const r=o.listeners,n=r.indexOf(e);n!==-1&&r.splice(n,1),!(r.length>0)&&(gd.forEach(i=>{delete t[i]}),delete t._chartjs)}function pd(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const bd=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function yd(t,e){let o=[],r=!1;return function(...n){o=n,r||(r=!0,bd.call(window,()=>{r=!1,t.apply(e,o)}))}}function N_(t,e){let o;return function(...r){return e?(clearTimeout(o),o=setTimeout(t,e,r)):t.apply(this,r),e}}const va=t=>t==="start"?"left":t==="end"?"right":"center",Ye=(t,e,o)=>t==="start"?e:t==="end"?o:(e+o)/2,T_=(t,e,o,r)=>t===(r?"left":"right")?o:t==="center"?(e+o)/2:e;function kd(t,e,o){const r=e.length;let n=0,i=r;if(t._sorted){const{iScale:a,_parsed:l}=t,c=a.axis,{min:d,max:u,minDefined:f,maxDefined:h}=a.getUserBounds();f&&(n=je(Math.min(Ht(l,c,d).lo,o?r:Ht(e,c,a.getPixelForValue(d)).lo),0,r-1)),h?i=je(Math.max(Ht(l,a.axis,u,!0).hi+1,o?0:Ht(e,c,a.getPixelForValue(u),!0).hi+1),n,r)-n:i=r-n}return{start:n,count:i}}function xd(t){const{xScale:e,yScale:o,_scaleRanges:r}=t,n={xmin:e.min,xmax:e.max,ymin:o.min,ymax:o.max};if(!r)return t._scaleRanges=n,!0;const i=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==o.min||r.ymax!==o.max;return Object.assign(r,n),i}const Yn=t=>t===0||t===1,vd=(t,e,o)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Se/o)),wd=(t,e,o)=>Math.pow(2,-10*t)*Math.sin((t-e)*Se/o)+1,Fr={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*$e)+1,easeOutSine:t=>Math.sin(t*$e),easeInOutSine:t=>-.5*(Math.cos(_e*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Yn(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Yn(t)?t:vd(t,.075,.3),easeOutElastic:t=>Yn(t)?t:wd(t,.075,.3),easeInOutElastic(t){return Yn(t)?t:t<.5?.5*vd(t*2,.1125,.45):.5+.5*wd(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Fr.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Fr.easeInBounce(t*2)*.5:Fr.easeOutBounce(t*2-1)*.5+.5};function wa(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Cd(t){return wa(t)?t:new Nr(t)}function Ca(t){return wa(t)?t:new Nr(t).saturate(.5).darken(.1).hexString()}const P_=["x","y","borderWidth","radius","tension"],A_=["color","borderColor","backgroundColor"];function $_(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:A_},numbers:{type:"number",properties:P_}}),t.describe("animations",{_fallback:"animation"}),t.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 M_(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const _d=new Map;function F_(t,e){e=e||{};const o=t+JSON.stringify(e);let r=_d.get(o);return r||(r=new Intl.NumberFormat(t,e),_d.set(o,r)),r}function Vr(t,e,o){return F_(e,o).format(t)}const Sd={values(t){return Oe(t)?t:""+t},numeric(t,e,o){if(t===0)return"0";const r=this.chart.options.locale;let n,i=t;if(o.length>1){const d=Math.max(Math.abs(o[0].value),Math.abs(o[o.length-1].value));(d<1e-4||d>1e15)&&(n="scientific"),i=V_(t,o)}const a=lo(Math.abs(i)),l=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),c={notation:n,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),Vr(t,r,c)},logarithmic(t,e,o){if(t===0)return"0";const r=o[e].significand||t/Math.pow(10,Math.floor(lo(t)));return[1,2,3,5,10,15].includes(r)||e>.8*o.length?Sd.numeric.call(this,t,e,o):""}};function V_(t,e){let o=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(o)>=1&&t!==Math.floor(t)&&(o=t-Math.floor(t)),o}var Lr={formatters:Sd};function L_(t){t.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,o)=>o.lineWidth,tickColor:(e,o)=>o.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:Lr.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Bo=Object.create(null),_a=Object.create(null);function Ir(t,e){if(!e)return t;const o=e.split(".");for(let r=0,n=o.length;r<n;++r){const i=o[r];t=t[i]||(t[i]=Object.create(null))}return t}function Sa(t,e,o){return typeof e=="string"?Tr(Ir(t,e),o):Tr(Ir(t,""),e)}class I_{constructor(e,o){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=r=>r.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=(r,n)=>Ca(n.backgroundColor),this.hoverBorderColor=(r,n)=>Ca(n.borderColor),this.hoverColor=(r,n)=>Ca(n.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(o)}set(e,o){return Sa(this,e,o)}get(e){return Ir(this,e)}describe(e,o){return Sa(_a,e,o)}override(e,o){return Sa(Bo,e,o)}route(e,o,r,n){const i=Ir(this,e),a=Ir(this,r),l="_"+o;Object.defineProperties(i,{[l]:{value:i[o],writable:!0},[o]:{enumerable:!0,get(){const c=this[l],d=a[n];return de(c)?Object.assign({},d,c):se(c,d)},set(c){this[l]=c}}})}apply(e){e.forEach(o=>o(this))}}var Be=new I_({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[$_,M_,L_]);function z_(t){return!t||fe(t.size)||fe(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Xn(t,e,o,r,n){let i=e[n];return i||(i=e[n]=t.measureText(n).width,o.push(n)),i>r&&(r=i),r}function j_(t,e,o,r){r=r||{};let n=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(n=r.data={},i=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const l=o.length;let c,d,u,f,h;for(c=0;c<l;c++)if(f=o[c],f!=null&&!Oe(f))a=Xn(t,n,i,a,f);else if(Oe(f))for(d=0,u=f.length;d<u;d++)h=f[d],h!=null&&!Oe(h)&&(a=Xn(t,n,i,a,h));t.restore();const g=i.length/2;if(g>o.length){for(c=0;c<g;c++)delete n[i[c]];i.splice(0,g)}return a}function Eo(t,e,o){const r=t.currentDevicePixelRatio,n=o!==0?Math.max(o/2,.5):0;return Math.round((e-n)*r)/r+n}function Bd(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Ba(t,e,o,r){Ed(t,e,o,r,null)}function Ed(t,e,o,r,n){let i,a,l,c,d,u,f,h;const g=e.pointStyle,m=e.rotation,p=e.radius;let b=(m||0)*C_;if(g&&typeof g=="object"&&(i=g.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(o,r),t.rotate(b),t.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),t.restore();return}if(!(isNaN(p)||p<=0)){switch(t.beginPath(),g){default:n?t.ellipse(o,r,n/2,p,0,0,Se):t.arc(o,r,p,0,Se),t.closePath();break;case"triangle":u=n?n/2:p,t.moveTo(o+Math.sin(b)*u,r-Math.cos(b)*p),b+=cd,t.lineTo(o+Math.sin(b)*u,r-Math.cos(b)*p),b+=cd,t.lineTo(o+Math.sin(b)*u,r-Math.cos(b)*p),t.closePath();break;case"rectRounded":d=p*.516,c=p-d,a=Math.cos(b+So)*c,f=Math.cos(b+So)*(n?n/2-d:c),l=Math.sin(b+So)*c,h=Math.sin(b+So)*(n?n/2-d:c),t.arc(o-f,r-l,d,b-_e,b-$e),t.arc(o+h,r-a,d,b-$e,b),t.arc(o+f,r+l,d,b,b+$e),t.arc(o-h,r+a,d,b+$e,b+_e),t.closePath();break;case"rect":if(!m){c=Math.SQRT1_2*p,u=n?n/2:c,t.rect(o-u,r-c,2*u,2*c);break}b+=So;case"rectRot":f=Math.cos(b)*(n?n/2:p),a=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+h,r-a),t.lineTo(o+f,r+l),t.lineTo(o-h,r+a),t.closePath();break;case"crossRot":b+=So;case"cross":f=Math.cos(b)*(n?n/2:p),a=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+f,r+l),t.moveTo(o+h,r-a),t.lineTo(o-h,r+a);break;case"star":f=Math.cos(b)*(n?n/2:p),a=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+f,r+l),t.moveTo(o+h,r-a),t.lineTo(o-h,r+a),b+=So,f=Math.cos(b)*(n?n/2:p),a=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+f,r+l),t.moveTo(o+h,r-a),t.lineTo(o-h,r+a);break;case"line":a=n?n/2:Math.cos(b)*p,l=Math.sin(b)*p,t.moveTo(o-a,r-l),t.lineTo(o+a,r+l);break;case"dash":t.moveTo(o,r),t.lineTo(o+Math.cos(b)*(n?n/2:p),r+Math.sin(b)*p);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Ut(t,e,o){return o=o||.5,!e||t&&t.x>e.left-o&&t.x<e.right+o&&t.y>e.top-o&&t.y<e.bottom+o}function Kn(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Gn(t){t.restore()}function W_(t,e,o,r,n){if(!e)return t.lineTo(o.x,o.y);if(n==="middle"){const i=(e.x+o.x)/2;t.lineTo(i,e.y),t.lineTo(i,o.y)}else n==="after"!=!!r?t.lineTo(e.x,o.y):t.lineTo(o.x,e.y);t.lineTo(o.x,o.y)}function H_(t,e,o,r){if(!e)return t.lineTo(o.x,o.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?o.cp2x:o.cp1x,r?o.cp2y:o.cp1y,o.x,o.y)}function U_(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),fe(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function q_(t,e,o,r,n){if(n.strikethrough||n.underline){const i=t.measureText(r),a=e-i.actualBoundingBoxLeft,l=e+i.actualBoundingBoxRight,c=o-i.actualBoundingBoxAscent,d=o+i.actualBoundingBoxDescent,u=n.strikethrough?(c+d)/2:d;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(a,u),t.lineTo(l,u),t.stroke()}}function Y_(t,e){const o=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=o}function Ro(t,e,o,r,n,i={}){const a=Oe(e)?e:[e],l=i.strokeWidth>0&&i.strokeColor!=="";let c,d;for(t.save(),t.font=n.string,U_(t,i),c=0;c<a.length;++c)d=a[c],i.backdrop&&Y_(t,i.backdrop),l&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),fe(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(d,o,r,i.maxWidth)),t.fillText(d,o,r,i.maxWidth),q_(t,o,r,d,i),r+=Number(n.lineHeight);t.restore()}function zr(t,e){const{x:o,y:r,w:n,h:i,radius:a}=e;t.arc(o+a.topLeft,r+a.topLeft,a.topLeft,1.5*_e,_e,!0),t.lineTo(o,r+i-a.bottomLeft),t.arc(o+a.bottomLeft,r+i-a.bottomLeft,a.bottomLeft,_e,$e,!0),t.lineTo(o+n-a.bottomRight,r+i),t.arc(o+n-a.bottomRight,r+i-a.bottomRight,a.bottomRight,$e,0,!0),t.lineTo(o+n,r+a.topRight),t.arc(o+n-a.topRight,r+a.topRight,a.topRight,0,-$e,!0),t.lineTo(o+a.topLeft,r)}const X_=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,K_=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function G_(t,e){const o=(""+t).match(X_);if(!o||o[1]==="normal")return e*1.2;switch(t=+o[2],o[3]){case"px":return t;case"%":t/=100;break}return e*t}const Q_=t=>+t||0;function Ea(t,e){const o={},r=de(e),n=r?Object.keys(e):e,i=de(t)?r?a=>se(t[a],t[e[a]]):a=>t[a]:()=>t;for(const a of n)o[a]=Q_(i(a));return o}function Rd(t){return Ea(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Oo(t){return Ea(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Xe(t){const e=Rd(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ie(t,e){t=t||{},e=e||Be.font;let o=se(t.size,e.size);typeof o=="string"&&(o=parseInt(o,10));let r=se(t.style,e.style);r&&!(""+r).match(K_)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const n={family:se(t.family,e.family),lineHeight:G_(se(t.lineHeight,e.lineHeight),o),size:o,style:r,weight:se(t.weight,e.weight),string:""};return n.string=z_(n),n}function jr(t,e,o,r){let n,i,a;for(n=0,i=t.length;n<i;++n)if(a=t[n],a!==void 0&&a!==void 0)return a}function J_(t,e,o){const{min:r,max:n}=t,i=id(e,(n-r)/2),a=(l,c)=>o&&l===0?0:l+c;return{min:a(r,-Math.abs(i)),max:a(n,i)}}function co(t,e){return Object.assign(Object.create(t),e)}function Ra(t,e=[""],o,r,n=()=>t[0]){const i=o||t;typeof r>"u"&&(r=Pd("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:r,_getTarget:n,override:l=>Ra([l,...t],e,i,r)};return new Proxy(a,{deleteProperty(l,c){return delete l[c],delete l._keys,delete t[0][c],!0},get(l,c){return Dd(l,c,()=>a5(c,e,t,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(l,c){return Ad(l).includes(c)},ownKeys(l){return Ad(l)},set(l,c,d){const u=l._storage||(l._storage=n());return l[c]=u[c]=d,delete l._keys,!0}})}function Xo(t,e,o,r){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:o,_stack:new Set,_descriptors:Od(t,r),setContext:i=>Xo(t,i,o,r),override:i=>Xo(t.override(i),e,o,r)};return new Proxy(n,{deleteProperty(i,a){return delete i[a],delete t[a],!0},get(i,a,l){return Dd(i,a,()=>e5(i,a,l))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(i,a,l){return t[a]=l,delete i[a],!0}})}function Od(t,e={scriptable:!0,indexable:!0}){const{_scriptable:o=e.scriptable,_indexable:r=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:o,indexable:r,isScriptable:so(o)?o:()=>o,isIndexable:so(r)?r:()=>r}}const Z_=(t,e)=>t?t+ba(e):e,Oa=(t,e)=>de(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Dd(t,e,o){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=o();return t[e]=r,r}function e5(t,e,o){const{_proxy:r,_context:n,_subProxy:i,_descriptors:a}=t;let l=r[e];return so(l)&&a.isScriptable(e)&&(l=t5(e,l,t,o)),Oe(l)&&l.length&&(l=o5(e,l,t,a.isIndexable)),Oa(e,l)&&(l=Xo(l,n,i&&i[e],a)),l}function t5(t,e,o,r){const{_proxy:n,_context:i,_subProxy:a,_stack:l}=o;if(l.has(t))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+t);l.add(t);let c=e(i,a||r);return l.delete(t),Oa(t,c)&&(c=Da(n._scopes,n,t,c)),c}function o5(t,e,o,r){const{_proxy:n,_context:i,_subProxy:a,_descriptors:l}=o;if(typeof i.index<"u"&&r(t))return e[i.index%e.length];if(de(e[0])){const c=e,d=n._scopes.filter(u=>u!==c);e=[];for(const u of c){const f=Da(d,n,t,u);e.push(Xo(f,i,a&&a[t],l))}}return e}function Nd(t,e,o){return so(t)?t(e,o):t}const r5=(t,e)=>t===!0?e:typeof t=="string"?ao(e,t):void 0;function n5(t,e,o,r,n){for(const i of e){const a=r5(o,i);if(a){t.add(a);const l=Nd(a._fallback,o,n);if(typeof l<"u"&&l!==o&&l!==r)return l}else if(a===!1&&typeof r<"u"&&o!==r)return null}return!1}function Da(t,e,o,r){const n=e._rootScopes,i=Nd(e._fallback,o,r),a=[...t,...n],l=new Set;l.add(r);let c=Td(l,a,o,i||o,r);return c===null||typeof i<"u"&&i!==o&&(c=Td(l,a,i,c,r),c===null)?!1:Ra(Array.from(l),[""],n,i,()=>i5(e,o,r))}function Td(t,e,o,r,n){for(;o;)o=n5(t,e,o,r,n);return o}function i5(t,e,o){const r=t._getTarget();e in r||(r[e]={});const n=r[e];return Oe(n)&&de(o)?o:n||{}}function a5(t,e,o,r){let n;for(const i of e)if(n=Pd(Z_(i,t),o),typeof n<"u")return Oa(t,n)?Da(o,r,t,n):n}function Pd(t,e){for(const o of e){if(!o)continue;const r=o[t];if(typeof r<"u")return r}}function Ad(t){let e=t._keys;return e||(e=t._keys=s5(t._scopes)),e}function s5(t){const e=new Set;for(const o of t)for(const r of Object.keys(o).filter(n=>!n.startsWith("_")))e.add(r);return Array.from(e)}function $d(t,e,o,r){const{iScale:n}=t,{key:i="r"}=this._parsing,a=new Array(r);let l,c,d,u;for(l=0,c=r;l<c;++l)d=l+o,u=e[d],a[l]={r:n.parse(ao(u,i),d)};return a}const l5=Number.EPSILON||1e-14,Ko=(t,e)=>e<t.length&&!t[e].skip&&t[e],Md=t=>t==="x"?"y":"x";function c5(t,e,o,r){const n=t.skip?e:t,i=e,a=o.skip?e:o,l=ka(i,n),c=ka(a,i);let d=l/(l+c),u=c/(l+c);d=isNaN(d)?0:d,u=isNaN(u)?0:u;const f=r*d,h=r*u;return{previous:{x:i.x-f*(a.x-n.x),y:i.y-f*(a.y-n.y)},next:{x:i.x+h*(a.x-n.x),y:i.y+h*(a.y-n.y)}}}function d5(t,e,o){const r=t.length;let n,i,a,l,c,d=Ko(t,0);for(let u=0;u<r-1;++u)if(c=d,d=Ko(t,u+1),!(!c||!d)){if($r(e[u],0,l5)){o[u]=o[u+1]=0;continue}n=o[u]/e[u],i=o[u+1]/e[u],l=Math.pow(n,2)+Math.pow(i,2),!(l<=9)&&(a=3/Math.sqrt(l),o[u]=n*a*e[u],o[u+1]=i*a*e[u])}}function u5(t,e,o="x"){const r=Md(o),n=t.length;let i,a,l,c=Ko(t,0);for(let d=0;d<n;++d){if(a=l,l=c,c=Ko(t,d+1),!l)continue;const u=l[o],f=l[r];a&&(i=(u-a[o])/3,l[`cp1${o}`]=u-i,l[`cp1${r}`]=f-i*e[d]),c&&(i=(c[o]-u)/3,l[`cp2${o}`]=u+i,l[`cp2${r}`]=f+i*e[d])}}function f5(t,e="x"){const o=Md(e),r=t.length,n=Array(r).fill(0),i=Array(r);let a,l,c,d=Ko(t,0);for(a=0;a<r;++a)if(l=c,c=d,d=Ko(t,a+1),!!c){if(d){const u=d[e]-c[e];n[a]=u!==0?(d[o]-c[o])/u:0}i[a]=l?d?Rt(n[a-1])!==Rt(n[a])?0:(n[a-1]+n[a])/2:n[a-1]:n[a]}d5(t,n,i),u5(t,i,e)}function Qn(t,e,o){return Math.max(Math.min(t,o),e)}function h5(t,e){let o,r,n,i,a,l=Ut(t[0],e);for(o=0,r=t.length;o<r;++o)a=i,i=l,l=o<r-1&&Ut(t[o+1],e),i&&(n=t[o],a&&(n.cp1x=Qn(n.cp1x,e.left,e.right),n.cp1y=Qn(n.cp1y,e.top,e.bottom)),l&&(n.cp2x=Qn(n.cp2x,e.left,e.right),n.cp2y=Qn(n.cp2y,e.top,e.bottom)))}function g5(t,e,o,r,n){let i,a,l,c;if(e.spanGaps&&(t=t.filter(d=>!d.skip)),e.cubicInterpolationMode==="monotone")f5(t,n);else{let d=r?t[t.length-1]:t[0];for(i=0,a=t.length;i<a;++i)l=t[i],c=c5(d,l,t[Math.min(i+1,a-(r?0:1))%a],e.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,d=l}e.capBezierPoints&&h5(t,o)}function Na(){return typeof window<"u"&&typeof document<"u"}function Ta(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Jn(t,e,o){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[o])):r=t,r}const Zn=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function m5(t,e){return Zn(t).getPropertyValue(e)}const p5=["top","right","bottom","left"];function Do(t,e,o){const r={};o=o?"-"+o:"";for(let n=0;n<4;n++){const i=p5[n];r[i]=parseFloat(t[e+"-"+i+o])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const b5=(t,e,o)=>(t>0||e>0)&&(!o||!o.shadowRoot);function y5(t,e){const o=t.touches,r=o&&o.length?o[0]:t,{offsetX:n,offsetY:i}=r;let a=!1,l,c;if(b5(n,i,t.target))l=n,c=i;else{const d=e.getBoundingClientRect();l=r.clientX-d.left,c=r.clientY-d.top,a=!0}return{x:l,y:c,box:a}}function No(t,e){if("native"in t)return t;const{canvas:o,currentDevicePixelRatio:r}=e,n=Zn(o),i=n.boxSizing==="border-box",a=Do(n,"padding"),l=Do(n,"border","width"),{x:c,y:d,box:u}=y5(t,o),f=a.left+(u&&l.left),h=a.top+(u&&l.top);let{width:g,height:m}=e;return i&&(g-=a.width+l.width,m-=a.height+l.height),{x:Math.round((c-f)/g*o.width/r),y:Math.round((d-h)/m*o.height/r)}}function k5(t,e,o){let r,n;if(e===void 0||o===void 0){const i=t&&Ta(t);if(!i)e=t.clientWidth,o=t.clientHeight;else{const a=i.getBoundingClientRect(),l=Zn(i),c=Do(l,"border","width"),d=Do(l,"padding");e=a.width-d.width-c.width,o=a.height-d.height-c.height,r=Jn(l.maxWidth,i,"clientWidth"),n=Jn(l.maxHeight,i,"clientHeight")}}return{width:e,height:o,maxWidth:r||qn,maxHeight:n||qn}}const ei=t=>Math.round(t*10)/10;function x5(t,e,o,r){const n=Zn(t),i=Do(n,"margin"),a=Jn(n.maxWidth,t,"clientWidth")||qn,l=Jn(n.maxHeight,t,"clientHeight")||qn,c=k5(t,e,o);let{width:d,height:u}=c;if(n.boxSizing==="content-box"){const h=Do(n,"border","width"),g=Do(n,"padding");d-=g.width+h.width,u-=g.height+h.height}return d=Math.max(0,d-i.width),u=Math.max(0,r?d/r:u-i.height),d=ei(Math.min(d,a,c.maxWidth)),u=ei(Math.min(u,l,c.maxHeight)),d&&!u&&(u=ei(d/2)),(e!==void 0||o!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,d=ei(Math.floor(u*r))),{width:d,height:u}}function Fd(t,e,o){const r=e||1,n=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const a=t.canvas;return a.style&&(o||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||a.height!==n||a.width!==i?(t.currentDevicePixelRatio=r,a.height=n,a.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const v5=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Na()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function Vd(t,e){const o=m5(t,e),r=o&&o.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function To(t,e,o,r){return{x:t.x+o*(e.x-t.x),y:t.y+o*(e.y-t.y)}}function w5(t,e,o,r){return{x:t.x+o*(e.x-t.x),y:r==="middle"?o<.5?t.y:e.y:r==="after"?o<1?t.y:e.y:o>0?e.y:t.y}}function C5(t,e,o,r){const n={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=To(t,n,o),l=To(n,i,o),c=To(i,e,o),d=To(a,l,o),u=To(l,c,o);return To(d,u,o)}const _5=function(t,e){return{x(o){return t+t+e-o},setWidth(o){e=o},textAlign(o){return o==="center"?o:o==="right"?"left":"right"},xPlus(o,r){return o-r},leftForLtr(o,r){return o-r}}},S5=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Go(t,e,o){return t?_5(e,o):S5()}function Ld(t,e){let o,r;(e==="ltr"||e==="rtl")&&(o=t.canvas.style,r=[o.getPropertyValue("direction"),o.getPropertyPriority("direction")],o.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Id(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function zd(t){return t==="angle"?{between:Mr,compare:B_,normalize:st}:{between:Wt,compare:(e,o)=>e-o,normalize:e=>e}}function jd({start:t,end:e,count:o,loop:r,style:n}){return{start:t%o,end:e%o,loop:r&&(e-t+1)%o===0,style:n}}function B5(t,e,o){const{property:r,start:n,end:i}=o,{between:a,normalize:l}=zd(r),c=e.length;let{start:d,end:u,loop:f}=t,h,g;if(f){for(d+=c,u+=c,h=0,g=c;h<g&&a(l(e[d%c][r]),n,i);++h)d--,u--;d%=c,u%=c}return u<d&&(u+=c),{start:d,end:u,loop:f,style:t.style}}function Wd(t,e,o){if(!o)return[t];const{property:r,start:n,end:i}=o,a=e.length,{compare:l,between:c,normalize:d}=zd(r),{start:u,end:f,loop:h,style:g}=B5(t,e,o),m=[];let p=!1,b=null,y,x,C;const B=()=>c(n,C,y)&&l(n,C)!==0,w=()=>l(i,y)===0||c(i,C,y),_=()=>p||B(),v=()=>!p||w();for(let k=u,S=u;k<=f;++k)x=e[k%a],!x.skip&&(y=d(x[r]),y!==C&&(p=c(y,n,i),b===null&&_()&&(b=l(y,n)===0?k:S),b!==null&&v()&&(m.push(jd({start:b,end:k,loop:h,count:a,style:g})),b=null),S=k,C=y));return b!==null&&m.push(jd({start:b,end:f,loop:h,count:a,style:g})),m}function Hd(t,e){const o=[],r=t.segments;for(let n=0;n<r.length;n++){const i=Wd(r[n],t.points,e);i.length&&o.push(...i)}return o}function E5(t,e,o,r){let n=0,i=e-1;if(o&&!r)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,o&&(i+=n);i>n&&t[i%e].skip;)i--;return i%=e,{start:n,end:i}}function R5(t,e,o,r){const n=t.length,i=[];let a=e,l=t[e],c;for(c=e+1;c<=o;++c){const d=t[c%n];d.skip||d.stop?l.skip||(r=!1,i.push({start:e%n,end:(c-1)%n,loop:r}),e=a=d.stop?c:null):(a=c,l.skip&&(e=c)),l=d}return a!==null&&i.push({start:e%n,end:a%n,loop:r}),i}function O5(t,e){const o=t.points,r=t.options.spanGaps,n=o.length;if(!n)return[];const i=!!t._loop,{start:a,end:l}=E5(o,n,i,r);if(r===!0)return Ud(t,[{start:a,end:l,loop:i}],o,e);const c=l<a?l+n:l,d=!!t._fullLoop&&a===0&&l===n-1;return Ud(t,R5(o,a,c,d),o,e)}function Ud(t,e,o,r){return!r||!r.setContext||!o?e:D5(t,e,o,r)}function D5(t,e,o,r){const n=t._chart.getContext(),i=qd(t.options),{_datasetIndex:a,options:{spanGaps:l}}=t,c=o.length,d=[];let u=i,f=e[0].start,h=f;function g(m,p,b,y){const x=l?-1:1;if(m!==p){for(m+=c;o[m%c].skip;)m-=x;for(;o[p%c].skip;)p+=x;m%c!==p%c&&(d.push({start:m%c,end:p%c,loop:b,style:y}),u=y,f=p%c)}}for(const m of e){f=l?f:m.start;let p=o[f%c],b;for(h=f+1;h<=m.end;h++){const y=o[h%c];b=qd(r.setContext(co(n,{type:"segment",p0:p,p1:y,p0DataIndex:(h-1)%c,p1DataIndex:h%c,datasetIndex:a}))),N5(b,u)&&g(f,h-1,m.loop,u),p=y,u=b}f<h-1&&g(f,h-1,m.loop,u)}return d}function qd(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function N5(t,e){if(!e)return!1;const o=[],r=function(n,i){return wa(i)?(o.includes(i)||o.push(i),o.indexOf(i)):i};return JSON.stringify(t,r)!==JSON.stringify(e,r)}/*!
|
|
182
183
|
* Chart.js v4.4.7
|
|
183
184
|
* https://www.chartjs.org
|
|
184
185
|
* (c) 2024 Chart.js Contributors
|
|
185
186
|
* Released under the MIT License
|
|
186
|
-
*/class K5{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,o,r,n){const i=o.listeners[n],s=o.duration;i.forEach(l=>l({chart:e,initial:o.initial,numSteps:s,currentStep:Math.min(r-o.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=pd.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let o=0;this._charts.forEach((r,n)=>{if(!r.running||!r.items.length)return;const i=r.items;let s=i.length-1,l=!1,c;for(;s>=0;--s)c=i[s],c._active?(c._total>r.duration&&(r.duration=c._total),c.tick(e),l=!0):(i[s]=i[i.length-1],i.pop());l&&(n.draw(),this._notify(n,r,e,"progress")),i.length||(r.running=!1,this._notify(n,r,e,"complete"),r.initial=!1),o+=i.length}),this._lastDate=e,o===0&&(this._running=!1)}_getAnims(e){const o=this._charts;let r=o.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},o.set(e,r)),r}listen(e,o,r){this._getAnims(e).listeners[o].push(r)}add(e,o){!o||!o.length||this._getAnims(e).items.push(...o)}has(e){return this._getAnims(e).items.length>0}start(e){const o=this._charts.get(e);o&&(o.running=!0,o.start=Date.now(),o.duration=o.items.reduce((r,n)=>Math.max(r,n._duration),0),this._refresh())}running(e){if(!this._running)return!1;const o=this._charts.get(e);return!(!o||!o.running||!o.items.length)}stop(e){const o=this._charts.get(e);if(!o||!o.items.length)return;const r=o.items;let n=r.length-1;for(;n>=0;--n)r[n].cancel();o.items=[],this._notify(e,o,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Ot=new K5;const qd="transparent",G5={boolean(t,e,o){return o>.5?e:t},color(t,e,o){const r=wd(t||qd),n=r.valid&&wd(e||qd);return n&&n.valid?n.mix(r,o).hexString():e},number(t,e,o){return t+(e-t)*o}};class Yd{constructor(e,o,r,n){const i=o[r];n=jr([e.to,n,i,e.from]);const s=jr([e.from,i,n]);this._active=!0,this._fn=e.fn||G5[e.type||typeof s],this._easing=Fr[e.easing]||Fr.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=o,this._prop=r,this._from=s,this._to=n,this._promises=void 0}active(){return this._active}update(e,o,r){if(this._active){this._notify(!1);const n=this._target[this._prop],i=r-this._start,s=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=jr([e.to,o,n,e.from]),this._from=jr([e.from,n,o])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const o=e-this._start,r=this._duration,n=this._prop,i=this._from,s=this._loop,l=this._to;let c;if(this._active=i!==l&&(s||o<r),!this._active){this._target[n]=l,this._notify(!0);return}if(o<0){this._target[n]=i;return}c=o/r%2,c=s&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[n]=this._fn(i,l,c)}wait(){const e=this._promises||(this._promises=[]);return new Promise((o,r)=>{e.push({res:o,rej:r})})}_notify(e){const o=e?"res":"rej",r=this._promises||[];for(let n=0;n<r.length;n++)r[n][o]()}}class Pa{constructor(e,o){this._chart=e,this._properties=new Map,this.configure(o)}configure(e){if(!de(e))return;const o=Object.keys(Be.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(n=>{const i=e[n];if(!de(i))return;const s={};for(const l of o)s[l]=i[l];(Oe(i.properties)&&i.properties||[n]).forEach(l=>{(l===n||!r.has(l))&&r.set(l,s)})})}_animateOptions(e,o){const r=o.options,n=J5(e,r);if(!n)return[];const i=this._createAnimations(n,r);return r.$shared&&Q5(e.options.$animations,r).then(()=>{e.options=r},()=>{}),i}_createAnimations(e,o){const r=this._properties,n=[],i=e.$animations||(e.$animations={}),s=Object.keys(o),l=Date.now();let c;for(c=s.length-1;c>=0;--c){const d=s[c];if(d.charAt(0)==="$")continue;if(d==="options"){n.push(...this._animateOptions(e,o));continue}const u=o[d];let f=i[d];const h=r.get(d);if(f)if(h&&f.active()){f.update(h,u,l);continue}else f.cancel();if(!h||!h.duration){e[d]=u;continue}i[d]=f=new Yd(h,e,d,u),n.push(f)}return n}update(e,o){if(this._properties.size===0){Object.assign(e,o);return}const r=this._createAnimations(e,o);if(r.length)return Ot.add(this._chart,r),!0}}function Q5(t,e){const o=[],r=Object.keys(e);for(let n=0;n<r.length;n++){const i=t[r[n]];i&&i.active()&&o.push(i.wait())}return Promise.all(o)}function J5(t,e){if(!e)return;let o=t.options;if(!o){t.options=e;return}return o.$shared&&(t.options=o=Object.assign({},o,{$shared:!1,$animations:{}})),o}function Xd(t,e){const o=t&&t.options||{},r=o.reverse,n=o.min===void 0?e:0,i=o.max===void 0?e:0;return{start:r?i:n,end:r?n:i}}function Z5(t,e,o){if(o===!1)return!1;const r=Xd(t,o),n=Xd(e,o);return{top:n.end,right:r.end,bottom:n.start,left:r.start}}function eS(t){let e,o,r,n;return de(t)?(e=t.top,o=t.right,r=t.bottom,n=t.left):e=o=r=n=t,{top:e,right:o,bottom:r,left:n,disabled:t===!1}}function Kd(t,e){const o=[],r=t._getSortedDatasetMetas(e);let n,i;for(n=0,i=r.length;n<i;++n)o.push(r[n].index);return o}function Gd(t,e,o,r={}){const n=t.keys,i=r.mode==="single";let s,l,c,d;if(e===null)return;let u=!1;for(s=0,l=n.length;s<l;++s){if(c=+n[s],c===o){if(u=!0,r.all)continue;break}d=t.values[c],Ae(d)&&(i||e===0||Rt(e)===Rt(d))&&(e+=d)}return!u&&!r.all?0:e}function tS(t,e){const{iScale:o,vScale:r}=e,n=o.axis==="x"?"x":"y",i=r.axis==="x"?"x":"y",s=Object.keys(t),l=new Array(s.length);let c,d,u;for(c=0,d=s.length;c<d;++c)u=s[c],l[c]={[n]:u,[i]:t[u]};return l}function $a(t,e){const o=t&&t.options.stacked;return o||o===void 0&&e.stack!==void 0}function oS(t,e,o){return`${t.id}.${e.id}.${o.stack||o.type}`}function rS(t){const{min:e,max:o,minDefined:r,maxDefined:n}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:n?o:Number.POSITIVE_INFINITY}}function nS(t,e,o){const r=t[e]||(t[e]={});return r[o]||(r[o]={})}function Qd(t,e,o,r){for(const n of e.getMatchingVisibleMetas(r).reverse()){const i=t[n.index];if(o&&i>0||!o&&i<0)return n.index}return null}function Jd(t,e){const{chart:o,_cachedMeta:r}=t,n=o._stacks||(o._stacks={}),{iScale:i,vScale:s,index:l}=r,c=i.axis,d=s.axis,u=oS(i,s,r),f=e.length;let h;for(let g=0;g<f;++g){const m=e[g],{[c]:p,[d]:b}=m,y=m._stacks||(m._stacks={});h=y[d]=nS(n,u,p),h[l]=b,h._top=Qd(h,s,!0,r.type),h._bottom=Qd(h,s,!1,r.type);const x=h._visualValues||(h._visualValues={});x[l]=b}}function Aa(t,e){const o=t.scales;return Object.keys(o).filter(r=>o[r].axis===e).shift()}function iS(t,e){return co(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function aS(t,e,o){return co(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:o,index:e,mode:"default",type:"data"})}function Wr(t,e){const o=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const n of e){const i=n._stacks;if(!i||i[r]===void 0||i[r][o]===void 0)return;delete i[r][o],i[r]._visualValues!==void 0&&i[r]._visualValues[o]!==void 0&&delete i[r]._visualValues[o]}}}const Ma=t=>t==="reset"||t==="none",Zd=(t,e)=>e?t:Object.assign({},t),sS=(t,e,o)=>t&&!e.hidden&&e._stacked&&{keys:Kd(o,!0),values:null};class ut{constructor(e,o){this.chart=e,this._ctx=e.ctx,this.index=o,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=$a(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&&Wr(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,o=this._cachedMeta,r=this.getDataset(),n=(f,h,g,m)=>f==="x"?h:f==="r"?m:g,i=o.xAxisID=se(r.xAxisID,Aa(e,"x")),s=o.yAxisID=se(r.yAxisID,Aa(e,"y")),l=o.rAxisID=se(r.rAxisID,Aa(e,"r")),c=o.indexAxis,d=o.iAxisID=n(c,i,s,l),u=o.vAxisID=n(c,s,i,l);o.xScale=this.getScaleForId(i),o.yScale=this.getScaleForId(s),o.rScale=this.getScaleForId(l),o.iScale=this.getScaleForId(d),o.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 o=this._cachedMeta;return e===o.iScale?o.vScale:o.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&gd(this._data,this),e._stacked&&Wr(e)}_dataCheck(){const e=this.getDataset(),o=e.data||(e.data=[]),r=this._data;if(de(o)){const n=this._cachedMeta;this._data=tS(o,n)}else if(r!==o){if(r){gd(r,this);const n=this._cachedMeta;Wr(n),n._parsed=[]}o&&Object.isExtensible(o)&&Y_(o,this),this._syncList=[],this._data=o}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const o=this._cachedMeta,r=this.getDataset();let n=!1;this._dataCheck();const i=o._stacked;o._stacked=$a(o.vScale,o),o.stack!==r.stack&&(n=!0,Wr(o),o.stack=r.stack),this._resyncElements(e),(n||i!==o._stacked)&&(Jd(this,o._parsed),o._stacked=$a(o.vScale,o))}configure(){const e=this.chart.config,o=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),o,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,o){const{_cachedMeta:r,_data:n}=this,{iScale:i,_stacked:s}=r,l=i.axis;let c=e===0&&o===n.length?!0:r._sorted,d=e>0&&r._parsed[e-1],u,f,h;if(this._parsing===!1)r._parsed=n,r._sorted=!0,h=n;else{Oe(n[e])?h=this.parseArrayData(r,n,e,o):de(n[e])?h=this.parseObjectData(r,n,e,o):h=this.parsePrimitiveData(r,n,e,o);const g=()=>f[l]===null||d&&f[l]<d[l];for(u=0;u<o;++u)r._parsed[u+e]=f=h[u],c&&(g()&&(c=!1),d=f);r._sorted=c}s&&Jd(this,h)}parsePrimitiveData(e,o,r,n){const{iScale:i,vScale:s}=e,l=i.axis,c=s.axis,d=i.getLabels(),u=i===s,f=new Array(n);let h,g,m;for(h=0,g=n;h<g;++h)m=h+r,f[h]={[l]:u||i.parse(d[m],m),[c]:s.parse(o[m],m)};return f}parseArrayData(e,o,r,n){const{xScale:i,yScale:s}=e,l=new Array(n);let c,d,u,f;for(c=0,d=n;c<d;++c)u=c+r,f=o[u],l[c]={x:i.parse(f[0],u),y:s.parse(f[1],u)};return l}parseObjectData(e,o,r,n){const{xScale:i,yScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=new Array(n);let u,f,h,g;for(u=0,f=n;u<f;++u)h=u+r,g=o[h],d[u]={x:i.parse(ao(g,l),h),y:s.parse(ao(g,c),h)};return d}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,o,r){const n=this.chart,i=this._cachedMeta,s=o[e.axis],l={keys:Kd(n,!0),values:o._stacks[e.axis]._visualValues};return Gd(l,s,i.index,{mode:r})}updateRangeFromParsed(e,o,r,n){const i=r[o.axis];let s=i===null?NaN:i;const l=n&&r._stacks[o.axis];n&&l&&(n.values=l,s=Gd(n,i,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,o){const r=this._cachedMeta,n=r._parsed,i=r._sorted&&e===r.iScale,s=n.length,l=this._getOtherScale(e),c=sS(o,r,this.chart),d={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:f}=rS(l);let h,g;function m(){g=n[h];const p=g[l.axis];return!Ae(g[e.axis])||u>p||f<p}for(h=0;h<s&&!(!m()&&(this.updateRangeFromParsed(d,e,g,c),i));++h);if(i){for(h=s-1;h>=0;--h)if(!m()){this.updateRangeFromParsed(d,e,g,c);break}}return d}getAllParsedValues(e){const o=this._cachedMeta._parsed,r=[];let n,i,s;for(n=0,i=o.length;n<i;++n)s=o[n][e.axis],Ae(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const o=this._cachedMeta,r=o.iScale,n=o.vScale,i=this.getParsed(e);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:n?""+n.getLabelForValue(i[n.axis]):""}}_update(e){const o=this._cachedMeta;this.update(e||"default"),o._clip=eS(se(this.options.clip,Z5(o.xScale,o.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,o=this.chart,r=this._cachedMeta,n=r.data||[],i=o.chartArea,s=[],l=this._drawStart||0,c=this._drawCount||n.length-l,d=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(e,i,l,c),u=l;u<l+c;++u){const f=n[u];f.hidden||(f.active&&d?s.push(f):f.draw(e,i))}for(u=0;u<s.length;++u)s[u].draw(e,i)}getStyle(e,o){const r=o?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,o,r){const n=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];i=s.$context||(s.$context=aS(this.getContext(),e,s)),i.parsed=this.getParsed(e),i.raw=n.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=iS(this.chart.getContext(),this.index)),i.dataset=n,i.index=i.datasetIndex=this.index;return i.active=!!o,i.mode=r,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,o){return this._resolveElementOptions(this.dataElementType.id,o,e)}_resolveElementOptions(e,o="default",r){const n=o==="active",i=this._cachedDataOpts,s=e+"-"+o,l=i[s],c=this.enableOptionSharing&&$r(r);if(l)return Zd(l,c);const d=this.chart.config,u=d.datasetElementScopeKeys(this._type,e),f=n?[`${e}Hover`,"hover",e,""]:[e,""],h=d.getOptionScopes(this.getDataset(),u),g=Object.keys(Be.elements[e]),m=()=>this.getContext(r,n,o),p=d.resolveNamedOptions(h,g,m,f);return p.$shared&&(p.$shared=c,i[s]=Object.freeze(Zd(p,c))),p}_resolveAnimations(e,o,r){const n=this.chart,i=this._cachedDataOpts,s=`animation-${o}`,l=i[s];if(l)return l;let c;if(n.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,o),h=u.getOptionScopes(this.getDataset(),f);c=u.createResolver(h,this.getContext(e,r,o))}const d=new Pa(n,c&&c.animations);return c&&c._cacheable&&(i[s]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,o){return!o||Ma(e)||this.chart._animationsDisabled}_getSharedOptions(e,o){const r=this.resolveDataElementOptions(e,o),n=this._sharedOptions,i=this.getSharedOptions(r),s=this.includeOptions(o,i)||i!==n;return this.updateSharedOptions(i,o,r),{sharedOptions:i,includeOptions:s}}updateElement(e,o,r,n){Ma(n)?Object.assign(e,r):this._resolveAnimations(o,n).update(e,r)}updateSharedOptions(e,o,r){e&&!Ma(o)&&this._resolveAnimations(void 0,o).update(e,r)}_setStyle(e,o,r,n){e.active=n;const i=this.getStyle(o,n);this._resolveAnimations(o,r,n).update(e,{options:!n&&this.getSharedOptions(i)||i})}removeHoverStyle(e,o,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,o,r){this._setStyle(e,r,"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 o=this._data,r=this._cachedMeta.data;for(const[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];const n=r.length,i=o.length,s=Math.min(i,n);s&&this.parse(0,s),i>n?this._insertElements(n,i-n,e):i<n&&this._removeElements(i,n-i)}_insertElements(e,o,r=!0){const n=this._cachedMeta,i=n.data,s=e+o;let l;const c=d=>{for(d.length+=o,l=d.length-1;l>=s;l--)d[l]=d[l-o]};for(c(i),l=e;l<s;++l)i[l]=new this.dataElementType;this._parsing&&c(n._parsed),this.parse(e,o),r&&this.updateElements(i,e,o,"reset")}updateElements(e,o,r,n){}_removeElements(e,o){const r=this._cachedMeta;if(this._parsing){const n=r._parsed.splice(e,o);r._stacked&&Wr(r,n)}r.data.splice(e,o)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[o,r,n]=e;this[o](r,n)}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,o){o&&this._sync(["_removeElements",e,o]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}H(ut,"defaults",{}),H(ut,"datasetElementType",null),H(ut,"dataElementType",null);function lS(t,e){if(!t._cache.$bar){const o=t.getMatchingVisibleMetas(e);let r=[];for(let n=0,i=o.length;n<i;n++)r=r.concat(o[n].controller.getAllParsedValues(t));t._cache.$bar=md(r.sort((n,i)=>n-i))}return t._cache.$bar}function cS(t){const e=t.iScale,o=lS(e,t.type);let r=e._length,n,i,s,l;const c=()=>{s===32767||s===-32768||($r(l)&&(r=Math.min(r,Math.abs(s-l)||r)),l=s)};for(n=0,i=o.length;n<i;++n)s=e.getPixelForValue(o[n]),c();for(l=void 0,n=0,i=e.ticks.length;n<i;++n)s=e.getPixelForTick(n),c();return r}function dS(t,e,o,r){const n=o.barThickness;let i,s;return fe(n)?(i=e.min*o.categoryPercentage,s=o.barPercentage):(i=n*r,s=1),{chunk:i/r,ratio:s,start:e.pixels[t]-i/2}}function uS(t,e,o,r){const n=e.pixels,i=n[t];let s=t>0?n[t-1]:null,l=t<n.length-1?n[t+1]:null;const c=o.categoryPercentage;s===null&&(s=i-(l===null?e.end-e.start:l-i)),l===null&&(l=i+i-s);const d=i-(i-Math.min(s,l))/2*c;return{chunk:Math.abs(l-s)/2*c/r,ratio:o.barPercentage,start:d}}function fS(t,e,o,r){const n=o.parse(t[0],r),i=o.parse(t[1],r),s=Math.min(n,i),l=Math.max(n,i);let c=s,d=l;Math.abs(s)>Math.abs(l)&&(c=l,d=s),e[o.axis]=d,e._custom={barStart:c,barEnd:d,start:n,end:i,min:s,max:l}}function eu(t,e,o,r){return Oe(t)?fS(t,e,o,r):e[o.axis]=o.parse(t,r),e}function tu(t,e,o,r){const n=t.iScale,i=t.vScale,s=n.getLabels(),l=n===i,c=[];let d,u,f,h;for(d=o,u=o+r;d<u;++d)h=e[d],f={},f[n.axis]=l||n.parse(s[d],d),c.push(eu(h,f,i,d));return c}function Fa(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function hS(t,e,o){return t!==0?Rt(t):(e.isHorizontal()?1:-1)*(e.min>=o?1:-1)}function gS(t){let e,o,r,n,i;return t.horizontal?(e=t.base>t.x,o="left",r="right"):(e=t.base<t.y,o="bottom",r="top"),e?(n="end",i="start"):(n="start",i="end"),{start:o,end:r,reverse:e,top:n,bottom:i}}function mS(t,e,o,r){let n=e.borderSkipped;const i={};if(!n){t.borderSkipped=i;return}if(n===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:l,reverse:c,top:d,bottom:u}=gS(t);n==="middle"&&o&&(t.enableBorderRadius=!0,(o._top||0)===r?n=d:(o._bottom||0)===r?n=u:(i[ou(u,s,l,c)]=!0,n=d)),i[ou(n,s,l,c)]=!0,t.borderSkipped=i}function ou(t,e,o,r){return r?(t=pS(t,e,o),t=ru(t,o,e)):t=ru(t,e,o),t}function pS(t,e,o){return t===e?o:t===o?e:t}function ru(t,e,o){return t==="start"?e:t==="end"?o:t}function bS(t,{inflateAmount:e},o){t.inflateAmount=e==="auto"?o===1?.33:0:e}class Hr extends ut{parsePrimitiveData(e,o,r,n){return tu(e,o,r,n)}parseArrayData(e,o,r,n){return tu(e,o,r,n)}parseObjectData(e,o,r,n){const{iScale:i,vScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=i.axis==="x"?l:c,u=s.axis==="x"?l:c,f=[];let h,g,m,p;for(h=r,g=r+n;h<g;++h)p=o[h],m={},m[i.axis]=i.parse(ao(p,d),h),f.push(eu(ao(p,u),m,s,h));return f}updateRangeFromParsed(e,o,r,n){super.updateRangeFromParsed(e,o,r,n);const i=r._custom;i&&o===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 o=this._cachedMeta,{iScale:r,vScale:n}=o,i=this.getParsed(e),s=i._custom,l=Fa(s)?"["+s.start+", "+s.end+"]":""+n.getLabelForValue(i[n.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const o=this._cachedMeta;this.updateElements(o.data,0,o.data.length,e)}updateElements(e,o,r,n){const i=n==="reset",{index:s,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),d=l.isHorizontal(),u=this._getRuler(),{sharedOptions:f,includeOptions:h}=this._getSharedOptions(o,n);for(let g=o;g<o+r;g++){const m=this.getParsed(g),p=i||fe(m[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(g),b=this._calculateBarIndexPixels(g,u),y=(m._stacks||{})[l.axis],x={horizontal:d,base:p.base,enableBorderRadius:!y||Fa(m._custom)||s===y._top||s===y._bottom,x:d?p.head:b.center,y:d?b.center:p.head,height:d?b.size:Math.abs(p.size),width:d?Math.abs(p.size):b.size};h&&(x.options=f||this.resolveDataElementOptions(g,e[g].active?"active":n));const C=x.options||e[g].options;mS(x,C,y,s),bS(x,C,u.ratio),this.updateElement(e[g],g,x,n)}}_getStacks(e,o){const{iScale:r}=this._cachedMeta,n=r.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),i=r.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(o),c=l&&l[r.axis],d=u=>{const f=u._parsed.find(g=>g[r.axis]===c),h=f&&f[u.vScale.axis];if(fe(h)||isNaN(h))return!0};for(const u of n)if(!(o!==void 0&&d(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}_getStackIndex(e,o,r){const n=this._getStacks(e,r),i=o!==void 0?n.indexOf(o):-1;return i===-1?n.length-1:i}_getRuler(){const e=this.options,o=this._cachedMeta,r=o.iScale,n=[];let i,s;for(i=0,s=o.data.length;i<s;++i)n.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const l=e.barThickness;return{min:l||cS(o),pixels:n,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:l?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:o,_stacked:r,index:n},options:{base:i,minBarLength:s}}=this,l=i||0,c=this.getParsed(e),d=c._custom,u=Fa(d);let f=c[o.axis],h=0,g=r?this.applyStack(o,c,r):f,m,p;g!==f&&(h=g-f,g=f),u&&(f=d.barStart,g=d.barEnd-d.barStart,f!==0&&Rt(f)!==Rt(d.barEnd)&&(h=0),h+=f);const b=!fe(i)&&!u?i:h;let y=o.getPixelForValue(b);if(this.chart.getDataVisibility(e)?m=o.getPixelForValue(h+g):m=y,p=m-y,Math.abs(p)<s){p=hS(p,o,l)*s,f===l&&(y-=p/2);const x=o.getPixelForDecimal(0),C=o.getPixelForDecimal(1),B=Math.min(x,C),w=Math.max(x,C);y=Math.max(Math.min(y,w),B),m=y+p,r&&!u&&(c._stacks[o.axis]._visualValues[n]=o.getValueForPixel(m)-o.getValueForPixel(y))}if(y===o.getPixelForValue(l)){const x=Rt(p)*o.getLineWidthForValue(l)/2;y+=x,p-=x}return{size:p,base:y,head:m,center:m+p/2}}_calculateBarIndexPixels(e,o){const r=o.scale,n=this.options,i=n.skipNull,s=se(n.maxBarThickness,1/0);let l,c;if(o.grouped){const d=i?this._getStackCount(e):o.stackCount,u=n.barThickness==="flex"?uS(e,o,n,d):dS(e,o,n,d),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0);l=u.start+u.chunk*f+u.chunk/2,c=Math.min(s,u.chunk*u.ratio)}else l=r.getPixelForValue(this.getParsed(e)[r.axis],e),c=Math.min(s,o.min*o.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){const e=this._cachedMeta,o=e.vScale,r=e.data,n=r.length;let i=0;for(;i<n;++i)this.getParsed(i)[o.axis]!==null&&!r[i].hidden&&r[i].draw(this._ctx)}}H(Hr,"id","bar"),H(Hr,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),H(Hr,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Ur extends ut{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,o,r,n){const i=super.parsePrimitiveData(e,o,r,n);for(let s=0;s<i.length;s++)i[s]._custom=this.resolveDataElementOptions(s+r).radius;return i}parseArrayData(e,o,r,n){const i=super.parseArrayData(e,o,r,n);for(let s=0;s<i.length;s++){const l=o[r+s];i[s]._custom=se(l[2],this.resolveDataElementOptions(s+r).radius)}return i}parseObjectData(e,o,r,n){const i=super.parseObjectData(e,o,r,n);for(let s=0;s<i.length;s++){const l=o[r+s];i[s]._custom=se(l&&l.r&&+l.r,this.resolveDataElementOptions(s+r).radius)}return i}getMaxOverflow(){const e=this._cachedMeta.data;let o=0;for(let r=e.length-1;r>=0;--r)o=Math.max(o,e[r].size(this.resolveDataElementOptions(r))/2);return o>0&&o}getLabelAndValue(e){const o=this._cachedMeta,r=this.chart.data.labels||[],{xScale:n,yScale:i}=o,s=this.getParsed(e),l=n.getLabelForValue(s.x),c=i.getLabelForValue(s.y),d=s._custom;return{label:r[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){const o=this._cachedMeta.data;this.updateElements(o,0,o.length,e)}updateElements(e,o,r,n){const i=n==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(o,n),u=s.axis,f=l.axis;for(let h=o;h<o+r;h++){const g=e[h],m=!i&&this.getParsed(h),p={},b=p[u]=i?s.getPixelForDecimal(.5):s.getPixelForValue(m[u]),y=p[f]=i?l.getBasePixel():l.getPixelForValue(m[f]);p.skip=isNaN(b)||isNaN(y),d&&(p.options=c||this.resolveDataElementOptions(h,g.active?"active":n),i&&(p.options.radius=0)),this.updateElement(g,h,p,n)}}resolveDataElementOptions(e,o){const r=this.getParsed(e);let n=super.resolveDataElementOptions(e,o);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const i=n.radius;return o!=="active"&&(n.radius=0),n.radius+=se(r&&r._custom,i),n}}H(Ur,"id","bubble"),H(Ur,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),H(Ur,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function yS(t,e,o){let r=1,n=1,i=0,s=0;if(e<Se){const l=t,c=l+e,d=Math.cos(l),u=Math.sin(l),f=Math.cos(c),h=Math.sin(c),g=(C,B,w)=>Mr(C,l,c,!0)?1:Math.max(B,B*o,w,w*o),m=(C,B,w)=>Mr(C,l,c,!0)?-1:Math.min(B,B*o,w,w*o),p=g(0,d,f),b=g(Fe,u,h),y=m(_e,d,f),x=m(_e+Fe,u,h);r=(p-y)/2,n=(b-x)/2,i=-(p+y)/2,s=-(b+x)/2}return{ratioX:r,ratioY:n,offsetX:i,offsetY:s}}class uo extends ut{constructor(e,o){super(e,o),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,o){const r=this.getDataset().data,n=this._cachedMeta;if(this._parsing===!1)n._parsed=r;else{let i=c=>+r[c];if(de(r[e])){const{key:c="value"}=this._parsing;i=d=>+ao(r[d],c)}let s,l;for(s=e,l=e+o;s<l;++s)n._parsed[s]=i(s)}}_getRotation(){return xt(this.options.rotation-90)}_getCircumference(){return xt(this.options.circumference)}_getRotationExtents(){let e=Se,o=-Se;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const n=this.chart.getDatasetMeta(r).controller,i=n._getRotation(),s=n._getCircumference();e=Math.min(e,i),o=Math.max(o,i+s)}return{rotation:e,circumference:o-e}}update(e){const o=this.chart,{chartArea:r}=o,n=this._cachedMeta,i=n.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,l=Math.max((Math.min(r.width,r.height)-s)/2,0),c=Math.min(P_(this.options.cutout,l),1),d=this._getRingWeight(this.index),{circumference:u,rotation:f}=this._getRotationExtents(),{ratioX:h,ratioY:g,offsetX:m,offsetY:p}=yS(f,u,c),b=(r.width-s)/h,y=(r.height-s)/g,x=Math.max(Math.min(b,y)/2,0),C=nd(this.options.radius,x),B=Math.max(C*c,0),w=(C-B)/this._getVisibleDatasetWeightTotal();this.offsetX=m*C,this.offsetY=p*C,n.total=this.calculateTotal(),this.outerRadius=C-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*d,0),this.updateElements(i,0,i.length,e)}_circumference(e,o){const r=this.options,n=this._cachedMeta,i=this._getCircumference();return o&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||n._parsed[e]===null||n.data[e].hidden?0:this.calculateCircumference(n._parsed[e]*i/Se)}updateElements(e,o,r,n){const i=n==="reset",s=this.chart,l=s.chartArea,d=s.options.animation,u=(l.left+l.right)/2,f=(l.top+l.bottom)/2,h=i&&d.animateScale,g=h?0:this.innerRadius,m=h?0:this.outerRadius,{sharedOptions:p,includeOptions:b}=this._getSharedOptions(o,n);let y=this._getRotation(),x;for(x=0;x<o;++x)y+=this._circumference(x,i);for(x=o;x<o+r;++x){const C=this._circumference(x,i),B=e[x],w={x:u+this.offsetX,y:f+this.offsetY,startAngle:y,endAngle:y+C,circumference:C,outerRadius:m,innerRadius:g};b&&(w.options=p||this.resolveDataElementOptions(x,B.active?"active":n)),y+=C,this.updateElement(B,x,w,n)}}calculateTotal(){const e=this._cachedMeta,o=e.data;let r=0,n;for(n=0;n<o.length;n++){const i=e._parsed[n];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(n)&&!o[n].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(e){const o=this._cachedMeta.total;return o>0&&!isNaN(e)?Se*(Math.abs(e)/o):0}getLabelAndValue(e){const o=this._cachedMeta,r=this.chart,n=r.data.labels||[],i=Vr(o._parsed[e],r.options.locale);return{label:n[e]||"",value:i}}getMaxBorderWidth(e){let o=0;const r=this.chart;let n,i,s,l,c;if(!e){for(n=0,i=r.data.datasets.length;n<i;++n)if(r.isDatasetVisible(n)){s=r.getDatasetMeta(n),e=s.data,l=s.controller;break}}if(!e)return 0;for(n=0,i=e.length;n<i;++n)c=l.resolveDataElementOptions(n),c.borderAlign!=="inner"&&(o=Math.max(o,c.borderWidth||0,c.hoverBorderWidth||0));return o}getMaxOffset(e){let o=0;for(let r=0,n=e.length;r<n;++r){const i=this.resolveDataElementOptions(r);o=Math.max(o,i.offset||0,i.hoverOffset||0)}return o}_getRingWeightOffset(e){let o=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(o+=this._getRingWeight(r));return o}_getRingWeight(e){return Math.max(se(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}H(uo,"id","doughnut"),H(uo,"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"}),H(uo,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),H(uo,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const o=e.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:r,color:n}}=e.legend.options;return o.labels.map((i,s)=>{const c=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:n,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,o,r){r.chart.toggleDataVisibility(o.index),r.chart.update()}}}});class qr extends ut{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const o=this._cachedMeta,{dataset:r,data:n=[],_dataset:i}=o,s=this.chart._animationsDisabled;let{start:l,count:c}=yd(o,n,s);this._drawStart=l,this._drawCount=c,kd(o)&&(l=0,c=n.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=n;const d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:d},e),this.updateElements(n,l,c,e)}updateElements(e,o,r,n){const i=n==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:u,includeOptions:f}=this._getSharedOptions(o,n),h=s.axis,g=l.axis,{spanGaps:m,segment:p}=this.options,b=qo(m)?m:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||i||n==="none",x=o+r,C=e.length;let B=o>0&&this.getParsed(o-1);for(let w=0;w<C;++w){const _=e[w],v=y?_:{};if(w<o||w>=x){v.skip=!0;continue}const k=this.getParsed(w),S=fe(k[g]),N=v[h]=s.getPixelForValue(k[h],w),E=v[g]=i||S?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,k,c):k[g],w);v.skip=isNaN(N)||isNaN(E)||S,v.stop=w>0&&Math.abs(k[h]-B[h])>b,p&&(v.parsed=k,v.raw=d.data[w]),f&&(v.options=u||this.resolveDataElementOptions(w,_.active?"active":n)),y||this.updateElement(_,w,v,n),B=k}}getMaxOverflow(){const e=this._cachedMeta,o=e.dataset,r=o.options&&o.options.borderWidth||0,n=e.data||[];if(!n.length)return r;const i=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,i,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}H(qr,"id","line"),H(qr,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),H(qr,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Go extends ut{constructor(e,o){super(e,o),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const o=this._cachedMeta,r=this.chart,n=r.data.labels||[],i=Vr(o._parsed[e].r,r.options.locale);return{label:n[e]||"",value:i}}parseObjectData(e,o,r,n){return $d.bind(this)(e,o,r,n)}update(e){const o=this._cachedMeta.data;this._updateRadius(),this.updateElements(o,0,o.length,e)}getMinMax(){const e=this._cachedMeta,o={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<o.min&&(o.min=i),i>o.max&&(o.max=i))}),o}_updateRadius(){const e=this.chart,o=e.chartArea,r=e.options,n=Math.min(o.right-o.left,o.bottom-o.top),i=Math.max(n/2,0),s=Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0),l=(i-s)/e.getVisibleDatasetCount();this.outerRadius=i-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,o,r,n){const i=n==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,u=d.xCenter,f=d.yCenter,h=d.getIndexAngle(0)-.5*_e;let g=h,m;const p=360/this.countVisibleElements();for(m=0;m<o;++m)g+=this._computeAngle(m,n,p);for(m=o;m<o+r;m++){const b=e[m];let y=g,x=g+this._computeAngle(m,n,p),C=s.getDataVisibility(m)?d.getDistanceFromCenterForValue(this.getParsed(m).r):0;g=x,i&&(c.animateScale&&(C=0),c.animateRotate&&(y=x=h));const B={x:u,y:f,innerRadius:0,outerRadius:C,startAngle:y,endAngle:x,options:this.resolveDataElementOptions(m,b.active?"active":n)};this.updateElement(b,m,B,n)}}countVisibleElements(){const e=this._cachedMeta;let o=0;return e.data.forEach((r,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&o++}),o}_computeAngle(e,o,r){return this.chart.getDataVisibility(e)?xt(this.resolveDataElementOptions(e,o).angle||r):0}}H(Go,"id","polarArea"),H(Go,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),H(Go,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const o=e.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:r,color:n}}=e.legend.options;return o.labels.map((i,s)=>{const c=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:n,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,o,r){r.chart.toggleDataVisibility(o.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class ti extends uo{}H(ti,"id","pie"),H(ti,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Yr extends ut{getLabelAndValue(e){const o=this._cachedMeta.vScale,r=this.getParsed(e);return{label:o.getLabels()[e],value:""+o.getLabelForValue(r[o.axis])}}parseObjectData(e,o,r,n){return $d.bind(this)(e,o,r,n)}update(e){const o=this._cachedMeta,r=o.dataset,n=o.data||[],i=o.iScale.getLabels();if(r.points=n,e!=="resize"){const s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);const l={_loop:!0,_fullLoop:i.length===n.length,options:s};this.updateElement(r,void 0,l,e)}this.updateElements(n,0,n.length,e)}updateElements(e,o,r,n){const i=this._cachedMeta.rScale,s=n==="reset";for(let l=o;l<o+r;l++){const c=e[l],d=this.resolveDataElementOptions(l,c.active?"active":n),u=i.getPointPositionForValue(l,this.getParsed(l).r),f=s?i.xCenter:u.x,h=s?i.yCenter:u.y,g={x:f,y:h,angle:u.angle,skip:isNaN(f)||isNaN(h),options:d};this.updateElement(c,l,g,n)}}}H(Yr,"id","radar"),H(Yr,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),H(Yr,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Xr extends ut{getLabelAndValue(e){const o=this._cachedMeta,r=this.chart.data.labels||[],{xScale:n,yScale:i}=o,s=this.getParsed(e),l=n.getLabelForValue(s.x),c=i.getLabelForValue(s.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){const o=this._cachedMeta,{data:r=[]}=o,n=this.chart._animationsDisabled;let{start:i,count:s}=yd(o,r,n);if(this._drawStart=i,this._drawCount=s,kd(o)&&(i=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:l,_dataset:c}=o;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;const d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!n,options:d},e)}else this.datasetElementType&&(delete o.dataset,this.datasetElementType=!1);this.updateElements(r,i,s,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,o,r,n){const i=n==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,u=this.resolveDataElementOptions(o,n),f=this.getSharedOptions(u),h=this.includeOptions(n,f),g=s.axis,m=l.axis,{spanGaps:p,segment:b}=this.options,y=qo(p)?p:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||i||n==="none";let C=o>0&&this.getParsed(o-1);for(let B=o;B<o+r;++B){const w=e[B],_=this.getParsed(B),v=x?w:{},k=fe(_[m]),S=v[g]=s.getPixelForValue(_[g],B),N=v[m]=i||k?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,_,c):_[m],B);v.skip=isNaN(S)||isNaN(N)||k,v.stop=B>0&&Math.abs(_[g]-C[g])>y,b&&(v.parsed=_,v.raw=d.data[B]),h&&(v.options=f||this.resolveDataElementOptions(B,w.active?"active":n)),x||this.updateElement(w,B,v,n),C=_}this.updateSharedOptions(f,n,u)}getMaxOverflow(){const e=this._cachedMeta,o=e.data||[];if(!this.options.showLine){let l=0;for(let c=o.length-1;c>=0;--c)l=Math.max(l,o[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const r=e.dataset,n=r.options&&r.options.borderWidth||0;if(!o.length)return n;const i=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,i,s)/2}}H(Xr,"id","scatter"),H(Xr,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),H(Xr,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var nu=Object.freeze({__proto__:null,BarController:Hr,BubbleController:Ur,DoughnutController:uo,LineController:qr,PieController:ti,PolarAreaController:Go,RadarController:Yr,ScatterController:Xr});function To(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Va{constructor(e){H(this,"options");this.options=e||{}}static override(e){Object.assign(Va.prototype,e)}init(){}formats(){return To()}parse(){return To()}format(){return To()}add(){return To()}diff(){return To()}startOf(){return To()}endOf(){return To()}}var iu={_date:Va};function kS(t,e,o,r){const{controller:n,data:i,_sorted:s}=t,l=n._cachedMeta.iScale;if(l&&e===l.axis&&e!=="r"&&s&&i.length){const c=l._reversePixels?U_:Ht;if(r){if(n._sharedOptions){const d=i[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const f=c(i,e,o-u),h=c(i,e,o+u);return{lo:f.lo,hi:h.hi}}}}else return c(i,e,o)}return{lo:0,hi:i.length-1}}function Kr(t,e,o,r,n){const i=t.getSortedVisibleDatasetMetas(),s=o[e];for(let l=0,c=i.length;l<c;++l){const{index:d,data:u}=i[l],{lo:f,hi:h}=kS(i[l],e,s,n);for(let g=f;g<=h;++g){const m=u[g];m.skip||r(m,d,g)}}}function xS(t){const e=t.indexOf("x")!==-1,o=t.indexOf("y")!==-1;return function(r,n){const i=e?Math.abs(r.x-n.x):0,s=o?Math.abs(r.y-n.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function Ia(t,e,o,r,n){const i=[];return!n&&!t.isPointInArea(e)||Kr(t,o,e,function(l,c,d){!n&&!Ut(l,t.chartArea,0)||l.inRange(e.x,e.y,r)&&i.push({element:l,datasetIndex:c,index:d})},!0),i}function vS(t,e,o,r){let n=[];function i(s,l,c){const{startAngle:d,endAngle:u}=s.getProps(["startAngle","endAngle"],r),{angle:f}=fd(s,{x:e.x,y:e.y});Mr(f,d,u)&&n.push({element:s,datasetIndex:l,index:c})}return Kr(t,o,e,i),n}function wS(t,e,o,r,n,i){let s=[];const l=xS(o);let c=Number.POSITIVE_INFINITY;function d(u,f,h){const g=u.inRange(e.x,e.y,n);if(r&&!g)return;const m=u.getCenterPoint(n);if(!(!!i||t.isPointInArea(m))&&!g)return;const b=l(e,m);b<c?(s=[{element:u,datasetIndex:f,index:h}],c=b):b===c&&s.push({element:u,datasetIndex:f,index:h})}return Kr(t,o,e,d),s}function La(t,e,o,r,n,i){return!i&&!t.isPointInArea(e)?[]:o==="r"&&!r?vS(t,e,o,n):wS(t,e,o,r,n,i)}function au(t,e,o,r,n){const i=[],s=o==="x"?"inXRange":"inYRange";let l=!1;return Kr(t,o,e,(c,d,u)=>{c[s]&&c[s](e[o],n)&&(i.push({element:c,datasetIndex:d,index:u}),l=l||c.inRange(e.x,e.y,n))}),r&&!l?[]:i}var su={evaluateInteractionItems:Kr,modes:{index(t,e,o,r){const n=Do(e,t),i=o.axis||"x",s=o.includeInvisible||!1,l=o.intersect?Ia(t,n,i,r,s):La(t,n,i,!1,r,s),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach(d=>{const u=l[0].index,f=d.data[u];f&&!f.skip&&c.push({element:f,datasetIndex:d.index,index:u})}),c):[]},dataset(t,e,o,r){const n=Do(e,t),i=o.axis||"xy",s=o.includeInvisible||!1;let l=o.intersect?Ia(t,n,i,r,s):La(t,n,i,!1,r,s);if(l.length>0){const c=l[0].datasetIndex,d=t.getDatasetMeta(c).data;l=[];for(let u=0;u<d.length;++u)l.push({element:d[u],datasetIndex:c,index:u})}return l},point(t,e,o,r){const n=Do(e,t),i=o.axis||"xy",s=o.includeInvisible||!1;return Ia(t,n,i,r,s)},nearest(t,e,o,r){const n=Do(e,t),i=o.axis||"xy",s=o.includeInvisible||!1;return La(t,n,i,o.intersect,r,s)},x(t,e,o,r){const n=Do(e,t);return au(t,n,"x",o.intersect,r)},y(t,e,o,r){const n=Do(e,t);return au(t,n,"y",o.intersect,r)}}};const lu=["left","top","right","bottom"];function Gr(t,e){return t.filter(o=>o.pos===e)}function cu(t,e){return t.filter(o=>lu.indexOf(o.pos)===-1&&o.box.axis===e)}function Qr(t,e){return t.sort((o,r)=>{const n=e?r:o,i=e?o:r;return n.weight===i.weight?n.index-i.index:n.weight-i.weight})}function CS(t){const e=[];let o,r,n,i,s,l;for(o=0,r=(t||[]).length;o<r;++o)n=t[o],{position:i,options:{stack:s,stackWeight:l=1}}=n,e.push({index:o,box:n,pos:i,horizontal:n.isHorizontal(),weight:n.weight,stack:s&&i+s,stackWeight:l});return e}function _S(t){const e={};for(const o of t){const{stack:r,pos:n,stackWeight:i}=o;if(!r||!lu.includes(n))continue;const s=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return e}function SS(t,e){const o=_S(t),{vBoxMaxWidth:r,hBoxMaxHeight:n}=e;let i,s,l;for(i=0,s=t.length;i<s;++i){l=t[i];const{fullSize:c}=l.box,d=o[l.stack],u=d&&l.stackWeight/d.weight;l.horizontal?(l.width=u?u*r:c&&e.availableWidth,l.height=n):(l.width=r,l.height=u?u*n:c&&e.availableHeight)}return o}function BS(t){const e=CS(t),o=Qr(e.filter(d=>d.box.fullSize),!0),r=Qr(Gr(e,"left"),!0),n=Qr(Gr(e,"right")),i=Qr(Gr(e,"top"),!0),s=Qr(Gr(e,"bottom")),l=cu(e,"x"),c=cu(e,"y");return{fullSize:o,leftAndTop:r.concat(i),rightAndBottom:n.concat(c).concat(s).concat(l),chartArea:Gr(e,"chartArea"),vertical:r.concat(n).concat(c),horizontal:i.concat(s).concat(l)}}function du(t,e,o,r){return Math.max(t[o],e[o])+Math.max(t[r],e[r])}function uu(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function ES(t,e,o,r){const{pos:n,box:i}=o,s=t.maxPadding;if(!de(n)){o.size&&(t[n]-=o.size);const f=r[o.stack]||{size:0,count:1};f.size=Math.max(f.size,o.horizontal?i.height:i.width),o.size=f.size/f.count,t[n]+=o.size}i.getPadding&&uu(s,i.getPadding());const l=Math.max(0,e.outerWidth-du(s,t,"left","right")),c=Math.max(0,e.outerHeight-du(s,t,"top","bottom")),d=l!==t.w,u=c!==t.h;return t.w=l,t.h=c,o.horizontal?{same:d,other:u}:{same:u,other:d}}function RS(t){const e=t.maxPadding;function o(r){const n=Math.max(e[r]-t[r],0);return t[r]+=n,n}t.y+=o("top"),t.x+=o("left"),o("right"),o("bottom")}function OS(t,e){const o=e.maxPadding;function r(n){const i={left:0,top:0,right:0,bottom:0};return n.forEach(s=>{i[s]=Math.max(e[s],o[s])}),i}return r(t?["left","right"]:["top","bottom"])}function Jr(t,e,o,r){const n=[];let i,s,l,c,d,u;for(i=0,s=t.length,d=0;i<s;++i){l=t[i],c=l.box,c.update(l.width||e.w,l.height||e.h,OS(l.horizontal,e));const{same:f,other:h}=ES(e,o,l,r);d|=f&&n.length,u=u||h,c.fullSize||n.push(l)}return d&&Jr(n,e,o,r)||u}function oi(t,e,o,r,n){t.top=o,t.left=e,t.right=e+r,t.bottom=o+n,t.width=r,t.height=n}function fu(t,e,o,r){const n=o.padding;let{x:i,y:s}=e;for(const l of t){const c=l.box,d=r[l.stack]||{count:1,placed:0,weight:1},u=l.stackWeight/d.weight||1;if(l.horizontal){const f=e.w*u,h=d.size||c.height;$r(d.start)&&(s=d.start),c.fullSize?oi(c,n.left,s,o.outerWidth-n.right-n.left,h):oi(c,e.left+d.placed,s,f,h),d.start=s,d.placed+=f,s=c.bottom}else{const f=e.h*u,h=d.size||c.width;$r(d.start)&&(i=d.start),c.fullSize?oi(c,i,n.top,h,o.outerHeight-n.bottom-n.top):oi(c,i,e.top+d.placed,h,f),d.start=i,d.placed+=f,i=c.right}}e.x=i,e.y=s}var We={addBox(t,e){t.boxes||(t.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(o){e.draw(o)}}]},t.boxes.push(e)},removeBox(t,e){const o=t.boxes?t.boxes.indexOf(e):-1;o!==-1&&t.boxes.splice(o,1)},configure(t,e,o){e.fullSize=o.fullSize,e.position=o.position,e.weight=o.weight},update(t,e,o,r){if(!t)return;const n=Ye(t.options.layout.padding),i=Math.max(e-n.width,0),s=Math.max(o-n.height,0),l=BS(t.boxes),c=l.vertical,d=l.horizontal;ye(t.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const u=c.reduce((p,b)=>b.box.options&&b.box.options.display===!1?p:p+1,0)||1,f=Object.freeze({outerWidth:e,outerHeight:o,padding:n,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/u,hBoxMaxHeight:s/2}),h=Object.assign({},n);uu(h,Ye(r));const g=Object.assign({maxPadding:h,w:i,h:s,x:n.left,y:n.top},n),m=SS(c.concat(d),f);Jr(l.fullSize,g,f,m),Jr(c,g,f,m),Jr(d,g,f,m)&&Jr(c,g,f,m),RS(g),fu(l.leftAndTop,g,f,m),g.x+=g.w,g.y+=g.h,fu(l.rightAndBottom,g,f,m),t.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},ye(l.chartArea,p=>{const b=p.box;Object.assign(b,t.chartArea),b.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class za{acquireContext(e,o){}releaseContext(e){return!1}addEventListener(e,o,r){}removeEventListener(e,o,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,o,r,n){return o=Math.max(0,o||e.width),r=r||e.height,{width:o,height:Math.max(0,n?Math.floor(o/n):r)}}isAttached(e){return!0}updateConfig(e){}}class hu extends za{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ri="$chartjs",DS={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},gu=t=>t===null||t==="";function NS(t,e){const o=t.style,r=t.getAttribute("height"),n=t.getAttribute("width");if(t[ri]={initial:{height:r,width:n,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",o.boxSizing=o.boxSizing||"border-box",gu(n)){const i=Fd(t,"width");i!==void 0&&(t.width=i)}if(gu(r))if(t.style.height==="")t.height=t.width/(e||2);else{const i=Fd(t,"height");i!==void 0&&(t.height=i)}return t}const mu=V5?{passive:!0}:!1;function TS(t,e,o){t&&t.addEventListener(e,o,mu)}function PS(t,e,o){t&&t.canvas&&t.canvas.removeEventListener(e,o,mu)}function $S(t,e){const o=DS[t.type]||t.type,{x:r,y:n}=Do(t,e);return{type:o,chart:e,native:t,x:r!==void 0?r:null,y:n!==void 0?n:null}}function ni(t,e){for(const o of t)if(o===e||o.contains(e))return!0}function AS(t,e,o){const r=t.canvas,n=new MutationObserver(i=>{let s=!1;for(const l of i)s=s||ni(l.addedNodes,r),s=s&&!ni(l.removedNodes,r);s&&o()});return n.observe(document,{childList:!0,subtree:!0}),n}function MS(t,e,o){const r=t.canvas,n=new MutationObserver(i=>{let s=!1;for(const l of i)s=s||ni(l.removedNodes,r),s=s&&!ni(l.addedNodes,r);s&&o()});return n.observe(document,{childList:!0,subtree:!0}),n}const Zr=new Map;let pu=0;function bu(){const t=window.devicePixelRatio;t!==pu&&(pu=t,Zr.forEach((e,o)=>{o.currentDevicePixelRatio!==t&&e()}))}function FS(t,e){Zr.size||window.addEventListener("resize",bu),Zr.set(t,e)}function VS(t){Zr.delete(t),Zr.size||window.removeEventListener("resize",bu)}function IS(t,e,o){const r=t.canvas,n=r&&Ta(r);if(!n)return;const i=bd((l,c)=>{const d=n.clientWidth;o(l,c),d<n.clientWidth&&o()},window),s=new ResizeObserver(l=>{const c=l[0],d=c.contentRect.width,u=c.contentRect.height;d===0&&u===0||i(d,u)});return s.observe(n),FS(t,i),s}function ja(t,e,o){o&&o.disconnect(),e==="resize"&&VS(t)}function LS(t,e,o){const r=t.canvas,n=bd(i=>{t.ctx!==null&&o($S(i,t))},t);return TS(r,e,n),n}class yu extends za{acquireContext(e,o){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(NS(e,o),r):null}releaseContext(e){const o=e.canvas;if(!o[ri])return!1;const r=o[ri].initial;["height","width"].forEach(i=>{const s=r[i];fe(s)?o.removeAttribute(i):o.setAttribute(i,s)});const n=r.style||{};return Object.keys(n).forEach(i=>{o.style[i]=n[i]}),o.width=o.width,delete o[ri],!0}addEventListener(e,o,r){this.removeEventListener(e,o);const n=e.$proxies||(e.$proxies={}),s={attach:AS,detach:MS,resize:IS}[o]||LS;n[o]=s(e,o,r)}removeEventListener(e,o){const r=e.$proxies||(e.$proxies={}),n=r[o];if(!n)return;({attach:ja,detach:ja,resize:ja}[o]||PS)(e,o,n),r[o]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,o,r,n){return F5(e,o,r,n)}isAttached(e){const o=e&&Ta(e);return!!(o&&o.isConnected)}}function ku(t){return!Na()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?hu:yu}let Dt=(xi=class{constructor(){H(this,"x");H(this,"y");H(this,"active",!1);H(this,"options");H(this,"$animations")}tooltipPosition(e){const{x:o,y:r}=this.getProps(["x","y"],e);return{x:o,y:r}}hasValue(){return qo(this.x)&&qo(this.y)}getProps(e,o){const r=this.$animations;if(!o||!r)return this;const n={};return e.forEach(i=>{n[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),n}},H(xi,"defaults",{}),H(xi,"defaultRoutes"),xi);function zS(t,e){const o=t.options.ticks,r=jS(t),n=Math.min(o.maxTicksLimit||r,r),i=o.major.enabled?HS(e):[],s=i.length,l=i[0],c=i[s-1],d=[];if(s>n)return US(e,d,i,s/n),d;const u=WS(i,e,n);if(s>0){let f,h;const g=s>1?Math.round((c-l)/(s-1)):null;for(ii(e,d,u,fe(g)?0:l-g,l),f=0,h=s-1;f<h;f++)ii(e,d,u,i[f],i[f+1]);return ii(e,d,u,c,fe(g)?e.length:c+g),d}return ii(e,d,u),d}function jS(t){const e=t.options.offset,o=t._tickSize(),r=t._length/o+(e?0:1),n=t._maxLength/o;return Math.floor(Math.min(r,n))}function WS(t,e,o){const r=qS(t),n=e.length/o;if(!r)return Math.max(n,1);const i=z_(r);for(let s=0,l=i.length-1;s<l;s++){const c=i[s];if(c>n)return c}return Math.max(n,1)}function HS(t){const e=[];let o,r;for(o=0,r=t.length;o<r;o++)t[o].major&&e.push(o);return e}function US(t,e,o,r){let n=0,i=o[0],s;for(r=Math.ceil(r),s=0;s<t.length;s++)s===i&&(e.push(t[s]),n++,i=o[n*r])}function ii(t,e,o,r,n){const i=se(r,0),s=Math.min(se(n,t.length),t.length);let l=0,c,d,u;for(o=Math.ceil(o),n&&(c=n-r,o=c/Math.floor(c/o)),u=i;u<0;)l++,u=Math.round(i+l*o);for(d=Math.max(i,0);d<s;d++)d===u&&(e.push(t[d]),l++,u=Math.round(i+l*o))}function qS(t){const e=t.length;let o,r;if(e<2)return!1;for(r=t[0],o=1;o<e;++o)if(t[o]-t[o-1]!==r)return!1;return r}const YS=t=>t==="left"?"right":t==="right"?"left":t,xu=(t,e,o)=>e==="top"||e==="left"?t[e]+o:t[e]-o,vu=(t,e)=>Math.min(e||t,t);function wu(t,e){const o=[],r=t.length/e,n=t.length;let i=0;for(;i<n;i+=r)o.push(t[Math.floor(i)]);return o}function XS(t,e,o){const r=t.ticks.length,n=Math.min(e,r-1),i=t._startPixel,s=t._endPixel,l=1e-6;let c=t.getPixelForTick(n),d;if(!(o&&(r===1?d=Math.max(c-i,s-c):e===0?d=(t.getPixelForTick(1)-c)/2:d=(c-t.getPixelForTick(n-1))/2,c+=n<e?d:-d,c<i-l||c>s+l)))return c}function KS(t,e){ye(t,o=>{const r=o.gc,n=r.length/2;let i;if(n>e){for(i=0;i<n;++i)delete o.data[r[i]];r.splice(0,n)}})}function en(t){return t.drawTicks?t.tickLength:0}function Cu(t,e){if(!t.display)return 0;const o=Le(t.font,e),r=Ye(t.padding);return(Oe(t.text)?t.text.length:1)*o.lineHeight+r.height}function GS(t,e){return co(t,{scale:e,type:"scale"})}function QS(t,e,o){return co(t,{tick:o,index:e,type:"tick"})}function JS(t,e,o){let r=va(t);return(o&&e!=="right"||!o&&e==="right")&&(r=YS(r)),r}function ZS(t,e,o,r){const{top:n,left:i,bottom:s,right:l,chart:c}=t,{chartArea:d,scales:u}=c;let f=0,h,g,m;const p=s-n,b=l-i;if(t.isHorizontal()){if(g=qe(r,i,l),de(o)){const y=Object.keys(o)[0],x=o[y];m=u[y].getPixelForValue(x)+p-e}else o==="center"?m=(d.bottom+d.top)/2+p-e:m=xu(t,o,e);h=l-i}else{if(de(o)){const y=Object.keys(o)[0],x=o[y];g=u[y].getPixelForValue(x)-b+e}else o==="center"?g=(d.left+d.right)/2-b+e:g=xu(t,o,e);m=qe(r,s,n),f=o==="left"?-Fe:Fe}return{titleX:g,titleY:m,maxWidth:h,rotation:f}}class fo extends Dt{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,o){return e}getUserBounds(){let{_userMin:e,_userMax:o,_suggestedMin:r,_suggestedMax:n}=this;return e=at(e,Number.POSITIVE_INFINITY),o=at(o,Number.NEGATIVE_INFINITY),r=at(r,Number.POSITIVE_INFINITY),n=at(n,Number.NEGATIVE_INFINITY),{min:at(e,r),max:at(o,n),minDefined:Ae(e),maxDefined:Ae(o)}}getMinMax(e){let{min:o,max:r,minDefined:n,maxDefined:i}=this.getUserBounds(),s;if(n&&i)return{min:o,max:r};const l=this.getMatchingVisibleMetas();for(let c=0,d=l.length;c<d;++c)s=l[c].controller.getMinMax(this,e),n||(o=Math.min(o,s.min)),i||(r=Math.max(r,s.max));return o=i&&o>r?r:o,r=n&&o>r?o:r,{min:at(o,at(r,o)),max:at(r,at(o,r))}}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(){ve(this.options.beforeUpdate,[this])}update(e,o,r){const{beginAtZero:n,grace:i,ticks:s}=this.options,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=o,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=m5(this,i,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?wu(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=zS(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,o,r;this.isHorizontal()?(o=this.left,r=this.right):(o=this.top,r=this.bottom,e=!e),this._startPixel=o,this._endPixel=r,this._reversePixels=e,this._length=r-o,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ve(this.options.afterUpdate,[this])}beforeSetDimensions(){ve(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(){ve(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),ve(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ve(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const o=this.options.ticks;let r,n,i;for(r=0,n=e.length;r<n;r++)i=e[r],i.label=ve(o.callback,[i.value,r,e],this)}afterTickToLabelConversion(){ve(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ve(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,o=e.ticks,r=vu(this.ticks.length,e.ticks.maxTicksLimit),n=o.minRotation||0,i=o.maxRotation;let s=n,l,c,d;if(!this._isVisible()||!o.display||n>=i||r<=1||!this.isHorizontal()){this.labelRotation=n;return}const u=this._getLabelSizes(),f=u.widest.width,h=u.highest.height,g=je(this.chart.width-f,0,this.maxWidth);l=e.offset?this.maxWidth/r:g/(r-1),f+6>l&&(l=g/(r-(e.offset?.5:1)),c=this.maxHeight-en(e.grid)-o.padding-Cu(e.title,this.chart.options.font),d=Math.sqrt(f*f+h*h),s=ya(Math.min(Math.asin(je((u.highest.height+6)/l,-1,1)),Math.asin(je(c/d,-1,1))-Math.asin(je(h/d,-1,1)))),s=Math.max(n,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){ve(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ve(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:o,options:{ticks:r,title:n,grid:i}}=this,s=this._isVisible(),l=this.isHorizontal();if(s){const c=Cu(n,o.options.font);if(l?(e.width=this.maxWidth,e.height=en(i)+c):(e.height=this.maxHeight,e.width=en(i)+c),r.display&&this.ticks.length){const{first:d,last:u,widest:f,highest:h}=this._getLabelSizes(),g=r.padding*2,m=xt(this.labelRotation),p=Math.cos(m),b=Math.sin(m);if(l){const y=r.mirror?0:b*f.width+p*h.height;e.height=Math.min(this.maxHeight,e.height+y+g)}else{const y=r.mirror?0:p*f.width+b*h.height;e.width=Math.min(this.maxWidth,e.width+y+g)}this._calculatePadding(d,u,b,p)}}this._handleMargins(),l?(this.width=this._length=o.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=o.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,o,r,n){const{ticks:{align:i,padding:s},position:l}=this.options,c=this.labelRotation!==0,d=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,g=0;c?d?(h=n*e.width,g=r*o.height):(h=r*e.height,g=n*o.width):i==="start"?g=o.width:i==="end"?h=e.width:i!=="inner"&&(h=e.width/2,g=o.width/2),this.paddingLeft=Math.max((h-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((g-f+s)*this.width/(this.width-f),0)}else{let u=o.height/2,f=e.height/2;i==="start"?(u=0,f=e.height):i==="end"&&(u=o.height,f=0),this.paddingTop=u+s,this.paddingBottom=f+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(){ve(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:o}=this.options;return o==="top"||o==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let o,r;for(o=0,r=e.length;o<r;o++)fe(e[o].label)&&(e.splice(o,1),r--,o--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const o=this.options.ticks.sampleSize;let r=this.ticks;o<r.length&&(r=wu(r,o)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,o,r){const{ctx:n,_longestTextCache:i}=this,s=[],l=[],c=Math.floor(o/vu(o,r));let d=0,u=0,f,h,g,m,p,b,y,x,C,B,w;for(f=0;f<o;f+=c){if(m=e[f].label,p=this._resolveTickFontOptions(f),n.font=b=p.string,y=i[b]=i[b]||{data:{},gc:[]},x=p.lineHeight,C=B=0,!fe(m)&&!Oe(m))C=Xn(n,y.data,y.gc,C,m),B=x;else if(Oe(m))for(h=0,g=m.length;h<g;++h)w=m[h],!fe(w)&&!Oe(w)&&(C=Xn(n,y.data,y.gc,C,w),B+=x);s.push(C),l.push(B),d=Math.max(C,d),u=Math.max(B,u)}KS(i,o);const _=s.indexOf(d),v=l.indexOf(u),k=S=>({width:s[S]||0,height:l[S]||0});return{first:k(0),last:k(o-1),widest:k(_),highest:k(v),widths:s,heights:l}}getLabelForValue(e){return e}getPixelForValue(e,o){return NaN}getValueForPixel(e){}getPixelForTick(e){const o=this.ticks;return e<0||e>o.length-1?null:this.getPixelForValue(o[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const o=this._startPixel+e*this._length;return H_(this._alignToPixels?Bo(this.chart,o,0):o)}getDecimalForPixel(e){const o=(e-this._startPixel)/this._length;return this._reversePixels?1-o:o}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:o}=this;return e<0&&o<0?o:e>0&&o>0?e:0}getContext(e){const o=this.ticks||[];if(e>=0&&e<o.length){const r=o[e];return r.$context||(r.$context=QS(this.getContext(),e,r))}return this.$context||(this.$context=GS(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,o=xt(this.labelRotation),r=Math.abs(Math.cos(o)),n=Math.abs(Math.sin(o)),i=this._getLabelSizes(),s=e.autoSkipPadding||0,l=i?i.widest.width+s:0,c=i?i.highest.height+s:0;return this.isHorizontal()?c*r>l*n?l/r:c/n:c*n<l*r?c/r:l/n}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const o=this.axis,r=this.chart,n=this.options,{grid:i,position:s,border:l}=n,c=i.offset,d=this.isHorizontal(),f=this.ticks.length+(c?1:0),h=en(i),g=[],m=l.setContext(this.getContext()),p=m.display?m.width:0,b=p/2,y=function($){return Bo(r,$,p)};let x,C,B,w,_,v,k,S,N,E,D,M;if(s==="top")x=y(this.bottom),v=this.bottom-h,S=x-b,E=y(e.top)+b,M=e.bottom;else if(s==="bottom")x=y(this.top),E=e.top,M=y(e.bottom)-b,v=x+b,S=this.top+h;else if(s==="left")x=y(this.right),_=this.right-h,k=x-b,N=y(e.left)+b,D=e.right;else if(s==="right")x=y(this.left),N=e.left,D=y(e.right)-b,_=x+b,k=this.left+h;else if(o==="x"){if(s==="center")x=y((e.top+e.bottom)/2+.5);else if(de(s)){const $=Object.keys(s)[0],W=s[$];x=y(this.chart.scales[$].getPixelForValue(W))}E=e.top,M=e.bottom,v=x+b,S=v+h}else if(o==="y"){if(s==="center")x=y((e.left+e.right)/2);else if(de(s)){const $=Object.keys(s)[0],W=s[$];x=y(this.chart.scales[$].getPixelForValue(W))}_=x-b,k=_-h,N=e.left,D=e.right}const T=se(n.ticks.maxTicksLimit,f),F=Math.max(1,Math.ceil(f/T));for(C=0;C<f;C+=F){const $=this.getContext(C),W=i.setContext($),z=l.setContext($),A=W.lineWidth,j=W.color,J=z.dash||[],oe=z.dashOffset,ne=W.tickWidth,X=W.tickColor,Q=W.tickBorderDash||[],ie=W.tickBorderDashOffset;B=XS(this,C,c),B!==void 0&&(w=Bo(r,B,A),d?_=k=N=D=w:v=S=E=M=w,g.push({tx1:_,ty1:v,tx2:k,ty2:S,x1:N,y1:E,x2:D,y2:M,width:A,color:j,borderDash:J,borderDashOffset:oe,tickWidth:ne,tickColor:X,tickBorderDash:Q,tickBorderDashOffset:ie}))}return this._ticksLength=f,this._borderValue=x,g}_computeLabelItems(e){const o=this.axis,r=this.options,{position:n,ticks:i}=r,s=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:d,padding:u,mirror:f}=i,h=en(r.grid),g=h+u,m=f?-u:g,p=-xt(this.labelRotation),b=[];let y,x,C,B,w,_,v,k,S,N,E,D,M="middle";if(n==="top")_=this.bottom-m,v=this._getXAxisLabelAlignment();else if(n==="bottom")_=this.top+m,v=this._getXAxisLabelAlignment();else if(n==="left"){const F=this._getYAxisLabelAlignment(h);v=F.textAlign,w=F.x}else if(n==="right"){const F=this._getYAxisLabelAlignment(h);v=F.textAlign,w=F.x}else if(o==="x"){if(n==="center")_=(e.top+e.bottom)/2+g;else if(de(n)){const F=Object.keys(n)[0],$=n[F];_=this.chart.scales[F].getPixelForValue($)+g}v=this._getXAxisLabelAlignment()}else if(o==="y"){if(n==="center")w=(e.left+e.right)/2-g;else if(de(n)){const F=Object.keys(n)[0],$=n[F];w=this.chart.scales[F].getPixelForValue($)}v=this._getYAxisLabelAlignment(h).textAlign}o==="y"&&(c==="start"?M="top":c==="end"&&(M="bottom"));const T=this._getLabelSizes();for(y=0,x=l.length;y<x;++y){C=l[y],B=C.label;const F=i.setContext(this.getContext(y));k=this.getPixelForTick(y)+i.labelOffset,S=this._resolveTickFontOptions(y),N=S.lineHeight,E=Oe(B)?B.length:1;const $=E/2,W=F.color,z=F.textStrokeColor,A=F.textStrokeWidth;let j=v;s?(w=k,v==="inner"&&(y===x-1?j=this.options.reverse?"left":"right":y===0?j=this.options.reverse?"right":"left":j="center"),n==="top"?d==="near"||p!==0?D=-E*N+N/2:d==="center"?D=-T.highest.height/2-$*N+N:D=-T.highest.height+N/2:d==="near"||p!==0?D=N/2:d==="center"?D=T.highest.height/2-$*N:D=T.highest.height-E*N,f&&(D*=-1),p!==0&&!F.showLabelBackdrop&&(w+=N/2*Math.sin(p))):(_=k,D=(1-E)*N/2);let J;if(F.showLabelBackdrop){const oe=Ye(F.backdropPadding),ne=T.heights[y],X=T.widths[y];let Q=D-oe.top,ie=0-oe.left;switch(M){case"middle":Q-=ne/2;break;case"bottom":Q-=ne;break}switch(v){case"center":ie-=X/2;break;case"right":ie-=X;break;case"inner":y===x-1?ie-=X:y>0&&(ie-=X/2);break}J={left:ie,top:Q,width:X+oe.width,height:ne+oe.height,color:F.backdropColor}}b.push({label:B,font:S,textOffset:D,options:{rotation:p,color:W,strokeColor:z,strokeWidth:A,textAlign:j,textBaseline:M,translation:[w,_],backdrop:J}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:o}=this.options;if(-xt(this.labelRotation))return e==="top"?"left":"right";let n="center";return o.align==="start"?n="left":o.align==="end"?n="right":o.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:o,ticks:{crossAlign:r,mirror:n,padding:i}}=this.options,s=this._getLabelSizes(),l=e+i,c=s.widest.width;let d,u;return o==="left"?n?(u=this.right+i,r==="near"?d="left":r==="center"?(d="center",u+=c/2):(d="right",u+=c)):(u=this.right-l,r==="near"?d="right":r==="center"?(d="center",u-=c/2):(d="left",u=this.left)):o==="right"?n?(u=this.left+i,r==="near"?d="right":r==="center"?(d="center",u-=c/2):(d="left",u-=c)):(u=this.left+l,r==="near"?d="left":r==="center"?(d="center",u+=c/2):(d="right",u=this.right)):d="right",{textAlign:d,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,o=this.options.position;if(o==="left"||o==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(o==="top"||o==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:o},left:r,top:n,width:i,height:s}=this;o&&(e.save(),e.fillStyle=o,e.fillRect(r,n,i,s),e.restore())}getLineWidthForValue(e){const o=this.options.grid;if(!this._isVisible()||!o.display)return 0;const n=this.ticks.findIndex(i=>i.value===e);return n>=0?o.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){const o=this.options.grid,r=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,s;const l=(c,d,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(c.x,c.y),r.lineTo(d.x,d.y),r.stroke(),r.restore())};if(o.display)for(i=0,s=n.length;i<s;++i){const c=n[i];o.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),o.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:o,options:{border:r,grid:n}}=this,i=r.setContext(this.getContext()),s=r.display?i.width:0;if(!s)return;const l=n.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let d,u,f,h;this.isHorizontal()?(d=Bo(e,this.left,s)-s/2,u=Bo(e,this.right,l)+l/2,f=h=c):(f=Bo(e,this.top,s)-s/2,h=Bo(e,this.bottom,l)+l/2,d=u=c),o.save(),o.lineWidth=i.width,o.strokeStyle=i.color,o.beginPath(),o.moveTo(d,f),o.lineTo(u,h),o.stroke(),o.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,n=this._computeLabelArea();n&&Kn(r,n);const i=this.getLabelItems(e);for(const s of i){const l=s.options,c=s.font,d=s.label,u=s.textOffset;Eo(r,d,0,u,c,l)}n&&Gn(r)}drawTitle(){const{ctx:e,options:{position:o,title:r,reverse:n}}=this;if(!r.display)return;const i=Le(r.font),s=Ye(r.padding),l=r.align;let c=i.lineHeight/2;o==="bottom"||o==="center"||de(o)?(c+=s.bottom,Oe(r.text)&&(c+=i.lineHeight*(r.text.length-1))):c+=s.top;const{titleX:d,titleY:u,maxWidth:f,rotation:h}=ZS(this,c,o,l);Eo(e,r.text,0,0,i,{color:r.color,maxWidth:f,rotation:h,textAlign:JS(l,o,n),textBaseline:"middle",translation:[d,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,o=e.ticks&&e.ticks.z||0,r=se(e.grid&&e.grid.z,-1),n=se(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==fo.prototype.draw?[{z:o,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:o,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const o=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",n=[];let i,s;for(i=0,s=o.length;i<s;++i){const l=o[i];l[r]===this.id&&(!e||l.type===e)&&n.push(l)}return n}_resolveTickFontOptions(e){const o=this.options.ticks.setContext(this.getContext(e));return Le(o.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class ai{constructor(e,o,r){this.type=e,this.scope=o,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const o=Object.getPrototypeOf(e);let r;oB(o)&&(r=this.register(o));const n=this.items,i=e.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in n||(n[i]=e,eB(e,s,r),this.override&&Be.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const o=this.items,r=e.id,n=this.scope;r in o&&delete o[r],n&&r in Be[n]&&(delete Be[n][r],this.override&&delete So[r])}}function eB(t,e,o){const r=Tr(Object.create(null),[o?Be.get(o):{},Be.get(e),t.defaults]);Be.set(e,r),t.defaultRoutes&&tB(e,t.defaultRoutes),t.descriptors&&Be.describe(e,t.descriptors)}function tB(t,e){Object.keys(e).forEach(o=>{const r=o.split("."),n=r.pop(),i=[t].concat(r).join("."),s=e[o].split("."),l=s.pop(),c=s.join(".");Be.route(i,n,c,l)})}function oB(t){return"id"in t&&"defaults"in t}class rB{constructor(){this.controllers=new ai(ut,"datasets",!0),this.elements=new ai(Dt,"elements"),this.plugins=new ai(Object,"plugins"),this.scales=new ai(fo,"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,o,r){[...o].forEach(n=>{const i=r||this._getRegistryForType(n);r||i.isForType(n)||i===this.plugins&&n.id?this._exec(e,i,n):ye(n,s=>{const l=r||this._getRegistryForType(s);this._exec(e,l,s)})})}_exec(e,o,r){const n=ba(e);ve(r["before"+n],[],r),o[e](r),ve(r["after"+n],[],r)}_getRegistryForType(e){for(let o=0;o<this._typedRegistries.length;o++){const r=this._typedRegistries[o];if(r.isForType(e))return r}return this.plugins}_get(e,o,r){const n=o.get(e);if(n===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return n}}var vt=new rB;class nB{constructor(){this._init=[]}notify(e,o,r,n){o==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const i=n?this._descriptors(e).filter(n):this._descriptors(e),s=this._notify(i,e,o,r);return o==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,o,r,n){n=n||{};for(const i of e){const s=i.plugin,l=s[r],c=[o,n,i.options];if(ve(l,c,s)===!1&&n.cancelable)return!1}return!0}invalidate(){fe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const o=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),o}_createDescriptors(e,o){const r=e&&e.config,n=se(r.options&&r.options.plugins,{}),i=iB(r);return n===!1&&!o?[]:sB(e,i,n,o)}_notifyStateChanges(e){const o=this._oldCache||[],r=this._cache,n=(i,s)=>i.filter(l=>!s.some(c=>l.plugin.id===c.plugin.id));this._notify(n(o,r),e,"stop"),this._notify(n(r,o),e,"start")}}function iB(t){const e={},o=[],r=Object.keys(vt.plugins.items);for(let i=0;i<r.length;i++)o.push(vt.getPlugin(r[i]));const n=t.plugins||[];for(let i=0;i<n.length;i++){const s=n[i];o.indexOf(s)===-1&&(o.push(s),e[s.id]=!0)}return{plugins:o,localIds:e}}function aB(t,e){return!e&&t===!1?null:t===!0?{}:t}function sB(t,{plugins:e,localIds:o},r,n){const i=[],s=t.getContext();for(const l of e){const c=l.id,d=aB(r[c],n);d!==null&&i.push({plugin:l,options:lB(t.config,{plugin:l,local:o[c]},d,s)})}return i}function lB(t,{plugin:e,local:o},r,n){const i=t.pluginScopeKeys(e),s=t.getOptionScopes(r,i);return o&&e.defaults&&s.push(e.defaults),t.createResolver(s,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Wa(t,e){const o=Be.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||o.indexAxis||"x"}function cB(t,e){let o=t;return t==="_index_"?o=e:t==="_value_"&&(o=e==="x"?"y":"x"),o}function dB(t,e){return t===e?"_index_":"_value_"}function _u(t){if(t==="x"||t==="y"||t==="r")return t}function uB(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Ha(t,...e){if(_u(t))return t;for(const o of e){const r=o.axis||uB(o.position)||t.length>1&&_u(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Su(t,e,o){if(o[e+"AxisID"]===t)return{axis:e}}function fB(t,e){if(e.data&&e.data.datasets){const o=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(o.length)return Su(t,"x",o[0])||Su(t,"y",o[0])}return{}}function hB(t,e){const o=So[t.type]||{scales:{}},r=e.scales||{},n=Wa(t.type,e),i=Object.create(null);return Object.keys(r).forEach(s=>{const l=r[s];if(!de(l))return console.error(`Invalid scale configuration for scale: ${s}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const c=Ha(s,l,fB(s,t),Be.scales[l.type]),d=dB(c,n),u=o.scales||{};i[s]=Pr(Object.create(null),[{axis:c},l,u[c],u[d]])}),t.data.datasets.forEach(s=>{const l=s.type||t.type,c=s.indexAxis||Wa(l,e),u=(So[l]||{}).scales||{};Object.keys(u).forEach(f=>{const h=cB(f,c),g=s[h+"AxisID"]||h;i[g]=i[g]||Object.create(null),Pr(i[g],[{axis:h},r[g],u[f]])})}),Object.keys(i).forEach(s=>{const l=i[s];Pr(l,[Be.scales[l.type],Be.scale])}),i}function Bu(t){const e=t.options||(t.options={});e.plugins=se(e.plugins,{}),e.scales=hB(t,e)}function Eu(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function gB(t){return t=t||{},t.data=Eu(t.data),Bu(t),t}const Ru=new Map,Ou=new Set;function si(t,e){let o=Ru.get(t);return o||(o=e(),Ru.set(t,o),Ou.add(o)),o}const tn=(t,e,o)=>{const r=ao(e,o);r!==void 0&&t.add(r)};class mB{constructor(e){this._config=gB(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=Eu(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(),Bu(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return si(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,o){return si(`${e}.transition.${o}`,()=>[[`datasets.${e}.transitions.${o}`,`transitions.${o}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,o){return si(`${e}-${o}`,()=>[[`datasets.${e}.elements.${o}`,`datasets.${e}`,`elements.${o}`,""]])}pluginScopeKeys(e){const o=e.id,r=this.type;return si(`${r}-plugin-${o}`,()=>[[`plugins.${o}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,o){const r=this._scopeCache;let n=r.get(e);return(!n||o)&&(n=new Map,r.set(e,n)),n}getOptionScopes(e,o,r){const{options:n,type:i}=this,s=this._cachedScopes(e,r),l=s.get(o);if(l)return l;const c=new Set;o.forEach(u=>{e&&(c.add(e),u.forEach(f=>tn(c,e,f))),u.forEach(f=>tn(c,n,f)),u.forEach(f=>tn(c,So[i]||{},f)),u.forEach(f=>tn(c,Be,f)),u.forEach(f=>tn(c,_a,f))});const d=Array.from(c);return d.length===0&&d.push(Object.create(null)),Ou.has(o)&&s.set(o,d),d}chartOptionScopes(){const{options:e,type:o}=this;return[e,So[o]||{},Be.datasets[o]||{},{type:o},Be,_a]}resolveNamedOptions(e,o,r,n=[""]){const i={$shared:!0},{resolver:s,subPrefixes:l}=Du(this._resolverCache,e,n);let c=s;if(bB(s,o)){i.$shared=!1,r=so(r)?r():r;const d=this.createResolver(e,r,l);c=Yo(s,r,d)}for(const d of o)i[d]=c[d];return i}createResolver(e,o,r=[""],n){const{resolver:i}=Du(this._resolverCache,e,r);return de(o)?Yo(i,o,void 0,n):i}}function Du(t,e,o){let r=t.get(e);r||(r=new Map,t.set(e,r));const n=o.join();let i=r.get(n);return i||(i={resolver:Ra(e,o),subPrefixes:o.filter(l=>!l.toLowerCase().includes("hover"))},r.set(n,i)),i}const pB=t=>de(t)&&Object.getOwnPropertyNames(t).some(e=>so(t[e]));function bB(t,e){const{isScriptable:o,isIndexable:r}=Rd(t);for(const n of e){const i=o(n),s=r(n),l=(s||i)&&t[n];if(i&&(so(l)||pB(l))||s&&Oe(l))return!0}return!1}var yB="4.4.7";const kB=["top","bottom","left","right","chartArea"];function Nu(t,e){return t==="top"||t==="bottom"||kB.indexOf(t)===-1&&e==="x"}function Tu(t,e){return function(o,r){return o[t]===r[t]?o[e]-r[e]:o[t]-r[t]}}function Pu(t){const e=t.chart,o=e.options.animation;e.notifyPlugins("afterRender"),ve(o&&o.onComplete,[t],e)}function xB(t){const e=t.chart,o=e.options.animation;ve(o&&o.onProgress,[t],e)}function $u(t){return Na()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const li={},Au=t=>{const e=$u(t);return Object.values(li).filter(o=>o.canvas===e).pop()};function vB(t,e,o){const r=Object.keys(t);for(const n of r){const i=+n;if(i>=e){const s=t[n];delete t[n],(o>0||i>e)&&(t[i+o]=s)}}}function wB(t,e,o,r){return!o||t.type==="mouseout"?null:r?e:t}function ci(t,e,o){return t.options.clip?t[o]:e[o]}function CB(t,e){const{xScale:o,yScale:r}=t;return o&&r?{left:ci(o,e,"left"),right:ci(o,e,"right"),top:ci(r,e,"top"),bottom:ci(r,e,"bottom")}:e}class Nt{static register(...e){vt.add(...e),Mu()}static unregister(...e){vt.remove(...e),Mu()}constructor(e,o){const r=this.config=new mB(o),n=$u(e),i=Au(n);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=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||ku(n)),this.platform.updateConfig(r);const l=this.platform.acquireContext(n,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,u=c&&c.width;if(this.id=T_(),this.ctx=l,this.canvas=c,this.width=u,this.height=d,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 nB,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=X_(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],li[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Ot.listen(this,"complete",Pu),Ot.listen(this,"progress",xB),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:o},width:r,height:n,_aspectRatio:i}=this;return fe(e)?o&&i?i:n?r/n: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 vt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Md(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Sd(this.canvas,this.ctx),this}stop(){return Ot.stop(this),this}resize(e,o){Ot.running(this)?this._resizeBeforeDraw={width:e,height:o}:this._resize(e,o)}_resize(e,o){const r=this.options,n=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(n,e,o,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Md(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),ve(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const o=this.options.scales||{};ye(o,(r,n)=>{r.id=n})}buildOrUpdateScales(){const e=this.options,o=e.scales,r=this.scales,n=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{});let i=[];o&&(i=i.concat(Object.keys(o).map(s=>{const l=o[s],c=Ha(s,l),d=c==="r",u=c==="x";return{options:l,dposition:d?"chartArea":u?"bottom":"left",dtype:d?"radialLinear":u?"category":"linear"}}))),ye(i,s=>{const l=s.options,c=l.id,d=Ha(c,l),u=se(l.type,s.dtype);(l.position===void 0||Nu(l.position,d)!==Nu(s.dposition))&&(l.position=s.dposition),n[c]=!0;let f=null;if(c in r&&r[c].type===u)f=r[c];else{const h=vt.getScale(u);f=new h({id:c,type:u,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,e)}),ye(n,(s,l)=>{s||delete r[l]}),ye(r,s=>{We.configure(this,s,s.options),We.addBox(this,s)})}_updateMetasets(){const e=this._metasets,o=this.data.datasets.length,r=e.length;if(e.sort((n,i)=>n.index-i.index),r>o){for(let n=o;n<r;++n)this._destroyDatasetMeta(n);e.splice(o,r-o)}this._sortedMetasets=e.slice(0).sort(Tu("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:o}}=this;e.length>o.length&&delete this._stacks,e.forEach((r,n)=>{o.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const e=[],o=this.data.datasets;let r,n;for(this._removeUnreferencedMetasets(),r=0,n=o.length;r<n;r++){const i=o[r];let s=this.getDatasetMeta(r);const l=i.type||this.config.type;if(s.type&&s.type!==l&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=l,s.indexAxis=i.indexAxis||Wa(l,this.options),s.order=i.order||0,s.index=r,s.label=""+i.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const c=vt.getController(l),{datasetElementType:d,dataElementType:u}=Be.datasets[l];Object.assign(c,{dataElementType:vt.getElement(u),datasetElementType:d&&vt.getElement(d)}),s.controller=new c(this,r),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){ye(this.data.datasets,(e,o)=>{this.getDatasetMeta(o).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const o=this.config;o.update();const r=this._options=o.createResolver(o.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!r.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 d=0,u=this.data.datasets.length;d<u;d++){const{controller:f}=this.getDatasetMeta(d),h=!n&&i.indexOf(f)===-1;f.buildOrUpdateElements(h),s=Math.max(+f.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),n||ye(i,d=>{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Tu("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ye(this.scales,e=>{We.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,o=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!sd(o,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,o=this._getUniformDataChanges()||[];for(const{method:r,start:n,count:i}of o){const s=r==="_removeElements"?-i:i;vB(e,n,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const o=this.data.datasets.length,r=i=>new Set(e.filter(s=>s[0]===i).map((s,l)=>l+","+s.splice(1).join(","))),n=r(0);for(let i=1;i<o;i++)if(!sd(n,r(i)))return;return Array.from(n).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;We.update(this,this.width,this.height,e);const o=this.chartArea,r=o.width<=0||o.height<=0;this._layers=[],ye(this.boxes,n=>{r&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,i)=>{n._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let o=0,r=this.data.datasets.length;o<r;++o)this.getDatasetMeta(o).controller.configure();for(let o=0,r=this.data.datasets.length;o<r;++o)this._updateDataset(o,so(e)?e({datasetIndex:o}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,o){const r=this.getDatasetMeta(e),n={meta:r,index:e,mode:o,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",n)!==!1&&(r.controller._update(o),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Ot.has(this)?this.attached&&!Ot.running(this)&&Ot.start(this):(this.draw(),Pu({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:n}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,n)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const o=this._layers;for(e=0;e<o.length&&o[e].z<=0;++e)o[e].draw(this.chartArea);for(this._drawDatasets();e<o.length;++e)o[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const o=this._sortedMetasets,r=[];let n,i;for(n=0,i=o.length;n<i;++n){const s=o[n];(!e||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let o=e.length-1;o>=0;--o)this._drawDataset(e[o]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const o=this.ctx,r=e._clip,n=!r.disabled,i=CB(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(n&&Kn(o,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),e.controller.draw(),n&&Gn(o),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return Ut(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,o,r,n){const i=su.modes[o];return typeof i=="function"?i(this,e,r,n):[]}getDatasetMeta(e){const o=this.data.datasets[e],r=this._metasets;let n=r.filter(i=>i&&i._dataset===o).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:o&&o.order||0,index:e,_dataset:o,_parsed:[],_sorted:!1},r.push(n)),n}getContext(){return this.$context||(this.$context=co(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const o=this.data.datasets[e];if(!o)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!o.hidden}setDatasetVisibility(e,o){const r=this.getDatasetMeta(e);r.hidden=!o}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,o,r){const n=r?"show":"hide",i=this.getDatasetMeta(e),s=i.controller._resolveAnimations(void 0,n);$r(o)?(i.data[o].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(i,{visible:r}),this.update(l=>l.datasetIndex===e?n:void 0))}hide(e,o){this._updateVisibility(e,o,!1)}show(e,o){this._updateVisibility(e,o,!0)}_destroyDatasetMeta(e){const o=this._metasets[e];o&&o.controller&&o.controller._destroy(),delete this._metasets[e]}_stop(){let e,o;for(this.stop(),Ot.remove(this),e=0,o=this.data.datasets.length;e<o;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:o}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Sd(e,o),this.platform.releaseContext(o),this.canvas=null,this.ctx=null),delete li[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,o=this.platform,r=(i,s)=>{o.addEventListener(this,i,s),e[i]=s},n=(i,s,l)=>{i.offsetX=s,i.offsetY=l,this._eventHandler(i)};ye(this.options.events,i=>r(i,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,o=this.platform,r=(c,d)=>{o.addEventListener(this,c,d),e[c]=d},n=(c,d)=>{e[c]&&(o.removeEventListener(this,c,d),delete e[c])},i=(c,d)=>{this.canvas&&this.resize(c,d)};let s;const l=()=>{n("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",s)};s=()=>{this.attached=!1,n("resize",i),this._stop(),this._resize(0,0),r("attach",l)},o.isAttached(this.canvas)?l():s()}unbindEvents(){ye(this._listeners,(e,o)=>{this.platform.removeEventListener(this,o,e)}),this._listeners={},ye(this._responsiveListeners,(e,o)=>{this.platform.removeEventListener(this,o,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,o,r){const n=r?"set":"remove";let i,s,l,c;for(o==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+n+"DatasetHoverStyle"]()),l=0,c=e.length;l<c;++l){s=e[l];const d=s&&this.getDatasetMeta(s.datasetIndex).controller;d&&d[n+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const o=this._active||[],r=e.map(({datasetIndex:i,index:s})=>{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[s],index:s}});!Hn(r,o)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,o))}notifyPlugins(e,o,r){return this._plugins.notify(this,e,o,r)}isPluginEnabled(e){return this._plugins._cache.filter(o=>o.plugin.id===e).length===1}_updateHoverStyles(e,o,r){const n=this.options.hover,i=(c,d)=>c.filter(u=>!d.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),s=i(o,e),l=r?e:i(e,o);s.length&&this.updateHoverStyle(s,n.mode,!1),l.length&&n.mode&&this.updateHoverStyle(l,n.mode,!0)}_eventHandler(e,o){const r={event:e,replay:o,cancelable:!0,inChartArea:this.isPointInArea(e)},n=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,n)===!1)return;const i=this._handleEvent(e,o,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,n),(i||r.changed)&&this.render(),this}_handleEvent(e,o,r){const{_active:n=[],options:i}=this,s=o,l=this._getActiveElements(e,n,r,s),c=V_(e),d=wB(e,this._lastEvent,r,c);r&&(this._lastEvent=null,ve(i.onHover,[e,l,this],this),c&&ve(i.onClick,[e,l,this],this));const u=!Hn(l,n);return(u||o)&&(this._active=l,this._updateHoverStyles(l,n,o)),this._lastEvent=d,u}_getActiveElements(e,o,r,n){if(e.type==="mouseout")return[];if(!r)return o;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,n)}}H(Nt,"defaults",Be),H(Nt,"instances",li),H(Nt,"overrides",So),H(Nt,"registry",vt),H(Nt,"version",yB),H(Nt,"getChart",Au);function Mu(){return ye(Nt.instances,t=>t._plugins.invalidate())}function _B(t,e,o){const{startAngle:r,pixelMargin:n,x:i,y:s,outerRadius:l,innerRadius:c}=e;let d=n/l;t.beginPath(),t.arc(i,s,l,r-d,o+d),c>n?(d=n/c,t.arc(i,s,c,o+d,r-d,!0)):t.arc(i,s,n,o+Fe,r-Fe),t.closePath(),t.clip()}function SB(t){return Ea(t,["outerStart","outerEnd","innerStart","innerEnd"])}function BB(t,e,o,r){const n=SB(t.options.borderRadius),i=(o-e)/2,s=Math.min(i,r*e/2),l=c=>{const d=(o-Math.min(i,c))*r/2;return je(c,0,Math.min(i,d))};return{outerStart:l(n.outerStart),outerEnd:l(n.outerEnd),innerStart:je(n.innerStart,0,s),innerEnd:je(n.innerEnd,0,s)}}function Qo(t,e,o,r){return{x:o+t*Math.cos(e),y:r+t*Math.sin(e)}}function di(t,e,o,r,n,i){const{x:s,y:l,startAngle:c,pixelMargin:d,innerRadius:u}=e,f=Math.max(e.outerRadius+r+o-d,0),h=u>0?u+r+o+d:0;let g=0;const m=n-c;if(r){const F=u>0?u-r:0,$=f>0?f-r:0,W=(F+$)/2,z=W!==0?m*W/(W+r):m;g=(m-z)/2}const p=Math.max(.001,m*f-o/_e)/f,b=(m-p)/2,y=c+b+g,x=n-b-g,{outerStart:C,outerEnd:B,innerStart:w,innerEnd:_}=BB(e,h,f,x-y),v=f-C,k=f-B,S=y+C/v,N=x-B/k,E=h+w,D=h+_,M=y+w/E,T=x-_/D;if(t.beginPath(),i){const F=(S+N)/2;if(t.arc(s,l,f,S,F),t.arc(s,l,f,F,N),B>0){const A=Qo(k,N,s,l);t.arc(A.x,A.y,B,N,x+Fe)}const $=Qo(D,x,s,l);if(t.lineTo($.x,$.y),_>0){const A=Qo(D,T,s,l);t.arc(A.x,A.y,_,x+Fe,T+Math.PI)}const W=(x-_/h+(y+w/h))/2;if(t.arc(s,l,h,x-_/h,W,!0),t.arc(s,l,h,W,y+w/h,!0),w>0){const A=Qo(E,M,s,l);t.arc(A.x,A.y,w,M+Math.PI,y-Fe)}const z=Qo(v,y,s,l);if(t.lineTo(z.x,z.y),C>0){const A=Qo(v,S,s,l);t.arc(A.x,A.y,C,y-Fe,S)}}else{t.moveTo(s,l);const F=Math.cos(S)*f+s,$=Math.sin(S)*f+l;t.lineTo(F,$);const W=Math.cos(N)*f+s,z=Math.sin(N)*f+l;t.lineTo(W,z)}t.closePath()}function EB(t,e,o,r,n){const{fullCircles:i,startAngle:s,circumference:l}=e;let c=e.endAngle;if(i){di(t,e,o,r,c,n);for(let d=0;d<i;++d)t.fill();isNaN(l)||(c=s+(l%Se||Se))}return di(t,e,o,r,c,n),t.fill(),c}function RB(t,e,o,r,n){const{fullCircles:i,startAngle:s,circumference:l,options:c}=e,{borderWidth:d,borderJoinStyle:u,borderDash:f,borderDashOffset:h}=c,g=c.borderAlign==="inner";if(!d)return;t.setLineDash(f||[]),t.lineDashOffset=h,g?(t.lineWidth=d*2,t.lineJoin=u||"round"):(t.lineWidth=d,t.lineJoin=u||"bevel");let m=e.endAngle;if(i){di(t,e,o,r,m,n);for(let p=0;p<i;++p)t.stroke();isNaN(l)||(m=s+(l%Se||Se))}g&&_B(t,e,m),i||(di(t,e,o,r,m,n),t.stroke())}class Jo extends Dt{constructor(o){super();H(this,"circumference");H(this,"endAngle");H(this,"fullCircles");H(this,"innerRadius");H(this,"outerRadius");H(this,"pixelMargin");H(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,o&&Object.assign(this,o)}inRange(o,r,n){const i=this.getProps(["x","y"],n),{angle:s,distance:l}=fd(i,{x:o,y:r}),{startAngle:c,endAngle:d,innerRadius:u,outerRadius:f,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),g=(this.options.spacing+this.options.borderWidth)/2,m=se(h,d-c),p=Mr(s,c,d)&&c!==d,b=m>=Se||p,y=Wt(l,u+g,f+g);return b&&y}getCenterPoint(o){const{x:r,y:n,startAngle:i,endAngle:s,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],o),{offset:d,spacing:u}=this.options,f=(i+s)/2,h=(l+c+u+d)/2;return{x:r+Math.cos(f)*h,y:n+Math.sin(f)*h}}tooltipPosition(o){return this.getCenterPoint(o)}draw(o){const{options:r,circumference:n}=this,i=(r.offset||0)/4,s=(r.spacing||0)/2,l=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=n>Se?Math.floor(n/Se):0,n===0||this.innerRadius<0||this.outerRadius<0)return;o.save();const c=(this.startAngle+this.endAngle)/2;o.translate(Math.cos(c)*i,Math.sin(c)*i);const d=1-Math.sin(Math.min(_e,n||0)),u=i*d;o.fillStyle=r.backgroundColor,o.strokeStyle=r.borderColor,EB(o,this,u,s,l),RB(o,this,u,s,l),o.restore()}}H(Jo,"id","arc"),H(Jo,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),H(Jo,"defaultRoutes",{backgroundColor:"backgroundColor"}),H(Jo,"descriptors",{_scriptable:!0,_indexable:o=>o!=="borderDash"});function Fu(t,e,o=e){t.lineCap=se(o.borderCapStyle,e.borderCapStyle),t.setLineDash(se(o.borderDash,e.borderDash)),t.lineDashOffset=se(o.borderDashOffset,e.borderDashOffset),t.lineJoin=se(o.borderJoinStyle,e.borderJoinStyle),t.lineWidth=se(o.borderWidth,e.borderWidth),t.strokeStyle=se(o.borderColor,e.borderColor)}function OB(t,e,o){t.lineTo(o.x,o.y)}function DB(t){return t.stepped?a5:t.tension||t.cubicInterpolationMode==="monotone"?s5:OB}function Vu(t,e,o={}){const r=t.length,{start:n=0,end:i=r-1}=o,{start:s,end:l}=e,c=Math.max(n,s),d=Math.min(i,l),u=n<s&&i<s||n>l&&i>l;return{count:r,start:c,loop:e.loop,ilen:d<c&&!u?r+d-c:d-c}}function NB(t,e,o,r){const{points:n,options:i}=e,{count:s,start:l,loop:c,ilen:d}=Vu(n,o,r),u=DB(i);let{move:f=!0,reverse:h}=r||{},g,m,p;for(g=0;g<=d;++g)m=n[(l+(h?d-g:g))%s],!m.skip&&(f?(t.moveTo(m.x,m.y),f=!1):u(t,p,m,h,i.stepped),p=m);return c&&(m=n[(l+(h?d:0))%s],u(t,p,m,h,i.stepped)),!!c}function TB(t,e,o,r){const n=e.points,{count:i,start:s,ilen:l}=Vu(n,o,r),{move:c=!0,reverse:d}=r||{};let u=0,f=0,h,g,m,p,b,y;const x=B=>(s+(d?l-B:B))%i,C=()=>{p!==b&&(t.lineTo(u,b),t.lineTo(u,p),t.lineTo(u,y))};for(c&&(g=n[x(0)],t.moveTo(g.x,g.y)),h=0;h<=l;++h){if(g=n[x(h)],g.skip)continue;const B=g.x,w=g.y,_=B|0;_===m?(w<p?p=w:w>b&&(b=w),u=(f*u+B)/++f):(C(),t.lineTo(B,w),m=_,f=0,p=b=w),y=w}C()}function Ua(t){const e=t.options,o=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!o?TB:NB}function PB(t){return t.stepped?I5:t.tension||t.cubicInterpolationMode==="monotone"?L5:No}function $B(t,e,o,r){let n=e._path;n||(n=e._path=new Path2D,e.path(n,o,r)&&n.closePath()),Fu(t,e.options),t.stroke(n)}function AB(t,e,o,r){const{segments:n,options:i}=e,s=Ua(e);for(const l of n)Fu(t,i,l.style),t.beginPath(),s(t,e,l,{start:o,end:o+r-1})&&t.closePath(),t.stroke()}const MB=typeof Path2D=="function";function FB(t,e,o,r){MB&&!e.options.segment?$B(t,e,o,r):AB(t,e,o,r)}class qt extends Dt{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,o){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const n=r.spanGaps?this._loop:this._fullLoop;N5(this._points,r,e,n,o),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=q5(this,this.options.segment))}first(){const e=this.segments,o=this.points;return e.length&&o[e[0].start]}last(){const e=this.segments,o=this.points,r=e.length;return r&&o[e[r-1].end]}interpolate(e,o){const r=this.options,n=e[o],i=this.points,s=Wd(this,{property:o,start:n,end:n});if(!s.length)return;const l=[],c=PB(r);let d,u;for(d=0,u=s.length;d<u;++d){const{start:f,end:h}=s[d],g=i[f],m=i[h];if(g===m){l.push(g);continue}const p=Math.abs((n-g[o])/(m[o]-g[o])),b=c(g,m,p,r.stepped);b[o]=e[o],l.push(b)}return l.length===1?l[0]:l}pathSegment(e,o,r){return Ua(this)(e,this,o,r)}path(e,o,r){const n=this.segments,i=Ua(this);let s=this._loop;o=o||0,r=r||this.points.length-o;for(const l of n)s&=i(e,this,l,{start:o,end:o+r-1});return!!s}draw(e,o,r,n){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),FB(e,this,r,n),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}H(qt,"id","line"),H(qt,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),H(qt,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),H(qt,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function Iu(t,e,o,r){const n=t.options,{[o]:i}=t.getProps([o],r);return Math.abs(e-i)<n.radius+n.hitRadius}class on extends Dt{constructor(o){super();H(this,"parsed");H(this,"skip");H(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,o&&Object.assign(this,o)}inRange(o,r,n){const i=this.options,{x:s,y:l}=this.getProps(["x","y"],n);return Math.pow(o-s,2)+Math.pow(r-l,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(o,r){return Iu(this,o,"x",r)}inYRange(o,r){return Iu(this,o,"y",r)}getCenterPoint(o){const{x:r,y:n}=this.getProps(["x","y"],o);return{x:r,y:n}}size(o){o=o||this.options||{};let r=o.radius||0;r=Math.max(r,r&&o.hoverRadius||0);const n=r&&o.borderWidth||0;return(r+n)*2}draw(o,r){const n=this.options;this.skip||n.radius<.1||!Ut(this,r,this.size(n)/2)||(o.strokeStyle=n.borderColor,o.lineWidth=n.borderWidth,o.fillStyle=n.backgroundColor,Ba(o,n,this.x,this.y))}getRange(){const o=this.options||{};return o.radius+o.hitRadius}}H(on,"id","point"),H(on,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),H(on,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Lu(t,e){const{x:o,y:r,base:n,width:i,height:s}=t.getProps(["x","y","base","width","height"],e);let l,c,d,u,f;return t.horizontal?(f=s/2,l=Math.min(o,n),c=Math.max(o,n),d=r-f,u=r+f):(f=i/2,l=o-f,c=o+f,d=Math.min(r,n),u=Math.max(r,n)),{left:l,top:d,right:c,bottom:u}}function ho(t,e,o,r){return t?0:je(e,o,r)}function VB(t,e,o){const r=t.options.borderWidth,n=t.borderSkipped,i=Ed(r);return{t:ho(n.top,i.top,0,o),r:ho(n.right,i.right,0,e),b:ho(n.bottom,i.bottom,0,o),l:ho(n.left,i.left,0,e)}}function IB(t,e,o){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,i=Ro(n),s=Math.min(e,o),l=t.borderSkipped,c=r||de(n);return{topLeft:ho(!c||l.top||l.left,i.topLeft,0,s),topRight:ho(!c||l.top||l.right,i.topRight,0,s),bottomLeft:ho(!c||l.bottom||l.left,i.bottomLeft,0,s),bottomRight:ho(!c||l.bottom||l.right,i.bottomRight,0,s)}}function LB(t){const e=Lu(t),o=e.right-e.left,r=e.bottom-e.top,n=VB(t,o/2,r/2),i=IB(t,o/2,r/2);return{outer:{x:e.left,y:e.top,w:o,h:r,radius:i},inner:{x:e.left+n.l,y:e.top+n.t,w:o-n.l-n.r,h:r-n.t-n.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,i.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(n.b,n.r))}}}}function qa(t,e,o,r){const n=e===null,i=o===null,l=t&&!(n&&i)&&Lu(t,r);return l&&(n||Wt(e,l.left,l.right))&&(i||Wt(o,l.top,l.bottom))}function zB(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function jB(t,e){t.rect(e.x,e.y,e.w,e.h)}function Ya(t,e,o={}){const r=t.x!==o.x?-e:0,n=t.y!==o.y?-e:0,i=(t.x+t.w!==o.x+o.w?e:0)-r,s=(t.y+t.h!==o.y+o.h?e:0)-n;return{x:t.x+r,y:t.y+n,w:t.w+i,h:t.h+s,radius:t.radius}}class rn extends Dt{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:o,options:{borderColor:r,backgroundColor:n}}=this,{inner:i,outer:s}=LB(this),l=zB(s.radius)?zr:jB;e.save(),(s.w!==i.w||s.h!==i.h)&&(e.beginPath(),l(e,Ya(s,o,i)),e.clip(),l(e,Ya(i,-o,s)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),l(e,Ya(i,o)),e.fillStyle=n,e.fill(),e.restore()}inRange(e,o,r){return qa(this,e,o,r)}inXRange(e,o){return qa(this,e,null,o)}inYRange(e,o){return qa(this,null,e,o)}getCenterPoint(e){const{x:o,y:r,base:n,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(o+n)/2:o,y:i?r:(r+n)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}H(rn,"id","bar"),H(rn,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),H(rn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var zu=Object.freeze({__proto__:null,ArcElement:Jo,BarElement:rn,LineElement:qt,PointElement:on});const Xa=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],ju=Xa.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function Wu(t){return Xa[t%Xa.length]}function Hu(t){return ju[t%ju.length]}function WB(t,e){return t.borderColor=Wu(e),t.backgroundColor=Hu(e),++e}function HB(t,e){return t.backgroundColor=t.data.map(()=>Wu(e++)),e}function UB(t,e){return t.backgroundColor=t.data.map(()=>Hu(e++)),e}function qB(t){let e=0;return(o,r)=>{const n=t.getDatasetMeta(r).controller;n instanceof uo?e=HB(o,e):n instanceof Go?e=UB(o,e):n&&(e=WB(o,e))}}function Uu(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function YB(t){return t&&(t.borderColor||t.backgroundColor)}function XB(){return Be.borderColor!=="rgba(0,0,0,0.1)"||Be.backgroundColor!=="rgba(0,0,0,0.1)"}var qu={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,o){if(!o.enabled)return;const{data:{datasets:r},options:n}=t.config,{elements:i}=n,s=Uu(r)||YB(n)||i&&Uu(i)||XB();if(!o.forceOverride&&s)return;const l=qB(t);r.forEach(l)}};function KB(t,e,o,r,n){const i=n.samples||r;if(i>=o)return t.slice(e,e+o);const s=[],l=(o-2)/(i-2);let c=0;const d=e+o-1;let u=e,f,h,g,m,p;for(s[c++]=t[u],f=0;f<i-2;f++){let b=0,y=0,x;const C=Math.floor((f+1)*l)+1+e,B=Math.min(Math.floor((f+2)*l)+1,o)+e,w=B-C;for(x=C;x<B;x++)b+=t[x].x,y+=t[x].y;b/=w,y/=w;const _=Math.floor(f*l)+1+e,v=Math.min(Math.floor((f+1)*l)+1,o)+e,{x:k,y:S}=t[u];for(g=m=-1,x=_;x<v;x++)m=.5*Math.abs((k-b)*(t[x].y-S)-(k-t[x].x)*(y-S)),m>g&&(g=m,h=t[x],p=x);s[c++]=h,u=p}return s[c++]=t[d],s}function GB(t,e,o,r){let n=0,i=0,s,l,c,d,u,f,h,g,m,p;const b=[],y=e+o-1,x=t[e].x,B=t[y].x-x;for(s=e;s<e+o;++s){l=t[s],c=(l.x-x)/B*r,d=l.y;const w=c|0;if(w===u)d<m?(m=d,f=s):d>p&&(p=d,h=s),n=(i*n+l.x)/++i;else{const _=s-1;if(!fe(f)&&!fe(h)){const v=Math.min(f,h),k=Math.max(f,h);v!==g&&v!==_&&b.push({...t[v],x:n}),k!==g&&k!==_&&b.push({...t[k],x:n})}s>0&&_!==g&&b.push(t[_]),b.push(l),u=w,i=0,m=p=d,f=h=g=s}}return b}function Yu(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Xu(t){t.data.datasets.forEach(e=>{Yu(e)})}function QB(t,e){const o=e.length;let r=0,n;const{iScale:i}=t,{min:s,max:l,minDefined:c,maxDefined:d}=i.getUserBounds();return c&&(r=je(Ht(e,i.axis,s).lo,0,o-1)),d?n=je(Ht(e,i.axis,l).hi+1,r,o)-r:n=o-r,{start:r,count:n}}var Ku={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,o)=>{if(!o.enabled){Xu(t);return}const r=t.width;t.data.datasets.forEach((n,i)=>{const{_data:s,indexAxis:l}=n,c=t.getDatasetMeta(i),d=s||n.data;if(jr([l,t.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;const u=t.scales[c.xAxisID];if(u.type!=="linear"&&u.type!=="time"||t.options.parsing)return;let{start:f,count:h}=QB(c,d);const g=o.threshold||4*r;if(h<=g){Yu(n);return}fe(s)&&(n._data=d,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(p){this._data=p}}));let m;switch(o.algorithm){case"lttb":m=KB(d,f,h,r,o);break;case"min-max":m=GB(d,f,h,r);break;default:throw new Error(`Unsupported decimation algorithm '${o.algorithm}'`)}n._decimated=m})},destroy(t){Xu(t)}};function JB(t,e,o){const r=t.segments,n=t.points,i=e.points,s=[];for(const l of r){let{start:c,end:d}=l;d=Ga(c,d,n);const u=Ka(o,n[c],n[d],l.loop);if(!e.segments){s.push({source:l,target:u,start:n[c],end:n[d]});continue}const f=Wd(e,u);for(const h of f){const g=Ka(o,i[h.start],i[h.end],h.loop),m=jd(l,n,g);for(const p of m)s.push({source:p,target:h,start:{[o]:Gu(u,g,"start",Math.max)},end:{[o]:Gu(u,g,"end",Math.min)}})}}return s}function Ka(t,e,o,r){if(r)return;let n=e[t],i=o[t];return t==="angle"&&(n=st(n),i=st(i)),{property:t,start:n,end:i}}function ZB(t,e){const{x:o=null,y:r=null}=t||{},n=e.points,i=[];return e.segments.forEach(({start:s,end:l})=>{l=Ga(s,l,n);const c=n[s],d=n[l];r!==null?(i.push({x:c.x,y:r}),i.push({x:d.x,y:r})):o!==null&&(i.push({x:o,y:c.y}),i.push({x:o,y:d.y}))}),i}function Ga(t,e,o){for(;e>t;e--){const r=o[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function Gu(t,e,o,r){return t&&e?r(t[o],e[o]):t?t[o]:e?e[o]:0}function Qu(t,e){let o=[],r=!1;return Oe(t)?(r=!0,o=t):o=ZB(t,e),o.length?new qt({points:o,options:{tension:0},_loop:r,_fullLoop:r}):null}function Ju(t){return t&&t.fill!==!1}function e2(t,e,o){let n=t[e].fill;const i=[e];let s;if(!o)return n;for(;n!==!1&&i.indexOf(n)===-1;){if(!Ae(n))return n;if(s=t[n],!s)return!1;if(s.visible)return n;i.push(n),n=s.fill}return!1}function t2(t,e,o){const r=i2(t);if(de(r))return isNaN(r.value)?!1:r;let n=parseFloat(r);return Ae(n)&&Math.floor(n)===n?o2(r[0],e,n,o):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function o2(t,e,o,r){return(t==="-"||t==="+")&&(o=e+o),o===e||o<0||o>=r?!1:o}function r2(t,e){let o=null;return t==="start"?o=e.bottom:t==="end"?o=e.top:de(t)?o=e.getPixelForValue(t.value):e.getBasePixel&&(o=e.getBasePixel()),o}function n2(t,e,o){let r;return t==="start"?r=o:t==="end"?r=e.options.reverse?e.min:e.max:de(t)?r=t.value:r=e.getBaseValue(),r}function i2(t){const e=t.options,o=e.fill;let r=se(o&&o.target,o);return r===void 0&&(r=!!e.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function a2(t){const{scale:e,index:o,line:r}=t,n=[],i=r.segments,s=r.points,l=s2(e,o);l.push(Qu({x:null,y:e.bottom},r));for(let c=0;c<i.length;c++){const d=i[c];for(let u=d.start;u<=d.end;u++)l2(n,s[u],l)}return new qt({points:n,options:{}})}function s2(t,e){const o=[],r=t.getMatchingVisibleMetas("line");for(let n=0;n<r.length;n++){const i=r[n];if(i.index===e)break;i.hidden||o.unshift(i.dataset)}return o}function l2(t,e,o){const r=[];for(let n=0;n<o.length;n++){const i=o[n],{first:s,last:l,point:c}=c2(i,e,"x");if(!(!c||s&&l)){if(s)r.unshift(c);else if(t.push(c),!l)break}}t.push(...r)}function c2(t,e,o){const r=t.interpolate(e,o);if(!r)return{};const n=r[o],i=t.segments,s=t.points;let l=!1,c=!1;for(let d=0;d<i.length;d++){const u=i[d],f=s[u.start][o],h=s[u.end][o];if(Wt(n,f,h)){l=n===f,c=n===h;break}}return{first:l,last:c,point:r}}class Zu{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,o,r){const{x:n,y:i,radius:s}=this;return o=o||{start:0,end:Se},e.arc(n,i,s,o.end,o.start,!0),!r.bounds}interpolate(e){const{x:o,y:r,radius:n}=this,i=e.angle;return{x:o+Math.cos(i)*n,y:r+Math.sin(i)*n,angle:i}}}function d2(t){const{chart:e,fill:o,line:r}=t;if(Ae(o))return u2(e,o);if(o==="stack")return a2(t);if(o==="shape")return!0;const n=f2(t);return n instanceof Zu?n:Qu(n,r)}function u2(t,e){const o=t.getDatasetMeta(e);return o&&t.isDatasetVisible(e)?o.dataset:null}function f2(t){return(t.scale||{}).getPointPositionForValue?g2(t):h2(t)}function h2(t){const{scale:e={},fill:o}=t,r=r2(o,e);if(Ae(r)){const n=e.isHorizontal();return{x:n?r:null,y:n?null:r}}return null}function g2(t){const{scale:e,fill:o}=t,r=e.options,n=e.getLabels().length,i=r.reverse?e.max:e.min,s=n2(o,e,i),l=[];if(r.grid.circular){const c=e.getPointPositionForValue(0,i);return new Zu({x:c.x,y:c.y,radius:e.getDistanceFromCenterForValue(s)})}for(let c=0;c<n;++c)l.push(e.getPointPositionForValue(c,s));return l}function Qa(t,e,o){const r=d2(e),{line:n,scale:i,axis:s}=e,l=n.options,c=l.fill,d=l.backgroundColor,{above:u=d,below:f=d}=c||{};r&&n.points.length&&(Kn(t,o),m2(t,{line:n,target:r,above:u,below:f,area:o,scale:i,axis:s}),Gn(t))}function m2(t,e){const{line:o,target:r,above:n,below:i,area:s,scale:l}=e,c=o._loop?"angle":e.axis;t.save(),c==="x"&&i!==n&&(ef(t,r,s.top),tf(t,{line:o,target:r,color:n,scale:l,property:c}),t.restore(),t.save(),ef(t,r,s.bottom)),tf(t,{line:o,target:r,color:i,scale:l,property:c}),t.restore()}function ef(t,e,o){const{segments:r,points:n}=e;let i=!0,s=!1;t.beginPath();for(const l of r){const{start:c,end:d}=l,u=n[c],f=n[Ga(c,d,n)];i?(t.moveTo(u.x,u.y),i=!1):(t.lineTo(u.x,o),t.lineTo(u.x,u.y)),s=!!e.pathSegment(t,l,{move:s}),s?t.closePath():t.lineTo(f.x,o)}t.lineTo(e.first().x,o),t.closePath(),t.clip()}function tf(t,e){const{line:o,target:r,property:n,color:i,scale:s}=e,l=JB(o,r,n);for(const{source:c,target:d,start:u,end:f}of l){const{style:{backgroundColor:h=i}={}}=c,g=r!==!0;t.save(),t.fillStyle=h,p2(t,s,g&&Ka(n,u,f)),t.beginPath();const m=!!o.pathSegment(t,c);let p;if(g){m?t.closePath():of(t,r,f,n);const b=!!r.pathSegment(t,d,{move:m,reverse:!0});p=m&&b,p||of(t,r,u,n)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function p2(t,e,o){const{top:r,bottom:n}=e.chart.chartArea,{property:i,start:s,end:l}=o||{};i==="x"&&(t.beginPath(),t.rect(s,r,l-s,n-r),t.clip())}function of(t,e,o,r){const n=e.interpolate(o,r);n&&t.lineTo(n.x,n.y)}var rf={id:"filler",afterDatasetsUpdate(t,e,o){const r=(t.data.datasets||[]).length,n=[];let i,s,l,c;for(s=0;s<r;++s)i=t.getDatasetMeta(s),l=i.dataset,c=null,l&&l.options&&l instanceof qt&&(c={visible:t.isDatasetVisible(s),index:s,fill:t2(l,s,r),chart:t,axis:i.controller.options.indexAxis,scale:i.vScale,line:l}),i.$filler=c,n.push(c);for(s=0;s<r;++s)c=n[s],!(!c||c.fill===!1)&&(c.fill=e2(n,s,o.propagate))},beforeDraw(t,e,o){const r=o.drawTime==="beforeDraw",n=t.getSortedVisibleDatasetMetas(),i=t.chartArea;for(let s=n.length-1;s>=0;--s){const l=n[s].$filler;l&&(l.line.updateControlPoints(i,l.axis),r&&l.fill&&Qa(t.ctx,l,i))}},beforeDatasetsDraw(t,e,o){if(o.drawTime!=="beforeDatasetsDraw")return;const r=t.getSortedVisibleDatasetMetas();for(let n=r.length-1;n>=0;--n){const i=r[n].$filler;Ju(i)&&Qa(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,o){const r=e.meta.$filler;!Ju(r)||o.drawTime!=="beforeDatasetDraw"||Qa(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const nf=(t,e)=>{let{boxHeight:o=e,boxWidth:r=e}=t;return t.usePointStyle&&(o=Math.min(o,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:o,itemHeight:Math.max(e,o)}},b2=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class af extends Dt{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,o,r){this.maxWidth=e,this.maxHeight=o,this._margins=r,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 o=ve(e.generateLabels,[this.chart],this)||[];e.filter&&(o=o.filter(r=>e.filter(r,this.chart.data))),e.sort&&(o=o.sort((r,n)=>e.sort(r,n,this.chart.data))),this.options.reverse&&o.reverse(),this.legendItems=o}fit(){const{options:e,ctx:o}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,n=Le(r.font),i=n.size,s=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=nf(r,i);let d,u;o.font=n.string,this.isHorizontal()?(d=this.maxWidth,u=this._fitRows(s,i,l,c)+10):(u=this.maxHeight,d=this._fitCols(s,n,l,c)+10),this.width=Math.min(d,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,o,r,n){const{ctx:i,maxWidth:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.lineWidths=[0],u=n+l;let f=e;i.textAlign="left",i.textBaseline="middle";let h=-1,g=-u;return this.legendItems.forEach((m,p)=>{const b=r+o/2+i.measureText(m.text).width;(p===0||d[d.length-1]+b+2*l>s)&&(f+=u,d[d.length-(p>0?0:1)]=0,g+=u,h++),c[p]={left:0,top:g,row:h,width:b,height:n},d[d.length-1]+=b+l}),f}_fitCols(e,o,r,n){const{ctx:i,maxHeight:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.columnSizes=[],u=s-e;let f=l,h=0,g=0,m=0,p=0;return this.legendItems.forEach((b,y)=>{const{itemWidth:x,itemHeight:C}=y2(r,o,i,b,n);y>0&&g+C+2*l>u&&(f+=h+l,d.push({width:h,height:g}),m+=h+l,p++,h=g=0),c[y]={left:m,top:g,col:p,width:x,height:C},h=Math.max(h,x),g+=C+l}),f+=h,d.push({width:h,height:g}),f}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:o,options:{align:r,labels:{padding:n},rtl:i}}=this,s=Ko(i,this.left,this.width);if(this.isHorizontal()){let l=0,c=qe(r,this.left+n,this.right-this.lineWidths[l]);for(const d of o)l!==d.row&&(l=d.row,c=qe(r,this.left+n,this.right-this.lineWidths[l])),d.top+=this.top+e+n,d.left=s.leftForLtr(s.x(c),d.width),c+=d.width+n}else{let l=0,c=qe(r,this.top+e+n,this.bottom-this.columnSizes[l].height);for(const d of o)d.col!==l&&(l=d.col,c=qe(r,this.top+e+n,this.bottom-this.columnSizes[l].height)),d.top=c,d.left+=this.left+n,d.left=s.leftForLtr(s.x(d.left),d.width),c+=d.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Kn(e,this),this._draw(),Gn(e)}}_draw(){const{options:e,columnSizes:o,lineWidths:r,ctx:n}=this,{align:i,labels:s}=e,l=Be.color,c=Ko(e.rtl,this.left,this.width),d=Le(s.font),{padding:u}=s,f=d.size,h=f/2;let g;this.drawTitle(),n.textAlign=c.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=d.string;const{boxWidth:m,boxHeight:p,itemHeight:b}=nf(s,f),y=function(_,v,k){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;n.save();const S=se(k.lineWidth,1);if(n.fillStyle=se(k.fillStyle,l),n.lineCap=se(k.lineCap,"butt"),n.lineDashOffset=se(k.lineDashOffset,0),n.lineJoin=se(k.lineJoin,"miter"),n.lineWidth=S,n.strokeStyle=se(k.strokeStyle,l),n.setLineDash(se(k.lineDash,[])),s.usePointStyle){const N={radius:p*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:S},E=c.xPlus(_,m/2),D=v+h;Bd(n,N,E,D,s.pointStyleWidth&&m)}else{const N=v+Math.max((f-p)/2,0),E=c.leftForLtr(_,m),D=Ro(k.borderRadius);n.beginPath(),Object.values(D).some(M=>M!==0)?zr(n,{x:E,y:N,w:m,h:p,radius:D}):n.rect(E,N,m,p),n.fill(),S!==0&&n.stroke()}n.restore()},x=function(_,v,k){Eo(n,k.text,_,v+b/2,d,{strikethrough:k.hidden,textAlign:c.textAlign(k.textAlign)})},C=this.isHorizontal(),B=this._computeTitleHeight();C?g={x:qe(i,this.left+u,this.right-r[0]),y:this.top+u+B,line:0}:g={x:this.left+u,y:qe(i,this.top+B+u,this.bottom-o[0].height),line:0},Vd(this.ctx,e.textDirection);const w=b+u;this.legendItems.forEach((_,v)=>{n.strokeStyle=_.fontColor,n.fillStyle=_.fontColor;const k=n.measureText(_.text).width,S=c.textAlign(_.textAlign||(_.textAlign=s.textAlign)),N=m+h+k;let E=g.x,D=g.y;c.setWidth(this.width),C?v>0&&E+N+u>this.right&&(D=g.y+=w,g.line++,E=g.x=qe(i,this.left+u,this.right-r[g.line])):v>0&&D+w>this.bottom&&(E=g.x=E+o[g.line].width+u,g.line++,D=g.y=qe(i,this.top+B+u,this.bottom-o[g.line].height));const M=c.x(E);if(y(M,D,_),E=K_(S,E+m+h,C?E+N:this.right,e.rtl),x(c.x(E),D,_),C)g.x+=N+u;else if(typeof _.text!="string"){const T=d.lineHeight;g.y+=sf(_,T)+u}else g.y+=w}),Id(this.ctx,e.textDirection)}drawTitle(){const e=this.options,o=e.title,r=Le(o.font),n=Ye(o.padding);if(!o.display)return;const i=Ko(e.rtl,this.left,this.width),s=this.ctx,l=o.position,c=r.size/2,d=n.top+c;let u,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+d,f=qe(e.align,f,this.right-h);else{const m=this.columnSizes.reduce((p,b)=>Math.max(p,b.height),0);u=d+qe(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const g=qe(l,f,f+h);s.textAlign=i.textAlign(va(l)),s.textBaseline="middle",s.strokeStyle=o.color,s.fillStyle=o.color,s.font=r.string,Eo(s,o.text,g,u,r)}_computeTitleHeight(){const e=this.options.title,o=Le(e.font),r=Ye(e.padding);return e.display?o.lineHeight+r.height:0}_getLegendItemAt(e,o){let r,n,i;if(Wt(e,this.left,this.right)&&Wt(o,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(n=i[r],Wt(e,n.left,n.left+n.width)&&Wt(o,n.top,n.top+n.height))return this.legendItems[r]}return null}handleEvent(e){const o=this.options;if(!v2(e.type,o))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const n=this._hoveredItem,i=b2(n,r);n&&!i&&ve(o.onLeave,[e,n,this],this),this._hoveredItem=r,r&&!i&&ve(o.onHover,[e,r,this],this)}else r&&ve(o.onClick,[e,r,this],this)}}function y2(t,e,o,r,n){const i=k2(r,t,e,o),s=x2(n,r,e.lineHeight);return{itemWidth:i,itemHeight:s}}function k2(t,e,o,r){let n=t.text;return n&&typeof n!="string"&&(n=n.reduce((i,s)=>i.length>s.length?i:s)),e+o.size/2+r.measureText(n).width}function x2(t,e,o){let r=t;return typeof e.text!="string"&&(r=sf(e,o)),r}function sf(t,e){const o=t.text?t.text.length:0;return e*o}function v2(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var lf={id:"legend",_element:af,start(t,e,o){const r=t.legend=new af({ctx:t.ctx,options:o,chart:t});We.configure(t,r,o),We.addBox(t,r)},stop(t){We.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,o){const r=t.legend;We.configure(t,r,o),r.options=o},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,o){const r=e.datasetIndex,n=o.chart;n.isDatasetVisible(r)?(n.hide(r),e.hidden=!0):(n.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:o,pointStyle:r,textAlign:n,color:i,useBorderRadius:s,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map(c=>{const d=c.controller.getStyle(o?0:void 0),u=Ye(d.borderWidth);return{text:e[c.index].label,fillStyle:d.backgroundColor,fontColor:i,hidden:!c.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:d.borderColor,pointStyle:r||d.pointStyle,rotation:d.rotation,textAlign:n||d.textAlign,borderRadius:s&&(l||d.borderRadius),datasetIndex:c.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Ja extends Dt{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,o){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=o;const n=Oe(r.text)?r.text.length:1;this._padding=Ye(r.padding);const i=n*Le(r.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:o,left:r,bottom:n,right:i,options:s}=this,l=s.align;let c=0,d,u,f;return this.isHorizontal()?(u=qe(l,r,i),f=o+e,d=i-r):(s.position==="left"?(u=r+e,f=qe(l,n,o),c=_e*-.5):(u=i-e,f=qe(l,o,n),c=_e*.5),d=n-o),{titleX:u,titleY:f,maxWidth:d,rotation:c}}draw(){const e=this.ctx,o=this.options;if(!o.display)return;const r=Le(o.font),i=r.lineHeight/2+this._padding.top,{titleX:s,titleY:l,maxWidth:c,rotation:d}=this._drawArgs(i);Eo(e,o.text,0,0,r,{color:o.color,maxWidth:c,rotation:d,textAlign:va(o.align),textBaseline:"middle",translation:[s,l]})}}function w2(t,e){const o=new Ja({ctx:t.ctx,options:e,chart:t});We.configure(t,o,e),We.addBox(t,o),t.titleBlock=o}var cf={id:"title",_element:Ja,start(t,e,o){w2(t,o)},stop(t){const e=t.titleBlock;We.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,o){const r=t.titleBlock;We.configure(t,r,o),r.options=o},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 ui=new WeakMap;var df={id:"subtitle",start(t,e,o){const r=new Ja({ctx:t.ctx,options:o,chart:t});We.configure(t,r,o),We.addBox(t,r),ui.set(t,r)},stop(t){We.removeBox(t,ui.get(t)),ui.delete(t)},beforeUpdate(t,e,o){const r=ui.get(t);We.configure(t,r,o),r.options=o},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const nn={average(t){if(!t.length)return!1;let e,o,r=new Set,n=0,i=0;for(e=0,o=t.length;e<o;++e){const l=t[e].element;if(l&&l.hasValue()){const c=l.tooltipPosition();r.add(c.x),n+=c.y,++i}}return i===0||r.size===0?!1:{x:[...r].reduce((l,c)=>l+c)/r.size,y:n/i}},nearest(t,e){if(!t.length)return!1;let o=e.x,r=e.y,n=Number.POSITIVE_INFINITY,i,s,l;for(i=0,s=t.length;i<s;++i){const c=t[i].element;if(c&&c.hasValue()){const d=c.getCenterPoint(),u=ka(e,d);u<n&&(n=u,l=c)}}if(l){const c=l.tooltipPosition();o=c.x,r=c.y}return{x:o,y:r}}};function Tt(t,e){return e&&(Oe(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Yt(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
|
187
|
+
*/class T5{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,o,r,n){const i=o.listeners[n],a=o.duration;i.forEach(l=>l({chart:e,initial:o.initial,numSteps:a,currentStep:Math.min(r-o.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=bd.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let o=0;this._charts.forEach((r,n)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,l=!1,c;for(;a>=0;--a)c=i[a],c._active?(c._total>r.duration&&(r.duration=c._total),c.tick(e),l=!0):(i[a]=i[i.length-1],i.pop());l&&(n.draw(),this._notify(n,r,e,"progress")),i.length||(r.running=!1,this._notify(n,r,e,"complete"),r.initial=!1),o+=i.length}),this._lastDate=e,o===0&&(this._running=!1)}_getAnims(e){const o=this._charts;let r=o.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},o.set(e,r)),r}listen(e,o,r){this._getAnims(e).listeners[o].push(r)}add(e,o){!o||!o.length||this._getAnims(e).items.push(...o)}has(e){return this._getAnims(e).items.length>0}start(e){const o=this._charts.get(e);o&&(o.running=!0,o.start=Date.now(),o.duration=o.items.reduce((r,n)=>Math.max(r,n._duration),0),this._refresh())}running(e){if(!this._running)return!1;const o=this._charts.get(e);return!(!o||!o.running||!o.items.length)}stop(e){const o=this._charts.get(e);if(!o||!o.items.length)return;const r=o.items;let n=r.length-1;for(;n>=0;--n)r[n].cancel();o.items=[],this._notify(e,o,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Ot=new T5;const Yd="transparent",P5={boolean(t,e,o){return o>.5?e:t},color(t,e,o){const r=Cd(t||Yd),n=r.valid&&Cd(e||Yd);return n&&n.valid?n.mix(r,o).hexString():e},number(t,e,o){return t+(e-t)*o}};class Xd{constructor(e,o,r,n){const i=o[r];n=jr([e.to,n,i,e.from]);const a=jr([e.from,i,n]);this._active=!0,this._fn=e.fn||P5[e.type||typeof a],this._easing=Fr[e.easing]||Fr.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=o,this._prop=r,this._from=a,this._to=n,this._promises=void 0}active(){return this._active}update(e,o,r){if(this._active){this._notify(!1);const n=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=jr([e.to,o,n,e.from]),this._from=jr([e.from,n,o])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const o=e-this._start,r=this._duration,n=this._prop,i=this._from,a=this._loop,l=this._to;let c;if(this._active=i!==l&&(a||o<r),!this._active){this._target[n]=l,this._notify(!0);return}if(o<0){this._target[n]=i;return}c=o/r%2,c=a&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[n]=this._fn(i,l,c)}wait(){const e=this._promises||(this._promises=[]);return new Promise((o,r)=>{e.push({res:o,rej:r})})}_notify(e){const o=e?"res":"rej",r=this._promises||[];for(let n=0;n<r.length;n++)r[n][o]()}}class Pa{constructor(e,o){this._chart=e,this._properties=new Map,this.configure(o)}configure(e){if(!de(e))return;const o=Object.keys(Be.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(n=>{const i=e[n];if(!de(i))return;const a={};for(const l of o)a[l]=i[l];(Oe(i.properties)&&i.properties||[n]).forEach(l=>{(l===n||!r.has(l))&&r.set(l,a)})})}_animateOptions(e,o){const r=o.options,n=$5(e,r);if(!n)return[];const i=this._createAnimations(n,r);return r.$shared&&A5(e.options.$animations,r).then(()=>{e.options=r},()=>{}),i}_createAnimations(e,o){const r=this._properties,n=[],i=e.$animations||(e.$animations={}),a=Object.keys(o),l=Date.now();let c;for(c=a.length-1;c>=0;--c){const d=a[c];if(d.charAt(0)==="$")continue;if(d==="options"){n.push(...this._animateOptions(e,o));continue}const u=o[d];let f=i[d];const h=r.get(d);if(f)if(h&&f.active()){f.update(h,u,l);continue}else f.cancel();if(!h||!h.duration){e[d]=u;continue}i[d]=f=new Xd(h,e,d,u),n.push(f)}return n}update(e,o){if(this._properties.size===0){Object.assign(e,o);return}const r=this._createAnimations(e,o);if(r.length)return Ot.add(this._chart,r),!0}}function A5(t,e){const o=[],r=Object.keys(e);for(let n=0;n<r.length;n++){const i=t[r[n]];i&&i.active()&&o.push(i.wait())}return Promise.all(o)}function $5(t,e){if(!e)return;let o=t.options;if(!o){t.options=e;return}return o.$shared&&(t.options=o=Object.assign({},o,{$shared:!1,$animations:{}})),o}function Kd(t,e){const o=t&&t.options||{},r=o.reverse,n=o.min===void 0?e:0,i=o.max===void 0?e:0;return{start:r?i:n,end:r?n:i}}function M5(t,e,o){if(o===!1)return!1;const r=Kd(t,o),n=Kd(e,o);return{top:n.end,right:r.end,bottom:n.start,left:r.start}}function F5(t){let e,o,r,n;return de(t)?(e=t.top,o=t.right,r=t.bottom,n=t.left):e=o=r=n=t,{top:e,right:o,bottom:r,left:n,disabled:t===!1}}function Gd(t,e){const o=[],r=t._getSortedDatasetMetas(e);let n,i;for(n=0,i=r.length;n<i;++n)o.push(r[n].index);return o}function Qd(t,e,o,r={}){const n=t.keys,i=r.mode==="single";let a,l,c,d;if(e===null)return;let u=!1;for(a=0,l=n.length;a<l;++a){if(c=+n[a],c===o){if(u=!0,r.all)continue;break}d=t.values[c],Pe(d)&&(i||e===0||Rt(e)===Rt(d))&&(e+=d)}return!u&&!r.all?0:e}function V5(t,e){const{iScale:o,vScale:r}=e,n=o.axis==="x"?"x":"y",i=r.axis==="x"?"x":"y",a=Object.keys(t),l=new Array(a.length);let c,d,u;for(c=0,d=a.length;c<d;++c)u=a[c],l[c]={[n]:u,[i]:t[u]};return l}function Aa(t,e){const o=t&&t.options.stacked;return o||o===void 0&&e.stack!==void 0}function L5(t,e,o){return`${t.id}.${e.id}.${o.stack||o.type}`}function I5(t){const{min:e,max:o,minDefined:r,maxDefined:n}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:n?o:Number.POSITIVE_INFINITY}}function z5(t,e,o){const r=t[e]||(t[e]={});return r[o]||(r[o]={})}function Jd(t,e,o,r){for(const n of e.getMatchingVisibleMetas(r).reverse()){const i=t[n.index];if(o&&i>0||!o&&i<0)return n.index}return null}function Zd(t,e){const{chart:o,_cachedMeta:r}=t,n=o._stacks||(o._stacks={}),{iScale:i,vScale:a,index:l}=r,c=i.axis,d=a.axis,u=L5(i,a,r),f=e.length;let h;for(let g=0;g<f;++g){const m=e[g],{[c]:p,[d]:b}=m,y=m._stacks||(m._stacks={});h=y[d]=z5(n,u,p),h[l]=b,h._top=Jd(h,a,!0,r.type),h._bottom=Jd(h,a,!1,r.type);const x=h._visualValues||(h._visualValues={});x[l]=b}}function $a(t,e){const o=t.scales;return Object.keys(o).filter(r=>o[r].axis===e).shift()}function j5(t,e){return co(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function W5(t,e,o){return co(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:o,index:e,mode:"default",type:"data"})}function Wr(t,e){const o=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const n of e){const i=n._stacks;if(!i||i[r]===void 0||i[r][o]===void 0)return;delete i[r][o],i[r]._visualValues!==void 0&&i[r]._visualValues[o]!==void 0&&delete i[r]._visualValues[o]}}}const Ma=t=>t==="reset"||t==="none",eu=(t,e)=>e?t:Object.assign({},t),H5=(t,e,o)=>t&&!e.hidden&&e._stacked&&{keys:Gd(o,!0),values:null};class ut{constructor(e,o){this.chart=e,this._ctx=e.ctx,this.index=o,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=Aa(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&&Wr(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,o=this._cachedMeta,r=this.getDataset(),n=(f,h,g,m)=>f==="x"?h:f==="r"?m:g,i=o.xAxisID=se(r.xAxisID,$a(e,"x")),a=o.yAxisID=se(r.yAxisID,$a(e,"y")),l=o.rAxisID=se(r.rAxisID,$a(e,"r")),c=o.indexAxis,d=o.iAxisID=n(c,i,a,l),u=o.vAxisID=n(c,a,i,l);o.xScale=this.getScaleForId(i),o.yScale=this.getScaleForId(a),o.rScale=this.getScaleForId(l),o.iScale=this.getScaleForId(d),o.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 o=this._cachedMeta;return e===o.iScale?o.vScale:o.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&md(this._data,this),e._stacked&&Wr(e)}_dataCheck(){const e=this.getDataset(),o=e.data||(e.data=[]),r=this._data;if(de(o)){const n=this._cachedMeta;this._data=V5(o,n)}else if(r!==o){if(r){md(r,this);const n=this._cachedMeta;Wr(n),n._parsed=[]}o&&Object.isExtensible(o)&&D_(o,this),this._syncList=[],this._data=o}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const o=this._cachedMeta,r=this.getDataset();let n=!1;this._dataCheck();const i=o._stacked;o._stacked=Aa(o.vScale,o),o.stack!==r.stack&&(n=!0,Wr(o),o.stack=r.stack),this._resyncElements(e),(n||i!==o._stacked)&&(Zd(this,o._parsed),o._stacked=Aa(o.vScale,o))}configure(){const e=this.chart.config,o=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),o,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,o){const{_cachedMeta:r,_data:n}=this,{iScale:i,_stacked:a}=r,l=i.axis;let c=e===0&&o===n.length?!0:r._sorted,d=e>0&&r._parsed[e-1],u,f,h;if(this._parsing===!1)r._parsed=n,r._sorted=!0,h=n;else{Oe(n[e])?h=this.parseArrayData(r,n,e,o):de(n[e])?h=this.parseObjectData(r,n,e,o):h=this.parsePrimitiveData(r,n,e,o);const g=()=>f[l]===null||d&&f[l]<d[l];for(u=0;u<o;++u)r._parsed[u+e]=f=h[u],c&&(g()&&(c=!1),d=f);r._sorted=c}a&&Zd(this,h)}parsePrimitiveData(e,o,r,n){const{iScale:i,vScale:a}=e,l=i.axis,c=a.axis,d=i.getLabels(),u=i===a,f=new Array(n);let h,g,m;for(h=0,g=n;h<g;++h)m=h+r,f[h]={[l]:u||i.parse(d[m],m),[c]:a.parse(o[m],m)};return f}parseArrayData(e,o,r,n){const{xScale:i,yScale:a}=e,l=new Array(n);let c,d,u,f;for(c=0,d=n;c<d;++c)u=c+r,f=o[u],l[c]={x:i.parse(f[0],u),y:a.parse(f[1],u)};return l}parseObjectData(e,o,r,n){const{xScale:i,yScale:a}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=new Array(n);let u,f,h,g;for(u=0,f=n;u<f;++u)h=u+r,g=o[h],d[u]={x:i.parse(ao(g,l),h),y:a.parse(ao(g,c),h)};return d}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,o,r){const n=this.chart,i=this._cachedMeta,a=o[e.axis],l={keys:Gd(n,!0),values:o._stacks[e.axis]._visualValues};return Qd(l,a,i.index,{mode:r})}updateRangeFromParsed(e,o,r,n){const i=r[o.axis];let a=i===null?NaN:i;const l=n&&r._stacks[o.axis];n&&l&&(n.values=l,a=Qd(n,i,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,o){const r=this._cachedMeta,n=r._parsed,i=r._sorted&&e===r.iScale,a=n.length,l=this._getOtherScale(e),c=H5(o,r,this.chart),d={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:f}=I5(l);let h,g;function m(){g=n[h];const p=g[l.axis];return!Pe(g[e.axis])||u>p||f<p}for(h=0;h<a&&!(!m()&&(this.updateRangeFromParsed(d,e,g,c),i));++h);if(i){for(h=a-1;h>=0;--h)if(!m()){this.updateRangeFromParsed(d,e,g,c);break}}return d}getAllParsedValues(e){const o=this._cachedMeta._parsed,r=[];let n,i,a;for(n=0,i=o.length;n<i;++n)a=o[n][e.axis],Pe(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const o=this._cachedMeta,r=o.iScale,n=o.vScale,i=this.getParsed(e);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:n?""+n.getLabelForValue(i[n.axis]):""}}_update(e){const o=this._cachedMeta;this.update(e||"default"),o._clip=F5(se(this.options.clip,M5(o.xScale,o.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,o=this.chart,r=this._cachedMeta,n=r.data||[],i=o.chartArea,a=[],l=this._drawStart||0,c=this._drawCount||n.length-l,d=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(e,i,l,c),u=l;u<l+c;++u){const f=n[u];f.hidden||(f.active&&d?a.push(f):f.draw(e,i))}for(u=0;u<a.length;++u)a[u].draw(e,i)}getStyle(e,o){const r=o?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,o,r){const n=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const a=this._cachedMeta.data[e];i=a.$context||(a.$context=W5(this.getContext(),e,a)),i.parsed=this.getParsed(e),i.raw=n.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=j5(this.chart.getContext(),this.index)),i.dataset=n,i.index=i.datasetIndex=this.index;return i.active=!!o,i.mode=r,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,o){return this._resolveElementOptions(this.dataElementType.id,o,e)}_resolveElementOptions(e,o="default",r){const n=o==="active",i=this._cachedDataOpts,a=e+"-"+o,l=i[a],c=this.enableOptionSharing&&Ar(r);if(l)return eu(l,c);const d=this.chart.config,u=d.datasetElementScopeKeys(this._type,e),f=n?[`${e}Hover`,"hover",e,""]:[e,""],h=d.getOptionScopes(this.getDataset(),u),g=Object.keys(Be.elements[e]),m=()=>this.getContext(r,n,o),p=d.resolveNamedOptions(h,g,m,f);return p.$shared&&(p.$shared=c,i[a]=Object.freeze(eu(p,c))),p}_resolveAnimations(e,o,r){const n=this.chart,i=this._cachedDataOpts,a=`animation-${o}`,l=i[a];if(l)return l;let c;if(n.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,o),h=u.getOptionScopes(this.getDataset(),f);c=u.createResolver(h,this.getContext(e,r,o))}const d=new Pa(n,c&&c.animations);return c&&c._cacheable&&(i[a]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,o){return!o||Ma(e)||this.chart._animationsDisabled}_getSharedOptions(e,o){const r=this.resolveDataElementOptions(e,o),n=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(o,i)||i!==n;return this.updateSharedOptions(i,o,r),{sharedOptions:i,includeOptions:a}}updateElement(e,o,r,n){Ma(n)?Object.assign(e,r):this._resolveAnimations(o,n).update(e,r)}updateSharedOptions(e,o,r){e&&!Ma(o)&&this._resolveAnimations(void 0,o).update(e,r)}_setStyle(e,o,r,n){e.active=n;const i=this.getStyle(o,n);this._resolveAnimations(o,r,n).update(e,{options:!n&&this.getSharedOptions(i)||i})}removeHoverStyle(e,o,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,o,r){this._setStyle(e,r,"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 o=this._data,r=this._cachedMeta.data;for(const[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];const n=r.length,i=o.length,a=Math.min(i,n);a&&this.parse(0,a),i>n?this._insertElements(n,i-n,e):i<n&&this._removeElements(i,n-i)}_insertElements(e,o,r=!0){const n=this._cachedMeta,i=n.data,a=e+o;let l;const c=d=>{for(d.length+=o,l=d.length-1;l>=a;l--)d[l]=d[l-o]};for(c(i),l=e;l<a;++l)i[l]=new this.dataElementType;this._parsing&&c(n._parsed),this.parse(e,o),r&&this.updateElements(i,e,o,"reset")}updateElements(e,o,r,n){}_removeElements(e,o){const r=this._cachedMeta;if(this._parsing){const n=r._parsed.splice(e,o);r._stacked&&Wr(r,n)}r.data.splice(e,o)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[o,r,n]=e;this[o](r,n)}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,o){o&&this._sync(["_removeElements",e,o]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}H(ut,"defaults",{}),H(ut,"datasetElementType",null),H(ut,"dataElementType",null);function U5(t,e){if(!t._cache.$bar){const o=t.getMatchingVisibleMetas(e);let r=[];for(let n=0,i=o.length;n<i;n++)r=r.concat(o[n].controller.getAllParsedValues(t));t._cache.$bar=pd(r.sort((n,i)=>n-i))}return t._cache.$bar}function q5(t){const e=t.iScale,o=U5(e,t.type);let r=e._length,n,i,a,l;const c=()=>{a===32767||a===-32768||(Ar(l)&&(r=Math.min(r,Math.abs(a-l)||r)),l=a)};for(n=0,i=o.length;n<i;++n)a=e.getPixelForValue(o[n]),c();for(l=void 0,n=0,i=e.ticks.length;n<i;++n)a=e.getPixelForTick(n),c();return r}function Y5(t,e,o,r){const n=o.barThickness;let i,a;return fe(n)?(i=e.min*o.categoryPercentage,a=o.barPercentage):(i=n*r,a=1),{chunk:i/r,ratio:a,start:e.pixels[t]-i/2}}function X5(t,e,o,r){const n=e.pixels,i=n[t];let a=t>0?n[t-1]:null,l=t<n.length-1?n[t+1]:null;const c=o.categoryPercentage;a===null&&(a=i-(l===null?e.end-e.start:l-i)),l===null&&(l=i+i-a);const d=i-(i-Math.min(a,l))/2*c;return{chunk:Math.abs(l-a)/2*c/r,ratio:o.barPercentage,start:d}}function K5(t,e,o,r){const n=o.parse(t[0],r),i=o.parse(t[1],r),a=Math.min(n,i),l=Math.max(n,i);let c=a,d=l;Math.abs(a)>Math.abs(l)&&(c=l,d=a),e[o.axis]=d,e._custom={barStart:c,barEnd:d,start:n,end:i,min:a,max:l}}function tu(t,e,o,r){return Oe(t)?K5(t,e,o,r):e[o.axis]=o.parse(t,r),e}function ou(t,e,o,r){const n=t.iScale,i=t.vScale,a=n.getLabels(),l=n===i,c=[];let d,u,f,h;for(d=o,u=o+r;d<u;++d)h=e[d],f={},f[n.axis]=l||n.parse(a[d],d),c.push(tu(h,f,i,d));return c}function Fa(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function G5(t,e,o){return t!==0?Rt(t):(e.isHorizontal()?1:-1)*(e.min>=o?1:-1)}function Q5(t){let e,o,r,n,i;return t.horizontal?(e=t.base>t.x,o="left",r="right"):(e=t.base<t.y,o="bottom",r="top"),e?(n="end",i="start"):(n="start",i="end"),{start:o,end:r,reverse:e,top:n,bottom:i}}function J5(t,e,o,r){let n=e.borderSkipped;const i={};if(!n){t.borderSkipped=i;return}if(n===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:l,reverse:c,top:d,bottom:u}=Q5(t);n==="middle"&&o&&(t.enableBorderRadius=!0,(o._top||0)===r?n=d:(o._bottom||0)===r?n=u:(i[ru(u,a,l,c)]=!0,n=d)),i[ru(n,a,l,c)]=!0,t.borderSkipped=i}function ru(t,e,o,r){return r?(t=Z5(t,e,o),t=nu(t,o,e)):t=nu(t,e,o),t}function Z5(t,e,o){return t===e?o:t===o?e:t}function nu(t,e,o){return t==="start"?e:t==="end"?o:t}function eS(t,{inflateAmount:e},o){t.inflateAmount=e==="auto"?o===1?.33:0:e}class Hr extends ut{parsePrimitiveData(e,o,r,n){return ou(e,o,r,n)}parseArrayData(e,o,r,n){return ou(e,o,r,n)}parseObjectData(e,o,r,n){const{iScale:i,vScale:a}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=i.axis==="x"?l:c,u=a.axis==="x"?l:c,f=[];let h,g,m,p;for(h=r,g=r+n;h<g;++h)p=o[h],m={},m[i.axis]=i.parse(ao(p,d),h),f.push(tu(ao(p,u),m,a,h));return f}updateRangeFromParsed(e,o,r,n){super.updateRangeFromParsed(e,o,r,n);const i=r._custom;i&&o===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 o=this._cachedMeta,{iScale:r,vScale:n}=o,i=this.getParsed(e),a=i._custom,l=Fa(a)?"["+a.start+", "+a.end+"]":""+n.getLabelForValue(i[n.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const o=this._cachedMeta;this.updateElements(o.data,0,o.data.length,e)}updateElements(e,o,r,n){const i=n==="reset",{index:a,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),d=l.isHorizontal(),u=this._getRuler(),{sharedOptions:f,includeOptions:h}=this._getSharedOptions(o,n);for(let g=o;g<o+r;g++){const m=this.getParsed(g),p=i||fe(m[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(g),b=this._calculateBarIndexPixels(g,u),y=(m._stacks||{})[l.axis],x={horizontal:d,base:p.base,enableBorderRadius:!y||Fa(m._custom)||a===y._top||a===y._bottom,x:d?p.head:b.center,y:d?b.center:p.head,height:d?b.size:Math.abs(p.size),width:d?Math.abs(p.size):b.size};h&&(x.options=f||this.resolveDataElementOptions(g,e[g].active?"active":n));const C=x.options||e[g].options;J5(x,C,y,a),eS(x,C,u.ratio),this.updateElement(e[g],g,x,n)}}_getStacks(e,o){const{iScale:r}=this._cachedMeta,n=r.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),i=r.options.stacked,a=[],l=this._cachedMeta.controller.getParsed(o),c=l&&l[r.axis],d=u=>{const f=u._parsed.find(g=>g[r.axis]===c),h=f&&f[u.vScale.axis];if(fe(h)||isNaN(h))return!0};for(const u of n)if(!(o!==void 0&&d(u))&&((i===!1||a.indexOf(u.stack)===-1||i===void 0&&u.stack===void 0)&&a.push(u.stack),u.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,o,r){const n=this._getStacks(e,r),i=o!==void 0?n.indexOf(o):-1;return i===-1?n.length-1:i}_getRuler(){const e=this.options,o=this._cachedMeta,r=o.iScale,n=[];let i,a;for(i=0,a=o.data.length;i<a;++i)n.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const l=e.barThickness;return{min:l||q5(o),pixels:n,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:l?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:o,_stacked:r,index:n},options:{base:i,minBarLength:a}}=this,l=i||0,c=this.getParsed(e),d=c._custom,u=Fa(d);let f=c[o.axis],h=0,g=r?this.applyStack(o,c,r):f,m,p;g!==f&&(h=g-f,g=f),u&&(f=d.barStart,g=d.barEnd-d.barStart,f!==0&&Rt(f)!==Rt(d.barEnd)&&(h=0),h+=f);const b=!fe(i)&&!u?i:h;let y=o.getPixelForValue(b);if(this.chart.getDataVisibility(e)?m=o.getPixelForValue(h+g):m=y,p=m-y,Math.abs(p)<a){p=G5(p,o,l)*a,f===l&&(y-=p/2);const x=o.getPixelForDecimal(0),C=o.getPixelForDecimal(1),B=Math.min(x,C),w=Math.max(x,C);y=Math.max(Math.min(y,w),B),m=y+p,r&&!u&&(c._stacks[o.axis]._visualValues[n]=o.getValueForPixel(m)-o.getValueForPixel(y))}if(y===o.getPixelForValue(l)){const x=Rt(p)*o.getLineWidthForValue(l)/2;y+=x,p-=x}return{size:p,base:y,head:m,center:m+p/2}}_calculateBarIndexPixels(e,o){const r=o.scale,n=this.options,i=n.skipNull,a=se(n.maxBarThickness,1/0);let l,c;if(o.grouped){const d=i?this._getStackCount(e):o.stackCount,u=n.barThickness==="flex"?X5(e,o,n,d):Y5(e,o,n,d),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0);l=u.start+u.chunk*f+u.chunk/2,c=Math.min(a,u.chunk*u.ratio)}else l=r.getPixelForValue(this.getParsed(e)[r.axis],e),c=Math.min(a,o.min*o.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){const e=this._cachedMeta,o=e.vScale,r=e.data,n=r.length;let i=0;for(;i<n;++i)this.getParsed(i)[o.axis]!==null&&!r[i].hidden&&r[i].draw(this._ctx)}}H(Hr,"id","bar"),H(Hr,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),H(Hr,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Ur extends ut{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,o,r,n){const i=super.parsePrimitiveData(e,o,r,n);for(let a=0;a<i.length;a++)i[a]._custom=this.resolveDataElementOptions(a+r).radius;return i}parseArrayData(e,o,r,n){const i=super.parseArrayData(e,o,r,n);for(let a=0;a<i.length;a++){const l=o[r+a];i[a]._custom=se(l[2],this.resolveDataElementOptions(a+r).radius)}return i}parseObjectData(e,o,r,n){const i=super.parseObjectData(e,o,r,n);for(let a=0;a<i.length;a++){const l=o[r+a];i[a]._custom=se(l&&l.r&&+l.r,this.resolveDataElementOptions(a+r).radius)}return i}getMaxOverflow(){const e=this._cachedMeta.data;let o=0;for(let r=e.length-1;r>=0;--r)o=Math.max(o,e[r].size(this.resolveDataElementOptions(r))/2);return o>0&&o}getLabelAndValue(e){const o=this._cachedMeta,r=this.chart.data.labels||[],{xScale:n,yScale:i}=o,a=this.getParsed(e),l=n.getLabelForValue(a.x),c=i.getLabelForValue(a.y),d=a._custom;return{label:r[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){const o=this._cachedMeta.data;this.updateElements(o,0,o.length,e)}updateElements(e,o,r,n){const i=n==="reset",{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(o,n),u=a.axis,f=l.axis;for(let h=o;h<o+r;h++){const g=e[h],m=!i&&this.getParsed(h),p={},b=p[u]=i?a.getPixelForDecimal(.5):a.getPixelForValue(m[u]),y=p[f]=i?l.getBasePixel():l.getPixelForValue(m[f]);p.skip=isNaN(b)||isNaN(y),d&&(p.options=c||this.resolveDataElementOptions(h,g.active?"active":n),i&&(p.options.radius=0)),this.updateElement(g,h,p,n)}}resolveDataElementOptions(e,o){const r=this.getParsed(e);let n=super.resolveDataElementOptions(e,o);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const i=n.radius;return o!=="active"&&(n.radius=0),n.radius+=se(r&&r._custom,i),n}}H(Ur,"id","bubble"),H(Ur,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),H(Ur,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function tS(t,e,o){let r=1,n=1,i=0,a=0;if(e<Se){const l=t,c=l+e,d=Math.cos(l),u=Math.sin(l),f=Math.cos(c),h=Math.sin(c),g=(C,B,w)=>Mr(C,l,c,!0)?1:Math.max(B,B*o,w,w*o),m=(C,B,w)=>Mr(C,l,c,!0)?-1:Math.min(B,B*o,w,w*o),p=g(0,d,f),b=g($e,u,h),y=m(_e,d,f),x=m(_e+$e,u,h);r=(p-y)/2,n=(b-x)/2,i=-(p+y)/2,a=-(b+x)/2}return{ratioX:r,ratioY:n,offsetX:i,offsetY:a}}class uo extends ut{constructor(e,o){super(e,o),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,o){const r=this.getDataset().data,n=this._cachedMeta;if(this._parsing===!1)n._parsed=r;else{let i=c=>+r[c];if(de(r[e])){const{key:c="value"}=this._parsing;i=d=>+ao(r[d],c)}let a,l;for(a=e,l=e+o;a<l;++a)n._parsed[a]=i(a)}}_getRotation(){return xt(this.options.rotation-90)}_getCircumference(){return xt(this.options.circumference)}_getRotationExtents(){let e=Se,o=-Se;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const n=this.chart.getDatasetMeta(r).controller,i=n._getRotation(),a=n._getCircumference();e=Math.min(e,i),o=Math.max(o,i+a)}return{rotation:e,circumference:o-e}}update(e){const o=this.chart,{chartArea:r}=o,n=this._cachedMeta,i=n.data,a=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,l=Math.max((Math.min(r.width,r.height)-a)/2,0),c=Math.min(p_(this.options.cutout,l),1),d=this._getRingWeight(this.index),{circumference:u,rotation:f}=this._getRotationExtents(),{ratioX:h,ratioY:g,offsetX:m,offsetY:p}=tS(f,u,c),b=(r.width-a)/h,y=(r.height-a)/g,x=Math.max(Math.min(b,y)/2,0),C=id(this.options.radius,x),B=Math.max(C*c,0),w=(C-B)/this._getVisibleDatasetWeightTotal();this.offsetX=m*C,this.offsetY=p*C,n.total=this.calculateTotal(),this.outerRadius=C-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*d,0),this.updateElements(i,0,i.length,e)}_circumference(e,o){const r=this.options,n=this._cachedMeta,i=this._getCircumference();return o&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||n._parsed[e]===null||n.data[e].hidden?0:this.calculateCircumference(n._parsed[e]*i/Se)}updateElements(e,o,r,n){const i=n==="reset",a=this.chart,l=a.chartArea,d=a.options.animation,u=(l.left+l.right)/2,f=(l.top+l.bottom)/2,h=i&&d.animateScale,g=h?0:this.innerRadius,m=h?0:this.outerRadius,{sharedOptions:p,includeOptions:b}=this._getSharedOptions(o,n);let y=this._getRotation(),x;for(x=0;x<o;++x)y+=this._circumference(x,i);for(x=o;x<o+r;++x){const C=this._circumference(x,i),B=e[x],w={x:u+this.offsetX,y:f+this.offsetY,startAngle:y,endAngle:y+C,circumference:C,outerRadius:m,innerRadius:g};b&&(w.options=p||this.resolveDataElementOptions(x,B.active?"active":n)),y+=C,this.updateElement(B,x,w,n)}}calculateTotal(){const e=this._cachedMeta,o=e.data;let r=0,n;for(n=0;n<o.length;n++){const i=e._parsed[n];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(n)&&!o[n].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(e){const o=this._cachedMeta.total;return o>0&&!isNaN(e)?Se*(Math.abs(e)/o):0}getLabelAndValue(e){const o=this._cachedMeta,r=this.chart,n=r.data.labels||[],i=Vr(o._parsed[e],r.options.locale);return{label:n[e]||"",value:i}}getMaxBorderWidth(e){let o=0;const r=this.chart;let n,i,a,l,c;if(!e){for(n=0,i=r.data.datasets.length;n<i;++n)if(r.isDatasetVisible(n)){a=r.getDatasetMeta(n),e=a.data,l=a.controller;break}}if(!e)return 0;for(n=0,i=e.length;n<i;++n)c=l.resolveDataElementOptions(n),c.borderAlign!=="inner"&&(o=Math.max(o,c.borderWidth||0,c.hoverBorderWidth||0));return o}getMaxOffset(e){let o=0;for(let r=0,n=e.length;r<n;++r){const i=this.resolveDataElementOptions(r);o=Math.max(o,i.offset||0,i.hoverOffset||0)}return o}_getRingWeightOffset(e){let o=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(o+=this._getRingWeight(r));return o}_getRingWeight(e){return Math.max(se(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}H(uo,"id","doughnut"),H(uo,"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"}),H(uo,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),H(uo,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const o=e.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:r,color:n}}=e.legend.options;return o.labels.map((i,a)=>{const c=e.getDatasetMeta(0).controller.getStyle(a);return{text:i,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:n,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(a),index:a}})}return[]}},onClick(e,o,r){r.chart.toggleDataVisibility(o.index),r.chart.update()}}}});class qr extends ut{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const o=this._cachedMeta,{dataset:r,data:n=[],_dataset:i}=o,a=this.chart._animationsDisabled;let{start:l,count:c}=kd(o,n,a);this._drawStart=l,this._drawCount=c,xd(o)&&(l=0,c=n.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=n;const d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:d},e),this.updateElements(n,l,c,e)}updateElements(e,o,r,n){const i=n==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:u,includeOptions:f}=this._getSharedOptions(o,n),h=a.axis,g=l.axis,{spanGaps:m,segment:p}=this.options,b=Yo(m)?m:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||i||n==="none",x=o+r,C=e.length;let B=o>0&&this.getParsed(o-1);for(let w=0;w<C;++w){const _=e[w],v=y?_:{};if(w<o||w>=x){v.skip=!0;continue}const k=this.getParsed(w),S=fe(k[g]),N=v[h]=a.getPixelForValue(k[h],w),E=v[g]=i||S?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,k,c):k[g],w);v.skip=isNaN(N)||isNaN(E)||S,v.stop=w>0&&Math.abs(k[h]-B[h])>b,p&&(v.parsed=k,v.raw=d.data[w]),f&&(v.options=u||this.resolveDataElementOptions(w,_.active?"active":n)),y||this.updateElement(_,w,v,n),B=k}}getMaxOverflow(){const e=this._cachedMeta,o=e.dataset,r=o.options&&o.options.borderWidth||0,n=e.data||[];if(!n.length)return r;const i=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,i,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}H(qr,"id","line"),H(qr,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),H(qr,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Qo extends ut{constructor(e,o){super(e,o),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const o=this._cachedMeta,r=this.chart,n=r.data.labels||[],i=Vr(o._parsed[e].r,r.options.locale);return{label:n[e]||"",value:i}}parseObjectData(e,o,r,n){return $d.bind(this)(e,o,r,n)}update(e){const o=this._cachedMeta.data;this._updateRadius(),this.updateElements(o,0,o.length,e)}getMinMax(){const e=this._cachedMeta,o={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<o.min&&(o.min=i),i>o.max&&(o.max=i))}),o}_updateRadius(){const e=this.chart,o=e.chartArea,r=e.options,n=Math.min(o.right-o.left,o.bottom-o.top),i=Math.max(n/2,0),a=Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0),l=(i-a)/e.getVisibleDatasetCount();this.outerRadius=i-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,o,r,n){const i=n==="reset",a=this.chart,c=a.options.animation,d=this._cachedMeta.rScale,u=d.xCenter,f=d.yCenter,h=d.getIndexAngle(0)-.5*_e;let g=h,m;const p=360/this.countVisibleElements();for(m=0;m<o;++m)g+=this._computeAngle(m,n,p);for(m=o;m<o+r;m++){const b=e[m];let y=g,x=g+this._computeAngle(m,n,p),C=a.getDataVisibility(m)?d.getDistanceFromCenterForValue(this.getParsed(m).r):0;g=x,i&&(c.animateScale&&(C=0),c.animateRotate&&(y=x=h));const B={x:u,y:f,innerRadius:0,outerRadius:C,startAngle:y,endAngle:x,options:this.resolveDataElementOptions(m,b.active?"active":n)};this.updateElement(b,m,B,n)}}countVisibleElements(){const e=this._cachedMeta;let o=0;return e.data.forEach((r,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&o++}),o}_computeAngle(e,o,r){return this.chart.getDataVisibility(e)?xt(this.resolveDataElementOptions(e,o).angle||r):0}}H(Qo,"id","polarArea"),H(Qo,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),H(Qo,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const o=e.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:r,color:n}}=e.legend.options;return o.labels.map((i,a)=>{const c=e.getDatasetMeta(0).controller.getStyle(a);return{text:i,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:n,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(a),index:a}})}return[]}},onClick(e,o,r){r.chart.toggleDataVisibility(o.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class ti extends uo{}H(ti,"id","pie"),H(ti,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Yr extends ut{getLabelAndValue(e){const o=this._cachedMeta.vScale,r=this.getParsed(e);return{label:o.getLabels()[e],value:""+o.getLabelForValue(r[o.axis])}}parseObjectData(e,o,r,n){return $d.bind(this)(e,o,r,n)}update(e){const o=this._cachedMeta,r=o.dataset,n=o.data||[],i=o.iScale.getLabels();if(r.points=n,e!=="resize"){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0);const l={_loop:!0,_fullLoop:i.length===n.length,options:a};this.updateElement(r,void 0,l,e)}this.updateElements(n,0,n.length,e)}updateElements(e,o,r,n){const i=this._cachedMeta.rScale,a=n==="reset";for(let l=o;l<o+r;l++){const c=e[l],d=this.resolveDataElementOptions(l,c.active?"active":n),u=i.getPointPositionForValue(l,this.getParsed(l).r),f=a?i.xCenter:u.x,h=a?i.yCenter:u.y,g={x:f,y:h,angle:u.angle,skip:isNaN(f)||isNaN(h),options:d};this.updateElement(c,l,g,n)}}}H(Yr,"id","radar"),H(Yr,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),H(Yr,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Xr extends ut{getLabelAndValue(e){const o=this._cachedMeta,r=this.chart.data.labels||[],{xScale:n,yScale:i}=o,a=this.getParsed(e),l=n.getLabelForValue(a.x),c=i.getLabelForValue(a.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){const o=this._cachedMeta,{data:r=[]}=o,n=this.chart._animationsDisabled;let{start:i,count:a}=kd(o,r,n);if(this._drawStart=i,this._drawCount=a,xd(o)&&(i=0,a=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:l,_dataset:c}=o;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;const d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!n,options:d},e)}else this.datasetElementType&&(delete o.dataset,this.datasetElementType=!1);this.updateElements(r,i,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,o,r,n){const i=n==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,u=this.resolveDataElementOptions(o,n),f=this.getSharedOptions(u),h=this.includeOptions(n,f),g=a.axis,m=l.axis,{spanGaps:p,segment:b}=this.options,y=Yo(p)?p:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||i||n==="none";let C=o>0&&this.getParsed(o-1);for(let B=o;B<o+r;++B){const w=e[B],_=this.getParsed(B),v=x?w:{},k=fe(_[m]),S=v[g]=a.getPixelForValue(_[g],B),N=v[m]=i||k?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,_,c):_[m],B);v.skip=isNaN(S)||isNaN(N)||k,v.stop=B>0&&Math.abs(_[g]-C[g])>y,b&&(v.parsed=_,v.raw=d.data[B]),h&&(v.options=f||this.resolveDataElementOptions(B,w.active?"active":n)),x||this.updateElement(w,B,v,n),C=_}this.updateSharedOptions(f,n,u)}getMaxOverflow(){const e=this._cachedMeta,o=e.data||[];if(!this.options.showLine){let l=0;for(let c=o.length-1;c>=0;--c)l=Math.max(l,o[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const r=e.dataset,n=r.options&&r.options.borderWidth||0;if(!o.length)return n;const i=o[0].size(this.resolveDataElementOptions(0)),a=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,i,a)/2}}H(Xr,"id","scatter"),H(Xr,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),H(Xr,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var iu=Object.freeze({__proto__:null,BarController:Hr,BubbleController:Ur,DoughnutController:uo,LineController:qr,PieController:ti,PolarAreaController:Qo,RadarController:Yr,ScatterController:Xr});function Po(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Va{constructor(e){H(this,"options");this.options=e||{}}static override(e){Object.assign(Va.prototype,e)}init(){}formats(){return Po()}parse(){return Po()}format(){return Po()}add(){return Po()}diff(){return Po()}startOf(){return Po()}endOf(){return Po()}}var au={_date:Va};function oS(t,e,o,r){const{controller:n,data:i,_sorted:a}=t,l=n._cachedMeta.iScale;if(l&&e===l.axis&&e!=="r"&&a&&i.length){const c=l._reversePixels?R_:Ht;if(r){if(n._sharedOptions){const d=i[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const f=c(i,e,o-u),h=c(i,e,o+u);return{lo:f.lo,hi:h.hi}}}}else return c(i,e,o)}return{lo:0,hi:i.length-1}}function Kr(t,e,o,r,n){const i=t.getSortedVisibleDatasetMetas(),a=o[e];for(let l=0,c=i.length;l<c;++l){const{index:d,data:u}=i[l],{lo:f,hi:h}=oS(i[l],e,a,n);for(let g=f;g<=h;++g){const m=u[g];m.skip||r(m,d,g)}}}function rS(t){const e=t.indexOf("x")!==-1,o=t.indexOf("y")!==-1;return function(r,n){const i=e?Math.abs(r.x-n.x):0,a=o?Math.abs(r.y-n.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}function La(t,e,o,r,n){const i=[];return!n&&!t.isPointInArea(e)||Kr(t,o,e,function(l,c,d){!n&&!Ut(l,t.chartArea,0)||l.inRange(e.x,e.y,r)&&i.push({element:l,datasetIndex:c,index:d})},!0),i}function nS(t,e,o,r){let n=[];function i(a,l,c){const{startAngle:d,endAngle:u}=a.getProps(["startAngle","endAngle"],r),{angle:f}=hd(a,{x:e.x,y:e.y});Mr(f,d,u)&&n.push({element:a,datasetIndex:l,index:c})}return Kr(t,o,e,i),n}function iS(t,e,o,r,n,i){let a=[];const l=rS(o);let c=Number.POSITIVE_INFINITY;function d(u,f,h){const g=u.inRange(e.x,e.y,n);if(r&&!g)return;const m=u.getCenterPoint(n);if(!(!!i||t.isPointInArea(m))&&!g)return;const b=l(e,m);b<c?(a=[{element:u,datasetIndex:f,index:h}],c=b):b===c&&a.push({element:u,datasetIndex:f,index:h})}return Kr(t,o,e,d),a}function Ia(t,e,o,r,n,i){return!i&&!t.isPointInArea(e)?[]:o==="r"&&!r?nS(t,e,o,n):iS(t,e,o,r,n,i)}function su(t,e,o,r,n){const i=[],a=o==="x"?"inXRange":"inYRange";let l=!1;return Kr(t,o,e,(c,d,u)=>{c[a]&&c[a](e[o],n)&&(i.push({element:c,datasetIndex:d,index:u}),l=l||c.inRange(e.x,e.y,n))}),r&&!l?[]:i}var lu={evaluateInteractionItems:Kr,modes:{index(t,e,o,r){const n=No(e,t),i=o.axis||"x",a=o.includeInvisible||!1,l=o.intersect?La(t,n,i,r,a):Ia(t,n,i,!1,r,a),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach(d=>{const u=l[0].index,f=d.data[u];f&&!f.skip&&c.push({element:f,datasetIndex:d.index,index:u})}),c):[]},dataset(t,e,o,r){const n=No(e,t),i=o.axis||"xy",a=o.includeInvisible||!1;let l=o.intersect?La(t,n,i,r,a):Ia(t,n,i,!1,r,a);if(l.length>0){const c=l[0].datasetIndex,d=t.getDatasetMeta(c).data;l=[];for(let u=0;u<d.length;++u)l.push({element:d[u],datasetIndex:c,index:u})}return l},point(t,e,o,r){const n=No(e,t),i=o.axis||"xy",a=o.includeInvisible||!1;return La(t,n,i,r,a)},nearest(t,e,o,r){const n=No(e,t),i=o.axis||"xy",a=o.includeInvisible||!1;return Ia(t,n,i,o.intersect,r,a)},x(t,e,o,r){const n=No(e,t);return su(t,n,"x",o.intersect,r)},y(t,e,o,r){const n=No(e,t);return su(t,n,"y",o.intersect,r)}}};const cu=["left","top","right","bottom"];function Gr(t,e){return t.filter(o=>o.pos===e)}function du(t,e){return t.filter(o=>cu.indexOf(o.pos)===-1&&o.box.axis===e)}function Qr(t,e){return t.sort((o,r)=>{const n=e?r:o,i=e?o:r;return n.weight===i.weight?n.index-i.index:n.weight-i.weight})}function aS(t){const e=[];let o,r,n,i,a,l;for(o=0,r=(t||[]).length;o<r;++o)n=t[o],{position:i,options:{stack:a,stackWeight:l=1}}=n,e.push({index:o,box:n,pos:i,horizontal:n.isHorizontal(),weight:n.weight,stack:a&&i+a,stackWeight:l});return e}function sS(t){const e={};for(const o of t){const{stack:r,pos:n,stackWeight:i}=o;if(!r||!cu.includes(n))continue;const a=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=i}return e}function lS(t,e){const o=sS(t),{vBoxMaxWidth:r,hBoxMaxHeight:n}=e;let i,a,l;for(i=0,a=t.length;i<a;++i){l=t[i];const{fullSize:c}=l.box,d=o[l.stack],u=d&&l.stackWeight/d.weight;l.horizontal?(l.width=u?u*r:c&&e.availableWidth,l.height=n):(l.width=r,l.height=u?u*n:c&&e.availableHeight)}return o}function cS(t){const e=aS(t),o=Qr(e.filter(d=>d.box.fullSize),!0),r=Qr(Gr(e,"left"),!0),n=Qr(Gr(e,"right")),i=Qr(Gr(e,"top"),!0),a=Qr(Gr(e,"bottom")),l=du(e,"x"),c=du(e,"y");return{fullSize:o,leftAndTop:r.concat(i),rightAndBottom:n.concat(c).concat(a).concat(l),chartArea:Gr(e,"chartArea"),vertical:r.concat(n).concat(c),horizontal:i.concat(a).concat(l)}}function uu(t,e,o,r){return Math.max(t[o],e[o])+Math.max(t[r],e[r])}function fu(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function dS(t,e,o,r){const{pos:n,box:i}=o,a=t.maxPadding;if(!de(n)){o.size&&(t[n]-=o.size);const f=r[o.stack]||{size:0,count:1};f.size=Math.max(f.size,o.horizontal?i.height:i.width),o.size=f.size/f.count,t[n]+=o.size}i.getPadding&&fu(a,i.getPadding());const l=Math.max(0,e.outerWidth-uu(a,t,"left","right")),c=Math.max(0,e.outerHeight-uu(a,t,"top","bottom")),d=l!==t.w,u=c!==t.h;return t.w=l,t.h=c,o.horizontal?{same:d,other:u}:{same:u,other:d}}function uS(t){const e=t.maxPadding;function o(r){const n=Math.max(e[r]-t[r],0);return t[r]+=n,n}t.y+=o("top"),t.x+=o("left"),o("right"),o("bottom")}function fS(t,e){const o=e.maxPadding;function r(n){const i={left:0,top:0,right:0,bottom:0};return n.forEach(a=>{i[a]=Math.max(e[a],o[a])}),i}return r(t?["left","right"]:["top","bottom"])}function Jr(t,e,o,r){const n=[];let i,a,l,c,d,u;for(i=0,a=t.length,d=0;i<a;++i){l=t[i],c=l.box,c.update(l.width||e.w,l.height||e.h,fS(l.horizontal,e));const{same:f,other:h}=dS(e,o,l,r);d|=f&&n.length,u=u||h,c.fullSize||n.push(l)}return d&&Jr(n,e,o,r)||u}function oi(t,e,o,r,n){t.top=o,t.left=e,t.right=e+r,t.bottom=o+n,t.width=r,t.height=n}function hu(t,e,o,r){const n=o.padding;let{x:i,y:a}=e;for(const l of t){const c=l.box,d=r[l.stack]||{count:1,placed:0,weight:1},u=l.stackWeight/d.weight||1;if(l.horizontal){const f=e.w*u,h=d.size||c.height;Ar(d.start)&&(a=d.start),c.fullSize?oi(c,n.left,a,o.outerWidth-n.right-n.left,h):oi(c,e.left+d.placed,a,f,h),d.start=a,d.placed+=f,a=c.bottom}else{const f=e.h*u,h=d.size||c.width;Ar(d.start)&&(i=d.start),c.fullSize?oi(c,i,n.top,h,o.outerHeight-n.bottom-n.top):oi(c,i,e.top+d.placed,h,f),d.start=i,d.placed+=f,i=c.right}}e.x=i,e.y=a}var We={addBox(t,e){t.boxes||(t.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(o){e.draw(o)}}]},t.boxes.push(e)},removeBox(t,e){const o=t.boxes?t.boxes.indexOf(e):-1;o!==-1&&t.boxes.splice(o,1)},configure(t,e,o){e.fullSize=o.fullSize,e.position=o.position,e.weight=o.weight},update(t,e,o,r){if(!t)return;const n=Xe(t.options.layout.padding),i=Math.max(e-n.width,0),a=Math.max(o-n.height,0),l=cS(t.boxes),c=l.vertical,d=l.horizontal;ye(t.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const u=c.reduce((p,b)=>b.box.options&&b.box.options.display===!1?p:p+1,0)||1,f=Object.freeze({outerWidth:e,outerHeight:o,padding:n,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),h=Object.assign({},n);fu(h,Xe(r));const g=Object.assign({maxPadding:h,w:i,h:a,x:n.left,y:n.top},n),m=lS(c.concat(d),f);Jr(l.fullSize,g,f,m),Jr(c,g,f,m),Jr(d,g,f,m)&&Jr(c,g,f,m),uS(g),hu(l.leftAndTop,g,f,m),g.x+=g.w,g.y+=g.h,hu(l.rightAndBottom,g,f,m),t.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},ye(l.chartArea,p=>{const b=p.box;Object.assign(b,t.chartArea),b.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class za{acquireContext(e,o){}releaseContext(e){return!1}addEventListener(e,o,r){}removeEventListener(e,o,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,o,r,n){return o=Math.max(0,o||e.width),r=r||e.height,{width:o,height:Math.max(0,n?Math.floor(o/n):r)}}isAttached(e){return!0}updateConfig(e){}}class gu extends za{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ri="$chartjs",hS={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},mu=t=>t===null||t==="";function gS(t,e){const o=t.style,r=t.getAttribute("height"),n=t.getAttribute("width");if(t[ri]={initial:{height:r,width:n,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",o.boxSizing=o.boxSizing||"border-box",mu(n)){const i=Vd(t,"width");i!==void 0&&(t.width=i)}if(mu(r))if(t.style.height==="")t.height=t.width/(e||2);else{const i=Vd(t,"height");i!==void 0&&(t.height=i)}return t}const pu=v5?{passive:!0}:!1;function mS(t,e,o){t&&t.addEventListener(e,o,pu)}function pS(t,e,o){t&&t.canvas&&t.canvas.removeEventListener(e,o,pu)}function bS(t,e){const o=hS[t.type]||t.type,{x:r,y:n}=No(t,e);return{type:o,chart:e,native:t,x:r!==void 0?r:null,y:n!==void 0?n:null}}function ni(t,e){for(const o of t)if(o===e||o.contains(e))return!0}function yS(t,e,o){const r=t.canvas,n=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||ni(l.addedNodes,r),a=a&&!ni(l.removedNodes,r);a&&o()});return n.observe(document,{childList:!0,subtree:!0}),n}function kS(t,e,o){const r=t.canvas,n=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||ni(l.removedNodes,r),a=a&&!ni(l.addedNodes,r);a&&o()});return n.observe(document,{childList:!0,subtree:!0}),n}const Zr=new Map;let bu=0;function yu(){const t=window.devicePixelRatio;t!==bu&&(bu=t,Zr.forEach((e,o)=>{o.currentDevicePixelRatio!==t&&e()}))}function xS(t,e){Zr.size||window.addEventListener("resize",yu),Zr.set(t,e)}function vS(t){Zr.delete(t),Zr.size||window.removeEventListener("resize",yu)}function wS(t,e,o){const r=t.canvas,n=r&&Ta(r);if(!n)return;const i=yd((l,c)=>{const d=n.clientWidth;o(l,c),d<n.clientWidth&&o()},window),a=new ResizeObserver(l=>{const c=l[0],d=c.contentRect.width,u=c.contentRect.height;d===0&&u===0||i(d,u)});return a.observe(n),xS(t,i),a}function ja(t,e,o){o&&o.disconnect(),e==="resize"&&vS(t)}function CS(t,e,o){const r=t.canvas,n=yd(i=>{t.ctx!==null&&o(bS(i,t))},t);return mS(r,e,n),n}class ku extends za{acquireContext(e,o){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(gS(e,o),r):null}releaseContext(e){const o=e.canvas;if(!o[ri])return!1;const r=o[ri].initial;["height","width"].forEach(i=>{const a=r[i];fe(a)?o.removeAttribute(i):o.setAttribute(i,a)});const n=r.style||{};return Object.keys(n).forEach(i=>{o.style[i]=n[i]}),o.width=o.width,delete o[ri],!0}addEventListener(e,o,r){this.removeEventListener(e,o);const n=e.$proxies||(e.$proxies={}),a={attach:yS,detach:kS,resize:wS}[o]||CS;n[o]=a(e,o,r)}removeEventListener(e,o){const r=e.$proxies||(e.$proxies={}),n=r[o];if(!n)return;({attach:ja,detach:ja,resize:ja}[o]||pS)(e,o,n),r[o]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,o,r,n){return x5(e,o,r,n)}isAttached(e){const o=e&&Ta(e);return!!(o&&o.isConnected)}}function xu(t){return!Na()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?gu:ku}let Dt=(xi=class{constructor(){H(this,"x");H(this,"y");H(this,"active",!1);H(this,"options");H(this,"$animations")}tooltipPosition(e){const{x:o,y:r}=this.getProps(["x","y"],e);return{x:o,y:r}}hasValue(){return Yo(this.x)&&Yo(this.y)}getProps(e,o){const r=this.$animations;if(!o||!r)return this;const n={};return e.forEach(i=>{n[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),n}},H(xi,"defaults",{}),H(xi,"defaultRoutes"),xi);function _S(t,e){const o=t.options.ticks,r=SS(t),n=Math.min(o.maxTicksLimit||r,r),i=o.major.enabled?ES(e):[],a=i.length,l=i[0],c=i[a-1],d=[];if(a>n)return RS(e,d,i,a/n),d;const u=BS(i,e,n);if(a>0){let f,h;const g=a>1?Math.round((c-l)/(a-1)):null;for(ii(e,d,u,fe(g)?0:l-g,l),f=0,h=a-1;f<h;f++)ii(e,d,u,i[f],i[f+1]);return ii(e,d,u,c,fe(g)?e.length:c+g),d}return ii(e,d,u),d}function SS(t){const e=t.options.offset,o=t._tickSize(),r=t._length/o+(e?0:1),n=t._maxLength/o;return Math.floor(Math.min(r,n))}function BS(t,e,o){const r=OS(t),n=e.length/o;if(!r)return Math.max(n,1);const i=__(r);for(let a=0,l=i.length-1;a<l;a++){const c=i[a];if(c>n)return c}return Math.max(n,1)}function ES(t){const e=[];let o,r;for(o=0,r=t.length;o<r;o++)t[o].major&&e.push(o);return e}function RS(t,e,o,r){let n=0,i=o[0],a;for(r=Math.ceil(r),a=0;a<t.length;a++)a===i&&(e.push(t[a]),n++,i=o[n*r])}function ii(t,e,o,r,n){const i=se(r,0),a=Math.min(se(n,t.length),t.length);let l=0,c,d,u;for(o=Math.ceil(o),n&&(c=n-r,o=c/Math.floor(c/o)),u=i;u<0;)l++,u=Math.round(i+l*o);for(d=Math.max(i,0);d<a;d++)d===u&&(e.push(t[d]),l++,u=Math.round(i+l*o))}function OS(t){const e=t.length;let o,r;if(e<2)return!1;for(r=t[0],o=1;o<e;++o)if(t[o]-t[o-1]!==r)return!1;return r}const DS=t=>t==="left"?"right":t==="right"?"left":t,vu=(t,e,o)=>e==="top"||e==="left"?t[e]+o:t[e]-o,wu=(t,e)=>Math.min(e||t,t);function Cu(t,e){const o=[],r=t.length/e,n=t.length;let i=0;for(;i<n;i+=r)o.push(t[Math.floor(i)]);return o}function NS(t,e,o){const r=t.ticks.length,n=Math.min(e,r-1),i=t._startPixel,a=t._endPixel,l=1e-6;let c=t.getPixelForTick(n),d;if(!(o&&(r===1?d=Math.max(c-i,a-c):e===0?d=(t.getPixelForTick(1)-c)/2:d=(c-t.getPixelForTick(n-1))/2,c+=n<e?d:-d,c<i-l||c>a+l)))return c}function TS(t,e){ye(t,o=>{const r=o.gc,n=r.length/2;let i;if(n>e){for(i=0;i<n;++i)delete o.data[r[i]];r.splice(0,n)}})}function en(t){return t.drawTicks?t.tickLength:0}function _u(t,e){if(!t.display)return 0;const o=Ie(t.font,e),r=Xe(t.padding);return(Oe(t.text)?t.text.length:1)*o.lineHeight+r.height}function PS(t,e){return co(t,{scale:e,type:"scale"})}function AS(t,e,o){return co(t,{tick:o,index:e,type:"tick"})}function $S(t,e,o){let r=va(t);return(o&&e!=="right"||!o&&e==="right")&&(r=DS(r)),r}function MS(t,e,o,r){const{top:n,left:i,bottom:a,right:l,chart:c}=t,{chartArea:d,scales:u}=c;let f=0,h,g,m;const p=a-n,b=l-i;if(t.isHorizontal()){if(g=Ye(r,i,l),de(o)){const y=Object.keys(o)[0],x=o[y];m=u[y].getPixelForValue(x)+p-e}else o==="center"?m=(d.bottom+d.top)/2+p-e:m=vu(t,o,e);h=l-i}else{if(de(o)){const y=Object.keys(o)[0],x=o[y];g=u[y].getPixelForValue(x)-b+e}else o==="center"?g=(d.left+d.right)/2-b+e:g=vu(t,o,e);m=Ye(r,a,n),f=o==="left"?-$e:$e}return{titleX:g,titleY:m,maxWidth:h,rotation:f}}class fo extends Dt{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,o){return e}getUserBounds(){let{_userMin:e,_userMax:o,_suggestedMin:r,_suggestedMax:n}=this;return e=at(e,Number.POSITIVE_INFINITY),o=at(o,Number.NEGATIVE_INFINITY),r=at(r,Number.POSITIVE_INFINITY),n=at(n,Number.NEGATIVE_INFINITY),{min:at(e,r),max:at(o,n),minDefined:Pe(e),maxDefined:Pe(o)}}getMinMax(e){let{min:o,max:r,minDefined:n,maxDefined:i}=this.getUserBounds(),a;if(n&&i)return{min:o,max:r};const l=this.getMatchingVisibleMetas();for(let c=0,d=l.length;c<d;++c)a=l[c].controller.getMinMax(this,e),n||(o=Math.min(o,a.min)),i||(r=Math.max(r,a.max));return o=i&&o>r?r:o,r=n&&o>r?o:r,{min:at(o,at(r,o)),max:at(r,at(o,r))}}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(){we(this.options.beforeUpdate,[this])}update(e,o,r){const{beginAtZero:n,grace:i,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=o,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=J_(this,i,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?Cu(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=_S(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,o,r;this.isHorizontal()?(o=this.left,r=this.right):(o=this.top,r=this.bottom,e=!e),this._startPixel=o,this._endPixel=r,this._reversePixels=e,this._length=r-o,this._alignToPixels=this.options.alignToPixels}afterUpdate(){we(this.options.afterUpdate,[this])}beforeSetDimensions(){we(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(){we(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),we(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){we(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const o=this.options.ticks;let r,n,i;for(r=0,n=e.length;r<n;r++)i=e[r],i.label=we(o.callback,[i.value,r,e],this)}afterTickToLabelConversion(){we(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){we(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,o=e.ticks,r=wu(this.ticks.length,e.ticks.maxTicksLimit),n=o.minRotation||0,i=o.maxRotation;let a=n,l,c,d;if(!this._isVisible()||!o.display||n>=i||r<=1||!this.isHorizontal()){this.labelRotation=n;return}const u=this._getLabelSizes(),f=u.widest.width,h=u.highest.height,g=je(this.chart.width-f,0,this.maxWidth);l=e.offset?this.maxWidth/r:g/(r-1),f+6>l&&(l=g/(r-(e.offset?.5:1)),c=this.maxHeight-en(e.grid)-o.padding-_u(e.title,this.chart.options.font),d=Math.sqrt(f*f+h*h),a=ya(Math.min(Math.asin(je((u.highest.height+6)/l,-1,1)),Math.asin(je(c/d,-1,1))-Math.asin(je(h/d,-1,1)))),a=Math.max(n,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){we(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){we(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:o,options:{ticks:r,title:n,grid:i}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const c=_u(n,o.options.font);if(l?(e.width=this.maxWidth,e.height=en(i)+c):(e.height=this.maxHeight,e.width=en(i)+c),r.display&&this.ticks.length){const{first:d,last:u,widest:f,highest:h}=this._getLabelSizes(),g=r.padding*2,m=xt(this.labelRotation),p=Math.cos(m),b=Math.sin(m);if(l){const y=r.mirror?0:b*f.width+p*h.height;e.height=Math.min(this.maxHeight,e.height+y+g)}else{const y=r.mirror?0:p*f.width+b*h.height;e.width=Math.min(this.maxWidth,e.width+y+g)}this._calculatePadding(d,u,b,p)}}this._handleMargins(),l?(this.width=this._length=o.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=o.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,o,r,n){const{ticks:{align:i,padding:a},position:l}=this.options,c=this.labelRotation!==0,d=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,g=0;c?d?(h=n*e.width,g=r*o.height):(h=r*e.height,g=n*o.width):i==="start"?g=o.width:i==="end"?h=e.width:i!=="inner"&&(h=e.width/2,g=o.width/2),this.paddingLeft=Math.max((h-u+a)*this.width/(this.width-u),0),this.paddingRight=Math.max((g-f+a)*this.width/(this.width-f),0)}else{let u=o.height/2,f=e.height/2;i==="start"?(u=0,f=e.height):i==="end"&&(u=o.height,f=0),this.paddingTop=u+a,this.paddingBottom=f+a}}_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(){we(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:o}=this.options;return o==="top"||o==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let o,r;for(o=0,r=e.length;o<r;o++)fe(e[o].label)&&(e.splice(o,1),r--,o--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const o=this.options.ticks.sampleSize;let r=this.ticks;o<r.length&&(r=Cu(r,o)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,o,r){const{ctx:n,_longestTextCache:i}=this,a=[],l=[],c=Math.floor(o/wu(o,r));let d=0,u=0,f,h,g,m,p,b,y,x,C,B,w;for(f=0;f<o;f+=c){if(m=e[f].label,p=this._resolveTickFontOptions(f),n.font=b=p.string,y=i[b]=i[b]||{data:{},gc:[]},x=p.lineHeight,C=B=0,!fe(m)&&!Oe(m))C=Xn(n,y.data,y.gc,C,m),B=x;else if(Oe(m))for(h=0,g=m.length;h<g;++h)w=m[h],!fe(w)&&!Oe(w)&&(C=Xn(n,y.data,y.gc,C,w),B+=x);a.push(C),l.push(B),d=Math.max(C,d),u=Math.max(B,u)}TS(i,o);const _=a.indexOf(d),v=l.indexOf(u),k=S=>({width:a[S]||0,height:l[S]||0});return{first:k(0),last:k(o-1),widest:k(_),highest:k(v),widths:a,heights:l}}getLabelForValue(e){return e}getPixelForValue(e,o){return NaN}getValueForPixel(e){}getPixelForTick(e){const o=this.ticks;return e<0||e>o.length-1?null:this.getPixelForValue(o[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const o=this._startPixel+e*this._length;return E_(this._alignToPixels?Eo(this.chart,o,0):o)}getDecimalForPixel(e){const o=(e-this._startPixel)/this._length;return this._reversePixels?1-o:o}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:o}=this;return e<0&&o<0?o:e>0&&o>0?e:0}getContext(e){const o=this.ticks||[];if(e>=0&&e<o.length){const r=o[e];return r.$context||(r.$context=AS(this.getContext(),e,r))}return this.$context||(this.$context=PS(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,o=xt(this.labelRotation),r=Math.abs(Math.cos(o)),n=Math.abs(Math.sin(o)),i=this._getLabelSizes(),a=e.autoSkipPadding||0,l=i?i.widest.width+a:0,c=i?i.highest.height+a:0;return this.isHorizontal()?c*r>l*n?l/r:c/n:c*n<l*r?c/r:l/n}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const o=this.axis,r=this.chart,n=this.options,{grid:i,position:a,border:l}=n,c=i.offset,d=this.isHorizontal(),f=this.ticks.length+(c?1:0),h=en(i),g=[],m=l.setContext(this.getContext()),p=m.display?m.width:0,b=p/2,y=function(A){return Eo(r,A,p)};let x,C,B,w,_,v,k,S,N,E,D,M;if(a==="top")x=y(this.bottom),v=this.bottom-h,S=x-b,E=y(e.top)+b,M=e.bottom;else if(a==="bottom")x=y(this.top),E=e.top,M=y(e.bottom)-b,v=x+b,S=this.top+h;else if(a==="left")x=y(this.right),_=this.right-h,k=x-b,N=y(e.left)+b,D=e.right;else if(a==="right")x=y(this.left),N=e.left,D=y(e.right)-b,_=x+b,k=this.left+h;else if(o==="x"){if(a==="center")x=y((e.top+e.bottom)/2+.5);else if(de(a)){const A=Object.keys(a)[0],W=a[A];x=y(this.chart.scales[A].getPixelForValue(W))}E=e.top,M=e.bottom,v=x+b,S=v+h}else if(o==="y"){if(a==="center")x=y((e.left+e.right)/2);else if(de(a)){const A=Object.keys(a)[0],W=a[A];x=y(this.chart.scales[A].getPixelForValue(W))}_=x-b,k=_-h,N=e.left,D=e.right}const T=se(n.ticks.maxTicksLimit,f),F=Math.max(1,Math.ceil(f/T));for(C=0;C<f;C+=F){const A=this.getContext(C),W=i.setContext(A),z=l.setContext(A),$=W.lineWidth,j=W.color,J=z.dash||[],oe=z.dashOffset,ne=W.tickWidth,X=W.tickColor,Q=W.tickBorderDash||[],ie=W.tickBorderDashOffset;B=NS(this,C,c),B!==void 0&&(w=Eo(r,B,$),d?_=k=N=D=w:v=S=E=M=w,g.push({tx1:_,ty1:v,tx2:k,ty2:S,x1:N,y1:E,x2:D,y2:M,width:$,color:j,borderDash:J,borderDashOffset:oe,tickWidth:ne,tickColor:X,tickBorderDash:Q,tickBorderDashOffset:ie}))}return this._ticksLength=f,this._borderValue=x,g}_computeLabelItems(e){const o=this.axis,r=this.options,{position:n,ticks:i}=r,a=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:d,padding:u,mirror:f}=i,h=en(r.grid),g=h+u,m=f?-u:g,p=-xt(this.labelRotation),b=[];let y,x,C,B,w,_,v,k,S,N,E,D,M="middle";if(n==="top")_=this.bottom-m,v=this._getXAxisLabelAlignment();else if(n==="bottom")_=this.top+m,v=this._getXAxisLabelAlignment();else if(n==="left"){const F=this._getYAxisLabelAlignment(h);v=F.textAlign,w=F.x}else if(n==="right"){const F=this._getYAxisLabelAlignment(h);v=F.textAlign,w=F.x}else if(o==="x"){if(n==="center")_=(e.top+e.bottom)/2+g;else if(de(n)){const F=Object.keys(n)[0],A=n[F];_=this.chart.scales[F].getPixelForValue(A)+g}v=this._getXAxisLabelAlignment()}else if(o==="y"){if(n==="center")w=(e.left+e.right)/2-g;else if(de(n)){const F=Object.keys(n)[0],A=n[F];w=this.chart.scales[F].getPixelForValue(A)}v=this._getYAxisLabelAlignment(h).textAlign}o==="y"&&(c==="start"?M="top":c==="end"&&(M="bottom"));const T=this._getLabelSizes();for(y=0,x=l.length;y<x;++y){C=l[y],B=C.label;const F=i.setContext(this.getContext(y));k=this.getPixelForTick(y)+i.labelOffset,S=this._resolveTickFontOptions(y),N=S.lineHeight,E=Oe(B)?B.length:1;const A=E/2,W=F.color,z=F.textStrokeColor,$=F.textStrokeWidth;let j=v;a?(w=k,v==="inner"&&(y===x-1?j=this.options.reverse?"left":"right":y===0?j=this.options.reverse?"right":"left":j="center"),n==="top"?d==="near"||p!==0?D=-E*N+N/2:d==="center"?D=-T.highest.height/2-A*N+N:D=-T.highest.height+N/2:d==="near"||p!==0?D=N/2:d==="center"?D=T.highest.height/2-A*N:D=T.highest.height-E*N,f&&(D*=-1),p!==0&&!F.showLabelBackdrop&&(w+=N/2*Math.sin(p))):(_=k,D=(1-E)*N/2);let J;if(F.showLabelBackdrop){const oe=Xe(F.backdropPadding),ne=T.heights[y],X=T.widths[y];let Q=D-oe.top,ie=0-oe.left;switch(M){case"middle":Q-=ne/2;break;case"bottom":Q-=ne;break}switch(v){case"center":ie-=X/2;break;case"right":ie-=X;break;case"inner":y===x-1?ie-=X:y>0&&(ie-=X/2);break}J={left:ie,top:Q,width:X+oe.width,height:ne+oe.height,color:F.backdropColor}}b.push({label:B,font:S,textOffset:D,options:{rotation:p,color:W,strokeColor:z,strokeWidth:$,textAlign:j,textBaseline:M,translation:[w,_],backdrop:J}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:o}=this.options;if(-xt(this.labelRotation))return e==="top"?"left":"right";let n="center";return o.align==="start"?n="left":o.align==="end"?n="right":o.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:o,ticks:{crossAlign:r,mirror:n,padding:i}}=this.options,a=this._getLabelSizes(),l=e+i,c=a.widest.width;let d,u;return o==="left"?n?(u=this.right+i,r==="near"?d="left":r==="center"?(d="center",u+=c/2):(d="right",u+=c)):(u=this.right-l,r==="near"?d="right":r==="center"?(d="center",u-=c/2):(d="left",u=this.left)):o==="right"?n?(u=this.left+i,r==="near"?d="right":r==="center"?(d="center",u-=c/2):(d="left",u-=c)):(u=this.left+l,r==="near"?d="left":r==="center"?(d="center",u+=c/2):(d="right",u=this.right)):d="right",{textAlign:d,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,o=this.options.position;if(o==="left"||o==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(o==="top"||o==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:o},left:r,top:n,width:i,height:a}=this;o&&(e.save(),e.fillStyle=o,e.fillRect(r,n,i,a),e.restore())}getLineWidthForValue(e){const o=this.options.grid;if(!this._isVisible()||!o.display)return 0;const n=this.ticks.findIndex(i=>i.value===e);return n>=0?o.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){const o=this.options.grid,r=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,a;const l=(c,d,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(c.x,c.y),r.lineTo(d.x,d.y),r.stroke(),r.restore())};if(o.display)for(i=0,a=n.length;i<a;++i){const c=n[i];o.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),o.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:o,options:{border:r,grid:n}}=this,i=r.setContext(this.getContext()),a=r.display?i.width:0;if(!a)return;const l=n.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let d,u,f,h;this.isHorizontal()?(d=Eo(e,this.left,a)-a/2,u=Eo(e,this.right,l)+l/2,f=h=c):(f=Eo(e,this.top,a)-a/2,h=Eo(e,this.bottom,l)+l/2,d=u=c),o.save(),o.lineWidth=i.width,o.strokeStyle=i.color,o.beginPath(),o.moveTo(d,f),o.lineTo(u,h),o.stroke(),o.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,n=this._computeLabelArea();n&&Kn(r,n);const i=this.getLabelItems(e);for(const a of i){const l=a.options,c=a.font,d=a.label,u=a.textOffset;Ro(r,d,0,u,c,l)}n&&Gn(r)}drawTitle(){const{ctx:e,options:{position:o,title:r,reverse:n}}=this;if(!r.display)return;const i=Ie(r.font),a=Xe(r.padding),l=r.align;let c=i.lineHeight/2;o==="bottom"||o==="center"||de(o)?(c+=a.bottom,Oe(r.text)&&(c+=i.lineHeight*(r.text.length-1))):c+=a.top;const{titleX:d,titleY:u,maxWidth:f,rotation:h}=MS(this,c,o,l);Ro(e,r.text,0,0,i,{color:r.color,maxWidth:f,rotation:h,textAlign:$S(l,o,n),textBaseline:"middle",translation:[d,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,o=e.ticks&&e.ticks.z||0,r=se(e.grid&&e.grid.z,-1),n=se(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==fo.prototype.draw?[{z:o,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:o,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const o=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",n=[];let i,a;for(i=0,a=o.length;i<a;++i){const l=o[i];l[r]===this.id&&(!e||l.type===e)&&n.push(l)}return n}_resolveTickFontOptions(e){const o=this.options.ticks.setContext(this.getContext(e));return Ie(o.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class ai{constructor(e,o,r){this.type=e,this.scope=o,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const o=Object.getPrototypeOf(e);let r;LS(o)&&(r=this.register(o));const n=this.items,i=e.id,a=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in n||(n[i]=e,FS(e,a,r),this.override&&Be.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const o=this.items,r=e.id,n=this.scope;r in o&&delete o[r],n&&r in Be[n]&&(delete Be[n][r],this.override&&delete Bo[r])}}function FS(t,e,o){const r=Tr(Object.create(null),[o?Be.get(o):{},Be.get(e),t.defaults]);Be.set(e,r),t.defaultRoutes&&VS(e,t.defaultRoutes),t.descriptors&&Be.describe(e,t.descriptors)}function VS(t,e){Object.keys(e).forEach(o=>{const r=o.split("."),n=r.pop(),i=[t].concat(r).join("."),a=e[o].split("."),l=a.pop(),c=a.join(".");Be.route(i,n,c,l)})}function LS(t){return"id"in t&&"defaults"in t}class IS{constructor(){this.controllers=new ai(ut,"datasets",!0),this.elements=new ai(Dt,"elements"),this.plugins=new ai(Object,"plugins"),this.scales=new ai(fo,"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,o,r){[...o].forEach(n=>{const i=r||this._getRegistryForType(n);r||i.isForType(n)||i===this.plugins&&n.id?this._exec(e,i,n):ye(n,a=>{const l=r||this._getRegistryForType(a);this._exec(e,l,a)})})}_exec(e,o,r){const n=ba(e);we(r["before"+n],[],r),o[e](r),we(r["after"+n],[],r)}_getRegistryForType(e){for(let o=0;o<this._typedRegistries.length;o++){const r=this._typedRegistries[o];if(r.isForType(e))return r}return this.plugins}_get(e,o,r){const n=o.get(e);if(n===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return n}}var vt=new IS;class zS{constructor(){this._init=[]}notify(e,o,r,n){o==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const i=n?this._descriptors(e).filter(n):this._descriptors(e),a=this._notify(i,e,o,r);return o==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),a}_notify(e,o,r,n){n=n||{};for(const i of e){const a=i.plugin,l=a[r],c=[o,n,i.options];if(we(l,c,a)===!1&&n.cancelable)return!1}return!0}invalidate(){fe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const o=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),o}_createDescriptors(e,o){const r=e&&e.config,n=se(r.options&&r.options.plugins,{}),i=jS(r);return n===!1&&!o?[]:HS(e,i,n,o)}_notifyStateChanges(e){const o=this._oldCache||[],r=this._cache,n=(i,a)=>i.filter(l=>!a.some(c=>l.plugin.id===c.plugin.id));this._notify(n(o,r),e,"stop"),this._notify(n(r,o),e,"start")}}function jS(t){const e={},o=[],r=Object.keys(vt.plugins.items);for(let i=0;i<r.length;i++)o.push(vt.getPlugin(r[i]));const n=t.plugins||[];for(let i=0;i<n.length;i++){const a=n[i];o.indexOf(a)===-1&&(o.push(a),e[a.id]=!0)}return{plugins:o,localIds:e}}function WS(t,e){return!e&&t===!1?null:t===!0?{}:t}function HS(t,{plugins:e,localIds:o},r,n){const i=[],a=t.getContext();for(const l of e){const c=l.id,d=WS(r[c],n);d!==null&&i.push({plugin:l,options:US(t.config,{plugin:l,local:o[c]},d,a)})}return i}function US(t,{plugin:e,local:o},r,n){const i=t.pluginScopeKeys(e),a=t.getOptionScopes(r,i);return o&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Wa(t,e){const o=Be.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||o.indexAxis||"x"}function qS(t,e){let o=t;return t==="_index_"?o=e:t==="_value_"&&(o=e==="x"?"y":"x"),o}function YS(t,e){return t===e?"_index_":"_value_"}function Su(t){if(t==="x"||t==="y"||t==="r")return t}function XS(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Ha(t,...e){if(Su(t))return t;for(const o of e){const r=o.axis||XS(o.position)||t.length>1&&Su(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Bu(t,e,o){if(o[e+"AxisID"]===t)return{axis:e}}function KS(t,e){if(e.data&&e.data.datasets){const o=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(o.length)return Bu(t,"x",o[0])||Bu(t,"y",o[0])}return{}}function GS(t,e){const o=Bo[t.type]||{scales:{}},r=e.scales||{},n=Wa(t.type,e),i=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!de(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=Ha(a,l,KS(a,t),Be.scales[l.type]),d=YS(c,n),u=o.scales||{};i[a]=Pr(Object.create(null),[{axis:c},l,u[c],u[d]])}),t.data.datasets.forEach(a=>{const l=a.type||t.type,c=a.indexAxis||Wa(l,e),u=(Bo[l]||{}).scales||{};Object.keys(u).forEach(f=>{const h=qS(f,c),g=a[h+"AxisID"]||h;i[g]=i[g]||Object.create(null),Pr(i[g],[{axis:h},r[g],u[f]])})}),Object.keys(i).forEach(a=>{const l=i[a];Pr(l,[Be.scales[l.type],Be.scale])}),i}function Eu(t){const e=t.options||(t.options={});e.plugins=se(e.plugins,{}),e.scales=GS(t,e)}function Ru(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function QS(t){return t=t||{},t.data=Ru(t.data),Eu(t),t}const Ou=new Map,Du=new Set;function si(t,e){let o=Ou.get(t);return o||(o=e(),Ou.set(t,o),Du.add(o)),o}const tn=(t,e,o)=>{const r=ao(e,o);r!==void 0&&t.add(r)};class JS{constructor(e){this._config=QS(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=Ru(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(),Eu(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return si(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,o){return si(`${e}.transition.${o}`,()=>[[`datasets.${e}.transitions.${o}`,`transitions.${o}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,o){return si(`${e}-${o}`,()=>[[`datasets.${e}.elements.${o}`,`datasets.${e}`,`elements.${o}`,""]])}pluginScopeKeys(e){const o=e.id,r=this.type;return si(`${r}-plugin-${o}`,()=>[[`plugins.${o}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,o){const r=this._scopeCache;let n=r.get(e);return(!n||o)&&(n=new Map,r.set(e,n)),n}getOptionScopes(e,o,r){const{options:n,type:i}=this,a=this._cachedScopes(e,r),l=a.get(o);if(l)return l;const c=new Set;o.forEach(u=>{e&&(c.add(e),u.forEach(f=>tn(c,e,f))),u.forEach(f=>tn(c,n,f)),u.forEach(f=>tn(c,Bo[i]||{},f)),u.forEach(f=>tn(c,Be,f)),u.forEach(f=>tn(c,_a,f))});const d=Array.from(c);return d.length===0&&d.push(Object.create(null)),Du.has(o)&&a.set(o,d),d}chartOptionScopes(){const{options:e,type:o}=this;return[e,Bo[o]||{},Be.datasets[o]||{},{type:o},Be,_a]}resolveNamedOptions(e,o,r,n=[""]){const i={$shared:!0},{resolver:a,subPrefixes:l}=Nu(this._resolverCache,e,n);let c=a;if(eB(a,o)){i.$shared=!1,r=so(r)?r():r;const d=this.createResolver(e,r,l);c=Xo(a,r,d)}for(const d of o)i[d]=c[d];return i}createResolver(e,o,r=[""],n){const{resolver:i}=Nu(this._resolverCache,e,r);return de(o)?Xo(i,o,void 0,n):i}}function Nu(t,e,o){let r=t.get(e);r||(r=new Map,t.set(e,r));const n=o.join();let i=r.get(n);return i||(i={resolver:Ra(e,o),subPrefixes:o.filter(l=>!l.toLowerCase().includes("hover"))},r.set(n,i)),i}const ZS=t=>de(t)&&Object.getOwnPropertyNames(t).some(e=>so(t[e]));function eB(t,e){const{isScriptable:o,isIndexable:r}=Od(t);for(const n of e){const i=o(n),a=r(n),l=(a||i)&&t[n];if(i&&(so(l)||ZS(l))||a&&Oe(l))return!0}return!1}var tB="4.4.7";const oB=["top","bottom","left","right","chartArea"];function Tu(t,e){return t==="top"||t==="bottom"||oB.indexOf(t)===-1&&e==="x"}function Pu(t,e){return function(o,r){return o[t]===r[t]?o[e]-r[e]:o[t]-r[t]}}function Au(t){const e=t.chart,o=e.options.animation;e.notifyPlugins("afterRender"),we(o&&o.onComplete,[t],e)}function rB(t){const e=t.chart,o=e.options.animation;we(o&&o.onProgress,[t],e)}function $u(t){return Na()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const li={},Mu=t=>{const e=$u(t);return Object.values(li).filter(o=>o.canvas===e).pop()};function nB(t,e,o){const r=Object.keys(t);for(const n of r){const i=+n;if(i>=e){const a=t[n];delete t[n],(o>0||i>e)&&(t[i+o]=a)}}}function iB(t,e,o,r){return!o||t.type==="mouseout"?null:r?e:t}function ci(t,e,o){return t.options.clip?t[o]:e[o]}function aB(t,e){const{xScale:o,yScale:r}=t;return o&&r?{left:ci(o,e,"left"),right:ci(o,e,"right"),top:ci(r,e,"top"),bottom:ci(r,e,"bottom")}:e}class Nt{static register(...e){vt.add(...e),Fu()}static unregister(...e){vt.remove(...e),Fu()}constructor(e,o){const r=this.config=new JS(o),n=$u(e),i=Mu(n);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 a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||xu(n)),this.platform.updateConfig(r);const l=this.platform.acquireContext(n,a.aspectRatio),c=l&&l.canvas,d=c&&c.height,u=c&&c.width;if(this.id=m_(),this.ctx=l,this.canvas=c,this.width=u,this.height=d,this._options=a,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 zS,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=N_(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],li[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Ot.listen(this,"complete",Au),Ot.listen(this,"progress",rB),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:o},width:r,height:n,_aspectRatio:i}=this;return fe(e)?o&&i?i:n?r/n: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 vt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Fd(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Bd(this.canvas,this.ctx),this}stop(){return Ot.stop(this),this}resize(e,o){Ot.running(this)?this._resizeBeforeDraw={width:e,height:o}:this._resize(e,o)}_resize(e,o){const r=this.options,n=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(n,e,o,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Fd(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),we(r.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const o=this.options.scales||{};ye(o,(r,n)=>{r.id=n})}buildOrUpdateScales(){const e=this.options,o=e.scales,r=this.scales,n=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let i=[];o&&(i=i.concat(Object.keys(o).map(a=>{const l=o[a],c=Ha(a,l),d=c==="r",u=c==="x";return{options:l,dposition:d?"chartArea":u?"bottom":"left",dtype:d?"radialLinear":u?"category":"linear"}}))),ye(i,a=>{const l=a.options,c=l.id,d=Ha(c,l),u=se(l.type,a.dtype);(l.position===void 0||Tu(l.position,d)!==Tu(a.dposition))&&(l.position=a.dposition),n[c]=!0;let f=null;if(c in r&&r[c].type===u)f=r[c];else{const h=vt.getScale(u);f=new h({id:c,type:u,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,e)}),ye(n,(a,l)=>{a||delete r[l]}),ye(r,a=>{We.configure(this,a,a.options),We.addBox(this,a)})}_updateMetasets(){const e=this._metasets,o=this.data.datasets.length,r=e.length;if(e.sort((n,i)=>n.index-i.index),r>o){for(let n=o;n<r;++n)this._destroyDatasetMeta(n);e.splice(o,r-o)}this._sortedMetasets=e.slice(0).sort(Pu("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:o}}=this;e.length>o.length&&delete this._stacks,e.forEach((r,n)=>{o.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const e=[],o=this.data.datasets;let r,n;for(this._removeUnreferencedMetasets(),r=0,n=o.length;r<n;r++){const i=o[r];let a=this.getDatasetMeta(r);const l=i.type||this.config.type;if(a.type&&a.type!==l&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=l,a.indexAxis=i.indexAxis||Wa(l,this.options),a.order=i.order||0,a.index=r,a.label=""+i.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const c=vt.getController(l),{datasetElementType:d,dataElementType:u}=Be.datasets[l];Object.assign(c,{dataElementType:vt.getElement(u),datasetElementType:d&&vt.getElement(d)}),a.controller=new c(this,r),e.push(a.controller)}}return this._updateMetasets(),e}_resetElements(){ye(this.data.datasets,(e,o)=>{this.getDatasetMeta(o).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const o=this.config;o.update();const r=this._options=o.createResolver(o.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!r.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 a=0;for(let d=0,u=this.data.datasets.length;d<u;d++){const{controller:f}=this.getDatasetMeta(d),h=!n&&i.indexOf(f)===-1;f.buildOrUpdateElements(h),a=Math.max(+f.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),n||ye(i,d=>{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Pu("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ye(this.scales,e=>{We.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,o=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!ld(o,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,o=this._getUniformDataChanges()||[];for(const{method:r,start:n,count:i}of o){const a=r==="_removeElements"?-i:i;nB(e,n,a)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const o=this.data.datasets.length,r=i=>new Set(e.filter(a=>a[0]===i).map((a,l)=>l+","+a.splice(1).join(","))),n=r(0);for(let i=1;i<o;i++)if(!ld(n,r(i)))return;return Array.from(n).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;We.update(this,this.width,this.height,e);const o=this.chartArea,r=o.width<=0||o.height<=0;this._layers=[],ye(this.boxes,n=>{r&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,i)=>{n._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let o=0,r=this.data.datasets.length;o<r;++o)this.getDatasetMeta(o).controller.configure();for(let o=0,r=this.data.datasets.length;o<r;++o)this._updateDataset(o,so(e)?e({datasetIndex:o}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,o){const r=this.getDatasetMeta(e),n={meta:r,index:e,mode:o,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",n)!==!1&&(r.controller._update(o),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Ot.has(this)?this.attached&&!Ot.running(this)&&Ot.start(this):(this.draw(),Au({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:n}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,n)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const o=this._layers;for(e=0;e<o.length&&o[e].z<=0;++e)o[e].draw(this.chartArea);for(this._drawDatasets();e<o.length;++e)o[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const o=this._sortedMetasets,r=[];let n,i;for(n=0,i=o.length;n<i;++n){const a=o[n];(!e||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let o=e.length-1;o>=0;--o)this._drawDataset(e[o]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const o=this.ctx,r=e._clip,n=!r.disabled,i=aB(e,this.chartArea),a={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(n&&Kn(o,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),e.controller.draw(),n&&Gn(o),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(e){return Ut(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,o,r,n){const i=lu.modes[o];return typeof i=="function"?i(this,e,r,n):[]}getDatasetMeta(e){const o=this.data.datasets[e],r=this._metasets;let n=r.filter(i=>i&&i._dataset===o).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:o&&o.order||0,index:e,_dataset:o,_parsed:[],_sorted:!1},r.push(n)),n}getContext(){return this.$context||(this.$context=co(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const o=this.data.datasets[e];if(!o)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!o.hidden}setDatasetVisibility(e,o){const r=this.getDatasetMeta(e);r.hidden=!o}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,o,r){const n=r?"show":"hide",i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,n);Ar(o)?(i.data[o].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),a.update(i,{visible:r}),this.update(l=>l.datasetIndex===e?n:void 0))}hide(e,o){this._updateVisibility(e,o,!1)}show(e,o){this._updateVisibility(e,o,!0)}_destroyDatasetMeta(e){const o=this._metasets[e];o&&o.controller&&o.controller._destroy(),delete this._metasets[e]}_stop(){let e,o;for(this.stop(),Ot.remove(this),e=0,o=this.data.datasets.length;e<o;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:o}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Bd(e,o),this.platform.releaseContext(o),this.canvas=null,this.ctx=null),delete li[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,o=this.platform,r=(i,a)=>{o.addEventListener(this,i,a),e[i]=a},n=(i,a,l)=>{i.offsetX=a,i.offsetY=l,this._eventHandler(i)};ye(this.options.events,i=>r(i,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,o=this.platform,r=(c,d)=>{o.addEventListener(this,c,d),e[c]=d},n=(c,d)=>{e[c]&&(o.removeEventListener(this,c,d),delete e[c])},i=(c,d)=>{this.canvas&&this.resize(c,d)};let a;const l=()=>{n("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,n("resize",i),this._stop(),this._resize(0,0),r("attach",l)},o.isAttached(this.canvas)?l():a()}unbindEvents(){ye(this._listeners,(e,o)=>{this.platform.removeEventListener(this,o,e)}),this._listeners={},ye(this._responsiveListeners,(e,o)=>{this.platform.removeEventListener(this,o,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,o,r){const n=r?"set":"remove";let i,a,l,c;for(o==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+n+"DatasetHoverStyle"]()),l=0,c=e.length;l<c;++l){a=e[l];const d=a&&this.getDatasetMeta(a.datasetIndex).controller;d&&d[n+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const o=this._active||[],r=e.map(({datasetIndex:i,index:a})=>{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[a],index:a}});!Hn(r,o)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,o))}notifyPlugins(e,o,r){return this._plugins.notify(this,e,o,r)}isPluginEnabled(e){return this._plugins._cache.filter(o=>o.plugin.id===e).length===1}_updateHoverStyles(e,o,r){const n=this.options.hover,i=(c,d)=>c.filter(u=>!d.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),a=i(o,e),l=r?e:i(e,o);a.length&&this.updateHoverStyle(a,n.mode,!1),l.length&&n.mode&&this.updateHoverStyle(l,n.mode,!0)}_eventHandler(e,o){const r={event:e,replay:o,cancelable:!0,inChartArea:this.isPointInArea(e)},n=a=>(a.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,n)===!1)return;const i=this._handleEvent(e,o,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,n),(i||r.changed)&&this.render(),this}_handleEvent(e,o,r){const{_active:n=[],options:i}=this,a=o,l=this._getActiveElements(e,n,r,a),c=v_(e),d=iB(e,this._lastEvent,r,c);r&&(this._lastEvent=null,we(i.onHover,[e,l,this],this),c&&we(i.onClick,[e,l,this],this));const u=!Hn(l,n);return(u||o)&&(this._active=l,this._updateHoverStyles(l,n,o)),this._lastEvent=d,u}_getActiveElements(e,o,r,n){if(e.type==="mouseout")return[];if(!r)return o;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,n)}}H(Nt,"defaults",Be),H(Nt,"instances",li),H(Nt,"overrides",Bo),H(Nt,"registry",vt),H(Nt,"version",tB),H(Nt,"getChart",Mu);function Fu(){return ye(Nt.instances,t=>t._plugins.invalidate())}function sB(t,e,o){const{startAngle:r,pixelMargin:n,x:i,y:a,outerRadius:l,innerRadius:c}=e;let d=n/l;t.beginPath(),t.arc(i,a,l,r-d,o+d),c>n?(d=n/c,t.arc(i,a,c,o+d,r-d,!0)):t.arc(i,a,n,o+$e,r-$e),t.closePath(),t.clip()}function lB(t){return Ea(t,["outerStart","outerEnd","innerStart","innerEnd"])}function cB(t,e,o,r){const n=lB(t.options.borderRadius),i=(o-e)/2,a=Math.min(i,r*e/2),l=c=>{const d=(o-Math.min(i,c))*r/2;return je(c,0,Math.min(i,d))};return{outerStart:l(n.outerStart),outerEnd:l(n.outerEnd),innerStart:je(n.innerStart,0,a),innerEnd:je(n.innerEnd,0,a)}}function Jo(t,e,o,r){return{x:o+t*Math.cos(e),y:r+t*Math.sin(e)}}function di(t,e,o,r,n,i){const{x:a,y:l,startAngle:c,pixelMargin:d,innerRadius:u}=e,f=Math.max(e.outerRadius+r+o-d,0),h=u>0?u+r+o+d:0;let g=0;const m=n-c;if(r){const F=u>0?u-r:0,A=f>0?f-r:0,W=(F+A)/2,z=W!==0?m*W/(W+r):m;g=(m-z)/2}const p=Math.max(.001,m*f-o/_e)/f,b=(m-p)/2,y=c+b+g,x=n-b-g,{outerStart:C,outerEnd:B,innerStart:w,innerEnd:_}=cB(e,h,f,x-y),v=f-C,k=f-B,S=y+C/v,N=x-B/k,E=h+w,D=h+_,M=y+w/E,T=x-_/D;if(t.beginPath(),i){const F=(S+N)/2;if(t.arc(a,l,f,S,F),t.arc(a,l,f,F,N),B>0){const $=Jo(k,N,a,l);t.arc($.x,$.y,B,N,x+$e)}const A=Jo(D,x,a,l);if(t.lineTo(A.x,A.y),_>0){const $=Jo(D,T,a,l);t.arc($.x,$.y,_,x+$e,T+Math.PI)}const W=(x-_/h+(y+w/h))/2;if(t.arc(a,l,h,x-_/h,W,!0),t.arc(a,l,h,W,y+w/h,!0),w>0){const $=Jo(E,M,a,l);t.arc($.x,$.y,w,M+Math.PI,y-$e)}const z=Jo(v,y,a,l);if(t.lineTo(z.x,z.y),C>0){const $=Jo(v,S,a,l);t.arc($.x,$.y,C,y-$e,S)}}else{t.moveTo(a,l);const F=Math.cos(S)*f+a,A=Math.sin(S)*f+l;t.lineTo(F,A);const W=Math.cos(N)*f+a,z=Math.sin(N)*f+l;t.lineTo(W,z)}t.closePath()}function dB(t,e,o,r,n){const{fullCircles:i,startAngle:a,circumference:l}=e;let c=e.endAngle;if(i){di(t,e,o,r,c,n);for(let d=0;d<i;++d)t.fill();isNaN(l)||(c=a+(l%Se||Se))}return di(t,e,o,r,c,n),t.fill(),c}function uB(t,e,o,r,n){const{fullCircles:i,startAngle:a,circumference:l,options:c}=e,{borderWidth:d,borderJoinStyle:u,borderDash:f,borderDashOffset:h}=c,g=c.borderAlign==="inner";if(!d)return;t.setLineDash(f||[]),t.lineDashOffset=h,g?(t.lineWidth=d*2,t.lineJoin=u||"round"):(t.lineWidth=d,t.lineJoin=u||"bevel");let m=e.endAngle;if(i){di(t,e,o,r,m,n);for(let p=0;p<i;++p)t.stroke();isNaN(l)||(m=a+(l%Se||Se))}g&&sB(t,e,m),i||(di(t,e,o,r,m,n),t.stroke())}class Zo extends Dt{constructor(o){super();H(this,"circumference");H(this,"endAngle");H(this,"fullCircles");H(this,"innerRadius");H(this,"outerRadius");H(this,"pixelMargin");H(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,o&&Object.assign(this,o)}inRange(o,r,n){const i=this.getProps(["x","y"],n),{angle:a,distance:l}=hd(i,{x:o,y:r}),{startAngle:c,endAngle:d,innerRadius:u,outerRadius:f,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),g=(this.options.spacing+this.options.borderWidth)/2,m=se(h,d-c),p=Mr(a,c,d)&&c!==d,b=m>=Se||p,y=Wt(l,u+g,f+g);return b&&y}getCenterPoint(o){const{x:r,y:n,startAngle:i,endAngle:a,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],o),{offset:d,spacing:u}=this.options,f=(i+a)/2,h=(l+c+u+d)/2;return{x:r+Math.cos(f)*h,y:n+Math.sin(f)*h}}tooltipPosition(o){return this.getCenterPoint(o)}draw(o){const{options:r,circumference:n}=this,i=(r.offset||0)/4,a=(r.spacing||0)/2,l=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=n>Se?Math.floor(n/Se):0,n===0||this.innerRadius<0||this.outerRadius<0)return;o.save();const c=(this.startAngle+this.endAngle)/2;o.translate(Math.cos(c)*i,Math.sin(c)*i);const d=1-Math.sin(Math.min(_e,n||0)),u=i*d;o.fillStyle=r.backgroundColor,o.strokeStyle=r.borderColor,dB(o,this,u,a,l),uB(o,this,u,a,l),o.restore()}}H(Zo,"id","arc"),H(Zo,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),H(Zo,"defaultRoutes",{backgroundColor:"backgroundColor"}),H(Zo,"descriptors",{_scriptable:!0,_indexable:o=>o!=="borderDash"});function Vu(t,e,o=e){t.lineCap=se(o.borderCapStyle,e.borderCapStyle),t.setLineDash(se(o.borderDash,e.borderDash)),t.lineDashOffset=se(o.borderDashOffset,e.borderDashOffset),t.lineJoin=se(o.borderJoinStyle,e.borderJoinStyle),t.lineWidth=se(o.borderWidth,e.borderWidth),t.strokeStyle=se(o.borderColor,e.borderColor)}function fB(t,e,o){t.lineTo(o.x,o.y)}function hB(t){return t.stepped?W_:t.tension||t.cubicInterpolationMode==="monotone"?H_:fB}function Lu(t,e,o={}){const r=t.length,{start:n=0,end:i=r-1}=o,{start:a,end:l}=e,c=Math.max(n,a),d=Math.min(i,l),u=n<a&&i<a||n>l&&i>l;return{count:r,start:c,loop:e.loop,ilen:d<c&&!u?r+d-c:d-c}}function gB(t,e,o,r){const{points:n,options:i}=e,{count:a,start:l,loop:c,ilen:d}=Lu(n,o,r),u=hB(i);let{move:f=!0,reverse:h}=r||{},g,m,p;for(g=0;g<=d;++g)m=n[(l+(h?d-g:g))%a],!m.skip&&(f?(t.moveTo(m.x,m.y),f=!1):u(t,p,m,h,i.stepped),p=m);return c&&(m=n[(l+(h?d:0))%a],u(t,p,m,h,i.stepped)),!!c}function mB(t,e,o,r){const n=e.points,{count:i,start:a,ilen:l}=Lu(n,o,r),{move:c=!0,reverse:d}=r||{};let u=0,f=0,h,g,m,p,b,y;const x=B=>(a+(d?l-B:B))%i,C=()=>{p!==b&&(t.lineTo(u,b),t.lineTo(u,p),t.lineTo(u,y))};for(c&&(g=n[x(0)],t.moveTo(g.x,g.y)),h=0;h<=l;++h){if(g=n[x(h)],g.skip)continue;const B=g.x,w=g.y,_=B|0;_===m?(w<p?p=w:w>b&&(b=w),u=(f*u+B)/++f):(C(),t.lineTo(B,w),m=_,f=0,p=b=w),y=w}C()}function Ua(t){const e=t.options,o=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!o?mB:gB}function pB(t){return t.stepped?w5:t.tension||t.cubicInterpolationMode==="monotone"?C5:To}function bB(t,e,o,r){let n=e._path;n||(n=e._path=new Path2D,e.path(n,o,r)&&n.closePath()),Vu(t,e.options),t.stroke(n)}function yB(t,e,o,r){const{segments:n,options:i}=e,a=Ua(e);for(const l of n)Vu(t,i,l.style),t.beginPath(),a(t,e,l,{start:o,end:o+r-1})&&t.closePath(),t.stroke()}const kB=typeof Path2D=="function";function xB(t,e,o,r){kB&&!e.options.segment?bB(t,e,o,r):yB(t,e,o,r)}class qt extends Dt{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,o){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const n=r.spanGaps?this._loop:this._fullLoop;g5(this._points,r,e,n,o),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=O5(this,this.options.segment))}first(){const e=this.segments,o=this.points;return e.length&&o[e[0].start]}last(){const e=this.segments,o=this.points,r=e.length;return r&&o[e[r-1].end]}interpolate(e,o){const r=this.options,n=e[o],i=this.points,a=Hd(this,{property:o,start:n,end:n});if(!a.length)return;const l=[],c=pB(r);let d,u;for(d=0,u=a.length;d<u;++d){const{start:f,end:h}=a[d],g=i[f],m=i[h];if(g===m){l.push(g);continue}const p=Math.abs((n-g[o])/(m[o]-g[o])),b=c(g,m,p,r.stepped);b[o]=e[o],l.push(b)}return l.length===1?l[0]:l}pathSegment(e,o,r){return Ua(this)(e,this,o,r)}path(e,o,r){const n=this.segments,i=Ua(this);let a=this._loop;o=o||0,r=r||this.points.length-o;for(const l of n)a&=i(e,this,l,{start:o,end:o+r-1});return!!a}draw(e,o,r,n){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),xB(e,this,r,n),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}H(qt,"id","line"),H(qt,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),H(qt,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),H(qt,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function Iu(t,e,o,r){const n=t.options,{[o]:i}=t.getProps([o],r);return Math.abs(e-i)<n.radius+n.hitRadius}class on extends Dt{constructor(o){super();H(this,"parsed");H(this,"skip");H(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,o&&Object.assign(this,o)}inRange(o,r,n){const i=this.options,{x:a,y:l}=this.getProps(["x","y"],n);return Math.pow(o-a,2)+Math.pow(r-l,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(o,r){return Iu(this,o,"x",r)}inYRange(o,r){return Iu(this,o,"y",r)}getCenterPoint(o){const{x:r,y:n}=this.getProps(["x","y"],o);return{x:r,y:n}}size(o){o=o||this.options||{};let r=o.radius||0;r=Math.max(r,r&&o.hoverRadius||0);const n=r&&o.borderWidth||0;return(r+n)*2}draw(o,r){const n=this.options;this.skip||n.radius<.1||!Ut(this,r,this.size(n)/2)||(o.strokeStyle=n.borderColor,o.lineWidth=n.borderWidth,o.fillStyle=n.backgroundColor,Ba(o,n,this.x,this.y))}getRange(){const o=this.options||{};return o.radius+o.hitRadius}}H(on,"id","point"),H(on,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),H(on,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function zu(t,e){const{x:o,y:r,base:n,width:i,height:a}=t.getProps(["x","y","base","width","height"],e);let l,c,d,u,f;return t.horizontal?(f=a/2,l=Math.min(o,n),c=Math.max(o,n),d=r-f,u=r+f):(f=i/2,l=o-f,c=o+f,d=Math.min(r,n),u=Math.max(r,n)),{left:l,top:d,right:c,bottom:u}}function ho(t,e,o,r){return t?0:je(e,o,r)}function vB(t,e,o){const r=t.options.borderWidth,n=t.borderSkipped,i=Rd(r);return{t:ho(n.top,i.top,0,o),r:ho(n.right,i.right,0,e),b:ho(n.bottom,i.bottom,0,o),l:ho(n.left,i.left,0,e)}}function wB(t,e,o){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,i=Oo(n),a=Math.min(e,o),l=t.borderSkipped,c=r||de(n);return{topLeft:ho(!c||l.top||l.left,i.topLeft,0,a),topRight:ho(!c||l.top||l.right,i.topRight,0,a),bottomLeft:ho(!c||l.bottom||l.left,i.bottomLeft,0,a),bottomRight:ho(!c||l.bottom||l.right,i.bottomRight,0,a)}}function CB(t){const e=zu(t),o=e.right-e.left,r=e.bottom-e.top,n=vB(t,o/2,r/2),i=wB(t,o/2,r/2);return{outer:{x:e.left,y:e.top,w:o,h:r,radius:i},inner:{x:e.left+n.l,y:e.top+n.t,w:o-n.l-n.r,h:r-n.t-n.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,i.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(n.b,n.r))}}}}function qa(t,e,o,r){const n=e===null,i=o===null,l=t&&!(n&&i)&&zu(t,r);return l&&(n||Wt(e,l.left,l.right))&&(i||Wt(o,l.top,l.bottom))}function _B(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function SB(t,e){t.rect(e.x,e.y,e.w,e.h)}function Ya(t,e,o={}){const r=t.x!==o.x?-e:0,n=t.y!==o.y?-e:0,i=(t.x+t.w!==o.x+o.w?e:0)-r,a=(t.y+t.h!==o.y+o.h?e:0)-n;return{x:t.x+r,y:t.y+n,w:t.w+i,h:t.h+a,radius:t.radius}}class rn extends Dt{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:o,options:{borderColor:r,backgroundColor:n}}=this,{inner:i,outer:a}=CB(this),l=_B(a.radius)?zr:SB;e.save(),(a.w!==i.w||a.h!==i.h)&&(e.beginPath(),l(e,Ya(a,o,i)),e.clip(),l(e,Ya(i,-o,a)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),l(e,Ya(i,o)),e.fillStyle=n,e.fill(),e.restore()}inRange(e,o,r){return qa(this,e,o,r)}inXRange(e,o){return qa(this,e,null,o)}inYRange(e,o){return qa(this,null,e,o)}getCenterPoint(e){const{x:o,y:r,base:n,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(o+n)/2:o,y:i?r:(r+n)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}H(rn,"id","bar"),H(rn,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),H(rn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var ju=Object.freeze({__proto__:null,ArcElement:Zo,BarElement:rn,LineElement:qt,PointElement:on});const Xa=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Wu=Xa.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function Hu(t){return Xa[t%Xa.length]}function Uu(t){return Wu[t%Wu.length]}function BB(t,e){return t.borderColor=Hu(e),t.backgroundColor=Uu(e),++e}function EB(t,e){return t.backgroundColor=t.data.map(()=>Hu(e++)),e}function RB(t,e){return t.backgroundColor=t.data.map(()=>Uu(e++)),e}function OB(t){let e=0;return(o,r)=>{const n=t.getDatasetMeta(r).controller;n instanceof uo?e=EB(o,e):n instanceof Qo?e=RB(o,e):n&&(e=BB(o,e))}}function qu(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function DB(t){return t&&(t.borderColor||t.backgroundColor)}function NB(){return Be.borderColor!=="rgba(0,0,0,0.1)"||Be.backgroundColor!=="rgba(0,0,0,0.1)"}var Yu={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,o){if(!o.enabled)return;const{data:{datasets:r},options:n}=t.config,{elements:i}=n,a=qu(r)||DB(n)||i&&qu(i)||NB();if(!o.forceOverride&&a)return;const l=OB(t);r.forEach(l)}};function TB(t,e,o,r,n){const i=n.samples||r;if(i>=o)return t.slice(e,e+o);const a=[],l=(o-2)/(i-2);let c=0;const d=e+o-1;let u=e,f,h,g,m,p;for(a[c++]=t[u],f=0;f<i-2;f++){let b=0,y=0,x;const C=Math.floor((f+1)*l)+1+e,B=Math.min(Math.floor((f+2)*l)+1,o)+e,w=B-C;for(x=C;x<B;x++)b+=t[x].x,y+=t[x].y;b/=w,y/=w;const _=Math.floor(f*l)+1+e,v=Math.min(Math.floor((f+1)*l)+1,o)+e,{x:k,y:S}=t[u];for(g=m=-1,x=_;x<v;x++)m=.5*Math.abs((k-b)*(t[x].y-S)-(k-t[x].x)*(y-S)),m>g&&(g=m,h=t[x],p=x);a[c++]=h,u=p}return a[c++]=t[d],a}function PB(t,e,o,r){let n=0,i=0,a,l,c,d,u,f,h,g,m,p;const b=[],y=e+o-1,x=t[e].x,B=t[y].x-x;for(a=e;a<e+o;++a){l=t[a],c=(l.x-x)/B*r,d=l.y;const w=c|0;if(w===u)d<m?(m=d,f=a):d>p&&(p=d,h=a),n=(i*n+l.x)/++i;else{const _=a-1;if(!fe(f)&&!fe(h)){const v=Math.min(f,h),k=Math.max(f,h);v!==g&&v!==_&&b.push({...t[v],x:n}),k!==g&&k!==_&&b.push({...t[k],x:n})}a>0&&_!==g&&b.push(t[_]),b.push(l),u=w,i=0,m=p=d,f=h=g=a}}return b}function Xu(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Ku(t){t.data.datasets.forEach(e=>{Xu(e)})}function AB(t,e){const o=e.length;let r=0,n;const{iScale:i}=t,{min:a,max:l,minDefined:c,maxDefined:d}=i.getUserBounds();return c&&(r=je(Ht(e,i.axis,a).lo,0,o-1)),d?n=je(Ht(e,i.axis,l).hi+1,r,o)-r:n=o-r,{start:r,count:n}}var Gu={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,o)=>{if(!o.enabled){Ku(t);return}const r=t.width;t.data.datasets.forEach((n,i)=>{const{_data:a,indexAxis:l}=n,c=t.getDatasetMeta(i),d=a||n.data;if(jr([l,t.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;const u=t.scales[c.xAxisID];if(u.type!=="linear"&&u.type!=="time"||t.options.parsing)return;let{start:f,count:h}=AB(c,d);const g=o.threshold||4*r;if(h<=g){Xu(n);return}fe(a)&&(n._data=d,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(p){this._data=p}}));let m;switch(o.algorithm){case"lttb":m=TB(d,f,h,r,o);break;case"min-max":m=PB(d,f,h,r);break;default:throw new Error(`Unsupported decimation algorithm '${o.algorithm}'`)}n._decimated=m})},destroy(t){Ku(t)}};function $B(t,e,o){const r=t.segments,n=t.points,i=e.points,a=[];for(const l of r){let{start:c,end:d}=l;d=Ga(c,d,n);const u=Ka(o,n[c],n[d],l.loop);if(!e.segments){a.push({source:l,target:u,start:n[c],end:n[d]});continue}const f=Hd(e,u);for(const h of f){const g=Ka(o,i[h.start],i[h.end],h.loop),m=Wd(l,n,g);for(const p of m)a.push({source:p,target:h,start:{[o]:Qu(u,g,"start",Math.max)},end:{[o]:Qu(u,g,"end",Math.min)}})}}return a}function Ka(t,e,o,r){if(r)return;let n=e[t],i=o[t];return t==="angle"&&(n=st(n),i=st(i)),{property:t,start:n,end:i}}function MB(t,e){const{x:o=null,y:r=null}=t||{},n=e.points,i=[];return e.segments.forEach(({start:a,end:l})=>{l=Ga(a,l,n);const c=n[a],d=n[l];r!==null?(i.push({x:c.x,y:r}),i.push({x:d.x,y:r})):o!==null&&(i.push({x:o,y:c.y}),i.push({x:o,y:d.y}))}),i}function Ga(t,e,o){for(;e>t;e--){const r=o[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function Qu(t,e,o,r){return t&&e?r(t[o],e[o]):t?t[o]:e?e[o]:0}function Ju(t,e){let o=[],r=!1;return Oe(t)?(r=!0,o=t):o=MB(t,e),o.length?new qt({points:o,options:{tension:0},_loop:r,_fullLoop:r}):null}function Zu(t){return t&&t.fill!==!1}function FB(t,e,o){let n=t[e].fill;const i=[e];let a;if(!o)return n;for(;n!==!1&&i.indexOf(n)===-1;){if(!Pe(n))return n;if(a=t[n],!a)return!1;if(a.visible)return n;i.push(n),n=a.fill}return!1}function VB(t,e,o){const r=jB(t);if(de(r))return isNaN(r.value)?!1:r;let n=parseFloat(r);return Pe(n)&&Math.floor(n)===n?LB(r[0],e,n,o):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function LB(t,e,o,r){return(t==="-"||t==="+")&&(o=e+o),o===e||o<0||o>=r?!1:o}function IB(t,e){let o=null;return t==="start"?o=e.bottom:t==="end"?o=e.top:de(t)?o=e.getPixelForValue(t.value):e.getBasePixel&&(o=e.getBasePixel()),o}function zB(t,e,o){let r;return t==="start"?r=o:t==="end"?r=e.options.reverse?e.min:e.max:de(t)?r=t.value:r=e.getBaseValue(),r}function jB(t){const e=t.options,o=e.fill;let r=se(o&&o.target,o);return r===void 0&&(r=!!e.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function WB(t){const{scale:e,index:o,line:r}=t,n=[],i=r.segments,a=r.points,l=HB(e,o);l.push(Ju({x:null,y:e.bottom},r));for(let c=0;c<i.length;c++){const d=i[c];for(let u=d.start;u<=d.end;u++)UB(n,a[u],l)}return new qt({points:n,options:{}})}function HB(t,e){const o=[],r=t.getMatchingVisibleMetas("line");for(let n=0;n<r.length;n++){const i=r[n];if(i.index===e)break;i.hidden||o.unshift(i.dataset)}return o}function UB(t,e,o){const r=[];for(let n=0;n<o.length;n++){const i=o[n],{first:a,last:l,point:c}=qB(i,e,"x");if(!(!c||a&&l)){if(a)r.unshift(c);else if(t.push(c),!l)break}}t.push(...r)}function qB(t,e,o){const r=t.interpolate(e,o);if(!r)return{};const n=r[o],i=t.segments,a=t.points;let l=!1,c=!1;for(let d=0;d<i.length;d++){const u=i[d],f=a[u.start][o],h=a[u.end][o];if(Wt(n,f,h)){l=n===f,c=n===h;break}}return{first:l,last:c,point:r}}class ef{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,o,r){const{x:n,y:i,radius:a}=this;return o=o||{start:0,end:Se},e.arc(n,i,a,o.end,o.start,!0),!r.bounds}interpolate(e){const{x:o,y:r,radius:n}=this,i=e.angle;return{x:o+Math.cos(i)*n,y:r+Math.sin(i)*n,angle:i}}}function YB(t){const{chart:e,fill:o,line:r}=t;if(Pe(o))return XB(e,o);if(o==="stack")return WB(t);if(o==="shape")return!0;const n=KB(t);return n instanceof ef?n:Ju(n,r)}function XB(t,e){const o=t.getDatasetMeta(e);return o&&t.isDatasetVisible(e)?o.dataset:null}function KB(t){return(t.scale||{}).getPointPositionForValue?QB(t):GB(t)}function GB(t){const{scale:e={},fill:o}=t,r=IB(o,e);if(Pe(r)){const n=e.isHorizontal();return{x:n?r:null,y:n?null:r}}return null}function QB(t){const{scale:e,fill:o}=t,r=e.options,n=e.getLabels().length,i=r.reverse?e.max:e.min,a=zB(o,e,i),l=[];if(r.grid.circular){const c=e.getPointPositionForValue(0,i);return new ef({x:c.x,y:c.y,radius:e.getDistanceFromCenterForValue(a)})}for(let c=0;c<n;++c)l.push(e.getPointPositionForValue(c,a));return l}function Qa(t,e,o){const r=YB(e),{line:n,scale:i,axis:a}=e,l=n.options,c=l.fill,d=l.backgroundColor,{above:u=d,below:f=d}=c||{};r&&n.points.length&&(Kn(t,o),JB(t,{line:n,target:r,above:u,below:f,area:o,scale:i,axis:a}),Gn(t))}function JB(t,e){const{line:o,target:r,above:n,below:i,area:a,scale:l}=e,c=o._loop?"angle":e.axis;t.save(),c==="x"&&i!==n&&(tf(t,r,a.top),of(t,{line:o,target:r,color:n,scale:l,property:c}),t.restore(),t.save(),tf(t,r,a.bottom)),of(t,{line:o,target:r,color:i,scale:l,property:c}),t.restore()}function tf(t,e,o){const{segments:r,points:n}=e;let i=!0,a=!1;t.beginPath();for(const l of r){const{start:c,end:d}=l,u=n[c],f=n[Ga(c,d,n)];i?(t.moveTo(u.x,u.y),i=!1):(t.lineTo(u.x,o),t.lineTo(u.x,u.y)),a=!!e.pathSegment(t,l,{move:a}),a?t.closePath():t.lineTo(f.x,o)}t.lineTo(e.first().x,o),t.closePath(),t.clip()}function of(t,e){const{line:o,target:r,property:n,color:i,scale:a}=e,l=$B(o,r,n);for(const{source:c,target:d,start:u,end:f}of l){const{style:{backgroundColor:h=i}={}}=c,g=r!==!0;t.save(),t.fillStyle=h,ZB(t,a,g&&Ka(n,u,f)),t.beginPath();const m=!!o.pathSegment(t,c);let p;if(g){m?t.closePath():rf(t,r,f,n);const b=!!r.pathSegment(t,d,{move:m,reverse:!0});p=m&&b,p||rf(t,r,u,n)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function ZB(t,e,o){const{top:r,bottom:n}=e.chart.chartArea,{property:i,start:a,end:l}=o||{};i==="x"&&(t.beginPath(),t.rect(a,r,l-a,n-r),t.clip())}function rf(t,e,o,r){const n=e.interpolate(o,r);n&&t.lineTo(n.x,n.y)}var nf={id:"filler",afterDatasetsUpdate(t,e,o){const r=(t.data.datasets||[]).length,n=[];let i,a,l,c;for(a=0;a<r;++a)i=t.getDatasetMeta(a),l=i.dataset,c=null,l&&l.options&&l instanceof qt&&(c={visible:t.isDatasetVisible(a),index:a,fill:VB(l,a,r),chart:t,axis:i.controller.options.indexAxis,scale:i.vScale,line:l}),i.$filler=c,n.push(c);for(a=0;a<r;++a)c=n[a],!(!c||c.fill===!1)&&(c.fill=FB(n,a,o.propagate))},beforeDraw(t,e,o){const r=o.drawTime==="beforeDraw",n=t.getSortedVisibleDatasetMetas(),i=t.chartArea;for(let a=n.length-1;a>=0;--a){const l=n[a].$filler;l&&(l.line.updateControlPoints(i,l.axis),r&&l.fill&&Qa(t.ctx,l,i))}},beforeDatasetsDraw(t,e,o){if(o.drawTime!=="beforeDatasetsDraw")return;const r=t.getSortedVisibleDatasetMetas();for(let n=r.length-1;n>=0;--n){const i=r[n].$filler;Zu(i)&&Qa(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,o){const r=e.meta.$filler;!Zu(r)||o.drawTime!=="beforeDatasetDraw"||Qa(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const af=(t,e)=>{let{boxHeight:o=e,boxWidth:r=e}=t;return t.usePointStyle&&(o=Math.min(o,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:o,itemHeight:Math.max(e,o)}},e2=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class sf extends Dt{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,o,r){this.maxWidth=e,this.maxHeight=o,this._margins=r,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 o=we(e.generateLabels,[this.chart],this)||[];e.filter&&(o=o.filter(r=>e.filter(r,this.chart.data))),e.sort&&(o=o.sort((r,n)=>e.sort(r,n,this.chart.data))),this.options.reverse&&o.reverse(),this.legendItems=o}fit(){const{options:e,ctx:o}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,n=Ie(r.font),i=n.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=af(r,i);let d,u;o.font=n.string,this.isHorizontal()?(d=this.maxWidth,u=this._fitRows(a,i,l,c)+10):(u=this.maxHeight,d=this._fitCols(a,n,l,c)+10),this.width=Math.min(d,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,o,r,n){const{ctx:i,maxWidth:a,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.lineWidths=[0],u=n+l;let f=e;i.textAlign="left",i.textBaseline="middle";let h=-1,g=-u;return this.legendItems.forEach((m,p)=>{const b=r+o/2+i.measureText(m.text).width;(p===0||d[d.length-1]+b+2*l>a)&&(f+=u,d[d.length-(p>0?0:1)]=0,g+=u,h++),c[p]={left:0,top:g,row:h,width:b,height:n},d[d.length-1]+=b+l}),f}_fitCols(e,o,r,n){const{ctx:i,maxHeight:a,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.columnSizes=[],u=a-e;let f=l,h=0,g=0,m=0,p=0;return this.legendItems.forEach((b,y)=>{const{itemWidth:x,itemHeight:C}=t2(r,o,i,b,n);y>0&&g+C+2*l>u&&(f+=h+l,d.push({width:h,height:g}),m+=h+l,p++,h=g=0),c[y]={left:m,top:g,col:p,width:x,height:C},h=Math.max(h,x),g+=C+l}),f+=h,d.push({width:h,height:g}),f}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:o,options:{align:r,labels:{padding:n},rtl:i}}=this,a=Go(i,this.left,this.width);if(this.isHorizontal()){let l=0,c=Ye(r,this.left+n,this.right-this.lineWidths[l]);for(const d of o)l!==d.row&&(l=d.row,c=Ye(r,this.left+n,this.right-this.lineWidths[l])),d.top+=this.top+e+n,d.left=a.leftForLtr(a.x(c),d.width),c+=d.width+n}else{let l=0,c=Ye(r,this.top+e+n,this.bottom-this.columnSizes[l].height);for(const d of o)d.col!==l&&(l=d.col,c=Ye(r,this.top+e+n,this.bottom-this.columnSizes[l].height)),d.top=c,d.left+=this.left+n,d.left=a.leftForLtr(a.x(d.left),d.width),c+=d.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Kn(e,this),this._draw(),Gn(e)}}_draw(){const{options:e,columnSizes:o,lineWidths:r,ctx:n}=this,{align:i,labels:a}=e,l=Be.color,c=Go(e.rtl,this.left,this.width),d=Ie(a.font),{padding:u}=a,f=d.size,h=f/2;let g;this.drawTitle(),n.textAlign=c.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=d.string;const{boxWidth:m,boxHeight:p,itemHeight:b}=af(a,f),y=function(_,v,k){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;n.save();const S=se(k.lineWidth,1);if(n.fillStyle=se(k.fillStyle,l),n.lineCap=se(k.lineCap,"butt"),n.lineDashOffset=se(k.lineDashOffset,0),n.lineJoin=se(k.lineJoin,"miter"),n.lineWidth=S,n.strokeStyle=se(k.strokeStyle,l),n.setLineDash(se(k.lineDash,[])),a.usePointStyle){const N={radius:p*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:S},E=c.xPlus(_,m/2),D=v+h;Ed(n,N,E,D,a.pointStyleWidth&&m)}else{const N=v+Math.max((f-p)/2,0),E=c.leftForLtr(_,m),D=Oo(k.borderRadius);n.beginPath(),Object.values(D).some(M=>M!==0)?zr(n,{x:E,y:N,w:m,h:p,radius:D}):n.rect(E,N,m,p),n.fill(),S!==0&&n.stroke()}n.restore()},x=function(_,v,k){Ro(n,k.text,_,v+b/2,d,{strikethrough:k.hidden,textAlign:c.textAlign(k.textAlign)})},C=this.isHorizontal(),B=this._computeTitleHeight();C?g={x:Ye(i,this.left+u,this.right-r[0]),y:this.top+u+B,line:0}:g={x:this.left+u,y:Ye(i,this.top+B+u,this.bottom-o[0].height),line:0},Ld(this.ctx,e.textDirection);const w=b+u;this.legendItems.forEach((_,v)=>{n.strokeStyle=_.fontColor,n.fillStyle=_.fontColor;const k=n.measureText(_.text).width,S=c.textAlign(_.textAlign||(_.textAlign=a.textAlign)),N=m+h+k;let E=g.x,D=g.y;c.setWidth(this.width),C?v>0&&E+N+u>this.right&&(D=g.y+=w,g.line++,E=g.x=Ye(i,this.left+u,this.right-r[g.line])):v>0&&D+w>this.bottom&&(E=g.x=E+o[g.line].width+u,g.line++,D=g.y=Ye(i,this.top+B+u,this.bottom-o[g.line].height));const M=c.x(E);if(y(M,D,_),E=T_(S,E+m+h,C?E+N:this.right,e.rtl),x(c.x(E),D,_),C)g.x+=N+u;else if(typeof _.text!="string"){const T=d.lineHeight;g.y+=lf(_,T)+u}else g.y+=w}),Id(this.ctx,e.textDirection)}drawTitle(){const e=this.options,o=e.title,r=Ie(o.font),n=Xe(o.padding);if(!o.display)return;const i=Go(e.rtl,this.left,this.width),a=this.ctx,l=o.position,c=r.size/2,d=n.top+c;let u,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+d,f=Ye(e.align,f,this.right-h);else{const m=this.columnSizes.reduce((p,b)=>Math.max(p,b.height),0);u=d+Ye(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const g=Ye(l,f,f+h);a.textAlign=i.textAlign(va(l)),a.textBaseline="middle",a.strokeStyle=o.color,a.fillStyle=o.color,a.font=r.string,Ro(a,o.text,g,u,r)}_computeTitleHeight(){const e=this.options.title,o=Ie(e.font),r=Xe(e.padding);return e.display?o.lineHeight+r.height:0}_getLegendItemAt(e,o){let r,n,i;if(Wt(e,this.left,this.right)&&Wt(o,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(n=i[r],Wt(e,n.left,n.left+n.width)&&Wt(o,n.top,n.top+n.height))return this.legendItems[r]}return null}handleEvent(e){const o=this.options;if(!n2(e.type,o))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const n=this._hoveredItem,i=e2(n,r);n&&!i&&we(o.onLeave,[e,n,this],this),this._hoveredItem=r,r&&!i&&we(o.onHover,[e,r,this],this)}else r&&we(o.onClick,[e,r,this],this)}}function t2(t,e,o,r,n){const i=o2(r,t,e,o),a=r2(n,r,e.lineHeight);return{itemWidth:i,itemHeight:a}}function o2(t,e,o,r){let n=t.text;return n&&typeof n!="string"&&(n=n.reduce((i,a)=>i.length>a.length?i:a)),e+o.size/2+r.measureText(n).width}function r2(t,e,o){let r=t;return typeof e.text!="string"&&(r=lf(e,o)),r}function lf(t,e){const o=t.text?t.text.length:0;return e*o}function n2(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var cf={id:"legend",_element:sf,start(t,e,o){const r=t.legend=new sf({ctx:t.ctx,options:o,chart:t});We.configure(t,r,o),We.addBox(t,r)},stop(t){We.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,o){const r=t.legend;We.configure(t,r,o),r.options=o},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,o){const r=e.datasetIndex,n=o.chart;n.isDatasetVisible(r)?(n.hide(r),e.hidden=!0):(n.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:o,pointStyle:r,textAlign:n,color:i,useBorderRadius:a,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map(c=>{const d=c.controller.getStyle(o?0:void 0),u=Xe(d.borderWidth);return{text:e[c.index].label,fillStyle:d.backgroundColor,fontColor:i,hidden:!c.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:d.borderColor,pointStyle:r||d.pointStyle,rotation:d.rotation,textAlign:n||d.textAlign,borderRadius:a&&(l||d.borderRadius),datasetIndex:c.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Ja extends Dt{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,o){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=o;const n=Oe(r.text)?r.text.length:1;this._padding=Xe(r.padding);const i=n*Ie(r.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:o,left:r,bottom:n,right:i,options:a}=this,l=a.align;let c=0,d,u,f;return this.isHorizontal()?(u=Ye(l,r,i),f=o+e,d=i-r):(a.position==="left"?(u=r+e,f=Ye(l,n,o),c=_e*-.5):(u=i-e,f=Ye(l,o,n),c=_e*.5),d=n-o),{titleX:u,titleY:f,maxWidth:d,rotation:c}}draw(){const e=this.ctx,o=this.options;if(!o.display)return;const r=Ie(o.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:c,rotation:d}=this._drawArgs(i);Ro(e,o.text,0,0,r,{color:o.color,maxWidth:c,rotation:d,textAlign:va(o.align),textBaseline:"middle",translation:[a,l]})}}function i2(t,e){const o=new Ja({ctx:t.ctx,options:e,chart:t});We.configure(t,o,e),We.addBox(t,o),t.titleBlock=o}var df={id:"title",_element:Ja,start(t,e,o){i2(t,o)},stop(t){const e=t.titleBlock;We.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,o){const r=t.titleBlock;We.configure(t,r,o),r.options=o},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 ui=new WeakMap;var uf={id:"subtitle",start(t,e,o){const r=new Ja({ctx:t.ctx,options:o,chart:t});We.configure(t,r,o),We.addBox(t,r),ui.set(t,r)},stop(t){We.removeBox(t,ui.get(t)),ui.delete(t)},beforeUpdate(t,e,o){const r=ui.get(t);We.configure(t,r,o),r.options=o},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const nn={average(t){if(!t.length)return!1;let e,o,r=new Set,n=0,i=0;for(e=0,o=t.length;e<o;++e){const l=t[e].element;if(l&&l.hasValue()){const c=l.tooltipPosition();r.add(c.x),n+=c.y,++i}}return i===0||r.size===0?!1:{x:[...r].reduce((l,c)=>l+c)/r.size,y:n/i}},nearest(t,e){if(!t.length)return!1;let o=e.x,r=e.y,n=Number.POSITIVE_INFINITY,i,a,l;for(i=0,a=t.length;i<a;++i){const c=t[i].element;if(c&&c.hasValue()){const d=c.getCenterPoint(),u=ka(e,d);u<n&&(n=u,l=c)}}if(l){const c=l.tooltipPosition();o=c.x,r=c.y}return{x:o,y:r}}};function Tt(t,e){return e&&(Oe(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Yt(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
|
187
188
|
`)>-1?t.split(`
|
|
188
|
-
`):t}function C2(t,e){const{element:o,datasetIndex:r,index:n}=e,i=t.getDatasetMeta(r).controller,{label:s,value:l}=i.getLabelAndValue(n);return{chart:t,label:s,parsed:i.getParsed(n),raw:t.data.datasets[r].data[n],formattedValue:l,dataset:i.getDataset(),dataIndex:n,datasetIndex:r,element:o}}function uf(t,e){const o=t.chart.ctx,{body:r,footer:n,title:i}=t,{boxWidth:s,boxHeight:l}=e,c=Le(e.bodyFont),d=Le(e.titleFont),u=Le(e.footerFont),f=i.length,h=n.length,g=r.length,m=Ye(e.padding);let p=m.height,b=0,y=r.reduce((B,w)=>B+w.before.length+w.lines.length+w.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,f&&(p+=f*d.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),y){const B=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;p+=g*B+(y-g)*c.lineHeight+(y-1)*e.bodySpacing}h&&(p+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let x=0;const C=function(B){b=Math.max(b,o.measureText(B).width+x)};return o.save(),o.font=d.string,ye(t.title,C),o.font=c.string,ye(t.beforeBody.concat(t.afterBody),C),x=e.displayColors?s+2+e.boxPadding:0,ye(r,B=>{ye(B.before,C),ye(B.lines,C),ye(B.after,C)}),x=0,o.font=u.string,ye(t.footer,C),o.restore(),b+=m.width,{width:b,height:p}}function _2(t,e){const{y:o,height:r}=e;return o<r/2?"top":o>t.height-r/2?"bottom":"center"}function S2(t,e,o,r){const{x:n,width:i}=r,s=o.caretSize+o.caretPadding;if(t==="left"&&n+i+s>e.width||t==="right"&&n-i-s<0)return!0}function B2(t,e,o,r){const{x:n,width:i}=o,{width:s,chartArea:{left:l,right:c}}=t;let d="center";return r==="center"?d=n<=(l+c)/2?"left":"right":n<=i/2?d="left":n>=s-i/2&&(d="right"),S2(d,t,e,o)&&(d="center"),d}function ff(t,e,o){const r=o.yAlign||e.yAlign||_2(t,o);return{xAlign:o.xAlign||e.xAlign||B2(t,e,o,r),yAlign:r}}function E2(t,e){let{x:o,width:r}=t;return e==="right"?o-=r:e==="center"&&(o-=r/2),o}function R2(t,e,o){let{y:r,height:n}=t;return e==="top"?r+=o:e==="bottom"?r-=n+o:r-=n/2,r}function hf(t,e,o,r){const{caretSize:n,caretPadding:i,cornerRadius:s}=t,{xAlign:l,yAlign:c}=o,d=n+i,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:g}=Ro(s);let m=E2(e,l);const p=R2(e,c,d);return c==="center"?l==="left"?m+=d:l==="right"&&(m-=d):l==="left"?m-=Math.max(u,h)+n:l==="right"&&(m+=Math.max(f,g)+n),{x:je(m,0,r.width-e.width),y:je(p,0,r.height-e.height)}}function fi(t,e,o){const r=Ye(o.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function gf(t){return Tt([],Yt(t))}function O2(t,e,o){return co(t,{tooltip:e,tooltipItems:o,type:"tooltip"})}function mf(t,e){const o=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return o?t.override(o):t}const pf={beforeTitle:jt,title(t){if(t.length>0){const e=t[0],o=e.chart.data.labels,r=o?o.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return o[e.dataIndex]}return""},afterTitle:jt,beforeBody:jt,beforeLabel:jt,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const o=t.formattedValue;return fe(o)||(e+=o),e},labelColor(t){const o=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:o.borderColor,backgroundColor:o.backgroundColor,borderWidth:o.borderWidth,borderDash:o.borderDash,borderDashOffset:o.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const o=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:o.pointStyle,rotation:o.rotation}},afterLabel:jt,afterBody:jt,beforeFooter:jt,footer:jt,afterFooter:jt};function tt(t,e,o,r){const n=t[e].call(o,r);return typeof n>"u"?pf[e].call(o,r):n}class Za extends Dt{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 o=this.chart,r=this.options.setContext(this.getContext()),n=r.enabled&&o.options.animation&&r.animations,i=new Pa(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=O2(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,o){const{callbacks:r}=o,n=tt(r,"beforeTitle",this,e),i=tt(r,"title",this,e),s=tt(r,"afterTitle",this,e);let l=[];return l=Tt(l,Yt(n)),l=Tt(l,Yt(i)),l=Tt(l,Yt(s)),l}getBeforeBody(e,o){return gf(tt(o.callbacks,"beforeBody",this,e))}getBody(e,o){const{callbacks:r}=o,n=[];return ye(e,i=>{const s={before:[],lines:[],after:[]},l=mf(r,i);Tt(s.before,Yt(tt(l,"beforeLabel",this,i))),Tt(s.lines,tt(l,"label",this,i)),Tt(s.after,Yt(tt(l,"afterLabel",this,i))),n.push(s)}),n}getAfterBody(e,o){return gf(tt(o.callbacks,"afterBody",this,e))}getFooter(e,o){const{callbacks:r}=o,n=tt(r,"beforeFooter",this,e),i=tt(r,"footer",this,e),s=tt(r,"afterFooter",this,e);let l=[];return l=Tt(l,Yt(n)),l=Tt(l,Yt(i)),l=Tt(l,Yt(s)),l}_createItems(e){const o=this._active,r=this.chart.data,n=[],i=[],s=[];let l=[],c,d;for(c=0,d=o.length;c<d;++c)l.push(C2(this.chart,o[c]));return e.filter&&(l=l.filter((u,f,h)=>e.filter(u,f,h,r))),e.itemSort&&(l=l.sort((u,f)=>e.itemSort(u,f,r))),ye(l,u=>{const f=mf(e.callbacks,u);n.push(tt(f,"labelColor",this,u)),i.push(tt(f,"labelPointStyle",this,u)),s.push(tt(f,"labelTextColor",this,u))}),this.labelColors=n,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=l,l}update(e,o){const r=this.options.setContext(this.getContext()),n=this._active;let i,s=[];if(!n.length)this.opacity!==0&&(i={opacity:0});else{const l=nn[r.position].call(this,n,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const c=this._size=uf(this,r),d=Object.assign({},l,c),u=ff(this.chart,r,d),f=hf(r,d,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:o})}drawCaret(e,o,r,n){const i=this.getCaretPosition(e,r,n);o.lineTo(i.x1,i.y1),o.lineTo(i.x2,i.y2),o.lineTo(i.x3,i.y3)}getCaretPosition(e,o,r){const{xAlign:n,yAlign:i}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=Ro(l),{x:h,y:g}=e,{width:m,height:p}=o;let b,y,x,C,B,w;return i==="center"?(B=g+p/2,n==="left"?(b=h,y=b-s,C=B+s,w=B-s):(b=h+m,y=b+s,C=B-s,w=B+s),x=b):(n==="left"?y=h+Math.max(c,u)+s:n==="right"?y=h+m-Math.max(d,f)-s:y=this.caretX,i==="top"?(C=g,B=C-s,b=y-s,x=y+s):(C=g+p,B=C+s,b=y+s,x=y-s),w=C),{x1:b,x2:y,x3:x,y1:C,y2:B,y3:w}}drawTitle(e,o,r){const n=this.title,i=n.length;let s,l,c;if(i){const d=Ko(r.rtl,this.x,this.width);for(e.x=fi(this,r.titleAlign,r),o.textAlign=d.textAlign(r.titleAlign),o.textBaseline="middle",s=Le(r.titleFont),l=r.titleSpacing,o.fillStyle=r.titleColor,o.font=s.string,c=0;c<i;++c)o.fillText(n[c],d.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+l,c+1===i&&(e.y+=r.titleMarginBottom-l)}}_drawColorBox(e,o,r,n,i){const s=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:c,boxWidth:d}=i,u=Le(i.bodyFont),f=fi(this,"left",i),h=n.x(f),g=c<u.lineHeight?(u.lineHeight-c)/2:0,m=o.y+g;if(i.usePointStyle){const p={radius:Math.min(d,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},b=n.leftForLtr(h,d)+d/2,y=m+c/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,Ba(e,p,b,y),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,Ba(e,p,b,y)}else{e.lineWidth=de(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 p=n.leftForLtr(h,d),b=n.leftForLtr(n.xPlus(h,1),d-2),y=Ro(s.borderRadius);Object.values(y).some(x=>x!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,zr(e,{x:p,y:m,w:d,h:c,radius:y}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),zr(e,{x:b,y:m+1,w:d-2,h:c-2,radius:y}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(p,m,d,c),e.strokeRect(p,m,d,c),e.fillStyle=s.backgroundColor,e.fillRect(b,m+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,o,r){const{body:n}=this,{bodySpacing:i,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:u}=r,f=Le(r.bodyFont);let h=f.lineHeight,g=0;const m=Ko(r.rtl,this.x,this.width),p=function(k){o.fillText(k,m.x(e.x+g),e.y+h/2),e.y+=h+i},b=m.textAlign(s);let y,x,C,B,w,_,v;for(o.textAlign=s,o.textBaseline="middle",o.font=f.string,e.x=fi(this,b,r),o.fillStyle=r.bodyColor,ye(this.beforeBody,p),g=l&&b!=="right"?s==="center"?d/2+u:d+2+u:0,B=0,_=n.length;B<_;++B){for(y=n[B],x=this.labelTextColors[B],o.fillStyle=x,ye(y.before,p),C=y.lines,l&&C.length&&(this._drawColorBox(o,e,B,m,r),h=Math.max(f.lineHeight,c)),w=0,v=C.length;w<v;++w)p(C[w]),h=f.lineHeight;ye(y.after,p)}g=0,h=f.lineHeight,ye(this.afterBody,p),e.y-=i}drawFooter(e,o,r){const n=this.footer,i=n.length;let s,l;if(i){const c=Ko(r.rtl,this.x,this.width);for(e.x=fi(this,r.footerAlign,r),e.y+=r.footerMarginTop,o.textAlign=c.textAlign(r.footerAlign),o.textBaseline="middle",s=Le(r.footerFont),o.fillStyle=r.footerColor,o.font=s.string,l=0;l<i;++l)o.fillText(n[l],c.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+r.footerSpacing}}drawBackground(e,o,r,n){const{xAlign:i,yAlign:s}=this,{x:l,y:c}=e,{width:d,height:u}=r,{topLeft:f,topRight:h,bottomLeft:g,bottomRight:m}=Ro(n.cornerRadius);o.fillStyle=n.backgroundColor,o.strokeStyle=n.borderColor,o.lineWidth=n.borderWidth,o.beginPath(),o.moveTo(l+f,c),s==="top"&&this.drawCaret(e,o,r,n),o.lineTo(l+d-h,c),o.quadraticCurveTo(l+d,c,l+d,c+h),s==="center"&&i==="right"&&this.drawCaret(e,o,r,n),o.lineTo(l+d,c+u-m),o.quadraticCurveTo(l+d,c+u,l+d-m,c+u),s==="bottom"&&this.drawCaret(e,o,r,n),o.lineTo(l+g,c+u),o.quadraticCurveTo(l,c+u,l,c+u-g),s==="center"&&i==="left"&&this.drawCaret(e,o,r,n),o.lineTo(l,c+f),o.quadraticCurveTo(l,c,l+f,c),o.closePath(),o.fill(),n.borderWidth>0&&o.stroke()}_updateAnimationTarget(e){const o=this.chart,r=this.$animations,n=r&&r.x,i=r&&r.y;if(n||i){const s=nn[e.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=uf(this,e),c=Object.assign({},s,this._size),d=ff(o,e,c),u=hf(e,c,d,o);(n._to!==u.x||i._to!==u.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const o=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(o);const n={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Ye(o.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;o.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(i,e,n,o),Vd(e,o.textDirection),i.y+=s.top,this.drawTitle(i,e,o),this.drawBody(i,e,o),this.drawFooter(i,e,o),Id(e,o.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,o){const r=this._active,n=e.map(({datasetIndex:l,index:c})=>{const d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),i=!Hn(r,n),s=this._positionChanged(n,o);(i||s)&&(this._active=n,this._eventPosition=o,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,o,r=!0){if(o&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,i=this._active||[],s=this._getActiveElements(e,i,o,r),l=this._positionChanged(s,e),c=o||!Hn(s,i)||l;return c&&(this._active=s,(n.enabled||n.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,o))),c}_getActiveElements(e,o,r,n){const i=this.options;if(e.type==="mouseout")return[];if(!n)return o.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,i.mode,i,r);return i.reverse&&s.reverse(),s}_positionChanged(e,o){const{caretX:r,caretY:n,options:i}=this,s=nn[i.position].call(this,e,o);return s!==!1&&(r!==s.x||n!==s.y)}}H(Za,"positioners",nn);var bf={id:"tooltip",_element:Za,positioners:nn,afterInit(t,e,o){o&&(t.tooltip=new Za({chart:t,options:o}))},beforeUpdate(t,e,o){t.tooltip&&t.tooltip.initialize(o)},reset(t,e,o){t.tooltip&&t.tooltip.initialize(o)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const o={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...o,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",o)}},afterEvent(t,e){if(t.tooltip){const o=e.replay;t.tooltip.handleEvent(e.event,o,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:(t,e)=>e.bodyFont.size,boxWidth:(t,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:pf},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},yf=Object.freeze({__proto__:null,Colors:qu,Decimation:Ku,Filler:rf,Legend:lf,SubTitle:df,Title:cf,Tooltip:bf});const D2=(t,e,o,r)=>(typeof e=="string"?(o=t.push(e)-1,r.unshift({index:o,label:e})):isNaN(e)&&(o=null),o);function N2(t,e,o,r){const n=t.indexOf(e);if(n===-1)return D2(t,e,o,r);const i=t.lastIndexOf(e);return n!==i?o:n}const T2=(t,e)=>t===null?null:je(Math.round(t),0,e);function kf(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class hi extends fo{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const o=this._addedLabels;if(o.length){const r=this.getLabels();for(const{index:n,label:i}of o)r[n]===i&&r.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,o){if(fe(e))return null;const r=this.getLabels();return o=isFinite(o)&&r[o]===e?o:N2(r,e,se(o,e),this._addedLabels),T2(o,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:o}=this.getUserBounds();let{min:r,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),o||(n=this.getLabels().length-1)),this.min=r,this.max=n}buildTicks(){const e=this.min,o=this.max,r=this.options.offset,n=[];let i=this.getLabels();i=e===0&&o===i.length-1?i:i.slice(e,o+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=o;s++)n.push({value:s});return n}getLabelForValue(e){return kf.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 o=this.ticks;return e<0||e>o.length-1?null:this.getPixelForValue(o[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}H(hi,"id","category"),H(hi,"defaults",{ticks:{callback:kf}});function P2(t,e){const o=[],{bounds:n,step:i,min:s,max:l,precision:c,count:d,maxTicks:u,maxDigits:f,includeBounds:h}=t,g=i||1,m=u-1,{min:p,max:b}=e,y=!fe(s),x=!fe(l),C=!fe(d),B=(b-p)/(f+1);let w=cd((b-p)/m/g)*g,_,v,k,S;if(w<1e-14&&!y&&!x)return[{value:p},{value:b}];S=Math.ceil(b/w)-Math.floor(p/w),S>m&&(w=cd(S*w/m/g)*g),fe(c)||(_=Math.pow(10,c),w=Math.ceil(w*_)/_),n==="ticks"?(v=Math.floor(p/w)*w,k=Math.ceil(b/w)*w):(v=p,k=b),y&&x&&i&&j_((l-s)/i,w/1e3)?(S=Math.round(Math.min((l-s)/w,u)),w=(l-s)/S,v=s,k=l):C?(v=y?s:v,k=x?l:k,S=d-1,w=(k-v)/S):(S=(k-v)/w,Ar(S,Math.round(S),w/1e3)?S=Math.round(S):S=Math.ceil(S));const N=Math.max(ud(w),ud(v));_=Math.pow(10,fe(c)?N:c),v=Math.round(v*_)/_,k=Math.round(k*_)/_;let E=0;for(y&&(h&&v!==s?(o.push({value:s}),v<s&&E++,Ar(Math.round((v+E*w)*_)/_,s,xf(s,B,t))&&E++):v<s&&E++);E<S;++E){const D=Math.round((v+E*w)*_)/_;if(x&&D>l)break;o.push({value:D})}return x&&h&&k!==l?o.length&&Ar(o[o.length-1].value,l,xf(l,B,t))?o[o.length-1].value=l:o.push({value:l}):(!x||k===l)&&o.push({value:k}),o}function xf(t,e,{horizontal:o,minRotation:r}){const n=xt(r),i=(o?Math.sin(n):Math.cos(n))||.001,s=.75*e*(""+t).length;return Math.min(e/i,s)}class gi extends fo{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,o){return fe(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:o,maxDefined:r}=this.getUserBounds();let{min:n,max:i}=this;const s=c=>n=o?n:c,l=c=>i=r?i:c;if(e){const c=Rt(n),d=Rt(i);c<0&&d<0?l(0):c>0&&d>0&&s(0)}if(n===i){let c=i===0?1:Math.abs(i*.05);l(i+c),e||s(n-c)}this.min=n,this.max=i}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:o,stepSize:r}=e,n;return r?(n=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),o=o||11),o&&(n=Math.min(o,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,o=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const n={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:o.precision,step:o.stepSize,count:o.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:o.minRotation||0,includeBounds:o.includeBounds!==!1},i=this._range||this,s=P2(n,i);return e.bounds==="ticks"&&dd(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 o=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const n=(r-o)/Math.max(e.length-1,1)/2;o-=n,r+=n}this._startValue=o,this._endValue=r,this._valueRange=r-o}getLabelForValue(e){return Vr(e,this.chart.options.locale,this.options.ticks.format)}}class mi extends gi{determineDataLimits(){const{min:e,max:o}=this.getMinMax(!0);this.min=Ae(e)?e:0,this.max=Ae(o)?o:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),o=e?this.width:this.height,r=xt(this.options.ticks.minRotation),n=(e?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(o/Math.min(40,i.lineHeight/n))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}H(mi,"id","linear"),H(mi,"defaults",{ticks:{callback:Ir.formatters.numeric}});const an=t=>Math.floor(lo(t)),Po=(t,e)=>Math.pow(10,an(t)+e);function vf(t){return t/Math.pow(10,an(t))===1}function wf(t,e,o){const r=Math.pow(10,o),n=Math.floor(t/r);return Math.ceil(e/r)-n}function $2(t,e){const o=e-t;let r=an(o);for(;wf(t,e,r)>10;)r++;for(;wf(t,e,r)<10;)r--;return Math.min(r,an(t))}function A2(t,{min:e,max:o}){e=at(t.min,e);const r=[],n=an(e);let i=$2(e,o),s=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),c=n>i?Math.pow(10,n):0,d=Math.round((e-c)*s)/s,u=Math.floor((e-c)/l/10)*l*10;let f=Math.floor((d-u)/Math.pow(10,i)),h=at(t.min,Math.round((c+u+f*Math.pow(10,i))*s)/s);for(;h<o;)r.push({value:h,major:vf(h),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,s=i>=0?1:s),h=Math.round((c+u+f*Math.pow(10,i))*s)/s;const g=at(t.max,h);return r.push({value:g,major:vf(g),significand:f}),r}class pi extends fo{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,o){const r=gi.prototype.parse.apply(this,[e,o]);if(r===0){this._zero=!0;return}return Ae(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:o}=this.getMinMax(!0);this.min=Ae(e)?Math.max(0,e):null,this.max=Ae(o)?Math.max(0,o):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ae(this._userMin)&&(this.min=e===Po(this.min,0)?Po(this.min,-1):Po(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:o}=this.getUserBounds();let r=this.min,n=this.max;const i=l=>r=e?r:l,s=l=>n=o?n:l;r===n&&(r<=0?(i(1),s(10)):(i(Po(r,-1)),s(Po(n,1)))),r<=0&&i(Po(n,-1)),n<=0&&s(Po(r,1)),this.min=r,this.max=n}buildTicks(){const e=this.options,o={min:this._userMin,max:this._userMax},r=A2(o,this);return e.bounds==="ticks"&&dd(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":Vr(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=lo(e),this._valueRange=lo(this.max)-lo(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(lo(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const o=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+o*this._valueRange)}}H(pi,"id","logarithmic"),H(pi,"defaults",{ticks:{callback:Ir.formatters.logarithmic,major:{enabled:!0}}});function es(t){const e=t.ticks;if(e.display&&t.display){const o=Ye(e.backdropPadding);return se(e.font&&e.font.size,Be.font.size)+o.height}return 0}function M2(t,e,o){return o=Oe(o)?o:[o],{w:i5(t,e.string,o),h:o.length*e.lineHeight}}function Cf(t,e,o,r,n){return t===r||t===n?{start:e-o/2,end:e+o/2}:t<r||t>n?{start:e-o,end:e}:{start:e,end:e+o}}function F2(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},o=Object.assign({},e),r=[],n=[],i=t._pointLabels.length,s=t.options.pointLabels,l=s.centerPointLabels?_e/i:0;for(let c=0;c<i;c++){const d=s.setContext(t.getPointLabelContext(c));n[c]=d.padding;const u=t.getPointPosition(c,t.drawingArea+n[c],l),f=Le(d.font),h=M2(t.ctx,f,t._pointLabels[c]);r[c]=h;const g=st(t.getIndexAngle(c)+l),m=Math.round(ya(g)),p=Cf(m,u.x,h.w,0,180),b=Cf(m,u.y,h.h,90,270);V2(o,e,g,p,b)}t.setCenterPoint(e.l-o.l,o.r-e.r,e.t-o.t,o.b-e.b),t._pointLabelItems=z2(t,r,n)}function V2(t,e,o,r,n){const i=Math.abs(Math.sin(o)),s=Math.abs(Math.cos(o));let l=0,c=0;r.start<e.l?(l=(e.l-r.start)/i,t.l=Math.min(t.l,e.l-l)):r.end>e.r&&(l=(r.end-e.r)/i,t.r=Math.max(t.r,e.r+l)),n.start<e.t?(c=(e.t-n.start)/s,t.t=Math.min(t.t,e.t-c)):n.end>e.b&&(c=(n.end-e.b)/s,t.b=Math.max(t.b,e.b+c))}function I2(t,e,o){const r=t.drawingArea,{extra:n,additionalAngle:i,padding:s,size:l}=o,c=t.getPointPosition(e,r+n+s,i),d=Math.round(ya(st(c.angle+Fe))),u=H2(c.y,l.h,d),f=j2(d),h=W2(c.x,l.w,f);return{visible:!0,x:c.x,y:u,textAlign:f,left:h,top:u,right:h+l.w,bottom:u+l.h}}function L2(t,e){if(!e)return!0;const{left:o,top:r,right:n,bottom:i}=t;return!(Ut({x:o,y:r},e)||Ut({x:o,y:i},e)||Ut({x:n,y:r},e)||Ut({x:n,y:i},e))}function z2(t,e,o){const r=[],n=t._pointLabels.length,i=t.options,{centerPointLabels:s,display:l}=i.pointLabels,c={extra:es(i)/2,additionalAngle:s?_e/n:0};let d;for(let u=0;u<n;u++){c.padding=o[u],c.size=e[u];const f=I2(t,u,c);r.push(f),l==="auto"&&(f.visible=L2(f,d),f.visible&&(d=f))}return r}function j2(t){return t===0||t===180?"center":t<180?"left":"right"}function W2(t,e,o){return o==="right"?t-=e:o==="center"&&(t-=e/2),t}function H2(t,e,o){return o===90||o===270?t-=e/2:(o>270||o<90)&&(t-=e),t}function U2(t,e,o){const{left:r,top:n,right:i,bottom:s}=o,{backdropColor:l}=e;if(!fe(l)){const c=Ro(e.borderRadius),d=Ye(e.backdropPadding);t.fillStyle=l;const u=r-d.left,f=n-d.top,h=i-r+d.width,g=s-n+d.height;Object.values(c).some(m=>m!==0)?(t.beginPath(),zr(t,{x:u,y:f,w:h,h:g,radius:c}),t.fill()):t.fillRect(u,f,h,g)}}function q2(t,e){const{ctx:o,options:{pointLabels:r}}=t;for(let n=e-1;n>=0;n--){const i=t._pointLabelItems[n];if(!i.visible)continue;const s=r.setContext(t.getPointLabelContext(n));U2(o,s,i);const l=Le(s.font),{x:c,y:d,textAlign:u}=i;Eo(o,t._pointLabels[n],c,d+l.lineHeight/2,l,{color:s.color,textAlign:u,textBaseline:"middle"})}}function _f(t,e,o,r){const{ctx:n}=t;if(o)n.arc(t.xCenter,t.yCenter,e,0,Se);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let s=1;s<r;s++)i=t.getPointPosition(s,e),n.lineTo(i.x,i.y)}}function Y2(t,e,o,r,n){const i=t.ctx,s=e.circular,{color:l,lineWidth:c}=e;!s&&!r||!l||!c||o<0||(i.save(),i.strokeStyle=l,i.lineWidth=c,i.setLineDash(n.dash||[]),i.lineDashOffset=n.dashOffset,i.beginPath(),_f(t,o,s,r),i.closePath(),i.stroke(),i.restore())}function X2(t,e,o){return co(t,{label:o,index:e,type:"pointLabel"})}class Zo extends gi{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Ye(es(this.options)/2),o=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+o/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(o,r)/2)}determineDataLimits(){const{min:e,max:o}=this.getMinMax(!1);this.min=Ae(e)&&!isNaN(e)?e:0,this.max=Ae(o)&&!isNaN(o)?o:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/es(this.options))}generateTickLabels(e){gi.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((o,r)=>{const n=ve(this.options.pointLabels.callback,[o,r],this);return n||n===0?n:""}).filter((o,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?F2(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,o,r,n){this.xCenter+=Math.floor((e-o)/2),this.yCenter+=Math.floor((r-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,o,r,n))}getIndexAngle(e){const o=Se/(this._pointLabels.length||1),r=this.options.startAngle||0;return st(e*o+xt(r))}getDistanceFromCenterForValue(e){if(fe(e))return NaN;const o=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*o:(e-this.min)*o}getValueForDistanceFromCenter(e){if(fe(e))return NaN;const o=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-o:this.min+o}getPointLabelContext(e){const o=this._pointLabels||[];if(e>=0&&e<o.length){const r=o[e];return X2(this.getContext(),e,r)}}getPointPosition(e,o,r=0){const n=this.getIndexAngle(e)-Fe+r;return{x:Math.cos(n)*o+this.xCenter,y:Math.sin(n)*o+this.yCenter,angle:n}}getPointPositionForValue(e,o){return this.getPointPosition(e,this.getDistanceFromCenterForValue(o))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:o,top:r,right:n,bottom:i}=this._pointLabelItems[e];return{left:o,top:r,right:n,bottom:i}}drawBackground(){const{backgroundColor:e,grid:{circular:o}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),_f(this,this.getDistanceFromCenterForValue(this._endValue),o,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,o=this.options,{angleLines:r,grid:n,border:i}=o,s=this._pointLabels.length;let l,c,d;if(o.pointLabels.display&&q2(this,s),n.display&&this.ticks.forEach((u,f)=>{if(f!==0||f===0&&this.min<0){c=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(f),g=n.setContext(h),m=i.setContext(h);Y2(this,g,c,s,m)}}),r.display){for(e.save(),l=s-1;l>=0;l--){const u=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=u;!h||!f||(e.lineWidth=h,e.strokeStyle=f,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,c=this.getDistanceFromCenterForValue(o.reverse?this.min:this.max),d=this.getPointPosition(l,c),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(d.x,d.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,o=this.options,r=o.ticks;if(!r.display)return;const n=this.getIndexAngle(0);let i,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(n),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!o.reverse)return;const d=r.setContext(this.getContext(c)),u=Le(d.font);if(i=this.getDistanceFromCenterForValue(this.ticks[c].value),d.showLabelBackdrop){e.font=u.string,s=e.measureText(l.label).width,e.fillStyle=d.backdropColor;const f=Ye(d.backdropPadding);e.fillRect(-s/2-f.left,-i-u.size/2-f.top,s+f.width,u.size+f.height)}Eo(e,l.label,0,-i,u,{color:d.color,strokeColor:d.textStrokeColor,strokeWidth:d.textStrokeWidth})}),e.restore()}drawTitle(){}}H(Zo,"id","radialLinear"),H(Zo,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ir.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),H(Zo,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),H(Zo,"descriptors",{angleLines:{_fallback:"grid"}});const bi={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}},ot=Object.keys(bi);function Sf(t,e){return t-e}function Bf(t,e){if(fe(e))return null;const o=t._adapter,{parser:r,round:n,isoWeekday:i}=t._parseOpts;let s=e;return typeof r=="function"&&(s=r(s)),Ae(s)||(s=typeof r=="string"?o.parse(s,r):o.parse(s)),s===null?null:(n&&(s=n==="week"&&(qo(i)||i===!0)?o.startOf(s,"isoWeek",i):o.startOf(s,n)),+s)}function Ef(t,e,o,r){const n=ot.length;for(let i=ot.indexOf(t);i<n-1;++i){const s=bi[ot[i]],l=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((o-e)/(l*s.size))<=r)return ot[i]}return ot[n-1]}function K2(t,e,o,r,n){for(let i=ot.length-1;i>=ot.indexOf(o);i--){const s=ot[i];if(bi[s].common&&t._adapter.diff(n,r,s)>=e-1)return s}return ot[o?ot.indexOf(o):0]}function G2(t){for(let e=ot.indexOf(t)+1,o=ot.length;e<o;++e)if(bi[ot[e]].common)return ot[e]}function Rf(t,e,o){if(!o)t[e]=!0;else if(o.length){const{lo:r,hi:n}=xa(o,e),i=o[r]>=e?o[r]:o[n];t[i]=!0}}function Q2(t,e,o,r){const n=t._adapter,i=+n.startOf(e[0].value,r),s=e[e.length-1].value;let l,c;for(l=i;l<=s;l=+n.add(l,1,r))c=o[l],c>=0&&(e[c].major=!0);return e}function Of(t,e,o){const r=[],n={},i=e.length;let s,l;for(s=0;s<i;++s)l=e[s],n[l]=s,r.push({value:l,major:!1});return i===0||!o?r:Q2(t,r,n,o)}class er extends fo{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,o={}){const r=e.time||(e.time={}),n=this._adapter=new iu._date(e.adapters.date);n.init(o),Pr(r.displayFormats,n.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=o.normalized}parse(e,o){return e===void 0?null:Bf(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,o=this._adapter,r=e.time.unit||"day";let{min:n,max:i,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(n=Math.min(n,d.min)),!l&&!isNaN(d.max)&&(i=Math.max(i,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),n=Ae(n)&&!isNaN(n)?n:+o.startOf(Date.now(),r),i=Ae(i)&&!isNaN(i)?i:+o.endOf(Date.now(),r)+1,this.min=Math.min(n,i-1),this.max=Math.max(n+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let o=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(o=e[0],r=e[e.length-1]),{min:o,max:r}}buildTicks(){const e=this.options,o=e.time,r=e.ticks,n=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const i=this.min,s=this.max,l=q_(n,i,s);return this._unit=o.unit||(r.autoSkip?Ef(o.minUnit,this.min,this.max,this._getLabelCapacity(i)):K2(this,l.length,o.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:G2(this._unit),this.initOffsets(n),e.reverse&&l.reverse(),Of(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let o=0,r=0,n,i;this.options.offset&&e.length&&(n=this.getDecimalForValue(e[0]),e.length===1?o=1-n:o=(this.getDecimalForValue(e[1])-n)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?r=i:r=(i-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;o=je(o,0,s),r=je(r,0,s),this._offsets={start:o,end:r,factor:1/(o+1+r)}}_generate(){const e=this._adapter,o=this.min,r=this.max,n=this.options,i=n.time,s=i.unit||Ef(i.minUnit,o,r,this._getLabelCapacity(o)),l=se(n.ticks.stepSize,1),c=s==="week"?i.isoWeekday:!1,d=qo(c)||c===!0,u={};let f=o,h,g;if(d&&(f=+e.startOf(f,"isoWeek",c)),f=+e.startOf(f,d?"day":s),e.diff(r,o,s)>1e5*l)throw new Error(o+" and "+r+" are too far apart with stepSize of "+l+" "+s);const m=n.ticks.source==="data"&&this.getDataTimestamps();for(h=f,g=0;h<r;h=+e.add(h,l,s),g++)Rf(u,h,m);return(h===r||n.bounds==="ticks"||g===1)&&Rf(u,h,m),Object.keys(u).sort(Sf).map(p=>+p)}getLabelForValue(e){const o=this._adapter,r=this.options.time;return r.tooltipFormat?o.format(e,r.tooltipFormat):o.format(e,r.displayFormats.datetime)}format(e,o){const n=this.options.time.displayFormats,i=this._unit,s=o||n[i];return this._adapter.format(e,s)}_tickFormatFunction(e,o,r,n){const i=this.options,s=i.ticks.callback;if(s)return ve(s,[e,o,r],this);const l=i.time.displayFormats,c=this._unit,d=this._majorUnit,u=c&&l[c],f=d&&l[d],h=r[o],g=d&&f&&h&&h.major;return this._adapter.format(e,n||(g?f:u))}generateTickLabels(e){let o,r,n;for(o=0,r=e.length;o<r;++o)n=e[o],n.label=this._tickFormatFunction(n.value,o,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const o=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((o.start+r)*o.factor)}getValueForPixel(e){const o=this._offsets,r=this.getDecimalForPixel(e)/o.factor-o.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const o=this.options.ticks,r=this.ctx.measureText(e).width,n=xt(this.isHorizontal()?o.maxRotation:o.minRotation),i=Math.cos(n),s=Math.sin(n),l=this._resolveTickFontOptions(0).size;return{w:r*i+l*s,h:r*s+l*i}}_getLabelCapacity(e){const o=this.options.time,r=o.displayFormats,n=r[o.unit]||r.millisecond,i=this._tickFormatFunction(e,0,Of(this,[e],this._majorUnit),n),s=this._getLabelSize(i),l=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return l>0?l:1}getDataTimestamps(){let e=this._cache.data||[],o,r;if(e.length)return e;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(o=0,r=n.length;o<r;++o)e=e.concat(n[o].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let o,r;if(e.length)return e;const n=this.getLabels();for(o=0,r=n.length;o<r;++o)e.push(Bf(this,n[o]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return md(e.sort(Sf))}}H(er,"id","time"),H(er,"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 yi(t,e,o){let r=0,n=t.length-1,i,s,l,c;o?(e>=t[r].pos&&e<=t[n].pos&&({lo:r,hi:n}=Ht(t,"pos",e)),{pos:i,time:l}=t[r],{pos:s,time:c}=t[n]):(e>=t[r].time&&e<=t[n].time&&({lo:r,hi:n}=Ht(t,"time",e)),{time:i,pos:l}=t[r],{time:s,pos:c}=t[n]);const d=s-i;return d?l+(c-l)*(e-i)/d:l}class ki extends er{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),o=this._table=this.buildLookupTable(e);this._minPos=yi(o,this.min),this._tableRange=yi(o,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:o,max:r}=this,n=[],i=[];let s,l,c,d,u;for(s=0,l=e.length;s<l;++s)d=e[s],d>=o&&d<=r&&n.push(d);if(n.length<2)return[{time:o,pos:0},{time:r,pos:1}];for(s=0,l=n.length;s<l;++s)u=n[s+1],c=n[s-1],d=n[s],Math.round((u+c)/2)!==d&&i.push({time:d,pos:s/(l-1)});return i}_generate(){const e=this.min,o=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(o)||r.length===1)&&r.push(o),r.sort((n,i)=>n-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const o=this.getDataTimestamps(),r=this.getLabelTimestamps();return o.length&&r.length?e=this.normalize(o.concat(r)):e=o.length?o:r,e=this._cache.all=e,e}getDecimalForValue(e){return(yi(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const o=this._offsets,r=this.getDecimalForPixel(e)/o.factor-o.end;return yi(this._table,r*this._tableRange+this._minPos,!0)}}H(ki,"id","timeseries"),H(ki,"defaults",er.defaults);var Df=Object.freeze({__proto__:null,CategoryScale:hi,LinearScale:mi,LogarithmicScale:pi,RadialLinearScale:Zo,TimeScale:er,TimeSeriesScale:ki});const Nf=[nu,zu,yf,Df];Nt.register(...Nf);const J2=Object.freeze(Object.defineProperty({__proto__:null,Animation:Yd,Animations:Pa,ArcElement:Jo,BarController:Hr,BarElement:rn,BasePlatform:za,BasicPlatform:hu,BubbleController:Ur,CategoryScale:hi,Chart:Nt,Colors:qu,DatasetController:ut,Decimation:Ku,DomPlatform:yu,DoughnutController:uo,Element:Dt,Filler:rf,Interaction:su,Legend:lf,LineController:qr,LineElement:qt,LinearScale:mi,LogarithmicScale:pi,PieController:ti,PointElement:on,PolarAreaController:Go,RadarController:Yr,RadialLinearScale:Zo,Scale:fo,ScatterController:Xr,SubTitle:df,Ticks:Ir,TimeScale:er,TimeSeriesScale:ki,Title:cf,Tooltip:bf,_adapters:iu,_detectPlatform:ku,animator:Ot,controllers:nu,default:Nt,defaults:Be,elements:zu,layouts:We,plugins:yf,registerables:Nf,registry:vt,scales:Df},Symbol.toStringTag,{value:"Module"}));we.default=c_,we.useAddEntityRecord=i_,we.useComponentService=l_,we.useDeleteEntityRecord=a_,we.useEntitiesStore=Oc,we.useEntityRecordService=mt,we.useEntityService=Rc,we.useGetEntityRecord=n_,we.useGlobalConfigsStore=Qe,we.useThemeConfig=r_,we.useThemeService=s_,Object.defineProperties(we,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
189
|
+
`):t}function a2(t,e){const{element:o,datasetIndex:r,index:n}=e,i=t.getDatasetMeta(r).controller,{label:a,value:l}=i.getLabelAndValue(n);return{chart:t,label:a,parsed:i.getParsed(n),raw:t.data.datasets[r].data[n],formattedValue:l,dataset:i.getDataset(),dataIndex:n,datasetIndex:r,element:o}}function ff(t,e){const o=t.chart.ctx,{body:r,footer:n,title:i}=t,{boxWidth:a,boxHeight:l}=e,c=Ie(e.bodyFont),d=Ie(e.titleFont),u=Ie(e.footerFont),f=i.length,h=n.length,g=r.length,m=Xe(e.padding);let p=m.height,b=0,y=r.reduce((B,w)=>B+w.before.length+w.lines.length+w.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,f&&(p+=f*d.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),y){const B=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;p+=g*B+(y-g)*c.lineHeight+(y-1)*e.bodySpacing}h&&(p+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let x=0;const C=function(B){b=Math.max(b,o.measureText(B).width+x)};return o.save(),o.font=d.string,ye(t.title,C),o.font=c.string,ye(t.beforeBody.concat(t.afterBody),C),x=e.displayColors?a+2+e.boxPadding:0,ye(r,B=>{ye(B.before,C),ye(B.lines,C),ye(B.after,C)}),x=0,o.font=u.string,ye(t.footer,C),o.restore(),b+=m.width,{width:b,height:p}}function s2(t,e){const{y:o,height:r}=e;return o<r/2?"top":o>t.height-r/2?"bottom":"center"}function l2(t,e,o,r){const{x:n,width:i}=r,a=o.caretSize+o.caretPadding;if(t==="left"&&n+i+a>e.width||t==="right"&&n-i-a<0)return!0}function c2(t,e,o,r){const{x:n,width:i}=o,{width:a,chartArea:{left:l,right:c}}=t;let d="center";return r==="center"?d=n<=(l+c)/2?"left":"right":n<=i/2?d="left":n>=a-i/2&&(d="right"),l2(d,t,e,o)&&(d="center"),d}function hf(t,e,o){const r=o.yAlign||e.yAlign||s2(t,o);return{xAlign:o.xAlign||e.xAlign||c2(t,e,o,r),yAlign:r}}function d2(t,e){let{x:o,width:r}=t;return e==="right"?o-=r:e==="center"&&(o-=r/2),o}function u2(t,e,o){let{y:r,height:n}=t;return e==="top"?r+=o:e==="bottom"?r-=n+o:r-=n/2,r}function gf(t,e,o,r){const{caretSize:n,caretPadding:i,cornerRadius:a}=t,{xAlign:l,yAlign:c}=o,d=n+i,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:g}=Oo(a);let m=d2(e,l);const p=u2(e,c,d);return c==="center"?l==="left"?m+=d:l==="right"&&(m-=d):l==="left"?m-=Math.max(u,h)+n:l==="right"&&(m+=Math.max(f,g)+n),{x:je(m,0,r.width-e.width),y:je(p,0,r.height-e.height)}}function fi(t,e,o){const r=Xe(o.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function mf(t){return Tt([],Yt(t))}function f2(t,e,o){return co(t,{tooltip:e,tooltipItems:o,type:"tooltip"})}function pf(t,e){const o=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return o?t.override(o):t}const bf={beforeTitle:jt,title(t){if(t.length>0){const e=t[0],o=e.chart.data.labels,r=o?o.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return o[e.dataIndex]}return""},afterTitle:jt,beforeBody:jt,beforeLabel:jt,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const o=t.formattedValue;return fe(o)||(e+=o),e},labelColor(t){const o=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:o.borderColor,backgroundColor:o.backgroundColor,borderWidth:o.borderWidth,borderDash:o.borderDash,borderDashOffset:o.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const o=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:o.pointStyle,rotation:o.rotation}},afterLabel:jt,afterBody:jt,beforeFooter:jt,footer:jt,afterFooter:jt};function et(t,e,o,r){const n=t[e].call(o,r);return typeof n>"u"?bf[e].call(o,r):n}class Za extends Dt{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 o=this.chart,r=this.options.setContext(this.getContext()),n=r.enabled&&o.options.animation&&r.animations,i=new Pa(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=f2(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,o){const{callbacks:r}=o,n=et(r,"beforeTitle",this,e),i=et(r,"title",this,e),a=et(r,"afterTitle",this,e);let l=[];return l=Tt(l,Yt(n)),l=Tt(l,Yt(i)),l=Tt(l,Yt(a)),l}getBeforeBody(e,o){return mf(et(o.callbacks,"beforeBody",this,e))}getBody(e,o){const{callbacks:r}=o,n=[];return ye(e,i=>{const a={before:[],lines:[],after:[]},l=pf(r,i);Tt(a.before,Yt(et(l,"beforeLabel",this,i))),Tt(a.lines,et(l,"label",this,i)),Tt(a.after,Yt(et(l,"afterLabel",this,i))),n.push(a)}),n}getAfterBody(e,o){return mf(et(o.callbacks,"afterBody",this,e))}getFooter(e,o){const{callbacks:r}=o,n=et(r,"beforeFooter",this,e),i=et(r,"footer",this,e),a=et(r,"afterFooter",this,e);let l=[];return l=Tt(l,Yt(n)),l=Tt(l,Yt(i)),l=Tt(l,Yt(a)),l}_createItems(e){const o=this._active,r=this.chart.data,n=[],i=[],a=[];let l=[],c,d;for(c=0,d=o.length;c<d;++c)l.push(a2(this.chart,o[c]));return e.filter&&(l=l.filter((u,f,h)=>e.filter(u,f,h,r))),e.itemSort&&(l=l.sort((u,f)=>e.itemSort(u,f,r))),ye(l,u=>{const f=pf(e.callbacks,u);n.push(et(f,"labelColor",this,u)),i.push(et(f,"labelPointStyle",this,u)),a.push(et(f,"labelTextColor",this,u))}),this.labelColors=n,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=l,l}update(e,o){const r=this.options.setContext(this.getContext()),n=this._active;let i,a=[];if(!n.length)this.opacity!==0&&(i={opacity:0});else{const l=nn[r.position].call(this,n,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const c=this._size=ff(this,r),d=Object.assign({},l,c),u=hf(this.chart,r,d),f=gf(r,d,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:o})}drawCaret(e,o,r,n){const i=this.getCaretPosition(e,r,n);o.lineTo(i.x1,i.y1),o.lineTo(i.x2,i.y2),o.lineTo(i.x3,i.y3)}getCaretPosition(e,o,r){const{xAlign:n,yAlign:i}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=Oo(l),{x:h,y:g}=e,{width:m,height:p}=o;let b,y,x,C,B,w;return i==="center"?(B=g+p/2,n==="left"?(b=h,y=b-a,C=B+a,w=B-a):(b=h+m,y=b+a,C=B-a,w=B+a),x=b):(n==="left"?y=h+Math.max(c,u)+a:n==="right"?y=h+m-Math.max(d,f)-a:y=this.caretX,i==="top"?(C=g,B=C-a,b=y-a,x=y+a):(C=g+p,B=C+a,b=y+a,x=y-a),w=C),{x1:b,x2:y,x3:x,y1:C,y2:B,y3:w}}drawTitle(e,o,r){const n=this.title,i=n.length;let a,l,c;if(i){const d=Go(r.rtl,this.x,this.width);for(e.x=fi(this,r.titleAlign,r),o.textAlign=d.textAlign(r.titleAlign),o.textBaseline="middle",a=Ie(r.titleFont),l=r.titleSpacing,o.fillStyle=r.titleColor,o.font=a.string,c=0;c<i;++c)o.fillText(n[c],d.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+l,c+1===i&&(e.y+=r.titleMarginBottom-l)}}_drawColorBox(e,o,r,n,i){const a=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:c,boxWidth:d}=i,u=Ie(i.bodyFont),f=fi(this,"left",i),h=n.x(f),g=c<u.lineHeight?(u.lineHeight-c)/2:0,m=o.y+g;if(i.usePointStyle){const p={radius:Math.min(d,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},b=n.leftForLtr(h,d)+d/2,y=m+c/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,Ba(e,p,b,y),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,Ba(e,p,b,y)}else{e.lineWidth=de(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const p=n.leftForLtr(h,d),b=n.leftForLtr(n.xPlus(h,1),d-2),y=Oo(a.borderRadius);Object.values(y).some(x=>x!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,zr(e,{x:p,y:m,w:d,h:c,radius:y}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),zr(e,{x:b,y:m+1,w:d-2,h:c-2,radius:y}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(p,m,d,c),e.strokeRect(p,m,d,c),e.fillStyle=a.backgroundColor,e.fillRect(b,m+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,o,r){const{body:n}=this,{bodySpacing:i,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:u}=r,f=Ie(r.bodyFont);let h=f.lineHeight,g=0;const m=Go(r.rtl,this.x,this.width),p=function(k){o.fillText(k,m.x(e.x+g),e.y+h/2),e.y+=h+i},b=m.textAlign(a);let y,x,C,B,w,_,v;for(o.textAlign=a,o.textBaseline="middle",o.font=f.string,e.x=fi(this,b,r),o.fillStyle=r.bodyColor,ye(this.beforeBody,p),g=l&&b!=="right"?a==="center"?d/2+u:d+2+u:0,B=0,_=n.length;B<_;++B){for(y=n[B],x=this.labelTextColors[B],o.fillStyle=x,ye(y.before,p),C=y.lines,l&&C.length&&(this._drawColorBox(o,e,B,m,r),h=Math.max(f.lineHeight,c)),w=0,v=C.length;w<v;++w)p(C[w]),h=f.lineHeight;ye(y.after,p)}g=0,h=f.lineHeight,ye(this.afterBody,p),e.y-=i}drawFooter(e,o,r){const n=this.footer,i=n.length;let a,l;if(i){const c=Go(r.rtl,this.x,this.width);for(e.x=fi(this,r.footerAlign,r),e.y+=r.footerMarginTop,o.textAlign=c.textAlign(r.footerAlign),o.textBaseline="middle",a=Ie(r.footerFont),o.fillStyle=r.footerColor,o.font=a.string,l=0;l<i;++l)o.fillText(n[l],c.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+r.footerSpacing}}drawBackground(e,o,r,n){const{xAlign:i,yAlign:a}=this,{x:l,y:c}=e,{width:d,height:u}=r,{topLeft:f,topRight:h,bottomLeft:g,bottomRight:m}=Oo(n.cornerRadius);o.fillStyle=n.backgroundColor,o.strokeStyle=n.borderColor,o.lineWidth=n.borderWidth,o.beginPath(),o.moveTo(l+f,c),a==="top"&&this.drawCaret(e,o,r,n),o.lineTo(l+d-h,c),o.quadraticCurveTo(l+d,c,l+d,c+h),a==="center"&&i==="right"&&this.drawCaret(e,o,r,n),o.lineTo(l+d,c+u-m),o.quadraticCurveTo(l+d,c+u,l+d-m,c+u),a==="bottom"&&this.drawCaret(e,o,r,n),o.lineTo(l+g,c+u),o.quadraticCurveTo(l,c+u,l,c+u-g),a==="center"&&i==="left"&&this.drawCaret(e,o,r,n),o.lineTo(l,c+f),o.quadraticCurveTo(l,c,l+f,c),o.closePath(),o.fill(),n.borderWidth>0&&o.stroke()}_updateAnimationTarget(e){const o=this.chart,r=this.$animations,n=r&&r.x,i=r&&r.y;if(n||i){const a=nn[e.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=ff(this,e),c=Object.assign({},a,this._size),d=hf(o,e,c),u=gf(e,c,d,o);(n._to!==u.x||i._to!==u.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const o=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(o);const n={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Xe(o.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;o.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(i,e,n,o),Ld(e,o.textDirection),i.y+=a.top,this.drawTitle(i,e,o),this.drawBody(i,e,o),this.drawFooter(i,e,o),Id(e,o.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,o){const r=this._active,n=e.map(({datasetIndex:l,index:c})=>{const d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),i=!Hn(r,n),a=this._positionChanged(n,o);(i||a)&&(this._active=n,this._eventPosition=o,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,o,r=!0){if(o&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,i=this._active||[],a=this._getActiveElements(e,i,o,r),l=this._positionChanged(a,e),c=o||!Hn(a,i)||l;return c&&(this._active=a,(n.enabled||n.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,o))),c}_getActiveElements(e,o,r,n){const i=this.options;if(e.type==="mouseout")return[];if(!n)return o.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const a=this.chart.getElementsAtEventForMode(e,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(e,o){const{caretX:r,caretY:n,options:i}=this,a=nn[i.position].call(this,e,o);return a!==!1&&(r!==a.x||n!==a.y)}}H(Za,"positioners",nn);var yf={id:"tooltip",_element:Za,positioners:nn,afterInit(t,e,o){o&&(t.tooltip=new Za({chart:t,options:o}))},beforeUpdate(t,e,o){t.tooltip&&t.tooltip.initialize(o)},reset(t,e,o){t.tooltip&&t.tooltip.initialize(o)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const o={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...o,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",o)}},afterEvent(t,e){if(t.tooltip){const o=e.replay;t.tooltip.handleEvent(e.event,o,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:(t,e)=>e.bodyFont.size,boxWidth:(t,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:bf},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},kf=Object.freeze({__proto__:null,Colors:Yu,Decimation:Gu,Filler:nf,Legend:cf,SubTitle:uf,Title:df,Tooltip:yf});const h2=(t,e,o,r)=>(typeof e=="string"?(o=t.push(e)-1,r.unshift({index:o,label:e})):isNaN(e)&&(o=null),o);function g2(t,e,o,r){const n=t.indexOf(e);if(n===-1)return h2(t,e,o,r);const i=t.lastIndexOf(e);return n!==i?o:n}const m2=(t,e)=>t===null?null:je(Math.round(t),0,e);function xf(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class hi extends fo{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const o=this._addedLabels;if(o.length){const r=this.getLabels();for(const{index:n,label:i}of o)r[n]===i&&r.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,o){if(fe(e))return null;const r=this.getLabels();return o=isFinite(o)&&r[o]===e?o:g2(r,e,se(o,e),this._addedLabels),m2(o,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:o}=this.getUserBounds();let{min:r,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),o||(n=this.getLabels().length-1)),this.min=r,this.max=n}buildTicks(){const e=this.min,o=this.max,r=this.options.offset,n=[];let i=this.getLabels();i=e===0&&o===i.length-1?i:i.slice(e,o+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=e;a<=o;a++)n.push({value:a});return n}getLabelForValue(e){return xf.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 o=this.ticks;return e<0||e>o.length-1?null:this.getPixelForValue(o[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}H(hi,"id","category"),H(hi,"defaults",{ticks:{callback:xf}});function p2(t,e){const o=[],{bounds:n,step:i,min:a,max:l,precision:c,count:d,maxTicks:u,maxDigits:f,includeBounds:h}=t,g=i||1,m=u-1,{min:p,max:b}=e,y=!fe(a),x=!fe(l),C=!fe(d),B=(b-p)/(f+1);let w=dd((b-p)/m/g)*g,_,v,k,S;if(w<1e-14&&!y&&!x)return[{value:p},{value:b}];S=Math.ceil(b/w)-Math.floor(p/w),S>m&&(w=dd(S*w/m/g)*g),fe(c)||(_=Math.pow(10,c),w=Math.ceil(w*_)/_),n==="ticks"?(v=Math.floor(p/w)*w,k=Math.ceil(b/w)*w):(v=p,k=b),y&&x&&i&&S_((l-a)/i,w/1e3)?(S=Math.round(Math.min((l-a)/w,u)),w=(l-a)/S,v=a,k=l):C?(v=y?a:v,k=x?l:k,S=d-1,w=(k-v)/S):(S=(k-v)/w,$r(S,Math.round(S),w/1e3)?S=Math.round(S):S=Math.ceil(S));const N=Math.max(fd(w),fd(v));_=Math.pow(10,fe(c)?N:c),v=Math.round(v*_)/_,k=Math.round(k*_)/_;let E=0;for(y&&(h&&v!==a?(o.push({value:a}),v<a&&E++,$r(Math.round((v+E*w)*_)/_,a,vf(a,B,t))&&E++):v<a&&E++);E<S;++E){const D=Math.round((v+E*w)*_)/_;if(x&&D>l)break;o.push({value:D})}return x&&h&&k!==l?o.length&&$r(o[o.length-1].value,l,vf(l,B,t))?o[o.length-1].value=l:o.push({value:l}):(!x||k===l)&&o.push({value:k}),o}function vf(t,e,{horizontal:o,minRotation:r}){const n=xt(r),i=(o?Math.sin(n):Math.cos(n))||.001,a=.75*e*(""+t).length;return Math.min(e/i,a)}class gi extends fo{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,o){return fe(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:o,maxDefined:r}=this.getUserBounds();let{min:n,max:i}=this;const a=c=>n=o?n:c,l=c=>i=r?i:c;if(e){const c=Rt(n),d=Rt(i);c<0&&d<0?l(0):c>0&&d>0&&a(0)}if(n===i){let c=i===0?1:Math.abs(i*.05);l(i+c),e||a(n-c)}this.min=n,this.max=i}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:o,stepSize:r}=e,n;return r?(n=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),o=o||11),o&&(n=Math.min(o,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,o=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const n={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:o.precision,step:o.stepSize,count:o.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:o.minRotation||0,includeBounds:o.includeBounds!==!1},i=this._range||this,a=p2(n,i);return e.bounds==="ticks"&&ud(a,this,"value"),e.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const e=this.ticks;let o=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const n=(r-o)/Math.max(e.length-1,1)/2;o-=n,r+=n}this._startValue=o,this._endValue=r,this._valueRange=r-o}getLabelForValue(e){return Vr(e,this.chart.options.locale,this.options.ticks.format)}}class mi extends gi{determineDataLimits(){const{min:e,max:o}=this.getMinMax(!0);this.min=Pe(e)?e:0,this.max=Pe(o)?o:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),o=e?this.width:this.height,r=xt(this.options.ticks.minRotation),n=(e?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(o/Math.min(40,i.lineHeight/n))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}H(mi,"id","linear"),H(mi,"defaults",{ticks:{callback:Lr.formatters.numeric}});const an=t=>Math.floor(lo(t)),Ao=(t,e)=>Math.pow(10,an(t)+e);function wf(t){return t/Math.pow(10,an(t))===1}function Cf(t,e,o){const r=Math.pow(10,o),n=Math.floor(t/r);return Math.ceil(e/r)-n}function b2(t,e){const o=e-t;let r=an(o);for(;Cf(t,e,r)>10;)r++;for(;Cf(t,e,r)<10;)r--;return Math.min(r,an(t))}function y2(t,{min:e,max:o}){e=at(t.min,e);const r=[],n=an(e);let i=b2(e,o),a=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),c=n>i?Math.pow(10,n):0,d=Math.round((e-c)*a)/a,u=Math.floor((e-c)/l/10)*l*10;let f=Math.floor((d-u)/Math.pow(10,i)),h=at(t.min,Math.round((c+u+f*Math.pow(10,i))*a)/a);for(;h<o;)r.push({value:h,major:wf(h),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,a=i>=0?1:a),h=Math.round((c+u+f*Math.pow(10,i))*a)/a;const g=at(t.max,h);return r.push({value:g,major:wf(g),significand:f}),r}class pi extends fo{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,o){const r=gi.prototype.parse.apply(this,[e,o]);if(r===0){this._zero=!0;return}return Pe(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:o}=this.getMinMax(!0);this.min=Pe(e)?Math.max(0,e):null,this.max=Pe(o)?Math.max(0,o):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Pe(this._userMin)&&(this.min=e===Ao(this.min,0)?Ao(this.min,-1):Ao(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:o}=this.getUserBounds();let r=this.min,n=this.max;const i=l=>r=e?r:l,a=l=>n=o?n:l;r===n&&(r<=0?(i(1),a(10)):(i(Ao(r,-1)),a(Ao(n,1)))),r<=0&&i(Ao(n,-1)),n<=0&&a(Ao(r,1)),this.min=r,this.max=n}buildTicks(){const e=this.options,o={min:this._userMin,max:this._userMax},r=y2(o,this);return e.bounds==="ticks"&&ud(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":Vr(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=lo(e),this._valueRange=lo(this.max)-lo(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(lo(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const o=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+o*this._valueRange)}}H(pi,"id","logarithmic"),H(pi,"defaults",{ticks:{callback:Lr.formatters.logarithmic,major:{enabled:!0}}});function es(t){const e=t.ticks;if(e.display&&t.display){const o=Xe(e.backdropPadding);return se(e.font&&e.font.size,Be.font.size)+o.height}return 0}function k2(t,e,o){return o=Oe(o)?o:[o],{w:j_(t,e.string,o),h:o.length*e.lineHeight}}function _f(t,e,o,r,n){return t===r||t===n?{start:e-o/2,end:e+o/2}:t<r||t>n?{start:e-o,end:e}:{start:e,end:e+o}}function x2(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},o=Object.assign({},e),r=[],n=[],i=t._pointLabels.length,a=t.options.pointLabels,l=a.centerPointLabels?_e/i:0;for(let c=0;c<i;c++){const d=a.setContext(t.getPointLabelContext(c));n[c]=d.padding;const u=t.getPointPosition(c,t.drawingArea+n[c],l),f=Ie(d.font),h=k2(t.ctx,f,t._pointLabels[c]);r[c]=h;const g=st(t.getIndexAngle(c)+l),m=Math.round(ya(g)),p=_f(m,u.x,h.w,0,180),b=_f(m,u.y,h.h,90,270);v2(o,e,g,p,b)}t.setCenterPoint(e.l-o.l,o.r-e.r,e.t-o.t,o.b-e.b),t._pointLabelItems=_2(t,r,n)}function v2(t,e,o,r,n){const i=Math.abs(Math.sin(o)),a=Math.abs(Math.cos(o));let l=0,c=0;r.start<e.l?(l=(e.l-r.start)/i,t.l=Math.min(t.l,e.l-l)):r.end>e.r&&(l=(r.end-e.r)/i,t.r=Math.max(t.r,e.r+l)),n.start<e.t?(c=(e.t-n.start)/a,t.t=Math.min(t.t,e.t-c)):n.end>e.b&&(c=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+c))}function w2(t,e,o){const r=t.drawingArea,{extra:n,additionalAngle:i,padding:a,size:l}=o,c=t.getPointPosition(e,r+n+a,i),d=Math.round(ya(st(c.angle+$e))),u=E2(c.y,l.h,d),f=S2(d),h=B2(c.x,l.w,f);return{visible:!0,x:c.x,y:u,textAlign:f,left:h,top:u,right:h+l.w,bottom:u+l.h}}function C2(t,e){if(!e)return!0;const{left:o,top:r,right:n,bottom:i}=t;return!(Ut({x:o,y:r},e)||Ut({x:o,y:i},e)||Ut({x:n,y:r},e)||Ut({x:n,y:i},e))}function _2(t,e,o){const r=[],n=t._pointLabels.length,i=t.options,{centerPointLabels:a,display:l}=i.pointLabels,c={extra:es(i)/2,additionalAngle:a?_e/n:0};let d;for(let u=0;u<n;u++){c.padding=o[u],c.size=e[u];const f=w2(t,u,c);r.push(f),l==="auto"&&(f.visible=C2(f,d),f.visible&&(d=f))}return r}function S2(t){return t===0||t===180?"center":t<180?"left":"right"}function B2(t,e,o){return o==="right"?t-=e:o==="center"&&(t-=e/2),t}function E2(t,e,o){return o===90||o===270?t-=e/2:(o>270||o<90)&&(t-=e),t}function R2(t,e,o){const{left:r,top:n,right:i,bottom:a}=o,{backdropColor:l}=e;if(!fe(l)){const c=Oo(e.borderRadius),d=Xe(e.backdropPadding);t.fillStyle=l;const u=r-d.left,f=n-d.top,h=i-r+d.width,g=a-n+d.height;Object.values(c).some(m=>m!==0)?(t.beginPath(),zr(t,{x:u,y:f,w:h,h:g,radius:c}),t.fill()):t.fillRect(u,f,h,g)}}function O2(t,e){const{ctx:o,options:{pointLabels:r}}=t;for(let n=e-1;n>=0;n--){const i=t._pointLabelItems[n];if(!i.visible)continue;const a=r.setContext(t.getPointLabelContext(n));R2(o,a,i);const l=Ie(a.font),{x:c,y:d,textAlign:u}=i;Ro(o,t._pointLabels[n],c,d+l.lineHeight/2,l,{color:a.color,textAlign:u,textBaseline:"middle"})}}function Sf(t,e,o,r){const{ctx:n}=t;if(o)n.arc(t.xCenter,t.yCenter,e,0,Se);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let a=1;a<r;a++)i=t.getPointPosition(a,e),n.lineTo(i.x,i.y)}}function D2(t,e,o,r,n){const i=t.ctx,a=e.circular,{color:l,lineWidth:c}=e;!a&&!r||!l||!c||o<0||(i.save(),i.strokeStyle=l,i.lineWidth=c,i.setLineDash(n.dash||[]),i.lineDashOffset=n.dashOffset,i.beginPath(),Sf(t,o,a,r),i.closePath(),i.stroke(),i.restore())}function N2(t,e,o){return co(t,{label:o,index:e,type:"pointLabel"})}class er extends gi{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Xe(es(this.options)/2),o=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+o/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(o,r)/2)}determineDataLimits(){const{min:e,max:o}=this.getMinMax(!1);this.min=Pe(e)&&!isNaN(e)?e:0,this.max=Pe(o)&&!isNaN(o)?o:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/es(this.options))}generateTickLabels(e){gi.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((o,r)=>{const n=we(this.options.pointLabels.callback,[o,r],this);return n||n===0?n:""}).filter((o,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?x2(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,o,r,n){this.xCenter+=Math.floor((e-o)/2),this.yCenter+=Math.floor((r-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,o,r,n))}getIndexAngle(e){const o=Se/(this._pointLabels.length||1),r=this.options.startAngle||0;return st(e*o+xt(r))}getDistanceFromCenterForValue(e){if(fe(e))return NaN;const o=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*o:(e-this.min)*o}getValueForDistanceFromCenter(e){if(fe(e))return NaN;const o=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-o:this.min+o}getPointLabelContext(e){const o=this._pointLabels||[];if(e>=0&&e<o.length){const r=o[e];return N2(this.getContext(),e,r)}}getPointPosition(e,o,r=0){const n=this.getIndexAngle(e)-$e+r;return{x:Math.cos(n)*o+this.xCenter,y:Math.sin(n)*o+this.yCenter,angle:n}}getPointPositionForValue(e,o){return this.getPointPosition(e,this.getDistanceFromCenterForValue(o))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:o,top:r,right:n,bottom:i}=this._pointLabelItems[e];return{left:o,top:r,right:n,bottom:i}}drawBackground(){const{backgroundColor:e,grid:{circular:o}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),Sf(this,this.getDistanceFromCenterForValue(this._endValue),o,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,o=this.options,{angleLines:r,grid:n,border:i}=o,a=this._pointLabels.length;let l,c,d;if(o.pointLabels.display&&O2(this,a),n.display&&this.ticks.forEach((u,f)=>{if(f!==0||f===0&&this.min<0){c=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(f),g=n.setContext(h),m=i.setContext(h);D2(this,g,c,a,m)}}),r.display){for(e.save(),l=a-1;l>=0;l--){const u=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=u;!h||!f||(e.lineWidth=h,e.strokeStyle=f,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,c=this.getDistanceFromCenterForValue(o.reverse?this.min:this.max),d=this.getPointPosition(l,c),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(d.x,d.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,o=this.options,r=o.ticks;if(!r.display)return;const n=this.getIndexAngle(0);let i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(n),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!o.reverse)return;const d=r.setContext(this.getContext(c)),u=Ie(d.font);if(i=this.getDistanceFromCenterForValue(this.ticks[c].value),d.showLabelBackdrop){e.font=u.string,a=e.measureText(l.label).width,e.fillStyle=d.backdropColor;const f=Xe(d.backdropPadding);e.fillRect(-a/2-f.left,-i-u.size/2-f.top,a+f.width,u.size+f.height)}Ro(e,l.label,0,-i,u,{color:d.color,strokeColor:d.textStrokeColor,strokeWidth:d.textStrokeWidth})}),e.restore()}drawTitle(){}}H(er,"id","radialLinear"),H(er,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Lr.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),H(er,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),H(er,"descriptors",{angleLines:{_fallback:"grid"}});const bi={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}},tt=Object.keys(bi);function Bf(t,e){return t-e}function Ef(t,e){if(fe(e))return null;const o=t._adapter,{parser:r,round:n,isoWeekday:i}=t._parseOpts;let a=e;return typeof r=="function"&&(a=r(a)),Pe(a)||(a=typeof r=="string"?o.parse(a,r):o.parse(a)),a===null?null:(n&&(a=n==="week"&&(Yo(i)||i===!0)?o.startOf(a,"isoWeek",i):o.startOf(a,n)),+a)}function Rf(t,e,o,r){const n=tt.length;for(let i=tt.indexOf(t);i<n-1;++i){const a=bi[tt[i]],l=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((o-e)/(l*a.size))<=r)return tt[i]}return tt[n-1]}function T2(t,e,o,r,n){for(let i=tt.length-1;i>=tt.indexOf(o);i--){const a=tt[i];if(bi[a].common&&t._adapter.diff(n,r,a)>=e-1)return a}return tt[o?tt.indexOf(o):0]}function P2(t){for(let e=tt.indexOf(t)+1,o=tt.length;e<o;++e)if(bi[tt[e]].common)return tt[e]}function Of(t,e,o){if(!o)t[e]=!0;else if(o.length){const{lo:r,hi:n}=xa(o,e),i=o[r]>=e?o[r]:o[n];t[i]=!0}}function A2(t,e,o,r){const n=t._adapter,i=+n.startOf(e[0].value,r),a=e[e.length-1].value;let l,c;for(l=i;l<=a;l=+n.add(l,1,r))c=o[l],c>=0&&(e[c].major=!0);return e}function Df(t,e,o){const r=[],n={},i=e.length;let a,l;for(a=0;a<i;++a)l=e[a],n[l]=a,r.push({value:l,major:!1});return i===0||!o?r:A2(t,r,n,o)}class tr extends fo{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,o={}){const r=e.time||(e.time={}),n=this._adapter=new au._date(e.adapters.date);n.init(o),Pr(r.displayFormats,n.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=o.normalized}parse(e,o){return e===void 0?null:Ef(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,o=this._adapter,r=e.time.unit||"day";let{min:n,max:i,minDefined:a,maxDefined:l}=this.getUserBounds();function c(d){!a&&!isNaN(d.min)&&(n=Math.min(n,d.min)),!l&&!isNaN(d.max)&&(i=Math.max(i,d.max))}(!a||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),n=Pe(n)&&!isNaN(n)?n:+o.startOf(Date.now(),r),i=Pe(i)&&!isNaN(i)?i:+o.endOf(Date.now(),r)+1,this.min=Math.min(n,i-1),this.max=Math.max(n+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let o=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(o=e[0],r=e[e.length-1]),{min:o,max:r}}buildTicks(){const e=this.options,o=e.time,r=e.ticks,n=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const i=this.min,a=this.max,l=O_(n,i,a);return this._unit=o.unit||(r.autoSkip?Rf(o.minUnit,this.min,this.max,this._getLabelCapacity(i)):T2(this,l.length,o.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:P2(this._unit),this.initOffsets(n),e.reverse&&l.reverse(),Df(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let o=0,r=0,n,i;this.options.offset&&e.length&&(n=this.getDecimalForValue(e[0]),e.length===1?o=1-n:o=(this.getDecimalForValue(e[1])-n)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?r=i:r=(i-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;o=je(o,0,a),r=je(r,0,a),this._offsets={start:o,end:r,factor:1/(o+1+r)}}_generate(){const e=this._adapter,o=this.min,r=this.max,n=this.options,i=n.time,a=i.unit||Rf(i.minUnit,o,r,this._getLabelCapacity(o)),l=se(n.ticks.stepSize,1),c=a==="week"?i.isoWeekday:!1,d=Yo(c)||c===!0,u={};let f=o,h,g;if(d&&(f=+e.startOf(f,"isoWeek",c)),f=+e.startOf(f,d?"day":a),e.diff(r,o,a)>1e5*l)throw new Error(o+" and "+r+" are too far apart with stepSize of "+l+" "+a);const m=n.ticks.source==="data"&&this.getDataTimestamps();for(h=f,g=0;h<r;h=+e.add(h,l,a),g++)Of(u,h,m);return(h===r||n.bounds==="ticks"||g===1)&&Of(u,h,m),Object.keys(u).sort(Bf).map(p=>+p)}getLabelForValue(e){const o=this._adapter,r=this.options.time;return r.tooltipFormat?o.format(e,r.tooltipFormat):o.format(e,r.displayFormats.datetime)}format(e,o){const n=this.options.time.displayFormats,i=this._unit,a=o||n[i];return this._adapter.format(e,a)}_tickFormatFunction(e,o,r,n){const i=this.options,a=i.ticks.callback;if(a)return we(a,[e,o,r],this);const l=i.time.displayFormats,c=this._unit,d=this._majorUnit,u=c&&l[c],f=d&&l[d],h=r[o],g=d&&f&&h&&h.major;return this._adapter.format(e,n||(g?f:u))}generateTickLabels(e){let o,r,n;for(o=0,r=e.length;o<r;++o)n=e[o],n.label=this._tickFormatFunction(n.value,o,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const o=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((o.start+r)*o.factor)}getValueForPixel(e){const o=this._offsets,r=this.getDecimalForPixel(e)/o.factor-o.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const o=this.options.ticks,r=this.ctx.measureText(e).width,n=xt(this.isHorizontal()?o.maxRotation:o.minRotation),i=Math.cos(n),a=Math.sin(n),l=this._resolveTickFontOptions(0).size;return{w:r*i+l*a,h:r*a+l*i}}_getLabelCapacity(e){const o=this.options.time,r=o.displayFormats,n=r[o.unit]||r.millisecond,i=this._tickFormatFunction(e,0,Df(this,[e],this._majorUnit),n),a=this._getLabelSize(i),l=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return l>0?l:1}getDataTimestamps(){let e=this._cache.data||[],o,r;if(e.length)return e;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(o=0,r=n.length;o<r;++o)e=e.concat(n[o].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let o,r;if(e.length)return e;const n=this.getLabels();for(o=0,r=n.length;o<r;++o)e.push(Ef(this,n[o]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return pd(e.sort(Bf))}}H(tr,"id","time"),H(tr,"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 yi(t,e,o){let r=0,n=t.length-1,i,a,l,c;o?(e>=t[r].pos&&e<=t[n].pos&&({lo:r,hi:n}=Ht(t,"pos",e)),{pos:i,time:l}=t[r],{pos:a,time:c}=t[n]):(e>=t[r].time&&e<=t[n].time&&({lo:r,hi:n}=Ht(t,"time",e)),{time:i,pos:l}=t[r],{time:a,pos:c}=t[n]);const d=a-i;return d?l+(c-l)*(e-i)/d:l}class ki extends tr{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),o=this._table=this.buildLookupTable(e);this._minPos=yi(o,this.min),this._tableRange=yi(o,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:o,max:r}=this,n=[],i=[];let a,l,c,d,u;for(a=0,l=e.length;a<l;++a)d=e[a],d>=o&&d<=r&&n.push(d);if(n.length<2)return[{time:o,pos:0},{time:r,pos:1}];for(a=0,l=n.length;a<l;++a)u=n[a+1],c=n[a-1],d=n[a],Math.round((u+c)/2)!==d&&i.push({time:d,pos:a/(l-1)});return i}_generate(){const e=this.min,o=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(o)||r.length===1)&&r.push(o),r.sort((n,i)=>n-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const o=this.getDataTimestamps(),r=this.getLabelTimestamps();return o.length&&r.length?e=this.normalize(o.concat(r)):e=o.length?o:r,e=this._cache.all=e,e}getDecimalForValue(e){return(yi(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const o=this._offsets,r=this.getDecimalForPixel(e)/o.factor-o.end;return yi(this._table,r*this._tableRange+this._minPos,!0)}}H(ki,"id","timeseries"),H(ki,"defaults",tr.defaults);var Nf=Object.freeze({__proto__:null,CategoryScale:hi,LinearScale:mi,LogarithmicScale:pi,RadialLinearScale:er,TimeScale:tr,TimeSeriesScale:ki});const Tf=[iu,ju,kf,Nf];Nt.register(...Tf);const $2=Object.freeze(Object.defineProperty({__proto__:null,Animation:Xd,Animations:Pa,ArcElement:Zo,BarController:Hr,BarElement:rn,BasePlatform:za,BasicPlatform:gu,BubbleController:Ur,CategoryScale:hi,Chart:Nt,Colors:Yu,DatasetController:ut,Decimation:Gu,DomPlatform:ku,DoughnutController:uo,Element:Dt,Filler:nf,Interaction:lu,Legend:cf,LineController:qr,LineElement:qt,LinearScale:mi,LogarithmicScale:pi,PieController:ti,PointElement:on,PolarAreaController:Qo,RadarController:Yr,RadialLinearScale:er,Scale:fo,ScatterController:Xr,SubTitle:uf,Ticks:Lr,TimeScale:tr,TimeSeriesScale:ki,Title:df,Tooltip:yf,_adapters:au,_detectPlatform:xu,animator:Ot,controllers:iu,default:Nt,defaults:Be,elements:ju,layouts:We,plugins:kf,registerables:Tf,registry:vt,scales:Nf},Symbol.toStringTag,{value:"Module"}));xe.default=q1,xe.useAddEntityRecord=L1,xe.useComponentService=j1,xe.useDeleteEntityRecord=I1,xe.useEntitiesStore=Dc,xe.useEntityRecordService=mt,xe.useEntityService=Oc,xe.useGetEntityRecord=V1,xe.useGlobalConfigsStore=Ue,xe.useLayoutService=U1,xe.usePageService=H1,xe.useSecurityService=W1,xe.useThemeConfig=F1,xe.useThemeService=z1,Object.defineProperties(xe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|