@shohojdhara/atomix 0.5.7 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atomix.umd.js +2 -0
- package/dist/atomix.umd.js.map +1 -0
- package/dist/atomix.umd.min.js +1 -0
- package/dist/index.esm.js +20 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +20 -7
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/theme.js +7 -3
- package/dist/theme.js.map +1 -1
- package/package.json +3 -3
- package/src/lib/config/loader.ts +27 -6
- package/src/lib/theme/config/configLoader.ts +7 -2
- package/src/lib/theme/config/loader.ts +7 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react/jsx-runtime"),require("react"),require("@phosphor-icons/react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react/jsx-runtime","react","@phosphor-icons/react","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Atomix={},e.jsxRuntime,e.React,e.PhosphorIconsReact,e.ReactDOM)}(this,(function(e,t,a,n,r){"use strict";function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var i=o(n),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c=function(e){try{return!!e()}catch(t){return!0}},d=!c((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=d,m=Function.prototype,h=m.call,p=u&&m.bind.bind(h,h),g=u?p:function(e){return function(){return h.apply(e,arguments)}},f=g({}.isPrototypeOf),b=function(e){return e&&e.Math===Math&&e},x=b("object"==typeof globalThis&&globalThis)||b("object"==typeof window&&window)||b("object"==typeof self&&self)||b("object"==typeof s&&s)||b("object"==typeof s&&s)||function(){return this}()||Function("return this")(),v=d,S=Function.prototype,y=S.apply,E=S.call,A="object"==typeof Reflect&&Reflect.apply||(v?E.bind(y):function(){return E.apply(y,arguments)}),N=g,T=N({}.toString),C=N("".slice),_=function(e){return C(T(e),8,-1)},L=_,w=g,I=function(e){if("Function"===L(e))return w(e)},R="object"==typeof document&&document.all,O=void 0===R&&void 0!==R?function(e){return"function"==typeof e||e===R}:function(e){return"function"==typeof e},k={},j=!c((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),M=d,D=Function.prototype.call,P=M?D.bind(D):function(){return D.apply(D,arguments)},B={},z={}.propertyIsEnumerable,F=Object.getOwnPropertyDescriptor,U=F&&!z.call({1:2},1);B.f=U?function(e){var t=F(this,e);return!!t&&t.enumerable}:z;var G,V,H=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$=c,Y=_,K=Object,W=g("".split),q=$((function(){return!K("z").propertyIsEnumerable(0)}))?function(e){return"String"===Y(e)?W(e,""):K(e)}:K,Q=function(e){return null==e},X=Q,Z=TypeError,J=function(e){if(X(e))throw new Z("Can't call method on "+e);return e},ee=q,te=J,ae=function(e){return ee(te(e))},ne=O,re=function(e){return"object"==typeof e?null!==e:ne(e)},oe={},ie=oe,se=x,le=O,ce=function(e){return le(e)?e:void 0},de=x.navigator,ue=de&&de.userAgent,me=ue?ue+"":"",he=x,pe=me,ge=he.process,fe=he.Deno,be=ge&&ge.versions||fe&&fe.version,xe=be&&be.v8;xe&&(V=(G=xe.split("."))[0]>0&&4>G[0]?1:+(G[0]+G[1])),!V&&pe&&((G=pe.match(/Edge\/(\d+)/))&&74>G[1]||(G=pe.match(/Chrome\/(\d+)/))&&(V=+G[1]));var ve=V,Se=ve,ye=c,Ee=x.String,Ae=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol("symbol detection");return!Ee(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Se&&41>Se})),Ne=Ae&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Te=O,Ce=f,_e=Object,Le=Ne?function(e){return"symbol"==typeof e}:function(e){var t=function(e,t){return 2>arguments.length?ce(ie[e])||ce(se[e]):ie[e]&&ie[e][t]||se[e]&&se[e][t]}("Symbol");return Te(t)&&Ce(t.prototype,_e(e))},we=String,Ie=O,Re=TypeError,Oe=function(e){if(Ie(e))return e;throw new Re(function(e){try{return we(e)}catch(t){return"Object"}}(e)+" is not a function")},ke=Oe,je=Q,Me=P,De=O,Pe=re,Be=TypeError,ze={exports:{}},Fe=x,Ue=Object.defineProperty,Ge=x,Ve="__core-js_shared__",He=ze.exports=Ge[Ve]||function(e,t){try{Ue(Fe,e,{value:t,configurable:!0,writable:!0})}catch(a){Fe[e]=t}return t}(Ve,{});(He.versions||(He.versions=[])).push({version:"3.43.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"});var $e=ze.exports,Ye=J,Ke=Object,We=function(e){return Ke(Ye(e))},qe=We,Qe=g({}.hasOwnProperty),Xe=Object.hasOwn||function(e,t){return Qe(qe(e),t)},Ze=g,Je=0,et=Math.random(),tt=Ze(1.1.toString),at=Xe,nt=Ae,rt=Ne,ot=x.Symbol,it=$e["wks"]||($e.wks={}),st=rt?ot.for||ot:ot&&ot.withoutSetter||function(e){return"Symbol("+(void 0===e?"":e)+")_"+tt(++Je+et,36)},lt=function(e){return at(it,e)||(it[e]=nt&&at(ot,e)?ot[e]:st("Symbol."+e)),it[e]},ct=P,dt=re,ut=Le,mt=TypeError,ht=lt("toPrimitive"),pt=Le,gt=function(e){var t=function(e,t){if(!dt(e)||ut(e))return e;var a,n,r=(n=e[ht],je(n)?void 0:ke(n));if(r){if(void 0===t&&(t="default"),a=ct(r,e,t),!dt(a)||ut(a))return a;throw new mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var a,n;if("string"===t&&De(a=e.toString)&&!Pe(n=Me(a,e)))return n;if(De(a=e.valueOf)&&!Pe(n=Me(a,e)))return n;if("string"!==t&&De(a=e.toString)&&!Pe(n=Me(a,e)))return n;throw new Be("Can't convert object to primitive value")}(e,t)}(e,"string");return pt(t)?t:t+""},ft=re,bt=x.document,xt=ft(bt)&&ft(bt.createElement),vt=!j&&!c((function(){return 7!==Object.defineProperty(xt?bt.createElement("div"):{},"a",{get:function(){return 7}}).a})),St=j,yt=P,Et=B,At=H,Nt=ae,Tt=gt,Ct=Xe,_t=vt,Lt=Object.getOwnPropertyDescriptor;k.f=St?Lt:function(e,t){if(e=Nt(e),t=Tt(t),_t)try{return Lt(e,t)}catch(a){}if(Ct(e,t))return At(!yt(Et.f,e,t),e[t])};var wt=c,It=O,Rt=/#|\.prototype\./,Ot=function(e,t){var a=jt[kt(e)];return a===Dt||a!==Mt&&(It(t)?wt(t):!!t)},kt=Ot.normalize=function(e){return(e+"").replace(Rt,".").toLowerCase()},jt=Ot.data={},Mt=Ot.NATIVE="N",Dt=Ot.POLYFILL="P",Pt=Ot,Bt=Oe,zt=d,Ft=I(I.bind),Ut={},Gt=j&&c((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Vt=re,Ht=String,$t=TypeError,Yt=j,Kt=vt,Wt=Gt,qt=function(e){if(Vt(e))return e;throw new $t(Ht(e)+" is not an object")},Qt=gt,Xt=TypeError,Zt=Object.defineProperty,Jt=Object.getOwnPropertyDescriptor,ea="enumerable",ta="configurable",aa="writable";Ut.f=Yt?Wt?function(e,t,a){if(qt(e),t=Qt(t),qt(a),"function"==typeof e&&"prototype"===t&&"value"in a&&aa in a&&!a[aa]){var n=Jt(e,t);n&&n[aa]&&(e[t]=a.value,a={configurable:ta in a?a[ta]:n[ta],enumerable:ea in a?a[ea]:n[ea],writable:!1})}return Zt(e,t,a)}:Zt:function(e,t,a){if(qt(e),t=Qt(t),qt(a),Kt)try{return Zt(e,t,a)}catch(n){}if("get"in a||"set"in a)throw new Xt("Accessors not supported");return"value"in a&&(e[t]=a.value),e};var na=Ut,ra=H,oa=j?function(e,t,a){return na.f(e,t,ra(1,a))}:function(e,t,a){return e[t]=a,e},ia=x,sa=A,la=I,ca=O,da=k.f,ua=Pt,ma=oe,ha=function(e,t){return Bt(e),void 0===t?e:zt?Ft(e,t):function(){return e.apply(t,arguments)}},pa=oa,ga=Xe,fa=function(e){var t=function(a,n,r){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(a);case 2:return new e(a,n)}return new e(a,n,r)}return sa(e,this,arguments)};return t.prototype=e.prototype,t},ba=function(e,t){var a,n,r,o,i,s,l,c,d,u=e.target,m=e.global,h=e.stat,p=e.proto,g=m?ia:h?ia[u]:ia[u]&&ia[u].prototype,f=m?ma:ma[u]||pa(ma,u,{})[u],b=f.prototype;for(o in t)n=!(a=ua(m?o:u+(h?".":"#")+o,e.forced))&&g&&ga(g,o),s=f[o],n&&(l=e.dontCallGetSet?(d=da(g,o))&&d.value:g[o]),i=n&&l?l:t[o],(a||p||typeof s!=typeof i)&&(c=e.bind&&n?ha(i,ia):e.wrap&&n?fa(i):p&&ca(i)?la(i):i,(e.sham||i&&i.sham||s&&s.sham)&&pa(c,"sham",!0),pa(f,o,c),p&&(ga(ma,r=u+"Prototype")||pa(ma,r,{}),pa(ma[r],o,i),e.real&&b&&(a||!b[o])&&pa(b,o,i)))},xa=Math.ceil,va=Math.floor,Sa=Math.trunc||function(e){var t=+e;return(t>0?va:xa)(t)},ya=function(e){var t=+e;return t!=t||0===t?0:Sa(t)},Ea=ya,Aa=Math.max,Na=Math.min,Ta=ya,Ca=Math.min,_a=function(e){return t=e.length,(a=Ta(t))>0?Ca(a,9007199254740991):0;var t,a},La=ae,wa=_a,Ia=function(e){return function(t,a,n){var r=La(t),o=wa(r);if(0===o)return!e&&-1;var i,s=function(e,t){var a=Ea(e);return 0>a?Aa(a+t,0):Na(a,t)}(n,o);if(e&&a!=a){for(;o>s;)if((i=r[s++])!=i)return!0}else for(;o>s;s++)if((e||s in r)&&r[s]===a)return e||s||0;return!e&&-1}},Ra=[Ia(!0),Ia(!1)][0];ba({target:"Array",proto:!0,forced:c((function(){return!1}))},{includes:function(e){return Ra(this,e,arguments.length>1?arguments[1]:void 0)}});var Oa=x,ka=oe,ja=function(e,t){var a=ka[e+"Prototype"],n=a&&a[t];if(n)return n;var r=Oa[e],o=r&&r.prototype;return o&&o[t]},Ma=ja("Array","includes"),Da=re,Pa=_,Ba=lt("match"),za=TypeError,Fa={};Fa[lt("toStringTag")]="z";var Ua=Fa+""=="[object z]",Ga=O,Va=_,Ha=lt("toStringTag"),$a=Object,Ya="Arguments"===Va(function(){return arguments}()),Ka=Ua?Va:function(e){var t,a,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(a){}}(t=$a(e),Ha))?a:Ya?Va(t):"Object"===(n=Va(t))&&Ga(t.callee)?"Arguments":n},Wa=String,qa=lt("match"),Qa=ba,Xa=J,Za=function(e){if("Symbol"===Ka(e))throw new TypeError("Cannot convert a Symbol value to a string");return Wa(e)},Ja=g("".indexOf);Qa({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(a){try{return t[qa]=!1,"/./"[e](t)}catch(n){}}return!1}("includes")},{includes:function(e){return!!~Ja(Za(Xa(this)),Za(function(e){if(function(e){var t;return Da(e)&&(void 0!==(t=e[Ba])?!!t:"RegExp"===Pa(e))}(e))throw new za("The method doesn't accept regular expressions");return e}(e)),arguments.length>1?arguments[1]:void 0)}});var en=ja("String","includes"),tn=f,an=Ma,nn=en,rn=Array.prototype,on=String.prototype,sn=l((function(e){var t=e.includes;return e===rn||tn(rn,e)&&t===rn.includes?an:"string"==typeof e||e===on||tn(on,e)&&t===on.includes?nn:t}));const ln=["primary","secondary","success","info","warning","error","light","dark"],cn=["sm","md","lg"],dn={COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},un={BUTTON_PREFIX:"btn",ICON_ELEMENT:"icon",LABEL_ELEMENT:"label",SPINNER_ELEMENT:"spinner"},mn={BASE_CLASS:"c-typedbutton",VARIANT_PREFIX:"c-typedbutton--",CLASSES:{BASE:"c-typedbutton",DISABLED:"c-typedbutton--disabled",GLASS:"c-typedbutton--glass"}},hn={BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",LABEL_CLASS:"c-btn__label",SPINNER_CLASS:"c-btn__spinner",VARIANT_PREFIX:"c-btn--",CLASSES:{BASE:"c-btn",LOADING:"c-btn--loading",FULL_WIDTH:"c-btn--full-width",BLOCK:"c-btn--block",ACTIVE:"c-btn--active",SELECTED:"c-btn--selected"}},pn={BASE_CLASS:"c-btn-group",CLASSES:{BASE:"c-btn-group"}},gn={BASE_CLASS:"c-callout",CONTENT_CLASS:"c-callout__content",ICON_CLASS:"c-callout__icon",MESSAGE_CLASS:"c-callout__message",TITLE_CLASS:"c-callout__title",TEXT_CLASS:"c-callout__text",ACTIONS_CLASS:"c-callout__actions",CLOSE_BTN_CLASS:"c-callout__close-btn",VARIANT_PREFIX:"c-callout--",CLASSES:{COMPACT:"c-callout--compact",TOAST:"c-callout--toast",HIDE:"is-hide"}},fn={SELECTORS:{ACCORDION:".c-accordion",HEADER:".c-accordion__header",PANEL:".c-accordion__panel",BODY:".c-accordion__body"},CLASSES:{IS_OPEN:"is-open",IS_ANIMATING:"is-animating",IS_DISABLED:"is-disabled"},ATTRIBUTES:{ARIA_EXPANDED:"aria-expanded",ARIA_CONTROLS:"aria-controls",ARIA_HIDDEN:"aria-hidden",ROLE:"role"},CSS_VARS:{PANEL_HEIGHT:"--panel-height"}},bn={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},xn={BASE_CLASS:"c-list",ITEM_CLASS:"c-list__item",VARIANT_PREFIX:"c-list--",SIZE_PREFIX:"c-list--",CLASSES:{ORDERED:"c-list--ordered",INLINE:"c-list--inline"}},vn={BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},Sn={SELECTORS:{BREADCRUMB:".c-breadcrumb",ITEM:".c-breadcrumb__item",LINK:".c-breadcrumb__link"},CLASSES:{BASE:"c-breadcrumb",ITEM:"c-breadcrumb__item",LINK:"c-breadcrumb__link",ACTIVE:"is-active"},DEFAULTS:{DIVIDER:"›"}},yn={SELECTORS:{COUNTDOWN:".c-countdown",TIME:".c-countdown__time",TIME_COUNT:".c-countdown__time-count",TIME_LABEL:".c-countdown__time-label",SEPARATOR:".c-countdown__separator"},CLASSES:{BASE:"c-countdown",FOCUSED:"c-countdown--focused"},DEFAULTS:{SEPARATOR:":",SHOW:["days","hours","minutes","seconds"]}},En={SELECTORS:{HERO:".c-hero",CONTAINER:".c-hero__container",GRID:".c-hero__grid",CONTENT:".c-hero__content",SUBTITLE:".c-hero__subtitle",TITLE:".c-hero__title",TEXT:".c-hero__text",ACTIONS:".c-hero__actions",IMAGE:".c-hero__image",BG:".c-hero__bg",BG_IMAGE:".c-hero__bg-image",OVERLAY:".c-hero__overlay",IMAGE_WRAPPER:".c-hero__image-wrapper",SLIDER:".c-hero__slider",SLIDER_ITEM:".c-hero__slider-item"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh",SLIDER_FADE:"c-hero__slider--fade",SLIDER_SLIDE:"c-hero__slider--slide",SLIDER_CUSTOM:"c-hero__slider--custom",SLIDER_ITEM_ACTIVE:"c-hero__slider-item--active"}},An={SELECTORS:{TOOLTIP:".js-atomix-tooltip",TRIGGER:".js-atomix-tooltip-trigger",CONTENT:".js-atomix-tooltip-content",ARROW:".c-tooltip__arrow"},CLASSES:{IS_ACTIVE:"is-active",TOP:"c-tooltip--top",BOTTOM:"c-tooltip--bottom",LEFT:"c-tooltip--left",RIGHT:"c-tooltip--right",TOP_LEFT:"c-tooltip--top-left",TOP_RIGHT:"c-tooltip--top-right",BOTTOM_LEFT:"c-tooltip--bottom-left",BOTTOM_RIGHT:"c-tooltip--bottom-right"},ATTRIBUTES:{POSITION:"data-tooltip-position",TRIGGER:"data-tooltip-trigger",CONTENT_ID:"data-tooltip-id"},DEFAULTS:{TRIGGER:"hover",POSITION:"top",OFFSET:10,DELAY:200}},Nn={SELECTORS:{POPOVER:".js-atomix-popover",TRIGGER:".js-atomix-popover-trigger",CONTENT:".js-atomix-popover-content",CONTENT_INNER:".c-popover__content-inner",ARROW:".c-popover__arrow"},CLASSES:{IS_OPEN:"is-open",TOP:"c-popover--top",BOTTOM:"c-popover--bottom",LEFT:"c-popover--left",RIGHT:"c-popover--right",AUTO:"c-popover--auto"},ATTRIBUTES:{POSITION:"data-popover-position",TRIGGER:"data-popover-trigger",CONTENT_ID:"data-popover-id"},DEFAULTS:{TRIGGER:"click",POSITION:"top",OFFSET:12,DELAY:0}},Tn={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},Cn={SELECTORS:{TAB:".js-atomix-tab",NAV_ITEMS:".c-tabs__nav-item",NAV_BTN:".c-tabs__nav-btn",PANELS:".c-tabs__panel",PANEL_BODIES:".c-tabs__panel-body"},CLASSES:{ACTIVE:"is-active"},DEFAULTS:{ACTIVE_INDEX:0}},_n={SELECTORS:{STEPS:".c-steps",ITEM:".c-steps__item",LINE:".c-steps__line",CONTENT:".c-steps__content",NUMBER:".c-steps__number",TEXT:".c-steps__text"},CLASSES:{ACTIVE:"is-active",VERTICAL:"c-steps--vertical",COMPLETED:"is-completed"}},Ln={SELECTORS:{TESTIMONIAL:".c-testimonial",QUOTE:".c-testimonial__quote",AUTHOR:".c-testimonial__author",AUTHOR_AVATAR:".c-testimonial__author-avatar",AUTHOR_INFO:".c-testimonial__info",AUTHOR_NAME:".c-testimonial__author-name",AUTHOR_ROLE:".c-testimonial__author-role"},CLASSES:{SMALL:"c-testimonial--sm",LARGE:"c-testimonial--lg"}},wn={SELECTORS:{SPINNER:".c-spinner"},CLASSES:{PRIMARY:"c-spinner--primary",SECONDARY:"c-spinner--secondary",SUCCESS:"c-spinner--success",INFO:"c-spinner--info",WARNING:"c-spinner--warning",DANGER:"c-spinner--danger",LIGHT:"c-spinner--light",DARK:"c-spinner--dark",SMALL:"c-spinner--sm",LARGE:"c-spinner--lg"},VISUALLY_HIDDEN:"u-visually-hidden"},In={SELECTORS:{SECTION_INTRO:".c-sectionintro",LABEL:".c-sectionintro__label",TITLE:".c-sectionintro__title",TEXT:".c-sectionintro__text",ACTIONS:".c-sectionintro__actions"},CLASSES:{CENTER:"c-sectionintro--center",LARGE:"c-sectionintro--lg",SMALL:"c-sectionintro--sm"}},Rn={SELECTORS:{RIVER:".c-river",CONTAINER:".c-river__container",ROW:".c-river__row",CONTENT:".c-river__content",CONTENT_COL:".c-river__content-col",CONTENT_COL_TITLE:".c-river__content-col--title",CONTENT_COL_TEXT:".c-river__content-col--text",TITLE:".c-river__title",TEXT:".c-river__text",ACTIONS:".c-river__actions",VISUAL:".c-river__visual",IMAGE_WRAPPER:".c-river__image-wrapper",IMAGE:".c-river__image",BG:".c-river__bg",BG_IMAGE:".c-river__bg-image",OVERLAY:".c-river__overlay"},CLASSES:{CENTER:"c-river--center",BREAKOUT:"c-river--breakout",REVERSE:"c-river--reverse"},ATTRIBUTES:{CONTENT_WIDTH:"--river-content-width"}},On={SELECTORS:{UPLOAD:".c-upload",INNER:".c-upload__inner",ICON:".c-upload__icon",TITLE:".c-upload__title",TEXT:".c-upload__text",BUTTON:".c-upload__btn",HELPER_TEXT:".c-upload__helper-text",LOADER:".c-upload__loader",LOADER_STATUS:".c-upload__loader-status",LOADER_TITLE:".c-upload__loader-title",LOADER_PROGRESS:".c-upload__loader-progress",LOADER_PAR:".c-upload__loader-par",LOADER_TIME:".c-upload__loader-time",LOADER_CONTROL:".c-upload__loader-control",LOADER_BAR:".c-upload__loader-bar",LOADER_CLOSE:".c-upload__loader-close"},CLASSES:{DISABLED:"c-upload--disabled",ERROR:"c-upload--error",SUCCESS:"c-upload--success",LOADING:"c-upload--loading",DRAGGING:"c-upload--dragging"},ATTRIBUTES:{PERCENTAGE:"--upload-loader-percentage"}},kn={SELECTORS:{NAVBAR:".c-navbar",CONTAINER:".c-navbar__container",BRAND:".c-navbar__brand",COLLAPSE:".c-navbar__collapse",TOGGLER:".c-navbar__toggler",TOGGLER_ICON:".c-navbar__toggler-icon"},CLASSES:{BASE:"c-navbar",CONTAINER:"c-navbar__container",BRAND:"c-navbar__brand",COLLAPSE:"c-navbar__collapse",TOGGLER:"c-navbar__toggler",TOGGLER_ICON:"c-navbar__toggler-icon",FIXED:"c-navbar--fixed",FIXED_BOTTOM:"c-navbar--fixed-bottom",COLLAPSIBLE:"c-navbar--collapsible",EXPANDED:"is-expanded",BACKDROP:"c-navbar__backdrop"},ATTRIBUTES:{NAVBAR:"data-navbar",COLLAPSIBLE:"data-collapsible",EXPANDED:"data-expanded",POSITION:"data-position",BACKDROP:"data-backdrop",AUTO_CLOSE:"data-auto-close",KEYBOARD:"data-keyboard"},DEFAULTS:{POSITION:"static",COLLAPSIBLE:!0,EXPANDED:!1,BACKDROP:!1,AUTO_CLOSE:!0,KEYBOARD:!0,ARIA_LABEL:"Main navigation"}},jn={SELECTORS:{NAV:".c-nav",ITEM:".c-nav__item",LINK:".c-nav__link",DROPDOWN:".c-nav__item--dropdown",DROPDOWN_MENU:".c-nav__dropdown-menu",MEGA_MENU:".c-nav__mega-menu",ICON:".c-nav__icon"},CLASSES:{END:"c-nav--end",CENTER:"c-nav--center",ACTIVE:"is-active",DISABLED:"is-disabled"}},Mn={SELECTORS:{SIDE_MENU:".c-side-menu",WRAPPER:".c-side-menu__wrapper",INNER:".c-side-menu__inner",TITLE:".c-side-menu__title",TOGGLER:".c-side-menu__toggler",TOGGLER_ICON:".c-side-menu__toggler-icon",LIST:".c-side-menu__list",ITEM:".c-side-menu__item",LINK:".c-side-menu__link",LINK_ICON:".c-side-menu__link-icon",LINK_TEXT:".c-side-menu__link-text"},CLASSES:{BASE:"c-side-menu",WRAPPER:"c-side-menu__wrapper",INNER:"c-side-menu__inner",TITLE:"c-side-menu__title",TOGGLER:"c-side-menu__toggler",TOGGLER_ICON:"c-side-menu__toggler-icon",LIST:"c-side-menu__list",ITEM:"c-side-menu__item",LINK:"c-side-menu__link",LINK_ICON:"c-side-menu__link-icon",LINK_TEXT:"c-side-menu__link-text",IS_OPEN:"is-open",ACTIVE:"is-active",DISABLED:"is-disabled"},ATTRIBUTES:{SIDE_MENU:"data-side-menu",COLLAPSIBLE:"data-collapsible",OPEN:"data-open",TITLE:"data-title"},DEFAULTS:{COLLAPSIBLE:!0,OPEN:!1,TOGGLE_ICON:"▶"}},Dn={SELECTORS:{RATING:".c-rating",STAR:".c-rating__star",STAR_FULL:".c-rating__star-full",STAR_HALF:".c-rating__star-half"},CLASSES:{FULL:"c-rating__star--full",HALF:"c-rating__star--half",SMALL:"c-rating--sm",LARGE:"c-rating--lg"},ATTRIBUTES:{READONLY:"data-readonly",VALUE:"data-value"}},Pn={SELECTORS:{PANEL:".c-edge-panel",BACKDROP:".c-edge-panel__backdrop",CONTAINER:".c-edge-panel__container",HEADER:".c-edge-panel__header",BODY:".c-edge-panel__body",CLOSE:".c-edge-panel__close"},CLASSES:{BASE:"c-edge-panel",START:"c-edge-panel--start",END:"c-edge-panel--end",TOP:"c-edge-panel--top",BOTTOM:"c-edge-panel--bottom",IS_OPEN:"is-open"},TRANSFORM_VALUES:{start:"translateX(-100%)",end:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},ANIMATION_DURATION:300},Bn={base:"c-data-table",container:"c-data-table-container",tableWrapper:"c-data-table-wrapper",header:"c-data-table__header",headerCell:"c-data-table__header-cell",headerContent:"c-data-table__header-content",headerActions:"c-data-table__header-actions",sortable:"c-data-table__header-cell--sortable",sortIcon:"c-data-table__sort-icon",row:"c-data-table__row",rowSelected:"c-data-table__row--selected",cell:"c-data-table__cell",selectionCell:"c-data-table__cell--selection",loadingCell:"c-data-table__loading-cell",loadingIndicator:"c-data-table__loading-indicator",emptyCell:"c-data-table__empty-cell",toolbar:"c-data-table-toolbar",toolbarLeft:"c-data-table-toolbar__left",toolbarRight:"c-data-table-toolbar__right",search:"c-data-table-search",searchInput:"c-data-table-search__input",columnFilter:"c-data-table__column-filter",pagination:"c-data-table__pagination-container",striped:"c-data-table--striped",bordered:"c-data-table--bordered",dense:"c-data-table--dense",loading:"c-data-table--loading",stickyHeader:"c-data-table--sticky-header",dragging:"c-data-table__header-cell--dragging",dragOver:"c-data-table__header-cell--drag-over",resizeHandle:"c-data-table__resize-handle",open:"is-open"},zn={TABLE:".c-data-table",HEADER:".c-data-table__header",HEADER_CELL:".c-data-table__header-cell",ROW:".c-data-table__row",CELL:".c-data-table__cell",PAGINATION:".c-data-table__pagination",PAGINATION_BUTTON:".c-data-table__pagination-button",SEARCH_INPUT:".c-data-table__search-input"},Fn={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},Un={SELECTORS:{TODO:".c-todo",TITLE:".c-todo__title",LIST:".c-todo__list",ITEM:".c-todo__item",ITEM_CONTENT:".c-todo__item-content",ITEM_TEXT:".c-todo__item-text",ITEM_ACTIONS:".c-todo__item-actions",CHECKBOX:".c-todo__checkbox",DELETE_BUTTON:".c-todo__delete-btn",FORM:".c-todo__form",INPUT:".c-todo__input",ADD_BUTTON:".c-todo__add-btn"},CLASSES:{BASE:"c-todo",ITEM:"c-todo__item",COMPLETED:"c-todo__item--completed",SMALL:"c-todo--sm",LARGE:"c-todo--lg"}},Gn={SELECTORS:{FORM:".c-form",GROUP:".c-form-group",LABEL:".c-form-group__label",HELPER:".c-form-group__helper",FIELD:".c-form-group__field",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form",DISABLED:"c-form--disabled"}},Vn={SELECTORS:{GROUP:".c-form-group",LABEL:".c-form-group__label",FIELD:".c-form-group__field",HELPER:".c-form-group__helper",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form-group",SMALL:"c-form-group--sm",LARGE:"c-form-group--lg",INVALID:"c-form-group--invalid",VALID:"c-form-group--valid",DISABLED:"c-form-group--disabled"}},Hn={SELECTORS:{INPUT:".c-input"},CLASSES:{BASE:"c-input",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",FULL_WIDTH:"c-input--full-width",PREFIX_ICON:"c-input--prefix-icon",SUFFIX_ICON:"c-input--suffix-icon",CLEARABLE:"c-input--clearable",WITH_COUNTER:"c-input--with-counter",PASSWORD_TOGGLE:"c-input--password-toggle"},ELEMENTS:{WRAPPER:"c-input-wrapper",PREFIX:"c-input__prefix",SUFFIX:"c-input__suffix",CLEAR_BUTTON:"c-input__clear",PASSWORD_TOGGLE:"c-input__password-toggle",COUNTER:"c-input__counter",ERROR_MESSAGE:"c-input__error",HELPER_TEXT:"c-input__helper"}},$n={SELECTORS:{RADIO:".c-radio",INPUT:".c-radio__input",LABEL:".c-radio__label"},CLASSES:{BASE:"c-radio",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled"}},Yn={SELECTORS:{CARD:".c-card",HEADER:".c-card__header",BODY:".c-card__body",IMAGE:".c-card__image",TITLE:".c-card__title",TEXT:".c-card__text",ACTIONS:".c-card__actions",ICON:".c-card__icon",FOOTER:".c-card__footer"},CLASSES:{BASE:"c-card",SM:"c-card--sm",MD:"c-card--md",LG:"c-card--lg",ROW:"c-card--row",FLAT:"c-card--flat",FILLED:"c-card--filled",OUTLINED:"c-card--outlined",GHOST:"c-card--ghost",ELEVATED:"c-card--elevated",ELEVATION_NONE:"c-card--elevation-none",ELEVATION_SM:"c-card--elevation-sm",ELEVATION_MD:"c-card--elevation-md",ELEVATION_LG:"c-card--elevation-lg",ELEVATION_XL:"c-card--elevation-xl",ACTIVE:"is-active",DISABLED:"c-card--disabled",LOADING:"c-card--loading",SELECTED:"c-card--selected",INTERACTIVE:"c-card--interactive",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable",GLASS:"c-card--glass"},DEFAULTS:{HOVER:!0,SIZE:"md",VARIANT:"primary",APPEARANCE:"filled",ELEVATION:"none"}},Kn={SELECTORS:{SELECT:".c-select",SELECTED:".c-select__selected",SELECT_BODY:".c-select__body",SELECT_PANEL:".c-select__panel",SELECT_ITEMS:".c-select__items",SELECT_ITEM:".c-select__item",ITEM_LABEL:".c-select__item-label",ITEM_INPUT:".c-select__item-input",OPTION:"option"},CLASSES:{BASE:"c-select",SELECTED:"c-select__selected",SELECT_BODY:"c-select__body",SELECT_PANEL:"c-select__panel",SELECT_ITEMS:"c-select__items",SELECT_ITEM:"c-select__item",TOGGLE_ICON:"c-select__toggle-icon",ICON_CARET:"icon-atomix-caret-down",SMALL:"c-select--sm",LARGE:"c-select--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",IS_OPEN:"is-open"}},Wn={SELECTORS:{TEXTAREA:".c-textarea"},CLASSES:{BASE:"c-input c-input--textarea",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},qn={SELECTORS:{AVATAR:".c-avatar",IMAGE:".c-avatar__image",INITIALS:".c-avatar__initials",ICON:".c-avatar__icon"},CLASSES:{BASE:"c-avatar",XS:"c-avatar--xs",SM:"c-avatar--sm",MD:"c-avatar--md",LG:"c-avatar--lg",XL:"c-avatar--xl",CIRCLE:"c-avatar--circle"}},Qn={SELECTORS:{GROUP:".c-avatar-group",MORE:".c-avatar-group__more"},CLASSES:{BASE:"c-avatar-group",STACKED:"c-avatar-group--stacked",MORE:"c-avatar-group__more"}},Xn={SELECTORS:{MODAL:".c-modal",OPEN_BUTTON:".js-modal-open",CLOSE_BUTTONS:".js-modal-close",DIALOG:".c-modal__dialog",BACKDROP:".c-modal__backdrop"},CLASSES:{IS_OPEN:"is-open"},DEFAULT_OPTIONS:{openELm:".js-modal-open",closeELms:".js-modal-close",modalDialogELm:".c-modal__dialog",backdropELm:".c-modal__backdrop",backdrop:!0,keyboard:!0}},Zn={SELECTORS:{MESSAGES:".c-messages",BODY:".c-messages__body",CONTENT:".c-messages__content",AVATAR:".c-messages__avatar",ITEMS:".c-messages__items",TEXT:".c-messages__text",FILE:".c-messages__file",IMAGE:".c-messages__image",FORM:".c-messages__form",INPUT:".c-messages__input"},CLASSES:{BASE:"c-messages",BODY:"c-messages__body",CONTENT:"c-messages__content",CONTENT_SELF:"c-messages__content--self",AVATAR:"c-messages__avatar",ITEMS:"c-messages__items",NAME:"c-messages__name",TEXT:"c-messages__text",TIME:"c-messages__time",FILE:"c-messages__file",FILE_ICON:"c-messages__file-icon",FILE_DETAILS:"c-messages__file-details",FILE_NAME:"c-messages__file-name",FILE_SIZE:"c-messages__file-size",IMAGE:"c-messages__image",FORM:"c-messages__form",INPUT_GROUP:"c-messages__input-group",INPUT:"c-messages__input",OPTIONS:"c-messages__options",OPTION:"c-messages__option c-btn",OPTION_ICON:"c-messages__option-icon",SUBMIT:"c-messages__submit"}},Jn={SELECTORS:{DROPDOWN:".c-dropdown",TOGGLE:".c-dropdown__toggle",MENU:".c-dropdown__menu",MENU_WRAPPER:".c-dropdown__menu-wrapper",MENU_INNER:".c-dropdown__menu-inner",MENU_ITEM:".c-dropdown__menu-item",DIVIDER:".c-dropdown__divider",HEADER:".c-dropdown__header"},CLASSES:{IS_OPEN:"is-open",IS_ACTIVE:"is-active",IS_DISABLED:"is-disabled"},DEFAULTS:{PLACEMENT:"bottom-start",TRIGGER:"click",OFFSET:4,MIN_WIDTH:180,ANIMATION_DURATION:"0.25s",ANIMATION_TIMING:"cubic-bezier(0.16, 1, 0.3, 1)"}},er={SELECTORS:{PROGRESS:".c-progress",BAR:".c-progress__bar"},CLASSES:{BASE:"c-progress",BAR:"c-progress__bar",SM:"c-progress--sm",MD:"c-progress--md",LG:"c-progress--lg"},ATTRIBUTES:{ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_LABEL:"aria-label"},CSS_VARS:{PERCENTAGE:"--atomix-progress-percentage"},DEFAULTS:{ARIA_LABEL:"Progress bar"}},tr={SELECTORS:{DATEPICKER:".c-datepicker",INPUT:".c-datepicker__input",CALENDAR:".c-datepicker__calendar",DAY:".c-datepicker__day",MONTH:".c-datepicker__month",YEAR:".c-datepicker__year",HEADER:".c-datepicker__header",BODY:".c-datepicker__body",FOOTER:".c-datepicker__footer",WEEKDAYS:".c-datepicker__weekdays",TODAY_BUTTON:".c-datepicker__today-button",CLEAR_BUTTON:".c-datepicker__clear-button",CLOSE_BUTTON:".c-datepicker__close-button",NAV_BUTTON:".c-datepicker__nav-button",VIEW_SWITCH:".c-datepicker__view-switch"},CLASSES:{IS_OPEN:"is-open",IS_DISABLED:"is-disabled",IS_SELECTED:"is-selected",IS_TODAY:"is-today",INLINE:"c-datepicker--inline"},ATTRIBUTES:{FORMAT:"data-format",MIN_DATE:"data-min-date",MAX_DATE:"data-max-date",INLINE:"data-inline",PLACEMENT:"data-placement",CLEARABLE:"data-clearable",SHOW_TODAY:"data-show-today-button",SHOW_WEEK_NUMBERS:"data-show-week-numbers"},DEFAULTS:{FORMAT:"MM/dd/yyyy",PLACEMENT:"bottom-start",CLEARABLE:!0,SHOW_TODAY_BUTTON:!0,SHOW_WEEK_NUMBERS:!1,INLINE:!1}},ar={SELECTORS:{VIDEO_PLAYER:".c-video-player",VIDEO:".c-video-player__video",CONTROLS:".c-video-player__controls",PROGRESS:".c-video-player__progress",VOLUME:".c-video-player__volume",SETTINGS:".c-video-player__settings"},CLASSES:{BASE:"c-video-player",VIDEO:"c-video-player__video",YOUTUBE:"c-video-player--youtube",LOADING:"c-video-player__loading",SPINNER:"c-video-player__spinner",CONTROLS:"c-video-player__controls",CONTROLS_VISIBLE:"c-video-player__controls--visible",PROGRESS_CONTAINER:"c-video-player__progress-container",PROGRESS_BAR:"c-video-player__progress-bar",PROGRESS_BUFFERED:"c-video-player__progress-buffered",PROGRESS_PLAYED:"c-video-player__progress-played",PROGRESS_THUMB:"c-video-player__progress-thumb",CONTROLS_ROW:"c-video-player__controls-row",CONTROLS_LEFT:"c-video-player__controls-left",CONTROLS_RIGHT:"c-video-player__controls-right",CONTROL_BUTTON:"c-video-player__control-button",VOLUME_CONTAINER:"c-video-player__volume-container",VOLUME_SLIDER:"c-video-player__volume-slider",VOLUME_BAR:"c-video-player__volume-bar",VOLUME_FILL:"c-video-player__volume-fill",TIME_DISPLAY:"c-video-player__time-display",SETTINGS_CONTAINER:"c-video-player__settings-container",SETTINGS_MENU:"c-video-player__settings-menu",SETTINGS_TABS:"c-video-player__settings-tabs",SETTINGS_TAB:"c-video-player__settings-tab",SETTINGS_TAB_ACTIVE:"c-video-player__settings-tab--active",SETTINGS_CONTENT:"c-video-player__settings-content",SETTINGS_OPTIONS:"c-video-player__settings-options",SETTINGS_OPTION:"c-video-player__settings-option",SETTINGS_OPTION_ACTIVE:"c-video-player__settings-option--active",AMBIENT:"c-video-player--ambient",AMBIENT_CANVAS:"c-video-player__ambient-canvas",GLASS:"c-video-player--glass",GLASS_OVERLAY:"c-video-player__glass-overlay",GLASS_CONTENT:"c-video-player__glass-content"},DEFAULTS:{CONTROLS_TIMEOUT:3e3,VOLUME:1,PLAYBACK_RATE:1,ASPECT_RATIO:"16:9"}},nr={SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}},rr={classes:{container:"c-slider",containerModifierClass:"c-slider--",wrapper:"c-slider__wrapper",slide:"c-slider__slide",slideActive:"c-slider__slide--active",slidePrev:"c-slider__slide--prev",slideNext:"c-slider__slide--next",slideDuplicate:"c-slider__slide--duplicate",slideVisible:"c-slider__slide--visible",pagination:"c-slider__pagination",paginationBullet:"c-slider__pagination-bullet",paginationBulletActive:"c-slider__pagination-bullet--active",navigation:"c-slider__navigation",navigationPrev:"c-slider__navigation-prev",navigationNext:"c-slider__navigation-next",navigationDisabled:"c-slider__navigation--disabled",scrollbar:"c-slider__scrollbar",scrollbarDrag:"c-slider__scrollbar-drag",thumbs:"c-slider__thumbs",thumbsWrapper:"c-slider__thumbs-wrapper",thumbsSlide:"c-slider__thumbs-slide",thumbsSlideActive:"c-slider__thumbs-slide--active",zoomContainer:"c-slider__zoom-container",lazyPreloader:"c-slider__lazy-preloader"},defaults:{slidesToShow:1,slidesToScroll:1,spaceBetween:0,centeredSlides:!1,loop:!1,initialSlide:0,direction:"horizontal",speed:300,easing:"ease-out",allowTouchMove:!0,threshold:5,mousewheel:!1,keyboard:!1,grabCursor:!1,freeMode:!1,watchSlidesProgress:!1,watchOverflow:!0,resistanceRatio:.85,preventClicks:!0,preventClicksPropagation:!0,simulateTouch:!0,touchRatio:1,touchAngle:45,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchReleaseOnEdges:!1,resistance:!0,passiveListeners:!0},breakpoints:{sm:576,md:768,lg:992,xl:1200,xxl:1400},events:{init:"slider:init",destroy:"slider:destroy",slideChange:"slider:slideChange",slideChangeTransitionStart:"slider:slideChangeTransitionStart",slideChangeTransitionEnd:"slider:slideChangeTransitionEnd",touchStart:"slider:touchStart",touchMove:"slider:touchMove",touchEnd:"slider:touchEnd",reachBeginning:"slider:reachBeginning",reachEnd:"slider:reachEnd",progress:"slider:progress",autoplayStart:"slider:autoplayStart",autoplayStop:"slider:autoplayStop",beforeResize:"slider:beforeResize",resize:"slider:resize"}},or=rr,ir={BASE_CLASS:"c-chart",ROOT_CLASS:"c-chart",HEADER_CLASS:"c-chart__header",HEADER_CONTENT_CLASS:"c-chart__header-content",TITLE_CLASS:"c-chart__title",SUBTITLE_CLASS:"c-chart__subtitle",TOOLBAR_CLASS:"c-chart__toolbar",ACTION_CLASS:"c-chart__action",EXPORT_GROUP_CLASS:"c-chart__export-group",EXPORT_DROPDOWN_CLASS:"c-chart__export-dropdown",EXPORT_OPTION_CLASS:"c-chart__export-option",SETTINGS_MENU_CLASS:"c-chart__settings-menu",TOOLBAR_GROUP_CLASS:"c-chart__toolbar-group",TOOLBAR_SEPARATOR_CLASS:"c-chart__toolbar-separator",TOOLBAR_LABEL_CLASS:"c-chart__toolbar-label",CONTENT_CLASS:"c-chart__content",CANVAS_CLASS:"c-chart__canvas",LEGEND_CLASS:"c-chart__legend",LEGEND_ITEM_CLASS:"c-chart__legend-item",LEGEND_LABEL_CLASS:"c-chart__legend-label",LEGEND_COLOR_CLASS:"c-chart__legend-color",TOOLTIP_CLASS:"c-chart__tooltip",TOOLTIP_TITLE_CLASS:"c-chart__tooltip-title",TOOLTIP_CONTENT_CLASS:"c-chart__tooltip-content",TOOLTIP_ITEM_CLASS:"c-chart__tooltip-item",TOOLTIP_LABEL_CLASS:"c-chart__tooltip-label",TOOLTIP_VALUE_CLASS:"c-chart__tooltip-value",AXIS_CLASS:"c-chart__axis",AXIS_LABEL_CLASS:"c-chart__axis-label",GRID_CLASS:"c-chart__grid",DATA_POINT_CLASS:"c-chart__data-point",CHART_SVG_CLASS:"c-chart__svg",LOADING_CLASS:"c-chart__loading",LOADING_SPINNER_CLASS:"c-chart__loading-spinner",LOADING_TEXT_CLASS:"c-chart__loading-text",ERROR_CLASS:"c-chart__error",ERROR_ICON_CLASS:"c-chart__error-icon",ERROR_CONTENT_CLASS:"c-chart__error-content",ERROR_MESSAGE_CLASS:"c-chart__error-message",ERROR_DETAILS_CLASS:"c-chart__error-details",EMPTY_CLASS:"c-chart__empty",EMPTY_ICON_CLASS:"c-chart__empty-icon",EMPTY_MESSAGE_CLASS:"c-chart__empty-message",EMPTY_DETAILS_CLASS:"c-chart__empty-details",DEFAULT_WIDTH:800,DEFAULT_HEIGHT:400,PIE_RADIUS_RATIO:.8,DEFAULT_COLORS:["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-info)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-primary-5)","var(--atomix-primary-7)","var(--atomix-primary-3)","var(--atomix-gray-6)","var(--atomix-gray-8)","var(--atomix-gray-4)"],TYPE_PREFIX:"c-chart--",SIZE_PREFIX:"c-chart--",VARIANT_PREFIX:"c-chart--",LOADING_STATE_CLASS:"c-chart--loading",ERROR_STATE_CLASS:"c-chart--error",CLASSES:{LINE:"c-chart--line",AREA:"c-chart--area",BAR:"c-chart--bar",HORIZONTAL_BAR:"c-chart--horizontal-bar",PIE:"c-chart--pie",DONUT:"c-chart--donut",DOUGHNUT:"c-chart--doughnut",SCATTER:"c-chart--scatter",RADAR:"c-chart--radar",BUBBLE:"c-chart--bubble",CANDLESTICK:"c-chart--candlestick",GAUGE:"c-chart--gauge",FUNNEL:"c-chart--funnel",WATERFALL:"c-chart--waterfall",HEATMAP:"c-chart--heatmap",TREEMAP:"c-chart--treemap",SM:"c-chart--sm",MD:"c-chart--md",LG:"c-chart--lg",XL:"c-chart--xl",FULL:"c-chart--full",PRIMARY:"c-chart--primary",SECONDARY:"c-chart--secondary",SUCCESS:"c-chart--success",ERROR:"c-chart--error",WARNING:"c-chart--warning",INFO:"c-chart--info",LOADING:"c-chart--loading",INTERACTIVE:"c-chart--interactive",DISABLED:"c-chart--disabled",FULLSCREEN:"c-chart--fullscreen",MINIMIZED:"c-chart--minimized",ADVANCED:"c-chart--advanced",TOOLBAR_SM:"c-chart__toolbar--sm",TOOLBAR_MD:"c-chart__toolbar--md",TOOLBAR_LG:"c-chart__toolbar--lg",TOOLBAR_TOP:"c-chart__toolbar--top",TOOLBAR_BOTTOM:"c-chart__toolbar--bottom",TOOLBAR_LEFT:"c-chart__toolbar--left",TOOLBAR_RIGHT:"c-chart__toolbar--right",ACTION_ACTIVE:"c-chart__action--active",ACTION_DISABLED:"c-chart__action--disabled",ACTION_PRIMARY:"c-chart__action--primary",ACTION_SECONDARY:"c-chart__action--secondary",ACTION_SUCCESS:"c-chart__action--success",ACTION_INFO:"c-chart__action--info",ACTION_WARNING:"c-chart__action--warning",ACTION_ERROR:"c-chart__action--error"},TOOLBAR:{SIZES:["sm","md","lg"],POSITIONS:["top","bottom","left","right"],ACTION_VARIANTS:["primary","secondary","success","info","warning","error"]}},sr={BASE_CLASS:"c-code-snippet",CONTAINER_CLASS:"c-code-snippet__container",HEADER_CLASS:"c-code-snippet__header",LANGUAGE_CLASS:"c-code-snippet__language",ACTIONS_CLASS:"c-code-snippet__actions",ACTION_CLASS:"c-code-snippet__action",CONTENT_CLASS:"c-code-snippet__content",CODE_CLASS:"c-code-snippet__content__code",LINE_NUMBER_CLASS:"c-code-snippet__content__line-number",COPY_FEEDBACK_CLASS:"c-code-snippet__copy-feedback",MODIFIERS:{FULLSCREEN:"c-code-snippet__container--fullscreen",WRAP:"c-code-snippet__content--wrap",LIGHT:"c-code-snippet__container--light",DARK:"c-code-snippet__container--dark"},ACTION_STATES:{ACTIVE:"c-code-snippet__action--active",DISABLED:"c-code-snippet__action--disabled"},COPY_FEEDBACK_STATES:{VISIBLE:"c-code-snippet__copy-feedback--visible"},THEMES:{LIGHT:"light",DARK:"dark",AUTO:"auto"},DEFAULTS:{SHOW_LINE_NUMBERS:!0,WRAP_LINES:!1,ENABLE_FULLSCREEN:!0,ENABLE_COPY:!0,SHOW_TOOLBAR:!0,THEME:"light"},ARIA_LABELS:{COPY:"Copy code to clipboard",WRAP_LINES:"Toggle line wrapping",FULLSCREEN:"Toggle fullscreen mode",LANGUAGE:"Code language"}},lr={BASE_CLASS:"o-block",SPACING_PREFIX:"o-block--",CLASSES:{SPACING_XS:"o-block--xs",SPACING_SM:"o-block--sm",SPACING_MD:"o-block--md",SPACING_LG:"o-block--lg",SPACING_XL:"o-block--xl",SPACING_NONE:"o-block--no-spacing",FULL_WIDTH:"o-block--full-width",BG_PRIMARY:"o-block--primary",BG_SECONDARY:"o-block--secondary",BG_TERTIARY:"o-block--tertiary",BG_INVERT:"o-block--invert",BG_BRAND:"o-block--brand",BG_ERROR:"o-block--error",BG_SUCCESS:"o-block--success",BG_WARNING:"o-block--warning",BG_INFO:"o-block--info",BG_LIGHT:"o-block--light",BG_DARK:"o-block--dark"},SPACING:{SIZES:["xs","sm","md","lg","xl","none"],DEFAULT:"md"}},cr={SELECTORS:{FOOTER:".c-footer",CONTAINER:".c-footer__container",SECTIONS:".c-footer__sections",BRAND:".c-footer__brand",BRAND_LOGO:".c-footer__brand-logo",BRAND_NAME:".c-footer__brand-name",BRAND_DESCRIPTION:".c-footer__brand-description",SECTION:".c-footer__section",SECTION_HEADER:".c-footer__section-header",SECTION_TITLE:".c-footer__section-title",SECTION_CONTENT:".c-footer__section-content",SECTION_TOGGLE:".c-footer__section-toggle",LINK:".c-footer__link",SOCIAL:".c-footer__social",SOCIAL_LINK:".c-footer__social-link",NEWSLETTER:".c-footer__newsletter",NEWSLETTER_FORM:".c-footer__newsletter-form",NEWSLETTER_INPUT:".c-footer__newsletter-input",NEWSLETTER_BUTTON:".c-footer__newsletter-button",BOTTOM:".c-footer__bottom",COPYRIGHT:".c-footer__copyright",BACK_TO_TOP:".c-footer__back-to-top",DIVIDER:".c-footer__divider"},CLASSES:{BASE:"c-footer",CONTAINER:"c-footer__container",SECTIONS:"c-footer__sections",BRAND:"c-footer__brand",BRAND_LOGO:"c-footer__brand-logo",BRAND_NAME:"c-footer__brand-name",BRAND_DESCRIPTION:"c-footer__brand-description",SECTION:"c-footer__section",SECTION_HEADER:"c-footer__section-header",SECTION_TITLE:"c-footer__section-title",SECTION_CONTENT:"c-footer__section-content",SECTION_TOGGLE:"c-footer__section-toggle",SECTION_COLLAPSIBLE:"c-footer__section--collapsible",SECTION_COLLAPSED:"c-footer__section--collapsed",LINK:"c-footer__link",LINK_ACTIVE:"c-footer__link--active",LINK_DISABLED:"c-footer__link--disabled",SOCIAL:"c-footer__social",SOCIAL_LINK:"c-footer__social-link",NEWSLETTER:"c-footer__newsletter",NEWSLETTER_FORM:"c-footer__newsletter-form",NEWSLETTER_INPUT:"c-footer__newsletter-input",NEWSLETTER_BUTTON:"c-footer__newsletter-button",BOTTOM:"c-footer__bottom",COPYRIGHT:"c-footer__copyright",BACK_TO_TOP:"c-footer__back-to-top",DIVIDER:"c-footer__divider",COLUMNS:"c-footer--columns",CENTERED:"c-footer--centered",MINIMAL:"c-footer--minimal",STACKED:"c-footer--stacked",FLEXIBLE:"c-footer--flexible",SIDEBAR:"c-footer--sidebar",WIDE:"c-footer--wide",SM:"c-footer--sm",MD:"c-footer--md",LG:"c-footer--lg",STICKY:"c-footer--sticky"},DEFAULTS:{LAYOUT:"columns",VARIANT:"primary",SIZE:"md",SHOW_NEWSLETTER:!1,SHOW_BACK_TO_TOP:!1,SHOW_DIVIDER:!0,STICKY:!1,NEWSLETTER_TITLE:"Stay Updated",NEWSLETTER_DESCRIPTION:"Subscribe to our newsletter for the latest updates.",NEWSLETTER_PLACEHOLDER:"Enter your email",NEWSLETTER_BUTTON_TEXT:"Subscribe",BACK_TO_TOP_TEXT:"Back to Top"}},dr={BASE_CLASS:"c-atomix-glass",CONTAINER_CLASS:"c-atomix-glass__container",INNER_CLASS:"c-atomix-glass__inner",FILTER_CLASS:"c-atomix-glass__filter",FILTER_OVERLAY_CLASS:"c-atomix-glass__filter-overlay",FILTER_SHADOW_CLASS:"c-atomix-glass__filter-shadow",CONTENT_CLASS:"c-atomix-glass__content",BORDER_BACKDROP_CLASS:"c-atomix-glass__border-backdrop",BORDER_1_CLASS:"c-atomix-glass__border-1",BORDER_2_CLASS:"c-atomix-glass__border-2",HOVER_1_CLASS:"c-atomix-glass__hover-1",HOVER_2_CLASS:"c-atomix-glass__hover-2",HOVER_3_CLASS:"c-atomix-glass__hover-3",BASE_LAYER_CLASS:"c-atomix-glass__base",OVERLAY_LAYER_CLASS:"c-atomix-glass__overlay",OVERLAY_HIGHLIGHT_CLASS:"c-atomix-glass__overlay-highlight",BACKGROUND_LAYER_CLASS:"c-atomix-glass__background-layer",BACKGROUND_LAYER_DARK_CLASS:"c-atomix-glass__background-layer--dark",BACKGROUND_LAYER_BLACK_CLASS:"c-atomix-glass__background-layer--black",BACKGROUND_LAYER_OVER_LIGHT_CLASS:"c-atomix-glass__background-layer--over-light",BACKGROUND_LAYER_HIDDEN_CLASS:"c-atomix-glass__background-layer--hidden",VARIANT_PREFIX:"c-atomix-glass--",MODE_PREFIX:"c-atomix-glass--",CLASSES:{BASE:"c-atomix-glass",CONTAINER:"c-atomix-glass__container",INNER:"c-atomix-glass__inner",FILTER:"c-atomix-glass__filter",CONTENT:"c-atomix-glass__content",ACTIVE:"active",OVER_LIGHT:"c-atomix-glass__container--over-light",STANDARD:"c-atomix-glass--standard",POLAR:"c-atomix-glass--polar",PROMINENT:"c-atomix-glass--prominent",SHADER:"c-atomix-glass--shader"},DEFAULTS:{DISPLACEMENT_SCALE:70,BLUR_AMOUNT:0,SATURATION:140,ABERRATION_INTENSITY:2,ELASTICITY:.15,CORNER_RADIUS:20,PADDING:"0",MODE:"standard",OVER_LIGHT:!1,ENABLE_OVER_LIGHT_LAYERS:!0,WITH_TIME_ANIMATION:!0,ANIMATION_SPEED:1,WITH_MULTI_LAYER_DISTORTION:!1,DISTORTION_OCTAVES:5,DISTORTION_LACUNARITY:2,DISTORTION_GAIN:.5,DISTORTION_QUALITY:"high"},CONSTANTS:{ACTIVATION_ZONE:200,LERP_FACTOR:.08,SMOOTHSTEP_POWER:2.5,MIN_BLUR:.1,MOUSE_INFLUENCE_DIVISOR:100,EDGE_FADE_PIXELS:2,DEFAULT_CORNER_RADIUS:16,MAX_SIZE:4096,PALETTE:{WHITE:"255, 255, 255",BLACK:"0, 0, 0"},GRADIENT:{BASE_ANGLE:135,ANGLE_MULTIPLIER:1.2,BORDER_STOP_1:{MIN:10,BASE:33,MULTIPLIER:.3},BORDER_STOP_2:{MAX:90,BASE:66,MULTIPLIER:.4},BORDER_OPACITY:{BASE_1:.12,BASE_2:.4,BASE_3:.32,BASE_4:.6,MULTIPLIER_LOW:.008,MULTIPLIER_HIGH:.012},CENTER_POSITION:50,HOVER_POSITION:{DIVISOR_1:2,DIVISOR_2:1.5,MULTIPLIER_3:1},BASE_LAYER_MULTIPLIER:.5},GRADIENT_OPACITY:{HOVER_1:{BLACK_START:.3,BLACK_MID:.1,BLACK_STOP:30,BLACK_END:60,WHITE_START:.5,WHITE_STOP:50},HOVER_2:{BLACK_START:.4,BLACK_MID:.15,BLACK_STOP:40,BLACK_END:80,WHITE_START:1,WHITE_STOP:80},HOVER_3:{BLACK_START:.5,BLACK_MID:.2,BLACK_STOP:50,BLACK_END:100,WHITE_START:1,WHITE_STOP:100}},BASE_GRADIENT:{ANGLE:135,BLACK_START_BASE:.15,BLACK_START_MULTIPLIER:.003,BLACK_MID_BASE:.1,BLACK_MID_MULTIPLIER:.002,BLACK_MID_STOP:50,BLACK_END_BASE:.18,BLACK_END_MULTIPLIER:.004,WHITE_OPACITY:.1},OVERLAY_GRADIENT:{BLACK_START_BASE:.12,BLACK_START_MULTIPLIER:.003,BLACK_MID:.06,BLACK_MID_STOP:40,BLACK_END_BASE:.15,BLACK_END_MULTIPLIER:.003,WHITE_OPACITY:.05},OVERLAY_HIGHLIGHT:{POSITION_X:20,POSITION_Y:20,WHITE_OPACITY:.4,STOP:60,OPACITY_MULTIPLIER:.7},MULTIPLIERS:{SHADER_DISPLACEMENT:.8,OVER_LIGHT_DISPLACEMENT:.6,SHADER_ABERRATION:.7},SATURATION:{HIGH_CONTRAST:200},ANIMATION:{BREATHING_CYCLE:2e3,FLOW_SPEED_X:.1,FLOW_SPEED_Y:.15,WAVE_SPEED:.05,WAVE_AMPLITUDE:.02},DISTORTION_QUALITY_PRESETS:{low:{octaves:2,lacunarity:2,gain:.5},medium:{octaves:4,lacunarity:2,gain:.5},high:{octaves:5,lacunarity:2,gain:.5},ultra:{octaves:7,lacunarity:2,gain:.5}}}};function ur(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},n="boolean"==typeof t.isOpen,[r,o]=a.useState(t.defaultOpen||!1),i=n?t.isOpen:r,[s,l]=a.useState(i?"auto":"0px"),c=a.useRef(null),d=a.useRef(null),u=a.useCallback((()=>{if(d.current&&c.current){const e=i?d.current.clientHeight+"px":"0px";c.current.style.setProperty(fn.CSS_VARS.PANEL_HEIGHT,e),l(e)}}),[i]);return a.useEffect((()=>{u()}),[i,u]),a.useEffect((()=>{const e=()=>{i&&u()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[i,u]),{state:{isOpen:i,panelHeight:s},toggle:()=>{if(!t.disabled){const e=!i;n||o(e),t.onOpenChange?.(e)}},updatePanelHeight:u,panelRef:c,contentRef:d,generateClassNames:(e="")=>`c-accordion ${i?fn.CLASSES.IS_OPEN:""} ${t.disabled?fn.CLASSES.IS_DISABLED:""} ${e}`.trim(),generateHeaderClassNames:()=>("c-accordion__header "+("left"===t.iconPosition?"c-accordion__header--icon-left":"")).trim()}}const{CONSTANTS:mr}=dr,hr=(e,t)=>{if(!e||!t||"number"!=typeof e.x||"number"!=typeof e.y||"number"!=typeof t.x||"number"!=typeof t.y)return 0;const a=e.x-t.x,n=e.y-t.y;return Math.sqrt(a*a+n*n)},pr=e=>e?{x:e.left+e.width/2,y:e.top+e.height/2}:{x:0,y:0},gr=e=>{if(!e||"number"!=typeof e.x||"number"!=typeof e.y)return 0;const t=Math.sqrt(e.x*e.x+e.y*e.y)/mr.MOUSE_INFLUENCE_DIVISOR;return Math.min(.8,t)},fr=e=>"number"!=typeof e||isNaN(e)?mr.MIN_BLUR:Math.max(mr.MIN_BLUR,Math.min(50,e)),br=e=>e&&"number"==typeof e.width&&"number"==typeof e.height&&e.width>0&&e.height>0&&e.width<=mr.MAX_SIZE&&e.height<=mr.MAX_SIZE,xr=e=>{if("number"==typeof e)return Math.max(0,e);if("string"!=typeof e||!e.trim())return mr.DEFAULT_CORNER_RADIUS;const t=e.trim();if(t.endsWith("px")){const e=parseFloat(t);return isNaN(e)?mr.DEFAULT_CORNER_RADIUS:Math.max(0,e)}if(t.endsWith("rem")){const e=parseFloat(t);return isNaN(e)?mr.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("em")){const e=parseFloat(t);return isNaN(e)?mr.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("%")){const e=parseFloat(t);return isNaN(e)?mr.DEFAULT_CORNER_RADIUS:Math.max(0,e/100*200)}const a=parseFloat(t);return isNaN(a)?mr.DEFAULT_CORNER_RADIUS:Math.max(0,a)},vr=e=>{if(!e||!e.props)return null;if(e.props.style){const t=(e=>{if(!e)return null;const t=e.borderRadius||e.borderTopLeftRadius||e.borderTopRightRadius||e.borderBottomLeftRadius||e.borderBottomRightRadius;return void 0!==t?xr(t):null})(e.props.style);if(null!==t&&t>0)return t}if(e.props.children){const t=Sr(e.props.children);if(t>0&&t!==mr.DEFAULT_CORNER_RADIUS)return t}return null},Sr=e=>{if(!e)return mr.DEFAULT_CORNER_RADIUS;try{const t=a.Children.toArray(e);for(let e=0;e<t.length;e++){const n=t[e];if(a.isValidElement(n)){const e=vr(n);if(null!==e)return e}}}catch(t){}return mr.DEFAULT_CORNER_RADIUS},yr=(e,t,a)=>e+(t-e)*a,Er=(e,t)=>t>0?t*(1-Math.exp(-e/t)):0,Ar=(e,t,a,n,r)=>{switch(e){case"standard":default:return t;case"polar":return a;case"prominent":return n;case"shader":return r||t}},Nr=new Map,Tr=({id:e,displacementScale:a,aberrationIntensity:n,mode:r,shaderMapUrl:o,blurAmount:i})=>t.jsx("svg",{style:{position:"absolute",width:"100%",height:"100%",inset:0},"aria-hidden":"true",children:t.jsxs("defs",{children:[t.jsxs("radialGradient",{id:e+"-edge-mask",cx:"50%",cy:"50%",r:"50%",children:[t.jsx("stop",{offset:"0%",stopColor:"black",stopOpacity:"0"}),t.jsx("stop",{offset:Math.max(30,80-2*n)+"%",stopColor:"black",stopOpacity:"0"}),t.jsx("stop",{offset:"100%",stopColor:"white",stopOpacity:"1"})]}),t.jsxs("filter",{id:e,x:"-35%",y:"-35%",width:"170%",height:"170%",colorInterpolationFilters:"sRGB",children:[t.jsx("feImage",{id:e+"-image",x:"0",y:"0",width:"100%",height:"100%",result:"DISPLACEMENT_MAP",href:Ar(r,"data:image/jpeg;base64,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cUAUAkEkziomgGgkoxZGgxZFQFQlYnQHRdPfj/10KCSCKESCNiVkViPSLpD0h6I0Q0I0A2IoBWBIJIBKBIJoJIJ2R2J0JWBUJ0JUB0XTv479dFZDYiglYigkhEgjZFQjRFQjRFQjQigFYigHYigmgEgmglYlYnQlQlYlQHQlQnQ9P/kf1yVkNiNCNkNiVENiNiViNEViNkVCVgKCViViViSCViSCVgdCViVCViVCdgVCVCdD1D+U/XBWQ2I0I2Q2JUQ2I0JWQ0I2JUQ2JUI2JUI2J0JWJWJWA2R0BWJ0I2JUJ2BUJUJ0P//EABkQAQEBAQEBAAAAAAAAAAAAAAECABEDEP/aAAgBAQABAgB1atWrVq1atWrVq1atWrVq1atWrVq1atWrVq+OrVq1atWrVq1atWrVq1atWrVq1atWrVq1atXxVppppppdWrVq1atWrVq1NNNNNNNNNNNPVWmmmmms6tWrVq1atWpppppppppppppp6q0000uc51atWrVq1ammmmmmmmmmmmmt1Vpppc5znVq1atWrVqaaaaaaaaaaaaaeqtNLnOc51atWrVq1ammmmmmmmmmmmmnqrS5znOc6tWrVq16222mmmmmmlVppp6tKuc5znOrVq1a9TbbbbTTTTTSq000qtLnOc5zq1atWrW0222200000qqqtKqrnOc5zq1atTbbbbbbbbTTTSqqqqqq5znOc6tTTTbbbbbbbbTTTSqqqqrlVznOctNNNtttttttttNNNNKqqqrqznKqrTTTTbbbbbbbbbTTTSqqqqrqznOc5aaaabbbbbbbbbaaaaVVVVVdWc5znVq1NNttttttttttNNKqqqqudWc5znVq16tbbbbbbbbbbTTSqqqq5XVnOc6tWrVrb1tttttttttNNKqqqqrWrK5VWmmm2230bbbbbbaaaXOc5zlVa1KuVVppptttt9G22222mmlzlVznK6tWVVWmmmm2222222222mlznOc5znLWppVVWmmm22222229bTWrOc5znOcq1qaaVpWmm222222229erVqznOc5znKtatStK0rTbTTbbbberXr1as5znOc5aVpppppWlabaabbbb1ta9WrVnOc5znU0rTTTTTTTTTbTTbbbTWvVq1as5znOdTTStNNNNNNNNNtNNtttN6tWvVq1ZznOrU00rTTTTTTTTTTTTTbTWvVq1atWrOc6tTTTStNNNNNNNNNNtNNtNa9WrVq1Z1Z1NNNNNK1q1NNNNNNNNNNNtNatWrVq1atWrU00000rWrVq1atWrVq1alaaa1atWrVq1NNNammmmla1atWrVq1aterVq16tWrVnVqa1NK1qaaaVX/xAAWEAADAAAAAAAAAAAAAAAAAAAhgJD/2gAIAQEAAz8AaExf/8QAGhEBAQEBAQEBAAAAAAAAAAAAAQISEQADEP/aAAgBAgEBAgDx48ePHjx48ePHjx48ePHjx48ePHjx48ePHj86IiIiIiInjx48ePHjx48IiIiIj0oooooooooRERER73ve60UUUUUUVrWiiiiiihERERER73ve97ooooorRWiiiiihKERERER73ve973RRRRWtFFFFFFCIiIiIiPe973ve60UUVrRRRRRRQiIlCIiI973ve973pRRWiiiiiiiiiiiiiiihEe973ve973RRWtFFFFFFFFFFFFFFFFFFa13ve973WitaKKKKKKKKKKKKKKKKKK1rWtd1rutFa1oooooooooooosssooorWta1rWta1rRRRRRRRRRRZZZZZZZZZWta1rWta1rRRRRRRRRZZZZZZZZZZZZe9a1rWta1rWitaKLLLLLLLLLLLLLLLLL3rWta1rWtFbLLLLLLLLLLLLLLLLLLLL3vWta1rWita1ssssssss+hZZZZZZZZe961rWta0Vre97LLLLLLLLLLLPoWWWWWXrWta1oorWta3ssss+hZZZZ9Cyyyyyyyyiita1orWta1ve9llllllllllllllllFFa0VorWta1ve9llllllllllllllllllFFFaK1rWta1rWiyyyyyyyyyyyyiiiiiiitFFa1rWta1oosoosssssoooosoooorRRRWta1rWta0UUUUUWUUUUUUUUUUUVoooorWta1rWtaKKKKKKmiiiiiiiiiiiiiiitd73ve61oSiiipoqaKKKKKKKKKK0UUUVrve973vREREZoSihEooooorRRRRWtd73ve9EREREREoSiiiiitFllllla73ve9ERERERESiiiiiitH0PoWWWWVrXe96IiIiMoiJRRRRRRWjwlFFllllFFd6IiIiIlCUUUUUUUUUePHjx48ePCIiIiIiIiUUUUUUUUUUUePHjx48ePHjx48ePHjx48IiUUUUUUJRRRX//xAAWEQADAAAAAAAAAAAAAAAAAAABYJD/2gAIAQIBAz8AtEV7/8QAFxEBAQEBAAAAAAAAAAAAAAAAAAECEP/aAAgBAwEBAgCtNNNNNNNNNNNNNNNNNNNNNNNNNNNNNcrTTTTTTTTTTTTTTTTTTTTTTTTTTTTTXKrTTTTTTTU000000000000000000001FVpppppqampqaaaaaaaaaaaaaaaaaaaa5Vaaaaampqampqammmmmmmmmmmlaaaaaaiq0001NTU1NTU1NTTTTTTTTTTSqqtNNNcqtNNSyzU1LNTU1NTTTTTTTTTSqqq001ytNLLLLNTU1NTU1NTbbbTTTTTSqqq001ytNLLLLLNTU1NTU3NttttNNNNNKqq001KrSyyyyyzU1NTU3Nzc02220000qqqqrSqqyyyyyzU1NTU3Nzc3NttttNNNKqqqqqqssssss1NTU3Nzc3NzbbbbTTTSqqqqqqrLLLLLNTU1Nzc3Nzc22220000qqqqqqqqssss1NTU3Nzc3NzbbbbbTTSqqqqqqqqqqzU1NTc3Nzc3Nzbc22000qqqqqqqqqqqtTU3Nzc3Nzc3NtzbTTSqqqqrKqqqqqtNNzc23Nzc3Nzc3NTU1KqqqrKqqqqqtNNNNttzc3Nzc3NzU1NLLLLLKqqqqqqqq0022223Nzc3NzU1NSyyyyyyqqqqqqqrTTbbbbc3Nzc3NTU1LLLLLLKsqqqqqqrTTTTbbbc3Nzc1NTUsssssssqqqqqqrTTTTTbbbTc3NTU1NTUsssssqqqqqqqq0000222023NTU1NTUsssssqqqqqqqq000000003NTU1NTU1LLLLLNKrTSqqqqtNNNNNNtNNTU1NSzUssss00qq0qqqqrTTTTTTTTTU1NTUs1LLLNNNKrTTTSqqq00000000001NTU1LNTU0000qtNNNKqqqtNNNNNNNNTU1NTUs1NNNNNKss1NNNK00qtK0000001NNTU0s000000qq000001NKrStNNNNK1NNNNStNNNNNKqtNNNNNNNK0000000rU0000rTTTTTSq00000rTTTTTTTTTTTTTTTTStNNNNKr/xAAUEQEAAAAAAAAAAAAAAAAAAACg/9oACAEDAQM/AAAf/9k=","data:image/jpeg;base64,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","data:image/png;base64,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",o),preserveAspectRatio:"xMidYMid slice"}),t.jsx("feColorMatrix",{in:"DISPLACEMENT_MAP",type:"matrix",values:"0.3 0.3 0.3 0 0\n 0.3 0.3 0.3 0 0\n 0.3 0.3 0.3 0 0\n 0 0 0 1 0",result:"EDGE_INTENSITY"}),t.jsx("feComponentTransfer",{in:"EDGE_INTENSITY",result:"EDGE_MASK",children:t.jsx("feFuncA",{type:"discrete",tableValues:`0 ${.05*n} 1`})}),t.jsx("feOffset",{in:"SourceGraphic",dx:"0",dy:"0",result:"CENTER_ORIGINAL"}),t.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:a*("shader"===r?1:-1),xChannelSelector:"R",yChannelSelector:"B",result:"RED_DISPLACED"}),t.jsx("feColorMatrix",{in:"RED_DISPLACED",type:"matrix",values:"1 0 0 0 0\n 0 0 0 0 0\n 0 0 0 0 0\n 0 0 0 1 0",result:"RED_CHANNEL"}),t.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:a*(("shader"===r?1:-1)-.02*n),xChannelSelector:"R",yChannelSelector:"B",result:"GREEN_DISPLACED"}),t.jsx("feColorMatrix",{in:"GREEN_DISPLACED",type:"matrix",values:"0 0 0 0 0\n 0 1 0 0 0\n 0 0 0 0 0\n 0 0 0 1 0",result:"GREEN_CHANNEL"}),t.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:a*(("shader"===r?1:-1)-.03*n),xChannelSelector:"R",yChannelSelector:"B",result:"BLUE_DISPLACED"}),t.jsx("feColorMatrix",{in:"BLUE_DISPLACED",type:"matrix",values:"0 0 0 0 0\n 0 0 0 0 0\n 0 0 1 0 0\n 0 0 0 1 0",result:"BLUE_CHANNEL"}),t.jsx("feBlend",{in:"GREEN_CHANNEL",in2:"BLUE_CHANNEL",mode:"screen",result:"GB_COMBINED"}),t.jsx("feBlend",{in:"RED_CHANNEL",in2:"GB_COMBINED",mode:"screen",result:"RGB_COMBINED"}),t.jsx("feGaussianBlur",{in:"RGB_COMBINED",result:"ABERRATED_BLURRED",stdDeviation:i*n*.05}),t.jsx("feComposite",{in:"ABERRATED_BLURRED",in2:"EDGE_MASK",operator:"in",result:"EDGE_ABERRATION"}),t.jsx("feComponentTransfer",{in:"EDGE_MASK",result:"INVERTED_MASK",children:t.jsx("feFuncA",{type:"table",tableValues:"1 0"})}),t.jsx("feComposite",{in:"CENTER_ORIGINAL",in2:"INVERTED_MASK",operator:"in",result:"CENTER_CLEAN"}),t.jsx("feComposite",{in:"EDGE_ABERRATION",in2:"CENTER_CLEAN",operator:"over"})]})]})});Tr.displayName="GlassFilter";const Cr=a.memo(Tr,((e,t)=>e.id===t.id&&e.displacementScale===t.displacementScale&&e.aberrationIntensity===t.aberrationIntensity&&e.mode===t.mode&&e.shaderMapUrl===t.shaderMapUrl&&e.blurAmount===t.blurAmount)),_r=a.forwardRef((({children:e,className:n="",style:r,displacementScale:o=25,blurAmount:i=.0625,saturation:s=180,aberrationIntensity:l=2,mouseOffset:c={x:0,y:0},onMouseEnter:d,onMouseLeave:u,onMouseDown:m,onMouseUp:h,isActive:p=!1,overLight:g=!1,overLightConfig:f={},borderRadius:b=0,padding:x="0 0",glassSize:v={width:0,height:0},onClick:S,mode:y="standard",effectiveWithoutEffects:E=!1,effectiveReducedMotion:A=!1,shaderVariant:N="liquidGlass",withLiquidBlur:T=!1,isFixedOrSticky:C=!1,shaderTime:_,withTimeAnimation:L=!1,animationSpeed:w=1,withMultiLayerDistortion:I=!1,distortionOctaves:R=3,distortionLacunarity:O=2,distortionGain:k=.5,distortionQuality:j="medium",contentRef:M},D)=>{const P=a.useId(),B=a.useMemo((()=>"atomix-glass-filter-"+P.replace(/:/g,"")),[P]),[z,F]=a.useState(""),U=a.useRef(null),G=a.useRef(null),V=a.useRef(null),H=a.useRef(null),$=a.useRef(null);a.useEffect((()=>{"shader"===y?Promise.resolve().then((function(){return Io})).then((e=>{G.current={ShaderDisplacementGenerator:e.ShaderDisplacementGenerator,fragmentShaders:e.fragmentShaders}})).catch((e=>{})):G.current=null}),[y]),a.useEffect((()=>{if("shader"===y&&v&&br(v)){const e=`${v.width}x${v.height}-${N}`,t=(e=>{const t=Nr.get(e);return t?(t.timestamp=Date.now(),t.url):null})(e);if(t)return void F(t);V.current&&clearTimeout(V.current);const a=()=>{if(G.current)try{const{ShaderDisplacementGenerator:t,fragmentShaders:a}=G.current;U.current?.destroy();const n=a[N]??a.liquidGlass;U.current=new t({width:v.width,height:v.height,fragment:n}),H.current=setTimeout((()=>{const t=U.current?.updateShader()??"";t&&((e,t)=>{if(Nr.size>=15){const e=Array.from(Nr.entries());e.sort(((e,t)=>e[1].timestamp-t[1].timestamp));const t=e[0];t&&Nr.delete(t[0])}Nr.set(e,{url:t,timestamp:Date.now()}),"undefined"!=typeof process&&"production"===process.env?.NODE_ENV||Nr.size})(e,t),F(t)}),100)}catch(t){F("")}else V.current=setTimeout(a,100)};V.current=setTimeout(a,500)}else F("");return()=>{V.current&&(clearTimeout(V.current),V.current=null),H.current&&(clearTimeout(H.current),H.current=null);try{U.current?.destroy()}catch(e){}finally{U.current=null}}}),[y,v,N]),a.useEffect((()=>{if("shader"!==y||!L||A||E)return void(null!==$.current&&(cancelAnimationFrame($.current),$.current=null));const e=1e3/Math.max(12,Math.min(60,Math.round(("ultra"===j?60:"high"===j?30:"medium"===j?24:20)*Math.max(.5,Math.min(2,w||1))/(I?Math.max(1,(R||3)/3+.25*Math.max(0,(O||2)-2)+Math.max(0,(k||.5)-.5)):1))));let t=0,a=!1;const n=r=>{if(!a){if(r-t>=e&&U.current){t=r;try{const e=U.current.updateShader();e&&F(e)}catch(o){}}$.current=requestAnimationFrame(n)}};return $.current=requestAnimationFrame(n),()=>{a=!0,null!==$.current&&(cancelAnimationFrame($.current),$.current=null)}}),[y,L,w,o,I,R,O,k,j,A,E,v]);const[Y,K]=a.useState(null);a.useEffect((()=>{if(!D||"function"==typeof D)return;const e=D.current;if(e)try{K(e.getBoundingClientRect())}catch(t){K(null)}}),[D,v]);const W=a.useMemo((()=>{const e={baseBlur:i,edgeBlur:1.25*i,centerBlur:1.1*i,flowBlur:1.2*i};if(!T||!Y||!c||"number"!=typeof c.x||"number"!=typeof c.y||isNaN(c.x)||isNaN(c.y))return e;try{const e=gr(c),t=2*i,a=Math.min(t,i+e*i*.15),n=Math.min(t,a*(.8+.15*e*.4)),r=Math.min(t,a*(.3+.1*e*.3)),o=Math.min(t,1.2*a);return{baseBlur:fr(a),edgeBlur:fr(n),centerBlur:fr(r),flowBlur:fr(o)}}catch(t){return e}}),[T,i,c,Y]),q=a.useMemo((()=>{try{const e=s+20*(W.baseBlur||0),t="number"!=typeof W.baseBlur||isNaN(W.baseBlur)?0:W.baseBlur,a="number"!=typeof W.edgeBlur||isNaN(W.edgeBlur)?0:W.edgeBlur,n="number"!=typeof W.centerBlur||isNaN(W.centerBlur)?0:W.centerBlur,r="number"!=typeof W.flowBlur||isNaN(W.flowBlur)?0:W.flowBlur,o=Y?Y.width*Y.height:0;return!T||A||E||o>18e4?{backdropFilter:`blur(${fr(Math.max(t,.8*a,1.1*n,.9*r))}px) saturate(${Math.min(e,200)}%) contrast(${f?.contrast||1.05}) brightness(${f?.brightness||1.05})`}:{backdropFilter:`blur(${fr(.4*t+.25*a+.15*n+.2*r)}px) saturate(${Math.min(e,200)}%) contrast(${f?.contrast||1}) brightness(${f?.brightness||1})`}}catch(e){return{backdropFilter:`blur(${i}px) saturate(${s}%) contrast(1.05) brightness(1.05)`}}}),[W,s,i,Y,A,E,T,f]),Q=a.useMemo((()=>{try{const e=c&&"number"==typeof c.x&&!isNaN(c.x)?c.x:0,t=c&&"number"==typeof c.y&&!isNaN(c.y)?c.y:0;return{"--atomix-glass-container-radius":("number"!=typeof b||isNaN(b)?0:b)+"px","--atomix-glass-container-backdrop":q?.backdropFilter||"none","--atomix-glass-container-shadow":g?[`inset 0 1px 0 rgba(255, 255, 255, ${(.4+.002*e)*(f?.shadowIntensity||1)})`,`inset 0 -1px 0 rgba(0, 0, 0, ${(.2+.001*Math.abs(t))*(f?.shadowIntensity||1)})`,`inset 0 0 20px rgba(0, 0, 0, ${(.08+.001*Math.abs(e+t))*(f?.shadowIntensity||1)})`,`0 2px 12px rgba(0, 0, 0, ${(.12+.002*Math.abs(t))*(f?.shadowIntensity||1)})`].join(", "):"0 0 20px rgba(0, 0, 0, 0.15) inset, 0 4px 8px rgba(0, 0, 0, 0.08) inset","--atomix-glass-container-shadow-opacity":E?0:1,"--atomix-glass-container-bg":g?`linear-gradient(${180+.5*e}deg, rgba(255, 255, 255, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.05) 100%)`:"none","--atomix-glass-container-text-shadow":g?"0px 1px 2px rgba(255, 255, 255, 0.15)":"0px 2px 12px rgba(0, 0, 0, 0.4)","--atomix-glass-container-box-shadow":g?"0px 16px 70px rgba(0, 0, 0, 0.75)":"0px 12px 40px rgba(0, 0, 0, 0.25)"}}catch(e){return{"--atomix-glass-container-padding":"0 0","--atomix-glass-container-radius":"0px","--atomix-glass-container-backdrop":"none","--atomix-glass-container-shadow":"none","--atomix-glass-container-shadow-opacity":1,"--atomix-glass-container-bg":"none","--atomix-glass-container-text-shadow":"none"}}}),[b,q,c,g,E,f]);return t.jsx("div",{ref:e=>{"function"==typeof D?D(e):D&&(D.current=e)},className:`${dr.CONTAINER_CLASS} ${n} ${p?dr.CLASSES.ACTIVE:""} ${g?dr.CLASSES.OVER_LIGHT:""}`,style:{...r,...Q},onClick:S,children:t.jsxs("div",{className:dr.INNER_CLASS,onMouseEnter:d,onMouseLeave:u,onMouseDown:m,onMouseUp:h,children:[t.jsxs("div",{className:dr.FILTER_CLASS,children:[t.jsx(Cr,{blurAmount:i,mode:y,id:B,displacementScale:"number"!=typeof o||isNaN(o)?0:o,aberrationIntensity:"number"!=typeof l||isNaN(l)?0:l,shaderMapUrl:z}),t.jsx("div",{className:dr.FILTER_OVERLAY_CLASS,style:{filter:`url(#${B})`}}),t.jsx("div",{className:dr.FILTER_SHADOW_CLASS})]}),t.jsx("div",{ref:M,className:dr.CONTENT_CLASS,children:e})]})})}));_r.displayName="AtomixGlassContainer";const Lr=new class{constructor(){this.listeners=new Set,this.position={x:0,y:0},this.rafId=null,this.lastEvent=null,this.isTracking=!1,this.handleMouseMove=e=>{this.lastEvent=e,null===this.rafId&&(this.rafId=requestAnimationFrame((()=>{this.lastEvent&&(this.position={x:this.lastEvent.clientX,y:this.lastEvent.clientY},this.listeners.forEach((e=>{try{e(this.position)}catch(t){}}))),this.rafId=null})))}}subscribe(e){return this.listeners.add(e),1===this.listeners.size&&this.startTracking(),e(this.position),()=>{this.unsubscribe(e)}}unsubscribe(e){this.listeners.delete(e),0===this.listeners.size&&this.stopTracking()}startTracking(){this.isTracking||(this.isTracking=!0,document.addEventListener("mousemove",this.handleMouseMove,{passive:!0}))}stopTracking(){this.isTracking&&(this.isTracking=!1,document.removeEventListener("mousemove",this.handleMouseMove),null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.lastEvent=null)}getPosition(){return{...this.position}}getSubscriberCount(){return this.listeners.size}},wr=(e,t,a)=>{if(!e&&!t)return;const{mouseOffset:n,globalMousePosition:r,glassSize:o,isHovered:i,isActive:s,isOverLight:l,baseOverLightConfig:c,effectiveBorderRadius:d,effectiveWithoutEffects:u,effectiveReducedMotion:m,elasticity:h,directionalScale:p,onClick:g,withLiquidBlur:f,blurAmount:b=dr.DEFAULTS.BLUR_AMOUNT,saturation:x=dr.DEFAULTS.SATURATION,padding:v=dr.DEFAULTS.PADDING,isFixedOrSticky:S=!1}=a,y=gr(n),E=i?1.4:1,A=s?1.6:1,N={opacity:c.opacity*E*A,contrast:Math.min(1.6,c.contrast+.1*y),brightness:Math.min(1.1,c.brightness+.05*y),shadowIntensity:Math.min(1.2,Math.max(.5,c.shadowIntensity+.2*y)),borderOpacity:Math.min(1,Math.max(.3,c.borderOpacity+.1*y)),saturationBoost:c.saturationBoost};let T=p,C={x:0,y:0};if(!u&&e){const t=e.getBoundingClientRect(),a=pr(t);if(r.x&&r.y&&br(o)){const e=r.x-a.x,t=r.y-a.y,n=Math.max(0,Math.abs(e)-o.width/2),i=Math.max(0,Math.abs(t)-o.height/2),s=hr({x:n,y:i},{x:0,y:0}),c=s>dr.CONSTANTS.ACTIVATION_ZONE?0:1-s/dr.CONSTANTS.ACTIVATION_ZONE,d=(e=>{const t=Math.max(0,Math.min(1,e));return t*t*(3-2*t)})(c);if(C={x:e*h*.1*d,y:t*h*.1*d},!l&&s<=dr.CONSTANTS.ACTIVATION_ZONE){const n=hr(r,a);if(n>0){const a=e/n,r=t/n,o=Math.min(n/300,1)*h*c,i=1+Math.abs(a)*o*.3-Math.abs(r)*o*.15,s=1+Math.abs(r)*o*.3-Math.abs(a)*o*.15,l=1-Er(Math.max(0,1-i),.2),d=1-Er(Math.max(0,1-s),.2);T=`scaleX(${Math.max(.85,l)}) scaleY(${Math.max(.85,d)})`}}}}const _=u?s&&g?"scale(0.98)":"scale(1)":`translate(${C.x}px, ${C.y}px) ${s&&g?"scale(0.96)":T}`;if(e){const t=n.x,a=n.y,r=Math.abs(t),o=Math.abs(a),c=dr.CONSTANTS.GRADIENT,u=c.BASE_ANGLE+t*c.ANGLE_MULTIPLIER,m=Math.max(c.BORDER_STOP_1.MIN,c.BORDER_STOP_1.BASE+a*c.BORDER_STOP_1.MULTIPLIER),h=Math.min(c.BORDER_STOP_2.MAX,c.BORDER_STOP_2.BASE+a*c.BORDER_STOP_2.MULTIPLIER),p=[c.BORDER_OPACITY.BASE_1+r*c.BORDER_OPACITY.MULTIPLIER_LOW,c.BORDER_OPACITY.BASE_2+r*c.BORDER_OPACITY.MULTIPLIER_HIGH,c.BORDER_OPACITY.BASE_3+r*c.BORDER_OPACITY.MULTIPLIER_LOW,c.BORDER_OPACITY.BASE_4+r*c.BORDER_OPACITY.MULTIPLIER_HIGH],g=N.borderOpacity,f=dr.CONSTANTS.PALETTE.WHITE,b=dr.CONSTANTS.PALETTE.BLACK,x={hover1:{x:c.CENTER_POSITION+t/c.HOVER_POSITION.DIVISOR_1,y:c.CENTER_POSITION+a/c.HOVER_POSITION.DIVISOR_1},hover2:{x:c.CENTER_POSITION+t/c.HOVER_POSITION.DIVISOR_2,y:c.CENTER_POSITION+a/c.HOVER_POSITION.DIVISOR_2},hover3:{x:c.CENTER_POSITION+t*c.HOVER_POSITION.MULTIPLIER_3,y:c.CENTER_POSITION+a*c.HOVER_POSITION.MULTIPLIER_3}},v={x:c.CENTER_POSITION+t*c.BASE_LAYER_MULTIPLIER,y:c.CENTER_POSITION+a*c.BASE_LAYER_MULTIPLIER},S={hover1:i||s?.5:0,hover2:s?.5:0,hover3:i?.4:s?.8:0,base:l?N.opacity:0,over:l?1.1*N.opacity:0},y=e.style;y.setProperty("--atomix-glass-transform",_||"none"),y.setProperty("--atomix-glass-border-gradient-1",`linear-gradient(${u}deg, rgba(${f}, 0) 0%, rgba(${f}, ${(p[0]??1)*g}) ${m}%, rgba(${f}, ${(p[1]??1)*g}) ${h}%, rgba(${f}, 0) 100%)`),y.setProperty("--atomix-glass-border-gradient-2",`linear-gradient(${u}deg, rgba(${f}, 0) 0%, rgba(${f}, ${(p[2]??1)*g}) ${m}%, rgba(${f}, ${(p[3]??1)*g}) ${h}%, rgba(${f}, 0) 100%)`),y.setProperty("--atomix-glass-hover-1-gradient",l?`radial-gradient(circle at ${x.hover1.x}% ${x.hover1.y}%, rgba(${b}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_START}) 0%, rgba(${b}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_MID}) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_STOP}%, rgba(${b}, 0) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_END}%)`:`radial-gradient(circle at ${x.hover1.x}% ${x.hover1.y}%, rgba(${f}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_START}) 0%, rgba(${f}, 0) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_STOP}%)`),y.setProperty("--atomix-glass-hover-2-gradient",l?`radial-gradient(circle at ${x.hover2.x}% ${x.hover2.y}%, rgba(${b}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_START}) 0%, rgba(${b}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_MID}) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_STOP}%, rgba(${b}, 0) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_END}%)`:`radial-gradient(circle at ${x.hover2.x}% ${x.hover2.y}%, rgba(${f}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_START}) 0%, rgba(${f}, 0) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_STOP}%)`),y.setProperty("--atomix-glass-hover-3-gradient",l?`radial-gradient(circle at ${x.hover3.x}% ${x.hover3.y}%, rgba(${b}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_START}) 0%, rgba(${b}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_MID}) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_STOP}%, rgba(${b}, 0) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_END}%)`:`radial-gradient(circle at ${x.hover3.x}% ${x.hover3.y}%, rgba(${f}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_START}) 0%, rgba(${f}, 0) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_STOP}%)`),y.setProperty("--atomix-glass-base-gradient",l?`linear-gradient(${dr.CONSTANTS.BASE_GRADIENT.ANGLE}deg, rgba(${b}, ${dr.CONSTANTS.BASE_GRADIENT.BLACK_START_BASE+t*dr.CONSTANTS.BASE_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${b}, ${dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_BASE+a*dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_MULTIPLIER}) ${dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_STOP}%, rgba(${b}, ${dr.CONSTANTS.BASE_GRADIENT.BLACK_END_BASE+r*dr.CONSTANTS.BASE_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${f}, ${dr.CONSTANTS.BASE_GRADIENT.WHITE_OPACITY})`),y.setProperty("--atomix-glass-overlay-gradient",l?`radial-gradient(circle at ${v.x}% ${v.y}%, rgba(${b}, ${dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_BASE+r*dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${b}, ${dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID}) ${dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID_STOP}%, rgba(${b}, ${dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_BASE+o*dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${f}, ${dr.CONSTANTS.OVERLAY_GRADIENT.WHITE_OPACITY})`),y.setProperty("--atomix-glass-hover-1-opacity",S.hover1.toString()),y.setProperty("--atomix-glass-hover-2-opacity",S.hover2.toString()),y.setProperty("--atomix-glass-hover-3-opacity",S.hover3.toString()),y.setProperty("--atomix-glass-base-opacity",S.base.toString()),y.setProperty("--atomix-glass-overlay-opacity",S.over.toString()),y.setProperty("--atomix-glass-overlay-highlight-opacity",""+S.over*dr.CONSTANTS.OVERLAY_HIGHLIGHT.OPACITY_MULTIPLIER),y.setProperty("--atomix-glass-blend-mode",l?"multiply":"overlay"),y.setProperty("--atomix-glass-radius",d+"px")}if(t){const e=n.x,a=n.y,r=.5,o=.2,i=.3,s=.4,c=.15,h=.1,p=2,g=t.getBoundingClientRect();let S={baseBlur:b,edgeBlur:b*r,centerBlur:b*o,flowBlur:b*i};if(f&&g){const e=gr(n),t=b*p,a=Math.min(t,b+e*b*s),r=Math.min(t,a*(.8+e*c*.4)),o=Math.min(t,a*(.3+e*h*.3)),l=Math.min(t,a*i);S={baseBlur:fr(a),edgeBlur:fr(r),centerBlur:fr(o),flowBlur:fr(l)}}let y=`blur(${b}px) saturate(${x}%) contrast(1.05) brightness(1.05)`;const E=x+20*(S.baseBlur||0),A=g?g.width*g.height:0;y=!f||m||u||A>18e4?`blur(${fr(Math.max(S.baseBlur,.8*S.edgeBlur,1.1*S.centerBlur,.9*S.flowBlur))}px) saturate(${Math.min(E,200)}%) contrast(${N.contrast}) brightness(${N.brightness})`:`blur(${fr(.4*S.baseBlur+.25*S.edgeBlur+.15*S.centerBlur+.2*S.flowBlur)}px) saturate(${Math.min(E,200)}%) contrast(${N.contrast}) brightness(${N.brightness})`;const T=t.style;T.setProperty("--atomix-glass-container-padding",v),T.setProperty("--atomix-glass-container-radius",d+"px"),T.setProperty("--atomix-glass-container-backdrop",y),T.setProperty("--atomix-glass-container-shadow",l?[`inset 0 1px 0 rgba(255, 255, 255, ${(.4+.002*e)*(N.shadowIntensity||1)})`,`inset 0 -1px 0 rgba(0, 0, 0, ${(.2+.001*Math.abs(a))*(N.shadowIntensity||1)})`,`inset 0 0 20px rgba(0, 0, 0, ${(.08+.001*Math.abs(e+a))*(N.shadowIntensity||1)})`,`0 2px 12px rgba(0, 0, 0, ${(.12+.002*Math.abs(a))*(N.shadowIntensity||1)})`].join(", "):"0 0 20px rgba(0, 0, 0, 0.15) inset, 0 4px 8px rgba(0, 0, 0, 0.08) inset"),T.setProperty("--atomix-glass-container-shadow-opacity",u?"0":"1"),T.setProperty("--atomix-glass-container-bg",l?`linear-gradient(${180+.5*e}deg, rgba(255, 255, 255, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.05) 100%)`:"none"),T.setProperty("--atomix-glass-container-text-shadow",l?"0px 1px 2px rgba(255, 255, 255, 0.15)":"0px 2px 12px rgba(0, 0, 0, 0.4)"),T.setProperty("--atomix-glass-container-box-shadow",l?"0px 16px 70px rgba(0, 0, 0, 0.75)":"0px 12px 40px rgba(0, 0, 0, 0.25)")}};function Ir(e,t){const a=255&Math.floor(e),n=255&Math.floor(t),r=e-Math.floor(e),o=t-Math.floor(t),i=jr(r),s=jr(o),l=Pr[a]+n&255,c=Pr[a+1]+n&255,d=Dr(Pr[l],r,o),u=Dr(Pr[c],r-1,o),m=Dr(Pr[l+1&255],r,o-1),h=Dr(Pr[c+1&255],r-1,o-1),p=Mr(d,u,i),g=Mr(m,h,i);return(Mr(p,g,s)+1)/2}function Rr(e){const t=(t,a,n=0)=>{let r=0,o=.5,i=1,s=.001*n;for(let l=0;l<e.octaves;l++)r+=Ir(t*i+s,a*i+s)*o,i*=e.lacunarity,o*=e.gain;return r};return{fbm:t,fbmWithTime:(e,a,n)=>t(e,a,n)}}const Or=new Map;function kr(e,t,a){const n=`${a.octaves}-${a.lacunarity}-${a.gain}`;let r=Or.get(n);r||(r=Rr(a),Or.set(n,r));const o=r.fbmWithTime(2*e.x+1e-4*t,2*e.y+15e-5*t,t);return{x:e.x+.04*(o-.5),y:e.y+.04*(o-.5)}}function jr(e){return e*e*e*(e*(6*e-15)+10)}function Mr(e,t,a){return e+a*(t-e)}function Dr(e,t,a){const n=15&e,r=8>n?t:a,o=4>n?a:12===n||14===n?t:0;return(1&n?-r:r)+(2&n?-o:o)}const Pr=(()=>{const e=[];for(let t=0;256>t;t++)e[t]=Math.floor(256*Math.random());return[...e,...e]})(),{CONSTANTS:Br}=dr,{CONSTANTS:zr}=dr,Fr=new WeakMap,Ur=(e,t,a,n)=>{e&&Fr.set(e,{result:a,timestamp:Date.now(),config:t,threshold:n})};function Gr({glassRef:e,contentRef:t,wrapperRef:n,borderRadius:r,globalMousePosition:o,mouseOffset:i,mouseContainer:s,overLight:l=dr.DEFAULTS.OVER_LIGHT,reducedMotion:c=!1,highContrast:d=!1,withoutEffects:u=!1,elasticity:m=.05,onClick:h,debugBorderRadius:p=!1,debugOverLight:g=!1,children:f,blurAmount:b,saturation:x,padding:v,withLiquidBlur:S,isFixedOrSticky:y=!1,withTimeAnimation:E=dr.DEFAULTS.WITH_TIME_ANIMATION,animationSpeed:A=dr.DEFAULTS.ANIMATION_SPEED,withMultiLayerDistortion:N=dr.DEFAULTS.WITH_MULTI_LAYER_DISTORTION,distortionOctaves:T=dr.DEFAULTS.DISTORTION_OCTAVES,distortionLacunarity:C=dr.DEFAULTS.DISTORTION_LACUNARITY,distortionGain:_=dr.DEFAULTS.DISTORTION_GAIN,distortionQuality:L=dr.DEFAULTS.DISTORTION_QUALITY}){const[w,I]=a.useState(!1),[R,O]=a.useState(!1),k=a.useRef(null),j=a.useRef({x:0,y:0}),M=a.useRef({x:0,y:0}),D=a.useRef({x:0,y:0}),P=a.useRef({x:0,y:0}),B=a.useRef(null),z=a.useRef(!1),[F,U]=a.useState(zr.DEFAULT_CORNER_RADIUS),[G,V]=a.useState(!1),[H,$]=a.useState(!1),[Y,K]=a.useState(!1),W=a.useRef(null),q=a.useRef(0),Q=a.useRef(0),X=a.useRef(0),Z=a.useMemo((()=>{const e=(t=L,dr.CONSTANTS.DISTORTION_QUALITY_PRESETS[t]);var t;return{octaves:T??e.octaves,lacunarity:C??e.lacunarity,gain:_??e.gain}}),[L,T,C,_]),J=a.useMemo((()=>N?Rr(Z):null),[N,Z]),ee=a.useMemo((()=>c||G),[c,G]),te=a.useMemo((()=>E&&!ee),[E,ee]);a.useEffect((()=>{if(!te||"undefined"==typeof window)return;let e=performance.now();const t=a=>{const n=a-e;e=a;const r=n*A;Q.current+=r,X.current=Q.current,W.current=requestAnimationFrame(t)};return q.current=performance.now(),W.current=requestAnimationFrame(t),()=>{null!==W.current&&(cancelAnimationFrame(W.current),W.current=null)}}),[te,A]);const ae=a.useCallback((()=>X.current),[]),ne=a.useCallback((e=>te&&J?kr(e,X.current,Z):e),[te,J,Z]),re=a.useMemo((()=>Math.max(0,void 0!==r?r:F)),[r,F]),{glassSize:oe}=function({glassRef:e,effectiveBorderRadius:t,cachedRectRef:n}){const[r,o]=a.useState({width:270,height:69});return a.useEffect((()=>{const a=e=>null!==e&&e instanceof HTMLElement&&e.isConnected;let r=null,i={width:0,height:0},s=t;const l=(n=!1)=>{null!==r&&cancelAnimationFrame(r),r=requestAnimationFrame((()=>{if(!a(e.current))return void(r=null);const l=e.current.getBoundingClientRect();if(0>=l.width||0>=l.height)return void(r=null);const c={width:Math.round(l.width),height:Math.round(l.height)},d=s!==t,u=Math.abs(c.width-i.width)>1||Math.abs(c.height-i.height)>1;var m;(n||d||u)&&br(m=c)&&m.width<=Br.MAX_SIZE&&m.height<=Br.MAX_SIZE&&(i=c,s=t,o(c)),r=null}))};let c=null;const d=()=>{c&&clearTimeout(c),c=setTimeout((()=>l(!1)),16)},u=setTimeout((()=>l(!0)),0);let m=null,h=null;if("undefined"!=typeof ResizeObserver&&a(e.current))try{m=new ResizeObserver((t=>{for(const a of t)if(a.target===e.current){e.current&&n&&(n.current=e.current.getBoundingClientRect()),h&&clearTimeout(h),h=setTimeout((()=>l(!1)),16);break}})),m.observe(e.current)}catch(p){}return window.addEventListener("resize",d,{passive:!0}),()=>{clearTimeout(u),null!==r&&cancelAnimationFrame(r),c&&clearTimeout(c),h&&clearTimeout(h),window.removeEventListener("resize",d),m?.disconnect()}}),[t,e,n]),{glassSize:r}}({glassRef:e,effectiveBorderRadius:re,cachedRectRef:k}),ie=a.useMemo((()=>d||H),[d,H]),se=a.useMemo((()=>u||ee),[u,ee]),le=o||j.current,ce=i||M.current;a.useEffect((()=>{const e=()=>{try{let e=null;if(t.current){const a=t.current.firstElementChild;if(a){const t=(e=>{if(!e||"undefined"==typeof window)return null;try{const t=window.getComputedStyle(e),a=t.borderRadius||t.borderTopLeftRadius||t.borderTopRightRadius||t.borderBottomLeftRadius||t.borderBottomRightRadius;if(a&&"0px"!==a&&"auto"!==a){const e=xr(a);return e>0?e:null}return null}catch(t){return null}})(a);null!==t&&t>0&&(e=t)}}if(null===e){const t=Sr(f);t>0&&t!==zr.DEFAULT_CORNER_RADIUS&&(e=t)}null!==e&&e>0&&U(e)}catch(e){"undefined"==typeof process||process.env}};e();const a=setTimeout(e,100);return()=>clearTimeout(a)}),[f,p,t]),a.useEffect((()=>{if("undefined"==typeof window||"function"!=typeof window.matchMedia)return;const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=window.matchMedia("(prefers-contrast: high)");V(e.matches),$(t.matches);const a=e=>{V(e.matches)},n=e=>{$(e.matches)};return e.addEventListener("change",a),t.addEventListener("change",n),()=>{e.removeEventListener("change",a),t.removeEventListener("change",n)}}),[]),a.useEffect((()=>{if(("auto"===l||"object"==typeof l&&null!==l)&&e.current){const t=e.current,a=((e,t)=>{if(!e)return null;const a=Fr.get(e);return a&&((e,t)=>{if("object"!=typeof e||null===e)return e===t;if("object"!=typeof t||null===t)return!1;const a=e,n=t,r=["threshold","opacity","contrast","brightness","saturationBoost"];for(const o of r){const e=a[o],t=n[o];if(void 0!==e||void 0!==t){if(void 0===e||void 0===t)return!1;if("number"==typeof e&&"number"==typeof t){if(Number.isNaN(e)&&Number.isNaN(t))continue;if(Number.isNaN(e)||Number.isNaN(t))return!1;if(Math.abs(e-t)>Number.EPSILON)return!1}else if(e!==t)return!1}}return!0})(a.config,t)?(a.timestamp=Date.now(),a.result):null})(t.parentElement,l);if(null!==a)return void K(a);const n=setTimeout((()=>{try{if(!t)return void K(!1);if("undefined"==typeof window||"function"!=typeof window.getComputedStyle)return void K(!1);let a=0,n=0,r=!1,o=t.parentElement,i=0;const s=20,c=10;for(;o&&c>n&&s>i;){try{const e=window.getComputedStyle(o);if(!e){o=o.parentElement,i++;continue}const t=e.backgroundColor,s=e.backgroundImage;if(t&&"rgba(0, 0, 0, 0)"!==t&&"transparent"!==t&&"initial"!==t&&"none"!==t){const e=t.match(/\d+/g);if(e&&e.length>=3){const t=Number(e[0]),o=Number(e[1]),i=Number(e[2]);if(!isNaN(t)&&!isNaN(o)&&!isNaN(i)&&(t>10||o>10||i>10)){const e=(.299*t+.587*o+.114*i)/255;!isNaN(e)&&isFinite(e)&&(a+=e,n++,r=!0)}}}s&&"none"!==s&&"initial"!==s&&(a+=.5,n++,r=!0)}catch(e){}if(!o)break;o=o.parentElement,i++}if(r&&n>0){const e=a/n;if(!isNaN(e)&&isFinite(e)){let a=.7;if("object"==typeof l&&null!==l){const e=l;if(void 0!==e.threshold){const t="number"!=typeof e.threshold||isNaN(e.threshold)?.7:e.threshold;a=Math.min(.9,Math.max(.1,t))}}const n=e>a;Ur(t.parentElement,l,n,a),K(n)}else{const e=!1,a="object"==typeof l&&null!==l&&l.threshold||.7;Ur(t.parentElement,l,e,a),K(e)}}else{const e=!1,a="object"==typeof l&&null!==l&&l.threshold||.7;Ur(t.parentElement,l,e,a),K(e)}}catch(a){K(!1)}}),150);return()=>clearTimeout(n)}"boolean"==typeof l&&K(!1)}),[l,e]);const de=a.useCallback((()=>"boolean"==typeof l?l:("auto"===l||"object"==typeof l&&null!==l)&&Y),[l,Y]),ue=a.useCallback(((e,t,a,n)=>"number"!=typeof e||isNaN(e)||!isFinite(e)?n:Math.min(a,Math.max(t,e))),[]),me=a.useMemo((()=>{const e=de(),t=w?1.4:1,a=R?1.6:1,n={isOverLight:e,threshold:.7,opacity:e?Math.min(.6,Math.max(.2,.5*t*a)):0,contrast:1.4,brightness:.9,saturationBoost:1.3,shadowIntensity:.9,borderOpacity:.7};if("object"==typeof l&&null!==l){const e=l,r=ue(e.threshold,.1,1,n.threshold),o=ue(e.opacity,.1,1,n.opacity),i=ue(e.contrast,.5,2.5,n.contrast),s=ue(e.brightness,.5,2,n.brightness),c=ue(e.saturationBoost,.5,3,n.saturationBoost),d={...n,threshold:r,opacity:o*t*a,contrast:i,brightness:s,saturationBoost:c};return"undefined"==typeof process||process.env,d}return"undefined"==typeof process||process.env,n}),[l,de,w,R,ue,g]),he=a.useMemo((()=>se||R&&h?"scale(0.98)":"scale(1)"),[se,R,h]),pe=a.useRef(null),ge=a.useCallback((()=>{z.current=!1,null!==B.current&&(cancelAnimationFrame(B.current),B.current=null)}),[]),fe=a.useCallback((()=>{if(z.current)return;z.current=!0;const t=zr.LERP_FACTOR,a=()=>{if(!z.current)return;if(!e.current)return void(z.current=!1);const r=M.current,o=D.current,i=o.x-r.x,s=o.y-r.y;if(.01>Math.abs(i)&&.01>Math.abs(s))return M.current={...o},j.current={...P.current},wr(n?.current||null,e.current,{mouseOffset:M.current,globalMousePosition:j.current,glassSize:oe,isHovered:w,isActive:R,isOverLight:me.isOverLight,baseOverLightConfig:me,effectiveBorderRadius:re,effectiveWithoutEffects:se,effectiveReducedMotion:ee,elasticity:m,directionalScale:R&&h?"scale(0.96)":"scale(1)",onClick:h,withLiquidBlur:S,blurAmount:b,saturation:x,padding:v,isFixedOrSticky:y}),void ge();M.current={x:yr(r.x,o.x,t),y:yr(r.y,o.y,t)};const l=j.current,c=P.current;j.current={x:yr(l.x,c.x,t),y:yr(l.y,c.y,t)},wr(n?.current||null,e.current,{mouseOffset:M.current,globalMousePosition:j.current,glassSize:oe,isHovered:w,isActive:R,isOverLight:me.isOverLight,baseOverLightConfig:me,effectiveBorderRadius:re,effectiveWithoutEffects:se,effectiveReducedMotion:ee,elasticity:m,directionalScale:R&&h?"scale(0.96)":"scale(1)",onClick:h,withLiquidBlur:S,blurAmount:b,saturation:x,padding:v,isFixedOrSticky:y}),B.current=requestAnimationFrame(a)};B.current=requestAnimationFrame(a)}),[e,n,oe,w,R,me,re,se,ee,m,h,S,b,x,v,y,ge]),be=a.useCallback((t=>{if(o&&i)return;if(se)return;const a=s?.current||e.current;if(!a)return;let n=k.current;if(n&&0!==n.width&&0!==n.height||(n=a.getBoundingClientRect(),k.current=n),0===n.width||0===n.height)return;const r=pr(n);D.current={x:(t.x-r.x)/n.width*100,y:(t.y-r.y)/n.height*100},P.current=t,z.current||fe()}),[s,e,o,i,se,fe]);a.useEffect((()=>{if(o&&i)return;if(se)return;const t=Lr.subscribe(be);fe();const a=s?.current||e.current;let n=null;return a&&"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{null!==pe.current&&cancelAnimationFrame(pe.current),pe.current=requestAnimationFrame((()=>{const t=s?.current||e.current;t&&(k.current=t.getBoundingClientRect()),pe.current=null}))})),n.observe(a)),()=>{t(),ge(),null!==pe.current&&(cancelAnimationFrame(pe.current),pe.current=null),n&&n.disconnect()}}),[o,i,se,be,fe,ge,s,e]),a.useEffect((()=>{wr(n?.current||null,e.current,{mouseOffset:i||M.current,globalMousePosition:o||j.current,glassSize:oe,isHovered:w,isActive:R,isOverLight:me.isOverLight,baseOverLightConfig:me,effectiveBorderRadius:re,effectiveWithoutEffects:se,effectiveReducedMotion:ee,elasticity:m,directionalScale:R&&h?"scale(0.96)":"scale(1)",onClick:h,withLiquidBlur:S,blurAmount:b,saturation:x,padding:v})}),[w,R,oe,me,re,se,ee,m,n,e,i,o,S,b,x,v,h]);const xe=a.useCallback((()=>I(!0)),[]),ve=a.useCallback((()=>I(!1)),[]),Se=a.useCallback((()=>O(!0)),[]),ye=a.useCallback((()=>O(!1)),[]),Ee=a.useCallback((e=>{!h||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),h())}),[h]);return{isHovered:w,isActive:R,glassSize:oe,dynamicBorderRadius:F,effectiveBorderRadius:re,effectiveReducedMotion:ee,effectiveHighContrast:ie,effectiveWithoutEffects:se,detectedOverLight:Y,globalMousePosition:le,mouseOffset:ce,overLightConfig:me,transformStyle:he,getShaderTime:ae,applyTimeBasedDistortion:ne,handleMouseEnter:xe,handleMouseLeave:ve,handleMouseDown:Se,handleMouseUp:ye,handleKeyDown:Ee}}const Vr={mobile:{maxWidth:640,params:{distortionOctaves:3,displacementScale:.7,blurAmount:.8,animationSpeed:.8,chromaticIntensity:.5}},tablet:{minWidth:641,maxWidth:1024,params:{distortionOctaves:4,displacementScale:.85,blurAmount:.9,animationSpeed:.9,chromaticIntensity:.75}},desktop:{minWidth:1025,params:{distortionOctaves:5,displacementScale:1,blurAmount:1,animationSpeed:1,chromaticIntensity:1}}};function Hr({baseParams:e,breakpoints:t=Vr,enabled:n=!0,enablePerformanceAdjustment:r=!0,debug:o=!1}){const[i,s]=a.useState(e),[l,c]=a.useState("desktop"),[d,u]=a.useState("high"),[m,h]=a.useState(n),p=a.useRef(e),g=a.useRef(t);p.current=e,g.current=t;const f=a.useCallback((()=>{if(!n||"undefined"==typeof window)return h(!1),s(p.current),void c("disabled");h(!0);const e=window.innerWidth,{name:t,params:a}=((e,t)=>{const a=Object.entries(t).filter((([e,t])=>void 0!==t.minWidth)).sort(((e,t)=>(t[1].minWidth||0)-(e[1].minWidth||0)));for(const[l,c]of a)if(e>=(c.minWidth||0))return{name:l,params:c.params};const n=Object.entries(t).filter((([e,t])=>void 0!==t.maxWidth)).sort(((e,t)=>(e[1].maxWidth||1/0)-(t[1].maxWidth||1/0)));for(const[l,c]of n)if(e<=(c.maxWidth||1/0))return{name:l,params:c.params};const r=Object.entries(t);if(0===r.length)return{name:"desktop",params:{distortionOctaves:5,displacementScale:1,blurAmount:1}};const o=r[0];if(!o)return{name:"desktop",params:{distortionOctaves:5,displacementScale:1,blurAmount:1}};const[i,s]=o;return{name:i,params:s.params}})(e,g.current);c(t);let o=((e,t)=>{const a={...e},n=["displacementScale","blurAmount","saturation","aberrationIntensity","animationSpeed","chromaticIntensity"];for(const o of n)void 0!==t[o]&&void 0!==e[o]&&(a[o]=e[o]*t[o]);const r=["distortionOctaves","distortionLacunarity","distortionGain"];for(const o of r)void 0!==t[o]&&(a[o]=t[o]);return a})(p.current,a);if(r){const e=(()=>{if("undefined"==typeof window||"undefined"==typeof navigator)return"high";const e=navigator.deviceMemory||4,t=navigator.hardwareConcurrency||4;return e>2&&t>2?4>e||4>t?"medium":"high":"low"})();u(e),o=((e,t)=>{if("high"===t)return e;const a="low"===t?.7:.85;return{...e,distortionOctaves:Math.max(2,Math.round((e.distortionOctaves||5)*a)),displacementScale:(e.displacementScale||1)*a,blurAmount:(e.blurAmount||1)*a,animationSpeed:(e.animationSpeed||1)*a,chromaticIntensity:(e.chromaticIntensity||1)*a}})(o,e)}s(o)}),[n,r,o]),b=(e=>{const t=a.useRef(null);return a.useEffect((()=>()=>{t.current&&clearTimeout(t.current)}),[]),a.useCallback(((...a)=>{t.current&&clearTimeout(t.current),t.current=setTimeout((()=>{e(...a)}),200)}),[e,200])})(f);return a.useEffect((()=>{if(n)return f(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}}),[n]),{responsiveParams:i,currentBreakpoint:l,performanceTier:d,isActive:m,recalculate:a.useCallback((()=>{f()}),[f])}}function $r(){return{...Vr}}function Yr(e){return{...Vr,...e}}function Kr(e={}){const{enabled:t=!0,targetFps:n=60,minFps:r=45,scaleUpThreshold:o=58,lowFpsFrames:i=3,highFpsFrames:s=10,debug:l=!1,showOverlay:c=!1}=e,[d,u]=a.useState({fps:0,frameTime:0,gpuMemory:null,qualityLevel:"medium",timestamp:0,isAutoScaling:!0,lowFpsCount:0}),[m,h]=a.useState(!1),[p,g]=a.useState(t),f=a.useRef(0),b=a.useRef(0),x=a.useRef(0),v=a.useRef(null),S=a.useRef(0),y=a.useRef(0),E=a.useRef("medium"),A=a.useCallback((e=>{u((t=>({...t,...e,timestamp:performance.now()})))}),[]),N=a.useCallback((e=>{if(m)return;const t=E.current;if(r>e)S.current++,y.current=0,S.current<i||"low"===t||(E.current="low",A({qualityLevel:"low",lowFpsCount:S.current}));else if(o>e)S.current=0,y.current=0;else if(y.current++,S.current=0,y.current>=s){const e="low"===t?"medium":"high";E.current=e,A({qualityLevel:e,lowFpsCount:0}),y.current=0}}),[m,r,o,i,s,l,A]),T=a.useCallback((e=>{if(!p)return;f.current++;const t=e-x.current;if(x.current=e,e-b.current>=100){const a=e-b.current,n=Math.round(1e3*f.current/a);N(n),A({fps:n,frameTime:t,qualityLevel:E.current,lowFpsCount:S.current}),f.current=0,b.current=e}v.current=requestAnimationFrame(T)}),[p,N,A]);a.useEffect((()=>{if(!p||"undefined"==typeof window)return;let e=!0;return(async()=>{const t=await new Promise((e=>{if("undefined"!=typeof window&&"undefined"!=typeof document)try{const r=document.createElement("canvas"),o=r.getContext("webgl")||r.getContext("experimental-webgl");if(o){const r=o.getExtension("WEBGL_debug_renderer_info");if(r){var t,a,n;const i=o.getParameter(r.UNMASKED_RENDERER_WEBGL);return void((null==(t=i)?void 0:Function.call.bind(sn(t),t))?.("Integrated")?e(256):(null==(a=i)?void 0:Function.call.bind(sn(a),a))?.("AMD")||(null==(n=i)?void 0:Function.call.bind(sn(n),n))?.("NVIDIA")?e(512):e(null))}}}catch(r){}e(null)}));e&&A({gpuMemory:t})})(),()=>{e=!1}}),[p,A]),a.useEffect((()=>{if(p)return b.current=performance.now(),x.current=performance.now(),v.current=requestAnimationFrame(T),()=>{null!==v.current&&(cancelAnimationFrame(v.current),v.current=null)};null!==v.current&&(cancelAnimationFrame(v.current),v.current=null)}),[p]);const C=a.useCallback((e=>{h(!0),E.current=e,A({qualityLevel:e,isAutoScaling:!1})}),[A,l]),_=a.useCallback((()=>{h(!1),S.current=0,y.current=0,A({isAutoScaling:!0,lowFpsCount:0})}),[A,l]),L=a.useCallback((()=>{g((e=>!e))}),[]);var w,I;return{metrics:d,recommendedQuality:(w=d.fps,I=d.qualityLevel,58>w?45>w?"low":"high"===I?"high":"medium":"high"),isUnderperforming:d.fps<r,setQualityLevel:C,resetAutoScaling:_,toggleMonitoring:L}}function Wr({metrics:e}){return null}function qr(e){switch(e){case"low":return{distortionOctaves:2,displacementScale:.6,blurAmount:.7,animationSpeed:.8,chromaticIntensity:.5};case"medium":return{distortionOctaves:4,displacementScale:.85,blurAmount:.9,animationSpeed:.95,chromaticIntensity:.75};case"high":return{distortionOctaves:5,displacementScale:1,blurAmount:1,animationSpeed:1,chromaticIntensity:1}}}const Qr=e=>{switch(e){case"high":return"var(--atomix-color-success, #4ade80)";case"medium":return"var(--atomix-color-warning, #fbbf24)";case"low":return"var(--atomix-color-danger, #ef4444)";default:return"#9ca3af"}},Xr=e=>58>e?45>e?"Critical":"Warning":"Optimal";if("undefined"!=typeof document){const e="perf-dashboard-keyframes";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.textContent="\n@keyframes perf-dashboard-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n}\n",document.head.appendChild(t)}}const Zr=a.memo((({metrics:e,isVisible:a=!0,onClose:n})=>{if(!a)return null;const r=58>(o=e.fps)?45>o?"var(--atomix-color-danger, #ef4444)":"var(--atomix-color-warning, #fbbf24)":"var(--atomix-color-success, #4ade80)";var o;const i=45>e.fps;return t.jsxs("div",{className:"c-perf-dashboard u-position-fixed u-top-4 u-end-4 u-p-3 u-px-4 u-text-xs u-font-mono u-text-white u-rounded-md u-border u-border-white-alpha-10 u-shadow-lg",style:{zIndex:9999,minWidth:"12.5rem",backgroundColor:"rgba(17, 24, 39, 0.95)",backdropFilter:"blur(8px)",transition:"opacity 0.3s ease"},children:[t.jsxs("div",{className:"u-flex u-items-center u-justify-between u-mb-2 u-pb-2 u-border-b u-border-white-alpha-10",children:[t.jsx("span",{className:"u-text-sm u-font-bold u-text-white",children:"Performance Monitor"}),n&&t.jsx("button",{className:"u-bg-transparent u-border-none u-p-0 u-line-height-1 u-text-base u-text-gray-400 u-cursor-pointer hover:u-text-white",onClick:n,"aria-label":"Close performance dashboard",style:{transition:"color 0.2s ease"},children:"×"})]}),t.jsxs("div",{className:"u-flex u-items-center u-justify-between u-mb-1-5",children:[t.jsx("span",{className:"u-text-gray-400 u-me-3",children:"FPS"}),t.jsx("span",{className:"u-font-bold",style:{color:r},children:Math.round(e.fps)})]}),t.jsxs("div",{className:"u-flex u-items-center u-justify-between u-mb-1-5",children:[t.jsx("span",{className:"u-text-gray-400 u-me-3",children:"Frame Time"}),t.jsxs("span",{className:"u-font-bold",children:[e.frameTime.toFixed(2),"ms"]})]}),t.jsxs("div",{className:"u-flex u-items-center u-justify-between u-mb-1-5",children:[t.jsx("span",{className:"u-text-gray-400 u-me-3",children:"Quality"}),t.jsx("span",{className:"u-font-bold u-text-uppercase",style:{fontSize:"0.6875rem",color:Qr(e.qualityLevel)},children:e.qualityLevel})]}),e.gpuMemory&&t.jsxs("div",{className:"u-flex u-items-center u-justify-between u-mb-1-5",children:[t.jsx("span",{className:"u-text-gray-400 u-me-3",children:"GPU Memory"}),t.jsxs("span",{className:"u-font-bold",children:["~",Math.round(e.gpuMemory/1024),"MB"]})]}),e.isAutoScaling&&t.jsx("div",{className:"u-mt-2 u-pt-2 u-border-t u-border-white-alpha-10 u-text-center",style:{fontSize:"0.625rem",color:"#6b7280"},children:"Auto-scaling active"}),t.jsxs("div",{className:"u-flex u-items-center u-gap-2 u-mt-2 u-pt-2 u-border-t u-border-white-alpha-10",children:[t.jsx("div",{className:"u-rounded-full",style:{width:"0.5rem",height:"0.5rem",flexShrink:0,backgroundColor:r,...i&&{animation:"perf-dashboard-pulse 1s infinite"}}}),t.jsx("span",{className:"u-text-xs",style:{fontSize:"0.625rem",color:r},children:Xr(e.fps)})]})]})}));Zr.displayName="PerformanceDashboard";const Jr={distortionOctaves:2,displacementScale:50,blurAmount:5,saturation:80,aberrationIntensity:.3,animationSpeed:.8,chromaticIntensity:.3,distortionLacunarity:1.5,distortionGain:.3},eo={distortionOctaves:3,displacementScale:75,blurAmount:8,saturation:90,aberrationIntensity:.5,animationSpeed:1,chromaticIntensity:.5,distortionLacunarity:2,distortionGain:.4},to={distortionOctaves:4,displacementScale:100,blurAmount:12,saturation:100,aberrationIntensity:.7,animationSpeed:1.2,chromaticIntensity:.7,distortionLacunarity:2.2,distortionGain:.5};function ao(e){switch(e){case"performance":return Jr;case"balanced":default:return eo;case"quality":return to}}const no={desktop:{minWidth:1024,params:{distortionOctaves:6,displacementScale:150,blurAmount:15,saturation:100,aberrationIntensity:1,animationSpeed:1,chromaticIntensity:1,distortionLacunarity:2.5,distortionGain:.6}},laptop:{minWidth:768,params:{...to,distortionOctaves:5,displacementScale:120}},tablet:{minWidth:640,params:{...eo,distortionOctaves:4,displacementScale:90}},mobile:{maxWidth:639,params:{...Jr,distortionOctaves:3,displacementScale:75,blurAmount:6}},mobileSmall:{maxWidth:375,params:{...Jr,distortionOctaves:2,displacementScale:50,blurAmount:4,saturation:70}}};function ro(e){return 1024>e?768>e?640>e?375>e?no.mobileSmall?.params||Jr:no.mobile?.params||Jr:no.tablet?.params||eo:no.laptop?.params||eo:no.desktop?.params||eo}const oo={isMobile:()=>"undefined"!=typeof window&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isTablet(){if("undefined"==typeof window)return!1;const e=window.innerWidth;return e>=640&&1024>e&&this.isMobile()},getRecommendedPreset(){return this.isMobile()?this.isTablet()?"balanced":"performance":"quality"},getPixelRatio:()=>"undefined"==typeof window?1:window.devicePixelRatio||1,hasTouchSupport:()=>"undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0)},io=a.forwardRef((function({children:e,displacementScale:n=dr.DEFAULTS.DISPLACEMENT_SCALE,blurAmount:r=dr.DEFAULTS.BLUR_AMOUNT,saturation:o=dr.DEFAULTS.SATURATION,aberrationIntensity:i=dr.DEFAULTS.ABERRATION_INTENSITY,elasticity:s=dr.DEFAULTS.ELASTICITY,borderRadius:l,globalMousePosition:c,mouseOffset:d,mouseContainer:u=null,className:m="",padding:h=dr.DEFAULTS.PADDING,overLight:p=dr.DEFAULTS.OVER_LIGHT,style:g={},mode:f=dr.DEFAULTS.MODE,onClick:b,shaderVariant:x="liquidGlass","aria-label":v,"aria-describedby":S,role:y,tabIndex:E,reducedMotion:A=!1,highContrast:N=!1,withoutEffects:T=!1,withLiquidBlur:C=!1,withBorder:_=!0,withOverLightLayers:L=dr.DEFAULTS.ENABLE_OVER_LIGHT_LAYERS,debugPerformance:w=!1,debugOverLight:I=!1,height:R,width:O,withTimeAnimation:k=!1,animationSpeed:j=1,withMultiLayerDistortion:M=!1,distortionOctaves:D=3,distortionLacunarity:P=2,distortionGain:B=.5,distortionQuality:z="medium",devicePreset:F="balanced",disableResponsiveBreakpoints:U=!1,isFixedOrSticky:G,...V},H){const $=a.useRef(null),Y=a.useRef(null),K=a.useRef(null),W=a.useMemo((()=>function(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}(H,K)),[H]),{zIndex:q,...Q}=g,X=G||"fixed"===Q.position||"sticky"===Q.position,{isHovered:Z,isActive:J,glassSize:ee,effectiveBorderRadius:te,effectiveReducedMotion:ae,effectiveHighContrast:ne,effectiveWithoutEffects:re,overLightConfig:oe,globalMousePosition:ie,mouseOffset:se,transformStyle:le,getShaderTime:ce,handleMouseEnter:de,handleMouseLeave:ue,handleMouseDown:me,handleMouseUp:he,handleKeyDown:pe}=Gr({glassRef:$,contentRef:Y,wrapperRef:K,borderRadius:l,globalMousePosition:c,mouseOffset:d,mouseContainer:u,overLight:p,reducedMotion:A,highContrast:N,withoutEffects:T,elasticity:s,onClick:b,debugOverLight:I,debugPerformance:w,children:e,blurAmount:r,saturation:o,withLiquidBlur:C,padding:h,style:g,isFixedOrSticky:X,withTimeAnimation:k,animationSpeed:j,withMultiLayerDistortion:M,distortionOctaves:D,distortionLacunarity:P,distortionGain:B,distortionQuality:z});Hr({baseParams:{...a.useMemo((()=>ao(F)),[F]),distortionOctaves:Math.round((n||dr.DEFAULTS.DISPLACEMENT_SCALE)/25),displacementScale:n||dr.DEFAULTS.DISPLACEMENT_SCALE,blurAmount:r||dr.DEFAULTS.BLUR_AMOUNT,saturation:o||dr.DEFAULTS.SATURATION,aberrationIntensity:i||dr.DEFAULTS.ABERRATION_INTENSITY,animationSpeed:1,chromaticIntensity:i||dr.DEFAULTS.ABERRATION_INTENSITY},breakpoints:no,enabled:!U&&"undefined"!=typeof window,debug:!1});const{metrics:ge,toggleMonitoring:fe}=Kr({enabled:w,debug:!1,showOverlay:!1});a.useEffect((()=>{w&&fe()}),[w]);const be=a.useMemo((()=>oe.isOverLight),[oe.isOverLight]),xe=L&&be,ve=a.useMemo((()=>{if(!X)return{};const{position:e,top:t,left:a,right:n,bottom:r}=Q;return{...e&&{position:e},...void 0!==t&&{top:t},...void 0!==a&&{left:a},...void 0!==n&&{right:n},...void 0!==r&&{bottom:r}}}),[X,Q]);a.useMemo((()=>{if(X){const{position:e,top:t,left:a,right:n,bottom:r,...o}=Q;return{...o}}return{...Q}}),[X,Q]);const Se=[dr.BASE_CLASS,ae&&dr.BASE_CLASS+"--reduced-motion",ne&&dr.BASE_CLASS+"--high-contrast",re&&dr.BASE_CLASS+"--disabled-effects",m].filter(Boolean).join(" "),ye=a.useMemo((()=>({position:X?"absolute":Q.position||"absolute",top:X?Q.top??0:0,left:X?Q.left??0:0,right:X?Q.right??"auto":"auto",bottom:X?Q.bottom??"auto":"auto"})),[X,Q.position,Q.top,Q.left,Q.right,Q.bottom]),Ee=a.useMemo((()=>{ye.position;const e=(e,t)=>void 0!==e&&X?"number"==typeof e?e+"px":e:t>0&&X?t+"px":"100%",t=O??Q.width,a=R??Q.height;return{width:e(t,ee.width),height:e(a,ee.height)}}),[O,R,Q.width,Q.height,ye.position,ee.width,ee.height,X]),Ae=a.useMemo((()=>{const e=se.x,t=se.y,a=Math.abs(e),n=Math.abs(t),r=dr.CONSTANTS.GRADIENT;return{borderGradientAngle:r.BASE_ANGLE+e*r.ANGLE_MULTIPLIER,borderStop1:Math.max(r.BORDER_STOP_1.MIN,r.BORDER_STOP_1.BASE+t*r.BORDER_STOP_1.MULTIPLIER),borderStop2:Math.min(r.BORDER_STOP_2.MAX,r.BORDER_STOP_2.BASE+t*r.BORDER_STOP_2.MULTIPLIER),borderOpacities:[r.BORDER_OPACITY.BASE_1+a*r.BORDER_OPACITY.MULTIPLIER_LOW,r.BORDER_OPACITY.BASE_2+a*r.BORDER_OPACITY.MULTIPLIER_HIGH,r.BORDER_OPACITY.BASE_3+a*r.BORDER_OPACITY.MULTIPLIER_LOW,r.BORDER_OPACITY.BASE_4+a*r.BORDER_OPACITY.MULTIPLIER_HIGH],hoverPositions:{hover1:{x:r.CENTER_POSITION+e/r.HOVER_POSITION.DIVISOR_1,y:r.CENTER_POSITION+t/r.HOVER_POSITION.DIVISOR_1},hover2:{x:r.CENTER_POSITION+e/r.HOVER_POSITION.DIVISOR_2,y:r.CENTER_POSITION+t/r.HOVER_POSITION.DIVISOR_2},hover3:{x:r.CENTER_POSITION+e*r.HOVER_POSITION.MULTIPLIER_3,y:r.CENTER_POSITION+t*r.HOVER_POSITION.MULTIPLIER_3}},basePosition:{x:r.CENTER_POSITION+e*r.BASE_LAYER_MULTIPLIER,y:r.CENTER_POSITION+t*r.BASE_LAYER_MULTIPLIER},mx:e,my:t,absMx:a,absMy:n}}),[se.x,se.y]),Ne=Math.max(0,Math.min(1,oe?.opacity??.4)),Te=Math.max(0,Math.min(1,oe?.borderOpacity??1)),Ce=a.useMemo((()=>({hover1:Z||J?.5:0,hover2:J?.5:0,hover3:Z?.4:J?.8:0,base:be?Ne||.4:0,over:be?1.1*(Ne||.4):0})),[Z,J,be,Ne]),_e=a.useMemo((()=>{const e=dr.CONSTANTS.PALETTE.WHITE,t=dr.CONSTANTS.PALETTE.BLACK,{borderGradientAngle:a,borderStop1:n,borderStop2:r,borderOpacities:o,hoverPositions:i,basePosition:s,mx:l,my:c,absMx:d,absMy:u}=Ae;return{...void 0!==q&&{"--atomix-glass-base-z-index":q},"--atomix-glass-radius":te+"px","--atomix-glass-transform":le||"none","--atomix-glass-container-position":""+(X?ve.position:ye.position),"--atomix-glass-position":""+(X?ve.position:ye.position),"--atomix-glass-top":(X?Q.top??0:0)+"px","--atomix-glass-left":(X?Q.left??0:0)+"px","--atomix-glass-right":X?Q.right??"auto":"auto","--atomix-glass-bottom":X?Q.bottom??"auto":"auto","--atomix-glass-width":Ee.width,"--atomix-glass-height":Ee.height,"--atomix-glass-border-width":"var(--atomix-spacing-0-5, 0.125rem)","--atomix-glass-blend-mode":be?"multiply":"overlay","--atomix-glass-border-gradient-1":`linear-gradient(${a}deg, rgba(${e}, 0) 0%, rgba(${e}, ${(o[0]??1)*Te}) ${n}%, rgba(${e}, ${(o[1]??1)*Te}) ${r}%, rgba(${e}, 0) 100%)`,"--atomix-glass-border-gradient-2":`linear-gradient(${a}deg, rgba(${e}, 0) 0%, rgba(${e}, ${(o[2]??1)*Te}) ${n}%, rgba(${e}, ${(o[3]??1)*Te}) ${r}%, rgba(${e}, 0) 100%)`,"--atomix-glass-hover-1-opacity":Ce.hover1,"--atomix-glass-hover-1-gradient":be?`radial-gradient(circle at ${i.hover1.x}% ${i.hover1.y}%, rgba(${t}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_START}) 0%, rgba(${t}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_MID}) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_STOP}%, rgba(${t}, 0) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_END}%)`:`radial-gradient(circle at ${i.hover1.x}% ${i.hover1.y}%, rgba(${e}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_START}) 0%, rgba(${e}, 0) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_STOP}%)`,"--atomix-glass-hover-2-opacity":Ce.hover2,"--atomix-glass-hover-2-gradient":be?`radial-gradient(circle at ${i.hover2.x}% ${i.hover2.y}%, rgba(${t}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_START}) 0%, rgba(${t}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_MID}) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_STOP}%, rgba(${t}, 0) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_END}%)`:`radial-gradient(circle at ${i.hover2.x}% ${i.hover2.y}%, rgba(${e}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_START}) 0%, rgba(${e}, 0) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_STOP}%)`,"--atomix-glass-hover-3-opacity":Ce.hover3,"--atomix-glass-hover-3-gradient":be?`radial-gradient(circle at ${i.hover3.x}% ${i.hover3.y}%, rgba(${t}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_START}) 0%, rgba(${t}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_MID}) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_STOP}%, rgba(${t}, 0) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_END}%)`:`radial-gradient(circle at ${i.hover3.x}% ${i.hover3.y}%, rgba(${e}, ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_START}) 0%, rgba(${e}, 0) ${dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_STOP}%)`,"--atomix-glass-base-opacity":Ce.base,"--atomix-glass-base-gradient":be?`linear-gradient(${dr.CONSTANTS.BASE_GRADIENT.ANGLE}deg, rgba(${t}, ${dr.CONSTANTS.BASE_GRADIENT.BLACK_START_BASE+l*dr.CONSTANTS.BASE_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${t}, ${dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_BASE+c*dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_MULTIPLIER}) ${dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_STOP}%, rgba(${t}, ${dr.CONSTANTS.BASE_GRADIENT.BLACK_END_BASE+d*dr.CONSTANTS.BASE_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${e}, ${dr.CONSTANTS.BASE_GRADIENT.WHITE_OPACITY})`,"--atomix-glass-overlay-opacity":Ce.over,"--atomix-glass-overlay-gradient":be?`radial-gradient(circle at ${s.x}% ${s.y}%, rgba(${t}, ${dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_BASE+d*dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${t}, ${dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID}) ${dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID_STOP}%, rgba(${t}, ${dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_BASE+u*dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${e}, ${dr.CONSTANTS.OVERLAY_GRADIENT.WHITE_OPACITY})`,"--atomix-glass-overlay-highlight-opacity":Ce.over*dr.CONSTANTS.OVERLAY_HIGHLIGHT.OPACITY_MULTIPLIER,"--atomix-glass-overlay-highlight-bg":`radial-gradient(circle at ${dr.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_X}% ${dr.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_Y}%, rgba(255, 255, 255, ${dr.CONSTANTS.OVERLAY_HIGHLIGHT.WHITE_OPACITY}) 0%, transparent ${dr.CONSTANTS.OVERLAY_HIGHLIGHT.STOP}%)`}}),[Ae,Ce,te,le,Ee,be,Te,q,X,ye.position,ve.position,Q.top,Q.left,Q.right,Q.bottom]),Le=e=>t.jsx("div",{className:[dr.BACKGROUND_LAYER_CLASS,"dark"===e?dr.BACKGROUND_LAYER_DARK_CLASS:dr.BACKGROUND_LAYER_BLACK_CLASS,be?dr.BACKGROUND_LAYER_OVER_LIGHT_CLASS:dr.BACKGROUND_LAYER_HIDDEN_CLASS].filter(Boolean).join(" ")});return t.jsxs("div",{...V,ref:W,className:Se,style:{..._e},role:y||(b?"button":void 0),tabIndex:b?E??0:E,"aria-label":v,"aria-describedby":S,"aria-disabled":!(!b||!re)||!b&&void 0,"aria-pressed":void 0,onKeyDown:b?pe:void 0,children:[t.jsx(_r,{ref:$,contentRef:Y,className:m,style:{...Q},borderRadius:te,displacementScale:re?0:"shader"===f?n*dr.CONSTANTS.MULTIPLIERS.SHADER_DISPLACEMENT:be?n*dr.CONSTANTS.MULTIPLIERS.OVER_LIGHT_DISPLACEMENT:n,blurAmount:re?0:r,saturation:ne?dr.CONSTANTS.SATURATION.HIGH_CONTRAST:be?o*oe.saturationBoost:o,aberrationIntensity:re?0:"shader"===f?i*dr.CONSTANTS.MULTIPLIERS.SHADER_ABERRATION:i,glassSize:ee,padding:h,mouseOffset:re?{x:0,y:0}:se,globalMousePosition:re?{x:0,y:0}:ie,onMouseEnter:de,onMouseLeave:ue,onMouseDown:me,onMouseUp:he,isHovered:Z,isActive:J,overLight:be,overLightConfig:{contrast:oe.contrast,brightness:oe.brightness,shadowIntensity:oe.shadowIntensity,borderOpacity:oe.borderOpacity},onClick:b,mode:f,effectiveWithoutEffects:re,effectiveReducedMotion:ae,shaderVariant:x,withLiquidBlur:C,isFixedOrSticky:X,shaderTime:ce(),withTimeAnimation:k,animationSpeed:j,withMultiLayerDistortion:M,distortionOctaves:D,distortionLacunarity:P,distortionGain:B,distortionQuality:z,children:e}),!!b&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:dr.HOVER_1_CLASS}),t.jsx("div",{className:dr.HOVER_2_CLASS}),t.jsx("div",{className:dr.HOVER_3_CLASS})]}),Le("dark"),Le("black"),xe&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:dr.BASE_LAYER_CLASS}),t.jsx("div",{className:dr.OVERLAY_LAYER_CLASS}),t.jsx("div",{className:dr.OVERLAY_HIGHLIGHT_CLASS})]}),_&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:dr.BORDER_BACKDROP_CLASS}),t.jsx("span",{className:dr.BORDER_1_CLASS}),t.jsx("span",{className:dr.BORDER_2_CLASS})]}),w&&ge&&t.jsx(Zr,{metrics:ge,isVisible:!0,onClose:()=>{}})]})}));io.displayName="AtomixGlass";const so=a.memo(io),lo=()=>t.jsx("i",{className:"c-accordion__icon","aria-hidden":"true",children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}),co=a.forwardRef((({title:e,icon:a,iconPosition:n="right",isOpen:r,children:o,className:i="",...s},l)=>{const c=void 0===a?t.jsx(lo,{}):a;return t.jsxs("button",{ref:l,type:"button",className:i,...s,children:[e&&t.jsx("span",{className:"c-accordion__title",children:e}),o,c]})}));co.displayName="AccordionHeader";const uo=a.forwardRef((({children:e,className:n="",panelRef:r,contentRef:o,...i},s)=>{const l=a.useMemo((()=>function(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}(s,r)),[s,r]);return t.jsx("div",{ref:l,className:n,role:"region",...i,children:t.jsx("div",{className:fn.SELECTORS.BODY.replace(".",""),ref:o,children:e})})}));uo.displayName="AccordionBody";const mo=a.memo((({title:e,children:n,defaultOpen:r=!1,isOpen:o,onOpenChange:i,disabled:s=!1,iconPosition:l="right",icon:c,className:d="",style:u,glass:m})=>{const h=a.useId(),p="accordion-header-"+h,g="accordion-panel-"+h,{state:f,toggle:b,updatePanelHeight:x,panelRef:v,contentRef:S,generateClassNames:y,generateHeaderClassNames:E}=ur({defaultOpen:r,disabled:s,iconPosition:l,isOpen:o,onOpenChange:i}),A=E(),N=fn.SELECTORS.PANEL.replace(".",""),T=a.Children.toArray(n).some((e=>{var t;return a.isValidElement(e)&&sn(t=["AccordionHeader","AccordionBody"]).call(t,e.type.displayName||"")})),C=t.jsx("div",{className:y(d)+(m?" c-accordion--glass":""),style:u,children:T?a.Children.map(n,(e=>{if(a.isValidElement(e)){const t=e.props;if("AccordionHeader"===e.type.displayName)return a.cloneElement(e,{id:p,className:`${A} ${t.className||""}`.trim(),onClick:e=>{b(),t?.onClick?.(e)},"aria-expanded":f.isOpen,"aria-controls":g,"aria-disabled":s,disabled:s,iconPosition:t.iconPosition||l});if("AccordionBody"===e.type.displayName)return a.cloneElement(e,{id:g,className:`${N} ${t.className||""}`.trim(),"aria-labelledby":p,panelRef:v,contentRef:S})}return e})):t.jsxs(t.Fragment,{children:[t.jsx(co,{id:p,className:A,onClick:b,"aria-expanded":f.isOpen,"aria-controls":g,"aria-disabled":s,disabled:s,title:e,icon:c,iconPosition:l}),t.jsx(uo,{id:g,className:N,"aria-labelledby":p,panelRef:v,contentRef:S,children:n})]})});if(m){const e={displacementScale:20,elasticity:0},a=!0===m?e:{...e,...m};return t.jsx(so,{...a,children:C})}return C}));mo.displayName="Accordion";const ho=mo;ho.Header=co,ho.Body=uo;const po=ho,go=({height:e=24,width:a=24,color:n="currentColor",...r})=>t.jsxs("svg",{width:a,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[t.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",fill:n}),t.jsx("path",{d:"M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z",fill:n})]}),fo=8e-4,bo=4096,xo=(e,t,a)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof a)return 0;const n=Math.max(0,Math.min(1,(a-e)/(t-e)));return n*n*(3-2*n)},vo=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const a=Math.max(Math.abs(e),Math.abs(t));if(0===a)return 0;const n=e/a,r=t/a;return a*Math.sqrt(n*n+r*r)},So=(e,t,a,n,r)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof a||"number"!=typeof n||"number"!=typeof r)return 0;const o=Math.abs(e)-a+r,i=Math.abs(t)-n+r;return Math.min(Math.max(o,i),0)+vo(Math.max(o,0),Math.max(i,0))-r},yo=(e,t)=>({x:"number"!=typeof e||isNaN(e)?.5:Math.max(0,Math.min(1,e)),y:"number"!=typeof t||isNaN(t)?.5:Math.max(0,Math.min(1,t))}),Eo=e=>e&&"number"==typeof e.x&&"number"==typeof e.y&&!isNaN(e.x)&&!isNaN(e.y),Ao=(e,t,a)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof a||isNaN(e)?t:isNaN(t)?0:isNaN(a)?1:Math.max(t,Math.min(a,e)),No=e=>{if("number"!=typeof e||isNaN(e))return 0;const t=Math.max(0,Math.min(1,e));return.5>t?4*t*t*t:1-Math.pow(-2*t+2,3)/2},To=e=>"number"!=typeof e||isNaN(e)?0:1-Math.pow(1-Math.max(0,Math.min(1,e)),4),Co=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const a=255&Math.floor(e),n=255&Math.floor(t),r=e-Math.floor(e),o=t-Math.floor(t),i=No(r),s=No(o),l=(e,t)=>{if("number"!=typeof e||"number"!=typeof t)return 0;const a=43758.5453*Math.sin(12.9898*(e+57*t)+78.233);return a-Math.floor(a)},c=l(a,n),d=l(a+1,n),u=l(a,n+1),m=c+i*(d-c);return m+s*(u+i*(l(a+1,n+1)-u)-m)},_o=(e,t,a=4)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const n=Math.max(1,Math.min(8,Math.floor(a)));let r=0,o=.5,i=1;for(let s=0;n>s;s++)r+=o*Co(e*i,t*i),i*=2,o*=.5;return r},Lo=(e,t,a,n=0,r=0)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof a||"number"!=typeof n||"number"!=typeof r||isNaN(e)||isNaN(t)||isNaN(a)||isNaN(n)||isNaN(r))return{x:0,y:0};const o=Math.min(.02*a,.1);return{x:(e-n)*o,y:(t-r)*o}},wo={liquidGlass:(e,t)=>{if(!Eo(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,r=Date.now()*fo,o=t&&Eo(t)?t.x-.5:0,i=t&&Eo(t)?t.y-.5:0,s=vo(o,i),l=To(1-Math.min(2*s,1)),c=_o(12*(a+.5*o)+r,12*(n+.5*i)+.7*r,3)-.5,d=So(a,n,.4,.3,.35),u=xo(.8,0,d-.05),m=((e,t,a)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t)||isNaN(a))return{x:0,y:0};const n=vo(e,t),r=Math.pow(Math.min(n,10),2)*a;return{x:e*(1+r),y:t*(1+r)}})(a,n,.4*.1),h=1.2*(m.x-a)*u,p=1.2*(m.y-n)*u,g=.018*Math.sin(8*(a+2*o)+2*r),f=.018*Math.cos(8*(n+2*i)+1.5*r),b=(.015*Math.sin(12*(a-o)+12*(n-i)+3*r)+.012*Math.cos(10*(a+o)-10*(n-i)-2*r))*l*s,x=(Math.sin(15*a+r)*Math.cos(15*n-r)*.008+Math.sin(20*a-.5*r)*Math.cos(20*n+.5*r)*.006)*u,v=.85*(g+f+.025*c),S=h+v+b+x,y=p+.8*v+.9*b+x,E=((e,t,a)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(a))return{x:0,y:0};const n=vo(e,t);if(0===n)return{x:0,y:0};const r=Math.atan2(t,e);return{x:Math.cos(r)*n*a,y:Math.sin(r)*n*a}})(a,n,.015*u),A=xo(0,1,1.15*u),N=a+S+.5*E.x,T=n+y+.5*E.y;return yo(Ao(N*A+.5,0,1),Ao(T*A+.5,0,1))},appleFluid:(e,t)=>{if(!Eo(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,r=Date.now()*fo*.6,o=t&&Eo(t)?t.x-.5:0,i=t&&Eo(t)?t.y-.5:0,s=vo(o,i),l=To(1-Math.min(1.5*s,1)),c=_o(10*(a+.3*o)+r,10*(n+.3*i),5)-.5,d=_o(10*(a-.3*o),10*(n-.3*i)+.8*r,5)-.5,u=So(a,n,.42,.32,.38),m=xo(.85,-.1,u),h=Math.sin(6*a+2*r)*Math.cos(4*n-r)*.025,p=Math.cos(4*a-r)*Math.sin(6*n+2*r)*.025,g=Math.atan2(n-i,a-o),f=l*s*.08,b=Math.cos(g+r)*f,x=n+(.035*d+p+Math.sin(g+r)*f)*m;return yo(Ao(a+(.035*c+h+b)*m+.5,0,1),Ao(x+.5,0,1))},premiumGlass:(e,t)=>{if(!Eo(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,r=Date.now()*fo*.4,o=t&&Eo(t)?t.x-.5:0,i=t&&Eo(t)?t.y-.5:0,s=vo(o,i),l=vo(a,n),c=.3*Math.pow(Math.min(l,1),1.5),d=Math.atan2(n,a);let u=0,m=0;for(let v=0;3>v;v++){const e=5*(v+1),t=r*(1+.3*v),o=.01/(v+1);u+=Math.sin(a*e+t)*o,m+=Math.cos(n*e-t)*o}const h=Math.cos(d)*c*(1+.5*s),p=Math.sin(d)*c*(1+.5*s),g=_o(8*a+r,8*n-r,2)-.5,f=So(a,n,.43,.33,.36),b=xo(.9,-.05,f),x=n+(p+m+.015*g)*b;return yo(Ao(a+(h+u+.015*g)*b+.5,0,1),Ao(x+.5,0,1))},liquidMetal:(e,t)=>{if(!Eo(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,r=Date.now()*fo*1.2,o=t&&Eo(t)?t.x-.5:0,i=t&&Eo(t)?t.y-.5:0,s=Math.sin(20*a+4*r)*Math.cos(15*n-3*r)*.02,l=Math.cos(15*a-2*r)*Math.sin(20*n+5*r)*.015,c=.025*_o(25*a+2*r,25*n-2*r,4),d=Math.atan2(n-i,a-o),u=vo(a-o,n-i),m=.02*Math.sin(15*u-6*r)*To(1-Math.min(2*u,1)),h=So(a,n,.41,.31,.37),p=xo(.88,-.08,h),g=a+(s+c+Math.cos(d)*m)*p,f=n+(l+.8*c+Math.sin(d)*m)*p;return yo(Ao(g+.5,0,1),Ao(f+.5,0,1))},basiBasi:(e,t)=>{if(!Eo(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,r=Date.now()*fo*.5,o=t&&Eo(t)?t.x-.5:0,i=t&&Eo(t)?t.y-.5:0,s=vo(o,i),l=To(1-Math.min(1.2*s,1)),c=((e,t,a,n=1)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof a||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(a)||isNaN(n)?.5:.5*(Math.sin(8*e+2*a)*Math.cos(8*t-2*a)*.5+Math.sin(8*(e+.5)*1.3-2*a*.8)*Math.cos(8*(t-.3)*1.3+2*a*.8)*.3+Math.sin(8*(e-.3)*.7+2*a*1.2)*Math.cos(8*(t+.4)*.7-2*a*1.2)*.2+1)*n)(a,n,r,.8),d=.02*(c-.5),u=Math.atan2(n,a),m=((e,t,a)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(a)||isNaN(.025))return{r:{x:0,y:0},g:{x:0,y:0},b:{x:0,y:0}};const n=vo(e,t),r=Math.min(.025*n,1),o=.8*r,i=1*r,s=1.2*r;return{r:{x:Math.cos(a)*o,y:Math.sin(a)*o},g:{x:Math.cos(a)*i,y:Math.sin(a)*i},b:{x:Math.cos(a)*s,y:Math.sin(a)*s}}})(a,n,u),h=(m.r.x+m.g.x+m.b.x)/3,p=(m.r.y+m.g.y+m.b.y)/3;let g=0,f=0;for(let H=0;7>H;H++){const e=Lo(a,n,(H+1)/7,o,i),t=_o((a+e.x)*(8+2*H)+r*(.5+.1*H),(n+e.y)*(8+2*H)-r*(.5+.1*H),3)-.5,s=1/(H+1);g+=(e.x+.01*t)*s,f+=(e.y+.01*t)*s}g/=7,f/=7;const b=((e,t,a,n)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(.5)||isNaN(n)?.5:_o(5*e+.5*n,5*t-.5*n,3)*Math.exp(-1)*.5+.5)(a,n,0,r),x=Math.cos(u)*b*.015,v=Math.sin(u)*b*.015,S=((e,t,a,n=5)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof a||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(a)||isNaN(n))return 0;const r=Math.max(1,Math.min(8,Math.floor(n)));let o=0,i=1,s=1;for(let l=0;r>l;l++)o+=Math.abs(Co(e*s+a,t*s-a))*i,s*=2,i*=.5;return o})(6*a,6*n,r,6),y=.012*Math.cos(S*Math.PI*2),E=.012*Math.sin(S*Math.PI*2),A=((e,t,a)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(a)?.5:.5*(.7*_o(40*e+.3*a,40*t-.3*a,6)+.3*_o(80*e,80*t,4)))(a,n,r),N=.008*(A-.5),T=.008*(A-.5),C=vo(a,n),_=.35*Math.pow(Math.min(C,1),1.8)*(1+l*s*.8),L=Math.cos(u)*_,w=Math.sin(u)*_,I=Math.atan2(n-i,a-o),R=vo(a-o,n-i),O=l*Math.sin(10*R-3*r)*.025,k=Math.cos(I+2*r)*O,j=Math.sin(I+2*r)*O,M=Math.sin(10*a+5*o+2.5*r)*Math.cos(8*n-2*r)*.018,D=Math.cos(8*a-2*r)*Math.sin(10*n+5*i+2.5*r)*.018,P=(.012*Math.sin(15*Math.min(C,10)-4*r)+.008*Math.cos(20*Math.min(C,10)+3*r))*l,B=Math.cos(u)*P,z=Math.sin(u)*P,F=So(a,n,.44,.34,.39),U=xo(.92,-.12,F),G=xo(.85,.1,F),V=n+(1.2*w+.8*p+1.5*f+.9*v+1*E+.6*T+1.3*j+1.1*D+.7*z+.8*d)*U*G*.85;return yo(Ao(a+(1.2*L+.8*h+1.5*g+.9*x+1*y+.6*N+1.3*k+1.1*M+.7*B+d)*U*G*.85+.5,0,1),Ao(V+.5,0,1))},plasma:(e,t)=>wo.premiumGlass(e,t),waves:(e,t)=>wo.liquidMetal(e,t),noise:(e,t)=>wo.appleFluid(e,t)};var Io=Object.freeze({__proto__:null,ShaderDisplacementGenerator:class{constructor(e){if(this.options=e,this.canvasDPI=1,!this.validateOptions(e))throw Error("Invalid shader options provided");this.canvas=document.createElement("canvas"),this.canvas.width=Math.max(1,Math.min(bo,Math.round(e.width*this.canvasDPI||256))),this.canvas.height=Math.max(1,Math.min(bo,Math.round(e.height*this.canvasDPI||256))),this.canvas.style.display="none";const t=this.canvas.getContext("2d");if(!t)throw Error("AtomixGlass: Could not get 2D canvas context");this.context=t}validateOptions(e){try{return e&&"number"==typeof e.width&&e.width>0&&e.width<=bo&&"number"==typeof e.height&&e.height>0&&e.height<=bo&&"function"==typeof e.fragment}catch(t){return!1}}updateShader(e){try{const t=this.options.width*this.canvasDPI,a=this.options.height*this.canvasDPI;let n=0;const r=[];for(let l=0;a>l;l++)for(let o=0;t>o;o++){const i={x:o/t,y:l/a},s=this.options.fragment(i,e);let c=s.x*t-o,d=s.y*a-l;const u=Math.min(2*Math.min(o/t,(t-o)/t),2*Math.min(l/a,(a-l)/a));c*=xo(0,.2,u),d*=xo(0,.2,u),n=Math.max(n,Math.abs(c),Math.abs(d)),r.push(c,d)}n=Math.max(n,1);const o=this.context.createImageData(t,a),i=o.data;let s=0;for(let e=0;a>e;e++)for(let o=0;t>o;o++){const l=r[s++]||0,c=r[s++]||0,d=Math.min(1,Math.min(o,e,t-o-1,a-e-1)/2),u=l*d/n+.5,m=c*d/n+.5,h=4*(e*t+o);i[h]=Ao(255*u,0,255),i[h+1]=Ao(255*m,0,255),i[h+2]=Ao(255*m,0,255),i[h+3]=255}return this.context.putImageData(o,0,0),this.canvas.toDataURL()}catch(t){return""}}destroy(){try{this.context&&this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.canvas.width=0,this.canvas.height=0,this.canvas.remove()}catch(e){}}getScale(){return this.canvasDPI}},createFBMEngine:Rr,fragmentShaders:wo,liquidGlassWithTime:kr});const Ro={xs:16,sm:20,md:24,lg:32,xl:40},Oo=({name:e,size:a="md",weight:n="regular",color:r,className:o="",style:s,alt:l})=>{const c=i[e];if(!c)return null;const d="string"==typeof a?Ro[a]||24:a;return t.jsx("span",{className:`c-icon c-icon--${a} ${o}`,style:s,"aria-hidden":!l,title:l,children:t.jsx(c,{size:d,weight:n,color:r,"aria-label":l})})};Oo.displayName="Icon";const ko=a.memo((({src:e,alt:n="User avatar",initials:r,icon:o,size:i="md",circle:s=!1,className:l="",disabled:c=!1,onClick:d,style:u,glass:m})=>{const[h,p]=a.useState(!1),g=[qn.CLASSES.BASE,"md"!==i&&"c-avatar--"+i,s&&qn.CLASSES.CIRCLE,c&&"is-disabled",l].filter(Boolean).join(" ");return t.jsx("div",{className:g,onClick:d?e=>{!c&&d&&d(e)}:void 0,role:d?"button":void 0,tabIndex:d&&!c?0:void 0,"aria-disabled":c||void 0,style:u,children:e&&!h?t.jsx("img",{src:e,alt:n,className:"c-avatar__image",onError:()=>{p(!0)}}):r?t.jsx("span",{className:"c-avatar__initials",children:r}):o?t.jsx("span",{className:"c-avatar__icon",children:o}):t.jsx("span",{className:"c-avatar__icon",children:t.jsx(Oo,{name:"User",size:"xs"===i?"xs":"sm"===i?"sm":"md"})})})}));ko.displayName="Avatar";const jo=({children:e,max:n,stacked:r=!1,className:o="",style:i,moreText:s})=>{const l=[Qn.CLASSES.BASE,r&&Qn.CLASSES.STACKED,o].filter(Boolean).join(" "),c=a.Children.toArray(e).filter((e=>a.isValidElement(e)&&e.type===ko)),d=void 0!==n&&c.length>n,u=d?c.slice(0,n):c,m=c.length-(n||0),h=a.isValidElement(c[0])?c[0].props:null,p=h?.size||"md",g=h?.circle||!1,f=[qn.CLASSES.BASE,Qn.CLASSES.MORE,"md"!==p&&"c-avatar--"+p,g&&"c-avatar--circle"].filter(Boolean).join(" ");return t.jsxs("div",{className:l,style:i,children:[u.map(((e,t)=>a.isValidElement(e)?a.cloneElement(e,{key:t,...e.props}):null)),d&&t.jsx("div",{className:f,children:s||"+"+m})]})};function Mo(e){const t={variant:"primary",size:"md",disabled:!1,...e};return{defaultProps:t,generateBadgeClass:e=>{const{variant:a=t.variant,size:n=t.size,disabled:r=t.disabled,className:o=""}=e;return`${bn.BASE_CLASS} ${a?`${bn.VARIANT_PREFIX}${a}`:""} ${"md"===n?"":`${bn.SIZE_PREFIX}${n}`} ${r?"c-badge--disabled":""} ${o}`.trim()}}}jo.displayName="AvatarGroup";const Do=a.memo((({label:e,variant:n="primary",size:r="md",disabled:o=!1,icon:i,onRemove:s,"aria-label":l,className:c="",glass:d,style:u})=>{const{generateBadgeClass:m}=Mo({variant:n,size:r,disabled:o}),h=a.useRef(null),p=m({variant:n,size:r,disabled:o,className:`${c} ${d?"c-badge--glass":""}`.trim()}),g=t.jsxs("span",{className:p,"aria-disabled":o,"aria-label":l,ref:h,style:u,children:[i&&t.jsx("span",{className:bn.ICON_CLASS,children:i}),t.jsx("span",{children:e}),s&&t.jsx("button",{type:"button",className:"c-badge__close",onClick:s,"aria-label":"Remove badge",disabled:o,children:"×"})]});if(d){const e={displacementScale:20,borderRadius:h.current?.getBoundingClientRect().width?h.current?.getBoundingClientRect().width/2:16,className:"c-badge--glass",elasticity:0},a=!0===d?e:{...e,...d};return t.jsx(so,{...a,children:g})}return g}));Do.displayName="Badge";const Po=a.forwardRef((({children:e,className:a="",type:n,...r},o)=>{let i="o-container";return n&&(i="o-container-"+n),t.jsx("div",{ref:o,className:`${i} ${a}`.trim(),...r,children:e})}));Po.displayName="Container";const Bo=()=>({generateBlockClass:({spacing:e=lr.SPACING.DEFAULT,background:t="",fullWidth:a=!1,className:n=""})=>{const r=[lr.BASE_CLASS];if(e&&"none"!==e&&r.push(`${lr.SPACING_PREFIX}${e}`),t){const e=lr.CLASSES["BG_"+t.toUpperCase()];e&&r.push(e)}return a&&r.push(lr.CLASSES.FULL_WIDTH),n&&r.push(n),r.filter(Boolean).join(" ")}}),zo=a.forwardRef((({children:e,as:a="section",spacing:n="md",container:r={},fullWidth:o=!1,className:i="",style:s,background:l="",...c},d)=>{const{generateBlockClass:u}=Bo(),m=u({spacing:n,background:l,fullWidth:o,className:i});return t.jsx(a,{ref:d,className:m,style:s,...c,children:o?e:t.jsx(Po,{type:r.type,className:r.className,children:e})})}));zo.displayName="Block";const Fo=a.forwardRef((({children:e,href:a,active:n,icon:r,onClick:o,className:i="",style:s,linkAs:l,linkProps:c={},...d},u)=>{const m=[Sn.CLASSES.ITEM,n?Sn.CLASSES.ACTIVE:"",i].filter(Boolean).join(" "),h=t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"c-breadcrumb__icon",children:r}),e]}),p={className:Sn.CLASSES.LINK,onClick:o,style:s,...c},g=l;return t.jsx("li",{ref:u,className:m,style:s,...d,children:a&&!n?l&&g?t.jsx(g,{href:a,to:a,...p,children:h}):t.jsx("a",{href:a,...p,children:h}):t.jsx("span",{className:Sn.CLASSES.LINK,children:h})})}));Fo.displayName="BreadcrumbItem";const Uo=a.memo((function({items:e,divider:n,className:r="","aria-label":o="Breadcrumb",linkComponent:i,style:s,children:l}){const c=[Sn.CLASSES.BASE,r].filter(Boolean).join(" ");let d;if(e&&e.length>0)d=e.map(((a,n)=>{const r=n===e.length-1;return t.jsx(Fo,{href:a.href,active:a.active||r,icon:a.icon,onClick:a.onClick,className:a.className,style:a.style,linkAs:i,children:a.label},n)}));else{const e=a.Children.count(l);d=a.Children.map(l,((t,n)=>{if(a.isValidElement(t)){const r=n===e-1,{active:o,linkAs:s,...l}=t.props,c={active:o??(!!r||void 0),linkAs:s??i};return a.cloneElement(t,c)}return t}))}return t.jsx("nav",{"aria-label":o,style:s,children:t.jsx("ol",{className:c,children:d})})}));function Go(e){const t={variant:"primary",size:"md",fullscreen:!1,...e};return{defaultProps:t,generateSpinnerClass:e=>{const{variant:a=t.variant,size:n=t.size,fullscreen:r=t.fullscreen,className:o=""}=e,i="c-spinner";return`${i} ${a?`${i}--${a}`:""} ${"md"!==n?`${i}--${n}`:""} ${r?i+"--fullscreen":""} ${o}`.trim()}}}Uo.displayName="Breadcrumb",Uo.Item=Fo;const Vo=a.memo(a.forwardRef((({size:e="md",variant:a="primary",fullscreen:n=!1,className:r="",style:o,glass:i,"aria-label":s,role:l="status","aria-live":c="polite","aria-describe":d,...u},m)=>{const{generateSpinnerClass:h}=Go({size:e,variant:a,fullscreen:n}),p=h({size:e,variant:a,fullscreen:n,className:`${r} ${i?"c-spinner--glass":""}`.trim()}),g=t.jsx("div",{ref:m,className:p,style:o,role:l,"aria-label":s||"Loading","aria-live":c,"aria-describe":d,...u,children:t.jsx("span",{className:wn.VISUALLY_HIDDEN,children:s||"Loading content..."})});if(i){const e={displacementScale:20,blurAmount:1,borderRadius:999,mode:"shader"},a=!0===i?e:{...e,...i};return t.jsx(so,{...a,children:g})}return g})));Vo.displayName="Spinner";class Ho{static setPrefix(e){this.prefix=e}static getPrefix(){return this.prefix}static camelToKebab(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}static kebabToCamel(e){return e.replace(/-([a-z])/g,(e=>e[1]?.toUpperCase()??""))}static cssVar(e){return`--${this.prefix}-${this.camelToKebab(e)}`}static bemClass(e,t,a){let n="c-"+e;return t&&(n+="__"+t),a&&(n+="--"+a),n}static variantClass(e,t){return`c-${e}--${t}`}static sizeClass(e,t){return`c-${e}--${t}`}static stateClass(e,t){return`c-${e}--${t}`}static utilityClass(e){return"u-"+e}static layoutClass(e){return"l-"+e}static objectClass(e){return"o-"+e}}Ho.prefix="atomix";var $o=Oe,Yo=We,Ko=q,Wo=_a,qo=TypeError,Qo="Reduce of empty array with no initial value",Xo=function(e){return function(t,a,n,r){var o=Yo(t),i=Ko(o),s=Wo(o);if($o(a),0===s&&2>n)throw new qo(Qo);var l=e?s-1:0,c=e?-1:1;if(2>n)for(;;){if(l in i){r=i[l],l+=c;break}if(l+=c,e?0>l:l>=s)throw new qo(Qo)}for(;e?l>=0:s>l;l+=c)l in i&&(r=a(r,i[l],l,o));return r}},Zo={left:Xo(!1),right:Xo(!0)},Jo=c,ei=x,ti=me,ai=_,ni=function(e){return ti.slice(0,e.length)===e},ri=ni("Bun/")?"BUN":ni("Cloudflare-Workers")?"CLOUDFLARE":ni("Deno/")?"DENO":ni("Node.js/")?"NODE":ei.Bun&&"string"==typeof Bun.version?"BUN":ei.Deno&&"object"==typeof Deno.version?"DENO":"process"===ai(ei.process)?"NODE":ei.window&&ei.document?"BROWSER":"REST",oi=Zo.left;ba({target:"Array",proto:!0,forced:!("NODE"===ri)&&ve>79&&83>ve||!function(){var e=[].reduce;return!!e&&Jo((function(){e.call(null,(function(){return 1}),1)}))}()},{reduce:function(e){var t=arguments.length;return oi(this,e,t,t>1?arguments[1]:void 0)}});var ii=ja("Array","reduce"),si=f,li=ii,ci=Array.prototype,di=l((function(e){var t=e.reduce;return e===ci||si(ci,e)&&t===ci.reduce?li:t}));function ui(e,n,r){if(!e)return r;if(a.isValidElement(e)||"string"==typeof e||"number"==typeof e)return e;if("object"==typeof e&&null!==e){const a=e;if(a.render&&"function"==typeof a.render)return a.render(n);if(a.component){const e=a.component;return t.jsx(e,{...n})}if(void 0!==a.children)return a.children}return r}const mi=a.memo(a.forwardRef((({label:e,children:n,onClick:r,variant:o="primary",size:i="md",disabled:s=!1,loading:l=!1,loadingText:c,icon:d,iconName:u,iconSize:m="sm",iconPosition:h="start",iconOnly:p=!1,rounded:g=!1,fullWidth:f=!1,block:b=!1,active:x=!1,selected:v=!1,type:S="button",className:y="",as:E="button",href:A,target:N,glass:T,onHover:C,onFocus:_,onBlur:L,"aria-label":w,"aria-describedby":I,"aria-expanded":R,"aria-controls":O,tabIndex:k,style:j,linkComponent:M,slots:D,...P},B)=>{const z=s||l,F=!!A,U=u?t.jsx(Oo,{name:u,size:m}):d,G=[hn.BASE_CLASS,Ho.variantClass(un.BUTTON_PREFIX,o),"md"!==i?Ho.sizeClass(un.BUTTON_PREFIX,i):"",p?Ho.stateClass(un.BUTTON_PREFIX,un.ICON_ELEMENT):"",g?Ho.stateClass(un.BUTTON_PREFIX,"rounded"):"",z?Ho.stateClass(un.BUTTON_PREFIX,"disabled"):"",T?Ho.stateClass(un.BUTTON_PREFIX,"glass"):"",l?hn.CLASSES.LOADING:"",f?hn.CLASSES.FULL_WIDTH:"",b?hn.CLASSES.BLOCK:"",x?hn.CLASSES.ACTIVE:"",v?hn.CLASSES.SELECTED:"",y].filter(Boolean).join(" "),V=a.useCallback((e=>{z?e.preventDefault():r?.(e)}),[z,r]),H=a.useCallback((e=>{z||C?.(e)}),[z,C]),$=a.useCallback((e=>{z||_?.(e)}),[z,_]),Y=a.useCallback((e=>{z||L?.(e)}),[z,L]),K=l&&c?c:e||n,W="sm"===i?"sm":"lg"===i?"md":"sm",q=w||(p?"string"==typeof e?e:"string"==typeof n?n:void 0:void 0),Q=t.jsxs(t.Fragment,{children:[l&&t.jsx("span",{className:Ho.bemClass(un.BUTTON_PREFIX,un.SPINNER_ELEMENT),"aria-hidden":"true",children:ui(D?.spinner,{className:Ho.bemClass(un.BUTTON_PREFIX,un.SPINNER_ELEMENT),size:W,variant:"link"===o||"string"==typeof o&&o.startsWith("outline-")?"primary":"danger"===o?"error":o},t.jsx(Vo,{size:W,variant:"link"===o||"string"==typeof o&&o.startsWith("outline-")?"primary":"danger"===o?"error":o}))}),U&&!l&&t.jsx("span",{className:Ho.bemClass(un.BUTTON_PREFIX,un.ICON_ELEMENT),"aria-hidden":"true",children:ui(D?.icon,{className:Ho.bemClass(un.BUTTON_PREFIX,un.ICON_ELEMENT),children:U,size:m},U)}),!p&&K&&t.jsx("span",{className:Ho.bemClass(un.BUTTON_PREFIX,un.LABEL_ELEMENT),children:ui(D?.label,{className:Ho.bemClass(un.BUTTON_PREFIX,un.LABEL_ELEMENT),children:K},K)})]}),X={className:G,onClick:V,onMouseEnter:C?H:void 0,onFocus:_?$:void 0,onBlur:L?Y:void 0,"aria-disabled":z,"aria-busy":l,"aria-label":q,"aria-describedby":I,"aria-expanded":R,"aria-controls":O,tabIndex:void 0!==k?k:z?-1:0,style:j,...P},Z=ui(D?.root,{className:G,children:Q,disabled:z,loading:l,onClick:V,type:S,"aria-label":q,"aria-disabled":z,"aria-busy":l},(()=>{if(F){if(M){const e=M,a={...X,ref:B,href:z?void 0:A,to:z?void 0:A,target:N,rel:"_blank"===N?"noopener noreferrer":void 0};return t.jsx(e,{...a,children:Q})}return t.jsx("a",{...X,ref:B,href:z?void 0:A,target:N,rel:"_blank"===N?"noopener noreferrer":void 0,children:Q})}return t.jsx(E,{...X,ref:B,type:"button"===E?S:void 0,disabled:z,children:Q})})());if(T){const e={displacementScale:20,blurAmount:0,saturation:200,elasticity:0},a=!0===T?e:{...e,...T};return t.jsx(so,{...a,children:Z})}return Z})));mi.displayName="Button";const hi=({children:e,className:n="",style:r,"aria-label":o,role:i="group"})=>{const s=[pn.CLASSES.BASE,n].filter(Boolean).join(" "),l=a.Children.toArray(e).filter((e=>a.isValidElement(e)&&e.type===mi));return t.jsx("div",{className:s,style:r,role:i,"aria-label":o,children:l.map(((e,t)=>a.isValidElement(e)?a.cloneElement(e,{key:t,...e.props}):null))})};hi.displayName="ButtonGroup";const pi=a.forwardRef((({children:e,className:a="",...n},r)=>t.jsx("div",{ref:r,className:("c-callout__icon "+a).trim(),...n,children:e})));pi.displayName="CalloutIcon";const gi=a.forwardRef((({children:e,className:a="",...n},r)=>t.jsx("div",{ref:r,className:("c-callout__message "+a).trim(),...n,children:e})));gi.displayName="CalloutMessage";const fi=a.forwardRef((({children:e,className:a="",...n},r)=>t.jsx("div",{ref:r,className:("c-callout__title "+a).trim(),...n,children:e})));fi.displayName="CalloutTitle";const bi=a.forwardRef((({children:e,className:a="",...n},r)=>t.jsx("div",{ref:r,className:("c-callout__text "+a).trim(),...n,children:e})));bi.displayName="CalloutText";const xi=a.forwardRef((({children:e,className:a="",...n},r)=>t.jsx("div",{ref:r,className:("c-callout__actions "+a).trim(),...n,children:e})));xi.displayName="CalloutActions";const vi=a.forwardRef((({onClick:e,className:a="",...n},r)=>t.jsx("button",{ref:r,className:("c-callout__close-btn "+a).trim(),onClick:e,"aria-label":"Close",...n,children:t.jsx(Oo,{name:"X",size:"md"})})));vi.displayName="CalloutCloseButton";const Si=a.forwardRef((({children:e,className:a="",...n},r)=>t.jsx("div",{ref:r,className:("c-callout__content "+a).trim(),...n,children:e})));Si.displayName="CalloutContent";const yi=({title:e,children:n,icon:r,variant:o="primary",onClose:i,actions:s,compact:l=!1,isToast:c=!1,glass:d,className:u,style:m,...h})=>{const{generateCalloutClass:p,handleClose:g}=function(e){const t={variant:"primary",compact:!1,isToast:!1,glass:!1,...e};return{defaultProps:t,generateCalloutClass:e=>{const{variant:a=t.variant,compact:n=t.compact,isToast:r=t.isToast,glass:o=t.glass,className:i=""}=e;return`c-callout ${a?"c-callout--"+a:""} ${n?"c-callout--compact":""} ${r?"c-callout--toast":""} ${o?"c-callout--glass":""} ${i}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:o,compact:l,isToast:c,glass:d,className:u,style:m}),f=()=>{var e,t;const a={role:"region"};return c?(a.role="alert",a["aria-live"]="polite"):sn(e=["warning","error"]).call(e,o)?(a.role="alert",a["aria-live"]="assertive"):sn(t=["info","success"]).call(t,o)&&(a.role="status",a["aria-live"]="polite"),a},b=a.Children.toArray(n).some((e=>{var t;return a.isValidElement(e)&&sn(t=["CalloutIcon","CalloutMessage","CalloutTitle","CalloutText","CalloutActions","CalloutContent"]).call(t,e.type.displayName||"")}))?n:t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"c-callout__content",children:[r&&t.jsx("div",{className:"c-callout__icon",children:r}),t.jsxs("div",{className:"c-callout__message",children:[e&&t.jsx("div",{className:"c-callout__title",children:e}),n&&t.jsx("div",{className:"c-callout__text",children:n})]})]}),s&&t.jsx("div",{className:"c-callout__actions",children:s}),i&&t.jsx("button",{className:"c-callout__close-btn",onClick:g(i),"aria-label":"Close",children:t.jsx(Oo,{name:"X",size:"md"})})]});if(d){const e={displacementScale:30,borderRadius:8,elasticity:0},a=!0===d?e:{...e,...d};return t.jsx("div",{className:p({variant:o,compact:l,isToast:c,glass:d,className:u}),...f(),...h,style:m,children:t.jsx(so,{...a,children:t.jsx("div",{className:"c-callout__glass-content",style:{borderRadius:a.borderRadius},children:b})})})}return t.jsx("div",{className:p({variant:o,compact:l,isToast:c,glass:d,className:u}),...f(),...h,style:m,children:b})},Ei=a.memo(yi);Ei.displayName="Callout",Ei.Icon=pi,Ei.Message=gi,Ei.Title=fi,Ei.Text=bi,Ei.Actions=xi,Ei.CloseButton=vi,Ei.Content=Si;const Ai=a.forwardRef((({title:e,subtitle:a,action:n,icon:r,children:o,className:i="",...s},l)=>{const c=`${Yn.SELECTORS.HEADER.substring(1)} ${i}`.trim();return t.jsxs("div",{ref:l,className:c,...s,children:[r&&t.jsx("div",{className:Yn.SELECTORS.ICON.substring(1),children:r}),(e||a)&&t.jsxs("div",{children:[e&&t.jsx("h3",{className:Yn.SELECTORS.TITLE.substring(1),children:e}),a&&t.jsx("p",{className:Yn.SELECTORS.TEXT.substring(1),children:a})]}),n&&t.jsx("div",{className:Yn.SELECTORS.ACTIONS.substring(1),children:n}),o]})}));Ai.displayName="CardHeader";const Ni=a.forwardRef((({scrollable:e=!1,maxHeight:a,children:n,className:r="",style:o,...i},s)=>{const l=`${Yn.SELECTORS.BODY.substring(1)} ${e?"c-card__body--scrollable":""} ${r}`.trim(),c={...o,...e&&a?{maxHeight:"number"==typeof a?a+"px":a,overflowY:"auto"}:{}};return t.jsx("div",{ref:s,className:l,style:c,...i,children:n})}));Ni.displayName="CardBody";const Ti=a.forwardRef((({align:e,children:a,className:n="",style:r,...o},i)=>{const s=`${Yn.SELECTORS.FOOTER.substring(1)} ${e?"c-card__footer--align-"+e:""} ${n}`.trim();return t.jsx("div",{ref:i,className:s,style:r,...o,children:a})}));Ti.displayName="CardFooter";const Ci=a.memo(a.forwardRef((({size:e="md",variant:n="",appearance:r="filled",elevation:o="none",hoverable:i=!1,hoverElevation:s="md",row:l=!1,flat:c=!1,active:d=!1,disabled:u=!1,loading:m=!1,selected:h=!1,interactive:p=!1,header:g,image:f,imageAlt:b="Card image",title:x,text:v,actions:S,icon:y,footer:E,children:A,onClick:N,onHover:T,onFocus:C,href:_,target:L,linkComponent:w,glass:I,role:R,"aria-label":O,"aria-describedby":k,tabIndex:j,className:M="",style:D,...P},B)=>{const z=!!(N||_||p),F=u||m,U=a.useMemo((()=>[Yn.CLASSES.BASE,"sm"===e?Yn.CLASSES.SM:"","md"===e?Yn.CLASSES.MD:"","lg"===e?Yn.CLASSES.LG:"",n?"c-card--"+n:"","filled"===r?Yn.CLASSES.FILLED:"","outlined"===r?Yn.CLASSES.OUTLINED:"","ghost"===r?Yn.CLASSES.GHOST:"","elevated"===r?Yn.CLASSES.ELEVATED:"","none"===o?Yn.CLASSES.ELEVATION_NONE:"","sm"===o?Yn.CLASSES.ELEVATION_SM:"","md"===o?Yn.CLASSES.ELEVATION_MD:"","lg"===o?Yn.CLASSES.ELEVATION_LG:"","xl"===o?Yn.CLASSES.ELEVATION_XL:"",i?"c-card--hoverable":"",i&&s?"c-card--hover-elevation-"+s:"",l?Yn.CLASSES.ROW:"",c?Yn.CLASSES.FLAT:"",d?Yn.CLASSES.ACTIVE:"",u?Yn.CLASSES.DISABLED:"",m?Yn.CLASSES.LOADING:"",h?Yn.CLASSES.SELECTED:"",p||z?Yn.CLASSES.INTERACTIVE:"",I?Yn.CLASSES.GLASS:"",M].filter(Boolean).join(" ")),[e,n,r,o,i,s,l,c,d,u,m,h,p,z,I,M]),G=a.useMemo((()=>R||(_?"link":z?"button":"article")),[R,_,z]),V=a.useCallback((e=>{F?e.preventDefault():N?.(e)}),[F,N]),H=a.useCallback((e=>{F?e.preventDefault():!z||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),N&&N(e))}),[F,z,N]),$=a.useCallback((e=>{F||T?.(e)}),[F,T]),Y=a.useCallback((e=>{F||C?.(e)}),[F,C]),K=a.useMemo((()=>void 0!==j?j:F?-1:z?0:void 0),[j,F,z]),W=a.useMemo((()=>t.jsxs(t.Fragment,{children:[m&&t.jsx("div",{className:"c-card__loading","aria-label":"Loading",children:t.jsx("div",{className:"c-card__spinner"})}),(f||y||g)&&t.jsxs("div",{className:Yn.SELECTORS.HEADER.substring(1),children:[g,f&&t.jsx("img",{src:f,alt:b,className:Yn.SELECTORS.IMAGE.substring(1),loading:"lazy"}),y&&t.jsx("div",{className:Yn.SELECTORS.ICON.substring(1),children:y})]}),t.jsxs("div",{className:Yn.SELECTORS.BODY.substring(1),children:[x&&t.jsx("h3",{className:Yn.SELECTORS.TITLE.substring(1),children:x}),v&&t.jsx("p",{className:Yn.SELECTORS.TEXT.substring(1),children:v}),A]}),S&&t.jsx("div",{className:Yn.SELECTORS.ACTIONS.substring(1),children:S}),E&&t.jsx("div",{className:Yn.SELECTORS.FOOTER.substring(1),children:E})]})),[m,f,b,y,g,x,v,A,S,E]),q={className:U,style:D,role:G,"aria-label":O,"aria-describedby":k,"aria-disabled":!!F||void 0,tabIndex:K,onClick:z?V:void 0,onKeyDown:z?H:void 0,onMouseEnter:T?$:void 0,onFocus:C?Y:void 0,...P};if(_&&!F){let e;if(w){const a=w;e=t.jsx(a,{...q,ref:B,href:_,to:_,target:L,rel:"_blank"===L?"noopener noreferrer":void 0,children:W})}else e=t.jsx("a",{...q,ref:B,href:_,target:L,rel:"_blank"===L?"noopener noreferrer":void 0,children:W});if(I){const a=!0===I?{}:I;return t.jsx(so,{...a,elasticity:0,children:e})}return e}const Q=t.jsx("div",{...q,ref:B,children:W});if(I){const e=!0===I?{}:I;return t.jsx(so,{...e,elasticity:0,children:Q})}return Q})));Ci.displayName="Card";const _i=Ci;_i.Header=Ai,_i.Body=Ni,_i.Footer=Ti;const Li=_i,wi=({elevationClass:e="is-elevated",className:n="",style:r,children:o,onClick:i,...s})=>{const{getCardProps:l}=((e={})=>{const{elevationEffect:t=!1,elevationClass:n=Yn.CLASSES.ACTIVE,flipEffect:r=!1,flipTrigger:o="click",focusEffect:i=!1,clickable:s=!1,onClick:l}=e,c=a.useRef(null),d=a.useRef(null),u=a.useRef(null),[m,h]=a.useState(!1),[p,g]=a.useState(!1),[f,b]=a.useState(!1),[x,v]=a.useState(!1),S=a.useCallback((e=>{r&&"click"===o&&h((e=>!e)),l&&l(e)}),[r,o,l]),y=a.useCallback((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r&&"click"===o&&h((e=>!e)),l&&l(e))}),[r,o,l]),E=a.useCallback((()=>{v(!0),t&&g(!0),r&&"hover"===o&&h(!0)}),[t,r,o]),A=a.useCallback((()=>{v(!1),t&&g(!1),r&&"hover"===o&&h(!1)}),[t,r,o]),N=a.useCallback((()=>{b(!0)}),[]),T=a.useCallback((()=>{b(!1)}),[]),C=a.useCallback((()=>({className:[Yn.CLASSES.BASE,p?n:"",m?Yn.CLASSES.FLIPPED:"",f&&i?Yn.CLASSES.FOCUSED:"",s?Yn.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:c,tabxwIndex:s||r?0:-1,role:s?"button":void 0,onMouseEnter:E,onMouseLeave:A,onFocus:N,onBlur:T,onClick:S,onKeyDown:y})),[p,m,f,n,i,s,E,A,N,T,S,y,r]);return{cardRef:c,frontRef:d,backRef:u,isFlipped:m,isElevated:p,isFocused:f,isHovered:x,handleClick:S,handleKeyDown:y,handleMouseEnter:E,handleMouseLeave:A,handleFocus:N,handleBlur:T,getCardProps:C}})({elevationEffect:!0,elevationClass:e,clickable:!!i,onClick:i,focusEffect:!0}),c=l();return t.jsx("div",{className:`${n} ${c.className}`,ref:c.ref,style:r,tabIndex:c.tabIndex,role:c.role,onMouseEnter:c.onMouseEnter,onMouseLeave:c.onMouseLeave,onFocus:c.onFocus,onBlur:c.onBlur,onClick:c.onClick,onKeyDown:c.onKeyDown,children:t.jsx(Li,{...s,className:"",onClick:void 0,children:o})})};function Ii(e){const[t,n]=a.useState({hoveredPoint:null,selectedPoints:[],zoomLevel:1,panOffset:{x:0,y:0},panEnabled:!1,isAnimating:!1,isDragging:!1,dragStart:null,crosshair:null,brushSelection:null,focusedPointIndex:0,touchState:{touches:[],lastDistance:0,isPinching:!1,isTouch:!1,lastTouchTime:0},penState:{isPen:!1,pressure:0,tiltX:0,tiltY:0}}),r=a.useRef(null);a.useEffect((()=>{const e=r.current;return()=>{e&&cancelAnimationFrame(e)}}),[]);const o=a.useCallback(((e,t,a,r,o,i)=>{n((n=>({...n,hoveredPoint:{datasetIndex:e,pointIndex:t,x:a,y:r,clientX:o,clientY:i}})))}),[]),i=a.useCallback((()=>{n((e=>({...e,hoveredPoint:null})))}),[]),s=a.useCallback(((e,t)=>{n((a=>{const n=a.selectedPoints.some((a=>a.datasetIndex===e&&a.pointIndex===t));return{...a,selectedPoints:n?a.selectedPoints.filter((a=>!(a.datasetIndex===e&&a.pointIndex===t))):[...a.selectedPoints,{datasetIndex:e,pointIndex:t}]}}))}),[]),l=a.useCallback(((e,t,a)=>{n((n=>{const r=1-.001*e,o=Math.max(.1,Math.min(10,n.zoomLevel*r)),i=o/n.zoomLevel,s={x:t?t-(t-n.panOffset.x)*i:n.panOffset.x,y:a?a-(a-n.panOffset.y)*i:n.panOffset.y};return{...n,zoomLevel:o,panOffset:s}}))}),[]),c=a.useCallback(((e,t)=>{n((a=>({...a,panOffset:{x:a.panOffset.x+e,y:a.panOffset.y+t}})))}),[]),d=a.useCallback(((e,t)=>{n((a=>({...a,isDragging:!0,dragStart:{x:e,y:t}})))}),[]),u=a.useCallback((()=>{n((e=>({...e,isDragging:!1,dragStart:null})))}),[]),m=a.useCallback(((e,t)=>{n((a=>({...a,crosshair:{x:e,y:t}})))}),[]),h=a.useCallback((()=>{n((e=>({...e,crosshair:null})))}),[]),p=a.useCallback((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((a=>{const n={...a,touchState:{...a.touchState,touches:t,isTouch:!0,lastTouchTime:Date.now()}};if(1===t.length&&t[0]&&a.panEnabled){const a=e.target.getBoundingClientRect(),r=t[0].x-a.left,o=t[0].y-a.top;return{...n,isDragging:!0,dragStart:{x:r,y:o}}}if(2===t.length&&t[0]&&t[1]){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));return{...n,touchState:{...n.touchState,lastDistance:e,isPinching:!0},isDragging:!1}}return n}))}),[]),g=a.useCallback((e=>{e.preventDefault();const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((a=>{const n=e.target.getBoundingClientRect();if(1===t.length&&t[0]&&a.isDragging&&a.dragStart&&a.panEnabled){const e=t[0].x-n.left,r=t[0].y-n.top,o=a.touchState.touches[0];let i,s;o?(i=e-(o.x-n.left),s=r-(o.y-n.top)):(i=e-a.dragStart.x,s=r-a.dragStart.y);const l=.6,c=i*l,d=s*l;return Math.abs(c)>1||Math.abs(d)>1?{...a,panOffset:{x:a.panOffset.x+c,y:a.panOffset.y+d},touchState:{...a.touchState,touches:t}}:{...a,touchState:{...a.touchState,touches:t}}}if(2===t.length&&t[0]&&t[1]&&a.touchState.isPinching){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));if(a.touchState.lastDistance>0){const r=e/a.touchState.lastDistance,o=Math.max(.1,Math.min(10,a.zoomLevel*r)),i=(t[0].x+t[1].x)/2-n.left,s=(t[0].y+t[1].y)/2-n.top,l=o/a.zoomLevel,c={x:i-(i-a.panOffset.x)*l,y:s-(s-a.panOffset.y)*l};return{...a,zoomLevel:o,panOffset:c,touchState:{...a.touchState,touches:t,lastDistance:e}}}return{...a,touchState:{...a.touchState,touches:t,lastDistance:e}}}return{...a,touchState:{...a.touchState,touches:t}}}))}),[]),f=a.useCallback((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((a=>{if(0===t.length)return{...a,isDragging:!1,dragStart:null,touchState:{...a.touchState,touches:[],isPinching:!1,lastDistance:0,isTouch:!1}};if(1===t.length&&a.panEnabled){const n=e.target.getBoundingClientRect(),r=t[0].x-n.left,o=t[0].y-n.top;return{...a,dragStart:{x:r,y:o},touchState:{...a.touchState,touches:t,isPinching:!1,lastDistance:0}}}if(2===t.length){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));return{...a,touchState:{...a.touchState,touches:t,lastDistance:e,isPinching:!0},isDragging:!1}}return{...a,touchState:{...a.touchState,touches:t}}}))}),[]),b=a.useCallback((e=>{"pen"===e.pointerType&&n((t=>({...t,penState:{...t.penState,isPen:!0,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),x=a.useCallback((e=>{"pen"===e.pointerType&&n((t=>({...t,penState:{...t.penState,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),v=a.useCallback((e=>{"pen"===e.pointerType&&n((e=>({...e,penState:{...e.penState,isPen:!1,pressure:0,tiltX:0,tiltY:0}})))}),[]),S=a.useCallback(((e,t=ir.DEFAULT_WIDTH,a=ir.DEFAULT_HEIGHT,n={top:20,right:20,bottom:30,left:40},r)=>{if(!e||0===e.length)return null;let o=0,i=1/0,s=-1/0,l=!1;for(const m of e)if(m.data){o+=m.data.length;const{min:e,max:t,hasValid:a}=Ri(m.data);a&&(i>e&&(i=e),t>s&&(s=t),l=!0)}if(0===o)return null;l||(i=0,s=0);const c=s-i||1,d=t-n.left-n.right,u=a-n.top-n.bottom;return{xScale:(e,t=o)=>t>1?n.left+e/(t-1)*d:n.left+d/2,yScale:e=>n.top+u-(e-i)/c*u,minValue:i,maxValue:s,valueRange:c,innerWidth:d,innerHeight:u,width:t,height:a,padding:n}}),[]),y=a.useCallback((e=>{if(0>=e)return[];const t=[];for(let a=0;e>a;a++){const e=a%ir.DEFAULT_COLORS.length;t.push(ir.DEFAULT_COLORS[e])}return t}),[]),E=a.useRef(null);return{interactionState:t,setInteractionState:n,handlePointHover:o,handlePointLeave:i,handlePointClick:s,handleZoom:l,handlePan:c,handleDragStart:d,handleDragEnd:u,handleCrosshair:m,clearCrosshair:h,handleTouchStart:p,handleTouchMove:g,handleTouchEnd:f,handlePointerDown:b,handlePointerMove:x,handlePointerUp:v,calculateScales:S,getChartColors:y,svgRef:E}}function Ri(e){let t=1/0,a=-1/0,n=!1;if(e&&e.length>0)for(let r=0;r<e.length;r++){const o=e[r];if(o&&"number"==typeof o.value){const e=o.value;t>e&&(t=e),e>a&&(a=e),n=!0}}return{min:t,max:a,hasValid:n}}wi.displayName="ElevationCard";const Oi=a.memo(a.forwardRef((({chartType:e="line",groups:n=[],enableDefaults:r=!0,defaults:o={refresh:!0,export:!0,fullscreen:!0,settings:!0,zoom:!0,pan:!0,reset:!0},exportFormats:i=["png","svg","csv"],size:s="md",position:l="top",onRefresh:c,onExport:d,onFullscreen:u,onSettings:m,onZoomIn:h,onZoomOut:p,onZoomReset:g,onPanToggle:f,onReset:b,onGridToggle:x,onLegendToggle:v,onTooltipsToggle:S,onAnimationsToggle:y,state:E={},className:A="",...N},T)=>{const[C,_]=a.useState(!1),[L,w]=a.useState(!1),I=a.useRef(null),R=a.useRef(null),O=a.useRef(null),k=a.useRef(null),j=a.useMemo((()=>n&&n.length>0?{refresh:o.refresh??!0,export:o.export??!0,fullscreen:o.fullscreen??!0,settings:o.settings??!0,zoom:n.some((e=>e.actions.some((e=>"zoom-in"===e.id||"zoom-out"===e.id)))),pan:n.some((e=>e.actions.some((e=>"pan"===e.id)))),reset:n.some((e=>e.actions.some((e=>"reset"===e.id)))),grid:o.grid??!0,legend:o.legend??!0,tooltips:o.tooltips??!0,animations:o.animations??!0}:o),[n,o]);a.useEffect((()=>{const e=e=>{I.current&&!I.current.contains(e.target)&&O.current&&!O.current.contains(e.target)&&_(!1),R.current&&!R.current.contains(e.target)&&k.current&&!k.current.contains(e.target)&&w(!1)};if(C||L)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[C,L]),a.useEffect((()=>{const e=e=>{e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLElement&&e.target.isContentEditable||((e.ctrlKey||e.metaKey)&&"r"===e.key&&j.refresh&&c&&(e.preventDefault(),c()),(e.ctrlKey||e.metaKey)&&"e"===e.key&&j.export&&d&&(e.preventDefault(),_(!C)),"F11"===e.key&&j.fullscreen&&u&&(e.preventDefault(),u(!E.isFullscreen))," "===e.key&&j.pan&&f&&(e.preventDefault(),f(!E.panEnabled)),"r"!==e.key&&"R"!==e.key||e.ctrlKey||e.metaKey||!j.reset||(e.preventDefault(),g?.(),b?.()),"+"!==e.key&&"="!==e.key||j.zoom&&h&&(e.preventDefault(),h()),"-"!==e.key&&"_"!==e.key||j.zoom&&p&&(e.preventDefault(),p()),"Escape"===e.key&&(_(!1),w(!1)))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[j,c,d,u,f,g,b,h,p,E,C]);const M=a.useCallback((()=>{const e=[];return j.refresh&&c&&e.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:c,disabled:E.isRefreshing,tooltip:"Refresh chart data (Ctrl+R)",shortcut:"Ctrl+R"}),j.export&&d&&e.push({id:"export",label:"Export",icon:"Download",onClick:()=>_(!C),disabled:E.isExporting,variant:"primary",tooltip:"Export chart (Ctrl+E)",shortcut:"Ctrl+E"}),[{id:"data-actions",label:"Data",actions:e,separator:!0}]}),[j,c,d,E,C]),D=a.useCallback((()=>{const e=[];return j.zoom&&(h||p)&&e.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:()=>h?.(),tooltip:"Zoom in (+)",shortcut:"+"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:()=>p?.(),tooltip:"Zoom out (-)",shortcut:"-"}),j.pan&&f&&e.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>f?.(!E.panEnabled),active:E.panEnabled,tooltip:"Toggle pan mode (Space)",shortcut:"Space"}),j.reset&&(g||b)&&e.push({id:"reset",label:"Reset View",icon:"ArrowCounterClockwise",onClick:()=>{g?.(),b?.()},tooltip:"Reset view (R)",shortcut:"R"}),j.fullscreen&&u&&e.push({id:"fullscreen",label:E.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:E.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>u?.(!E.isFullscreen),variant:"success",tooltip:(E.isFullscreen?"Exit":"Enter")+" fullscreen (F11)",shortcut:"F11"}),e.length>0?[{id:"view-actions",label:"View",actions:e,separator:!0}]:[]}),[j,h,p,f,g,b,u,E]),P=a.useCallback((()=>{const e=[];return j.grid&&x&&e.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>x(!E.showGrid),active:E.showGrid,tooltip:"Toggle grid lines"}),j.legend&&v&&e.push({id:"legend",label:"Legend",icon:"List",onClick:()=>v(!E.showLegend),active:E.showLegend,tooltip:"Toggle legend"}),j.tooltips&&S&&e.push({id:"tooltips",label:"Tooltips",icon:"CursorText",onClick:()=>S(!E.showTooltips),active:E.showTooltips,tooltip:"Toggle tooltips"}),j.animations&&y&&e.push({id:"animations",label:"Animations",icon:"Sparkle",onClick:()=>y(!E.animationsEnabled),active:E.animationsEnabled,tooltip:"Toggle animations"}),e.length>0?[{id:"display-actions",label:"Display",actions:e,separator:!0}]:[]}),[j,x,v,S,y,E]),B=a.useCallback((()=>{const e=[];return j.settings&&m&&e.push({id:"settings",label:"Settings",icon:"Gear",onClick:()=>w(!L),active:L,tooltip:"Chart settings"}),e.length>0?[{id:"tool-actions",label:"Tools",actions:e}]:[]}),[j,m,L]),z=n&&n.length>0?n:r?[...M(),...D(),...P(),...B()]:[],F=e=>{const a="export"===e.id?O:"settings"===e.id?k:null;return t.jsxs("button",{ref:a,className:`${ir.ACTION_CLASS} ${e.variant?`${ir.ACTION_CLASS}--${e.variant}`:""} ${e.active?"is-active":""}`,onClick:()=>{if(e.onClick)e.onClick();else if("export"===e.id&&d)_(!C);else if("settings"===e.id&&m)w(!L);else switch(e.id){case"zoom-in":h?.();break;case"zoom-out":p?.();break;case"pan":f?.(!E.panEnabled);break;case"reset":g?.(),b?.();break;case"fullscreen":u?.(!E.isFullscreen);break;case"refresh":c?.()}},disabled:e.disabled,title:e.tooltip,type:"button","aria-label":e.label,"aria-pressed":e.active?"true":"false","aria-expanded":"export"===e.id?C:"settings"===e.id?L:void 0,children:[t.jsx(Oo,{name:e.icon,size:"sm"}),"lg"===s&&t.jsx("span",{className:ir.ACTION_CLASS+"-label",children:e.label})]},e.id)},U=`${ir.TOOLBAR_CLASS} ${ir.TOOLBAR_CLASS}--${s} ${ir.TOOLBAR_CLASS}--${l} ${A}`.trim();return t.jsx("div",{ref:T,className:U,...N,children:z.map(((a,n)=>t.jsxs("div",{className:ir.TOOLBAR_CLASS+"-group",children:[a.separator&&n>0&&t.jsx("div",{className:ir.TOOLBAR_CLASS+"-separator"}),a.label&&"lg"===s&&t.jsx("span",{className:ir.TOOLBAR_CLASS+"-group-label",children:a.label}),t.jsxs("div",{className:ir.TOOLBAR_CLASS+"-actions",children:[a.actions.map(F),a.actions.some((e=>"export"===e.id))&&(C&&d?t.jsxs("div",{ref:I,className:""+ir.EXPORT_DROPDOWN_CLASS,role:"menu","aria-label":"Export formats",children:[t.jsx("div",{className:ir.EXPORT_DROPDOWN_CLASS+"-title",children:"Export Formats"}),i.map((e=>t.jsx("button",{className:""+ir.EXPORT_OPTION_CLASS,onClick:()=>{d(e),_(!1)},disabled:E.isExporting,type:"button",role:"menuitem","aria-label":"Export as "+e.toUpperCase(),children:e.toUpperCase()},e)))]}):null),a.actions.some((e=>"settings"===e.id))&&(L?t.jsxs("div",{ref:R,className:""+ir.SETTINGS_MENU_CLASS,role:"menu","aria-label":"Chart settings",children:[t.jsx("div",{className:ir.SETTINGS_MENU_CLASS+"-title",children:"Chart Settings"}),t.jsxs("div",{className:ir.SETTINGS_MENU_CLASS+"-content",children:[j.grid&&x&&t.jsx("div",{className:ir.SETTINGS_MENU_CLASS+"-item",children:t.jsxs("label",{className:ir.SETTINGS_MENU_CLASS+"-toggle",children:[t.jsx("input",{type:"checkbox",checked:E.showGrid??!1,onChange:e=>x(e.target.checked),"aria-label":"Toggle grid lines"}),t.jsx("span",{className:ir.SETTINGS_MENU_CLASS+"-label",children:"Show Grid"})]})}),j.legend&&v&&t.jsx("div",{className:ir.SETTINGS_MENU_CLASS+"-item",children:t.jsxs("label",{className:ir.SETTINGS_MENU_CLASS+"-toggle",children:[t.jsx("input",{type:"checkbox",checked:E.showLegend??!1,onChange:e=>v(e.target.checked),"aria-label":"Toggle legend"}),t.jsx("span",{className:ir.SETTINGS_MENU_CLASS+"-label",children:"Show Legend"})]})}),j.tooltips&&S&&t.jsx("div",{className:ir.SETTINGS_MENU_CLASS+"-item",children:t.jsxs("label",{className:ir.SETTINGS_MENU_CLASS+"-toggle",children:[t.jsx("input",{type:"checkbox",checked:E.showTooltips??!1,onChange:e=>S(e.target.checked),"aria-label":"Toggle tooltips"}),t.jsx("span",{className:ir.SETTINGS_MENU_CLASS+"-label",children:"Show Tooltips"})]})}),j.animations&&y&&t.jsx("div",{className:ir.SETTINGS_MENU_CLASS+"-item",children:t.jsxs("label",{className:ir.SETTINGS_MENU_CLASS+"-toggle",children:[t.jsx("input",{type:"checkbox",checked:E.animationsEnabled??!1,onChange:e=>y(e.target.checked),"aria-label":"Toggle animations"}),t.jsx("span",{className:ir.SETTINGS_MENU_CLASS+"-label",children:"Enable Animations"})]})}),void 0!==E.zoomLevel&&t.jsxs("div",{className:`${ir.SETTINGS_MENU_CLASS}-item ${ir.SETTINGS_MENU_CLASS}-item--info`,children:[t.jsx("span",{className:ir.SETTINGS_MENU_CLASS+"-label",children:"Zoom Level"}),t.jsxs("span",{className:ir.SETTINGS_MENU_CLASS+"-value",children:[Math.round(100*(E.zoomLevel||1)),"%"]})]}),t.jsxs("div",{className:`${ir.SETTINGS_MENU_CLASS}-item ${ir.SETTINGS_MENU_CLASS}-item--info`,children:[t.jsx("span",{className:ir.SETTINGS_MENU_CLASS+"-label",children:"Chart Type"}),t.jsx("span",{className:ir.SETTINGS_MENU_CLASS+"-value",children:e})]})]})]}):null)]})]},a.id)))})})));Oi.displayName="ChartToolbar";const ki=a.createContext(null),ji=a.memo(a.forwardRef((({children:e,type:n="line",size:r="md",variant:o="primary",title:i,subtitle:s,loading:l=!1,error:c,className:d="","aria-label":u,onFullscreen:m,onExport:h,onRefresh:p,showToolbar:g=!1,enableFullscreen:f=!1,enableExport:b=!1,enableRefresh:x=!1,exportFormats:v=["png","svg","csv"],datasets:S,config:y,toolbarConfig:E,customToolbarActions:A,customToolbarGroups:N,data:T,showLegend:C,interactive:_,fullscreen:L,onDataPointClick:w,onLegendItemClick:I,glass:R,...O},k)=>{const[j,M]=a.useState(!1),[D,P]=a.useState(!1),B=a.useRef(null),[z,F]=a.useState(1),[U,G]=a.useState({x:0,y:0}),[V,H]=a.useState(!1),$=a.useCallback((e=>{M(e),m?.(e)}),[m]),Y=a.useCallback((()=>{F((e=>Math.min(1.2*e,5)))}),[]),K=a.useCallback((()=>{F((e=>Math.max(e/1.2,.2)))}),[]),W=a.useCallback((()=>{F(1),G({x:0,y:0})}),[]),q=a.useCallback((e=>{H(e)}),[]),Q=a.useCallback((()=>{F(1),G({x:0,y:0}),H(!1)}),[]),X=a.useMemo((()=>({onRefresh:p,onExport:h,onFullscreen:$,onZoomIn:Y,onZoomOut:K,onZoomReset:W,onPanToggle:q,onReset:Q})),[p,h,$,Y,K,W,q,Q]),{state:Z,handlers:J,toolbarGroups:ee}=function(e,t={},n={}){const[r,o]=a.useState({isFullscreen:!1,isExporting:!1,isRefreshing:!1,zoomLevel:1,panEnabled:!1,showGrid:!0,showLegend:!0,showTooltips:!0,animationsEnabled:!0}),{enableDefaults:i=!0,defaults:s={},exportFormats:l=["png","svg","csv"],customActions:c=[],customGroups:d=[]}=t,u=a.useCallback((()=>{const t={refresh:!0,export:!0,fullscreen:!0,settings:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,zoom:!1,pan:!1,reset:!1};switch(e){case"interactive":case"advanced":case"line":case"area":case"bar":case"horizontal-bar":case"scatter":case"bubble":case"funnel":case"waterfall":case"candlestick":return{...t,zoom:!0,pan:!0,reset:!0};case"realtime":return{...t,refresh:!0,export:!1,animations:!1};case"pie":case"donut":case"gauge":return{...t,zoom:!1,pan:!1,grid:!1};default:return t}}),[e]),m=a.useMemo((()=>({...u(),...s})),[u,s]),h=a.useMemo((()=>({onRefresh:()=>{o((e=>({...e,isRefreshing:!0}))),n.onRefresh?.(),setTimeout((()=>{o((e=>({...e,isRefreshing:!1})))}),1e3)},onExport:async e=>{o((e=>({...e,isExporting:!0})));try{await(n.onExport?.(e))}finally{o((e=>({...e,isExporting:!1})))}},onFullscreen:e=>{o((t=>({...t,isFullscreen:e}))),n.onFullscreen?.(e)},onZoomIn:()=>{o((e=>({...e,zoomLevel:Math.min(1.2*e.zoomLevel,5)}))),n.onZoomIn?.()},onZoomOut:()=>{o((e=>({...e,zoomLevel:Math.max(e.zoomLevel/1.2,.2)}))),n.onZoomOut?.()},onZoomReset:()=>{o((e=>({...e,zoomLevel:1}))),n.onZoomReset?.()},onPanToggle:e=>{o((t=>({...t,panEnabled:e}))),n.onPanToggle?.(e)},onReset:()=>{o((e=>({...e,zoomLevel:1,panEnabled:!1}))),n.onReset?.()},onGridToggle:e=>{o((t=>({...t,showGrid:e}))),n.onGridToggle?.(e)},onLegendToggle:e=>{o((t=>({...t,showLegend:e}))),n.onLegendToggle?.(e)},onTooltipsToggle:e=>{o((t=>({...t,showTooltips:e}))),n.onTooltipsToggle?.(e)},onAnimationsToggle:e=>{o((t=>({...t,animationsEnabled:e}))),n.onAnimationsToggle?.(e)},onSettings:()=>{}})),[n]),p=a.useCallback((()=>{const e=[],t=[];m.refresh&&t.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:h.onRefresh,disabled:r.isRefreshing,tooltip:"Refresh chart data"}),m.export&&t.push({id:"export",label:"Export",icon:"Download",onClick:()=>h.onExport("png"),disabled:r.isExporting,variant:"primary",tooltip:"Export chart"}),t.length>0&&e.push({id:"data-actions",label:"Data",actions:t,separator:!0});const a=[];m.zoom&&a.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:h.onZoomIn,tooltip:"Zoom in"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:h.onZoomOut,tooltip:"Zoom out"}),m.pan&&a.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>h.onPanToggle(!r.panEnabled),active:r.panEnabled,tooltip:"Toggle pan mode"}),m.reset&&a.push({id:"reset",label:"Reset",icon:"ArrowCounterClockwise",onClick:h.onReset,tooltip:"Reset view"}),m.fullscreen&&a.push({id:"fullscreen",label:r.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:r.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>h.onFullscreen(!r.isFullscreen),variant:"success",tooltip:(r.isFullscreen?"Exit":"Enter")+" fullscreen"}),a.length>0&&e.push({id:"view-actions",label:"View",actions:a,separator:!0});const n=[];if(m.grid&&n.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>h.onGridToggle(!r.showGrid),active:r.showGrid,tooltip:"Toggle grid"}),m.legend&&n.push({id:"legend",label:"Legend",icon:"List",onClick:()=>h.onLegendToggle(!r.showLegend),active:r.showLegend,tooltip:"Toggle legend"}),m.tooltips&&n.push({id:"tooltips",label:"Tooltips",icon:"ChatCircle",onClick:()=>h.onTooltipsToggle(!r.showTooltips),active:r.showTooltips,tooltip:"Toggle tooltips"}),m.animations&&n.push({id:"animations",label:"Animations",icon:"Play",onClick:()=>h.onAnimationsToggle(!r.animationsEnabled),active:r.animationsEnabled,tooltip:"Toggle animations"}),n.length>0&&e.push({id:"display-actions",label:"Display",actions:n,separator:!0}),m.settings&&e.push({id:"settings-actions",label:"Settings",actions:[{id:"settings",label:"Settings",icon:"Gear",onClick:h.onSettings,tooltip:"Chart settings"}]}),e.push(...d),c.length>0)if(e.length>0){if(e.length>0){const t=e[e.length-1];t&&t.actions.push(...c)}}else e.push({id:"custom-actions",label:"Custom",actions:c});return e}),[m,r,h,c,d]);return a.useEffect((()=>{const e=e=>{if(e.ctrlKey||e.metaKey)switch(e.key.toLowerCase()){case"r":m.refresh&&(e.preventDefault(),h.onRefresh());break;case"e":m.export&&(e.preventDefault(),h.onExport("png"));break;case"f":m.fullscreen&&(e.preventDefault(),h.onFullscreen(!r.isFullscreen))}else switch(e.key){case"+":case"=":m.zoom&&(e.preventDefault(),h.onZoomIn());break;case"-":m.zoom&&(e.preventDefault(),h.onZoomOut());break;case"r":m.reset&&(e.preventDefault(),h.onReset());break;case" ":m.pan&&(e.preventDefault(),h.onPanToggle(!r.panEnabled));break;case"F11":m.fullscreen&&(e.preventDefault(),h.onFullscreen(!r.isFullscreen))}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[m,r,h]),{state:r,setState:o,handlers:h,toolbarGroups:p(),config:{enableDefaults:i,defaults:m,exportFormats:l}}}(n,{enableDefaults:g,defaults:{refresh:x,export:b,fullscreen:f,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:v},X);Ii(),a.useEffect((()=>{F(Z.zoomLevel)}),[Z.zoomLevel]),a.useEffect((()=>{H(Z.panEnabled)}),[Z.panEnabled]),a.useEffect((()=>{Z.zoomLevel}),[z,Z.zoomLevel]);const te=Mi({type:n,size:r,variant:o,loading:l,error:c,className:d,interactive:_,panEnabled:V});a.useEffect((()=>{M(Z.isFullscreen),P(Z.isExporting)}),[Z.isFullscreen,Z.isExporting]);const ae=`${te}${j?" "+ir.CLASSES.FULLSCREEN:""}${R?" c-chart--glass":""}`,ne=a.useMemo((()=>({displacementScale:25,blurAmount:0,saturation:180,aberrationIntensity:1.5,elasticity:0,withLiquidBlur:!1,withBorder:!0,mode:"standard",mouseContainer:B,reducedMotion:!1})),[]),re=a.useMemo((()=>R?!0===R?ne:{...ne,...R}:null),[R,ne]),oe=a.useMemo((()=>re?.borderRadius||void 0),[re?.borderRadius]),ie=a.useMemo((()=>({zoomLevel:z,panOffset:U,panEnabled:V,onZoomIn:Y,onZoomOut:K,onZoomReset:W,onPanToggle:q,onReset:Q,setZoomLevel:F,setPanOffset:G,setPanEnabled:H,toolbarState:{showTooltips:Z.showTooltips,showLegend:Z.showLegend,animationsEnabled:Z.animationsEnabled,showGrid:Z.showGrid}})),[z,U,V,Y,K,W,q,Q,H,Z.showTooltips,Z.showLegend,Z.animationsEnabled,Z.showGrid]),se=t.jsxs("div",{ref:B,className:ae,"aria-label":u||n+" chart",role:"img",tabIndex:0,...O,children:[(i||s||g)&&t.jsxs("div",{className:ir.HEADER_CLASS+" u-flex u-justify-between u-items-start u-gap-4",children:[t.jsxs("div",{className:ir.HEADER_CONTENT_CLASS+" u-flex-1",children:[i&&t.jsx("h3",{className:ir.TITLE_CLASS+" u-mb-1",children:i}),s&&t.jsx("p",{className:ir.SUBTITLE_CLASS+" u-mb-0",children:s})]}),(()=>{if(!g)return null;const e=!ee||0===ee.length;return t.jsx(Oi,{chartType:n,groups:ee,defaults:{refresh:x,export:b,fullscreen:f,zoom:void 0!==Z.zoomLevel,pan:void 0!==Z.panEnabled,reset:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:v,state:{isFullscreen:Z.isFullscreen,isExporting:Z.isExporting,isRefreshing:Z.isRefreshing,zoomLevel:z,panEnabled:V,showGrid:Z.showGrid,showLegend:Z.showLegend,showTooltips:Z.showTooltips,animationsEnabled:Z.animationsEnabled},...e?{onRefresh:J.onRefresh,onExport:J.onExport,onFullscreen:J.onFullscreen,onZoomIn:Y,onZoomOut:K,onZoomReset:W,onPanToggle:q,onReset:Q,onSettings:J.onSettings,onGridToggle:J.onGridToggle,onLegendToggle:J.onLegendToggle,onTooltipsToggle:J.onTooltipsToggle,onAnimationsToggle:J.onAnimationsToggle}:{}})})()]}),t.jsxs("div",{className:ir.CONTENT_CLASS,children:[l&&t.jsxs("div",{className:ir.LOADING_CLASS,children:[t.jsx("div",{className:ir.LOADING_SPINNER_CLASS}),t.jsx("span",{className:ir.LOADING_TEXT_CLASS,children:Z.isExporting?"Exporting chart...":Z.isRefreshing?"Refreshing chart...":"Loading chart..."})]}),c&&t.jsxs("div",{className:ir.ERROR_CLASS,children:[t.jsx("div",{className:ir.ERROR_ICON_CLASS,children:"⚠"}),t.jsxs("div",{className:ir.ERROR_CONTENT_CLASS,children:[t.jsx("div",{className:ir.ERROR_MESSAGE_CLASS,children:"Chart Error"}),t.jsx("div",{className:ir.ERROR_DETAILS_CLASS,children:c})]})]}),!l&&!c&&!e&&t.jsxs("div",{className:ir.EMPTY_CLASS,children:[t.jsx("div",{className:ir.EMPTY_ICON_CLASS,children:"📊"}),t.jsx("div",{className:ir.EMPTY_MESSAGE_CLASS,children:"No data available"}),t.jsx("div",{className:ir.EMPTY_DETAILS_CLASS,children:"Add data to your chart to see visualizations"})]}),!l&&!c&&e&&t.jsx("div",{className:ir.CANVAS_CLASS,children:e})]})]}),le=re?t.jsx(so,{...re,borderRadius:oe,style:{width:"100%",height:"100%",...re.style},children:se}):se;return t.jsx(ki.Provider,{value:ie,children:t.jsx("div",{ref:k,style:{width:"100%",height:"100%"},children:le})})}))),Mi=({type:e,size:t,variant:a,loading:n,error:r,className:o,interactive:i,panEnabled:s})=>{const l=[ir.ROOT_CLASS];if(e){const t=e.toUpperCase(),a=ir.CLASSES[t]||`${ir.TYPE_PREFIX}${e}`;l.push(a)}if(t){const e=t.toUpperCase(),a=ir.CLASSES[e]||`${ir.SIZE_PREFIX}${t}`;l.push(a)}if(a){const e=a.toUpperCase(),t=ir.CLASSES[e]||`${ir.VARIANT_PREFIX}${a}`;l.push(t)}return(i||s)&&l.push(ir.CLASSES.INTERACTIVE),n&&l.push(ir.LOADING_STATE_CLASS),r&&l.push(ir.ERROR_STATE_CLASS),o&&l.push(o),l.join(" ")};ji.displayName="Chart";const Di=a.memo(a.forwardRef((({datasets:e=[],config:n,width:r=ir.DEFAULT_WIDTH,height:o=ir.DEFAULT_HEIGHT,onDataPointClick:i,interactive:s=!0,enableRealTime:l=!1,enableAccessibility:c=!0,enablePerformanceOptimization:d=!0,renderContent:u},m)=>{const h=a.useContext(ki),{calculateScales:p,getChartColors:g}=Ii(),{processedData:f,isProcessing:b}=function(e,t){const[n,r]=a.useState(e),[o,i]=a.useState(!1),{enableDecimation:s=!1,maxDataPoints:l=1e3,enableRealTime:c=!1,realTimeInterval:d=1e3}=t||{},u=a.useRef(""),m=a.useCallback((e=>e.map((e=>`${e.label}:${JSON.stringify(e.data)}`)).join("|")),[]);a.useEffect((()=>{u.current=m(n)}),[n,m]);const h=a.useCallback(((e,t)=>{if(!s||!e.length)return e;const a=e[0]?.data?.length||0;if(t>=a)return e;const n=Math.ceil(a/t);return e.map((e=>({...e,data:e.data?.filter(((e,t)=>t%n==0))||[]})))}),[s]),p=a.useCallback(((e,t)=>{const a=[];for(let r=0;r<e.length;r++)if(t-1>r)a.push(null);else{var n;const o=di(n=e.slice(r-t+1,r+1)).call(n,((e,t)=>e+t),0);a.push(o/t)}return a}),[]),g=a.useCallback((e=>{const t=e.length;if(2>t)return e.map((()=>null));let a=0,n=0,r=0,o=0;for(let l=0;t>l;l++){const t=e[l],i="number"==typeof t?t:0;a+=l,n+=i,r+=l*i,o+=l*l}const i=(t*r-a*n)/(t*o-a*a),s=(n-i*a)/t;return e.map(((e,t)=>i*t+s))}),[]);return a.useEffect((()=>{i(!0),(async()=>{let t=[...e];s&&l&&(t=h(t,l)),r(t),i(!1)})()}),[e,h,s,l]),a.useEffect((()=>{if(!c)return;const e=setInterval((()=>{r((e=>m(e)===u.current?e:[...e]))}),d);return()=>clearInterval(e)}),[c,d,m]),{processedData:n,isProcessing:o,decimateData:h,calculateMovingAverage:p,calculateTrendLine:g,setProcessedData:r}}(e,{enableRealTime:l,enableDecimation:d,maxDataPoints:1e3}),{isOptimizing:x,memoizedScales:v}=function(e,t){const{enableVirtualization:n=!1,enableMemoization:r=!0,debounceMs:o=100}=t||{},[i,s]=a.useState(!1),l=a.useRef(null),c=a.useMemo((()=>r?e.map((e=>{const{min:t,max:a,hasValid:n}=Ri(e.data);return{label:e.label,dataLength:e.data?.length||0,minValue:n?t:0,maxValue:n?a:0}})):null),[e,r]),d=a.useCallback((e=>{l.current&&clearTimeout(l.current),l.current=setTimeout((()=>{e(),s(!1)}),o),s(!0)}),[o]),u=a.useCallback(((t,a,r)=>{if(!n)return{start:0,end:e[0]?.data?.length||0};const o=Math.floor(t/a),i=Math.min(o+Math.ceil(r/a)+1,e[0]?.data?.length||0);return{start:Math.max(0,o-1),end:i}}),[n,e]);return a.useEffect((()=>()=>{l.current&&clearTimeout(l.current)}),[]),{isOptimizing:i,memoizedScales:c,debouncedUpdate:d,getVisibleRange:u}}(f,{enableVirtualization:!1,enableMemoization:d,debounceMs:100}),{announcement:S,focusedPoint:y}=function(e,t){const{enableKeyboardNavigation:n=!0,enableScreenReader:r=!0,announceDataChanges:o=!0}=t||{},[i,s]=a.useState({datasetIndex:0,pointIndex:0}),[l,c]=a.useState(""),d=a.useCallback(((t,a)=>{if(!n||!e.length)return;const r=e.length-1,o=(e[i.datasetIndex]?.data?.length||1)-1;switch(t.key){case"ArrowLeft":t.preventDefault(),s((e=>({...e,pointIndex:Math.max(0,e.pointIndex-1)})));break;case"ArrowRight":t.preventDefault(),s((e=>({...e,pointIndex:Math.min(o,e.pointIndex+1)})));break;case"ArrowUp":t.preventDefault(),s((e=>({...e,datasetIndex:Math.max(0,e.datasetIndex-1)})));break;case"ArrowDown":t.preventDefault(),s((e=>({...e,datasetIndex:Math.min(r,e.datasetIndex+1)})));break;case"Home":t.preventDefault(),s((e=>({...e,pointIndex:0})));break;case"End":t.preventDefault(),s((e=>({...e,pointIndex:o})));break;case"Enter":case" ":t.preventDefault(),a?.(i.datasetIndex,i.pointIndex)}}),[n,e,i]),u=a.useCallback((e=>{r&&(c(e),setTimeout((()=>c("")),1e3))}),[r]);a.useEffect((()=>{if(!o||!e.length)return;const t=di(e).call(e,((e,t)=>e+(t.data?.length||0)),0);u(`Chart updated with ${e.length} datasets and ${t} data points`)}),[e,o,u]);const m=a.useCallback((()=>{if(!e.length)return"Empty chart";const t=e.map(((e,t)=>{const a=e.data?.length||0,{min:n,max:r,hasValid:o}=Ri(e.data),i=o?n:0,s=o?r:0;return`Dataset ${t+1}: ${e.label}, ${a} points, range ${i} to ${s}`})).join(". ");return`Chart with ${e.length} datasets. ${t}`}),[e]);return{focusedPoint:i,announcement:l,handleKeyDown:d,announceData:u,getAccessibleDescription:m,setFocusedPoint:s}}(f,{enableScreenReader:c,enableKeyboardNavigation:c,announceDataChanges:c}),E=a.useRef({isDragging:!1,dragStart:{x:0,y:0},lastPan:{x:0,y:0}}),[A,N]=a.useState(null),T=a.useRef(null),C=a.useRef(null),[_,L]=a.useState(!1),[w,I]=a.useState({width:0,height:0});a.useEffect((()=>{const e=C.current;if(!e)return;const t=()=>{const t=e.getBoundingClientRect();t.width>0&&t.height>0&&(I({width:Math.floor(t.width),height:Math.floor(t.height)}),L(!0))};t();const a=requestAnimationFrame((()=>{t()})),n=new ResizeObserver((e=>{for(const t of e){const{width:e,height:a}=t.contentRect;e>0&&a>0&&(I({width:Math.floor(e),height:Math.floor(a)}),L(!0))}}));return n.observe(e),()=>{cancelAnimationFrame(a),n.disconnect()}}),[]),a.useEffect((()=>{r===ir.DEFAULT_WIDTH&&o===ir.DEFAULT_HEIGHT||(I({width:r,height:o}),L(!0))}),[r,o]);const R=a.useCallback(((e,t,a,n,r,o)=>{N({datasetIndex:e,pointIndex:t,x:a,y:n,clientX:r,clientY:o})}),[]),O=a.useCallback((()=>{N(null)}),[]),k=a.useRef(null),j=a.useCallback((e=>{s&&h&&h.panEnabled&&E.current.isDragging&&(k.current||(k.current=requestAnimationFrame((()=>{const t=T.current;if(!t)return void(k.current=null);const a=t.getBoundingClientRect(),n=e.clientX-a.left,r=e.clientY-a.top,o=n-E.current.dragStart.x,i=r-E.current.dragStart.y;h.setPanOffset({x:E.current.lastPan.x+o,y:E.current.lastPan.y+i}),k.current=null}))))}),[s,h]),M=a.useCallback((e=>{if(!s||!h||!h.panEnabled)return;const t=T.current;if(!t)return;const a=t.getBoundingClientRect(),n=e.clientX-a.left,r=e.clientY-a.top;E.current.isDragging=!0,E.current.dragStart={x:n,y:r},E.current.lastPan={...h.panOffset}}),[s,h]),D=a.useCallback((()=>{E.current.isDragging=!1}),[]),P=a.useMemo((()=>({onDataPointClick:i,onPointHover:R,onPointLeave:O,onMouseMove:j,onMouseDown:M,onMouseUp:D,onWheel:()=>{}})),[i,R,O,j,M,D]),B=a.useMemo((()=>({announcement:S,focusedPoint:y,getAccessibleDescription:()=>"Chart description"})),[S,y]),z=a.useMemo((()=>h?`translate(${h.panOffset.x}px, ${h.panOffset.y}px) scale(${h.zoomLevel})`:""),[h]),F=a.useMemo((()=>{if(!_||0===w.width||0===w.height)return null;const e=p(f,w.width,w.height,void 0,n);if(!e)return null;const t=g(f.length).filter((e=>void 0!==e));return{scales:e,colors:t,datasets:f.map(((e,a)=>({...e,color:e.color||t[a]})))}}),[f,n,w.width,w.height,_,p,g]);if(a.useEffect((()=>()=>{k.current&&cancelAnimationFrame(k.current)}),[]),a.useEffect((()=>{const e=T.current;if(!e||!s||!h)return;const t=e=>{if(void 0===h.zoomLevel)return;e.preventDefault();const t=.001*-e.deltaY,a=Math.max(.2,Math.min(5,h.zoomLevel+t));h.setZoomLevel(a)};return e.addEventListener("wheel",t,{passive:!1}),()=>{e.removeEventListener("wheel",t)}}),[s,h]),x)return t.jsxs("div",{className:`${ir.CONTENT_CLASS} ${ir.LOADING_CLASS}`,children:[t.jsx("div",{className:ir.LOADING_SPINNER_CLASS}),t.jsx("span",{className:ir.LOADING_TEXT_CLASS,children:"Optimizing chart..."})]});if(!_||0===w.width||0===w.height)return t.jsx("div",{ref:C,className:ir.CANVAS_CLASS,style:{width:"100%",height:"100%",minHeight:"200px",display:"flex",alignItems:"center",justifyContent:"center"}});if(!F)return null;const U=w.width,G=w.height;return t.jsxs(t.Fragment,{children:[t.jsx("div",{ref:C,className:ir.CANVAS_CLASS,style:{width:"100%",height:"100%"},children:t.jsxs("svg",{ref:T,width:U,height:G,viewBox:`0 0 ${U} ${G}`,preserveAspectRatio:"xMidYMid meet",role:"img","aria-label":"Chart visualization",tabIndex:0,style:{width:"100%",height:"100%",transform:z,transformOrigin:"center center",willChange:h?.panEnabled?"transform":"auto"},className:"c-chart__svg",onMouseMove:j,onMouseDown:M,onMouseUp:D,onMouseLeave:D,children:[t.jsxs("g",{className:"c-chart__grid-group",children:[F.datasets[0]?.data.map(((e,a)=>t.jsx("line",{x1:F.scales.xScale(a,F.datasets[0]?.data.length),y1:0,x2:F.scales.xScale(a,F.datasets[0]?.data.length),y2:G,className:"c-chart__grid c-chart__grid--vertical"},"x-grid-"+a))),Array.from({length:5}).map(((e,a)=>{const n=F.scales.minValue+(F.scales.maxValue-F.scales.minValue)*(a/4);return t.jsx("line",{x1:0,y1:F.scales.yScale(n),x2:U,y2:F.scales.yScale(n),className:"c-chart__grid c-chart__grid--horizontal"},"y-grid-"+a)}))]}),u({scales:F.scales,colors:F.colors,datasets:F.datasets,interactionState:{hoveredIndex:A?.pointIndex??null,selectedIndex:null},handlers:P,accessibility:B,hoveredPoint:A,toolbarState:h?{showTooltips:h.toolbarState?.showTooltips,showLegend:h.toolbarState?.showLegend,animationsEnabled:h.toolbarState?.animationsEnabled,showGrid:h.toolbarState?.showGrid}:void 0,config:n}),s&&h?.panEnabled&&t.jsxs("g",{className:"c-chart__crosshair",children:[t.jsx("line",{x1:0,y1:G/2,x2:U,y2:G/2,className:"c-chart__crosshair-line c-chart__crosshair-line--horizontal"}),t.jsx("line",{x1:U/2,y1:0,x2:U/2,y2:G,className:"c-chart__crosshair-line c-chart__crosshair-line--vertical"})]})]})}),t.jsx("div",{"aria-live":"polite",className:"u-visually-hidden",children:S})]})})));Di.displayName="ChartRenderer";const Pi=a.memo(a.forwardRef((({type:e,datasets:n=[],config:r={},renderContent:o,interactive:i=!0,enableRealTime:s=!1,enableAccessibility:l=!0,enablePerformanceOptimization:c=!0,onDataPointClick:d,...u},m)=>{const h=a.useCallback((e=>o(e)),[o]);return t.jsx(ji,{ref:m,type:e,datasets:n,config:r,...u,children:t.jsx(Di,{datasets:n,config:r,interactive:i,enableRealTime:s,enableAccessibility:l,enablePerformanceOptimization:c,onDataPointClick:d,renderContent:h})})})));Pi.displayName="BaseChart";const Bi=a.memo((({dataPoint:e,datasetLabel:n,datasetColor:o,position:i,visible:s,customRenderer:l})=>{const c=a.useRef(null),[d,u]=a.useState(i);return a.useEffect((()=>{if(!s||!c.current)return;const e=c.current.getBoundingClientRect(),t=window.innerWidth,a=window.innerHeight;let n=i.x,r=i.y;n=n+e.width>t-16?i.x-e.width-12:i.x+12,r=r+e.height>a-16?i.y-e.height-12:i.y-e.height/2,n=Math.max(16,Math.min(n,t-e.width-16)),r=Math.max(16,Math.min(r,a-e.height-16)),u({x:n,y:r})}),[i,s]),s&&e?r.createPortal(t.jsx("div",{ref:c,className:"c-chart__tooltip",style:{transform:`translate3d(${d.x}px, ${d.y}px, 0)`,opacity:s?1:0,visibility:s?"visible":"hidden",transition:"opacity 0.2s ease",position:"fixed",left:0,top:0,zIndex:1e3,pointerEvents:"none",willChange:"transform"},children:l?l(e):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"c-chart__tooltip-title",children:e.label}),t.jsxs("div",{className:"c-chart__tooltip-content",children:[n&&t.jsxs("div",{className:"c-chart__tooltip-dataset",children:[o&&t.jsx("div",{className:"c-chart__tooltip-color-indicator",style:{backgroundColor:o}}),t.jsxs("span",{className:"c-chart__tooltip-dataset-label",children:[n,":"]}),t.jsx("span",{className:"c-chart__tooltip-value",children:e.value})]}),e.metadata&&t.jsx("div",{className:"c-chart__tooltip-metadata",children:Object.entries(e.metadata).map((([e,a])=>t.jsxs("div",{className:"c-chart__tooltip-metadata-item",children:[t.jsxs("span",{className:"c-chart__tooltip-metadata-key",children:[e,":"]}),t.jsx("span",{className:"c-chart__tooltip-metadata-value",children:a+""})]},e)))})]})]})}),document.body):null}));Bi.displayName="ChartTooltip";const zi=a.memo(a.forwardRef((({datasets:e=[],config:a={},areaOptions:n={},onDataPointClick:r,...o},i)=>{const s={showArea:!0,fillOpacity:.3,useGradient:!0,...n};return t.jsx(Pi,{ref:i,type:"area",datasets:e,config:a,renderContent:({scales:e,colors:a,datasets:n,handlers:r,hoveredPoint:o,toolbarState:i,config:l})=>{if(!n.length)return null;const c=i?.showTooltips??l?.showTooltips??!0;return t.jsxs(t.Fragment,{children:[n.map(((n,i)=>{const l=n.color||a[i],c=n.data||[];if(0===c.length)return null;const d=c.map(((t,a)=>({x:e.xScale(a,c.length),y:e.yScale(t.value)}))),u=`M ${d.map((e=>`${e.x},${e.y}`)).join(" L ")} L ${d[d.length-1]?.x},${e.height} L ${d[0]?.x},${e.height} Z`;return t.jsxs("g",{children:[t.jsx("path",{d:u,fill:l,fillOpacity:s.fillOpacity||.3,className:"c-chart__area-fill"}),c.map(((a,n)=>{const s=e.xScale(n,c.length),d=e.yScale(a.value),u=o?.datasetIndex===i&&o?.pointIndex===n;return t.jsx("circle",{cx:s,cy:d,r:u?6:4,fill:l,stroke:"white",strokeWidth:u?2:1,className:"c-chart__area-point "+(u?"c-chart__area-point--hovered":""),onClick:()=>r.onDataPointClick?.(a,i,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();r.onPointHover(i,n,s,d,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:r.onPointLeave,style:{cursor:"pointer"}},"point-"+n)}))]},"dataset-"+i)})),c&&o&&t.jsx(Bi,{dataPoint:n[o.datasetIndex]?.data?.[o.pointIndex]??{label:"",value:0,color:""},datasetLabel:n[o.datasetIndex]?.label,datasetColor:n[o.datasetIndex]?.color||a[o.datasetIndex],position:{x:o.clientX,y:o.clientY},visible:!0})]})},onDataPointClick:r,...o})})));function Fi(e,t={}){const[n,r]=a.useState(null),[o,i]=a.useState(0),[s,l]=a.useState(!1),c=a.useCallback(((e,a,n,r={top:20,right:30,bottom:40,left:50},o=!1)=>{if(!e.length)return[];const i=a-r.left-r.right,s=n-r.top-r.bottom,l=e[0]?.data?.length||0,c=e.length;if(0===l)return[];const d=e.flatMap((e=>e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[])),u=Math.min(0,...d),m=Math.max(...d)-u,h=[],p=Array(l).fill(0);return e.forEach(((e,d)=>{e.data?.forEach(((e,g)=>{const f="number"==typeof e.value?e.value:0;if(isNaN(f)||!isFinite(f))return;let b,x,v,S;if(o){const e=s/l,a=e*(1-(t.groupPadding||.2));S=t.stacked?a:a/c,x=r.top+g*e+(e-a)/2,t.stacked||(x+=d*S*(1+(t.barPadding||.05))),b=r.left,v=(f-u)/m*i,t.stacked&&d>0?(b=r.left+(p[g]-u)/m*i,p[g]+=f):t.stacked&&(p[g]=f)}else{const e=i/l,a=e*(1-(t.groupPadding||.2));if(v=t.stacked?a:a/c,b=r.left+g*e+(e-a)/2,t.stacked||(b+=d*v*(1+(t.barPadding||.05))),S=(f-u)/m*s,x=n-r.bottom-S,t.stacked&&d>0){const e=(p[g]-u)/m*s;x=n-r.bottom-e-S,p[g]+=f}else t.stacked&&(p[g]=f)}if(t.minBarHeight&&(o?v:S)<t.minBarHeight&&(o?v=t.minBarHeight:(S=t.minBarHeight,x=n-r.bottom-S)),t.maxBarWidth&&(o?S:v)>t.maxBarWidth)if(o)S=t.maxBarWidth,x=r.top+g*(s/l)+(s/l-S)/2;else{v=t.maxBarWidth;const e=(a-r.left-r.right)/l;b=r.left+g*e+(e-v)/2}h.push({x:Math.max(b,0),y:Math.max(x,0),width:Math.max(v,0),height:Math.max(S,0),value:f,datasetIndex:d,pointIndex:g})}))})),h}),[t.stacked,t.groupPadding,t.barPadding,t.minBarHeight,t.maxBarWidth]),d=a.useCallback((()=>{if(!t.enableAnimations)return;l(!0),i(0);const e=t.animationDuration||1e3,a=Date.now(),n=()=>{const t=Date.now()-a,r=Math.min(t/e,1);i(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(n):l(!1)};requestAnimationFrame(n)}),[t.enableAnimations,t.animationDuration]),u=a.useCallback(((e,t,a,n,o,i)=>{r({datasetIndex:e,pointIndex:t,chartX:a,chartY:n,clientX:o,clientY:i})}),[]),m=a.useCallback((()=>{r(null)}),[]),h=a.useCallback((e=>t.useGradients?e.map(((e,t)=>{const a=e.color||`var(--atomix-color-${t+1})`;return{id:"bar-gradient-"+t,stops:[{offset:"0%",color:a,opacity:.8},{offset:"100%",color:a,opacity:.4}]}})):[]),[t.useGradients]),p=a.useCallback((e=>t.valueFormatter?t.valueFormatter(e):e.toString()),[t]);return{hoveredBar:n,animationProgress:o,isAnimating:s,calculateBarDimensions:c,generateGradients:h,getDataLabelPosition:a.useCallback(((e,a=!1)=>{const{x:n,y:r,width:o,height:i}=e;switch(t.dataLabelPosition){case"inside":case"center":default:return{x:n+o/2,y:r+i/2};case"outside":return{x:a?n+o+5:n+o/2,y:a?r+i/2:r-5}}}),[t]),handleBarHover:u,handleBarLeave:m,startAnimation:d,formatValue:p,setHoveredBar:r,setAnimationProgress:i,setIsAnimating:l}}zi.displayName="AreaChart";const Ui=a.memo(a.forwardRef((({datasets:e=[],config:a={},barOptions:n={},horizontal:r=!1,onDataPointClick:o,...i},s)=>{const{calculateBarDimensions:l,handleBarHover:c,handleBarLeave:d,hoveredBar:u,formatValue:m}=Fi(0,n);return t.jsx(Pi,{ref:s,type:"bar",datasets:e,config:a,renderContent:({scales:e,colors:a,datasets:o,handlers:i,hoveredPoint:s,toolbarState:c,config:d})=>{if(!o.length)return null;const u=c?.showTooltips??d?.showTooltips??!0,h=l(o,e.width,e.height,e.padding,r);return t.jsxs(t.Fragment,{children:[h.map(((e,r)=>{const l=o[e.datasetIndex];if(!l)return null;const c=l.data?.[e.pointIndex],d=l.color||a[e.datasetIndex],u=s?.datasetIndex===e.datasetIndex&&s?.pointIndex===e.pointIndex;return t.jsxs("g",{children:[t.jsx("rect",{x:e.x,y:e.y,width:e.width,height:e.height,fill:d,className:"c-chart__bar "+(u?"c-chart__bar--hovered":""),onClick:()=>c&&i.onDataPointClick?.(c,e.datasetIndex,e.pointIndex),onMouseEnter:t=>{const a=t.currentTarget.getBoundingClientRect();i.onPointHover(e.datasetIndex,e.pointIndex,e.x,e.y,a.left+a.width/2,a.top+a.height/2)},onMouseLeave:i.onPointLeave}),n.showValues&&t.jsx("text",{x:e.x+e.width/2,y:e.y-5,textAnchor:"middle",className:"c-chart__bar-value-label",children:m(e.value)})]},"bar-"+r)})),u&&s&&t.jsx(Bi,{dataPoint:o[s.datasetIndex]?.data?.[s.pointIndex],datasetLabel:o[s.datasetIndex]?.label,datasetColor:o[s.datasetIndex]?.color,position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:o,...i})})));Ui.displayName="BarChart";const Gi=a.memo(a.forwardRef((({bubbleData:e=[],config:a={},bubbleOptions:n={},onDataPointClick:r,...o},i)=>{const{minBubbleSize:s=5,maxBubbleSize:l=50,bubbleOpacity:c=.7,showLabels:d=!0,labelPosition:u="center",enableAnimations:m=!0,animationDuration:h=1e3,showSizeLegend:p=!0,sizeLegendTitle:g="Size",colorScheme:f=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],sizeBasedColoring:b=!1}=n,x=[{label:"Bubbles",data:e}];return t.jsx(Pi,{ref:i,type:"bubble",datasets:x,config:a,renderContent:({scales:a,colors:n,datasets:r,handlers:o,hoveredPoint:i,toolbarState:p,config:g})=>{if(!e.length)return null;const x=p?.showTooltips??g?.showTooltips??!0,v=e.map((e=>e.size)),S=Math.min(...v),y=Math.max(...v)-S||1,E=e.map(((e,n)=>{const r=s+(e.size-S)/y*(l-s),p=a.innerWidth-2*l,g=a.innerHeight-2*l,x=a.padding.left+l+e.x/100*p,v=a.padding.top+l+g-e.y/100*g;let E=e.color;if(!E)if(b){const t=Math.floor((f.length-1)*((e.size-S)/y));E=f[t]}else E=f[n%f.length];const A=i?.pointIndex===n;return t.jsxs("g",{children:[t.jsx("circle",{cx:x,cy:v,r:r,fill:E,opacity:c,className:"c-chart__bubble "+(A?"c-chart__bubble--hovered":""),style:m?{transition:`all ${h}ms ease`}:{},onClick:()=>o.onDataPointClick?.(e,0,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();o.onPointHover(0,n,x,v,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:o.onPointLeave}),d&&t.jsx("text",{x:x,y:v,textAnchor:"middle",dominantBaseline:"center"===u?"middle":"top"===u?"text-before-edge":"text-after-edge",className:"c-chart__bubble-label",children:e.label})]},"bubble-"+n)}));return t.jsxs(t.Fragment,{children:[E,x&&i&&i.pointIndex<e.length&&e[i.pointIndex]&&t.jsx(Bi,{dataPoint:e[i.pointIndex],datasetLabel:"Bubbles",datasetColor:e[i.pointIndex]?.color||f[i.pointIndex%f.length],position:{x:i.clientX,y:i.clientY},visible:!0})]})},onDataPointClick:r,...o})})));Gi.displayName="BubbleChart";const Vi=a.memo(a.forwardRef((({candlestickData:e=[],config:a={},candlestickOptions:n={},onDataPointClick:r,...o},i)=>{const{showVolume:s=!0,volumeHeightRatio:l=.2,upColor:c="var(--atomix-success-bg-subtle)",downColor:d="var(--atomix-error-bg-subtle)",wickColor:u="var(--atomix-brand-border-subtle)",borderColor:m="var(--atomix-primary-border-subtle)",showMovingAverages:h=!1,movingAveragePeriods:p=[7,21],movingAverageColors:g=["var(--atomix-warning-bg-subtle)","var(--atomix-warning-border-subtle)"],dateFormat:f="short",dateFormatter:b,showGrid:x=!0,gridColor:v="var(--atomix-brand-text-emphasis)",showTooltips:S=!0}=n;return t.jsx(Pi,{ref:i,type:"candlestick",datasets:[{label:"Candlestick Data",data:e.map((e=>({label:e.date.toString(),value:e.close,metadata:{open:e.open,high:e.high,low:e.low,close:e.close,volume:e.volume}})))}],config:a,renderContent:({scales:a,colors:r,datasets:o,handlers:i,hoveredPoint:f,toolbarState:b,config:S})=>{if(!e.length)return null;const y=b?.showTooltips??S?.showTooltips??n.showTooltips??!0,E=40,A=a.width-80,N=a.height-80,T=s?N*l:0,C=N-T,_=e.map((e=>e.high)),L=e.map((e=>e.low)),w=Math.min(...L),I=Math.max(..._),R=I-w||1,O=e.map((e=>e.volume||0)),k=Math.max(...O)||1,j=[];if(x){for(let e=0;5>=e;e++){const a=E+e/5*C;j.push(t.jsx("line",{x1:E,y1:a,x2:E+A,y2:a,stroke:v,strokeWidth:"0.5",strokeDasharray:"4 2"},"price-grid-"+e))}const a=Math.max(1,Math.floor(e.length/10));for(let n=0;n<e.length;n+=a){const a=E+n/(e.length-1)*A;j.push(t.jsx("line",{x1:a,y1:E,x2:a,y2:E+C,stroke:v,strokeWidth:"0.5",strokeDasharray:"4 2"},"time-grid-"+n))}}const M=e.map(((a,n)=>{const r=a.close<a.open?d:c,o=E+n/(e.length-1)*A,s=E+(I-a.high)/R*C,l=E+(I-a.low)/R*C,h=E+(I-a.open)/R*C,p=E+(I-a.close)/R*C,g=Math.min(h,p),f=Math.abs(h-p),b=Math.max(1,A/e.length*.8);return t.jsxs("g",{children:[t.jsx("line",{x1:o,y1:s,x2:o,y2:l,stroke:u,strokeWidth:"1",className:"c-chart__candlestick-wick"}),t.jsx("rect",{x:o-b/2,y:g,width:b,height:f||1,fill:r,stroke:m,strokeWidth:"1",className:"c-chart__candlestick-candle",onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();i.onPointHover(0,n,o,s,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:i.onPointLeave,onClick:()=>i.onDataPointClick?.(a,0,n)})]},"candle-"+n)})),D=[];if(s){const a=E+C+20;e.forEach(((n,r)=>{if(!n.volume)return;const o=n.close<n.open?d:c,i=E+r/(e.length-1)*A,s=n.volume/k*(T-20),l=Math.max(1,A/e.length*.6);D.push(t.jsx("rect",{x:i-l/2,y:a+T-s,width:l,height:s,fill:o,fillOpacity:"0.7",className:"c-chart__candlestick-volume"},"volume-"+r))}))}const P=[];return h&&p.forEach(((a,n)=>{const r=((e,t)=>{const a=[];for(let r=0;r<e.length;r++){var n;if(t-1>r){a.push(NaN);continue}const o=di(n=e.slice(r-t+1,r+1)).call(n,((e,t)=>e+t.close),0);a.push(o/t)}return a})(e,a),o=g?.[n]||"var(--atomix-warning)",i=r.map(((t,a)=>isNaN(t)?null:{x:E+a/(e.length-1)*A,y:E+(I-t)/R*C})).filter(Boolean);if(i.length>1){const e="M "+i.map((e=>`${e.x},${e.y}`)).join(" L ");P.push(t.jsx("path",{d:e,stroke:o,strokeWidth:"1",fill:"none",strokeDasharray:"5,5"},"ma-"+a))}})),t.jsxs(t.Fragment,{children:[j,M,D,P,y&&f&&e[f.pointIndex]&&t.jsx(Bi,{dataPoint:e[f.pointIndex],datasetLabel:"Candlestick",position:{x:f.clientX,y:f.clientY},visible:!0})]})},onDataPointClick:r,...o})})));Vi.displayName="CandlestickChart";const Hi=a.memo(a.forwardRef((({datasets:e=[],config:n={},pieOptions:r={showValues:!1,showPercentages:!0,showLabels:!1,startAngle:0,sortByValue:!1,padAngle:1},donutOptions:o={innerRadiusRatio:.6,showTotal:!0,centerLabel:"Total",centerValue:void 0,roundedCorners:!0},onDataPointClick:i,...s},l)=>{const c=a.useMemo((()=>e.length>0?e[0]:{label:"",data:[]}),[e]),d=a.useMemo((()=>{if(!c?.data?.length)return null;const e=(c?.data||[]).filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return e.length?{validDataPoints:e}:null}),[c]);return t.jsx(Pi,{ref:l,type:"donut",datasets:e,config:n,renderContent:({scales:e,colors:a,datasets:n,handlers:i,hoveredPoint:s,toolbarState:l,config:u})=>{var m;if(!d)return null;const h=e.width,p=e.height,g=Math.min(h,p)/2*.8,f=g*(o.innerRadiusRatio??.6),b=h/2,x=p/2,v=["var(--atomix-primary-2)","var(--atomix-primary-3)","var(--atomix-primary-4)","var(--atomix-primary-5)","var(--atomix-primary-6)","var(--atomix-primary-7)","var(--atomix-primary-8)","var(--atomix-primary-9)"],S=c?.color?[c.color]:c?.data?.map(((e,t)=>v[t%v.length]))||v,y=di(m=d.validDataPoints).call(m,((e,t)=>e+t.value),0),E=(r.padAngle||1)*Math.PI/180;let A=(r.startAngle||0)*Math.PI/180;const N=d.validDataPoints.map(((e,t)=>{const a=e.value/y*(2*Math.PI)-E,n=A,r=A+a,o=(n+r)/2,i=.75*g,s=b+Math.cos(o)*i,l=x+Math.sin(o)*i,c=b+f*Math.cos(n),d=x+f*Math.sin(n),u=a>Math.PI?1:0,m=[`M ${c} ${d}`,`L ${b+g*Math.cos(n)} ${x+g*Math.sin(n)}`,`A ${g} ${g} 0 ${u} 1 ${b+g*Math.cos(r)} ${x+g*Math.sin(r)}`,`L ${b+f*Math.cos(r)} ${x+f*Math.sin(r)}`,`A ${f} ${f} 0 ${u} 0 ${c} ${d}`,"Z"].join(" ");return A=r+E,{path:m,color:e.color||S[t],labelPosition:{x:s,y:l},dataPoint:e,value:e.value,percentage:e.value/y*100}})),T=l?.showTooltips??u?.showTooltips??!0;return t.jsxs(t.Fragment,{children:[N.map(((e,a)=>{const n=s?.pointIndex===a;return t.jsxs("g",{children:[t.jsx("path",{d:e.path,fill:e.color,className:"c-chart__donut-slice "+(n?"c-chart__donut-slice--hovered":""),onClick:()=>i.onDataPointClick?.(e.dataPoint,0,a),onMouseEnter:t=>{const n=t.currentTarget.getBoundingClientRect();i.onPointHover(0,a,e.labelPosition.x,e.labelPosition.y,n.left+n.width/2,n.top+n.height/2)},onMouseLeave:i.onPointLeave}),r.showLabels&&t.jsx("text",{x:e.labelPosition.x,y:e.labelPosition.y,textAnchor:"middle",className:"c-chart__donut-label",children:e.dataPoint.label}),r.showPercentages&&t.jsxs("text",{x:e.labelPosition.x,y:e.labelPosition.y+20,textAnchor:"middle",className:"c-chart__donut-percentage",children:[e.percentage.toFixed(1),"%"]})]},"slice-"+a)})),o.showTotal&&t.jsxs("g",{children:[t.jsx("text",{x:b,y:x-10,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-label",children:o.centerLabel}),t.jsx("text",{x:b,y:x+20,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-value",children:void 0!==o.centerValue?o.centerValue:y.toLocaleString()})]}),T&&s&&s.pointIndex<N.length&&N[s.pointIndex]&&t.jsx(Bi,{dataPoint:N[s.pointIndex].dataPoint,datasetLabel:c?.label,datasetColor:N[s.pointIndex]?.color,position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:i,...s})})));Hi.displayName="DonutChart";const $i=a.memo(a.forwardRef((({funnelData:e=[],config:a={},funnelOptions:n={},onDataPointClick:r,...o},i)=>{const{direction:s="vertical",showLabels:l=!0,showValues:c=!0,showPercentages:d=!1,labelPosition:u="outside",neckWidth:m=.3,neckHeight:h=.2,segmentGap:p=2,colorScheme:g=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],useGradient:f=!0,animate:b=!0,animationDuration:x=1e3,animationDelay:v=200,valueFormatter:S=e=>e.toLocaleString(),showConversionRates:y=!0,conversionRatePosition:E="between",proportional:A=!0,minSegmentRatio:N=.1}=n,T=[{label:"Funnel Data",data:e}];return t.jsx(Pi,{ref:i,type:"funnel",datasets:T,config:a,renderContent:({scales:a,colors:n,datasets:r,handlers:o,hoveredPoint:i,toolbarState:u,config:h})=>{if(!e.length)return null;const f=u?.showTooltips??h?.showTooltips??!0,T=a.width-120,C=a.height-120,_=Math.max(...e.map((e=>e.value))),L=e.map(((t,a)=>{const n=t.value/_*100,r=a>0&&e[a-1]?t.value/e[a-1].value*100:100;return{...t,percentage:n,conversionRate:r,index:a}})),w=[];if("vertical"===s){const a=(C-(e.length-1)*p)/e.length;L.forEach(((n,r)=>{const i=60+r*(a+p);let s;if(A){const e=Math.max(n.percentage/100,N);s=T*e}else{const t=Math.max(1-r/(e.length-1)*(1-m),N);s=T*t}const u=60+(T-s)/2;let h=n.color||g[r%g.length];const f=L[r+1];let C;if(f)if(A){const e=Math.max(f.percentage/100,N);C=T*e}else{const t=Math.max(1-(r+1)/(e.length-1)*(1-m),N);C=T*t}else C=s*m;const _=60+(T-C)/2,I=i+a,R=`\n M ${u} ${i}\n L ${u+s} ${i}\n L ${_+C} ${I}\n L ${_} ${I}\n Z\n `;w.push(t.jsxs("g",{children:[t.jsx("path",{d:R,fill:h,className:"c-chart__funnel-segment",style:{transition:b?`all ${x}ms cubic-bezier(0.25, 0.1, 0.25, 1) ${r*v}ms`:"none"},onClick:()=>o.onDataPointClick?.(n,0,r)}),(l||c||d)&&t.jsxs("text",{x:u+s/2,y:i+a/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__funnel-label",children:[l&&n.label,c&&t.jsx("tspan",{x:u+s/2,dy:"1.2em",children:S(n.value)}),d&&t.jsxs("tspan",{x:u+s/2,dy:"1.2em",children:[n.percentage.toFixed(1),"%"]})]})]},"segment-"+r)),y&&f&&"between"===E&&w.push(t.jsxs("text",{x:u+s/2,y:i+a+p/2,textAnchor:"middle",className:"c-chart__funnel-conversion",children:["↓ ",n.conversionRate.toFixed(1),"%"]},"conversion-"+r))}))}return t.jsxs(t.Fragment,{children:[t.jsx("g",{children:w}),f&&i&&e[i.pointIndex]&&t.jsx(Bi,{dataPoint:e[i.pointIndex],datasetLabel:"Funnel Data",datasetColor:e[i.pointIndex]?.color||n[i.pointIndex%n.length],position:{x:i.clientX,y:i.clientY},visible:!0})]})},onDataPointClick:r,...o})})));$i.displayName="FunnelChart";const Yi=a.memo(a.forwardRef((({value:e,min:a=0,max:n=100,config:r={},gaugeOptions:o={},onDataPointClick:i,...s},l)=>{const{startAngle:c=180,endAngle:d=0,thickness:u=.2,showNeedle:m=!0,needleColor:h="var(--atomix-brand-text-emphasis)",showValue:p=!0,valueFormatter:g=e=>e.toFixed(1),showMinMaxLabels:f=!0,showTicks:b=!0,majorTicks:x=5,minorTicks:v=4,colorZones:S=[],animate:y=!0,animationDuration:E=1e3,animationEasing:A="easeOutCubic",useGradient:N=!1,label:T="",labelPosition:C="bottom"}=o,_=[{label:"Gauge Value",data:[{label:"Value",value:e}]}];return t.jsx(Pi,{ref:l,type:"gauge",datasets:_,config:r,renderContent:({scales:r,colors:o,datasets:i,handlers:s,hoveredPoint:l,toolbarState:N,config:_})=>{const L=r.width,w=N?.animationsEnabled??_?.animate??y,I=r.height,R=L/2,O=I/2,k=Math.min(L,I)/2*.9,j=-c*Math.PI/180,M=-d*Math.PI/180,D=M-j,P=Math.min(Math.max(e,a),n),B=j+(P-a)/(n-a)*D,z=(e,t,a,n,r,o)=>{const i=a*(1-o),s=e+a*Math.cos(n),l=t+a*Math.sin(n),c=e+a*Math.cos(r),d=t+a*Math.sin(r),u=e+i*Math.cos(r),m=t+i*Math.sin(r),h=e+i*Math.cos(n),p=t+i*Math.sin(n),g=Math.abs(r-n)>Math.PI?1:0,f=r>n?1:0;return`M ${s} ${l} \n A ${a} ${a} 0 ${g} ${f} ${c} ${d}\n L ${u} ${m}\n A ${i} ${i} 0 ${g} ${1-f} ${h} ${p}\n Z`},F=[];for(const e of S){const r=j+(e.from-a)/(n-a)*D,o=j+(e.to-a)/(n-a)*D;F.push(t.jsx("path",{d:z(R,O,k,r,o,u),fill:e.color},`zone-${e.from}-${e.to}`))}const U=[];if(b){const e=k*(1-u);for(let r=0;x>=r;r++){const o=a+r/x*(n-a),i=j+r/x*D,s=e-2,l=.05*k,c=R+s*Math.cos(i),d=O+s*Math.sin(i),u=R+(s-l)*Math.cos(i),m=O+(s-l)*Math.sin(i);if(U.push(t.jsx("line",{x1:c,y1:d,x2:u,y2:m,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"2"},"major-tick-"+r)),f){const e=s-l-15,a=R+e*Math.cos(i),n=O+e*Math.sin(i);U.push(t.jsx("text",{x:a,y:n,textAnchor:"middle",dominantBaseline:"central",fontSize:"12",fill:"var(--atomix-brand-text-emphasis)",children:o},"label-"+r))}}for(let a=0;x*v>=a;a++){if(a%v==0)continue;const n=j+a/(x*v)*D,r=e-2,o=.025*k,i=R+r*Math.cos(n),s=O+r*Math.sin(n),l=R+(r-o)*Math.cos(n),c=O+(r-o)*Math.sin(n);U.push(t.jsx("line",{x1:i,y1:s,x2:l,y2:c,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"1"},"minor-tick-"+a))}}const G=k*(1-u),V=m?t.jsxs("g",{children:[t.jsx("line",{x1:R,y1:O,x2:R+(G-15)*Math.cos(B),y2:O+(G-15)*Math.sin(B),stroke:h,strokeWidth:"4",strokeLinecap:"round"}),t.jsx("circle",{cx:R,cy:O,r:"8",fill:h}),t.jsx("circle",{cx:R,cy:O,r:"3",fill:"var(--atomix-primary-bg, #fff)"})]}):null,H=p?t.jsx("text",{x:R,y:O+35,textAnchor:"middle",fontSize:"32",fontWeight:"bold",fill:"var(--atomix-primary-text-emphasis)",children:g(P)}):null,$=T?t.jsx("text",{x:R,y:"top"===C?O-.7*k:O+.7*k+10,textAnchor:"middle",fontSize:"16",fill:"var(--atomix-brand-text-emphasis)",children:T}):null;return t.jsxs("g",{children:[t.jsx("path",{d:z(R,O,k,j,M,u),fill:"var(--atomix-secondary-bg-subtle)"}),F,t.jsx("path",{d:z(R,O,k,j,B,u),fill:"var(--atomix-brand-bg-subtle)",style:{transition:w?`all ${E}ms ${A}`:"none"}}),U,V,H,$]})},onDataPointClick:i,...s})})));Yi.displayName="GaugeChart";const Ki={viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],plasma:["#0d0887","#5302a3","#8b0aa5","#b83289","#db5c68","#f48849","#febd2a","#f0f921"],inferno:["#000004","#1b0c41","#4b0c6b","#781c6d","#a52c60","#cf4446","#ed6925","#fb9b06","#fcffa4"],magma:["#000004","#1c1044","#4f127b","#812581","#b5367a","#e55964","#fb8761","#fec287","#fcfdbf"],blues:["var(--atomix-blue-1)","var(--atomix-blue-2)","var(--atomix-blue-3)","var(--atomix-blue-4)","var(--atomix-blue-5)","var(--atomix-blue-6)","var(--atomix-blue-7)","var(--atomix-blue-8)","var(--atomix-blue-9)"],reds:["var(--atomix-red-1)","var(--atomix-red-2)","var(--atomix-red-3)","var(--atomix-red-4)","var(--atomix-red-5)","var(--atomix-red-6)","var(--atomix-red-7)","var(--atomix-red-8)","var(--atomix-red-9)"],greens:["var(--atomix-green-1)","var(--atomix-green-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)","var(--atomix-green-7)","var(--atomix-green-8)","var(--atomix-green-9)"],github:["var(--atomix-gray-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)"]},Wi=a.memo(a.forwardRef((({data:e=[],config:n={},colorScale:r={scheme:"blues",steps:9},cellConfig:o={spacing:2,borderRadius:4,showLabels:!1},showColorLegend:i=!0,showGrid:s=!0,onDataPointClick:l,...c},d)=>{const[u,m]=a.useState(null),h=a.useMemo((()=>{if(!e.length)return{matrix:[],xLabels:[],yLabels:[]};const t=Array.from(new Set(e.map((e=>e.x)))).sort(),a=Array.from(new Set(e.map((e=>e.y)))).sort(),n=[];return a.forEach((a=>{const r=[];t.forEach((t=>{const n=e.find((e=>e.x===t&&e.y===a));r.push(n||null)})),n.push(r)})),{matrix:n,xLabels:t,yLabels:a}}),[e]),p=a.useCallback((t=>{if(!h.matrix.length)return"var(--atomix-secondary-bg-subtle)";let a,n=r.min,o=r.max;if(void 0===n||void 0===o){const t=e.filter((e=>void 0!==e.value)).map((e=>e.value));void 0===n&&(n=Math.min(...t)),void 0===o&&(o=Math.max(...t))}if("custom"===r.scheme&&r.colors)a=r.colors;else{const e=r.scheme;a=Ki[e]||Ki.viridis}const i=r.steps||a.length,s=o-n;return 0===s?a[0]:a[Math.floor(Math.min(Math.floor((t-n)/s*i),i-1)/i*(a.length-1))]}),[h,r,e]),g=[{label:"Heatmap Data",data:e.map((e=>({...e,label:e.label||`${e.x}, ${e.y}`,value:e.value})))}];return t.jsx(Pi,{ref:d,type:"heatmap",datasets:g,config:n,renderContent:({scales:a,colors:n,datasets:s,handlers:l,hoveredPoint:c,toolbarState:d,config:g})=>{const{matrix:f,xLabels:b,yLabels:x}=h,v=d?.showTooltips??g?.showTooltips??!0;if(!f.length)return null;const S=o.spacing??2,y=o.borderRadius??4,{width:E,height:A}=a,N=Math.max(0,E-60-(20+(i?60:0))),T=Math.max(0,A-20-40),C=Math.max(1,b.length),_=Math.max(1,x.length),L=Math.max(2,Math.floor((N-(C-1)*S)/C)),w=Math.max(2,Math.floor((T-(_-1)*S)/_)),I=o.width||L,R=o.height||w,O=C*I+(C-1)*S,k=_*R+(_-1)*S,j=60+Math.max(0,(N-O)/2),M=20+Math.max(0,(T-k)/2);return t.jsxs(t.Fragment,{children:[t.jsxs("g",{children:[t.jsx("defs",{children:i&&(()=>{const e=Ki[r.scheme]||Ki.viridis;return e&&0!==e.length?t.jsx("linearGradient",{id:"heatmap-legend-gradient",x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:e.map(((a,n)=>t.jsx("stop",{offset:n/(e.length-1)*100+"%",stopColor:a},n)))}):null})()}),f.map(((a,n)=>a.map(((a,r)=>{if(!a)return null;const i=j+r*(I+S),s=M+n*(R+S),c=p(a.value),d=u===a;return t.jsxs("g",{children:[t.jsx("rect",{x:i,y:s,width:I,height:R,rx:y,ry:y,fill:c,className:"c-chart__heatmap-cell "+(d?"c-chart__heatmap-cell--hovered":""),onClick:()=>{a&&l.onDataPointClick?.({...a,label:a.label||`${a.x}, ${a.y}`,value:a.value},n,r)},onMouseEnter:t=>{m(a);const n=e.findIndex((e=>e.x===a.x&&e.y===a.y)),r=t.currentTarget.getBoundingClientRect();l.onPointHover(0,0>n?0:n,i,s,r.left+r.width/2,r.top+r.height/2)},onMouseLeave:()=>{m(null),l.onPointLeave()}}),o.showLabels&&a.label&&t.jsx("text",{x:i+I/2,y:s+R/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__heatmap-label",children:a.label})]},`cell-${n}-${r}`)})))),b.map(((e,a)=>{const n=j+a*(I+S)+I/2,r=M+f.length*(R+S)+20;return t.jsx("text",{x:n,y:r,textAnchor:"middle",className:"c-chart__heatmap-axis-label",children:e+""},"x-label-"+a)})),x.map(((e,a)=>{const n=j-20,r=M+a*(R+S)+R/2;return t.jsx("text",{x:n,y:r,textAnchor:"end",dominantBaseline:"middle",className:"c-chart__heatmap-axis-label",children:e+""},"y-label-"+a)})),i&&t.jsxs("g",{transform:`translate(${j+O+20}, ${M})`,children:[t.jsx("rect",{x:"0",y:"0",width:"12",height:k,fill:"url(#heatmap-legend-gradient)",stroke:"var(--atomix-border-color)",className:"c-chart__grid",rx:y,ry:y}),t.jsx("text",{x:"-5",y:"-10",className:"c-chart__heatmap-legend-title",children:"Values"}),t.jsx("text",{x:"20",y:"8",textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"High"}),t.jsx("text",{x:"20",y:k,textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"Low"})]})]}),v&&c&&s[c.datasetIndex]?.data?.[c.pointIndex]&&t.jsx(Bi,{dataPoint:s[c.datasetIndex].data[c.pointIndex],datasetLabel:s[c.datasetIndex]?.label,datasetColor:s[c.datasetIndex]?.color||n[c.datasetIndex%n.length],position:{x:c.clientX,y:c.clientY},visible:!0})]})},onDataPointClick:l,...c})})));function qi(e,t={}){const[n,r]=a.useState(1),[o,i]=a.useState({x:0,y:0}),[s,l]=a.useState(null),c=a.useCallback(((e,t)=>{const a=[];for(let r=t-1;r<e.length;r++){var n;const o=di(n=e.slice(r-t+1,r+1)).call(n,((e,t)=>e+t.value),0)/t,i=e[r];i&&a.push({label:i.label,value:o,color:"rgba(255, 255, 255, 0.5)"})}return a}),[]),d=a.useCallback((e=>{const t=e.length;if(2>t)return e.map((()=>null));const a=di(e).call(e,((e,t,a)=>e+a),0),n=di(e).call(e,((e,t)=>e+t.value),0),r=(t*di(e).call(e,((e,t,a)=>e+a*t.value),0)-a*n)/(t*di(e).call(e,((e,t,a)=>e+a*a),0)-a*a),o=(n-r*a)/t;return e.map(((e,t)=>({label:e.label,value:r*t+o,color:"rgba(255, 255, 255, 0.3)"})))}),[]),u=a.useCallback(((e,t=.4)=>{if(2>e.length)return"";const a=e.map(((a,n)=>{if(0===n||n===e.length-1)return{cp1x:a.x,cp1y:a.y,cp2x:a.x,cp2y:a.y};const r=e[n-1],o=e[n+1];if(!r||!o)return{cp1x:a.x,cp1y:a.y,cp2x:a.x,cp2y:a.y};const i=o.x-r.x,s=o.y-r.y;return{cp1x:a.x-i*t,cp1y:a.y-s*t,cp2x:a.x+i*t,cp2y:a.y+s*t}})),n=e[0];if(!n)return"";let r=`M ${n.x},${n.y}`;for(let o=1;o<e.length;o++){const t=a[o-1],n=a[o],i=e[o];t&&n&&i&&(r+=` C ${t.cp2x},${t.cp2y} ${n.cp1x},${n.cp1y} ${i.x},${i.y}`)}return r}),[]),m=a.useCallback(((e,a,o)=>{if(!t.enableZoom)return;const s=Math.max(.1,Math.min(10,n*(e>0?.9:1.1)));r(s);const l=s/n;i((e=>({x:a-(a-e.x)*l,y:o-(o-e.y)*l})))}),[n,t.enableZoom]),h=a.useCallback(((e,a)=>{t.enablePan&&i((t=>({x:t.x+e,y:t.y+a})))}),[t.enablePan]),p=a.useCallback((()=>{r(1),i({x:0,y:0})}),[]),g=a.useCallback(((e,t,a,n,r,o)=>{l({datasetIndex:e,pointIndex:t,x:a,y:n,clientX:r,clientY:o})}),[]),f=a.useCallback((()=>{l(null)}),[]),b=a.useMemo((()=>e.map((e=>{const a={...e};return t.showMovingAverages&&t.movingAveragePeriods&&(a.movingAverages=t.movingAveragePeriods.map((t=>({period:t,data:c(e.data,t)})))),t.showTrendLines&&(a.trendLine=d(e.data)),a}))),[e,t.showMovingAverages,t.movingAveragePeriods,t.showTrendLines,c,d]);return{zoomLevel:n,panOffset:o,hoveredPoint:s,processedDatasets:b,handleZoom:m,handlePan:h,resetView:p,handlePointHover:g,handlePointLeave:f,calculateMovingAverage:c,calculateTrendLine:d,generateSmoothPath:u,setZoomLevel:r,setPanOffset:i,setHoveredPoint:l}}Wi.displayName="HeatmapChart";const Qi=a.memo(a.forwardRef((({datasets:e=[],config:a={},lineOptions:n={},onDataPointClick:r,onRealTimeUpdate:o,onZoomChange:i,onPanChange:s,onBrushSelection:l,...c},d)=>{const u={showDataPoints:!0,lineWidth:2,pointRadius:4,smooth:!1,tension:.4,showArea:!1,fillOpacity:.3,showPointLabels:!1,...n},{processedDatasets:m,generateSmoothPath:h,calculateMovingAverage:p,handlePointHover:g,handlePointLeave:f,hoveredPoint:b}=qi(e,u);return t.jsx(Pi,{ref:d,type:"line",datasets:m,config:a,renderContent:({scales:e,colors:a,datasets:n,handlers:r,hoveredPoint:o,toolbarState:i,config:s})=>{if(!n.length)return null;const l=i?.showTooltips??s?.showTooltips??!0;return i?.animationsEnabled??s?.animate??u.smooth,t.jsxs(t.Fragment,{children:[n.map(((n,i)=>{const s=n.color||a[i],l=n.data?.length||0;if(0===l)return null;const c=n.data?.map(((t,a)=>({x:e.xScale(a,l),y:e.yScale(t.value)})))||[],d=u.smooth?h(c):"M "+c.map((e=>`${e.x},${e.y}`)).join(" L ");return t.jsxs("g",{children:[u.showArea&&t.jsx("path",{d:`${d} L ${c[c.length-1]?.x||0},${e.yScale(0)} L ${c[0]?.x||0},${e.yScale(0)} Z`,fill:s,fillOpacity:u.fillOpacity||.3,className:"c-chart__area-path"}),t.jsx("path",{d:d,stroke:s,strokeWidth:u.lineWidth||2,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:"c-chart__line-path"}),u.showDataPoints&&n.data?.map(((a,n)=>{const c=e.xScale(n,l),d=e.yScale(a.value),m=o?.datasetIndex===i&&o?.pointIndex===n;return t.jsxs("g",{children:[t.jsx("circle",{cx:c,cy:d,r:m?1.5*u.pointRadius:u.pointRadius,fill:s,stroke:"white",strokeWidth:m?2:1,className:"c-chart__data-point "+(m?"c-chart__data-point--hovered":""),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();r.onPointHover(i,n,c,d,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:r.onPointLeave,onClick:()=>r.onDataPointClick?.(a,i,n),style:{cursor:"pointer"}}),u.showPointLabels&&t.jsx("text",{x:c,y:d-15,textAnchor:"middle",fontSize:"12",fill:s,className:"c-chart__point-label",children:a.value})]},"point-"+n)}))]},"dataset-"+i)})),l&&o&&n[o.datasetIndex]?.data?.[o.pointIndex]&&t.jsx(Bi,{dataPoint:n[o.datasetIndex].data[o.pointIndex],datasetLabel:n[o.datasetIndex]?.label,datasetColor:n[o.datasetIndex]?.color,position:{x:o.clientX,y:o.clientY},visible:!0})]})},onDataPointClick:r,interactive:!0,enableAccessibility:!0,...c})})));Qi.displayName="LineChart";const Xi=a.memo(a.forwardRef((({datasets:e=[],config:a={},yAxes:n=[],xAxes:r=[],multiAxisOptions:o={},onDataPointClick:i,...s},l)=>{const{showLegend:c=!0,legendPosition:d="top",syncAxes:u=!1,axisPadding:m=20,showTooltips:h=!0,tooltipPosition:p="nearest",interpolation:g="linear",showArea:f=!1,areaOpacity:b=.3,showDataPoints:x=!0,pointRadius:v=4,spanGaps:S=!1}=o;return t.jsx(Pi,{ref:l,type:"line",datasets:e,config:a,renderContent:({scales:a,colors:o,datasets:i,handlers:s,hoveredPoint:l,toolbarState:u,config:m})=>{if(!e.length)return null;const h=u?.showGrid??!0,p=60,g=a.width-120,S=a.height-120,y=n.length?n:[{id:"y-axis-1",position:"left",label:"Y Axis"}],E=r.length?r:[{id:"x-axis-1",position:"bottom",label:"X Axis"}],A={};e.forEach(((e,t)=>{const a=e.yAxisId||y[0]?.id||"y-axis-1";A[a]||(A[a]=[]),A[a].push({...e,index:t})}));const N={};Object.entries(A).forEach((([e,t])=>{const a=t.flatMap((e=>e.data.map((e=>e.value)))),n=Math.min(...a),r=Math.max(...a),o=r-n||1;N[e]={min:n,max:r,scale:S/o}}));const T=[];if(h)for(let e=0;5>=e;e++){const a=p+e/5*S;T.push(t.jsx("line",{x1:p,y1:a,x2:p+g,y2:a,className:"c-chart__grid"},"grid-"+e))}if(e.forEach(((e,a)=>{const n=e.yAxisId||y[0]?.id||"y-axis-1",r=N[n],i=e.color||o[a%o.length],l=e.data.map(((t,a)=>({x:p+a/(e.data.length-1)*g,y:r?p+S-(t.value-r.min)*r.scale:0})));let c="";if(l.length>0&&(c="M "+l.map((e=>`${e.x},${e.y}`)).join(" L ")),f&&c){const e=`${c} L ${p+g},${p+S} L 60,${p+S} Z`;T.push(t.jsx("path",{d:e,fill:i,fillOpacity:b},"area-"+a))}T.push(t.jsx("path",{d:c,stroke:i,fill:"none",className:"c-chart__data-line"},"line-"+a)),x&&l.forEach(((n,r)=>{const o=e.data[r];o&&T.push(t.jsx("circle",{cx:n.x,cy:n.y,r:v,fill:i,onClick:()=>s.onDataPointClick?.(o,a,r)},`point-${a}-${r}`))}))})),y.forEach((e=>{T.push(t.jsx("line",{x1:p,y1:p,x2:p,y2:p+S,stroke:e.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"y-axis-"+e.id))})),E.forEach((e=>{T.push(t.jsx("line",{x1:p,y1:p+S,x2:p+g,y2:p+S,stroke:e.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"x-axis-"+e.id))})),c){const n="top"===d?20:a.height-30;e.forEach(((a,r)=>{const i=a.color||o[r%o.length],s=p+r*g/e.length;T.push(t.jsxs("g",{children:[t.jsx("rect",{x:s,y:n,width:"12",height:"12",fill:i,className:"c-chart__legend-item-color"}),t.jsx("text",{x:s+16,y:n+10,className:"c-chart__legend-item-text",children:a.label})]},"legend-"+r))}))}return t.jsx("g",{children:T})},onDataPointClick:i,...s})})));function Zi(e,t={}){const[n,r]=a.useState(null),[o,i]=a.useState(new Set),[s,l]=a.useState(0),[c,d]=a.useState(!1),u=a.useMemo((()=>{const a=e.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return a.length?t.sortByValue?[...a].sort(((e,t)=>t.value-e.value)):a:[]}),[e,t.sortByValue]),m=a.useMemo((()=>di(u).call(u,((e,t)=>e+t.value),0)),[u]),h=a.useMemo((()=>{if(!u.length||0>=m)return[];const e=400,a=200,n=150,r=n*(t.innerRadius||0),o=["#7AFFD7","#1AFFD2","#00E6C3","#4DFF9F","#1AFF85","#00E66B","#DD6061","#FF1A1A","#E60000","#FFCC00","#E6B800","#B38F00"];let i=(t.startAngle||0)*Math.PI/180;const s=(t.padAngle||1)*Math.PI/180;return u.map(((t,l)=>{const c=t.value/m,d=2*c*Math.PI-s,u=i+d,h=i+d/2,p=e+n*Math.cos(i),g=a+n*Math.sin(i),f=e+n*Math.cos(u),b=a+n*Math.sin(u),x=d>Math.PI?1:0;let v;v=r>0?[`M ${p},${g}`,`A 150,150 0 ${x},1 ${f},${b}`,`L ${e+r*Math.cos(u)},${a+r*Math.sin(u)}`,`A ${r},${r} 0 ${x},0 ${e+r*Math.cos(i)},${a+r*Math.sin(i)}`,"Z"].join(" "):["M 400,200",`L ${p},${g}`,`A 150,150 0 ${x},1 ${f},${b}`,"Z"].join(" ");const S=(n+r)/2||105,y=e+S*Math.cos(h),E=a+S*Math.sin(h),A={dataPoint:t,index:l,startAngle:i,endAngle:u,midAngle:h,color:t.color||o[l%o.length],percentage:100*c,value:t.value,label:t.label,path:v,labelPosition:{x:y,y:E}};return i=u+s,A}))}),[u,m,t.innerRadius,t.startAngle,t.padAngle]),p=a.useCallback((()=>{if(!t.enableAnimations)return;d(!0),l(0);const e=t.animationDuration||1e3,a=Date.now(),n=()=>{const t=Date.now()-a,r=Math.min(t/e,1);l(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(n):d(!1)};requestAnimationFrame(n)}),[t.enableAnimations,t.animationDuration]),g=a.useCallback(((e,t,a)=>{r(e)}),[]),f=a.useCallback((()=>{r(null)}),[]),b=a.useCallback((e=>{t.enableSelection&&i((t=>{const a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a}))}),[t.enableSelection]),x=a.useCallback((e=>{if(t.labelFormatter)return t.labelFormatter(e.value,e.percentage,e.label);const a=[];return!1!==t.showLabels&&a.push(e.label),t.showPercentages&&a.push(Math.round(e.percentage)+"%"),t.showValues&&a.push(e.value.toString()),a.join(" - ")}),[t]),v=a.useCallback(((e,a)=>a&&t.enableHoverEffects&&t.hoverOffset?`translate(${Math.cos(e.midAngle)*t.hoverOffset}, ${Math.sin(e.midAngle)*t.hoverOffset})`:""),[t.enableHoverEffects,t.hoverOffset]),S=a.useCallback((e=>o.has(e)),[o]);return{processedData:u,slices:h,totalValue:m,hoveredSlice:n,selectedSlices:o,animationProgress:s,isAnimating:c,handleSliceHover:g,handleSliceLeave:f,handleSliceClick:b,startAnimation:p,formatLabel:x,getSliceTransform:v,isSliceSelected:S,setHoveredSlice:r,setSelectedSlices:i,setAnimationProgress:l,setIsAnimating:d}}Xi.displayName="MultiAxisChart";const Ji=a.memo(a.forwardRef((({datasets:e=[],config:a={},pieOptions:n={},onDataPointClick:r,...o},i)=>{const s=e[0]?.data||[],{slices:l,handleSliceHover:c,handleSliceLeave:d,handleSliceClick:u,formatLabel:m,hoveredSlice:h,selectedSlices:p}=Zi(s,n);return t.jsx(Pi,{ref:i,type:"pie",datasets:e,config:a,renderContent:({scales:e,colors:a,datasets:r,handlers:o,hoveredPoint:i,toolbarState:c,config:d})=>{if(!l.length)return null;const h=e.width,p=e.height,g=h/2,f=p/2,b=Math.min(h,p)/2*.8,x=l.map((e=>{const t=g+b*Math.cos(e.startAngle),a=f+b*Math.sin(e.startAngle),n=g+b*Math.cos(e.endAngle),r=f+b*Math.sin(e.endAngle),o=e.endAngle-e.startAngle,i=[`M ${g},${f}`,`L ${t},${a}`,`A ${b},${b} 0 ${o>Math.PI?1:0},1 ${n},${r}`,"Z"].join(" "),s=.7*b,l=g+s*Math.cos(e.midAngle),c=f+s*Math.sin(e.midAngle);return{...e,path:i,labelPosition:{x:l,y:c}}})),v=c?.showTooltips??d?.showTooltips??!0;return t.jsxs(t.Fragment,{children:[x.map(((e,a)=>{const r=i?.pointIndex===a;return t.jsxs("g",{children:[t.jsx("path",{d:e.path,fill:e.color,className:"c-chart__pie-slice "+(r?"c-chart__pie-slice--hovered":""),onClick:()=>{u(a),o.onDataPointClick?.(e.dataPoint,0,a)},onMouseEnter:t=>{const n=t.currentTarget.getBoundingClientRect();o.onPointHover(0,a,e.labelPosition.x,e.labelPosition.y,n.left+n.width/2,n.top+n.height/2)},onMouseLeave:o.onPointLeave}),n.showLabels&&t.jsx("text",{x:e.labelPosition.x,y:e.labelPosition.y,textAnchor:"middle",className:"c-chart__pie-label",children:m(e)})]},"slice-"+a)})),v&&i&&s[i.pointIndex]&&t.jsx(Bi,{dataPoint:s[i.pointIndex],datasetLabel:r[0]?.label,datasetColor:l[i.pointIndex]?.color,position:{x:i.clientX,y:i.clientY},visible:!0})]})},onDataPointClick:r,...o})})));Ji.displayName="PieChart";const es=a.memo(a.forwardRef((({datasets:e=[],config:a={},radarOptions:n={},onDataPointClick:r,...o},i)=>{const{gridLevels:s=5,showGrid:l=!0,showAxisLabels:c=!0,fillArea:d=!0,fillOpacity:u=.3,showDataPoints:m=!0,pointRadius:h=4,lineWidth:p=2,smooth:g=!1,scaleType:f="linear",scaleMin:b=0,scaleMax:x}=n;return t.jsx(Pi,{ref:i,type:"radar",datasets:e,config:a,renderContent:({scales:e,colors:a,datasets:n,handlers:r,hoveredPoint:o,toolbarState:i,config:f})=>{if(!n.length)return null;const v=i?.showTooltips??f?.showTooltips??!0,S=e.width/2,y=e.height/2,E=.8*Math.min(S,y),A=n[0];if(!A)return null;const N=A.data||[],T=2*Math.PI/N.length;let C=b,_=x;if(void 0===C||void 0===_){const e=n.flatMap((e=>e.data?.map((e=>e.value))||[]));void 0===C&&(C=Math.min(b,...e)),void 0===_&&(_=Math.max(x||0,...e))}const L=_-C,w=[];if(l){for(let e=1;s>=e;e++){const a=E*e/s;w.push(t.jsx("circle",{cx:S,cy:y,r:a,className:"c-chart__radar-grid-line",fill:"none",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-circle-"+e))}for(let e=0;e<N.length;e++){const a=e*T-Math.PI/2,n=S+E*Math.cos(a),r=y+E*Math.sin(a);w.push(t.jsx("line",{x1:S,y1:y,x2:n,y2:r,className:"c-chart__radar-grid-line",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-radial-"+e))}}const I=[];if(c)for(let s=0;s<N.length;s++){const e=s*T-Math.PI/2,a=S+(E+20)*Math.cos(e),n=y+(E+20)*Math.sin(e);I.push(t.jsx("text",{x:a,y:n,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__radar-axis-label",children:N[s]?.label},"label-"+s))}const R=n.map(((e,n)=>{const i=e.color||a[n%a.length],s=[];for(let t=0;t<e.data?.length;t++){const a=e.data[t]?.value||0,n=E*(L>0?(a-C)/L:0),r=t*T-Math.PI/2,o=S+n*Math.cos(r),i=y+n*Math.sin(r);s.push({x:o,y:i,value:a,point:e.data[t]})}if(0===s.length||!s[0])return null;let l="";if(g&&s.length>2){l=`M ${s[0].x},${s[0].y}`;for(let e=1;e<s.length;e++)s[e]&&(l+=` L ${s[e].x},${s[e].y}`);l+=` L ${s[0].x},${s[0].y} Z`}else{l=`M ${s[0].x},${s[0].y}`;for(let e=1;e<s.length;e++)s[e]&&(l+=` L ${s[e].x},${s[e].y}`);l+=` L ${s[0].x},${s[0].y} Z`}return t.jsxs("g",{children:[d&&t.jsx("path",{d:l,fill:i,fillOpacity:u,className:"c-chart__radar-area"}),t.jsx("path",{d:l,fill:"none",stroke:i,strokeWidth:p,className:"c-chart__radar-line"}),m&&s.map(((e,a)=>{const s=o?.datasetIndex===n&&o?.pointIndex===a;return t.jsx("g",{children:t.jsx("circle",{cx:e.x,cy:e.y,r:s?1.5*h:h,fill:i,className:"c-chart__radar-point "+(s?"c-chart__radar-point--hovered":""),onClick:()=>{e.point&&r.onDataPointClick?.(e.point,n,a)},onMouseEnter:t=>{const o=t.currentTarget.getBoundingClientRect();r.onPointHover(n,a,e.x,e.y,o.left+o.width/2,o.top+o.height/2)},onMouseLeave:r.onPointLeave})},`point-${n}-${a}`)}))]},"dataset-"+n)}));return t.jsxs(t.Fragment,{children:[t.jsxs("g",{children:[w,R,I]}),v&&o&&n[o.datasetIndex]?.data?.[o.pointIndex]&&t.jsx(Bi,{dataPoint:n[o.datasetIndex].data[o.pointIndex],datasetLabel:n[o.datasetIndex]?.label,datasetColor:n[o.datasetIndex]?.color||a[o.datasetIndex],position:{x:o.clientX,y:o.clientY},visible:!0})]})},onDataPointClick:r,...o})})));es.displayName="RadarChart";const ts=a.memo(a.forwardRef((({datasets:e=[],config:a={},scatterOptions:n={pointRadius:4,showLabels:!1,enableHoverEffects:!0},onDataPointClick:r,...o},i)=>t.jsx(Pi,{ref:i,type:"scatter",datasets:e,config:a,renderContent:({scales:e,colors:a,datasets:r,handlers:o,hoveredPoint:i,toolbarState:s,config:l})=>{if(!r.length)return null;const c=s?.showTooltips??l?.showTooltips??!0,d=[];return r.forEach(((r,i)=>{const s=r.color||a[i%a.length];r.data?.forEach(((a,l)=>{const c=void 0!==a.x?e.padding.left+a.x/100*e.innerWidth:e.xScale(l,r.data?.length),u=void 0!==a.y?e.padding.top+e.innerHeight-a.y/100*e.innerHeight:e.yScale(a.value);d.push(t.jsxs("g",{children:[t.jsx("circle",{cx:c,cy:u,r:a.size||n.pointRadius||4,fill:a.color||s,className:"c-chart__scatter-point",onClick:()=>o.onDataPointClick?.(a,i,l),onMouseEnter:e=>{if(n.enableHoverEffects){const t=Math.max(0,1.5*(a.size||n.pointRadius||4));e.currentTarget.setAttribute("r",t+"")}const t=e.currentTarget.getBoundingClientRect();o.onPointHover(i,l,c,u,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:e=>{if(n.enableHoverEffects){const t=Math.max(0,a.size||n.pointRadius||4);e.currentTarget.setAttribute("r",t+"")}o.onPointLeave()}}),n.showLabels&&a.label&&t.jsx("text",{x:c,y:u-10,textAnchor:"middle",className:"c-chart__scatter-label",children:(a.label+"").replace(/[<>&"']/g,(e=>({"<":"<",">":">","&":"&",'"':""","'":"'"}[e]||e)))})]},`point-${i}-${l}`))}))})),t.jsxs(t.Fragment,{children:[d,c&&i&&r[i.datasetIndex]?.data?.[i.pointIndex]&&t.jsx(Bi,{dataPoint:r[i.datasetIndex].data[i.pointIndex],datasetLabel:r[i.datasetIndex]?.label,datasetColor:r[i.datasetIndex]?.color||a[i.datasetIndex],position:{x:i.clientX,y:i.clientY},visible:!0})]})},onDataPointClick:r,...o}))));ts.displayName="ScatterChart";const as={scheme:"category"},ns={showLabels:!0,minSize:1e3,fontSize:12},rs={},os=a.memo(a.forwardRef((({data:e=[],algorithm:n="squarified",colorConfig:r=as,labelConfig:o=ns,onDataPointClick:i,config:s=rs,...l},c)=>{const[d,u]=a.useState(null),[m,h]=a.useState(null);a.useState({x:0,y:0}),a.useMemo((()=>{if(!e.length)return null;const t=new Map;e.forEach((e=>t.set(e.id,e)));const a=[],n=new Set,r=t=>{if(n.has(t.id))return t;n.add(t.id);const a=e.filter((e=>e.parent===t.id));var o;return a.length>0&&(t.children=a.map((e=>r(e))),t.value=di(o=t.children).call(o,((e,t)=>e+t.value),0)),t};return e.forEach((e=>{e.parent&&t.has(e.parent)||a.push(r(e))})),1===a.length?a[0]:{id:"root",label:"Root",value:di(a).call(a,((e,t)=>e+t.value),0),children:a}}),[e]);const p=a.useCallback(((t,a,n)=>{if(t.color)return t.color;const{scheme:o,palette:i}=r,s=i||["var(--atomix-primary)","var(--atomix-error)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-primary-5)","var(--atomix-info)","var(--atomix-success-5)","var(--atomix-warning-7)","var(--atomix-primary-3)","var(--atomix-primary-7)"];switch(o){case"category":default:return s[n%s.length];case"depth":{const e=["var(--atomix-blue-9)","var(--atomix-blue-6)","var(--atomix-blue-5)","var(--atomix-blue-4)","var(--atomix-blue-2)"];return e[Math.min(a,e.length-1)]}case"value":if(e.length>0){const a=Math.max(...e.map((e=>e.value))),n=Math.min(...e.map((e=>e.value))),r=(t.value-n)/(a-n);return`hsl(${220+100*r}, 70%, ${30+40*r}%)`}return s[0]}}),[r,e]),g=a.useCallback(((e,t,a,n,r)=>{if(0===e.length)return;const o=di(e).call(e,((e,t)=>e+t.value),0);if(1===e.length){const o=e[0];return void(o&&(o.x=t,o.y=a,o.width=n,o.height=r))}const i=[...e].sort(((e,t)=>t.value-e.value)),s=e=>Math.max(e.width/e.height,e.height/e.width);let l=[],c=[...i],d=t,u=a,m=n,h=r,p=o;for(;c.length>0;){const e=c.shift();if(!e)break;l.push(e);const t=di(l).call(l,((e,t)=>e+t.value),0),a=p>0?t/p:0;let n,r;h>m?(n=m,r=h*a):(n=m*a,r=h);let o=!1;if(c.length>0){const e=c[0];if(!e)break;const a=[...l,e],i=di(a).call(a,((e,t)=>e+t.value),0),d=p>0?i/p:0;let u,g;h>m?(u=m,g=h*d):(u=m*d,g=h),o=Math.max(...l.filter((e=>e)).map((e=>{const a=e.value/t;return s({width:h>m?n*a:n,height:h>m?r:r*a})})))>=Math.max(...a.filter((e=>e)).map((e=>{const t=e.value/i;return s({width:h>m?u*t:u,height:h>m?g:g*t})})))}if(!o){let e=d,a=u;l.forEach((o=>{const i=o.value/t;h>m?(o.x=e,o.y=a,o.width=m*i,o.height=r,e+=o.width):(o.x=e,o.y=a,o.width=n,o.height=h*i,a+=o.height)})),h>m?(u+=r,h-=r):(d+=n,m-=n),p-=t,l=[]}}}),[]),f=a.useCallback((({scales:a,colors:r,datasets:i,handlers:s,hoveredPoint:l,toolbarState:c,config:f})=>{if(!e.length)return null;const b=c?.showTooltips??f?.showTooltips??!0,x=Math.max(0,a.width),v=Math.max(0,a.height),S=e.filter((e=>!e.children||0===e.children.length));if(!S.length)return null;const y=di(S).call(S,((e,t)=>e+t.value),0),E=S.map(((e,t)=>({id:e.id,label:e.label,value:e.value,color:p(e,0,t)||"transparent",x:0,y:0,width:0,height:0,depth:0,children:[],originalData:e})));if("squarified"===n&&y>0)g(E,0,0,x,v);else{const e=Math.ceil(Math.sqrt(S.length)),t=Math.ceil(S.length/e),a=x/e,n=v/t;E.forEach(((t,r)=>{const o=r%e,i=Math.floor(r/e);t.x=0+o*a,t.y=0+i*n,t.width=a,t.height=n}))}return t.jsxs(t.Fragment,{children:[E.map((a=>{const n=d===a,r=m===a,i=a.width*a.height,l=o.showLabels&&i>=(o.minSize||1e3);return t.jsxs("g",{children:[t.jsx("rect",{x:a.x+2,y:a.y+2,width:Math.max(0,a.width-4),height:Math.max(0,a.height-4),rx:6,ry:6,fill:a.color,className:`c-chart__treemap-node ${n?"c-chart__treemap-node--hovered":""} ${r?"c-chart__treemap-node--selected":""}`,onClick:()=>{h(a),s.onDataPointClick?.(a.originalData,0,0)},onMouseEnter:t=>{u(a);const n=t.currentTarget.getBoundingClientRect(),r=e.indexOf(a.originalData);s.onPointHover(0,0>r?0:r,a.x,a.y,n.left+n.width/2,n.top+n.height/2)},onMouseLeave:()=>{u(null),s.onPointLeave()}}),l&&t.jsx("text",{x:a.x+a.width/2,y:a.y+a.height/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__treemap-label",style:{fontSize:o.fontSize},children:a.label})]},a.id)})),b&&l&&i[l.datasetIndex]?.data?.[l.pointIndex]&&t.jsx(Bi,{dataPoint:i[l.datasetIndex].data[l.pointIndex],datasetLabel:i[l.datasetIndex]?.label,datasetColor:i[l.datasetIndex]?.color||r[l.datasetIndex%r.length],position:{x:l.clientX,y:l.clientY},visible:!0})]})}),[e,n,p,g,o,d,m]),b=a.useMemo((()=>[{label:"Treemap Data",data:e}]),[e]);return t.jsx(Pi,{ref:c,type:"treemap",datasets:b,config:s,renderContent:f,onDataPointClick:i,interactive:!0,...l})})));os.displayName="TreemapChart";const is=a.memo(a.forwardRef((({waterfallData:e=[],config:a={},waterfallOptions:n={},onDataPointClick:r,...o},i)=>{const{showConnectors:s=!0,connectorColor:l="var(--atomix-gray-1)",connectorStyle:c="dashed",showValues:d=!0,valuePosition:u="top",colors:m={positive:"var(--atomix-success)",negative:"var(--atomix-error)",total:"var(--atomix-primary)",subtotal:"var(--atomix-secondary)"},barWidth:h=.6,showCumulativeLine:p=!1,cumulativeLineColor:g="var(--atomix-primary)",animate:f=!0,animationDuration:b=1e3,animationDelay:x=100,valueFormatter:v=e=>e.toLocaleString(),showBaseline:S=!0,baselineColor:y="var(--atomix-gray-2)"}=n,E=[{label:"Waterfall Data",data:e}];return t.jsx(Pi,{ref:i,type:"waterfall",datasets:E,config:a,renderContent:({scales:a,colors:n,datasets:r,handlers:o,hoveredPoint:i,toolbarState:b,config:E})=>{if(!e.length)return null;const A=b?.animationsEnabled??E?.animate??f,N=60,T=a.width-120,C=a.height-120;let _=0;const L=e.map(((e,t)=>{const a="total"===e.type||"subtotal"===e.type?0:_;let n;return"total"===e.type||"subtotal"===e.type?(n=e.value,_=e.value):(n=_+e.value,_=n),{...e,startValue:a,endValue:n,cumulativeValue:_,index:t}})),w=L.flatMap((e=>[e.startValue,e.endValue])),I=Math.min(0,...w),R=Math.max(...w)-I,O=T/e.length*h,k=T/e.length,j=e=>N+e*k+k/2,M=e=>N+C-(e-I)/R*C,D=[];if(S){const e=M(0);D.push(t.jsx("line",{x1:N,y1:e,x2:a.width-N,y2:e,stroke:y,className:"c-chart__axis-line",opacity:"0.7"},"baseline"))}if(L.forEach(((e,a)=>{const n=j(a),r=Math.min(M(e.startValue),M(e.endValue)),i=Math.max(M(e.startValue),M(e.endValue)),h=i-r;let p=e.color;if(p||(p="total"===e.type?m.total:"subtotal"===e.type?m.subtotal:0>e.value?m.negative:m.positive),D.push(t.jsx("rect",{x:n-O/2,y:r,width:O,height:Math.max(h,2),fill:p,className:"c-chart__waterfall-bar "+(A?"c-chart__waterfall-bar--animated":""),style:{animationDelay:A?a*x+"ms":"0ms"},onClick:()=>o.onDataPointClick?.(e,0,a),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();o.onPointHover(0,a,n,r,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:o.onPointLeave},"bar-"+a)),d){let o=r,s=e.value;o="center"===u?r+h/2:"bottom"===u?i+15:r-5,"total"!==e.type&&"subtotal"!==e.type||(s=e.endValue),D.push(t.jsx("text",{x:n,y:o,textAnchor:"middle",dominantBaseline:"center"===u?"middle":"auto",className:"c-chart__waterfall-value "+("center"===u?"c-chart__waterfall-value--center":"c-chart__waterfall-value--outside"),children:v(s)},"value-"+a))}if(s&&a<L.length-1){const r=L[a+1];if(r){const o=M(e.endValue),i=M(r.startValue),s=j(a+1);if(Math.abs(e.endValue-r.startValue)>.01){const e="dashed"===c?"5,5":"dotted"===c?"2,2":"none";D.push(t.jsx("line",{x1:n+O/2,y1:o,x2:s-O/2,y2:i,stroke:l,strokeDasharray:e,className:"c-chart__waterfall-connector"},"connector-"+a))}}}})),p){const e=L.map(((e,t)=>({x:j(t),y:M(e.cumulativeValue)}))),a="M "+e.map((e=>`${e.x},${e.y}`)).join(" L ");D.push(t.jsx("path",{d:a,fill:"none",stroke:g,className:"c-chart__waterfall-cumulative-line"},"cumulative-line")),e.forEach(((e,a)=>{D.push(t.jsx("circle",{cx:e.x,cy:e.y,r:"4",fill:g,className:"c-chart__waterfall-cumulative-point"},"line-point-"+a))}))}return D.push(t.jsx("line",{x1:N,y1:a.height-N,x2:a.width-N,y2:a.height-N,stroke:"var(--atomix-gray-4)",strokeWidth:"2"},"x-axis")),D.push(t.jsx("line",{x1:N,y1:N,x2:N,y2:a.height-N,stroke:"var(--atomix-gray-4)",className:"c-chart__axis-line"},"y-axis")),L.forEach(((e,n)=>{const r=N+n*k+k/2;D.push(t.jsx("text",{x:r,y:a.height-N+20,textAnchor:"middle",className:"c-chart__axis-label",fill:"var(--atomix-gray-6)",transform:`rotate(-45, ${r}, ${a.height-N+20})`,children:e.label},"x-label-"+n))})),t.jsx("g",{children:D})},onDataPointClick:r,...o})})));function ss(e){const t=((e??"")+"").replace(/[\r\n\t]/g," ").replace(/"/g,'""');return/^[=+\-@]/.test(t)?"'"+t:t}is.displayName="WaterfallChart";const ls={sm:16,md:24,lg:32},cs=({className:e="",style:n,value:r,defaultValue:o="light",onChange:i,lightIcon:s,darkIcon:l,size:c="md",disabled:d=!1,storageKey:u="atomix-color-mode",dataAttribute:m="data-atomix-color-mode",disableStorage:h=!1,disableSystemPreference:p=!1,"aria-label":g,showTooltip:f=!0})=>{const b=void 0!==r,[x,v]=a.useState(o),S=b?r:x;a.useEffect((()=>{if(!b&&"undefined"!=typeof window){if(!h)try{const e=localStorage.getItem(u);if("light"===e||"dark"===e)return void v(e)}catch(e){}!p&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&v("dark")}}),[b,h,p,u]),a.useEffect((()=>{if("undefined"==typeof window)return;const e="dark"===S?"dark":"light";if(document.body.setAttribute(m,e),!h)try{localStorage.setItem(u,e)}catch(t){}}),[S,m,h,u]),a.useEffect((()=>{if(b||p||"undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{if(h)v(e.matches?"dark":"light");else try{localStorage.getItem(u)||v(e.matches?"dark":"light")}catch(t){}};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}),[b,p,h,u]);const y=a.useCallback((()=>{if(d)return;const e="light"===S?"dark":"light";b||v(e),i?.(e)}),[d,S,b,i]),E=ls[c],A="light"===S?"dark":"light",N=g||`Switch to ${A} mode`,T=f?`Switch to ${A} mode`:void 0,C=t.jsx("svg",{viewBox:"0 0 24 24",width:E,height:E,fill:"currentColor","aria-hidden":"true",children:t.jsx("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"})}),_=t.jsx("svg",{viewBox:"0 0 24 24",width:E,height:E,fill:"currentColor","aria-hidden":"true",children:t.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06z"})});return t.jsx("button",{type:"button",className:`c-color-mode-toggle c-color-mode-toggle--${c} ${d?"c-color-mode-toggle--disabled":""} ${e}`,onClick:y,disabled:d,"aria-label":N,"aria-pressed":"dark"===S,title:T,style:n,children:"light"===S?s||C:l||_})};cs.displayName="ColorModeToggle";const ds=a.forwardRef((({target:e,show:n=["days","hours","minutes","seconds"],separator:r=":",focused:o=!1,className:i="",style:s,onComplete:l},c)=>{const d="string"==typeof e?new Date(e):e,[u,m]=a.useState((()=>new Date)),[h,p]=a.useState(!1);a.useEffect((()=>{if(h)return;const e=setInterval((()=>{m(new Date)}),1e3);return()=>clearInterval(e)}),[h]);const g=d.getTime()-u.getTime(),{days:f,hours:b,minutes:x,seconds:v}=function(e){const t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}(g);a.useEffect((()=>{g>0||h||(p(!0),l&&l())}),[g,h,l]);const S=[];return sn(n).call(n,"days")&&S.push({label:"Days",value:f}),sn(n).call(n,"hours")&&S.push({label:"Hours",value:b}),sn(n).call(n,"minutes")&&S.push({label:"Minutes",value:x}),sn(n).call(n,"seconds")&&S.push({label:"Seconds",value:v}),t.jsx("div",{ref:c,className:`c-countdown${o?" c-countdown--focused":""} ${i}`.trim(),style:s,children:S.map(((e,n)=>t.jsxs(a.Fragment,{children:[t.jsxs("div",{className:"c-countdown__time",children:[t.jsx("span",{className:"c-countdown__time-count",children:(e.value+"").padStart(2,"0")}),t.jsx("span",{className:"c-countdown__time-label",children:e.label})]}),n<S.length-1&&t.jsx("span",{className:"c-countdown__separator",children:r})]},e.label)))})}));function us(e,t){return"function"==typeof t?t(e):"string"==typeof t?e[t]:e.id??e.key??JSON.stringify(e)}ds.displayName="Countdown";const ms="...",hs=(e,t)=>Array.from({length:t-e+1},((t,a)=>a+e)),ps=a.memo((({type:e,onClick:a,disabled:n,label:r,iconName:o})=>t.jsx("li",{className:`c-pagination__item c-pagination__item--${e} ${n?"is-disabled":""}`,"aria-disabled":n,children:t.jsx("button",{type:"button",className:"c-pagination__link",onClick:a,disabled:n,"aria-label":r,children:t.jsx(Oo,{name:o,size:"sm","aria-hidden":"true"})})}))),gs=a.memo((({currentPage:e=Fn.currentPage,totalPages:n=Fn.totalPages,onPageChange:r,siblingCount:o=Fn.siblingCount,showFirstLastButtons:i=Fn.showFirstLastButtons,showPrevNextButtons:s=Fn.showPrevNextButtons,showSearch:l=!1,searchPlaceholder:c="Go to page",size:d=Fn.size,className:u="",style:m,"aria-label":h="Pagination",glass:p})=>{const{paginationRange:g,goToPage:f,nextPage:b,prevPage:x,firstPage:v,lastPage:S}=(({currentPage:e,totalPages:t,siblingCount:n=1,onPageChange:r})=>{const o=a.useMemo((()=>{if(n+5>=t)return hs(1,t);const a=Math.max(e-n,1),r=Math.min(e+n,t),o=a>2,i=t-2>r,s=t;if(!o&&i)return[...hs(1,3+2*n),ms,t];if(o&&!i){let e=hs(t-(3+2*n)+1,t);return[1,ms,...e]}if(o&&i){let e=hs(a,r);return[1,ms,...e,ms,s]}return[]}),[t,n,e]),i=a=>{1>a||a>t||a===e||r(a)};return{paginationRange:o,currentPage:e,totalPages:t,goToPage:i,nextPage:()=>{i(e+1)},prevPage:()=>{i(e-1)},firstPage:()=>{i(1)},lastPage:()=>{i(t)},DOTS:ms}})({currentPage:e,totalPages:n,siblingCount:o,onPageChange:r}),[y,E]=a.useState(""),[A,N]=a.useState("");if(0===e||2>g.length)return null;const T=t.jsxs("nav",{className:`c-pagination c-pagination--${d} ${u}`,style:m,"aria-label":h,children:[t.jsxs("ul",{className:"c-pagination__items",children:[i&&t.jsx(ps,{type:"first",onClick:v,disabled:1===e,label:"Go to first page",iconName:"SkipBack"}),s&&t.jsx(ps,{type:"prev",onClick:x,disabled:1===e,label:"Go to previous page",iconName:"CaretLeft"}),g.map(((a,n)=>{if(a===ms)return t.jsx("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},"dots-"+n);const r=a===e;return t.jsx("li",{className:"c-pagination__item "+(r?"is-active":""),"aria-current":r?"page":void 0,children:t.jsx("button",{type:"button",className:"c-pagination__link",onClick:()=>f(a),"aria-label":"Page "+a,"aria-current":r?"page":void 0,children:a})},a)})),s&&t.jsx(ps,{type:"next",onClick:b,disabled:e===n,label:"Go to next page",iconName:"CaretRight"}),i&&t.jsx(ps,{type:"last",onClick:S,disabled:e===n,label:"Go to last page",iconName:"SkipForward"})]}),l&&t.jsxs("form",{className:"c-pagination__search",onSubmit:t=>{t.preventDefault(),N("");const a=parseInt(y,10);isNaN(a)?N("Please enter a valid page number"):1>a||a>n?N("Page must be between 1 and "+n):a!==e?(f(a),E("")):N("You are already on this page")},"aria-label":"Jump to page",children:[t.jsxs("div",{className:"c-pagination__search-wrapper",children:[t.jsxs("label",{htmlFor:"pagination-search-"+e,className:"c-pagination__search-label",children:[t.jsx("span",{className:"c-pagination__search-label-text",children:"Go to page:"}),t.jsx("input",{id:"pagination-search-"+e,type:"text",inputMode:"numeric",pattern:"[0-9]*",className:"c-pagination__search-input "+(A?"is-error":""),placeholder:c,value:y,onChange:e=>{const t=e.target.value;(""===t||/^\d+$/.test(t))&&(E(t),N(""))},"aria-label":"Page number","aria-invalid":A?"true":"false","aria-describedby":A?"pagination-error-"+e:void 0})]}),t.jsx("button",{type:"submit",className:"c-pagination__search-button","aria-label":"Go to page",children:t.jsx(Oo,{name:"ArrowRight",size:"sm","aria-hidden":"true"})})]}),A&&t.jsx("div",{id:"pagination-error-"+e,className:"c-pagination__search-error",role:"alert",children:A})]})]});if(p){const e={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},a=!0===p?e:{...e,...p};return t.jsx(so,{...a,children:T})}return T}));gs.displayName="Pagination",ps.displayName="PaginationNavButton";const fs=a.memo(a.forwardRef((({label:e,checked:n,onChange:r,className:o="",style:i,disabled:s=!1,required:l=!1,id:c,name:d,value:u,invalid:m=!1,valid:h=!1,indeterminate:p=!1,"aria-label":g,"aria-describedby":f,onClick:b,glass:x,...v},S)=>{const y=a.useRef(null);a.useImperativeHandle(S,(()=>y.current)),a.useEffect((()=>{y.current&&(y.current.indeterminate=!!p)}),[p]);let E="";m?E="is-error":h&&(E="is-valid");const A=`c-checkbox ${E} ${s?"is-disabled":""} ${p?"c-checkbox--mixed":""} ${x?"c-checkbox--glass":""} ${o}`.trim(),N=t.jsx("input",{ref:y,type:"checkbox",className:"c-checkbox__input",checked:n,onChange:r,onClick:b,disabled:s,required:l,id:c,name:d,value:u,"aria-label":e?void 0:g,"aria-describedby":f,"aria-invalid":m,...v});let T;if(T=c&&e?t.jsxs("div",{className:A,style:i,children:[N,t.jsx("label",{className:"c-checkbox__label",htmlFor:c,children:e})]}):e?t.jsxs("label",{className:A,style:i,children:[N,t.jsx("span",{className:"c-checkbox__label",children:e})]}):t.jsx("div",{className:A,style:i,children:N}),x){const e={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,borderRadius:6,mode:"shader"},a=!0===x?e:{...e,...x};return t.jsx(so,{...a,children:T})}return T})));fs.displayName="Checkbox";const bs=a.createContext({isOpen:!1,close:()=>{},id:"",trigger:"click"}),xs=a.forwardRef((({children:e,className:n="",...r},o)=>{const{glass:i}=a.useContext(As),{id:s}=a.useContext(bs);return t.jsx("ul",{ref:o,id:s+"-menu",className:`c-dropdown__menu ${i?"c-dropdown__menu--glass":""} ${n}`.trim(),role:"menu","aria-labelledby":s+"-trigger",...r,children:e})}));xs.displayName="DropdownMenu";const vs=a.forwardRef((({children:e,className:n="",onClick:r,onKeyDown:o,...i},s)=>{const{isOpen:l,id:c}=a.useContext(bs);return t.jsx("div",{ref:s,id:c+"-trigger",className:("c-dropdown__toggle "+n).trim(),onClick:r,onKeyDown:o,"aria-haspopup":"true","aria-expanded":l,"aria-controls":c+"-menu",tabIndex:0,role:"button",...i,children:e})}));vs.displayName="DropdownTrigger";const Ss=a.memo((({children:e,href:n,target:r,active:o=!1,disabled:i=!1,icon:s,onClick:l,className:c="",linkComponent:d,...u})=>{const{close:m}=a.useContext(bs),h=e=>{i?e.preventDefault():(l&&l(e),m())},p=["c-dropdown__menu-item",o?"is-active":"",i?"is-disabled":"",c].filter(Boolean).join(" "),g={href:n,to:n,target:r,className:p,onClick:h,role:"menuitem",tabIndex:0,...u};return n&&!i?t.jsx("li",{children:d?(()=>{const a=d;return t.jsxs(a,{...g,children:[s&&t.jsx("span",{className:"c-dropdown__menu-item-icon",children:s}),e]})})():t.jsxs("a",{...g,children:[s&&t.jsx("span",{className:"c-dropdown__menu-item-icon",children:s}),e]})}):t.jsx("li",{children:t.jsxs("button",{type:"button",className:p,onClick:h,disabled:i,role:"menuitem",tabIndex:0,...u,children:[s&&t.jsx("span",{className:"c-dropdown__menu-item-icon",children:s}),e]})})}));Ss.displayName="DropdownItem";const ys=a.memo((({className:e=""})=>t.jsx("li",{className:"c-dropdown__divider "+e,role:"separator"})));ys.displayName="DropdownDivider";const Es=a.memo((({children:e,className:a=""})=>t.jsx("li",{className:"c-dropdown__header "+a,children:e})));Es.displayName="DropdownHeader";const As=a.createContext({}),Ns=a.memo((function({children:e,menu:n,placement:r="bottom-start",trigger:o="click",offset:i=Jn.DEFAULTS.OFFSET,isOpen:s,onOpenChange:l,closeOnClickOutside:c=!0,closeOnEscape:d=!0,maxHeight:u,minWidth:m=Jn.DEFAULTS.MIN_WIDTH,variant:h,className:p="",style:g,glass:f,...b}){const[x,v]=a.useState(!1),S=void 0!==s,y=S?s:x,E=a.useRef(null),A=a.useRef(null),N=a.useRef(null),T=a.useRef("dropdown-"+Math.random().toString(36).substring(2,9)).current,C=a.useCallback((e=>{S||v(e),l&&l(e)}),[S,l]),_=a.useCallback((()=>C(!y)),[y,C]),L=a.useCallback((()=>{C(!1),setTimeout((()=>{A.current?.focus()}),0)}),[C]);a.useEffect((()=>{if(!y||!c)return;const e=e=>{E.current&&!E.current.contains(e.target)&&L()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[y,c,L]),a.useEffect((()=>{if(!y||!d)return;const e=e=>{"Escape"===e.key&&L()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[y,d,L]);const w=a.useCallback((e=>{if(!N.current)return;const t=N.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(!t.length)return;const a=Array.from(t).findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":e.preventDefault(),a<t.length-1?t[a+1]?.focus():t[0]?.focus();break;case"ArrowUp":e.preventDefault(),a>0?t[a-1]?.focus():t[t.length-1]?.focus();break;case"Home":e.preventDefault(),t[0]?.focus();break;case"End":e.preventDefault(),t[t.length-1]?.focus()}}),[]),I=a.useCallback((e=>{"click"===o&&(e.preventDefault(),e.stopPropagation(),_())}),[o,_]),R=a.useCallback((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||y?"Escape"===e.key&&y&&(e.preventDefault(),L()):(e.preventDefault(),C(!0),"ArrowDown"===e.key&&N.current&&setTimeout((()=>{const e=N.current?.querySelector('[role="menuitem"]');e?.focus()}),100))}),[y,C,L]),O=a.useCallback((()=>{"hover"===o&&C(!0)}),[o,C]),k=["c-dropdown","click"===o?"c-dropdown--onclick":"",h?"c-dropdown--"+h:"",y?"is-open":"",f?"c-dropdown--glass":"",p].filter(Boolean).join(" "),j={};let M,D;u&&(j.maxHeight=u),void 0!==m&&(j.minWidth="number"==typeof m?m+"px":m),a.Children.toArray(e).some((e=>{var t;return a.isValidElement(e)&&sn(t=["DropdownTrigger","DropdownMenu"]).call(t,e.type.displayName||"")}))?a.Children.forEach(e,(e=>{if(a.isValidElement(e)){const t=e.type;if("DropdownTrigger"===t.displayName){const t={ref:A,onClick:t=>{I(t),e.props.onClick?.(t)},onKeyDown:t=>{R(t),e.props.onKeyDown?.(t)},"aria-haspopup":"menu","aria-expanded":y,"aria-controls":T,tabIndex:0};M=a.cloneElement(e,t)}else"DropdownMenu"===t.displayName&&(D=e)}})):(M=t.jsx("div",{ref:A,className:"c-dropdown__toggle",onClick:I,onKeyDown:R,"aria-haspopup":"menu","aria-expanded":y,"aria-controls":T,tabIndex:0,children:e}),D=t.jsx("ul",{className:"c-dropdown__menu "+(f?"c-dropdown__menu--glass":""),children:n}));const P=t.jsx("div",{className:"c-dropdown__menu-inner",style:j,children:t.jsx(As.Provider,{value:{glass:f},children:t.jsx(bs.Provider,{value:{isOpen:y,close:L,id:T,trigger:o},children:D})})});return t.jsxs("div",{ref:E,className:k,style:g,onMouseEnter:"hover"===o?O:void 0,...b,children:[M,t.jsx("div",{ref:N,id:T,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${r} ${y?"is-open":""} ${f?"is-glass":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!y,onKeyDown:w,children:f?(()=>{const e={displacementScale:20,elasticity:0},a=!0===f?e:{...e,...f};return t.jsx(so,{...a,children:P})})():P})]})}));Ns.displayName="Dropdown",Ns.Trigger=vs,Ns.Menu=xs,Ns.Item=Ss,Ns.Divider=ys,Ns.Header=Es;const Ts=a.memo((({data:e,columns:n,className:r,style:o,sortable:i=!1,filterable:s=!1,paginated:l=!1,pageSize:c=10,striped:d=!1,bordered:u=!1,dense:m=!1,loading:h=!1,emptyMessage:p="No data available",onRowClick:g,onSort:f,selectionMode:b="none",selectedRowIds:x,onSelectionChange:v,rowKey:S,resizable:y=!1,reorderable:E=!1,onColumnReorder:A,showColumnVisibility:N=!1,onColumnVisibilityChange:T,stickyHeader:C=!1,stickyHeaderOffset:_="0px",virtualScrolling:L=!1,estimatedRowHeight:w=50,overscan:I=5,exportable:R=!1,exportFormats:O=["csv","excel","json"],exportFilename:k="data-table",onExport:j,columnFilters:M=!1,...D})=>{const P=a.useRef(null),B=a.useRef(null),[z,F]=a.useState(null),[U,G]=a.useState({}),[V,H]=a.useState(null),[$,Y]=a.useState(null),{displayData:K,sortConfig:W,currentPage:q,totalPages:Q,handleSort:X,handlePageChange:Z,handleSearch:J,selectedRowIds:ee,selectedRows:te,handleRowSelect:ae,handleSelectAll:ne,isAllSelected:re,isIndeterminate:oe,visibleColumns:ie,columnVisibility:se,handleColumnVisibilityToggle:le,columnFilterValues:ce,handleColumnFilterChange:de,clearColumnFilters:ue}=function({data:e=[],columns:t=[],sortable:n=!1,paginated:r=!1,pageSize:o=10,onSort:i,initialSortConfig:s,selectionMode:l="none",selectedRowIds:c,onSelectionChange:d,rowKey:u,columnFilters:m=!1,reorderable:h=!1,onColumnReorder:p,onColumnVisibilityChange:g}){const[f,b]=a.useState(s||null),[x,v]=a.useState(1),[S,y]=a.useState(""),[E,A]=a.useState([]),N=c??E,[T,C]=a.useState((()=>t.map((e=>e.key)))),[_,L]=a.useState((()=>{const e={};return t.forEach((t=>{e[t.key]=!1!==t.visible})),e})),[w,I]=a.useState({});a.useEffect((()=>{const e=t.map((e=>e.key)),a=new Set(T),n=new Set(e);e.length===T.length&&e.every((e=>a.has(e)))&&T.every((e=>n.has(e)))||C(e)}),[t,T]),a.useEffect((()=>{L((e=>{const a={...e};return t.forEach((e=>{e.key in a||(a[e.key]=!1!==e.visible)})),a}))}),[t]);const R=a.useMemo((()=>T.map((e=>t.find((t=>t.key===e)))).filter((e=>void 0!==e&&!1!==_[e.key]))),[t,T,_]),O=a.useCallback((e=>{if(!n)return;let t="asc";f&&f.key===e&&"asc"===f.direction&&(t="desc");const a={key:e,direction:t};b(a),i&&i(a)}),[n,f,i]),k=a.useCallback((e=>{1>e||v(e)}),[]),j=a.useCallback((e=>{y(e),v(1)}),[]),M=a.useCallback(((e,t)=>{I((a=>({...a,[e]:t}))),v(1)}),[]),D=a.useCallback((()=>{I({}),v(1)}),[]),P=a.useMemo((()=>m?Object.entries(w).filter((([,e])=>null!=e&&""!==e)).map((([e,a])=>{const n=t.find((t=>t.key===e));return n&&n.filterable?{key:e,value:a,lowercaseValue:"string"==typeof a?a.toLowerCase():(a+"").toLowerCase(),column:n}:null})).filter((e=>null!==e)):[]),[m,w,t]),B=a.useMemo((()=>{if(!S&&0===P.length)return e;const t=S?S.toLowerCase():"";return e.filter((e=>{if(S&&!R.some((a=>{var n;const r=e[a.key];return null!=r&&sn(n=(r+"").toLowerCase()).call(n,t)})))return!1;for(let t=0;t<P.length;t++){const n=P[t];if(!n)continue;const{key:r,value:o,lowercaseValue:i,column:s}=n,l=e[r];if(null==l)return!1;var a;if(s.filterFunction){if(!s.filterFunction(l,o))return!1}else if(!sn(a=(l+"").toLowerCase()).call(a,i))return!1}return!0}))}),[e,R,S,P]),z=a.useMemo((()=>f&&n?[...B].sort(((e,t)=>{const a=e[f.key],n=t[f.key];return null==a?"asc"===f.direction?-1:1:null==n?"asc"===f.direction?1:-1:"string"==typeof a&&"string"==typeof n?"asc"===f.direction?a.localeCompare(n):n.localeCompare(a):"asc"===f.direction?a>n?1:-1:a>n?-1:1})):B),[B,f,n]),F=a.useMemo((()=>{if(!r)return z;const e=(x-1)*o;return z.slice(e,e+o)}),[z,r,x,o]),U=a.useMemo((()=>r?Math.max(1,Math.ceil(z.length/o)):1),[z.length,r,o]),G=a.useMemo((()=>"none"===l||0===N.length?[]:z.filter((e=>sn(N).call(N,us(e,u))))),[z,N,l,u]),V=a.useCallback(((e,t)=>{if("none"===l)return;let a;if(a="single"===l?t?[e]:[]:t?[...N,e]:N.filter((t=>t!==e)),c||A(a),d){const e=z.filter((e=>sn(a).call(a,us(e,u))));d(e,a)}}),[l,N,c,d,z,u]),H=a.useCallback((e=>{if("multiple"!==l)return;const t=e?F.map((e=>us(e,u))):[];if(c||A(t),d){const e=z.filter((e=>sn(t).call(t,us(e,u))));d(e,t)}}),[l,F,z,c,d,u]),$=a.useMemo((()=>"multiple"===l&&0!==F.length&&F.every((e=>sn(N).call(N,us(e,u))))),[l,F,N,u]),Y=a.useMemo((()=>{if("multiple"!==l||0===F.length)return!1;const e=F.filter((e=>sn(N).call(N,us(e,u)))).length;return e>0&&e<F.length}),[l,F,N,u]),K=a.useCallback((e=>{L((t=>{const a={...t,[e]:!t[e]};if(g){const e=Object.entries(a).filter((([,e])=>e)).map((([e])=>e));g(e)}return a}))}),[g]);return a.useCallback(((e,t)=>{const a=[...T],[n]=a.splice(e,1);n&&(a.splice(t,0,n),C(a),p&&p(a))}),[T,p]),a.useEffect((()=>{v(1)}),[e]),a.useEffect((()=>{x>U&&U>0&&v(Math.max(1,U))}),[x,U]),{displayData:F,sortConfig:f,currentPage:x,totalPages:U,handleSort:O,handlePageChange:k,handleSearch:j,selectedRowIds:N,selectedRows:G,handleRowSelect:V,handleSelectAll:H,isAllSelected:$,isIndeterminate:Y,columnOrder:T,visibleColumns:R,columnVisibility:_,handleColumnVisibilityToggle:K,columnFilterValues:w,handleColumnFilterChange:M,clearColumnFilters:D}}({data:e,columns:n,sortable:i,paginated:l,pageSize:c,onSort:f,selectionMode:b,selectedRowIds:x,onSelectionChange:v,rowKey:S,columnFilters:M,reorderable:E,onColumnReorder:A,onColumnVisibilityChange:T});a.useEffect((()=>{const e={};ie.forEach((t=>{if(t.width){const a=parseInt(t.width,10);isNaN(a)||(e[t.key]=a)}})),G(e)}),[ie]);const me=a.useCallback(((e,t)=>{t.preventDefault(),t.stopPropagation(),F(e);const a=t.clientX,n=U[e]||100,r=t=>{const r=t.clientX-a,o=Math.max(50,n+r);G((t=>({...t,[e]:o})))},o=()=>{F(null),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",o)}),[U]),he=a.useCallback((e=>{H(e)}),[]),pe=a.useCallback(((e,t)=>{e.preventDefault(),Y(t)}),[]),ge=a.useCallback(((e,t)=>{if(e.preventDefault(),null!==V&&V!==t&&A){const e=[...ie.map((e=>e.key))],[a]=e.splice(V,1);a&&(e.splice(t,0,a),A(e))}H(null),Y(null)}),[V,ie,A]),fe=a.useCallback((e=>{j?j(e,K):function(e,t,a,n){const r=n||"data-table";switch(e){case"csv":!function(e,t,a="data-table.csv"){if(!e.length||!t.length)return;const n=t.map((e=>e.title||e.key)),r=e.map((e=>t.map((t=>{const a=e[t.key];return t.render,a??""})))),o=[n.map((e=>`"${ss(e)}"`)).join(","),...r.map((e=>e.map((e=>`"${ss(e)}"`)).join(",")))].join("\n"),i=new Blob([o],{type:"text/csv;charset=utf-8;"}),s=URL.createObjectURL(i),l=document.createElement("a");l.download=a.endsWith(".csv")?a:a+".csv",l.href=s,l.click(),URL.revokeObjectURL(s)}(t,a,r);break;case"excel":!function(e,t,a="data-table.xlsx"){if(!e.length||!t.length)return;const n=t.map((e=>e.title||e.key)),r=e.map((e=>t.map((t=>e[t.key]??"")))),o=[n.map((e=>`"${ss(e)}"`)).join(","),...r.map((e=>e.map((e=>`"${ss(e)}"`)).join(",")))].join("\n"),i=new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),s=URL.createObjectURL(i),l=document.createElement("a");l.download=a.endsWith(".xlsx")?a:a+".xlsx",l.href=s,l.click(),URL.revokeObjectURL(s)}(t,a,r);break;case"json":!function(e,t="data-table.json"){if(!e.length)return;const a=JSON.stringify(e,null,2),n=new Blob([a],{type:"application/json;charset=utf-8;"}),r=URL.createObjectURL(n),o=document.createElement("a");o.download=t.endsWith(".json")?t:t+".json",o.href=r,o.click(),URL.revokeObjectURL(r)}(t,r)}}(e,K,ie,k)}),[K,ie,k,j]),be=[Bn.base,d&&Bn.striped,u&&Bn.bordered,m&&Bn.dense,h&&Bn.loading,C&&Bn.stickyHeader,r].filter(Boolean).join(" "),xe={...o,...C&&{"--sticky-header-offset":_}};return t.jsxs("div",{className:Bn.container,style:xe,...D,children:[s||R||N||M?t.jsxs("div",{className:Bn.toolbar,children:[t.jsxs("div",{className:Bn.toolbarLeft,children:[s&&t.jsx("div",{className:Bn.search,children:t.jsx("input",{type:"text",placeholder:"Search...",className:Bn.searchInput+" c-input",onChange:e=>J(e.target.value),"aria-label":"Search table"})}),M&&Object.keys(ce).length>0&&t.jsx(mi,{size:"sm",variant:"secondary",onClick:ue,children:"Clear Filters"})]}),t.jsxs("div",{className:Bn.toolbarRight,children:[N&&t.jsx(Ns,{trigger:"click",placement:"bottom-end",menu:t.jsx(t.Fragment,{children:n.map((e=>t.jsx(Ss,{onClick:t=>{t.preventDefault(),t.stopPropagation(),le(e.key)},children:t.jsxs("label",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"100%"},children:[t.jsx(fs,{checked:!1!==se[e.key],onChange:()=>le(e.key),onClick:e=>e.stopPropagation()}),t.jsx("span",{style:{marginLeft:"0.5rem"},children:e.title})]})},e.key)))}),children:t.jsxs(mi,{size:"sm",variant:"secondary",children:[t.jsx(Oo,{name:"Columns",size:"sm"}),"Columns"]})}),R&&t.jsx(Ns,{trigger:"click",placement:"bottom-end",menu:t.jsxs(t.Fragment,{children:[sn(O).call(O,"csv")&&t.jsx(Ss,{onClick:()=>fe("csv"),children:"Export as CSV"}),sn(O).call(O,"excel")&&t.jsx(Ss,{onClick:()=>fe("excel"),children:"Export as Excel"}),sn(O).call(O,"json")&&t.jsx(Ss,{onClick:()=>fe("json"),children:"Export as JSON"})]}),children:t.jsxs(mi,{size:"sm",variant:"secondary",children:[t.jsx(Oo,{name:"Download",size:"sm"}),"Export"]})})]})]}):null,t.jsx("div",{className:Bn.tableWrapper,children:t.jsxs("table",{ref:P,className:be,children:[t.jsx("thead",{ref:B,className:Bn.header,style:C?{position:"sticky",top:_,zIndex:10}:void 0,children:t.jsxs("tr",{children:["none"===b?null:t.jsx("th",{className:`${Bn.headerCell} ${Bn.selectionCell}`,style:{width:"48px"},children:"multiple"===b&&t.jsx(fs,{checked:re,indeterminate:oe,onChange:e=>ne(e.target.checked),"aria-label":"Select all rows"})}),ie.map(((e,a)=>{const n=V===a,r=$===a;return t.jsxs("th",{className:[Bn.headerCell,!1!==e.sortable&&i?Bn.sortable:"",n?Bn.dragging:"",r?Bn.dragOver:""].filter(Boolean).join(" "),style:{...U[e.key]&&{width:U[e.key]+"px"},...e.width&&!U[e.key]&&{width:e.width}},onClick:()=>!1!==e.sortable&&i?X(e.key):null,onDragStart:E?()=>he(a):void 0,onDragOver:E?e=>pe(e,a):void 0,onDrop:E?e=>ge(e,a):void 0,draggable:E,"aria-sort":W?.key===e.key?"asc"===W.direction?"ascending":"descending":void 0,children:[t.jsxs("div",{className:Bn.headerContent,children:[t.jsx("span",{children:e.title}),t.jsxs("div",{className:Bn.headerActions,children:[!1!==e.sortable&&i&&t.jsx("span",{className:Bn.sortIcon,children:W?.key===e.key?"asc"===W.direction?t.jsx(Oo,{name:"CaretUp",size:"sm"}):t.jsx(Oo,{name:"CaretDown",size:"sm"}):null}),M&&!1!==e.filterable&&t.jsx("input",{type:"text",className:Bn.columnFilter,placeholder:"Filter...",value:ce[e.key]||"",onChange:t=>de(e.key,t.target.value),onClick:e=>e.stopPropagation(),"aria-label":"Filter "+e.title})]})]}),y&&!1!==e.resizable&&t.jsx("div",{className:Bn.resizeHandle,onMouseDown:t=>me(e.key,t)})]},"header-"+e.key)}))]})}),h?t.jsx("tbody",{children:t.jsx("tr",{children:t.jsx("td",{colSpan:ie.length+("none"!==b?1:0),className:Bn.loadingCell,children:t.jsx("div",{className:Bn.loadingIndicator,children:t.jsx(Vo,{size:"md",variant:"primary"})})})})}):0===K.length?t.jsx("tbody",{children:t.jsx("tr",{children:t.jsx("td",{colSpan:ie.length+("none"!==b?1:0),className:Bn.emptyCell,children:p})})}):t.jsx("tbody",{children:K.map(((e,a)=>{const n=function(e,t){return"function"==typeof t?t(e):"string"==typeof t?e[t]:e.id??e.key??JSON.stringify(e)}(e,S),r=sn(ee).call(ee,n);return t.jsxs("tr",{className:[Bn.row,r?Bn.rowSelected:""].filter(Boolean).join(" "),onClick:g?()=>g(e):void 0,tabIndex:g?0:void 0,role:g?"button":void 0,children:["none"!==b&&t.jsx("td",{className:`${Bn.cell} ${Bn.selectionCell}`,children:"multiple"===b?t.jsx(fs,{checked:r,onChange:e=>ae(n,e.target.checked),onClick:e=>e.stopPropagation(),"aria-label":"Select row "+(a+1)}):t.jsx("input",{type:"radio",checked:r,onChange:()=>ae(n,!0),onClick:e=>e.stopPropagation(),name:"data-table-row-selection","aria-label":"Select row "+(a+1),className:"c-data-table__radio"})}),ie.map((a=>t.jsx("td",{className:Bn.cell,style:{...U[a.key]&&{width:U[a.key]+"px"},...a.width&&!U[a.key]&&{width:a.width}},children:a.render?a.render(e[a.key],e):e[a.key]},`cell-${n}-${a.key}`)))]},"row-"+n)}))})]})}),l&&Q>1?t.jsx("div",{className:Bn.pagination,children:t.jsx(gs,{currentPage:q,totalPages:Q,onPageChange:Z,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm","aria-label":"Data table pagination",className:"c-data-table__pagination"})}):null]})}));function Cs(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function _s(e,t){return new Date(e,t+1,0).getDate()}function Ls(e,t){if(!e)return"";const a=e.getDate(),n=e.getMonth()+1,r=e.getFullYear();return t.replace("yyyy",r.toString()).replace("MM",n.toString().padStart(2,"0")).replace("M",n.toString()).replace("dd",a.toString().padStart(2,"0")).replace("d",a.toString())}function ws({value:e,onChange:t,selectionMode:n="single",startDate:r,endDate:o,onRangeChange:i,format:s="MM/dd/yyyy",minDate:l,maxDate:c,inline:d=!1}={}){const[u,m]=a.useState(d),[h,p]=a.useState(e?Ls(e,s):""),[g,f]=a.useState(r&&o?`${Ls(r,s)} - ${Ls(o,s)}`:r?Ls(r,s)+" - Select end date":""),[b,x]=a.useState(e||r||new Date),[v,S]=a.useState("days"),[y,E]=a.useState(!r||r&&o?"start":"end"),A=a.useRef(null),N=a.useRef(null),T=a.useMemo((()=>new Date),[]),C=b.getMonth(),_=b.getFullYear(),L=_s(_,C),w=new Date(_,C,1).getDay();a.useEffect((()=>{"single"===n?p(e?Ls(e,s):""):(f(r&&o?`${Ls(r,s)} - ${Ls(o,s)}`:r?Ls(r,s)+" - Select end date":""),E(!r||r&&o?"start":"end"))}),[e,r,o,s,n]);const I=a.useCallback((e=>{const a=new Date(_,C,e);if(!(l&&l>a||c&&a>c))if("single"===n)t&&t(a),p(Ls(a,s)),d||m(!1);else if("start"===y)i&&i({startDate:a,endDate:null}),f(Ls(a,s)+" - Select end date"),E("end");else{if(!r)return;r>a?(i&&i({startDate:a,endDate:r}),f(`${Ls(a,s)} - ${Ls(r,s)}`)):(i&&i({startDate:r,endDate:a}),f(`${Ls(r,s)} - ${Ls(a,s)}`)),d||m(!1),E("start")}}),[_,C,l,c,t,i,s,d,n,y,r]),R=a.useCallback((()=>{x(new Date(_,C-1,1))}),[_,C]),O=a.useCallback((()=>{x(new Date(_,C+1,1))}),[_,C]),k=a.useCallback((()=>{x(new Date(_-1,C,1))}),[_,C]),j=a.useCallback((()=>{x(new Date(_+1,C,1))}),[_,C]),M=a.useCallback((()=>{S("months")}),[]),D=a.useCallback((()=>{S("years")}),[]),P=a.useCallback((e=>{x(new Date(_,e,1)),S("days")}),[_]),B=a.useCallback((e=>{x(new Date(e,C,1)),S("months")}),[C]),z=a.useCallback((()=>{x(new Date(_-12,C,1))}),[_,C]),F=a.useCallback((()=>{x(new Date(_+12,C,1))}),[_,C]),U=a.useCallback((()=>{S("days")}),[]),G=a.useCallback((()=>{const e=new Date;x(e),"single"===n?I(e.getDate()):x(new Date)}),[I,n]),V=a.useCallback((()=>{"single"===n?(p(""),t&&t(null)):(f(""),E("start"),i&&i({startDate:null,endDate:null}))}),[t,i,n]),H=a.useCallback((e=>{if("single"===n){p(e.target.value);const a=new Date(e.target.value);isNaN(a.getTime())||(t&&t(a),x(a))}else{f(e.target.value);const t=e.target.value.split("-");if(2===t.length){const e=t[0]?.trim(),a=t[1]?.trim();if(!e||!a)return;const n=new Date(e);if(isNaN(n.getTime())||x(n),e&&a){const t=new Date(e),n=new Date(a);isNaN(t.getTime())||isNaN(n.getTime())||i&&i({startDate:t,endDate:n})}}}}),[t,i,n]),$=a.useCallback((()=>{d||m(!0)}),[d]),Y=a.useCallback((e=>{A.current&&!A.current.contains(e.target)&&N.current&&!N.current.contains(e.target)&&m(!1)}),[]);a.useEffect((()=>(u&&!d?document.addEventListener("mousedown",Y):document.removeEventListener("mousedown",Y),()=>{document.removeEventListener("mousedown",Y)})),[u,Y,d]);const K=a.useCallback((()=>{const e=[],t=_s(0===C?_-1:_,0===C?11:C-1);for(let n=w-1;n>=0;n--)e.push({day:t-n,month:0===C?11:C-1,year:0===C?_-1:_,isCurrentMonth:!1});for(let n=1;L>=n;n++)e.push({day:n,month:C,year:_,isCurrentMonth:!0});const a=42-e.length;for(let n=1;a>=n;n++)e.push({day:n,month:11===C?0:C+1,year:11===C?_+1:_,isCurrentMonth:!1});return e}),[L,w,C,_]),W=a.useCallback((()=>{const e=[];for(let t=0;12>t;t++)e.push({month:t,name:Cs(t)});return e}),[]),q=a.useCallback((()=>{const e=[],t=_-6;for(let a=0;12>a;a++)e.push(t+a);return e}),[_]),Q=a.useCallback(((e,t,a)=>function(e,t,a){return!(!e||t&&t>e||a&&e>a)}(new Date(e,t,a),l,c)),[l,c]),X=a.useCallback(((t,a,i)=>{if("single"===n)return!!e&&e.getFullYear()===t&&e.getMonth()===a&&e.getDate()===i;if(!r&&!o)return!1;if(r&&!o)return r.getFullYear()===t&&r.getMonth()===a&&r.getDate()===i;if(r&&o){const e=r.getFullYear()===t&&r.getMonth()===a&&r.getDate()===i,n=o.getFullYear()===t&&o.getMonth()===a&&o.getDate()===i;return e||n}return!1}),[e,n,r,o]),Z=a.useCallback(((e,t,a)=>{if("range"!==n||!r||!o)return!1;const i=new Date(e,t,a);return i>r&&o>i}),[n,r,o]),J=a.useCallback(((e,t,a)=>T.getFullYear()===e&&T.getMonth()===t&&T.getDate()===a),[T]),ee=a.useCallback((e=>{const t=new Date(e.valueOf()),a=(e.getDay()+6)%7;t.setDate(t.getDate()-a+3);const n=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((n-t.valueOf())/6048e5)}),[]);return{isOpen:u,inputValue:h,rangeInputValue:g,viewDate:b,viewMode:v,currentMonth:C,currentYear:_,selectionMode:n,rangeSelectionState:y,datePickerRef:A,inputRef:N,startDate:r,endDate:o,setIsOpen:m,handleDateSelect:I,handlePrevMonth:R,handleNextMonth:O,handlePrevYear:k,handleNextYear:j,handleTodayClick:G,handleClear:V,handleInputChange:H,handleInputFocus:$,switchToMonthView:M,switchToYearView:D,switchToDayView:U,selectMonth:P,selectYear:B,handlePrevDecade:z,handleNextDecade:F,generateDays:K,generateMonths:W,generateYears:q,isDateSelectable:Q,isDateSelected:X,isDateInSelectedRange:Z,isToday:J,getWeekNumber:ee}}Ts.displayName="DataTable";const Is=a.forwardRef((({value:e,onChange:n,selectionMode:r="single",startDate:o,endDate:i,onRangeChange:s,format:l="MM/dd/yyyy",minDate:c,maxDate:d,placeholder:u="Select date...",disabled:m=!1,readOnly:h=!1,clearable:p=!0,showTodayButton:g=!0,showWeekNumbers:f=!1,inline:b=!1,id:x,name:v,className:S="",placement:y="bottom-start",inputClassName:E="",size:A="md",style:N,glass:T,...C},_)=>{const{isOpen:L,inputValue:w,rangeInputValue:I,viewMode:R,currentMonth:O,currentYear:k,selectionMode:j,rangeSelectionState:M,datePickerRef:D,inputRef:P,startDate:B,endDate:z,setIsOpen:F,handleInputChange:U,handleInputFocus:G,handleClear:V,handleDateSelect:H,handleTodayClick:$,handlePrevMonth:Y,handleNextMonth:K,handlePrevYear:W,handleNextYear:q,switchToMonthView:Q,switchToYearView:X,switchToDayView:Z,selectMonth:J,selectYear:ee,handlePrevDecade:te,handleNextDecade:ae,generateDays:ne,generateMonths:re,generateYears:oe,isDateSelectable:ie,isDateSelected:se,isDateInSelectedRange:le,isToday:ce,getWeekNumber:de}=ws({value:e,onChange:n,selectionMode:r,startDate:o,endDate:i,onRangeChange:s,minDate:c,maxDate:d,format:l,inline:b});a.useImperativeHandle(_,(()=>({open:()=>F(!0),close:()=>F(!1),clear:V,focus:()=>P.current?.focus()})));const ue=`c-datepicker ${S} ${b?"c-datepicker--inline":""}`.trim(),me=`c-datepicker__input c-input c-input--${A} ${E}`.trim(),he=x||"datepicker-"+Math.random().toString(36).substring(2,9),pe=he+"-calendar",ge="single"===r?w:I,fe=e=>["January","February","March","April","May","June","July","August","September","October","November","December"][e]||"",be=()=>t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"c-datepicker__header",children:["days"===R&&t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:W,"aria-label":"Previous year",children:t.jsx(Oo,{name:"CaretDoubleLeft",size:"sm"})}),t.jsx("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:Y,"aria-label":"Previous month",children:t.jsx(Oo,{name:"CaretLeft",size:"sm"})}),t.jsxs("button",{type:"button",className:"c-datepicker__view-switch",onClick:Q,"aria-label":`${fe(O)} ${k}`,children:[fe(O)," ",k]}),t.jsx("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:K,"aria-label":"Next month",children:t.jsx(Oo,{name:"CaretRight",size:"sm"})}),t.jsx("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:q,"aria-label":"Next year",children:t.jsx(Oo,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===R&&t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:W,"aria-label":"Previous year",children:t.jsx(Oo,{name:"CaretDoubleLeft",size:"sm"})}),t.jsx("button",{type:"button",className:"c-datepicker__view-switch",onClick:X,"aria-label":"Year "+k,children:k}),t.jsx("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:q,"aria-label":"Next year",children:t.jsx(Oo,{name:"CaretDoubleRight",size:"sm"})})]}),"years"===R&&(()=>{const e=oe();return t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-decade",onClick:te,"aria-label":"Previous decade",children:t.jsx(Oo,{name:"CaretDoubleLeft",size:"sm"})}),t.jsxs("button",{type:"button",className:"c-datepicker__view-switch",onClick:Z,children:[e[0]," - ",e[e.length-1]]}),t.jsx("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-decade",onClick:ae,"aria-label":"Next decade",children:t.jsx(Oo,{name:"CaretDoubleRight",size:"sm"})})]})})()]}),t.jsxs("div",{className:"c-datepicker__body",children:["days"===R&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"c-datepicker__weekdays"+(f?" c-datepicker__weekdays--has-weeknumber":""),role:"row",children:[f&&t.jsx("div",{className:"c-datepicker__weekday",children:"Wk"}),["Su","Mo","Tu","We","Th","Fr","Sa"].map((e=>t.jsx("div",{className:"c-datepicker__weekday",role:"columnheader",children:e},e)))]}),t.jsx("div",{className:"c-datepicker__days"+(f?" c-datepicker__days--has-weeknumber":""),role:"grid",children:(()=>{const e=[],a=ne();for(let n=0;n<a.length;n++){const r=a[n];if(!r)continue;const o=new Date(r.year,r.month,r.day),i=ie(r.year,r.month,r.day),s=se(r.year,r.month,r.day),l=ce(r.year,r.month,r.day),c=le(r.year,r.month,r.day);if(f&&n%7==0){const a=de(o);e.push(t.jsx("div",{className:"c-datepicker__weeknumber",role:"rowheader",children:a},"weeknumber-"+Math.floor(n/7)))}e.push(t.jsx("button",{type:"button",className:`c-datepicker__day\n ${r.isCurrentMonth?"":"c-datepicker__day--outside"}\n ${s?"c-datepicker__day--selected":""}\n ${c?"c-datepicker__day--in-range":""}\n ${l?"c-datepicker__day--today":""}\n ${i?"":"c-datepicker__day--disabled"}`,onClick:()=>i&&H(r.day),disabled:!i,tabIndex:r.isCurrentMonth?0:-1,"aria-label":o.toLocaleDateString(),"aria-selected":s?"true":"false",role:"gridcell",children:r.day},"day-"+n))}return e})()})]}),"months"===R&&t.jsx("div",{className:"c-datepicker__months",role:"grid",children:re().map(((a,n)=>{const r=e&&e.getMonth()===a.month&&e.getFullYear()===k;return t.jsx("button",{type:"button",className:"c-datepicker__month "+(r?"c-datepicker__month--selected":""),onClick:()=>J(a.month),"aria-selected":r?"true":"false",role:"gridcell",children:a.name.substring(0,3)},"month-"+n)}))}),"years"===R&&t.jsx("div",{className:"c-datepicker__years",role:"grid",children:oe().map(((a,n)=>{const r=e&&e.getFullYear()===a;return t.jsx("button",{type:"button",className:"c-datepicker__year "+(r?"c-datepicker__year--selected":""),onClick:()=>ee(a),"aria-selected":r?"true":"false",role:"gridcell",children:a},"year-"+n)}))})]}),"days"===R&&t.jsxs("div",{className:"c-datepicker__footer",children:["range"===r&&t.jsxs("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===M?"start":"end"," date"]}),g&&t.jsx("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:$,"aria-label":"Go to today",children:"Today"}),!b&&t.jsx("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:()=>F(!1),"aria-label":"Close calendar",children:"Close"})]})]});return t.jsxs("div",{className:ue,ref:D,style:N,...C,children:[!b&&t.jsxs("div",{className:"c-datepicker__input-wrapper",children:[t.jsx("input",{id:he,name:v,ref:P,type:"text",className:me,placeholder:"single"===r?u:"start"===M?"Select start date...":B?Ls(B,l)+" - Select end date...":"Select date range...",value:ge,onChange:U,onFocus:G,disabled:m,readOnly:h,"aria-haspopup":"dialog","aria-expanded":L,"aria-controls":pe}),p&&ge&&t.jsx("button",{type:"button",className:"c-datepicker__clear-button",onClick:V,"aria-label":"Clear date",children:t.jsx(Oo,{name:"X",size:"sm"})}),t.jsx("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:t.jsx(Oo,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(L||b)&&t.jsx(t.Fragment,{children:T?t.jsx("div",{id:pe,className:`c-datepicker__calendar c-datepicker__calendar--${y} c-datepicker__calendar--glass`,role:"dialog","aria-modal":b?void 0:"true","aria-label":"Date picker",children:t.jsx(so,{...!0===T?{displacementScale:20}:T,children:t.jsx("div",{className:"c-datepicker__glass-content",children:be()})})}):t.jsx("div",{id:pe,className:"c-datepicker__calendar c-datepicker__calendar--"+y,role:"dialog","aria-modal":b?void 0:"true","aria-label":"Date picker",children:be()})})]})}));function Rs(e){const{position:t="start",mode:n="slide",isOpen:r=!1,backdrop:o=!0,closeOnBackdropClick:i=!0,closeOnEscape:s=!0,glass:l,onOpenChange:c,className:d=""}=e||{},[u,m]=a.useState(r||!1),h=a.useRef(null),p=a.useRef(null),g=a.useCallback((()=>{if(!h.current||"push"!==n)return;const e="top"===t||"bottom"===t?h.current.clientHeight:h.current.clientWidth;let a;switch(t){case"start":a="paddingLeft";break;case"end":a="paddingRight";break;default:a="padding"+(t.charAt(0).toUpperCase()+t.slice(1))}document.body.style[a]=e+"px",document.body.classList.add("is-pushed")}),[n,t]),f=a.useCallback((()=>{if("push"!==n)return;let e;switch(t){case"start":e="paddingLeft";break;case"end":e="paddingRight";break;default:e="padding"+(t.charAt(0).toUpperCase()+t.slice(1))}document.body.style[e]="",document.body.classList.remove("is-pushed")}),[n,t]),b=a.useCallback(((e=!1)=>{if(m(!0),document.body.classList.add("is-edgepanel-open"),h.current){if("none"!==n)if(e){h.current.classList.add("is-fade-animating"),h.current.offsetHeight;const e=h.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating")}),Pn.ANIMATION_DURATION)}else{h.current.classList.add("is-animating"),h.current.offsetHeight;const e=h.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),Pn.ANIMATION_DURATION)}e?(h.current.style.opacity="1",h.current.style.transform=""):h.current.style.transform="translate(0)","push"===n&&g()}c&&c(!0)}),[n,g,c]),x=a.useCallback(((e=!1)=>{if(h.current){if("none"!==n)if(e){h.current.classList.add("is-fade-animating-out");const e=h.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating-out")}),Pn.ANIMATION_DURATION)}else{h.current.classList.add("is-animating-out");const e=h.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),Pn.ANIMATION_DURATION)}e?(h.current.style.opacity="0",h.current.style.transform=""):h.current.style.transform=t?Pn.TRANSFORM_VALUES[t]:"","push"===n&&f(),setTimeout((()=>{m(!1),document.body.classList.remove("is-edgepanel-open"),c&&c(!1)}),"none"===n?0:Pn.ANIMATION_DURATION)}else m(!1),document.body.classList.remove("is-edgepanel-open"),c&&c(!1)}),[n,t,c,f]),v=a.useCallback((e=>{s&&"Escape"===e.key&&u&&x()}),[x,s,u]),S=a.useCallback((e=>{i&&e.target===e.currentTarget&&x()}),[x,i]);return a.useEffect((()=>(u&&s&&document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)})),[u,v,s]),a.useEffect((()=>{h.current&&(u||"slide"!==n&&"push"!==n||!t||(h.current.style.transform=Pn.TRANSFORM_VALUES[t],l&&(h.current.style.opacity="0")))}),[n,t,l,u]),a.useEffect((()=>{void 0!==r&&r!==u&&(r?b(!!l):x(!!l))}),[r,x,u,b,l]),{isOpen:u,containerRef:h,backdropRef:p,generateEdgePanelClass:e=>{const{position:a=t,className:n=d,isOpen:r}=e,o=Pn.CLASSES.BASE;return`${o} ${a?`${o}--${a}`:""} ${r??u?Pn.CLASSES.IS_OPEN:""} ${n}`.trim()},openPanel:b,closePanel:x,handleBackdropClick:S}}Is.displayName="DatePicker";const Os=a.forwardRef((({children:e,className:a="",...n},r)=>t.jsx("div",{ref:r,className:("c-edge-panel__header "+a).trim(),...n,children:e})));Os.displayName="EdgePanelHeader";const ks=a.forwardRef((({children:e,className:a="",...n},r)=>t.jsx("div",{ref:r,className:("c-edge-panel__body "+a).trim(),...n,children:e})));ks.displayName="EdgePanelBody";const js=a.forwardRef((({children:e,className:a="",...n},r)=>t.jsx("div",{ref:r,className:("c-edge-panel__footer "+a).trim(),...n,children:e})));js.displayName="EdgePanelFooter";const Ms=a.forwardRef((({className:e="",onClick:a,...n},r)=>t.jsx("button",{ref:r,className:("c-edge-panel__close c-btn c-btn--icon "+e).trim(),onClick:a,"aria-label":"Close panel",...n,children:t.jsx(Oo,{name:"X"})})));Ms.displayName="EdgePanelCloseButton";const Ds=({title:e,children:n,position:r="start",mode:o="slide",isOpen:i=!1,onOpenChange:s,backdrop:l=!0,closeOnBackdropClick:c=!0,closeOnEscape:d=!0,className:u="",style:m,glass:h})=>{const{isOpen:p,containerRef:g,backdropRef:f,generateEdgePanelClass:b,closePanel:x,handleBackdropClick:v}=Rs({position:r,mode:o,isOpen:i,onOpenChange:s,backdrop:l,closeOnBackdropClick:c,closeOnEscape:d,glass:h}),S=a.useRef(null),y=b({position:r,isOpen:i,className:h?u+" c-edge-panel--glass":u});if(!p&&!1===i)return null;const E={elasticity:0},A=!0===h?E:{...E,...h},N=a.Children.toArray(n).some((e=>{var t;return a.isValidElement(e)&&sn(t=["EdgePanelHeader","EdgePanelBody","EdgePanelFooter"]).call(t,e.type.displayName||"")}))?n:t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"c-edge-panel__header",children:[t.jsx("h4",{children:e}),t.jsx("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:()=>x(),"aria-label":"Close panel",children:t.jsx(Oo,{name:"X"})})]}),t.jsx("div",{className:"c-edge-panel__body",children:n})]});return t.jsxs("div",{className:y,"data-position":r,"data-mode":o,style:m,children:[l&&t.jsx("div",{ref:f,className:"c-edge-panel__backdrop",onClick:v}),t.jsx("div",{ref:g,className:"c-edge-panel__container",children:h?t.jsx(so,{...A,children:t.jsx("div",{ref:S,className:"c-edge-panel__glass-content",style:{borderRadius:g.current?.style.borderRadius},children:N})}):N})]})},Ps=a.memo(Ds);function Bs(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:a=t.disabled,className:n=""}=e,r=a?Gn.CLASSES.DISABLED:"";return`${Gn.CLASSES.BASE} ${r} ${n}`.trim()},handleSubmit:e=>a=>{a.preventDefault(),!t.disabled&&e&&e(a)},handleReset:e=>a=>{!t.disabled&&e&&e(a)}}}Ps.displayName="EdgePanel",Ps.Header=Os,Ps.Body=ks,Ps.Footer=js,Ps.CloseButton=Ms;const zs=({children:e,onSubmit:a,onReset:n,className:r="",style:o,disabled:i=!1,id:s,method:l="post",encType:c,noValidate:d=!1,autoComplete:u="on"})=>{const{generateFormClass:m,handleSubmit:h,handleReset:p}=Bs({disabled:i}),g=m({className:r,disabled:i});return t.jsx("form",{id:s,className:g,style:o,onSubmit:h(a),onReset:p(n),method:l,encType:c,noValidate:d,autoComplete:u,children:e})};function Fs(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateFormGroupClass:e=>{const{size:a=t.size,disabled:n=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:i=""}=e,s="md"===a?"":"sm"===a?Vn.CLASSES.SMALL:Vn.CLASSES.LARGE,l=r?Vn.CLASSES.INVALID:o?Vn.CLASSES.VALID:"",c=n?Vn.CLASSES.DISABLED:"";return`${Vn.CLASSES.BASE} ${s} ${l} ${c} ${i}`.trim()}}}zs.displayName="Form";const Us=({children:e,label:a,helperText:n,htmlFor:r,className:o="",style:i,disabled:s=!1,required:l=!1,invalid:c=!1,valid:d=!1,size:u="md"})=>{const{generateFormGroupClass:m}=Fs({size:u,disabled:s,invalid:c,valid:d}),h=m({className:o,disabled:s,invalid:c,valid:d,size:u});return t.jsxs("div",{className:h,style:i,children:[a&&t.jsxs("label",{className:"c-form-group__label",htmlFor:r,children:[a,l&&t.jsx("span",{className:"c-form-group__required",children:"*"})]}),t.jsx("div",{className:"c-form-group__field",children:e}),n&&t.jsx("div",{className:"c-form-group__helper",children:n})]})};function Gs(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateInputClass:e=>{const{size:a=t.size,variant:n=t.variant,disabled:r=t.disabled,invalid:o=t.invalid,valid:i=t.valid,className:s="",type:l}=e,c="md"===a?"":"sm"===a?Hn.CLASSES.SMALL:Hn.CLASSES.LARGE,d=n?"c-input--"+n:"",u="textarea"===l?"c-input--textarea":"";let m="";o?m=Hn.CLASSES.INVALID:i&&(m=Hn.CLASSES.VALID);const h=r?Hn.CLASSES.DISABLED:"";return`${Hn.CLASSES.BASE} ${c} ${d} ${u} ${m} ${h} ${s}`.trim()},generateWrapperClass:t=>{const{className:a=""}=t,{prefixIcon:n=!1,suffixIcon:r=!1,clearable:o=!1,showCounter:i=!1,showPasswordToggle:s=!1,fullWidth:l=!1}=e||{},c=[Hn.ELEMENTS.WRAPPER];return n&&c.push(Hn.CLASSES.PREFIX_ICON),(r||o||s)&&c.push(Hn.CLASSES.SUFFIX_ICON),o&&c.push(Hn.CLASSES.CLEARABLE),i&&c.push(Hn.CLASSES.WITH_COUNTER),s&&c.push(Hn.CLASSES.PASSWORD_TOGGLE),l&&c.push(Hn.CLASSES.FULL_WIDTH),a&&c.push(a),c.filter(Boolean).join(" ")}}}Us.displayName="FormGroup";const Vs=a.memo(a.forwardRef((({type:e="text",value:a,defaultValue:n,onChange:r,onBlur:o,onFocus:i,placeholder:s,className:l="",style:c,disabled:d=!1,required:u=!1,readOnly:m=!1,id:h,name:p,autoComplete:g,autoFocus:f=!1,size:b="md",variant:x,invalid:v=!1,valid:S=!1,maxLength:y,minLength:E,pattern:A,min:N,max:T,step:C,"aria-label":_,"aria-describedby":L,glass:w},I)=>{const{generateInputClass:R}=Gs({size:b,variant:x,disabled:d,invalid:v,valid:S}),O=R({className:`${l} ${w?"c-input--glass":""}`.trim(),size:b,variant:x,disabled:d,invalid:v,valid:S,type:e}),k=t.jsx("input",{ref:I,type:e,className:O,value:a,defaultValue:n,onChange:r,onBlur:o,onFocus:i,placeholder:s,disabled:d,required:u,readOnly:m,id:h,name:p,autoComplete:g,autoFocus:f,maxLength:y,minLength:E,pattern:A,min:N,max:T,step:C,"aria-label":_,"aria-describedby":L,"aria-invalid":v,style:w?{...c}:c});if(w){const e={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,borderRadius:12,mode:"shader"},a=!0===w?e:{...e,...w};return t.jsx(so,{...a,children:k})}return k})));function Hs(e){const t=a.useRef(null),n=a.useRef(null),r=a.useRef(null),o={alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5,headingLevel:"h1",reverseOnMobile:!1,...e},i=!!o.backgroundSlider,s=function(e){const{slides:t,autoplay:n,loop:r=!0,transition:o="fade",transitionDuration:i=1e3}=e,[s,l]=a.useState(0),[c,d]=a.useState(!1),u=a.useRef(null),m=a.useRef(!1),h=a.useRef(void 0),p=a.useMemo((()=>t.map((()=>a.createRef()))),[t]),g=a.useMemo((()=>t.map((()=>a.createRef()))),[t]),f=a.useCallback((e=>{if(e===s||c)return;if(0>e||e>=t.length)return;d(!0),l(e);const a=g[e]?.current,n=t[e];a&&n&&"video"===n.type&&!1!==(n.videoOptions||{}).autoplay&&a.play().catch((()=>{}));const r=g[s]?.current,o=t[s];r&&o&&"video"===o.type&&r.pause(),setTimeout((()=>{d(!1)}),i)}),[s,c,t,g,i]),b=a.useCallback((()=>{if(0===t.length)return;let e;e=r?(s+1)%t.length:Math.min(s+1,t.length-1),f(e)}),[s,t.length,r,f]);a.useEffect((()=>{h.current=()=>{m.current||c||b()}}),[b,c]);const x=a.useCallback((()=>{m.current=!0,u.current&&(clearInterval(u.current),u.current=null)}),[]),v=a.useCallback((()=>{if(m.current&&n&&t.length>1){m.current=!1;const e="object"==typeof n?n.delay:3e3;u.current||(u.current=setInterval((()=>{h.current&&h.current()}),e))}}),[n,t.length]);return a.useEffect((()=>{if(!n||1>=t.length)return;const e="object"==typeof n?n.delay:3e3;return u.current&&(clearInterval(u.current),u.current=null),m.current||(u.current=setInterval((()=>{h.current&&h.current()}),e)),()=>{u.current&&(clearInterval(u.current),u.current=null)}}),[n,t.length]),a.useEffect((()=>{if(t.length>0&&"video"===t[s]?.type){const e=g[s]?.current;e&&!1!==(t[s].videoOptions||{}).autoplay&&e.play().catch((()=>{}))}}),[s,t,g]),a.useEffect((()=>()=>{u.current&&(clearInterval(u.current),u.current=null)}),[]),{currentIndex:s,isTransitioning:c,slideRefs:p,videoRefs:g,handleSlideTransition:f,pauseAutoplay:x,resumeAutoplay:v}}(o.backgroundSlider||{slides:[],autoplay:{delay:5e3,pauseOnHover:!0},transition:"fade",transitionDuration:1e3}),l=i&&o.backgroundSlider?s:void 0,c=!!i||!!o.backgroundImageSrc||!!o.videoBackground,d=!!o.imageSrc,u=d&&"center"!==o.alignment,m=(e,t=.5)=>{if(!e)return;const a=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const n=()=>{const t=window.pageYOffset*a,n=e.querySelector(En.SELECTORS.BG);n&&(n.style.transform=`translateY(${t}px)`)};r.current=n,window.addEventListener("scroll",n),n()},h=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(En.SELECTORS.BG);t&&(t.style.transform=""),r.current&&(window.removeEventListener("scroll",r.current),r.current=null)};return a.useEffect((()=>{const e=t.current;return e&&o.parallax&&c&&!i&&m(e,o.parallaxIntensity),()=>{e&&r.current&&h(e)}}),[o.parallax,o.parallaxIntensity,c,i]),{generateHeroClassNames:(e="")=>{const t=[En.SELECTORS.HERO.replace(".","")];return"center"===o.alignment?t.push(En.CLASSES.CENTER):"right"===o.alignment?t.push(En.CLASSES.RIGHT):"left"===o.alignment&&t.push(En.CLASSES.LEFT),o.fullViewportHeight&&t.push(En.CLASSES.FULL_VH),o.parallax&&t.push("c-hero--parallax"),o.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:(e=o.imageColSize||7,t)=>{const a=["o-grid__col o-grid__col--md-"+e];return"left"===o.alignment&&a.push("u-mt-5 u-mt-md-0"),o.reverseOnMobile&&("right"===o.alignment||"center"===o.alignment?a.push("u-order-first u-order-md-last"):a.push("u-order-last u-order-md-first")),t&&a.push(t),a.join(" ")},generateContentColClass:(e=o.contentColSize||5,t)=>{const a=["o-grid__col o-grid__col--md-"+e];return o.reverseOnMobile&&("right"===o.alignment||"center"===o.alignment?a.push("u-order-last u-order-md-first"):a.push("u-order-first u-order-md-last")),t&&a.push(t),a.join(" ")},hasBackgroundImage:c,hasForegroundImage:d,useGridLayout:u,heroRef:t,videoRef:n,applyParallaxEffect:m,removeParallaxEffect:h,backgroundSlider:l,hasBackgroundSlider:i}}function $s(e){const t={center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0,...e};return{generateRiverClassNames:(e="")=>{const a=[Rn.SELECTORS.RIVER.replace(".","")];return t.center&&a.push(Rn.CLASSES.CENTER),t.breakout&&a.push(Rn.CLASSES.BREAKOUT),t.reverse&&a.push(Rn.CLASSES.REVERSE),e&&a.push(e),a.join(" ")},generateContentClass:()=>Rn.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>Rn.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}function Ys(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,"aria-label":"Main navigation",...e},[n,r]=a.useState(t.expanded||!1);return{defaultProps:t,isExpanded:n,setIsExpanded:r,generateNavbarClass:e=>{const{position:a=t.position,variant:n,collapsible:r=t.collapsible,className:o=""}=e;return`c-navbar ${"static"!==a?"c-navbar--"+a:""} ${n?"c-navbar--"+n:""} ${r?"c-navbar--collapsible":""} ${o}`.trim()},generateContainerStyle:e=>e?{maxWidth:e}:{},generateCollapseClass:e=>("c-navbar__collapse "+(e?"is-expanded":"")).trim(),toggleExpanded:()=>{const e=!n;r(e),t.onToggle&&t.onToggle(e)},getExpandedState:e=>void 0!==e?e:n}}function Ks(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:a=t.alignment,variant:n=t.variant,className:r=""}=e;return`c-nav ${"start"!==a?"c-nav--"+a:""} ${"default"!==n?"c-nav--"+n:""} ${r}`.trim()}}}function Ws(e){const t={dropdown:!1,megaMenu:!1,active:!1,...e};return{defaultProps:t,generateNavItemClass:e=>{const{dropdown:a=t.dropdown,megaMenu:n=t.megaMenu,active:r=t.active,disabled:o=t.disabled,className:i=""}=e;return`c-nav__item ${a&&!n?jn.SELECTORS.DROPDOWN.replace(".",""):""} ${n?"c-nav__item--mega-menu":""} ${r?jn.CLASSES.ACTIVE:""} ${o?jn.CLASSES.DISABLED:""} ${i}`.trim()},generateNavLinkClass:(e=!1,t=!1,a="")=>`c-nav__link ${e?jn.CLASSES.ACTIVE:""} ${t?"c-nav__link--disabled":""} ${a}`.trim(),handleClick:e=>a=>{!t.disabled&&e?e():a.preventDefault()}}}function qs(e){const t={alignment:"start",megaMenu:!1,...e},a=()=>null!==document.querySelector(".c-navbar--fixed-bottom");return{defaultProps:t,generateDropdownMenuClass:e=>{const{alignment:a=t.alignment,megaMenu:n=t.megaMenu,className:r=""}=e,o=n?jn.SELECTORS.MEGA_MENU.replace(".",""):jn.SELECTORS.DROPDOWN_MENU.replace(".","");let i="";return"center"===a?i=o+"--center":"end"===a&&(i=o+"--end"),`${o} ${i} ${r}`.trim()},isInFixedBottomNavbar:a,getIconName:(e=!1)=>a()?"CaretUp":"CaretDown"}}function Qs(e){const{collapsible:t=!0,collapsibleDesktop:n=!1,defaultCollapsedDesktop:r=!1,isOpen:o,onToggle:i,disabled:s=!1}=e||{},[l,c]=a.useState(void 0!==r?!r:o||!1),d=a.useRef(null),u=a.useRef(null),m=a.useRef(null);a.useEffect((()=>{void 0!==o?c(o):void 0!==r&&c(!r)}),[o,r]),a.useEffect((()=>{const e=768>window.innerWidth?t:n,a=void 0!==o?o:l;if(e&&d.current&&u.current){const e=setTimeout((()=>{d.current&&u.current&&(d.current.style.height=a?u.current.scrollHeight+"px":"0px")}),0);return()=>clearTimeout(e)}!e&&d.current&&(d.current.style.height="auto")}),[t,n,o,l]),a.useEffect((()=>{const e=()=>{if(768>window.innerWidth?t:n){if(d.current&&u.current){const e=void 0!==o?o:l;requestAnimationFrame((()=>{d.current&&u.current&&(d.current.style.height=e?u.current.scrollHeight+"px":"0px")}))}}else d.current&&(d.current.style.height="auto")},a=setTimeout(e,0);return window.addEventListener("resize",e),()=>{clearTimeout(a),window.removeEventListener("resize",e)}}),[t,n,o,i,l]),a.useEffect((()=>{const e=768>window.innerWidth?t:n;if(e&&d.current&&u.current){const e=void 0!==o?o:l;requestAnimationFrame((()=>{d.current&&u.current&&(d.current.style.height=e?u.current.scrollHeight+"px":"0px")}))}else!e&&d.current&&(d.current.style.height="auto")}),[o,l,t,n]);const h=()=>{if(s)return;const e=void 0!==o?!o:!l;"function"==typeof i?i(e):c(e)},p=()=>void 0!==o?o:l;return{isOpenState:p(),wrapperRef:d,innerRef:u,sideMenuRef:m,generateSideMenuClass:e=>{const{className:t="",isOpen:a=!1}=e,n=a?Mn.CLASSES.IS_OPEN:"";return`${Mn.CLASSES.BASE} ${n} ${t}`.trim()},generateWrapperClass:()=>Mn.CLASSES.WRAPPER,handleToggle:h,handleDesktopCollapse:()=>{h()},getCurrentOpenState:p}}function Xs(e){const t={active:!1,disabled:!1,...e};return{defaultProps:t,generateSideMenuItemClass:()=>{const{active:e=t.active,disabled:a=t.disabled,className:n=""}=t,r=e?Mn.CLASSES.ACTIVE:"",o=a?Mn.CLASSES.DISABLED:"";return`${Mn.CLASSES.LINK} ${r} ${o} ${n}`.trim()},handleClick:e=>a=>{t.disabled?a.preventDefault():e&&e(a)}}}function Zs(e,t={}){const a={},{prefix:n="atomix",separator:r="-"}=t;return Object.entries(e).forEach((([e,t])=>{const o=(e.startsWith("$")?e.slice(1):e).replace(/_/g,r);a[`--${n}${r}${o}`]=t+""})),a}function Js(e,t){if("undefined"==typeof window)return;const a=t||document.documentElement;Object.entries(e).forEach((([e,t])=>{a.style.setProperty(e,t+"")}))}function el(e,t){if("undefined"==typeof window)return;const a=t||document.documentElement;e.forEach((e=>{a.style.removeProperty(e)}))}function tl(e,t){if("undefined"==typeof window)return null;const a=t||document.documentElement;return getComputedStyle(a).getPropertyValue(e).trim()||null}function al(e){var t;return di(t=Object.entries(e)).call(t,((e,[t,a])=>(e[t]="number"==typeof a?a+"px":a,e)),{})}function nl(...e){return di(e).call(e,((e,t)=>(t&&Object.assign(e,t),e)),{})}function rl(e){return/^--[a-z0-9-]+$/.test(e)}function ol(e,t="atomix"){const a=RegExp(`^--${t}-([a-z0-9]+)-`),n=e.match(a);return n?n[1]??null:null}function il(...e){return e.filter(Boolean).join(" ")}function sl(e,t){return t?{...e,className:il(e.className,t.className),style:{...e.style,...t.style}}:e}function ll(e,t){return e?{...al(e),...t}:t||{}}function cl(e,t){const{className:a,style:n,cssVars:r,parts:o}=t,i=r?al(r):{};return{...e,className:il(e.className,a),style:{...i,...e.style,...n}}}function dl(e,t){return e?.[t]}function ul(e,t,a){return{...a,className:il(e,t?.className),style:{...t?.style,...a?.style}}}function ml(e){return!!(e.parts||e.cssVars||e.slots)}function hl(e,t){return"undefined"==typeof process||"development"!==process.env?.NODE_ENV?{}:{"data-component":e,...t&&{"data-variant":t}}}function pl(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function gl(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\/.+/.test(e)}function fl(e){if(!gl(e))return null;const t=[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([^&\n?#]+)/,/youtube\.com\/.*[?&]v=([^&\n?#]+)/];for(const a of t){const t=e.match(a);if(t&&t[1])return t[1]}return null}function bl(e){const{path:t,format:a="woff2",crossorigin:n="anonymous"}=e,r=document.createElement("link");return r.rel="preload",r.as="font",r.href=t,r.type="font/"+a,r.crossOrigin=n,r}function xl(e){return e.map(bl)}function vl(e){return e.map((e=>{const{path:t,format:a="woff2",crossorigin:n="anonymous"}=e;return`<link rel="preload" as="font" href="${t}" type="font/${a}" crossorigin="${n}">`}))}Vs.displayName="Input";const Sl=[{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-regular.woff2",weight:400,style:"normal",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-bold.woff2",weight:700,style:"normal",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-italic.woff2",weight:400,style:"italic",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-bold-italic.woff2",weight:700,style:"italic",format:"woff2"}];var yl=Object.freeze({__proto__:null,DEFAULT_ATOMIX_FONTS:Sl,applyPartStyles:sl,createCSSVarStyle:ll,createDebugAttrs:hl,createFontPreloadLink:bl,createPartProps:ul,extractYouTubeId:fl,generateFontPreloadTags:vl,generateUUID:pl,getPartStyles:dl,hasCustomization:ml,isYouTubeUrl:gl,mergeClassNames:il,mergeComponentProps:cl,preloadFonts:xl});function El(e){const t={items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0,...e},[n,r]=a.useState(t.items||[]),[o,i]=a.useState(""),s=e=>{if(!e.trim())return null;const t={id:pl(),text:e.trim(),completed:!1};return r((e=>[...e,t])),i(""),t};return{items:n,inputText:o,setInputText:i,addTodo:s,toggleTodo:e=>{let t=null;return r((a=>a.map((a=>a.id===e?(t={...a,completed:!a.completed},t):a)))),t},deleteTodo:e=>{const t=n.length;return r((t=>t.filter((t=>t.id!==e)))),n.length!==t},handleSubmit:(e,t)=>{if(e.preventDefault(),!o.trim())return;const a=s(o);a&&t&&t(a.text)},generateTodoClasses:e=>{const{size:a=t.size,className:n="",disabled:r=!1}=e,o="md"===a?"":"c-todo--"+a,i=r?"c-todo--disabled":"";return`${Un.CLASSES.BASE} ${o} ${i} ${n}`.trim()},generateItemClasses:e=>{const t=e.completed?Un.CLASSES.COMPLETED:"";return`${Un.CLASSES.ITEM} ${t}`.trim()},getFilteredItems:(e=!0)=>e?n:n.filter((e=>!e.completed))}}function Al(e){const t={disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateRadioClass:e=>{const{disabled:a=t.disabled,invalid:n=t.invalid,valid:r=t.valid,className:o=""}=e;let i="";n?i=$n.CLASSES.INVALID:r&&(i=$n.CLASSES.VALID);const s=a?$n.CLASSES.DISABLED:"";return`${$n.CLASSES.BASE} ${i} ${s} ${o}`.trim()}}}function Nl(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateSelectClass:e=>{const{size:a=t.size,disabled:n=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:i=""}=e,s="md"===a?"":"sm"===a?Kn.CLASSES.SMALL:Kn.CLASSES.LARGE;let l="";r?l=Kn.CLASSES.INVALID:o&&(l=Kn.CLASSES.VALID);const c=n?Kn.CLASSES.DISABLED:"";return`${Kn.CLASSES.BASE} ${s} ${l} ${c} ${i}`.trim()}}}function Tl(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateTextareaClass:e=>{const{size:a=t.size,variant:n=t.variant,disabled:r=t.disabled,invalid:o=t.invalid,valid:i=t.valid,className:s=""}=e,l="md"===a?"":"sm"===a?Wn.CLASSES.SMALL:Wn.CLASSES.LARGE,c=n?"c-input--"+n:"";let d="";o?d=Wn.CLASSES.INVALID:i&&(d=Wn.CLASSES.VALID);const u=r?Wn.CLASSES.DISABLED:"";return`${Wn.CLASSES.BASE} ${l} ${c} ${d} ${u} ${s}`.trim()}}}function Cl(e){const t=a.useMemo((()=>e.length?e.map(((e,t)=>({...e,value:"number"==typeof e.value?e.value:0,label:e.label||"Point "+(t+1)}))):[]),[e]),n=a.useMemo((()=>{if(!t.length)return{min:0,max:0,total:0,average:0};const e=t.map((e=>e.value)),a=Math.min(...e),n=Math.max(...e),r=di(e).call(e,((e,t)=>e+t),0);return{min:a,max:n,total:r,average:r/e.length}}),[t]);return{data:t,stats:n,isEmpty:0===t.length}}function _l(e,t=400,n=300){return a.useMemo((()=>{const a={top:20,right:20,bottom:40,left:40},r=t-a.left-a.right,o=n-a.top-a.bottom;if(!e.length)return{xScale:()=>a.left,yScale:()=>a.top+o,minValue:0,maxValue:0,valueRange:0,innerWidth:r,innerHeight:o,width:t,height:n,padding:a};const i=e.map((e=>e.value)),s=Math.min(0,...i),l=Math.max(...i),c=l-s||1;return{xScale:t=>a.left+t/Math.max(e.length-1,1)*r,yScale:e=>a.top+o-(e-s)/c*o,minValue:s,maxValue:l,valueRange:c,innerWidth:r,innerHeight:o,width:t,height:n,padding:a}}),[e,t,n])}function Ll(){const[e,t]=a.useState({hoveredIndex:null,selectedIndex:null});return{interaction:e,handlePointHover:a.useCallback((e=>{t((t=>({...t,hoveredIndex:e})))}),[]),handlePointClick:a.useCallback((e=>{t((t=>({...t,selectedIndex:t.selectedIndex===e?null:e})))}),[]),clearInteraction:a.useCallback((()=>{t({hoveredIndex:null,selectedIndex:null})}),[])}}var wl=Object.freeze({__proto__:null,BALANCED_PRESET:eo,DEFAULT_BREAKPOINTS:Vr,DeviceDetector:oo,MOBILE_OPTIMIZED_BREAKPOINTS:no,PERFORMANCE_PRESET:Jr,PerformanceOverlay:Wr,QUALITY_PRESET:to,createBreakpoints:Yr,getDefaultBreakpoints:$r,getDevicePreset:ao,getMobileOptimizedParams:ro,getQualityMultipliers:qr,useAccordion:ur,useAtomixGlass:Gr,useBadge:Mo,useBarChart:Fi,useBlock:Bo,useChartData:Cl,useChartInteraction:Ll,useChartScale:_l,useEdgePanel:Rs,useForm:Bs,useFormGroup:Fs,useHero:Hs,useInput:Gs,useLineChart:qi,useNav:Ks,useNavDropdown:qs,useNavItem:Ws,useNavbar:Ys,usePerformanceMonitor:Kr,usePieChart:Zi,useRadio:Al,useResponsiveGlass:Hr,useRiver:$s,useSelect:Nl,useSideMenu:Qs,useSideMenuItem:Xs,useSpinner:Go,useTextarea:Tl,useTodo:El});const Il=a.createContext(null),Rl=a.memo((({value:e,children:n,disabled:r=!1,className:o="",style:i})=>{const s=a.useContext(Il),l="string"==typeof n?n:e;if(a.useEffect((()=>{if(s)return s.registerOption({value:e,label:l,disabled:r}),()=>{s.unregisterOption(e)}}),[s,e,l,r]),!s)return null;const{selectedValue:c,onSelect:d}=s,u=Array.isArray(c)?sn(c).call(c,e):c===e;return t.jsx("li",{className:`${Kn.CLASSES.SELECT_ITEM} ${o}`.trim(),"data-value":e,onClick:t=>{t.preventDefault(),t.stopPropagation(),r||d(e,l)},style:i,role:"option","aria-selected":u,"aria-disabled":r,children:t.jsxs("label",{className:"c-checkbox",style:{pointerEvents:"none"},children:[t.jsx("input",{type:"checkbox",className:"c-checkbox__input c-select__item-input",checked:u,readOnly:!0,disabled:r,tabIndex:-1}),t.jsx("div",{className:"c-select__item-label",children:n})]})})}));Rl.displayName="SelectOption";const Ol=({options:e,value:n,onChange:r,onBlur:o,onFocus:i,placeholder:s="Select an option",className:l="",style:c,disabled:d=!1,required:u=!1,id:m,name:h,size:p="md",invalid:g=!1,valid:f=!1,multiple:b=!1,"aria-label":x,"aria-describedby":v,glass:S,children:y})=>{const{generateSelectClass:E}=Nl({size:p,disabled:d,invalid:g,valid:f}),A=E({className:`${l} ${S?"c-select--glass":""}`.trim(),size:p,disabled:d,invalid:g,valid:f}),[N,T]=a.useState(!1),[C,_]=a.useState(s),L=a.useRef(null),w=a.useRef(null),I=a.useRef(null),R=a.useRef(null),[O,k]=a.useState([]),j=a.useCallback((e=>{k((t=>t.some((t=>t.value===e.value))?t:[...t,e]))}),[]),M=a.useCallback((e=>{k((t=>t.filter((t=>t.value!==e))))}),[]),D=e&&e.length>0,P=D?e:O;a.useEffect((()=>{if(n){const e=P.find((e=>e.value===n));e&&_(e.label)}else _(s)}),[n,P,s]),a.useEffect((()=>{const e=e=>{L.current&&!L.current.contains(e.target)&&(T(!1),I.current&&(I.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]);const B=()=>{d||(!N&&I.current&&w.current?I.current.style.height=w.current.clientHeight+"px":I.current&&(I.current.style.height="0px"),T(!N))},z=a.useCallback((e=>{if(_(e.label),T(!1),I.current&&(I.current.style.height="0px"),R.current&&(R.current.value=e.value),r){const t={target:{name:h,value:e.value}};r(t)}}),[r,h]),F=a.useCallback(((e,t)=>{z({value:e,label:t})}),[z]),U=a.useMemo((()=>({registerOption:j,unregisterOption:M,selectedValue:n,onSelect:F})),[j,M,n,F]),G=t.jsx(Il.Provider,{value:U,children:t.jsxs("div",{className:`${A} ${N?Kn.CLASSES.IS_OPEN:""}`,ref:L,style:c,"aria-expanded":N,children:[t.jsxs("select",{ref:R,value:n,onChange:r,onBlur:o,onFocus:i,disabled:d,required:u,id:m,name:h,multiple:b,"aria-label":x,"aria-describedby":v,"aria-invalid":g,style:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"},children:[s&&t.jsx("option",{value:"",disabled:!0,children:s}),P.map((e=>t.jsx("option",{value:e.value,disabled:e.disabled,children:e.label},e.value)))]}),t.jsx("div",{className:Kn.CLASSES.SELECTED,onClick:B,onKeyDown:e=>{if(!d)switch(e.key){case"Enter":case" ":e.preventDefault(),B();break;case"Escape":N&&(e.preventDefault(),T(!1),I.current&&(I.current.style.height="0px"));break;case"ArrowDown":case"ArrowUp":N||(e.preventDefault(),B())}},"aria-disabled":d,tabIndex:d?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":N,"aria-controls":m?m+"-listbox":void 0,children:C}),t.jsx("i",{className:`${Kn.CLASSES.ICON_CARET} ${Kn.CLASSES.TOGGLE_ICON}`}),t.jsx("div",{className:Kn.CLASSES.SELECT_BODY,ref:I,style:{height:0},children:t.jsx("div",{className:Kn.CLASSES.SELECT_PANEL,ref:w,children:t.jsx("ul",{className:Kn.CLASSES.SELECT_ITEMS,role:"listbox",id:m?m+"-listbox":void 0,"aria-labelledby":m,children:D?e.map(((e,a)=>t.jsx("li",{className:Kn.CLASSES.SELECT_ITEM,"data-value":e.value,onClick:()=>!e.disabled&&z(e),role:"option","aria-selected":n===e.value,"aria-disabled":e.disabled,children:t.jsxs("label",{htmlFor:"SelectItem"+a,className:"c-checkbox",children:[t.jsx("input",{type:"checkbox",id:"SelectItem"+a,className:"c-checkbox__input c-select__item-input",checked:n===e.value,readOnly:!0,disabled:e.disabled}),t.jsx("div",{className:"c-select__item-label",children:e.label})]})},e.value))):y})})})]})});if(S){const e={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,borderRadius:12,mode:"shader"},a=!0===S?e:{...e,...S};return t.jsx(so,{...a,children:G})}return G},kl=a.memo(Ol);kl.displayName="Select",kl.Option=Rl;const jl=a.memo((({label:e,checked:a=!1,onChange:n,className:r="",style:o,disabled:i=!1,required:s=!1,id:l,name:c,value:d,invalid:u=!1,valid:m=!1,"aria-label":h,"aria-describedby":p,glass:g})=>{const{generateRadioClass:f}=Al({disabled:i,invalid:u,valid:m}),b=f({className:`${r} ${g?"c-radio--glass":""}`.trim(),disabled:i,invalid:u,valid:m}),x=t.jsxs("div",{className:b,style:o,children:[t.jsx("input",{type:"radio",className:"c-radio__input",checked:a,onChange:n,disabled:i,required:s,id:l,name:c,value:d,"aria-label":e?void 0:h,"aria-describedby":p,"aria-invalid":u}),e&&t.jsx("label",{className:"c-radio__label",htmlFor:l,children:e})]});if(g){const e={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,borderRadius:6,mode:"shader"},a=!0===g?e:{...e,...g};return t.jsx(so,{...a,children:x})}return x}));jl.displayName="Radio";const Ml=a.memo(a.forwardRef((({value:e,defaultValue:a,onChange:n,onBlur:r,onFocus:o,placeholder:i,className:s="",style:l,disabled:c=!1,required:d=!1,readOnly:u=!1,id:m,name:h,rows:p=4,cols:g,maxLength:f,minLength:b,size:x="md",variant:v,invalid:S=!1,valid:y=!1,autoFocus:E=!1,"aria-label":A,"aria-describedby":N,glass:T},C)=>{const{generateTextareaClass:_}=Tl({size:x,variant:v,disabled:c,invalid:S,valid:y}),L=_({className:`${s} ${T?"c-input--glass":""}`.trim(),size:x,variant:v,disabled:c,invalid:S,valid:y}),w=t.jsx("textarea",{ref:C,className:L,value:e,defaultValue:a,onChange:n,onBlur:r,onFocus:o,placeholder:i,disabled:c,required:d,readOnly:u,id:m,name:h,rows:p,cols:g,maxLength:f,minLength:b,autoFocus:E,"aria-label":A,"aria-describedby":N,"aria-invalid":S,style:T?{...l}:l});if(T){const e={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:1,borderRadius:8,mode:"shader"},a=!0===T?e:{...e,...T};return t.jsx(so,{...a,children:w})}return w})));Ml.displayName="Textarea";const Dl={facebook:"FacebookLogo",twitter:"TwitterLogo",instagram:"InstagramLogo",linkedin:"LinkedinLogo",youtube:"YoutubeLogo",github:"GithubLogo",discord:"DiscordLogo",tiktok:"TiktokLogo",pinterest:"PinterestLogo",snapchat:"SnapchatLogo",whatsapp:"WhatsappLogo",telegram:"TelegramLogo",reddit:"RedditLogo",twitch:"TwitchLogo",spotify:"SpotifyLogo",dribbble:"DribbbleLogo",behance:"BehanceLogo",medium:"MediumLogo",dev:"DevToLogo",codepen:"CodepenLogo"},Pl={facebook:"Facebook",twitter:"Twitter",instagram:"Instagram",linkedin:"LinkedIn",youtube:"YouTube",github:"GitHub",discord:"Discord",tiktok:"TikTok",pinterest:"Pinterest",snapchat:"Snapchat",whatsapp:"WhatsApp",telegram:"Telegram",reddit:"Reddit",twitch:"Twitch",spotify:"Spotify",dribbble:"Dribbble",behance:"Behance",medium:"Medium",dev:"Dev.to",codepen:"CodePen"},Bl=e=>{const a=Dl[e];return a?t.jsx(Oo,{name:a}):t.jsx(Oo,{name:"Link"})},zl=a.forwardRef((({platform:e,url:a,icon:n,label:r,size:o="md",variant:i="default",disabled:s=!1,className:l="",...c},d)=>{const u=["c-footer__social-link","c-footer__social-link--"+e,"c-footer__social-link--"+o,"c-footer__social-link--"+i,s&&"c-footer__social-link--disabled",l].filter(Boolean).join(" "),m=r||"Follow us on "+(e=>Pl[e]||e)(e);return t.jsxs("a",{ref:d,href:s?void 0:a,className:u,target:"_blank",rel:"noopener noreferrer","aria-label":m,"aria-disabled":s,...c,children:[t.jsx("span",{className:"c-footer__social-link-icon",children:n||Bl(e)}),t.jsx("span",{className:"c-footer__social-link-label u-visually-hidden",children:m})]})}));zl.displayName="FooterSocialLink";const Fl=a.forwardRef((({children:e,className:a="",justifyContent:n,alignItems:r,noGutters:o,direction:i,wrap:s,...l},c)=>{const d=["o-grid"];return n&&d.push("u-justify-content-"+n),r&&d.push("u-align-items-"+r),o&&d.push("o-grid--no-gutters"),i&&d.push("u-flex-direction-"+i),s&&d.push("u-flex-wrap-"+s),a&&d.push(a),t.jsx("div",{ref:c,className:d.join(" "),...l,children:e})}));Fl.displayName="Grid";const Ul=a.forwardRef((({children:e,className:a="",xs:n,sm:r,md:o,lg:i,xl:s,xxl:l,offsetXs:c,offsetSm:d,offsetMd:u,offsetLg:m,offsetXl:h,offsetXxl:p,grow:g,shrink:f,basis:b,align:x,...v},S)=>{const y=n||r||o||i||s||l?["o-grid__col"]:["o-grid__col","o-grid__col--auto"],E=(e,t)=>{void 0!==e&&(!0!==e?!1!==e&&("xs"===t?"auto"===e?y.push("o-grid__col--auto"):y.push("o-grid__col--"+e):"auto"===e?y.push(`o-grid__col--${t}-auto`):y.push(`o-grid__col--${t}-${e}`)):y.push("xs"===t?"o-grid__col--auto":`o-grid__col--${t}-auto`))};return E(n,"xs"),E(r,"sm"),E(o,"md"),E(i,"lg"),E(s,"xl"),E(l,"xxl"),c&&y.push("o-grid__offset--"+c),d&&y.push("o-grid__offset--sm-"+d),u&&y.push("o-grid__offset--md-"+u),m&&y.push("o-grid__offset--lg-"+m),h&&y.push("o-grid__offset--xl-"+h),p&&y.push("o-grid__offset--xxl-"+p),void 0!==g&&y.push(g?"u-flex-grow-1":"u-flex-grow-0"),void 0!==f&&y.push(f?"u-flex-shrink-1":"u-flex-shrink-0"),b&&y.push("u-flex-basis-"+b),x&&y.push("u-align-self-"+x),a&&y.push(a),t.jsx("div",{ref:S,className:y.join(" "),...v,children:e})}));Ul.displayName="GridCol";const Gl=a.forwardRef((({children:e,className:a="",justifyContent:n,alignItems:r,noGutters:o,...i},s)=>{const l=["o-grid"];return n&&l.push("u-justify-content-"+n),r&&l.push("u-align-items-"+r),o&&l.push("o-grid--no-gutters"),a&&l.push(a),t.jsx("div",{ref:s,className:l.join(" "),...i,children:e})}));Gl.displayName="Row";const Vl=a.forwardRef((({brand:e,brandLogo:n,brandDescription:r,copyright:o,layout:i="columns",variant:s="primary",size:l="md",showNewsletter:c=!1,newsletterTitle:d="Stay Updated",newsletterDescription:u="Subscribe to our newsletter for the latest updates.",newsletterPlaceholder:m="Enter your email",newsletterButtonText:h="Subscribe",onNewsletterSubmit:p,socialLinks:g=[],showBackToTop:f=!1,backToTopText:b="Back to Top",onBackToTop:x,showDivider:v=!0,sticky:S=!1,children:y,className:E="",disabled:A=!1,glass:N,...T},C)=>{const{footerClass:_,containerClass:L,brandClass:w,sectionsClass:I,bottomClass:R,getResponsiveColumnProps:O,handleNewsletterSubmit:k,handleBackToTop:j}=function(e={}){const{layout:t=cr.DEFAULTS.LAYOUT,variant:n=cr.DEFAULTS.VARIANT,size:r=cr.DEFAULTS.SIZE,sticky:o=cr.DEFAULTS.STICKY,showNewsletter:i=cr.DEFAULTS.SHOW_NEWSLETTER,showBackToTop:s=cr.DEFAULTS.SHOW_BACK_TO_TOP,showDivider:l=cr.DEFAULTS.SHOW_DIVIDER,socialLinks:c=[],onNewsletterSubmit:d,onBackToTop:u,glass:m=!1,className:h=""}=e,p=a.useMemo((()=>{const e=t.toUpperCase(),a=r.toUpperCase();return[cr.CLASSES.BASE,cr.CLASSES[e]||cr.CLASSES.COLUMNS,"c-footer--"+n,cr.CLASSES[a]||cr.CLASSES.MD,o&&cr.CLASSES.STICKY,i&&"c-footer--with-newsletter",m&&"c-footer--glass",h].filter(Boolean).join(" ")}),[t,n,r,o,i,m,h]),g=cr.CLASSES.CONTAINER,f=cr.CLASSES.BRAND,b=a.useMemo((()=>[cr.CLASSES.SECTIONS,"columns"===t&&"c-footer__sections--columns","centered"===t&&"c-footer__sections--centered","stacked"===t&&"c-footer__sections--stacked"].filter(Boolean).join(" ")),[t]),x=cr.CLASSES.BOTTOM,v=a.useMemo((()=>function(e,t){switch(e){case"columns":default:return{brand:4,content:t?4:8,newsletter:t?4:0};case"centered":case"minimal":case"stacked":return{brand:12,content:12,newsletter:t?12:0};case"flexible":return{brand:"auto",content:"auto",newsletter:"auto"};case"sidebar":return{brand:3,content:9,newsletter:t?9:0};case"wide":return{brand:3,content:6,newsletter:t?3:0}}}(t,i)),[t,i]);return{footerClass:p,containerClass:g,brandClass:f,sectionsClass:b,bottomClass:x,columnSizes:v,getResponsiveColumnProps:e=>function(e,t,a){return"flexible"===t&&"auto"===a[e]?{xs:12,sm:!0,md:!0}:{xs:12,md:"columns"===t||"sidebar"===t||"wide"===t?a[e]:12}}(e,t,v),handleNewsletterSubmit:e=>{d?.(e)},handleBackToTop:()=>{u?u():window.scrollTo({top:0,behavior:"smooth"})},socialLinks:c,showNewsletter:i,showBackToTop:s,showDivider:l}}({layout:i,variant:s,size:l,sticky:S,showNewsletter:c,showBackToTop:f,showDivider:v,socialLinks:g,onNewsletterSubmit:p,onBackToTop:x,glass:!!N,className:E}),M=t.jsxs("div",{className:L,children:[t.jsxs(Fl,{className:I,alignItems:"start",justifyContent:"centered"===i?"center":void 0,children:[e||n||r?t.jsxs(Ul,{...O("brand"),className:w,children:[n&&t.jsx("div",{className:"c-footer__brand-logo",children:"string"==typeof n?t.jsx("img",{src:n,alt:"Brand Logo"}):n}),e&&t.jsx("div",{className:"c-footer__brand-name",children:"string"==typeof e?t.jsx("h3",{children:e}):e}),r&&t.jsx("div",{className:"c-footer__brand-description",children:r}),g.length>0&&t.jsx("div",{className:"c-footer__social","data-testid":"footer-social-links",children:g.map(((e,a)=>t.jsx(zl,{platform:e.platform,url:e.url,icon:e.icon,label:e.label,size:l},`${e.platform}-${a}`)))})]}):null,y?t.jsx(Ul,{...O("content"),className:"c-footer__content",children:t.jsx(Fl,{className:"c-footer__sections",alignItems:"centered"===i||"stacked"===i?"center":void 0,children:a.Children.map(y,(e=>a.isValidElement(e)?a.cloneElement(e,{showNewsletter:c}):e))})}):null,c?t.jsxs(Ul,{...O("newsletter"),className:"c-footer__newsletter",children:[t.jsx("h4",{className:"c-footer__newsletter-title",children:d}),u&&t.jsx("p",{className:"c-footer__newsletter-description",children:u}),t.jsx(zs,{className:"c-footer__newsletter-form",onSubmit:e=>{e.preventDefault();const t=new FormData(e.currentTarget).get("email");t&&k(t)},children:t.jsxs("div",{className:"c-footer__newsletter-input-group",children:[t.jsx(Vs,{type:"email",name:"email",className:"c-footer__newsletter-input",placeholder:m,required:!0}),t.jsx(mi,{type:"submit",className:"c-footer__newsletter-button",children:h})]})})]}):null]}),o||f?t.jsxs(t.Fragment,{children:[v&&t.jsx("hr",{className:"c-footer__divider"}),t.jsxs("div",{className:R,children:[o&&t.jsx("div",{className:"c-footer__copyright",children:o}),f&&t.jsxs(mi,{variant:"ghost",className:"c-footer__back-to-top",onClick:j,disabled:A,"aria-label":b,children:[t.jsx("span",{className:"c-footer__back-to-top-icon",children:"↑"}),t.jsx("span",{className:"c-footer__back-to-top-text",children:b})]})]})]}):null]});return t.jsx("footer",{ref:C,className:_,...T,children:N?t.jsx(so,{...N,elasticity:0,children:t.jsx("div",{className:"c-footer__glass",children:M})}):M})}));Vl.displayName="Footer";const Hl=a.forwardRef((({children:e,className:n="",xs:r=1,sm:o,md:i,lg:s,xl:l,xxl:c,gap:d=16,animate:u=!0,imagesLoaded:m=!0,onLayoutComplete:h,onImageLoad:p,...g},f)=>{const[b,x]=a.useState(r),[v,S]=a.useState([]),[,y]=a.useState(!1),[E,A]=a.useState(!1),N=a.useRef(null),T=a.useRef([]),C=a.useRef(0),_=a.useRef(0),L=a.useRef(new Map);a.useEffect((()=>{A(!!m)}),[b,m]),a.useImperativeHandle(f,(()=>N.current));const w=a.useCallback((()=>{const e=window.innerWidth;return 1400>e||void 0===c?1200>e||void 0===l?992>e||void 0===s?768>e||void 0===i?576>e||void 0===o?r:o:i:s:l:c}),[r,o,i,s,l,c]);a.useEffect((()=>{const e=()=>x(w());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[w]);const[I,R]=a.useState([]);a.useEffect((()=>{const t=[];a.Children.forEach(e,((e,n)=>{a.isValidElement(e)&&t.push({id:e.key?.toString()||"masonry-item-"+n,element:e,position:null,ref:a.createRef()})})),R(t)}),[e]);const O=a.useCallback((()=>{if(!N.current||0===I.length)return;const e=(N.current.offsetWidth-d*(b-1))/b;T.current=Array(b).fill(0);const t=[];I.forEach(((a,n)=>{if(a.ref.current){const r=T.current.indexOf(Math.min(...T.current)),o=r*(e+d),i=T.current[r]??0,s=a.ref.current.offsetHeight;T.current[r]=i+s+d,t[n]={left:o,top:i,width:e,height:s}}})),S(t)}),[I,b,d]),k=a.useCallback((e=>{if(L.current.get(e))return;if(L.current.set(e,!0),C.current+=1,N.current&&m){const t=e.closest(".o-masonry-grid > div");t&&(t.offsetHeight,t.classList.add("o-masonry-grid__item-loaded"),t.classList.remove("o-masonry-grid__item-loading"))}const t=()=>{const e=requestAnimationFrame((()=>{p?.(C.current,_.current),O()}));return()=>cancelAnimationFrame(e)},a=t();C.current>=_.current&&_.current>0&&(y(!0),A(!1),setTimeout((()=>a()),0),t(),h?.())}),[p,h,m,O]),j=a.useCallback((()=>{if(!m||!N.current)return;L.current.clear(),C.current=0;const e=N.current.querySelectorAll("img");return _.current=e.length,0===e.length?(y(!0),A(!1),void h?.()):(A(!0),e.forEach((e=>{const t=e,a=e.closest(".o-masonry-grid > div");if(a&&a.classList.add("o-masonry-grid__item-loading"),e.complete)k(e);else{const a=()=>k(e);e.addEventListener("load",a),e.addEventListener("error",a),t._masonryLoadHandler=a}})),()=>{e.forEach((e=>{const t=e;t._masonryLoadHandler&&(e.removeEventListener("load",t._masonryLoadHandler),e.removeEventListener("error",t._masonryLoadHandler),delete t._masonryLoadHandler)}))})}),[m,k,h]);a.useEffect((()=>{if(!N.current)return;let e=null,t=0;const a=new ResizeObserver((a=>{const n=a[0];if(!n)return;const r=n.contentRect.width;Math.abs(r-t)>1&&(e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>{O(),t=r})))}));return a.observe(N.current),()=>{a.disconnect(),e&&cancelAnimationFrame(e)}}),[O]),a.useLayoutEffect((()=>m?j():(O(),y(!0),void A(!1))),[I,b,O,m,j]),a.useEffect((()=>{const e=[];let t=null;const a=()=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame(O)};return I.forEach((t=>{if(t.ref.current){const n=new ResizeObserver(a);n.observe(t.ref.current),e.push(n)}})),()=>{e.forEach((e=>e.disconnect())),t&&cancelAnimationFrame(t)}}),[I,O]);const M=T.current.length>0?Math.max(...T.current):0,D=["o-masonry-grid",n,u?"o-masonry-grid--animate":"",E?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return t.jsx("div",{ref:N,className:D,style:{position:"relative",width:"100%",height:M+"px",...g.style},...g,children:I.map(((e,a)=>{const n=v[a];return n?t.jsx("div",{ref:e.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:n.left+"px",top:n.top+"px",width:n.width+"px",opacity:1},children:e.element},e.id):t.jsx("div",{ref:e.ref,style:{opacity:0,position:"absolute"},children:e.element},e.id)}))})}));Hl.displayName="MasonryGrid";const $l=a.forwardRef((({children:e,className:a="",...n},r)=>{const o=["o-masonry-grid__item-inner"];return a&&o.push(a),t.jsx("div",{ref:r,className:o.join(" "),...n,children:e})}));$l.displayName="MasonryGridItem";var Yl=Object.freeze({__proto__:null,Container:Po,Grid:Fl,GridCol:Ul,MasonryGrid:Hl,MasonryGridItem:$l,Row:Gl});const Kl=a.forwardRef((({title:e,icon:n,collapsible:r=!1,defaultCollapsed:o=!1,showNewsletter:i=!1,children:s,className:l="",...c},d)=>{const[u,m]=a.useState(o),h=e?"footer-section-"+e.toString().toLowerCase().replace(/\s+/g,"-"):void 0,p=["c-footer__section",r&&"c-footer__section--collapsible",u&&"c-footer__section--collapsed",l].filter(Boolean).join(" ");return t.jsx(Ul,{xs:12,md:i?6:3,className:"c-footer__section-col",children:t.jsxs("div",{ref:d,className:p,...c,children:[e?r?t.jsx("div",{className:"c-footer__section-header",children:t.jsxs("button",{type:"button",className:"c-footer__section-toggle",onClick:()=>{r&&m((e=>!e))},"aria-expanded":!u,"aria-controls":h,children:[n&&t.jsx("span",{className:"c-footer__section-icon",children:n}),t.jsx("h4",{className:"c-footer__section-title",children:e}),t.jsx("span",{className:"c-footer__section-chevron",children:u?"▼":"▲"})]})}):t.jsx("div",{className:"c-footer__section-header",children:t.jsxs("div",{className:"c-footer__section-header-content",children:[n&&t.jsx("span",{className:"c-footer__section-icon",children:n}),t.jsx("h4",{className:"c-footer__section-title",children:e})]})}):null,t.jsx("div",{className:"c-footer__section-content",id:h,children:s})]})})}));Kl.displayName="FooterSection";const Wl=a.forwardRef((({href:e,icon:a,external:n=!1,active:r=!1,disabled:o=!1,onClick:i,children:s,className:l="",linkComponent:c,...d},u)=>{const m={className:["c-footer__link",r&&"c-footer__link--active",o&&"c-footer__link--disabled",l].filter(Boolean).join(" "),onClick:o?void 0:i,"aria-disabled":o,...n&&{target:"_blank",rel:"noopener noreferrer"},...d},h=t.jsxs(t.Fragment,{children:[a&&t.jsx("span",{className:"c-footer__link-icon",children:a}),t.jsx("span",{className:"c-footer__link-text",children:s}),n&&t.jsx("span",{className:"c-footer__link-external",children:"↗"})]});if(c){const a=c;return t.jsx(a,{ref:u,...e&&!o?{href:e,to:e}:{},...m,children:h})}return t.jsx("a",{ref:u,href:o?void 0:e,...m,children:h})}));Wl.displayName="FooterLink";const ql={displacementScale:60,blurAmount:3,saturation:180,aberrationIntensity:0,borderRadius:8,overLight:!1,mode:"standard"},Ql=({title:e,subtitle:a,text:n,imageSrc:r,imageAlt:o="Hero image",alignment:i="left",backgroundImageSrc:s,showOverlay:l=!0,fullViewportHeight:c=!1,actions:d,imageColSize:u=7,imageColClassName:m,imageColStyle:h,contentColSize:p=5,contentColClassName:g,contentColStyle:f,contentWidth:b,className:x="",style:v,parallax:S=!1,parallaxIntensity:y=.5,videoBackground:E,children:A,glass:N,videoOptions:T={autoplay:!0,loop:!0,muted:!0},backgroundSlider:C,headingLevel:_="h1",reverseOnMobile:L=!1,parts:w,backgroundElement:I,...R})=>{const O=_,{generateHeroClassNames:k,generateImageColClass:j,generateContentColClass:M,hasBackgroundImage:D,hasForegroundImage:P,useGridLayout:B,heroRef:z,videoRef:F,backgroundSlider:U,hasBackgroundSlider:G}=Hs({title:e,alignment:i,imageColSize:u,contentColSize:p,imageSrc:r,backgroundImageSrc:s,showOverlay:l,fullViewportHeight:c,contentWidth:b,parallax:S,parallaxIntensity:y,videoBackground:E,backgroundSlider:C,reverseOnMobile:L}),V={...b?{"--atomix-hero-content-width":b}:{},...v},H=()=>{if(!E)return null;const{autoplay:e,loop:a,muted:n,posterUrl:r}=T;return t.jsxs("video",{ref:F,className:"c-hero__video",autoPlay:e,loop:a,muted:n,playsInline:!0,poster:r,children:[t.jsx("source",{src:E,type:"video/"+(E.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})},$=()=>{const r=t.jsxs(t.Fragment,{children:[a&&t.jsx("p",{className:`${En.SELECTORS.SUBTITLE.replace(".","")} ${w?.subtitle?.className||""}`.trim(),style:w?.subtitle?.style,children:a}),t.jsx(O,{className:`${En.SELECTORS.TITLE.replace(".","")} ${w?.title?.className||""}`.trim(),style:w?.title?.style,children:e}),n&&t.jsx("p",{className:`${En.SELECTORS.TEXT.replace(".","")} ${w?.text?.className||""}`.trim(),style:w?.text?.style,children:n}),d&&t.jsx("div",{className:`${En.SELECTORS.ACTIONS.replace(".","")} ${w?.actions?.className||""}`.trim(),style:w?.actions?.style,children:d})]}),o=N?(()=>{const e=!0===N?ql:{...ql,...N};return t.jsx(so,{...e,children:t.jsx("div",{className:"u-p-4",children:r})})})():r;return t.jsx("div",{className:`${En.SELECTORS.CONTENT.replace(".","")} ${w?.content?.className||""}`.trim(),style:w?.content?.style,children:o})},Y=()=>P?"center"===i?t.jsx("div",{className:`${En.SELECTORS.IMAGE_WRAPPER.replace(".","")} ${m||""} ${w?.imageWrapper?.className||""}`.trim(),style:{...h,...w?.imageWrapper?.style},children:t.jsx("img",{src:r,alt:o,className:`${En.SELECTORS.IMAGE.replace(".","")} ${w?.image?.className||""}`.trim(),style:w?.image?.style})}):t.jsx("div",{className:`${j(u,m)} ${w?.imageWrapper?.className||""}`.trim(),style:{...h,...w?.imageWrapper?.style},children:t.jsx("img",{src:r,alt:o,className:`${En.SELECTORS.IMAGE.replace(".","")} ${w?.image?.className||""}`.trim(),style:w?.image?.style})}):null;return t.jsxs("div",{ref:z,className:`${k(x)} ${w?.root?.className||""}`.trim(),style:{...V,...w?.root?.style},"data-parallax":S?"true":void 0,"data-parallax-intensity":S?y:void 0,...R,children:[I,(()=>{if(G&&C&&U){const{slides:e,transition:a="fade",transitionDuration:n=1e3}=C,{currentIndex:r,slideRefs:o,videoRefs:i}=U;let s=En.CLASSES.SLIDER_FADE;return"slide"===a&&(s=En.CLASSES.SLIDER_SLIDE),t.jsxs("div",{className:`${En.SELECTORS.SLIDER.replace(".","")} ${s}`,style:{"--slider-transition-duration":n+"ms"},onMouseEnter:()=>{C.autoplay?.pauseOnHover&&U.pauseAutoplay()},onMouseLeave:()=>{C.autoplay?.pauseOnHover&&U.resumeAutoplay()},children:[e.map(((e,a)=>{const n=a===r,s=o[a],l=i[a];return t.jsx("div",{ref:s,className:`${En.SELECTORS.SLIDER_ITEM.replace(".","")} ${n?En.CLASSES.SLIDER_ITEM_ACTIVE:""}`,"aria-hidden":!n,children:"video"===e.type?t.jsxs("video",{ref:l,className:"c-hero__bg-video",src:e.src,poster:e.videoOptions?.posterUrl||e.alt,muted:e.videoOptions?.muted??!0,loop:e.videoOptions?.loop??!0,playsInline:!0,"aria-hidden":"true",autoPlay:!1!==e.videoOptions?.autoplay,children:[t.jsx("source",{src:e.src,type:"video/"+(e.src.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]}):t.jsx("img",{src:e.src,alt:e.alt||"Background slide",className:En.SELECTORS.BG_IMAGE.replace(".","")})},a)})),l&&t.jsx("div",{className:`${En.SELECTORS.OVERLAY.replace(".","")} ${w?.overlay?.className||""}`.trim(),style:w?.overlay?.style})]})}return D||E?t.jsxs("div",{className:`${En.SELECTORS.BG.replace(".","")} ${w?.background?.className||""}`.trim(),style:w?.background?.style,children:[s&&t.jsx("img",{src:s,alt:"Background",className:En.SELECTORS.BG_IMAGE.replace(".","")}),H(),l&&t.jsx("div",{className:`${En.SELECTORS.OVERLAY.replace(".","")} ${w?.overlay?.className||""}`.trim(),style:w?.overlay?.style})]}):null})(),t.jsx("div",{className:`${En.SELECTORS.CONTAINER.replace(".","")} o-container ${w?.container?.className||""}`.trim(),style:w?.container?.style,children:A?t.jsx("div",{className:`${En.SELECTORS.GRID.replace(".","")} ${w?.grid?.className||""}`.trim(),style:w?.grid?.style,children:A}):B?t.jsx("div",{className:`${En.SELECTORS.GRID.replace(".","")} o-grid ${w?.grid?.className||""}`.trim(),style:w?.grid?.style,children:"left"===i?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:M(p,g),style:f,children:$()}),Y()]}):t.jsxs(t.Fragment,{children:[Y(),t.jsx("div",{className:M(p,g),style:f,children:$()})]})}):t.jsxs(t.Fragment,{children:[$(),Y()]})})]})};Ql.Title=({children:e,className:a,level:n="h1",...r})=>{const o=n;return t.jsx(o,{className:`${En.SELECTORS.TITLE.replace(".","")} ${a||""}`.trim(),...r,children:e})},Ql.Subtitle=({children:e,className:a,...n})=>t.jsx("p",{className:`${En.SELECTORS.SUBTITLE.replace(".","")} ${a||""}`.trim(),...n,children:e}),Ql.Text=({children:e,className:a,...n})=>t.jsx("p",{className:`${En.SELECTORS.TEXT.replace(".","")} ${a||""}`.trim(),...n,children:e}),Ql.Actions=({children:e,className:a,...n})=>t.jsx("div",{className:`${En.SELECTORS.ACTIONS.replace(".","")} ${a||""}`.trim(),...n,children:e}),Ql.Content=({children:e,className:a,style:n,glass:r,...o})=>{const i=`${En.SELECTORS.CONTENT.replace(".","")} ${a||""}`.trim(),s=r?t.jsx("div",{className:"u-p-4",children:e}):e,l=r?(()=>{const e=!0===r?ql:{...ql,...r};return t.jsx(so,{...e,children:s})})():s;return t.jsx("div",{className:i,style:n,...o,children:l})},Ql.Image=({src:e,alt:a="",className:n,wrapperClassName:r,wrapperStyle:o,...i})=>t.jsx("div",{className:`${En.SELECTORS.IMAGE_WRAPPER.replace(".","")} ${r||""}`.trim(),style:o,children:t.jsx("img",{src:e,alt:a,className:`${En.SELECTORS.IMAGE.replace(".","")} ${n||""}`.trim(),...i})}),Ql.Background=({className:e,style:a,src:n,children:r,...o})=>t.jsxs("div",{className:`${En.SELECTORS.BG.replace(".","")} ${e||""}`.trim(),style:a,...o,children:[n&&t.jsx("img",{src:n,alt:"Background",className:En.SELECTORS.BG_IMAGE.replace(".","")}),r]}),Ql.displayName="Hero";const Xl=a.forwardRef((({children:e,className:a="",...n},r)=>t.jsx("li",{ref:r,className:`${xn.ITEM_CLASS} ${a}`.trim(),...n,children:e})));Xl.displayName="ListItem";const Zl=({children:e,variant:n="default",className:r="",style:o,...i})=>{var s;const l=[xn.BASE_CLASS,"default"!==n&&"c-list--"+n,r].filter(Boolean).join(" "),c=sn(s=["number","text"]).call(s,n)?"ol":"ul";return t.jsx(c,{className:l,style:o,...i,children:a.Children.map(e,(e=>a.isValidElement(e)&&e.type===Xl?e:t.jsx("li",{className:"c-list__item",children:e})))})},Jl=a.memo(Zl);Jl.displayName="List",Jl.Item=Xl;const ec=({children:e,className:n="",style:r,variant:o="default"})=>{const i=[vn.BASE_CLASS,n].filter(Boolean).join(" "),s=a.Children.toArray(e).filter((e=>a.isValidElement(e)&&e.type===Jl));return t.jsx("div",{className:i,style:r,children:s.map(((e,t)=>{const n=e.props;return a.cloneElement(e,{key:t,variant:n?.variant??o})}))})};ec.displayName="ListGroup";const tc=({messages:e=[],otherAvatar:n,selfAvatar:r,otherName:o,width:i="100%",onSendMessage:s,placeholder:l="Type a message",className:c="",style:d,bodyHeight:u,disabled:m=!1,id:h,glass:p})=>{const{inputValue:g,handleInputChange:f,handleSubmit:b,handleKeyDown:x}=(({onSendMessage:e}={})=>{const[t,n]=a.useState(""),r=a=>{a.preventDefault(),t.trim()&&e&&(e(t.trim()),n(""))};return{inputValue:t,setInputValue:n,handleInputChange:e=>{n(e.target.value)},handleSubmit:r,handleKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),r(e))}}})({onSendMessage:s}),v=h||"messages-"+Math.random().toString(36).substr(2,9),S=v+"-input",y={displacementScale:150,borderRadius:12,elasticity:0,aberrationIntensity:2},E=`${Zn.CLASSES.BASE} ${p?"c-messages--glass":""} ${m?"is-disabled":""} ${c}`,A=t.jsxs(t.Fragment,{children:[t.jsx("div",{className:Zn.CLASSES.BODY,style:u?{"--atomix-messages-body-height":u}:void 0,children:e.map((e=>t.jsxs("div",{className:`${Zn.CLASSES.CONTENT} ${e.isSelf?Zn.CLASSES.CONTENT_SELF:""}`,"aria-label":`${e.isSelf?"You":o||"Other person"} sent a message at ${e.time}`,children:[t.jsx(ko,{src:e.isSelf?r:n,size:"xl",circle:!0,className:Zn.CLASSES.AVATAR,alt:e.isSelf?"Your avatar":(o||"Other person")+"'s avatar"}),t.jsxs("div",{className:Zn.CLASSES.ITEMS,children:[!e.isSelf&&o&&t.jsx("div",{className:Zn.CLASSES.NAME,children:o}),e.text&&t.jsxs("div",{className:Zn.CLASSES.TEXT,children:[e.text,t.jsx("span",{className:Zn.CLASSES.TIME,"aria-label":"Sent at "+e.time,children:e.time})]}),e.image&&t.jsx("img",{className:Zn.CLASSES.IMAGE,src:e.image,alt:"Message attachment",loading:"lazy"}),e.file&&t.jsxs("div",{className:Zn.CLASSES.FILE,"aria-label":`File attachment: ${e.file.name}, size: ${e.file.size}`,children:[t.jsx("span",{className:Zn.CLASSES.FILE_ICON,children:t.jsx(Oo,{name:"File","aria-hidden":"true"})}),t.jsxs("div",{className:Zn.CLASSES.FILE_DETAILS,children:[t.jsx("div",{className:Zn.CLASSES.FILE_NAME,children:e.file.name}),t.jsx("div",{className:Zn.CLASSES.FILE_SIZE,children:e.file.size})]})]})]})]},e.id)))}),t.jsxs("form",{className:Zn.CLASSES.FORM,onSubmit:b,"aria-label":"Message input form",children:[t.jsxs("div",{className:Zn.CLASSES.INPUT_GROUP,children:[t.jsx("label",{htmlFor:S,className:"u-visually-hidden",children:"Type a message"}),t.jsx("input",{id:S,type:"text",className:Zn.CLASSES.INPUT,placeholder:l,value:g,onChange:f,onKeyDown:x,disabled:m,"aria-label":"Message input"}),t.jsxs("div",{className:Zn.CLASSES.OPTIONS,"aria-label":"Message options",children:[t.jsx("button",{type:"button",className:Zn.CLASSES.OPTION,"aria-label":"Attach file",disabled:m,children:t.jsx(Oo,{name:"PaperclipHorizontal","aria-hidden":"true",className:Zn.CLASSES.OPTION_ICON})}),t.jsx("button",{type:"button",className:Zn.CLASSES.OPTION,"aria-label":"Attach image",disabled:m,children:t.jsx(Oo,{name:"Image","aria-hidden":"true",className:Zn.CLASSES.OPTION_ICON})}),t.jsx("button",{type:"button",className:Zn.CLASSES.OPTION,"aria-label":"Insert link",disabled:m,children:t.jsx(Oo,{name:"Link","aria-hidden":"true",className:Zn.CLASSES.OPTION_ICON})})]})]}),t.jsx("button",{type:"submit",className:Zn.CLASSES.SUBMIT,"aria-label":"Send message",disabled:m,children:t.jsx(Oo,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]});if(p){const e=!0===p?y:{...y,...p};return t.jsx("div",{className:E,style:{"--atomix-messages-width":i,...d},id:v,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:t.jsx(so,{...e,children:t.jsx("div",{className:"c-messages__glass-content",style:{borderRadius:e.borderRadius},children:A})})})}return t.jsx("div",{className:E,style:{"--atomix-messages-width":i,...d},id:v,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:A})};tc.displayName="Messages";const ac=a.forwardRef((({title:e,subtitle:a,closeButton:n,onClose:r,children:o,className:i="",...s},l)=>t.jsxs("div",{ref:l,className:("c-modal__header "+i).trim(),...s,children:[t.jsxs("div",{className:"c-modal__header-content",children:[e&&t.jsx("h3",{className:"c-modal__title",children:e}),a&&t.jsx("p",{className:"c-modal__sub",children:a}),o]}),n&&t.jsx("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:r,"aria-label":"Close modal",children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16.0672 15.1828C16.1253 15.2409 16.1713 15.3098 16.2028 15.3857C16.2342 15.4615 16.2504 15.5429 16.2504 15.625C16.2504 15.7071 16.2342 15.7884 16.2028 15.8643C16.1713 15.9402 16.1253 16.0091 16.0672 16.0672C16.0091 16.1252 15.9402 16.1713 15.8643 16.2027C15.7885 16.2342 15.7071 16.2503 15.625 16.2503C15.5429 16.2503 15.4616 16.2342 15.3857 16.2027C15.3098 16.1713 15.2409 16.1252 15.1828 16.0672L10 10.8836L4.8172 16.0672C4.69992 16.1844 4.54086 16.2503 4.37501 16.2503C4.20916 16.2503 4.0501 16.1844 3.93282 16.0672C3.81555 15.9499 3.74966 15.7908 3.74966 15.625C3.74966 15.4591 3.81555 15.3001 3.93282 15.1828L9.11642 9.99998L3.93282 4.81717C3.81555 4.69989 3.74966 4.54083 3.74966 4.37498C3.74966 4.20913 3.81555 4.05007 3.93282 3.93279C4.0501 3.81552 4.20916 3.74963 4.37501 3.74963C4.54086 3.74963 4.69992 3.81552 4.8172 3.93279L10 9.11639L15.1828 3.93279C15.3001 3.81552 15.4592 3.74963 15.625 3.74963C15.7909 3.74963 15.9499 3.81552 16.0672 3.93279C16.1845 4.05007 16.2504 4.20913 16.2504 4.37498C16.2504 4.54083 16.1845 4.69989 16.0672 4.81717L10.8836 9.99998L16.0672 15.1828Z",fill:"#141414"})})})]})));ac.displayName="ModalHeader";const nc=a.forwardRef((({children:e,className:a="",...n},r)=>t.jsx("div",{ref:r,className:("c-modal__body "+a).trim(),...n,children:e})));nc.displayName="ModalBody";const rc=a.forwardRef((({children:e,className:a="",...n},r)=>t.jsx("div",{ref:r,className:("c-modal__footer "+a).trim(),...n,children:e})));rc.displayName="ModalFooter";const oc=a.memo((({children:e,isOpen:n=!1,onOpenChange:r,onClose:o,onOpen:i,title:s,subtitle:l,size:c="md",backdrop:d=!0,keyboard:u=!0,className:m="",style:h,closeButton:p=!0,footer:g,glass:f,...b})=>{const x=a.useRef(null),v=a.useRef(null),S=a.useRef(null),{isOpen:y,open:E,close:A}=function({isOpen:e,onOpenChange:t,onOpen:n,onClose:r}={}){const[o,i]=a.useState(!1),s=void 0!==e,l=s?!!e:o;a.useEffect((()=>{s&&i(!!e)}),[e,s]);const c=a.useCallback((e=>{s||i(e),t&&t(e),e&&n?n():!e&&r&&r()}),[s,t,n,r]),d=a.useCallback((()=>{c(!0)}),[c]),u=a.useCallback((()=>{c(!1)}),[c]),m=a.useCallback((()=>{c(!l)}),[l,c]);return{isOpen:l,open:d,close:u,toggle:m}}({isOpen:n,onOpenChange:r,onClose:o,onOpen:i}),N=function(e){const t=a.useRef(null),n=a.useRef(null),r=a.useCallback((()=>t.current?Array.from(t.current.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter((e=>{const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility})):[]),[]),o=a.useCallback((e=>{if("Tab"!==e.key)return;const t=r();if(0===t.length)return;const a=t[0],n=t[t.length-1];e.shiftKey?document.activeElement===a&&(e.preventDefault(),n.focus()):document.activeElement===n&&(e.preventDefault(),a.focus())}),[r]);return a.useEffect((()=>{if(e){n.current=document.activeElement;const e=r();if(e.length>0&&e[0]){const t=e[0];setTimeout((()=>{t.focus()}),0)}document.addEventListener("keydown",o)}else n.current&&n.current.focus(),document.removeEventListener("keydown",o);return()=>{document.removeEventListener("keydown",o)}}),[e,r,o]),t}(y),T=a.useId(),C="modal-title-"+T,_="modal-desc-"+T;a.useEffect((()=>{if(!u)return;const e=e=>{"Escape"===e.key&&y&&A()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[y,A,u]);const L=["c-modal",y?Xn.CLASSES.IS_OPEN:"",c?"c-modal--"+c:"",f?"c-modal--glass":"",m].filter(Boolean).join(" "),w=a.Children.toArray(e).some((e=>{var t;return a.isValidElement(e)&&sn(t=["ModalHeader","ModalBody","ModalFooter"]).call(t,e.type.displayName||"")})),I=t.jsx("div",{className:"c-modal__content",ref:N,children:w?a.Children.map(e,(e=>a.isValidElement(e)&&"ModalHeader"===e.type.displayName?a.cloneElement(e,{...e.props,onClose:e.props.onClose||A,id:C}):e)):t.jsxs(t.Fragment,{children:[(s||p)&&t.jsx(ac,{id:C,title:s,subtitle:l,closeButton:p,onClose:A}),t.jsx(nc,{id:_,children:e}),g&&t.jsx(rc,{children:g})]})});return t.jsxs("div",{ref:x,className:L,style:{display:y?"block":"none",...h},role:"dialog","aria-modal":"true","aria-hidden":!y,"aria-labelledby":C,"aria-describedby":_,...b,children:[t.jsx("div",{ref:S,className:"c-modal__backdrop",onClick:e=>{d&&e.target===e.currentTarget&&A()}}),t.jsx("div",{ref:v,className:"c-modal__dialog",children:f?(()=>{const e={displacementScale:document.querySelector(".c-modal---glass .c-modal__content")?.clientHeight,blurAmount:2.2,elasticity:0,mode:"shader",shaderMode:"premiumGlass"},a=!0===f?e:{...e,...f};return t.jsx(so,{...a,children:I})})():I})]})}));oc.displayName="Modal";const ic=oc;ic.Header=ac,ic.Body=nc,ic.Footer=rc;const sc=ic,lc=a.forwardRef((({children:e,alignment:n="start",variant:r="default",className:o="",disabled:i=!1,glass:s},l)=>{const{generateNavClass:c}=Ks({alignment:n,variant:r}),d=c({alignment:n,variant:r,className:o}),u=t.jsx("ul",{ref:l,className:d+(s?" c-nav--glass":""),role:"menubar","aria-orientation":"horizontal",children:a.Children.map(e,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!i||t?.disabled})}return e}))});if(s){const e={displacementScale:60,blurAmount:1.5,borderRadius:8,mode:"shader"},a=!0===s?e:{...e,...s};return t.jsx(so,{...a,children:u})}return u}));function cc(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function dc(e,t){return a.useMemo((()=>null==e&&null==t?null:a=>{cc(e,a),cc(t,a)}),[e,t])}lc.displayName="Nav";const uc=a.forwardRef((({children:e,dropdown:n=!1,megaMenu:r=!1,active:o=!1,href:i,target:s,onClick:l,className:c="",disabled:d=!1,"aria-expanded":u,linkComponent:m},h)=>{const{generateNavItemClass:p,generateNavLinkClass:g,handleClick:f}=Ws({dropdown:n,megaMenu:r,active:o,disabled:d}),[b,x]=a.useState(!1),v=a.useRef(null),S=dc(h,v);a.useEffect((()=>{if(!n&&!r||!b)return;const e=e=>{v.current&&!v.current.contains(e.target)&&(768>window.innerWidth||x(!1))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[n,r,b]),a.useEffect((()=>{if(!n&&!r)return;const e=()=>{window.innerWidth>=768&&b&&x(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[n,r,b]);const y=p({dropdown:n,megaMenu:r,active:o,disabled:d,className:c})+(b?" is-active":""),E=g(o,d,n||r?"c-nav__dropdown-toggle":""),A=a.Children.toArray(e),N=void 0!==u?u:b,T={ref:S,href:i||"#",to:i||"#",target:s,className:E,onClick:n||r?e=>{(n||r)&&(e.preventDefault(),x(!b))}:f(l),"aria-disabled":d,"aria-expanded":n||r?N:void 0,"aria-current":!o||n||r?void 0:"page"};return t.jsxs("li",{className:y,role:"menuitem","aria-haspopup":n||r,children:[m?(()=>{const a=m;return t.jsx(a,{...T,children:n||r?A[0]:e})})():t.jsx("a",{...T,children:n||r?A[0]:e}),(n||r)&&A.length>1&&A[1]]})}));uc.displayName="NavItem";const mc=a.forwardRef((({brand:e,children:n,variant:r,position:o="static",containerWidth:i,collapsible:s=!0,expanded:l,onToggle:c,className:d="",style:u,disabled:m=!1,backdrop:h=!1,closeOnOutsideClick:p=!0,closeOnEscape:g=!0,"aria-label":f="Main navigation",id:b,glass:x},v)=>{const{generateNavbarClass:S,generateContainerStyle:y,generateCollapseClass:E}=Ys({position:o,collapsible:s,expanded:l,onToggle:c}),[A,N]=a.useState(l||!1),T=a.useRef(null);a.useEffect((()=>{void 0!==l&&N(l)}),[l]),a.useEffect((()=>{const e=()=>{window.innerWidth>=768&&s&&("function"==typeof c?l&&c(!1):N(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[s,l,c]),a.useEffect((()=>{if(!A||!g)return;const e=e=>{"Escape"===e.key&&("function"==typeof c?c(!1):N(!1))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[A,g,c]),a.useEffect((()=>{if(!A||!p)return;const e=e=>{!T.current||T.current.contains(e.target)||e.target.closest(".c-navbar__toggler")||("function"==typeof c?c(!1):N(!1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[A,p,c]);const C=S({position:o,variant:r,collapsible:s,className:d}),_=y(i),L=E(A),w=t.jsxs("div",{className:"c-navbar__container",style:_,children:[e&&("string"==typeof e?t.jsx("a",{href:"/",className:"c-navbar__brand",children:e}):t.jsx("div",{className:"c-navbar__brand",children:e})),s&&t.jsx("button",{className:"c-navbar__toggler",onClick:()=>{if(m)return;const e=!A;"function"==typeof c?c(e):N(e)},"aria-expanded":A,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:m,type:"button",children:t.jsx("span",{className:"c-navbar__toggler-icon"})}),t.jsx("div",{id:"navbar-collapse",className:L,ref:T,children:n})]});if(x){const e={displacementScale:30,blurAmount:2,borderRadius:0,elasticity:0,mode:"shader",shaderVariant:"premiumGlass"},a=!0===x?e:{...e,...x},n="fixed"===o||"fixed-bottom"===o;return t.jsx(so,{...a,style:{...n&&{position:"fixed",top:"fixed"===o?0:void 0,bottom:"fixed-bottom"===o?0:void 0,left:0,right:0,zIndex:1030}},children:t.jsx("nav",{ref:v,className:C+" c-navbar--glass","aria-label":f,id:b,style:u,children:w})})}return t.jsx("nav",{ref:v,className:C,"aria-label":f,id:b,style:u,children:w})}));mc.displayName="Navbar";const hc=a.forwardRef((({children:e,className:n=""},r)=>{const o=("c-side-menu__list "+n).trim();return t.jsx("ul",{ref:r,className:o,role:"list",children:a.Children.map(e,((e,n)=>a.isValidElement(e)?t.jsx("li",{className:"c-side-menu__item",role:"listitem",children:e},n):e))})}));hc.displayName="SideMenuList";const pc=a.forwardRef((({children:e,href:a,onClick:n,active:r=!1,disabled:o=!1,icon:i,className:s="",target:l,rel:c,linkComponent:d},u)=>{const{generateSideMenuItemClass:m,handleClick:h}=Xs({active:r,disabled:o,className:s}),p=m();if(a){if(d){const s=d,m={ref:u,className:p,onClick:o?e=>{e.preventDefault()}:n,"aria-disabled":o,"aria-current":r?"page":void 0,target:l,rel:c,tabIndex:o?-1:0,...o?{}:{href:a,to:a}};return t.jsxs(s,{...m,children:[i&&t.jsx("span",{className:"c-side-menu__link-icon",children:i}),t.jsx("span",{className:"c-side-menu__link-text",children:e})]})}const s={ref:u,href:o?void 0:a,className:p,onClick:h(n),"aria-disabled":o,"aria-current":r?"page":void 0,target:l,rel:c,tabIndex:o?-1:0};return t.jsxs("a",{...s,children:[i&&t.jsx("span",{className:"c-side-menu__link-icon",children:i}),t.jsx("span",{className:"c-side-menu__link-text",children:e})]})}return t.jsxs("button",{ref:u,type:"button",className:p,onClick:h(n),disabled:o,"aria-current":r?"page":void 0,tabIndex:o?-1:0,children:[i&&t.jsx("span",{className:"c-side-menu__link-icon",children:i}),t.jsx("span",{className:"c-side-menu__link-text",children:e})]})}));pc.displayName="SideMenuItem";const gc=a.forwardRef((({title:e,children:n,menuItems:r=[],isOpen:o,onToggle:i,collapsible:s=!0,collapsibleDesktop:l=!1,defaultCollapsedDesktop:c=!1,className:d="",style:u,disabled:m=!1,toggleIcon:h,id:p,glass:g,linkComponent:f},b)=>{const{isOpenState:x,wrapperRef:v,innerRef:S,sideMenuRef:y,generateSideMenuClass:E,generateWrapperClass:A,handleToggle:N}=Qs({isOpen:o,onToggle:i,collapsible:s,collapsibleDesktop:l,defaultCollapsedDesktop:c,disabled:m}),[T,C]=a.useState((()=>"undefined"!=typeof window&&768>window.innerWidth)),[_,L]=a.useState((()=>{const e={};return r?.forEach(((t,a)=>{e[a]=!0})),e})),w=a.useRef({}),I=a.useRef({}),R=a.useRef(r?.length??0);a.useEffect((()=>{const e=()=>{C(768>window.innerWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),a.useEffect((()=>{const e=r?.length??0;R.current!==e&&(R.current=e,L((e=>{const t={};return r?.forEach(((a,n)=>{t[n]=e[n]??!0})),t})),Object.keys(w.current).forEach((t=>{const a=Number(t);e>a||(delete w.current[a],delete I.current[a])})))}),[r]);const O=a.useCallback(((e,t)=>{const a=w.current[e],n=I.current[e];a&&n&&(a.style.height=t?n.scrollHeight+"px":"0px")}),[]);a.useEffect((()=>{if(!r?.length)return;const e=setTimeout((()=>{r.forEach(((e,t)=>{const a=_[t]??!0;O(t,a)}))}),0);return()=>clearTimeout(e)}),[r,O]),a.useEffect((()=>{if(!r?.length)return;const e=[];return Object.keys(_).forEach((t=>{const a=Number(t),n=_[a]??!0,r=requestAnimationFrame((()=>{O(a,n)}));e.push(r)})),()=>{e.forEach((e=>cancelAnimationFrame(e)))}}),[_,r,O]);const k=dc(y,b),j=E({className:d,isOpen:x}),M=A(),D=t.jsx(Oo,{name:"CaretRight",size:"xs"}),P=T&&s||!T&&l,B=e&&!P,z=t.jsxs(t.Fragment,{children:[e&&P&&t.jsxs("div",{className:"c-side-menu__toggler",onClick:N,role:"button",tabIndex:m?-1:0,"aria-expanded":x,"aria-controls":p?p+"-content":void 0,"aria-disabled":m,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||m||(e.preventDefault(),N())},children:[t.jsx("span",{className:"c-side-menu__title",children:e}),t.jsx("span",{className:"c-side-menu__toggler-icon",children:h||D})]}),B&&t.jsx("h3",{className:"c-side-menu__title",children:e}),t.jsx("div",{ref:v,className:M,id:p?p+"-content":void 0,"aria-hidden":!!P&&!x,children:t.jsxs("div",{ref:S,className:"c-side-menu__inner",children:[n,r?.map(((e,a)=>{const n=_[a]??!0,r=e.items&&e.items.length>0,o=r&&!m,i=()=>{o&&L((e=>({...e,[a]:!e[a]})))};return t.jsxs("div",{className:"c-side-menu__item",children:[e.title&&t.jsxs("div",{className:["c-side-menu__toggler",o&&"c-side-menu__toggler--nested",n&&"is-open"].filter(Boolean).join(" "),onClick:o?i:void 0,role:o?"button":void 0,tabIndex:o&&!m?0:void 0,"aria-expanded":o?n:void 0,"aria-disabled":m,onKeyDown:o?e=>{"Enter"!==e.key&&" "!==e.key||m||(e.preventDefault(),i())}:void 0,children:[t.jsx("span",{className:"c-side-menu__title",children:e.title}),o&&t.jsx("span",{className:"c-side-menu__toggler-icon",children:e.toggleIcon||t.jsx(Oo,{name:"CaretRight",size:"xs"})})]}),r&&t.jsx("div",{ref:e=>{w.current[a]=e},className:"c-side-menu__nested-wrapper",children:t.jsx("div",{ref:e=>{I.current[a]=e},className:"c-side-menu__nested-inner",children:t.jsx(hc,{children:e.items?.map(((e,a)=>t.jsx(pc,{href:e.href,onClick:e.onClick,active:e.active,disabled:e.disabled,icon:e.icon,linkComponent:f,children:e.title},a)))})})})]},a)}))]})})]});if(g){const e={displacementScale:70,blurAmount:2,borderRadius:12,mode:"shader"},a=!0===g?e:{...e,...g};return t.jsx(so,{...a,children:t.jsx("div",{ref:k,className:j+" c-side-menu--glass",id:p,style:u,children:z})})}return t.jsx("div",{ref:k,className:j,id:p,style:u,children:z})}));gc.displayName="SideMenu";const fc=a.forwardRef((({children:e,className:n="",style:r,disabled:o=!1},i)=>t.jsx("div",{ref:i,className:"c-menu "+n,style:r,children:t.jsx("ul",{className:"c-menu__list",role:"menu",children:a.Children.map(e,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!o||t?.disabled})}return e}))})})));fc.displayName="Menu";const bc=a.forwardRef((({children:e,href:a="#",target:n,linkComponent:r,icon:o,active:i=!1,disabled:s=!1,onClick:l,className:c=""},d)=>{const u=`c-menu__item ${i?"is-active":""} ${s?"is-disabled":""} ${c}`,m={href:a,to:a,target:n,className:"c-menu__link",onClick:e=>{s?e.preventDefault():l&&l()},"aria-disabled":s,"aria-current":i?"page":void 0},h=t.jsxs(t.Fragment,{children:[o&&("string"==typeof o?o.startsWith("c-icon-")?t.jsx(Oo,{name:xc(o.replace("c-icon-","")),size:"sm",className:"c-menu__icon"}):t.jsx("i",{className:"c-menu__icon "+o,children:"string"!=typeof o&&o}):t.jsx("span",{className:"c-menu__icon",children:o})),e]});return t.jsx("li",{ref:d,className:u,role:"menuitem",children:r?(()=>{const e=r;return t.jsx(e,{...m,children:h})})():t.jsx("a",{...m,children:h})})}));bc.displayName="MenuItem";const xc=e=>({circle:"Circle","caret-down":"CaretDown","caret-up":"CaretUp","caret-right":"CaretRight",user:"User",settings:"Gear","sign-out":"SignOut",file:"File",bookmark:"Bookmark","question-circle":"Question",bell:"Bell",search:"MagnifyingGlass"}[e]||"Circle"),vc=a.forwardRef((({className:e=""},a)=>t.jsx("li",{ref:a,className:"c-menu__divider "+e,role:"separator"})));vc.displayName="MenuDivider";const Sc=a.forwardRef((({children:e,className:n="",style:r,disabled:o=!1},i)=>t.jsx("div",{ref:i,className:"c-menu c-menu--mega "+n,style:r,children:t.jsx("div",{className:"c-menu__container",children:t.jsx("div",{className:"c-menu__grid o-grid",children:a.Children.map(e,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!o||t?.disabled})}return e}))})})})));Sc.displayName="MegaMenu";const yc=a.forwardRef((({title:e,icon:n,children:r,width:o="auto",className:i="",disabled:s=!1},l)=>{const c=`o-grid__col o-grid__col--${o} ${i}`;return t.jsxs("div",{ref:l,className:c,children:[(e||n)&&t.jsxs("div",{className:"c-menu__header",children:[n&&("string"==typeof n?n.startsWith("c-icon-")?t.jsx(Oo,{name:xc(n.replace("c-icon-","")),size:"sm",className:"c-menu__header-icon"}):t.jsx("i",{className:"c-menu__header-icon "+n,children:"string"!=typeof n&&n}):t.jsx("span",{className:"c-menu__header-icon",children:n})),e&&t.jsx("div",{className:"c-menu__header-title",children:e})]}),t.jsx("ul",{className:"c-menu__subitems-list",role:"menu",children:a.Children.map(r,(e=>{if(a.isValidElement(e)){const n=e.props;return t.jsx("li",{className:"c-menu__subitem",role:"menuitem",children:a.cloneElement(e,{...n,disabled:!!s||n?.disabled})})}return null}))})]})}));yc.displayName="MegaMenuColumn";const Ec=a.forwardRef((({href:e,target:a,linkComponent:n,children:r,className:o="",disabled:i=!1,onClick:s},l)=>{const c={ref:l,href:e,to:e,target:a,className:`c-menu__subitem-link ${i?"is-disabled":""} ${o}`,onClick:e=>{i?e.preventDefault():s&&s()},"aria-disabled":i};if(n){const e=n;return t.jsx(e,{...c,children:r})}return t.jsx("a",{...c,children:r})}));Ec.displayName="MegaMenuLink";const Ac=a.forwardRef((({title:e,children:n,alignment:r="start",megaMenu:o=!1,className:i="",style:s,disabled:l=!1},c)=>{const{generateDropdownMenuClass:d,getIconName:u}=qs({alignment:r,megaMenu:o}),[m,h]=a.useState(!1),p=a.useRef(null),g=d({alignment:r,megaMenu:o,className:i}),f=u(o);a.useEffect((()=>{if(!m)return;const e=e=>{768>window.innerWidth||!p.current||p.current.contains(e.target)||h(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[m]),a.useEffect((()=>{if(!m)return;const e=e=>{"Escape"===e.key&&h(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[m]);const b=t.jsxs(t.Fragment,{children:[e,t.jsx(Oo,{name:f,size:"sm",className:"c-nav__icon"})]}),x=o?"div":"ul",v=t.jsx(x,{className:g,ref:p,"aria-hidden":!m,children:n});return t.jsxs(uc,{dropdown:!o,megaMenu:o,disabled:l,className:m?"is-active":"",href:"#",onClick:()=>{l||h(!m)},"aria-expanded":m,style:s,children:[b,v]})}));Ac.displayName="NavDropdown";const Nc=({currentIndex:e,imagesLength:a,onZoomOut:n,onResetZoom:r,onZoomIn:o,onToggleFullscreen:i,onClose:s,isFullscreen:l,zoomLevel:c,onRotate:d,onDownload:u,onShare:m,showInfo:h,onToggleInfo:p,currentImage:g})=>t.jsxs("div",{className:"c-photo-viewer__header",children:[t.jsxs("div",{className:"c-photo-viewer__header-left",children:[t.jsx(Do,{label:`${e+1} / ${a}`,variant:"primary",size:"sm"}),g?.title&&t.jsx("h3",{className:"c-photo-viewer__image-title",children:g.title})]}),t.jsxs("div",{className:"c-photo-viewer__actions",children:[t.jsx(mi,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:n,disabled:.1>=c,"aria-label":"Zoom out",className:"c-photo-viewer__action-button",icon:t.jsx(Oo,{name:"Minus",size:"sm"})}),t.jsx(mi,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,disabled:1===c,"aria-label":"Reset zoom",className:"c-photo-viewer__action-button",icon:t.jsx(Oo,{name:"MagnifyingGlass",size:"sm"})}),t.jsx(mi,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:o,disabled:c>=5,"aria-label":"Zoom in",className:"c-photo-viewer__action-button",icon:t.jsx(Oo,{name:"Plus",size:"sm"})}),t.jsx("div",{className:"c-photo-viewer__divider"}),t.jsx(mi,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:d,"aria-label":"Rotate image",className:"c-photo-viewer__action-button",icon:t.jsx(Oo,{name:"ArrowsClockwise",size:"sm"})}),t.jsx(mi,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:u,"aria-label":"Download image",className:"c-photo-viewer__action-button",icon:t.jsx(Oo,{name:"Download",size:"sm"})}),"share"in navigator&&"function"==typeof navigator.share&&t.jsx(mi,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:m,"aria-label":"Share image",className:"c-photo-viewer__action-button",icon:t.jsx(Oo,{name:"Share",size:"sm"})}),t.jsx(mi,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:p,"aria-label":"Toggle info panel",className:"c-photo-viewer__action-button "+(h?"is-active":""),icon:t.jsx(Oo,{name:"Info",size:"sm"})}),t.jsx("div",{className:"c-photo-viewer__divider"}),t.jsx(mi,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:i,"aria-label":l?"Exit fullscreen":"Enter fullscreen",className:"c-photo-viewer__action-button",icon:t.jsx(Oo,{name:l?"ArrowsIn":"ArrowsOut",size:"sm"})}),t.jsx(mi,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:s,"aria-label":"Close viewer",className:"c-photo-viewer__action-button c-photo-viewer__close-button",icon:t.jsx(Oo,{name:"X",size:"sm"})})]})]}),Tc=({show:e,onPrev:n,onNext:r,currentIndex:o,imagesLength:i,enableKeyboardNav:s,onClose:l})=>(a.useEffect((()=>{if(!s)return;const e=e=>{"ArrowLeft"===e.key&&n(),"ArrowRight"===e.key&&r(),"Escape"===e.key&&l()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[s,n,r,l]),e?t.jsxs(t.Fragment,{children:[t.jsx(mi,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:n,disabled:0===o,"aria-label":"Previous image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev",icon:t.jsx(Oo,{name:"CaretLeft",size:"md"})}),t.jsx(mi,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:r,disabled:o===i-1,"aria-label":"Next image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next",icon:t.jsx(Oo,{name:"CaretRight",size:"md"})})]}):null),Cc=({imageRef:e,containerRef:n,src:r,alt:o,zoomLevel:i,dragPosition:s,isDragging:l,rotationAngle:c,isTransitioning:d=!1,onMouseDown:u,onMouseMove:m,onMouseUp:h,onWheel:p,onTouchStart:g,onTouchMove:f,onTouchEnd:b,onDoubleClick:x})=>{const v=a.useRef(null),S=n||v,[y,E]=a.useState(!1);return a.useEffect((()=>(E(!0),()=>E(!1))),[]),a.useEffect((()=>{const e=S.current;if(!e)return;const t=t=>{y&&e&&p&&p(t)},a=t=>{y&&e&&g&&g(t)},n=t=>{y&&e&&f&&f(t)},r=t=>{y&&e&&b&&b(t)};return y&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",a,{passive:!1}),e.addEventListener("touchmove",n,{passive:!1}),e.addEventListener("touchend",r,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",n),e.removeEventListener("touchend",r)}}),[y,p,g,f,b,S]),t.jsx("div",{ref:S,className:"c-photo-viewer__image-container "+(d?"is-transitioning":""),style:{cursor:l?"grabbing":i>1?"grab":"default",opacity:d?.7:1,touchAction:"none"},onMouseDown:u,onMouseMove:m,onMouseUp:h,onMouseLeave:h,onDoubleClick:e=>{y&&x&&x(e)},children:t.jsx("img",{ref:e,src:r,alt:o,className:"c-photo-viewer__image",style:{transform:`scale(${i}) translate(${s.x}px, ${s.y}px) rotate(${c}deg)`,transition:l?"none":d?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:l?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},_c=({images:e,currentIndex:a,goToImage:n})=>e.length>1?t.jsx("div",{className:"c-photo-viewer__thumbnails",children:t.jsx("div",{className:"c-photo-viewer__thumbnails-container",children:e.map(((e,r)=>{const o=e.thumbnail||e.src,i=r===a;return t.jsx(mi,{variant:"ghost",className:"c-photo-viewer__thumbnail "+(i?"is-active":""),onClick:()=>n(r),"aria-label":`View image ${r+1}${e.title?": "+e.title:""}`,"aria-current":i,children:t.jsxs("div",{className:"c-photo-viewer__thumbnail-wrapper",children:[t.jsx("img",{loading:"lazy",src:o,alt:e.alt||"Thumbnail "+(r+1),className:"c-photo-viewer__thumbnail-img"}),i&&t.jsx("div",{className:"c-photo-viewer__thumbnail-indicator"})]})},r)}))})}):null,Lc=({show:e,image:a,onClose:n})=>e&&a?t.jsxs("div",{className:"c-photo-viewer__info-panel",children:[t.jsxs("div",{className:"c-photo-viewer__info-header",children:[t.jsx("h4",{className:"c-photo-viewer__info-panel-title",children:"Image Details"}),t.jsx(mi,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:n,"aria-label":"Close info panel",className:"c-photo-viewer__info-close",icon:t.jsx(Oo,{name:"X",size:"sm"})})]}),t.jsxs("div",{className:"c-photo-viewer__info-content",children:[a.title&&t.jsx("div",{className:"c-photo-viewer__info-section",children:t.jsx("h5",{className:"c-photo-viewer__info-title",children:a.title})}),a.description&&t.jsx("div",{className:"c-photo-viewer__info-section",children:t.jsx("p",{className:"c-photo-viewer__info-description",children:a.description})}),(a.date||a.author)&&t.jsx("div",{className:"c-photo-viewer__info-section",children:t.jsxs("div",{className:"c-photo-viewer__info-meta",children:[a.date&&t.jsxs("div",{className:"c-photo-viewer__info-meta-item",children:[t.jsx(Oo,{name:"Calendar",size:14}),t.jsx("span",{children:a.date})]}),a.author&&t.jsxs("div",{className:"c-photo-viewer__info-meta-item",children:[t.jsx(Oo,{name:"User",size:14}),t.jsx("span",{children:a.author})]})]})}),a.tags&&a.tags.length>0&&t.jsxs("div",{className:"c-photo-viewer__info-section",children:[t.jsx("h6",{className:"c-photo-viewer__info-section-title",children:"Tags"}),t.jsx("div",{className:"c-photo-viewer__info-tags",children:a.tags.map(((e,a)=>t.jsx(Do,{label:e,variant:"secondary",size:"sm"},a)))})]})]})]}):null,wc=({images:e,startIndex:n=0,className:r="",disabled:o=!1,enableKeyboardNavigation:i=!0,enableGestures:s=!0,enableFullscreen:l=!0,thumbnailPosition:c="bottom",onImageChange:d,onClose:u})=>{const{currentIndex:m,zoomLevel:h,imagePosition:p,isDragging:g,isFullscreen:f,rotationAngle:b,showInfo:x,imageRef:v,containerRef:S,isTransitioning:y,setZoomLevel:E,setImagePosition:A,setIsDragging:N,setIsFullscreen:T,setRotationAngle:C,setShowInfo:_,closeModal:L,goToPrevious:w,goToNext:I,setCurrentIndex:R,handleMouseDown:O,handleMouseMove:k,handleMouseUp:j,handleWheel:M,handleTouchStart:D,handleTouchMove:P,handleTouchEnd:B,handleDoubleClick:z,resetImageState:F}=(({images:e,startIndex:t=0,enableGestures:n=!0,onImageChange:r,onClose:o})=>{const[i,s]=a.useState(t),[l,c]=a.useState(!1),[d,u]=a.useState(!1),[m,h]=a.useState({x:0,y:0}),[p,g]=a.useState(!1),[f,b]=a.useState(!1),[x,v]=a.useState({}),[S,y]=a.useState(!1),[E,A]=a.useState(!1),[N,T]=a.useState({velocity:0,timestamp:0}),C=a.useRef(null),_=a.useRef(null),L=a.useRef([]),w=a.useRef(null),I=a.useRef(null),R=a.useRef(0),O=a.useRef(null),k=a.useCallback(((e,t)=>{if(!E||!C.current||!_.current)return{minX:0,maxX:0,minY:0,maxY:0};const a=C.current,n=_.current;if(!a.naturalWidth&&!a.width)return{minX:0,maxX:0,minY:0,maxY:0};const r=a.naturalWidth||a.width||800,o=a.naturalHeight||a.height||600;try{const a=n.getBoundingClientRect();if(!a||0===a.width||0===a.height)return{minX:0,maxX:0,minY:0,maxY:0};const i=a.width,s=a.height,l=t*Math.PI/180,c=Math.abs(Math.cos(l)),d=Math.abs(Math.sin(l)),u=r/o;let m,h;i/s>u?(h=Math.min(.9*s,o),m=h*u):(m=Math.min(.9*i,r),h=m/u);const p=(m*d+h*c)*e,g=Math.max(0,((m*c+h*d)*e-i)/2),f=Math.max(0,(p-s)/2);return{minX:-g,maxX:g,minY:-f,maxY:f}}catch(i){return{minX:0,maxX:0,minY:0,maxY:0}}}),[E]),j=a.useCallback(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);a.useEffect((()=>(A(!0),0>t||t>=e.length?s(0):s(t),()=>A(!1))),[e,t]),a.useEffect((()=>{l?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[l]),a.useEffect((()=>{l&&v((e=>e[i]?e:{...e,[i]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[l,i]),a.useEffect((()=>{r&&r(i)}),[i,r]),a.useEffect((()=>{const e=C.current,t=_.current,a=()=>{E&&e&&t&&v((e=>{const t=e[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=k(t.zoomLevel,t.rotation),n=j(t.position,a);return{...e,[i]:{...t,bounds:a,position:n}}}))};if(!(e&&t&&e.complete&&E))return e&&t&&E?(e.addEventListener("load",a),()=>e.removeEventListener("load",a)):void 0;a()}),[i,k,j,E]),a.useEffect((()=>{const e=()=>{E&&C.current&&_.current&&v((e=>{const t=e[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=k(t.zoomLevel,t.rotation),n=j(t.position,a);return{...e,[i]:{...t,bounds:a,position:n}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[i,k,j,E]);const M=a.useCallback((()=>{c(!0)}),[]),D=a.useCallback((()=>{c(!1),o&&o()}),[o]),P=a.useCallback((()=>{i>0&&(y(!0),setTimeout((()=>{s((e=>e-1)),y(!1)}),150))}),[i]),B=a.useCallback((()=>{i<e.length-1&&(y(!0),setTimeout((()=>{s((e=>e+1)),y(!1)}),150))}),[i,e.length]),z=a.useCallback((e=>{v((t=>{const a=t[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n="function"==typeof e?e(a.zoomLevel):e,r=Math.max(.1,Math.min(5,n)),o=k(r,a.rotation),s=j(a.position,o);return{...t,[i]:{...a,zoomLevel:r,bounds:o,position:s}}}))}),[i,k,j]),F=a.useCallback((e=>{v((t=>{const a=t[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n="function"==typeof e?e(a.position):e,r=j(n,a.bounds);return{...t,[i]:{...a,position:r}}}))}),[i,j]),U=a.useCallback((e=>{v((t=>{const a=t[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=(("function"==typeof e?e(a.rotation):e)%360+360)%360,r=k(a.zoomLevel,n),o=j(a.position,r);return{...t,[i]:{...a,rotation:n,bounds:r,position:o}}}))}),[i,k,j]),G=a.useCallback((e=>{var t;if(!E||!e||!e.currentTarget)return;const a=e.currentTarget;if(a&&"function"==typeof a.getBoundingClientRect){if("undefined"!=typeof window&&(null==(t=window.location?.href)?void 0:Function.call.bind(sn(t),t))?.("storybook"))try{const e=a.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(n){return}v((t=>{const n=t[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r=/Mac|iPod|iPhone|iPad/.test(navigator.platform),o=e.ctrlKey&&r,s=Math.abs(e.deltaX)>0,l=!e.ctrlKey&&s&&r,c=!e.ctrlKey&&!s&&r,d=!r;let u,m=!1;if(o)u=-.02*e.deltaY,m=!0;else if(l){if(1>=n.zoomLevel)return t;u=-.003*e.deltaY,m=!0}else c?(u=-.004*e.deltaY,m=!0):d?(u=-.006*e.deltaY,m=!0):(u=-.005*e.deltaY,m=!0);m&&(e.preventDefault(),e.stopPropagation());const h=Date.now(),p=h-R.current;let g;R.current=h,o&&100>p&&(T({velocity:Math.abs(u)/p,timestamp:h}),O.current&&clearTimeout(O.current),O.current=setTimeout((()=>{const e=()=>{T((t=>{if(.001>t.velocity)return t;const a=.95*t.velocity,n=a*(u>0?1:-1);return v((e=>{const t=e[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=Math.max(.1,Math.min(5,t.zoomLevel+n));if(a===t.zoomLevel)return e;const r=k(a,t.rotation),o=j(t.position,r);return{...e,[i]:{...t,zoomLevel:a,bounds:r,position:o}}})),.001>a||requestAnimationFrame(e),{velocity:a,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50));try{g=a.getBoundingClientRect()}catch(A){return t}if(!g||0===g.width||0===g.height)return t;const f=g.width/2,b=g.height/2,x=e.clientX-g.left-f,S=e.clientY-g.top-b,y=n.zoomLevel,E=Math.max(.1,Math.min(5,y+u));if(E!==y){const e=E/y,a=k(E,n.rotation),r={x:n.position.x+x*(1-e)*.5,y:n.position.y+S*(1-e)*.5},o=j(r,a);return{...t,[i]:{...n,zoomLevel:E,bounds:a,position:o}}}return t}))}}),[E,i,k,j]),V=a.useCallback((e=>{if(!E||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&v((a=>{const n=a[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let r;try{r=t.getBoundingClientRect()}catch(p){return a}if(!r||0===r.width||0===r.height)return a;const o=r.width/2,s=r.height/2,l=e.clientX-r.left-o,c=e.clientY-r.top-s;let d,u={x:0,y:0};1.5>n.zoomLevel?(d=2,u={x:.5*-l,y:.5*-c}):3>n.zoomLevel?(d=4,u={x:.75*-l,y:.75*-c}):(d=1,u={x:0,y:0});const m=k(d,n.rotation),h=j(u,m);return{...a,[i]:{...n,zoomLevel:d,bounds:m,position:h}}}))}),[E,i,k,j]),H=a.useCallback((e=>{v((t=>{const a=t[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return a.zoomLevel>1&&(e.preventDefault(),u(!0),h({x:e.clientX-a.position.x,y:e.clientY-a.position.y})),t}))}),[i]),$=a.useCallback((e=>{d&&v((t=>{const a=t[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=Math.min(1,1/a.zoomLevel),r=(e.clientX-m.x)*n,o=(e.clientY-m.y)*n,s=j({x:r,y:o},a.bounds);return{...t,[i]:{...a,position:s}}}))}),[d,m,i,j]),Y=a.useCallback((()=>{u(!1)}),[]),K=a.useCallback((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),L.current=Array.from(t).map((e=>({x:e.clientX,y:e.clientY}))),v((e=>{const a=e[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&a.zoomLevel>1){u(!0);const e=t[0];e&&h({x:e.clientX-a.position.x,y:e.clientY-a.position.y})}else if(2===t.length){const e=t[0],a=t[1];if(e&&a){const t=e.clientX-a.clientX,n=e.clientY-a.clientY;w.current=Math.sqrt(t*t+n*n),I.current={x:(e.clientX+a.clientX)/2,y:(e.clientY+a.clientY)/2}}}return e}))}),[n,i]),W=a.useCallback((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),v((a=>{const n=a[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};n.zoomLevel>1&&1===t.length&&e.preventDefault();let r=null,o=0,s=null;if(1===t.length&&d&&n.zoomLevel>1){const e=t[0];if(e){const t=Math.min(1,1/n.zoomLevel);r={x:(e.clientX-m.x)*t,y:(e.clientY-m.y)*t}}if(r){const e=j(r,n.bounds);return{...a,[i]:{...n,position:e}}}}else if(2===t.length&&null!==w.current){const r=t[0],c=t[1];if(r&&c){const t=r.clientX-c.clientX,d=r.clientY-c.clientY,u=Math.sqrt(t*t+d*d);o=.005*(u-w.current),w.current=u,s={x:(r.clientX+c.clientX)/2,y:(r.clientY+c.clientY)/2};const m=n.zoomLevel,h=Math.max(.1,Math.min(5,m+o));if(h!==m&&I.current&&s){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(l){return a}if(!t||0===t.width||0===t.height)return a;const r=t.width/2,o=t.height/2,c=s.x-t.left-r,d=s.y-t.top-o,u=h/m,p=k(h,n.rotation),g={x:n.position.x+c*(1-u)*.5,y:n.position.y+d*(1-u)*.5},f=j(g,p);return I.current=s,{...a,[i]:{...n,zoomLevel:h,bounds:p,position:f}}}s&&(I.current=s)}}return a}))}),[n,d,m,i,j,k]),q=a.useCallback((()=>{u(!1),w.current=null,I.current=null}),[]),Q=x[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:i,isModalOpen:l,zoomLevel:Q.zoomLevel,imagePosition:Q.position,isDragging:d,isFullscreen:p,rotationAngle:Q.rotation,showInfo:f,imageRef:C,containerRef:_,isTransitioning:S,setCurrentIndex:s,setZoomLevel:z,setImagePosition:F,setIsDragging:u,setIsFullscreen:g,setRotationAngle:U,setShowInfo:b,openModal:M,closeModal:D,goToPrevious:P,goToNext:B,handleWheel:G,handleMouseDown:H,handleMouseMove:$,handleMouseUp:Y,handleTouchStart:K,handleTouchMove:W,handleTouchEnd:q,handleDoubleClick:V,resetImageState:()=>{v((e=>({...e,[i]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:e,startIndex:n,enableGestures:s,onImageChange:d,onClose:u||(()=>{})}),U=a.useMemo((()=>e.map((e=>"string"==typeof e?{src:e}:e))),[e]),G=U[m],V=a.useMemo((()=>["c-photo-viewer","c-photo-viewer--thumbnails-"+c,g?"c-photo-viewer--dragging":"",f?"c-photo-viewer--fullscreen":"",x?"c-photo-viewer--info-open":"",o?"is-disabled":"",r].filter(Boolean).join(" ")),[g,f,x,o,c,r]);return a.useEffect((()=>{const e=()=>{T(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[T]),a.useEffect((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),e.length?t.jsxs("div",{className:V,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[t.jsx("div",{className:"c-photo-viewer__backdrop",onClick:L}),t.jsxs("div",{className:"c-photo-viewer__container",children:[t.jsx(Nc,{currentIndex:m,imagesLength:e.length,onZoomOut:()=>E((e=>Math.max(e-.25,.1))),onResetZoom:()=>{F()},onZoomIn:()=>E((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(l){if(f)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}T(!f)}},onClose:u||L,isFullscreen:f,zoomLevel:h,onRotate:()=>{C((e=>(e+90)%360))},onDownload:()=>{if(!G?.src)return;const e=document.createElement("a");e.href=G.src;const t=(G.title||"image-"+(m+1)).replace(/[^a-zA-Z0-9.-]/g,"_");e.download=t,document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&G?.src)try{await navigator.share({title:G.title||"Shared Image",text:G.description||"Check out this image",url:G.src})}catch(e){}},showInfo:x,onToggleInfo:()=>_(!x),currentImage:G}),t.jsxs("div",{className:"c-photo-viewer__content",children:[t.jsx(Tc,{show:e.length>1,onPrev:w,onNext:I,currentIndex:m,imagesLength:e.length,enableKeyboardNav:i,onClose:u||L}),G?.src&&t.jsx(Cc,{imageRef:v,containerRef:S,src:G.src,alt:G?.alt||"Image "+(m+1),zoomLevel:h,dragPosition:p,isDragging:g,rotationAngle:b,isTransitioning:y,onMouseDown:O,onMouseMove:k,onMouseUp:j,onWheel:M,onTouchStart:D,onTouchMove:P,onTouchEnd:B,onDoubleClick:z})]}),"none"!==c&&t.jsx(_c,{images:U,currentIndex:m,goToImage:R}),t.jsx(Lc,{show:x,image:G,onClose:()=>_(!1)})]})]}):null};wc.displayName="PhotoViewer";const Ic=a.createContext({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),Rc=({content:e,position:n="top",trigger:o="click",className:i="",style:s,delay:l=0,offset:c=12,defaultOpen:d=!1,isOpen:u,onOpenChange:m,closeOnClickOutside:h=!0,closeOnEscape:p=!0,id:g,children:f,glass:b})=>{const{isOpen:x,setIsOpen:v,triggerRef:S,popoverRef:y,arrowRef:E,popoverId:A,currentPosition:N,updatePosition:T}=(({position:e="top",trigger:t="click",offset:n=12,delay:r=0,defaultOpen:o=!1,isOpen:i,onOpenChange:s,closeOnClickOutside:l=!0,closeOnEscape:c=!0,id:d})=>{const[u,m]=a.useState(o),[h,p]=a.useState("auto"===e?"top":e),g=a.useRef(null),f=a.useRef(null),b=a.useRef(null),x=a.useRef(null),v=d||"popover-"+Math.random().toString(36).slice(2,11),S=void 0!==i,y=S?i:u,E=a.useCallback((e=>{S||m(e),s&&s(e)}),[S,s]);a.useEffect((()=>{if("hover"!==t||!g.current||!f.current)return;const e=()=>{null!==x.current&&(clearTimeout(x.current),x.current=null),r>0?x.current=setTimeout((()=>{E(!0)}),r):E(!0)},a=()=>{null!==x.current&&(clearTimeout(x.current),x.current=null),x.current=setTimeout((()=>{f.current?.matches(":hover")||E(!1)}),100)},n=()=>{null!==x.current&&(clearTimeout(x.current),x.current=null)},o=()=>{E(!1)};g.current.addEventListener("mouseenter",e),g.current.addEventListener("mouseleave",a),f.current.addEventListener("mouseenter",n),f.current.addEventListener("mouseleave",o);const i=g.current,s=f.current;return()=>{i&&(i.removeEventListener("mouseenter",e),i.removeEventListener("mouseleave",a)),s&&(s.removeEventListener("mouseenter",n),s.removeEventListener("mouseleave",o)),null!==x.current&&window.clearTimeout(x.current)}}),[t,r,y,E]);const A=a.useCallback((t=>{if(!g.current||!f.current)return;const a=g.current.getBoundingClientRect(),r=f.current.getBoundingClientRect(),o=window.innerWidth,i=window.innerHeight,s=50>a.top||a.bottom>i-50||50>a.left||a.right>o-50;if("scroll"===t?.type&&!s)return;const l=a.top,c=i-a.bottom,d=a.left,u=o-a.right;let m="auto"===e?"top":e;if("auto"===e){const e=[{position:"top",space:l},{position:"right",space:u},{position:"bottom",space:c},{position:"left",space:d}];e.sort(((e,t)=>t.space-e.space)),m=e[0]?.position}else("top"===e&&l<r.height+n&&c>=r.height+n||"bottom"===e&&c<r.height+n&&l>=r.height+n||"left"===e&&d<r.width+n&&u>=r.width+n||"right"===e&&u<r.width+n&&d>=r.width+n)&&(m={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[e]);p(m);let h=0,b=0;switch(m){case"top":h=a.top-r.height-n,b=a.left+a.width/2-r.width/2;break;case"bottom":h=a.bottom+n,b=a.left+a.width/2-r.width/2;break;case"left":h=a.top+a.height/2-r.height/2,b=a.left-r.width-n;break;case"right":h=a.top+a.height/2-r.height/2,b=a.right+n}0>b?b=5:b+r.width>o&&(b=o-r.width-5),0>h?h=5:h+r.height>i&&(h=i-r.height-5);const x=h+window.scrollY,v=b+window.scrollX;f.current&&(f.current.style.position="absolute",f.current.style.top=x+"px",f.current.style.left=v+"px")}),[e,n]);return a.useEffect((()=>{if(!y||!g.current||!f.current)return;A(),window.addEventListener("resize",A);let e=null;const t=t=>{e||(e=setTimeout((()=>{A(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const a=setInterval((()=>{A()}),500);return()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(a)}}),[y,A]),a.useEffect((()=>{if(!y||!l)return;const e=e=>{f.current&&!f.current.contains(e.target)&&g.current&&!g.current.contains(e.target)&&E(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[y,l,E]),a.useEffect((()=>{if(!y||!c)return;const e=e=>{"Escape"===e.key&&E(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[y,c,E]),a.useEffect((()=>()=>{null!==x.current&&window.clearTimeout(x.current)}),[]),{isOpen:y,setIsOpen:E,triggerRef:g,popoverRef:f,arrowRef:b,popoverId:v,currentPosition:h,updatePosition:A}})({position:n,trigger:o,offset:c,delay:l,defaultOpen:d,isOpen:u,onOpenChange:m,closeOnClickOutside:h,closeOnEscape:p,id:g});return t.jsxs(Ic.Provider,{value:{isOpen:x,setIsOpen:v,triggerRef:S,popoverId:A,triggerType:o},children:[f,"undefined"!=typeof document&&r.createPortal(t.jsxs("div",{ref:y,className:`c-popover c-popover--${N} ${x?Nn.CLASSES.IS_OPEN:""} ${b?"c-popover--glass":""} ${i}`,style:s,id:A,role:"tooltip","aria-hidden":!x,children:[b?(()=>{const a={displacementScale:50,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},n=!0===b?a:{...a,...b};return t.jsx(so,{...n,style:s,children:t.jsx("div",{className:"c-popover__content",children:t.jsx("div",{className:"c-popover__content-inner",children:e})})})})():t.jsx("div",{className:"c-popover__content",children:t.jsx("div",{className:"c-popover__content-inner",children:e})}),t.jsx("div",{ref:E,className:"c-popover__arrow"})]}),document.body)]})};a.forwardRef((({children:e,trigger:t},n)=>{const{isOpen:r,setIsOpen:o,triggerRef:i,popoverId:s,triggerType:l}=a.useContext(Ic),c=t||l,d=a.Children.only(e),u={ref:n||i,"aria-describedby":s,"aria-expanded":r};return"click"===c?u.onClick=()=>{o(!r)}:"hover"===c&&(u.onMouseEnter=()=>{o(!0)},u.onMouseLeave=()=>{o(!1)}),a.cloneElement(d,u)})).displayName="PopoverTrigger",Rc.displayName="Popover";const Oc=(e,t,a)=>{if(!a)return t;const n=e.currentTarget.getBoundingClientRect(),r=n.left+n.width/2,o=e.clientX<r;return Math.max(.5,o?t-.5:t)},kc=a.forwardRef((({value:e=0,defaultValue:n,maxValue:r=5,allowHalf:o=!1,readOnly:i=!1,size:s="md",variant:l,onChange:c,className:d="",style:u,label:m,id:h,useVanillaJS:p=!1,glass:g,...f},b)=>{const x=a.useRef(null),v=a.useRef(null),{currentValue:S,hoverValue:y,focusedIndex:E,setHoverValue:A,setFocused:N,handleKeyDown:T}=(({value:e=0,maxValue:t=5,allowHalf:n=!1,readOnly:r=!1,onChange:o})=>{const i=void 0!==o,[s,l]=a.useState(e),[c,d]=a.useState(null),[u,m]=a.useState(null),h=i?e:s,p=a.useCallback((e=>{r||d(e)}),[r]),g=a.useCallback((()=>{r||d(null)}),[r]),f=a.useCallback((e=>{r||(i||l(e),o?.(e))}),[r,o,i]),b=a.useCallback(((e,a)=>{if(r)return;const s=n?.5:1;let c=h;switch(e.key){case"ArrowRight":case"ArrowUp":c=Math.min(t,h+s),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":c=Math.max(0,h-s),e.preventDefault();break;case"Home":c=0,e.preventDefault();break;case"End":c=t,e.preventDefault();break;case" ":case"Enter":c=a,e.preventDefault();break;default:return}c!==h&&(i||l(c),o?.(c))}),[h,t,n,r,o,i]);return{currentValue:h,hoverValue:c,focusedIndex:u,handleMouseEnter:p,handleMouseLeave:g,handleClick:f,handleKeyDown:b,setFocused:m,setHoverValue:d,isControlled:i}})({value:void 0!==e?e:n,maxValue:r,allowHalf:o,readOnly:i,onChange:c}),C=dc(x,b),_=a.useCallback(((e,t)=>{i||A(Oc(e,t,!!o))}),[i,o,A]),L=a.useCallback(((e,t)=>{!i&&o&&A(Oc(e,t,!!o))}),[i,o,A]),w=a.useCallback((()=>{i||A(null)}),[i,A]),I=a.useCallback(((e,t)=>{if(i)return;const a=Oc(e,t,!!o);c?.(a)}),[i,c,o]);a.useEffect((()=>{if(!p||"undefined"==typeof window||!x.current)return;const e=v.current;return()=>{e&&e.destroy()}}),[p,e,n,r,o,i,s,l,c]),a.useEffect((()=>{p&&v.current&&v.current.updateOptions({value:void 0!==e?e:n,maxValue:r,allowHalf:o,readOnly:i,size:s,variant:l})}),[p,e,n,r,o,i,s,l]);const R=["c-rating","sm"===s?Dn.CLASSES.SMALL:"","lg"===s?Dn.CLASSES.LARGE:"",l?"c-rating--"+l:"",d].filter(Boolean).join(" ");if(p)return t.jsx("div",{className:R,ref:C,id:h,...f});const O=null!==y?y:S,k=t.jsx("div",{className:R,ref:C,id:h,style:u,"data-readonly":i?"true":"false",onMouseLeave:w,role:i?"img":"radiogroup","aria-label":m||`Rating: ${S} out of ${r} stars`,...f,children:(()=>{const e=[],a=o?Math.floor(2*O)/2:Math.round(O),n=h||"rating-"+Math.random().toString(36).substring(2,9);for(let s=1;r>=s;s++){const c=o&&s-.5===a,d=["c-rating__star",s>Math.floor(a)?"":Dn.CLASSES.FULL,c?Dn.CLASSES.HALF:"",l?"c-rating__star--"+l:"",E===s?"c-rating__star--focused":""].filter(Boolean).join(" "),u=`${n}-star-${s}`;e.push(t.jsx("div",{id:u,className:d,"data-value":s,role:i?"presentation":"button",tabIndex:i?-1:0,"aria-label":`${s} ${1===s?"star":"stars"}`,"aria-checked":a>=s,"aria-setsize":r,"aria-posinset":s,onClick:e=>I(e,s),onMouseEnter:e=>_(e,s),onMouseMove:e=>L(e,s),onFocus:()=>N(s),onBlur:()=>N(null),onKeyDown:e=>T(e,s),children:t.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[t.jsx("path",{className:"c-rating__star-outline",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",strokeWidth:"1"}),t.jsx("path",{className:"c-rating__star-full",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),t.jsx("path",{className:"c-rating__star-half",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",clipPath:`url(#half-star-clip-${n}-${s})`}),t.jsx("defs",{children:t.jsx("clipPath",{id:`half-star-clip-${n}-${s}`,children:t.jsx("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},s))}return e})()});if(g){const e={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},a=!0===g?e:{...e,...g};return t.jsx(so,{...a,children:k})}return k}));kc.displayName="Rating";const jc=({productName:e,productImage:n,initialRating:r=0,maxRating:o=5,allowHalf:i=!0,ratingColor:s="warning",onSubmit:l,className:c="",style:d})=>{const[u,m]=a.useState(r),[h,p]=a.useState(""),[g,f]=a.useState(!1),b=a.useRef(null),x=a.useRef(null);a.useEffect((()=>{if("undefined"==typeof window||!b.current)return;const e=x.current;return()=>{e&&e.destroy()}}),[e,n,r,o,i,s,l]);const v=e=>{e.preventDefault(),l&&l(u,h),f(!0)},S=["c-product-review",c].filter(Boolean).join(" ");return g?t.jsx("div",{className:S,ref:b,style:d,children:t.jsxs("div",{className:"c-product-review__success",children:[t.jsx("h3",{children:"Thank you for your review!"}),t.jsx("p",{children:"Your feedback helps us improve our products."}),t.jsx(mi,{variant:"secondary",label:"Write another review",onClick:()=>{f(!1),m(0),p("")}})]})}):t.jsxs("div",{className:S,ref:b,style:d,children:[t.jsxs("div",{className:"c-product-review__header",children:[t.jsxs("h3",{className:"c-product-review__title",children:["Review ",e]}),n&&t.jsx("div",{className:"c-product-review__image-wrapper",children:t.jsx("img",{src:n,alt:e,className:"c-product-review__image"})})]}),t.jsxs("form",{className:"c-product-review__form",onSubmit:v,children:[t.jsxs("div",{className:"c-product-review__rating-container",children:[t.jsx("label",{className:"c-product-review__label",children:"Your Rating"}),t.jsxs("div",{className:"c-rating-container",children:[t.jsx(kc,{value:u,onChange:m,allowHalf:i,maxValue:o,size:"lg",variant:s}),t.jsx("span",{className:"c-rating__value",children:u>0?u.toFixed(1):"Select a rating"})]})]}),t.jsxs("div",{className:"c-product-review__comment-container",children:[t.jsx("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),t.jsx("textarea",{id:"review-comment",className:"c-product-review__textarea",value:h,onChange:e=>p(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),t.jsx("div",{className:"c-product-review__actions",children:t.jsx(mi,{variant:"primary",label:"Submit Review",disabled:0===u,onClick:()=>v(new Event("click"))})})]})]})};jc.displayName="ProductReview";const Mc=a.memo(a.forwardRef((({value:e,variant:a="primary",size:n="md",className:r="",style:o,disabled:i=!1,"aria-label":s=er.DEFAULTS.ARIA_LABEL,glass:l},c)=>{const{progressValue:d,progressStyle:u,progressClasses:m}=(({value:e,variant:t="primary",size:a="md",className:n=""})=>{const r=Math.min(Math.max(e,0),100),o="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":r+"%"},progressClasses:[o,t?`${o}--${t}`:"",a?`${o}--${a}`:"",n||""].filter(Boolean).join(" ")}})({value:e,variant:a,size:n,className:r}),h=t.jsx("div",{ref:c,className:m+(l?" c-progress--glass":""),style:{...u,...o},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d,"aria-label":s,"aria-disabled":i,children:t.jsx("div",{className:er.CLASSES.BAR})});if(l){const e={displacementScale:30,blurAmount:.5,borderRadius:8,mode:"shader"},a=!0===l?e:{...e,...l};return t.jsx(so,{...a,children:h})}return h})));Mc.displayName="Progress";const Dc=({title:e,text:a,actions:n,imageSrc:r,imageAlt:o="Image",center:i=!1,breakout:s=!1,reverse:l=!1,contentColumns:c,backgroundImageSrc:d,showOverlay:u=!0,contentWidth:m,className:h="",style:p})=>{const{generateRiverClassNames:g,generateContentClass:f,generateVisualClass:b,hasBackgroundImage:x,hasForegroundImage:v,textContent:S}=$s({title:e,text:a,imageSrc:r,imageAlt:o,center:i,breakout:s,reverse:l,backgroundImageSrc:d,showOverlay:u,contentWidth:m}),y={...m?{[Rn.ATTRIBUTES.CONTENT_WIDTH]:m}:{},...p},E=()=>x?t.jsxs("div",{className:Rn.SELECTORS.BG.replace(".",""),children:[t.jsx("img",{src:d,alt:"Background",className:Rn.SELECTORS.BG_IMAGE.replace(".","")}),u&&t.jsx("div",{className:Rn.SELECTORS.OVERLAY.replace(".","")})]}):null,A=()=>v?t.jsx("div",{className:b(),children:t.jsx("div",{className:Rn.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:t.jsx("img",{src:r,alt:o,className:Rn.SELECTORS.IMAGE.replace(".","")})})}):null;return c&&c.length>0?t.jsxs("div",{className:g(h),style:y,children:[E(),t.jsx("div",{className:Rn.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t.jsxs("div",{className:Rn.SELECTORS.ROW.replace(".",""),children:[!l&&A(),t.jsxs("div",{className:f(),children:[c.map(((e,a)=>t.jsx("div",{className:`${Rn.SELECTORS.CONTENT_COL.replace(".","")} ${Rn.SELECTORS["CONTENT_COL_"+e.type.toUpperCase()].replace(".","")}`,children:e.content},a))),n&&t.jsx("div",{className:Rn.SELECTORS.ACTIONS.replace(".",""),children:n})]}),l&&A()]})})]}):t.jsxs("div",{className:g(h),style:y,children:[E(),t.jsx("div",{className:Rn.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t.jsxs("div",{className:Rn.SELECTORS.ROW.replace(".",""),children:[!l&&A(),t.jsxs("div",{className:f(),children:[e&&t.jsx("h2",{className:Rn.SELECTORS.TITLE.replace(".",""),children:e}),S.map(((e,a)=>t.jsx("p",{className:Rn.SELECTORS.TEXT.replace(".",""),children:e},a))),n&&t.jsx("div",{className:Rn.SELECTORS.ACTIONS.replace(".",""),children:n})]}),l&&A()]})})]})};Dc.displayName="River";const Pc=({title:e,label:n,text:r,actions:o,alignment:i="left",backgroundImageSrc:s,showOverlay:l=!1,imageSrc:c,imageAlt:d="Section image",size:u="md",skeleton:m=!1,className:h="",style:p})=>{const g=a.useRef(null),f=a.useRef(null);a.useEffect((()=>{if("undefined"==typeof window||!g.current)return;const e=f.current;return()=>{e&&e.destroy()}}),[i,s,l,u,m]);const b=["c-sectionintro","center"===i?In.CLASSES.CENTER:"","sm"===u?In.CLASSES.SMALL:"","lg"===u?In.CLASSES.LARGE:"",s?"c-sectionintro--has-bg":"",h].filter(Boolean).join(" ");return m?t.jsx("div",{className:b,ref:g,style:p,children:t.jsxs("div",{className:"c-sectionintro__container",children:[n&&t.jsx("div",{className:"c-sectionintro__label",children:t.jsx("span",{className:"c-skeleton u-w-25"})}),t.jsx("div",{className:"c-sectionintro__title",children:t.jsx("span",{className:"c-skeleton"})}),r&&t.jsxs("div",{className:"c-sectionintro__text",children:[t.jsx("span",{className:"c-skeleton"}),t.jsx("span",{className:"c-skeleton"}),t.jsx("span",{className:"c-skeleton u-w-75"})]}),o&&t.jsx("div",{className:"c-sectionintro__actions",children:t.jsx("span",{className:"c-skeleton u-w-25"})}),c&&t.jsx("div",{className:"c-sectionintro__image-wrapper",children:t.jsx("div",{className:"c-sectionintro__image c-skeleton"})})]})}):t.jsxs("div",{className:b,ref:g,style:p,children:[s?t.jsxs("div",{className:"c-sectionintro__bg",children:[t.jsx("img",{src:s,alt:"Background",className:"c-sectionintro__bg-image"}),l&&t.jsx("div",{className:"c-sectionintro__overlay"})]}):null,n&&t.jsx("div",{className:"c-sectionintro__label",children:n}),t.jsx("h2",{className:"c-sectionintro__title",children:e}),r&&t.jsx("div",{className:"c-sectionintro__text",children:r}),o&&t.jsx("div",{className:"c-sectionintro__actions",children:o}),c&&t.jsx("div",{className:"c-sectionintro__image-wrapper",children:t.jsx("img",{src:c,alt:d,className:"c-sectionintro__image"})})]})};Pc.displayName="SectionIntro";const Bc=a.forwardRef(((e,n)=>{const{slides:r=[],height:o=300,width:i="100%",slidesToShow:s=1,spaceBetween:l=0,loop:c=!1,initialSlide:d=0,direction:u="horizontal",speed:m=300,allowTouchMove:h=!0,threshold:p=50,grabCursor:g=!0,autoplay:f,navigation:b,pagination:x,className:v,style:S,onSlideChange:y,...E}=e,A=Array.isArray(r)?r:[],N=function(e){const{slides:t,slidesToShow:n=1,spaceBetween:r=0,loop:o=!1,initialSlide:i=0,direction:s="horizontal",speed:l=300,allowTouchMove:c=!0,threshold:d=50,autoplay:u,onSlideChange:m}=e,h=a.useMemo((()=>Array.isArray(t)?t:[]),[t]),p=a.useRef(null),g=a.useRef(null),f=a.useRef(!1),b=a.useRef(null),[x,v]=a.useState(!1),S=a.useRef({isTransitioning:!1,loop:o,slides:h,slidesToShow:n,speed:l,onSlideChange:m}),[y,E]=a.useState(i),[A,N]=a.useState(0),[T,C]=a.useState(!1),[_,L]=a.useState(0),[w,I]=a.useState(!1),[R,O]=a.useState(0),[k,j]=a.useState(0),M=a.useMemo((()=>0===_?0:(_-r*(n-1))/n),[_,r,n]),D=a.useMemo((()=>o&&0!==h.length?[...h.map(((e,t)=>({...e,id:"set1-"+(e.id||t)}))),...h.map(((e,t)=>({...e,id:"set2-"+(e.id||t)}))),...h.map(((e,t)=>({...e,id:"set3-"+(e.id||t)})))]:h),[h,o]),P=h.length,B=a.useMemo((()=>0===M?0:-A*M+k),[M,A,k]);a.useEffect((()=>{S.current={isTransitioning:T,loop:o,slides:h,slidesToShow:n,speed:l,onSlideChange:m}}),[T,o,h,n,l,m]),a.useEffect((()=>{if(!u)return b.current&&(clearInterval(b.current),b.current=null),void v(!1);const e="boolean"==typeof u?{delay:3e3}:u,{delay:t=3e3,pauseOnMouseEnter:a=!1,disableOnInteraction:n=!1,reverseDirection:r=!1}=e;b.current&&clearInterval(b.current),b.current=setInterval((()=>{const{isTransitioning:e,loop:t,slides:a,slidesToShow:o,speed:i,onSlideChange:s}=S.current;E((l=>{if(e)return l;let c;if(n&&b.current&&(clearInterval(b.current),b.current=null,v(!1)),c=t?(l+1)%a.length:Math.min(l+1,a.length-o),r){const e=t?0===l?a.length-1:l-1:Math.max(l-1,0);return N(t?a.length+e:e),C(!0),j(0),setTimeout((()=>{C(!1),s?.(e)}),i),e}return N(t?a.length+c:c),C(!0),j(0),setTimeout((()=>{C(!1),s?.(c),t&&c>=2*a.length&&(f.current=!0,N(a.length+c),setTimeout((()=>{f.current=!1}),0))}),i),c}))}),t),v(!0);let o=null;const i=()=>{b.current&&(clearInterval(b.current),b.current=null,v(!1))},s=()=>{b.current&&clearInterval(b.current),b.current=setInterval((()=>{const{isTransitioning:e,loop:t,slides:a,slidesToShow:n,speed:r,onSlideChange:o}=S.current;E((i=>{if(e)return i;let s;return s=t?(i+1)%a.length:Math.min(i+1,a.length-n),N(t?a.length+s:s),C(!0),j(0),setTimeout((()=>{C(!1),o?.(s),t&&(s<2*a.length||(f.current=!0,N(a.length+s),setTimeout((()=>{f.current=!1}),0)))}),r),s}))}),t),v(!0)};return a&&p.current&&(o=p.current,o.addEventListener("mouseenter",i),o.addEventListener("mouseleave",s)),()=>{b.current&&(clearInterval(b.current),b.current=null),o&&(o.removeEventListener("mouseenter",i),o.removeEventListener("mouseleave",s)),v(!1)}}),[u,f]),a.useEffect((()=>{N(o?h.length+i:i)}),[o,h.length,i]),a.useEffect((()=>{const e=()=>{if(p.current){const e="horizontal"===s?p.current.offsetWidth:p.current.offsetHeight;L(e)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[s]);const z=a.useCallback((()=>{if(!T)if(u&&"object"==typeof u&&u.disableOnInteraction&&b.current&&(clearInterval(b.current),b.current=null,v(!1)),o){const e=(y+1)%h.length,t=A+1;E(e),N(t),C(!0),j(0),setTimeout((()=>{C(!1),m?.(e),t<2*h.length||(f.current=!0,N(h.length+e),setTimeout((()=>{f.current=!1}),0))}),l)}else{const e=Math.min(y+1,h.length-n);E(e),N(e),C(!0),j(0),setTimeout((()=>{C(!1),m?.(e)}),l)}}),[y,A,h.length,n,o,T,l,m,u]),F=a.useCallback((()=>{if(!T)if(u&&"object"==typeof u&&u.disableOnInteraction&&b.current&&(clearInterval(b.current),b.current=null,v(!1)),o){const e=0===y?h.length-1:y-1,t=A-1;E(e),N(t),C(!0),j(0),setTimeout((()=>{C(!1),m?.(e),t<h.length&&(f.current=!0,N(h.length+e),setTimeout((()=>{f.current=!1}),0))}),l)}else{const e=Math.max(y-1,0);E(e),N(e),C(!0),j(0),setTimeout((()=>{C(!1),m?.(e)}),l)}}),[y,A,h.length,o,T,l,m,u]),U=a.useCallback((e=>{T||e===y||(u&&"object"==typeof u&&u.disableOnInteraction&&b.current&&(clearInterval(b.current),b.current=null,v(!1)),C(!0),j(0),E(e),N(o?h.length+e:e),setTimeout((()=>{C(!1),m?.(e)}),l))}),[y,T,l,m,o,h.length,u]),G=a.useCallback((e=>{if(!c)return;u&&"object"==typeof u&&u.disableOnInteraction&&b.current&&(clearInterval(b.current),b.current=null,v(!1));const t="horizontal"===s?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY;O(t),I(!0),j(0)}),[c,s,u]),V=a.useCallback((e=>{if(!w||!c)return;const t="horizontal"===s?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY,a=R-t;Math.abs(a)>10&&(e.preventDefault(),j(.5*-a))}),[w,R,c,s]),H=a.useCallback((e=>{if(!w||!c)return;const t="horizontal"===s?"changedTouches"in e?e.changedTouches[0]?.clientX||0:e.clientX:"changedTouches"in e?e.changedTouches[0]?.clientY||0:e.clientY,a=R-t;I(!1),j(0),Math.abs(a)>d&&(a>0?z():F())}),[w,R,d,z,F,c,s]),$=o||y<h.length-n,Y=o||y>0;return{activeIndex:y,realIndex:y,previousIndex:y,isBeginning:!o&&0===y,isEnd:!o&&y>=h.length-n,progress:h.length>0?y/(h.length-1):0,autoplayRunning:x,transitioning:T,touching:w,translate:B,slidesPerView:n,slidesCount:h.length,isLocked:!1,destroyed:!1,size:_,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},allowSlideNext:$,allowSlidePrev:Y,allowTouchMove:c,animating:T,enabled:!0,initialized:!0,slideNext:z,slidePrev:F,goToSlide:U,canSlideNext:$,canSlidePrev:Y,containerRef:p,wrapperRef:g,handleTouchStart:G,handleTouchMove:V,handleTouchEnd:H,allSlides:D,translateValue:B,slideWidth:M,currentSlidesToShow:n,loopedSlides:P,repositioningRef:f}}({slides:A,slidesToShow:s,spaceBetween:l,loop:c,initialSlide:d,direction:u,speed:m,allowTouchMove:h,threshold:p,autoplay:f,onSlideChange:y}),{containerRef:T,wrapperRef:C,allSlides:_,realIndex:L,translateValue:w,slideWidth:I,transitioning:R,touching:O,slideNext:k,slidePrev:j,goToSlide:M,canSlideNext:D,canSlidePrev:P,handleTouchStart:B,handleTouchMove:z,handleTouchEnd:F,loopedSlides:U}=N,G=a.useMemo((()=>0===I?0:_.length*(I+l)-l),[_.length,I,l]);if(0===A.length)return t.jsx("div",{className:"c-slider c-slider--empty",style:{height:o,width:i,...S},children:t.jsx("div",{className:"c-slider__empty-message",children:"No slides available"})});const V=["c-slider","vertical"===u&&"c-slider--vertical",g&&"c-slider--grab-cursor",O&&"c-slider--grabbing",c&&"c-slider--loop",v].filter(Boolean).join(" ");return t.jsxs("div",{ref:n||T,className:V,style:{height:"number"==typeof o?o+"px":o,width:"number"==typeof i?i+"px":i,overflow:"hidden",position:"relative",cursor:g&&!O?"grab":O?"grabbing":"default",...S},onTouchStart:B,onTouchMove:z,onTouchEnd:F,onMouseDown:B,onMouseMove:z,onMouseUp:F,onMouseLeave:F,onKeyDown:e=>{switch(e.key){case"ArrowLeft":"horizontal"===u&&(e.preventDefault(),j());break;case"ArrowRight":"horizontal"===u&&(e.preventDefault(),k());break;case"ArrowUp":"vertical"===u&&(e.preventDefault(),j());break;case"ArrowDown":"vertical"===u&&(e.preventDefault(),k())}},role:"region","aria-roledescription":"carousel","aria-label":E["aria-label"]||"Image slider",tabIndex:0,children:[t.jsx("div",{ref:C,className:"c-slider__wrapper","aria-live":f?"off":"polite",style:{display:"flex",flexDirection:"vertical"===u?"column":"row",width:"horizontal"===u?G+"px":"100%",height:"vertical"===u?G+"px":"100%",transform:"horizontal"===u?`translateX(${w}px)`:`translateY(${w}px)`,transition:R&&!N.repositioningRef?.current?`transform ${m}ms ease-out`:"none",willChange:"transform"},children:_.map(((e,a)=>t.jsxs("div",{className:["c-slider__slide",(c?a%A.length===L:a===L)&&"c-slider__slide--active",e.isClone&&"c-slider__slide--duplicate"].filter(Boolean).join(" "),style:{width:"vertical"===u?"100%":I+"px",height:"vertical"===u?I+"px":"100%",flexShrink:0,marginRight:"horizontal"===u&&a<_.length-1?l+"px":0,marginBottom:"vertical"===u&&a<_.length-1?l+"px":0},children:[e.video?t.jsx("video",{src:e.video.src,poster:e.video.poster,autoPlay:e.video.autoplay,loop:e.video.loop,muted:e.video.muted,style:{width:"100%",height:"100%",objectFit:"cover"}}):e.backgroundImage?t.jsx("div",{style:{width:"100%",height:"100%",backgroundImage:`url(${e.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center"},children:e.content}):e.image?t.jsx("img",{src:e.image,alt:e.alt||e.title||"",style:{width:"100%",height:"100%",objectFit:"cover"}}):e.content,(e.title||e.description)&&t.jsxs("div",{className:"c-slider__slide-content",children:[e.title&&t.jsx("h3",{children:e.title}),e.description&&t.jsx("p",{children:e.description})]})]},e.id||a)))}),b&&t.jsxs("div",{className:"c-slider__navigation",children:[t.jsx("button",{type:"button",className:"c-slider__navigation-prev",onClick:j,disabled:!P,"aria-label":"Previous slide"}),t.jsx("button",{type:"button",className:"c-slider__navigation-next",onClick:k,disabled:!D,"aria-label":"Next slide"})]}),x&&t.jsx("div",{className:"c-slider__pagination",children:A.map(((e,a)=>t.jsx("button",{type:"button",className:"c-slider__pagination-bullet "+(a===L?"c-slider__pagination-bullet--active":""),onClick:()=>M(a),"aria-label":"Go to slide "+(a+1)},a)))})]})}));Bc.displayName="Slider";const zc=a.forwardRef((({children:e,className:a="",number:n,title:r,active:o,completed:i,index:s,...l},c)=>{const d=["c-steps__item",o?_n.CLASSES.ACTIVE:"",i?_n.CLASSES.COMPLETED:"",a].filter(Boolean).join(" ");return t.jsxs("div",{ref:c,className:d,"aria-current":o?"step":void 0,"data-index":s,...l,children:[t.jsx("div",{className:"c-steps__line"}),t.jsxs("div",{className:"c-steps__content",children:[null!=n&&t.jsx("div",{className:"c-steps__number",children:n}),r&&t.jsx("div",{className:"c-steps__text",children:r}),e&&t.jsx("div",{className:"c-steps__custom-content",children:e})]})]})}));zc.displayName="StepsItem";const Fc=({items:e,activeIndex:n=0,vertical:r=!1,onStepChange:o,className:i="",style:s,glass:l,children:c})=>{const[d,u]=a.useState(n);let m;a.useEffect((()=>{d!==n&&u(n)}),[n,d]),m=e&&e.length>0?e.map(((e,a)=>t.jsx(zc,{index:a,number:e.number,title:e.text,active:d>=a,completed:d>a,children:e.content},"step-"+a))):a.Children.map(c,((e,t)=>{if(a.isValidElement(e)){const n=e.props,r=n.active??d>=t,o=n.completed??d>t,i=n.number??t+1;return a.cloneElement(e,{index:t,active:r,completed:o,number:i})}return e}));const h=t.jsx("div",{className:`c-steps ${r?_n.CLASSES.VERTICAL:""} ${i}`,style:s,role:"navigation","aria-label":"Steps",children:m});if(l){const e={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},a=!0===l?e:{...e,...l};return t.jsx(so,{...a,children:h})}return h};Fc.displayName="Steps",Fc.Item=zc,Fc.Step=zc;const Uc=a.createContext({currentTab:0,handleTabClick:()=>{},handleKeyDown:()=>{},totalTabs:0}),Gc=a.forwardRef((({children:e,className:n="",onKeyDown:r,...o},i)=>{const{handleKeyDown:s}=a.useContext(Uc),l=a.Children.count(e);return t.jsx("ul",{ref:i,className:("c-tabs__nav "+n).trim(),role:"tablist",onKeyDown:e=>{s(e,l),r?.(e)},...o,children:a.Children.map(e,((e,t)=>a.isValidElement(e)?a.cloneElement(e,{index:t}):e))})}));Gc.displayName="TabsList";const Vc=a.forwardRef((({children:e,className:n="",index:r,onClick:o,...i},s)=>{const{currentTab:l,handleTabClick:c}=a.useContext(Uc),d=void 0!==r&&l===r;return t.jsx("li",{className:"c-tabs__nav-item",role:"presentation",children:t.jsx("button",{ref:s,id:"tab-nav-"+r,className:`c-tabs__nav-btn ${d?Cn.CLASSES.ACTIVE:""} ${n}`.trim(),onClick:e=>{void 0!==r&&c(r),o?.(e)},"data-tabindex":r,role:"tab","aria-selected":d,"aria-controls":"tab-panel-"+r,tabIndex:d?0:-1,type:"button",...i,children:e})})}));Vc.displayName="TabsTrigger";const Hc=a.forwardRef((({children:e,className:n="",...r},o)=>t.jsx("div",{ref:o,className:("c-tabs__panels "+n).trim(),...r,children:a.Children.map(e,((e,t)=>a.isValidElement(e)?a.cloneElement(e,{index:t}):e))})));Hc.displayName="TabsPanels";const $c=a.forwardRef((({children:e,className:n="",index:r,style:o,...i},s)=>{const{currentTab:l}=a.useContext(Uc),c=void 0!==r&&l===r;return t.jsx("div",{ref:s,className:`c-tabs__panel ${c?Cn.CLASSES.ACTIVE:""} ${n}`.trim(),"data-tabindex":r,id:"tab-panel-"+r,role:"tabpanel","aria-labelledby":"tab-nav-"+r,style:{height:c?"auto":"0px",opacity:c?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease",...o},...i,children:t.jsx("div",{className:"c-tabs__panel-body",children:e})})}));$c.displayName="TabsPanel";const Yc=({items:e,activeIndex:n=Cn.DEFAULTS.ACTIVE_INDEX,onTabChange:r,className:o="",style:i,glass:s,children:l})=>{const[c,d]=a.useState(n),u=e=>{d(e),r&&r(e)},m=(e,t)=>{let a=c;switch(e.key){case"ArrowRight":a=(c+1)%t;break;case"ArrowLeft":a=(c-1+t)%t;break;case"Home":a=0;break;case"End":a=t-1;break;default:return}e.preventDefault(),u(a),setTimeout((()=>{const e=document.getElementById("tab-nav-"+a);e&&e.focus()}),0)};let h;if(e&&e.length>0)h=t.jsxs(t.Fragment,{children:[t.jsx("ul",{className:"c-tabs__nav",role:"tablist",onKeyDown:t=>m(t,e.length),children:e.map(((e,a)=>t.jsx("li",{className:"c-tabs__nav-item",role:"presentation",children:t.jsx("button",{id:"tab-nav-"+a,className:"c-tabs__nav-btn "+(a===c?Cn.CLASSES.ACTIVE:""),onClick:()=>u(a),"data-tabindex":a,role:"tab","aria-selected":a===c,"aria-controls":"tab-panel-"+a,tabIndex:a===c?0:-1,type:"button",children:e.label})},"tab-nav-"+a)))}),t.jsx("div",{className:"c-tabs__panels",children:e.map(((e,a)=>t.jsx("div",{className:"c-tabs__panel "+(a===c?Cn.CLASSES.ACTIVE:""),"data-tabindex":a,id:"tab-panel-"+a,role:"tabpanel","aria-labelledby":"tab-nav-"+a,style:{height:a===c?"auto":"0px",opacity:a===c?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:t.jsx("div",{className:"c-tabs__panel-body",children:e.content})},"tab-panel-"+a)))})]});else{const e=a.Children.toArray(l).find((e=>a.isValidElement(e)&&"TabsList"===e.type.displayName)),n=e?a.Children.count(e.props.children):0;h=t.jsx(Uc.Provider,{value:{currentTab:c,handleTabClick:u,handleKeyDown:m,totalTabs:n},children:l})}const p=t.jsx("div",{className:"c-tabs js-atomix-tab "+o,style:i,children:h});if(s){const e={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},a=!0===s?e:{...e,...s};return t.jsx(so,{...a,children:p})}return p},Kc=a.memo(Yc);Kc.displayName="Tabs",Kc.List=Gc,Kc.Trigger=Vc,Kc.Panels=Hc,Kc.Panel=$c;const Wc=({quote:e,author:n,size:r="",skeleton:o=!1,className:i="",style:s})=>{const l=a.useRef(null),c=a.useRef(null);a.useEffect((()=>{if("undefined"==typeof window||!l.current)return;const e=c.current;return()=>{e&&e.destroy()}}),[r,o]);const d=["c-testimonial","sm"===r?Ln.CLASSES.SMALL:"","lg"===r?Ln.CLASSES.LARGE:"",i].filter(Boolean).join(" ");return o?t.jsxs("div",{className:d,ref:l,style:s,children:[t.jsxs("blockquote",{className:"c-testimonial__quote",children:[t.jsx("span",{className:"c-skeleton"}),t.jsx("span",{className:"c-skeleton"}),t.jsx("span",{className:"c-skeleton u-w-75"}),t.jsx("span",{className:"c-skeleton u-w-25"})]}),t.jsxs("div",{className:"c-testimonial__author",children:[t.jsx("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),t.jsxs("div",{className:"c-testimonial__info u-w-75",children:[t.jsx("p",{className:"c-testimonial__author-name",children:t.jsx("span",{className:"c-skeleton u-w-25"})}),t.jsx("p",{className:"c-testimonial__author-role",children:t.jsx("span",{className:"c-skeleton u-w-25"})})]})]})]}):t.jsxs("div",{className:d,ref:l,style:s,children:[t.jsx("blockquote",{className:"c-testimonial__quote",children:e}),n&&t.jsxs("div",{className:"c-testimonial__author",children:[n.avatarSrc&&t.jsx("img",{src:n.avatarSrc,alt:n.avatarAlt||n.name+"'s avatar",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),t.jsxs("div",{className:"c-testimonial__info",children:[t.jsx("p",{className:"c-testimonial__author-name",children:n.name}),t.jsx("p",{className:"c-testimonial__author-role",children:n.role})]})]})]})};Wc.displayName="Testimonial";const qc=({items:e=[],title:n="Todo List",onAddTodo:r,onToggleTodo:o,onDeleteTodo:i,size:s="md",placeholder:l="Add a new todo",showCompleted:c=!0,className:d="",style:u,disabled:m=!1})=>{const{inputText:h,setInputText:p,addTodo:g,generateTodoClasses:f,generateItemClasses:b}=El({items:e,title:n,size:s,placeholder:l,showCompleted:c,disabled:m}),[x,v]=a.useState(e);a.useEffect((()=>{v(e)}),[e]);const S=c?x:x.filter((e=>!e.completed)),y=f({size:s,className:d,disabled:m});return t.jsxs("div",{className:y,style:u,children:[n&&t.jsx("h2",{className:"c-todo__title",children:n}),t.jsx("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),m||!h.trim())return;const t={id:pl(),text:h.trim(),completed:!1};v((e=>[...e,t])),r&&r(h),p("")},children:t.jsxs("div",{className:"c-todo__form-group",children:[t.jsx("input",{type:"text",className:"c-todo__input c-input",placeholder:l,value:h,onChange:e=>p(e.target.value),disabled:m,"aria-label":"Add a new todo"}),t.jsx("button",{type:"submit",className:"c-todo__add-btn c-btn c-btn--primary",disabled:m||!h.trim(),"aria-label":"Add todo",children:t.jsx(Oo,{name:"Plus",size:"sm"})})]})}),t.jsx("ul",{className:"c-todo__list",children:0===S.length?t.jsx("li",{className:"c-todo__empty",children:"No items to display"}):S.map((e=>t.jsx("li",{className:b(e),children:t.jsxs("div",{className:"c-todo__item-content",children:[t.jsxs("label",{className:"c-todo__checkbox-label",children:[t.jsx("input",{type:"checkbox",className:"c-todo__checkbox c-checkbox",checked:e.completed,onChange:()=>(e=>{m||(v((t=>t.map((t=>t.id===e?{...t,completed:!t.completed}:t)))),o&&o(e))})(e.id),disabled:m,"aria-label":`Mark "${e.text}" as ${e.completed?"incomplete":"complete"}`}),t.jsx("span",{className:"c-todo__item-text",children:e.text})]}),t.jsx("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>(e=>{m||(v((t=>t.filter((t=>t.id!==e)))),i&&i(e))})(e.id),disabled:m,"aria-label":`Delete "${e.text}"`,children:t.jsx(Oo,{name:"Trash",size:"sm"})})]})},e.id)))})]})};qc.displayName="Todo";const Qc=({checked:e,defaultChecked:n=!1,onChange:r,disabled:o=!1,className:i="",style:s,glass:l,"aria-label":c,"aria-describedby":d})=>{const u=void 0!==e,[m,h]=a.useState(n),p=u?e:m,g=a.useCallback((()=>{if(o)return;const e=!p;u||h(e),r?.(e)}),[o,p,u,r]),f=["c-toggle",p&&Tn.CLASSES.IS_ON,o&&"is-disabled",l&&"c-toggle--glass",i].filter(Boolean).join(" "),b=t.jsx("div",{className:f,style:s,onClick:g,onKeyDown:e=>{o||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),g())},role:"switch","aria-checked":p,tabIndex:o?-1:0,"aria-disabled":o,"aria-label":c,"aria-describedby":d,children:t.jsx("div",{className:"c-toggle__switch"})});if(l){const e={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},a=!0===l?e:{...e,...l};return t.jsx(so,{...a,children:b})}return b};Qc.displayName="Toggle";const Xc=a.memo((({content:e,children:n,position:r=An.DEFAULTS.POSITION,trigger:o=An.DEFAULTS.TRIGGER,className:i="",style:s,delay:l=An.DEFAULTS.DELAY,offset:c=An.DEFAULTS.OFFSET,glass:d})=>{const{isVisible:u,isPositioned:m,tooltipId:h,triggerRef:p,tooltipRef:g,tooltipStyle:f,arrowStyle:b,triggerProps:x,wrapperProps:v}=(({position:e="top",trigger:t="hover",offset:n=10,delay:r=200})=>{const[o,i]=a.useState(!1),[s,l]=a.useState(!1),[c,d]=a.useState({}),[u,m]=a.useState({}),h=a.useRef(null),p=a.useRef(null),g=a.useRef(null),f="tooltip-"+Math.random().toString(36).slice(2,11),b=a.useCallback((()=>{h.current&&clearTimeout(h.current),r>0?h.current=setTimeout((()=>{i(!0)}),r):i(!0)}),[r]),x=a.useCallback((()=>{h.current&&clearTimeout(h.current),i(!1),l(!1)}),[]),v=a.useCallback((()=>{o?x():b()}),[o,b,x]),S=a.useCallback((()=>{if(!p.current||!g.current)return;const t=p.current.getBoundingClientRect(),a=g.current.getBoundingClientRect(),r=p.current.parentElement;if(!r)return;const o=r.getBoundingClientRect(),i=(e=>{const t=getComputedStyle(e).getPropertyValue("--atomix-tooltip-arrow-size").trim();if(!t)return 8;const a=t.match(/([\d.]+)rem/);if(a?.[1])return 16*parseFloat(a[1]);const n=t.match(/([\d.]+)px/);return n?.[1]?parseFloat(n[1]):8})(g.current),s=((e,t,a,n,r,o)=>{const i=a.width||0,s=a.height||0,l=t.width,c=t.height,d={"--atomix-tooltip-offset":r+"px"},u={};switch(e){case"top":d.top=t.top-n.top-s-r+"px",d.left=t.left-n.left+l/2-i/2+"px",u.bottom=o/-2+"px",u.left=i/2-o/2+"px";break;case"bottom":d.top=t.bottom-n.top+r+"px",d.left=t.left-n.left+l/2-i/2+"px",u.top=o/-2+"px",u.left=i/2-o/2+"px";break;case"left":d.right=n.right-t.left+r+"px",d.top=t.top-n.top+c/2-s/2+"px",u.right=o/-2+"px",u.top=s/2-o/2+"px";break;case"right":d.left=t.right-n.left+r+"px",d.top=t.top-n.top+c/2-s/2+"px",u.left=o/-2+"px",u.top=s/2-o/2+"px";break;case"top-left":d.bottom=n.bottom-t.top+r+"px",d.left=t.left-n.left+"px",u.bottom=o/-2+"px",u.left=o+"px";break;case"top-right":d.bottom=n.bottom-t.top+r+"px",d.right=n.right-t.right+"px",u.bottom=o/-2+"px",u.right=o+"px";break;case"bottom-left":d.top=t.bottom-n.top+r+"px",d.left=t.left-n.left+"px",u.top=o/-2+"px",u.left=o+"px";break;case"bottom-right":d.top=t.bottom-n.top+r+"px",d.right=n.right-t.right+"px",u.top=o/-2+"px",u.right=o+"px"}return{tooltip:d,arrow:u}})(e,t,a,o,n,i);d(s.tooltip),m(s.arrow),l(!0)}),[e,n]);a.useEffect((()=>{if(!o||!p.current||!g.current)return;const e=requestAnimationFrame((()=>{S()})),t=()=>{S()};return window.addEventListener("resize",t),window.addEventListener("scroll",t,!0),()=>{cancelAnimationFrame(e),window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0)}}),[o,S]),a.useEffect((()=>{if(!o)return;const e=e=>{"Escape"===e.key&&x()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[o,x]);const y={"aria-describedby":o?f:void 0},E={};return"hover"===t?(E.onMouseEnter=b,E.onMouseLeave=x,y.onFocus=b,y.onBlur=x):"click"===t&&(y.onClick=v),{isVisible:o,isPositioned:s,tooltipId:f,triggerRef:p,tooltipRef:g,tooltipStyle:c,arrowStyle:u,showTooltip:b,hideTooltip:x,toggleTooltip:v,triggerProps:y,wrapperProps:E}})({position:r,trigger:o,offset:c,delay:l});return t.jsxs("div",{className:"u-position-relative u-inline-block",style:s,...v,children:[t.jsx("div",{ref:p,className:`${An.SELECTORS.TRIGGER.substring(1)}${i?" "+i:""}`,...x,children:n}),u&&t.jsx("div",{ref:g,id:h,role:"tooltip",className:`c-tooltip ${An.SELECTORS.TOOLTIP.substring(1)} ${{top:"c-tooltip--top",bottom:"c-tooltip--bottom",left:"c-tooltip--left",right:"c-tooltip--right","top-left":"c-tooltip--top-left","top-right":"c-tooltip--top-right","bottom-left":"c-tooltip--bottom-left","bottom-right":"c-tooltip--bottom-right"}[r]||"c-tooltip--top"} ${d?"c-tooltip--glass":""}`,"data-tooltip-position":r,"data-tooltip-trigger":o,style:{...f,...m?{}:{left:"-9999px",top:"-9999px"}},children:(()=>{const a=t.jsxs("div",{className:`c-tooltip__content ${An.SELECTORS.CONTENT.substring(1)} ${u&&m&&"is-active"}`,children:[t.jsx("span",{className:An.SELECTORS.ARROW.substring(1),style:b}),e]});if(d){const e={displacementScale:100,blurAmount:3},n=!0===d?e:{...e,...d};return t.jsx(so,{...n,children:a})}return a})()})]})}));Xc.displayName="Tooltip";const Zc=({disabled:e=!1,size:n="md",maxSizeInMB:r=5,acceptedFileTypes:o=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:i=!1,title:s="Drag and Drop files here",supportedFilesText:l="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:c="Choose File",helperText:d=`Maximum size: ${r}MB`,icon:u=t.jsx("i",{className:"icon-lux-cloud-arrow-up-fill"}),uploadEndpoint:m,uploadMethod:h="POST",uploadHeaders:p={},uploadData:g={},chunkSizeInMB:f=0,maxRetries:b=3,retryDelay:x=1e3,autoUpload:v=!0,onFileSelect:S,onFileUpload:y,onFileUploadComplete:E,onFileUploadError:A,onUploadCancel:N,className:T="",style:C})=>{const _=a.useRef(null),L=a.useRef(null),w=a.useRef(null),[I,R]=a.useState("idle"),[O,k]=a.useState(!1),[j,M]=a.useState(null),[D,P]=a.useState(0),[B,z]=a.useState(null),[F,U]=a.useState(null),[G,V]=a.useState(null),H=a.useRef(0),$=()=>{_.current&&!e&&_.current.click()},Y=e=>{if(!e.length)return;const t=(i?e:[e[0]]).filter((e=>void 0!==e&&K(e)));if(t.length&&S&&S(t),t.length){const e=t[0];e&&(M(e),v&&Q(e))}},K=e=>{const t=1024*r*1024;return e.size>t?(R("error"),U(`File too large. Maximum size is ${r}MB.`),!1):!(o?.length&&!o.some((t=>{if(t.endsWith("/*")){const a=t.split("/")[0];return e.type.startsWith(a+"/")}return e.type===t}))&&(R("error"),U("File type not supported."),1))},W=a.useCallback(((e,t)=>{if(0>=e||0>=t)return"";const a=t/e*100-t;if(0>=a)return"Almost done...";const n=Math.ceil(a/1e3);return 60>n?`${n} second${1!==n?"s":""} left`:`${Math.floor(n/60)}m ${n%60}s left`}),[]),q=a.useCallback(((e,t,a,n,r)=>new Promise(((o,i)=>{const s=t*n,l=Math.min(s+n,e.size),c=e.slice(s,l),d=new FormData;d.append("file",c,e.name),d.append("chunkIndex",t.toString()),d.append("totalChunks",a.toString()),d.append("fileName",e.name),d.append("fileSize",e.size.toString()),Object.entries(g).forEach((([e,t])=>{d.append(e,t)}));const u=new XMLHttpRequest;r[t]=u,u.upload.addEventListener("progress",(a=>{if(a.lengthComputable&&L.current){a.loaded,a.total;const r=(t*n+a.loaded)/e.size*100;P(Math.min(r,100));const o=w.current?Date.now()-w.current:0,i=W(r,o);z(i),y&&y(e,r)}})),u.addEventListener("load",(()=>{if(u.status>=200&&300>u.status)try{const e=u.responseText?JSON.parse(u.responseText):{};o(e)}catch{o({})}else i(Error(`Upload failed with status ${u.status}: ${u.statusText}`))})),u.addEventListener("error",(()=>{i(Error("Network error occurred during upload"))})),u.addEventListener("abort",(()=>{i(Error("Upload was cancelled"))})),u.open(h,m),Object.entries(p).forEach((([e,t])=>{u.setRequestHeader(e,t)})),u.send(d)}))),[m,h,p,g,y,W]),Q=a.useCallback((async(e,t=0)=>{if(m){R("loading"),P(0),U(null),V(null),w.current=Date.now();try{const n=f>0?1024*f*1024:e.size,r=f>0?Math.ceil(e.size/n):1;if(r>1){const o=[];L.current={xhr:null,abortController:new AbortController,file:e,retryCount:t,chunkXhrs:o};try{const t=[];for(let a=0;r>a;a++){if(!L.current)throw Error("Upload was cancelled");const i=await q(e,a,r,n,o);t.push(i)}R("success"),V("Upload successful"),P(100),z(null),w.current=null,E&&E(e,t),L.current=null}catch(a){throw o.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),a}}else await new Promise(((a,n)=>{const r=new FormData;r.append("file",e),Object.entries(g).forEach((([e,t])=>{r.append(e,t)}));const o=new XMLHttpRequest,i=new AbortController;o.upload.addEventListener("progress",(t=>{if(t.lengthComputable){const a=t.loaded/t.total*100;P(a);const n=w.current?Date.now()-w.current:0,r=W(a,n);z(r),y&&y(e,a)}})),o.addEventListener("load",(()=>{if(o.status>=200&&300>o.status){R("success"),V("Upload successful"),P(100),z(null),w.current=null;try{const t=o.responseText?JSON.parse(o.responseText):{};E&&E(e,t)}catch{E&&E(e)}L.current=null,a()}else n(Error(`Upload failed with status ${o.status}: ${o.statusText}`))})),o.addEventListener("error",(()=>{n(Error("Network error occurred during upload"))})),o.addEventListener("abort",(()=>{R("idle"),P(0),z(null),w.current=null,L.current=null,N&&N(e),n(Error("Upload was cancelled"))})),o.open(h,m),Object.entries(p).forEach((([e,t])=>{o.setRequestHeader(e,t)})),L.current={xhr:o,abortController:i,file:e,retryCount:t},o.send(r)}))}catch(a){const n=a instanceof Error?a.message:"Upload failed";b>t&&!sn(n).call(n,"cancelled")?(R("loading"),U(`Upload failed. Retrying... (${t+1}/${b})`),setTimeout((()=>{Q(e,t+1)}),x)):(R("error"),U(n),P(0),z(null),w.current=null,L.current=null,A&&A(e,n))}}else{R("loading"),P(0),w.current=Date.now();let a=0;const n=setInterval((()=>{if(a+=5,100>a){P(a);const t=Date.now()-(w.current||Date.now()),n=W(a,t);z(n),y&&y(e,a)}else clearInterval(n),R("success"),V("Upload successful"),w.current=null,E&&E(e),L.current=null}),500);L.current={xhr:null,abortController:new AbortController,file:e,retryCount:t,intervalId:n}}}),[m,h,p,g,f,b,x,y,E,A,N,q,W]),X=a.useCallback((()=>{L.current&&(L.current.xhr&&L.current.xhr.abort(),L.current.chunkXhrs&&L.current.chunkXhrs.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),L.current.intervalId&&clearInterval(L.current.intervalId),L.current=null),R("idle"),M(null),P(0),z(null),U(null),V(null),w.current=null}),[]),Z=a.useCallback((()=>{L.current&&(L.current.xhr&&L.current.xhr.abort(),L.current.chunkXhrs&&L.current.chunkXhrs.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),L.current.intervalId&&clearInterval(L.current.intervalId),L.current.abortController.abort(),N&&L.current.file&&N(L.current.file)),L.current=null,X()}),[N,X]);a.useEffect((()=>()=>{L.current&&(L.current.xhr&&L.current.xhr.abort(),L.current.chunkXhrs&&L.current.chunkXhrs.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),L.current.intervalId&&clearInterval(L.current.intervalId))}),[]);const J=["c-upload","md"!==n&&"c-upload--"+n,O&&On.CLASSES.DRAGGING,e&&On.CLASSES.DISABLED,"loading"===I&&"c-upload--loading","success"===I&&"c-upload--success","error"===I&&"c-upload--error",T].filter(Boolean).join(" ");return t.jsxs("div",{className:J,style:C,onDragEnter:t=>{t.preventDefault(),t.stopPropagation(),e||(H.current++,1===H.current&&k(!0))},onDragLeave:t=>{t.preventDefault(),t.stopPropagation(),e||(H.current--,0===H.current&&k(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:t=>{if(t.preventDefault(),t.stopPropagation(),e)return;if(H.current=0,k(!1),!t.dataTransfer.files?.length)return;const a=Array.from(t.dataTransfer.files);Y(a)},children:[t.jsxs("div",{className:"c-upload__inner",role:"button",tabIndex:e?-1:0,"aria-label":`${s}. ${l}. ${d}`,"aria-disabled":e,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||e||(t.preventDefault(),$())},children:[t.jsx("input",{type:"file",ref:_,className:"c-upload__input",onChange:e=>{if(!e.target.files?.length)return;const t=Array.from(e.target.files);Y(t)},disabled:e,accept:o.join(","),multiple:i,"aria-hidden":"true"}),t.jsx("div",{className:"c-upload__icon",children:u}),t.jsx("h3",{className:"c-upload__title",children:s}),t.jsx("p",{className:"c-upload__text",children:l}),t.jsx("button",{type:"button",className:"c-upload__btn c-btn",onClick:$,disabled:e,children:c}),t.jsx("p",{className:"c-upload__helper-text",children:d})]}),"idle"!==I&&t.jsxs("div",{className:"c-upload__loader",style:{"--upload-loader-percentage":D},children:[j&&t.jsxs("div",{className:"c-upload__loader-status",children:[t.jsx("h5",{className:"c-upload__loader-title",children:j.name}),t.jsxs("div",{className:"c-upload__loader-progress",children:[t.jsxs("div",{className:"c-upload__loader-par",children:[D,"%"]}),t.jsx("div",{className:"c-upload__loader-time",children:B})]})]}),("loading"===I||"error"===I||"success"===I)&&t.jsxs("div",{className:"c-upload__loader-control",children:["loading"===I&&t.jsx("div",{className:"c-upload__loader-bar",children:t.jsxs("svg",{children:[t.jsx("circle",{cx:"10",cy:"10",r:"10"}),t.jsx("circle",{cx:"10",cy:"10",r:"10"})]})}),"loading"===I&&t.jsx("button",{type:"button",className:"c-upload__loader-cancel",onClick:Z,"aria-label":"Cancel upload",children:t.jsx("i",{className:"icon-lux-x"})}),("error"===I||"success"===I)&&t.jsx("button",{type:"button",className:"c-upload__loader-close",onClick:X,"aria-label":"Close upload progress",children:t.jsx("i",{className:"icon-lux-x"})})]}),F&&"error"===I&&t.jsxs("div",{className:"c-upload__error-message",children:[F,L.current&&L.current.retryCount<b&&t.jsx("button",{type:"button",className:"c-upload__retry-btn",onClick:()=>{j&&Q(j,L.current?.retryCount||0)},children:"Retry"})]}),G&&"success"===I&&t.jsx("div",{className:"c-upload__success-message",children:G})]})]})};Zc.displayName="Upload";const Jc=a.forwardRef((({src:e,type:r="video",youtubeId:o,poster:i,autoplay:s=!1,loop:l=!1,muted:c=!1,controls:d=!0,preload:u="metadata",width:m,height:h,aspectRatio:p="16:9",className:g="",onPlay:f,onPause:b,onEnded:x,onTimeUpdate:v,onVolumeChange:S,onFullscreenChange:y,onError:E,showDownload:A=!1,showShare:N=!1,showSettings:T=!0,playbackRates:C=[.5,.75,1,1.25,1.5,2],subtitles:_,quality:L,ambientMode:w=!1,glass:I=!1,glassOpacity:R=1,glassContent:O,style:k,...j},M)=>{const D=a.useRef(null),P=a.useRef(null),B=a.useRef(null),z=a.useRef(null),[F,U]=a.useState(8),G="youtube"===r||o||e&&gl(e),V=o||(G&&e?fl(e):null),{isPlaying:H,currentTime:$,duration:Y,volume:K,isMuted:W,isFullscreen:q,isLoading:Q,playbackRate:X,currentQuality:Z,showControls:J,play:ee,pause:te,togglePlay:ae,seek:ne,setVolume:re,toggleMute:oe,toggleFullscreen:ie,togglePictureInPicture:se,setPlaybackRate:le,setQuality:ce,formatTime:de,getProgressPercentage:ue,getBufferedPercentage:me}=function({videoRef:e,containerRef:t,onPlay:n,onPause:r,onEnded:o,onTimeUpdate:i,onVolumeChange:s,onFullscreenChange:l,onError:c,playbackRates:d=[.5,.75,1,1.25,1.5,2],quality:u}){const[m,h]=a.useState(!1),[p,g]=a.useState(0),[f,b]=a.useState(0),[x,v]=a.useState(1),[S,y]=a.useState(!1),[E,A]=a.useState(!1),[N,T]=a.useState(!1),[C,_]=a.useState(!1),[L,w]=a.useState(0),[I,R]=a.useState(1),[O,k]=a.useState(u?.[0]||null),[j,M]=a.useState(!0),D=a.useRef(null),P=a.useCallback((()=>{D.current&&clearTimeout(D.current),M(!0);const e=setTimeout((()=>{m&&M(!1)}),3e3);D.current=e}),[m]),B=a.useCallback((async()=>{if(e.current)try{await e.current.play(),h(!0),n?.()}catch(t){c?.(t),h(!1)}}),[e,n,c]),z=a.useCallback((()=>{e.current&&(e.current.pause(),h(!1),r?.())}),[e,r]),F=a.useCallback((()=>{m?z():B()}),[m,B,z]),U=a.useCallback((t=>{e.current&&(e.current.currentTime=Math.max(0,Math.min(t,f)))}),[e,f]),G=a.useCallback((t=>{const a=Math.max(0,Math.min(1,t));e.current&&(e.current.volume=a,v(a),y(0===a),s?.(a))}),[e,s]),V=a.useCallback((()=>{if(e.current){const t=!S;e.current.muted=t,y(t)}}),[e,S]),H=a.useCallback((async()=>{if(t.current)try{E?document.exitFullscreen&&await document.exitFullscreen():t.current.requestFullscreen&&await t.current.requestFullscreen()}catch(e){}}),[t,E]),$=a.useCallback((async()=>{if(e.current)try{N?document.exitPictureInPicture&&await document.exitPictureInPicture():e.current.requestPictureInPicture&&await e.current.requestPictureInPicture()}catch(t){}}),[e,N]),Y=a.useCallback((t=>{e.current&&sn(d).call(d,t)&&(e.current.playbackRate=t,R(t))}),[e,d]),K=a.useCallback((t=>{if(e.current&&u){const a=e.current.currentTime,n=!e.current.paused,r=(t.src+"").replace(/[<>"']/g,"");r&&(r.startsWith("http://")||r.startsWith("https://")||r.startsWith("blob:")||r.startsWith("data:"))&&(e.current.src=r,e.current.currentTime=a,n&&e.current.play(),k(t))}}),[e,u]),W=a.useCallback((e=>{const t=Math.floor(e/3600),a=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${a.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${a}:${n.toString().padStart(2,"0")}`}),[]),q=a.useCallback((()=>f>0?p/f*100:0),[p,f]),Q=a.useCallback((()=>f>0?L/f*100:0),[L,f]);a.useEffect((()=>{const t=e.current;if(!t)return;const a=()=>_(!0),l=()=>_(!1),d=()=>{b(t.duration),v(t.volume),y(t.muted)},u=()=>{g(t.currentTime),i?.(t.currentTime)},m=()=>{t.buffered.length>0&&w(t.buffered.end(t.buffered.length-1))},p=()=>{h(!0),n?.()},f=()=>{h(!1),r?.()},x=()=>{h(!1),o?.()},S=()=>{v(t.volume),y(t.muted),s?.(t.volume)},E=e=>{_(!1),c?.(e)},A=()=>T(!0),N=()=>T(!1);return t.addEventListener("loadstart",a),t.addEventListener("canplay",l),t.addEventListener("loadedmetadata",d),t.addEventListener("timeupdate",u),t.addEventListener("progress",m),t.addEventListener("play",p),t.addEventListener("pause",f),t.addEventListener("ended",x),t.addEventListener("volumechange",S),t.addEventListener("error",E),t.addEventListener("enterpictureinpicture",A),t.addEventListener("leavepictureinpicture",N),()=>{t.removeEventListener("loadstart",a),t.removeEventListener("canplay",l),t.removeEventListener("loadedmetadata",d),t.removeEventListener("timeupdate",u),t.removeEventListener("progress",m),t.removeEventListener("play",p),t.removeEventListener("pause",f),t.removeEventListener("ended",x),t.removeEventListener("volumechange",S),t.removeEventListener("error",E),t.removeEventListener("enterpictureinpicture",A),t.removeEventListener("leavepictureinpicture",N)}}),[e,n,r,o,i,s,c]),a.useEffect((()=>{const e=()=>{const e=!!document.fullscreenElement;A(e),l?.(e)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[l]);const X=a.useCallback((e=>{if(t.current?.contains(document.activeElement))switch(e.code){case"Space":e.preventDefault(),F();break;case"ArrowLeft":e.preventDefault(),U(p-10);break;case"ArrowRight":e.preventDefault(),U(p+10);break;case"ArrowUp":e.preventDefault(),G(Math.min(1,x+.1));break;case"ArrowDown":e.preventDefault(),G(Math.max(0,x-.1));break;case"KeyM":e.preventDefault(),V();break;case"KeyF":e.preventDefault(),H()}}),[F,U,p,G,x,V,H,t]);a.useEffect((()=>(document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X))),[X]);const Z=a.useCallback((()=>P()),[P]),J=a.useCallback((()=>{D.current&&clearTimeout(D.current),m&&M(!1)}),[m]);return a.useEffect((()=>{const e=t.current;if(e)return e.addEventListener("mousemove",Z),e.addEventListener("mouseleave",J),()=>{e.removeEventListener("mousemove",Z),e.removeEventListener("mouseleave",J),D.current&&clearTimeout(D.current)}}),[t,Z,J]),{isPlaying:m,currentTime:p,duration:f,volume:x,isMuted:S,isFullscreen:E,isPictureInPicture:N,isLoading:C,buffered:L,playbackRate:I,currentQuality:O,showControls:j,play:B,pause:z,togglePlay:F,seek:U,setVolume:G,toggleMute:V,toggleFullscreen:H,togglePictureInPicture:$,setPlaybackRate:Y,setQuality:K,formatTime:W,getProgressPercentage:q,getBufferedPercentage:Q}}({videoRef:D,containerRef:P,onPlay:f,onPause:b,onEnded:x,onTimeUpdate:v,onVolumeChange:S,onFullscreenChange:y,onError:E,playbackRates:C,quality:L});!function({videoRef:e,canvasRef:t,enabled:n,blur:r=60,opacity:o=.6,scale:i=1.2}){const s=a.useRef(60);a.useEffect((()=>{if(!n||!e.current||!t.current)return;const a=e.current,l=t.current,c=l.getContext("2d");if(!c)return;const d=()=>{if(!a||!l||!c)return;const e=a.getBoundingClientRect();l.width=e.width*i,l.height=e.height*i,c.filter=`blur(${r}px)`,c.globalAlpha=o;try{c.drawImage(a,0,0,l.width,l.height)}catch(t){}n&&(s.current=requestAnimationFrame(d))},u=()=>{n&&d()},m=()=>{s.current&&cancelAnimationFrame(s.current)};return a.addEventListener("play",u),a.addEventListener("pause",m),a.addEventListener("ended",m),a.paused||u(),()=>{a.removeEventListener("play",u),a.removeEventListener("pause",m),a.removeEventListener("ended",m),s.current&&cancelAnimationFrame(s.current)}}),[n,r,o,i,e,t])}({videoRef:D,canvasRef:B,enabled:w});const[he,pe]=a.useState(!1),[ge,fe]=a.useState("quality"),[be,xe]=a.useState(_?.find((e=>e.default))?.srcLang||null),[ve,Se]=a.useState({width:0,height:0}),ye=a.useCallback((e=>{const t=e.currentTarget.getBoundingClientRect(),a=(e.clientX-t.left)/t.width;ne(a*Y)}),[Y,ne]),Ee=a.useCallback((e=>{const t=e.currentTarget.getBoundingClientRect(),a=(e.clientX-t.left)/t.width;re(a)}),[re]),Ae=a.useCallback((()=>{if(e)try{var t;const a=new URL(e,window.location.origin);if(sn(t=["http:","https:","blob:","data:"]).call(t,a.protocol)){const e=document.createElement("a");e.href=a.href,e.download="video",e.click()}}catch(a){}}),[e]),Ne=a.useCallback((async()=>{if(navigator.share)try{await navigator.share({title:"Video",url:window.location.href})}catch(e){}}),[]),Te=a.useCallback((e=>{const t=D.current;if(t){const a=t.textTracks;for(let e=0;e<a.length;e++){const t=a[e];t&&(t.mode="hidden")}if(e)for(let t=0;t<a.length;t++){const n=a[t];if(n&&n.language===e){n.mode="showing";break}}xe(e)}}),[D]);a.useEffect((()=>{const e=D.current;if(e&&_){const t=()=>{setTimeout((()=>{const e=_.find((e=>e.default));e&&Te(e.srcLang)}),100)},a=()=>{if(e.textTracks.length>0){const e=_.find((e=>e.default));e&&Te(e.srcLang)}};return e.addEventListener("loadeddata",t),e.addEventListener("canplay",a),()=>{e.removeEventListener("loadeddata",t),e.removeEventListener("canplay",a)}}}),[_,Te,D]),a.useEffect((()=>{const e=()=>{if(G&&z.current){const e=z.current.getBoundingClientRect();Se({width:e.width,height:e.height})}else if(D.current){const e=D.current.getBoundingClientRect();Se({width:e.width,height:e.height})}},t=setTimeout(e,100),a=new ResizeObserver(e);if(G&&z.current){const n=z.current;a.observe(n);const r=()=>e();return n.addEventListener("load",r),()=>{clearTimeout(t),a.disconnect(),n.removeEventListener("load",r)}}if(D.current){const n=D.current;a.observe(n);const r=()=>e();return n.addEventListener("loadedmetadata",r),()=>{clearTimeout(t),a.disconnect(),n.removeEventListener("loadedmetadata",r)}}return window.addEventListener("resize",e),()=>{clearTimeout(t),a.disconnect(),window.removeEventListener("resize",e)}}),[G,D,z]);const Ce=a.useCallback((()=>{P.current&&P.current.focus()}),[]);a.useEffect((()=>{const e=()=>{if(!P.current)return;const e=window.getComputedStyle(P.current),t=e.borderRadius||e.borderTopLeftRadius,a=parseFloat(t);isNaN(a)||U(a)};e();let t=null;"undefined"!=typeof ResizeObserver&&P.current&&(t=new ResizeObserver(e),t.observe(P.current)),window.addEventListener("resize",e);const a=P.current;return()=>{window.removeEventListener("resize",e),t&&a&&(t.unobserve(a),t.disconnect())}}),[]);const _e=a.useCallback((e=>{switch(e.key){case" ":case"k":e.preventDefault(),ae();break;case"ArrowLeft":e.preventDefault(),ne($-10);break;case"ArrowRight":e.preventDefault(),ne($+10);break;case"ArrowUp":e.preventDefault(),re(Math.min(1,K+.1));break;case"ArrowDown":e.preventDefault(),re(Math.max(0,K-.1));break;case"m":e.preventDefault(),oe();break;case"f":e.preventDefault(),ie()}}),[ae,$,ne,K,re,oe,ie]);return t.jsxs("div",{ref:P,className:`${ar.CLASSES.BASE} ${G?ar.CLASSES.YOUTUBE:""} ${w?ar.CLASSES.AMBIENT:""} ${I?ar.CLASSES.GLASS:""} ${g}`,style:{width:m,height:h,aspectRatio:p?p.replace(":","/"):void 0,...k},tabIndex:0,onClick:Ce,onKeyDown:_e,role:"application","aria-label":"Video player",...j,children:[w&&t.jsx("canvas",{ref:B,className:ar.CLASSES.AMBIENT_CANVAS,"aria-hidden":"true"}),G&&V?t.jsx("iframe",{ref:z,className:ar.CLASSES.VIDEO,src:`https://www.youtube.com/embed/${V}?${new URLSearchParams({autoplay:s?"1":"0",loop:l?"1":"0",mute:c?"1":"0",controls:d?"1":"0",modestbranding:"1",rel:"0",...l&&{playlist:V}}).toString()}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}):t.jsx("video",{ref:e=>{D&&D.current!==e&&(D.current=e),"function"==typeof M?M(e):M&&M.current!==e&&(M.current=e)},className:ar.CLASSES.VIDEO,src:e,poster:i,autoPlay:s,loop:l,muted:c,preload:u,controls:!1,crossOrigin:"anonymous",children:_&&_.map((e=>t.jsx("track",{kind:"subtitles",src:e.src,srcLang:e.srcLang,label:e.label,default:e.default},e.srcLang)))}),Q&&t.jsx("div",{className:ar.CLASSES.LOADING,children:t.jsx("div",{className:ar.CLASSES.SPINNER})}),I&&t.jsx("div",{className:ar.CLASSES.GLASS_OVERLAY,children:t.jsx(so,{..."boolean"==typeof I?{}:I,mouseContainer:P,displacementScale:100,blurAmount:0,saturation:100,elasticity:0,children:!O&&t.jsx("div",{style:{width:ve.width>0?ve.width+"px":"100%",height:ve.height>0?ve.height+"px":"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"transparent"}})})}),I&&O&&t.jsx("div",{className:ar.CLASSES.GLASS_CONTENT,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:O}),d&&!G&&t.jsxs("div",{className:`${ar.CLASSES.CONTROLS} ${J?ar.CLASSES.CONTROLS_VISIBLE:""}`,style:{zIndex:I?3:"auto"},children:[t.jsx("div",{className:ar.CLASSES.PROGRESS_CONTAINER,children:t.jsxs("div",{className:ar.CLASSES.PROGRESS_BAR,onClick:ye,children:[t.jsx("div",{className:ar.CLASSES.PROGRESS_BUFFERED,style:{width:me()+"%"}}),t.jsx("div",{className:ar.CLASSES.PROGRESS_PLAYED,style:{width:ue()+"%"}}),t.jsx("div",{className:ar.CLASSES.PROGRESS_THUMB,style:{left:ue()+"%"}})]})}),t.jsxs("div",{className:ar.CLASSES.CONTROLS_ROW,children:[t.jsxs("div",{className:ar.CLASSES.CONTROLS_LEFT,children:[t.jsx("button",{className:ar.CLASSES.CONTROL_BUTTON,onClick:ae,"aria-label":H?"Pause":"Play",children:H?t.jsx(n.Pause,{size:20}):t.jsx(n.Play,{size:20})}),t.jsx("button",{className:ar.CLASSES.CONTROL_BUTTON,onClick:()=>ne($-10),"aria-label":"Skip back 10 seconds",children:t.jsx(n.SkipBack,{size:20})}),t.jsx("button",{className:ar.CLASSES.CONTROL_BUTTON,onClick:()=>ne($+10),"aria-label":"Skip forward 10 seconds",children:t.jsx(n.SkipForward,{size:20})}),t.jsxs("div",{className:ar.CLASSES.VOLUME_CONTAINER,children:[t.jsx("button",{className:ar.CLASSES.CONTROL_BUTTON,onClick:oe,"aria-label":W?"Unmute":"Mute",children:W||0===K?t.jsx(n.SpeakerX,{size:20}):t.jsx(n.SpeakerHigh,{size:20})}),t.jsx("div",{className:ar.CLASSES.VOLUME_SLIDER,children:t.jsx("div",{className:ar.CLASSES.VOLUME_BAR,onClick:Ee,children:t.jsx("div",{className:ar.CLASSES.VOLUME_FILL,style:{width:100*K+"%"}})})})]}),t.jsxs("div",{className:ar.CLASSES.TIME_DISPLAY,children:[t.jsx("span",{children:de($)}),t.jsx("span",{children:"/"}),t.jsx("span",{children:de(Y)})]})]}),t.jsxs("div",{className:ar.CLASSES.CONTROLS_RIGHT,children:[T&&t.jsxs("div",{className:ar.CLASSES.SETTINGS_CONTAINER,children:[t.jsx("button",{className:ar.CLASSES.CONTROL_BUTTON,onClick:()=>pe(!he),"aria-label":"Settings",children:t.jsx(n.Gear,{size:20})}),he&&t.jsxs("div",{className:ar.CLASSES.SETTINGS_MENU,children:[t.jsxs("div",{className:ar.CLASSES.SETTINGS_TABS,children:[L&&L.length>1&&t.jsx("button",{className:`${ar.CLASSES.SETTINGS_TAB} ${"quality"===ge?ar.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>fe("quality"),children:"Quality"}),t.jsx("button",{className:`${ar.CLASSES.SETTINGS_TAB} ${"speed"===ge?ar.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>fe("speed"),children:"Speed"}),t.jsx("button",{className:`${ar.CLASSES.SETTINGS_TAB} ${"subtitles"===ge?ar.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>fe("subtitles"),children:"Subtitles"})]}),t.jsxs("div",{className:ar.CLASSES.SETTINGS_CONTENT,children:["quality"===ge&&L&&t.jsx("div",{className:ar.CLASSES.SETTINGS_OPTIONS,children:L.map((e=>t.jsx("button",{className:`${ar.CLASSES.SETTINGS_OPTION} ${Z?.label===e.label?ar.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>ce(e),children:e.label},e.label)))}),"speed"===ge&&t.jsx("div",{className:ar.CLASSES.SETTINGS_OPTIONS,children:C.map((e=>t.jsxs("button",{className:`${ar.CLASSES.SETTINGS_OPTION} ${X===e?ar.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>le(e),children:[e,"x"]},e)))}),"subtitles"===ge&&t.jsx("div",{className:ar.CLASSES.SETTINGS_OPTIONS,children:_&&_.length>0?t.jsxs(t.Fragment,{children:[t.jsx("button",{className:`${ar.CLASSES.SETTINGS_OPTION} ${null===be?ar.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Te(null),children:"Off"}),_.map((e=>t.jsx("button",{className:`${ar.CLASSES.SETTINGS_OPTION} ${be===e.srcLang?ar.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Te(e.srcLang),children:e.label},e.srcLang)))]}):t.jsx("div",{className:ar.CLASSES.SETTINGS_OPTION,style:{opacity:.6,cursor:"default"},children:"No subtitles available"})})]})]})]}),A&&t.jsx("button",{className:ar.CLASSES.CONTROL_BUTTON,onClick:Ae,"aria-label":"Download video",children:t.jsx(n.Download,{size:20})}),N&&t.jsx("button",{className:ar.CLASSES.CONTROL_BUTTON,onClick:Ne,"aria-label":"Share video",children:t.jsx(n.Share,{size:20})}),t.jsx("button",{className:ar.CLASSES.CONTROL_BUTTON,onClick:se,"aria-label":"Picture in Picture",children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:t.jsx("path",{d:"M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14z"})})}),t.jsx("button",{className:ar.CLASSES.CONTROL_BUTTON,onClick:ie,"aria-label":q?"Exit fullscreen":"Enter fullscreen",children:q?t.jsx(n.ArrowsIn,{size:20}):t.jsx(n.ArrowsOut,{size:20})})]})]})]})]})}));Jc.displayName="VideoPlayer";var ed=Object.freeze({__proto__:null,Accordion:po,AreaChart:zi,AtomixGlass:so,AtomixLogo:go,Avatar:ko,AvatarGroup:jo,Badge:Do,BarChart:Ui,Block:zo,Breadcrumb:Uo,BubbleChart:Gi,Button:mi,ButtonGroup:hi,Callout:Ei,CandlestickChart:Vi,Card:Li,Chart:ji,ChartRenderer:Di,Checkbox:fs,ColorModeToggle:cs,Countdown:ds,DataTable:Ts,DatePicker:Is,DonutChart:Hi,Dropdown:Ns,EdgePanel:Ps,ElevationCard:wi,Footer:Vl,FooterLink:Wl,FooterSection:Kl,FooterSocialLink:zl,Form:zs,FormGroup:Us,FunnelChart:$i,GaugeChart:Yi,HeatmapChart:Wi,Hero:Ql,Icon:Oo,Input:Vs,LineChart:Qi,List:Jl,ListGroup:ec,MegaMenu:Sc,MegaMenuColumn:yc,MegaMenuLink:Ec,Menu:fc,MenuDivider:vc,MenuItem:bc,Messages:tc,Modal:sc,MultiAxisChart:Xi,Nav:lc,NavDropdown:Ac,NavItem:uc,Navbar:mc,Pagination:gs,PhotoViewer:wc,PieChart:Ji,Popover:Rc,ProductReview:jc,Progress:Mc,RadarChart:es,Radio:jl,Rating:kc,River:Dc,ScatterChart:ts,SectionIntro:Pc,Select:kl,SideMenu:gc,SideMenuItem:pc,SideMenuList:hc,Slider:Bc,Spinner:Vo,Steps:Fc,Tabs:Kc,Testimonial:Wc,Textarea:Ml,Todo:qc,Toggle:Qc,Tooltip:Xc,TreemapChart:os,Upload:Zc,VideoPlayer:Jc,WaterfallChart:is}),td=Object.freeze({__proto__:null}),ad=Object.freeze({__proto__:null,ACCORDION:fn,ATOMIX_GLASS:dr,AVATAR:qn,AVATAR_GROUP:Qn,BADGE:bn,BLOCK:lr,BREADCRUMB:Sn,BUTTON:hn,BUTTON_GROUP:pn,CALLOUT:gn,CARD:Yn,CHART:ir,CLASS_PREFIX:dn,CODE_SNIPPET:sr,COUNTDOWN:yn,DATA_TABLE_CLASSES:Bn,DATA_TABLE_SELECTORS:zn,DATEPICKER:tr,DROPDOWN:Jn,EDGE_PANEL:Pn,FOOTER:cr,FORM:Gn,FORM_GROUP:Vn,HERO:En,INPUT:Hn,LIST:xn,LIST_GROUP:vn,MESSAGES:Zn,MODAL:Xn,NAV:jn,NAVBAR:kn,PAGINATION_DEFAULTS:Fn,PHOTOVIEWER:nr,POPOVER:Nn,PROGRESS:er,RADIO:$n,RATING:Dn,RIVER:Rn,SECTION_INTRO:In,SELECT:Kn,SIDE_MENU:Mn,SIZES:cn,SLIDER:or,SPINNER:wn,STEPS:_n,TAB:Cn,TESTIMONIAL:Ln,TEXTAREA:Wn,THEME_COLORS:ln,THEME_NAMING:un,TODO:Un,TOGGLE:Tn,TOOLTIP:An,TYPEDBUTTON:mn,UPLOAD:On,VIDEO_PLAYER:ar,sliderConstants:rr});const nd={primary:"#7c3aed",secondary:"#f3f4f6",success:"#22c55e",info:"#3b82f6",warning:"#eab308",error:"#ef4444",light:"#f9fafb",dark:"#1f2937","primary-rgb":"124, 58, 237","secondary-rgb":"243, 244, 246","success-rgb":"34, 197, 94","info-rgb":"59, 130, 246","warning-rgb":"234, 179, 8","error-rgb":"239, 68, 68","light-rgb":"249, 250, 251","dark-rgb":"31, 41, 55","gray-1":"#f9fafb","gray-2":"#f3f4f6","gray-3":"#e5e7eb","gray-4":"#d1d5db","gray-5":"#9ca3af","gray-6":"#6b7280","gray-7":"#4b5563","gray-8":"#374151","gray-9":"#1f2937","gray-10":"#111827","primary-1":"#f2e8fd","primary-2":"#e4d0fa","primary-3":"#d0b2f5","primary-4":"#b88cef","primary-5":"#9c63e9","primary-6":"#7c3aed","primary-7":"#6425ca","primary-8":"#501ba6","primary-9":"#3c1583","primary-10":"#2a0e60","red-1":"#fef2f2","red-2":"#fee2e2","red-3":"#fecaca","red-4":"#fca5a5","red-5":"#f87171","red-6":"#ef4444","red-7":"#dc2626","red-8":"#b91c1c","red-9":"#991b1b","red-10":"#7f1d1d","green-1":"#f0fdf4","green-2":"#dcfce7","green-3":"#bbf7d0","green-4":"#86efac","green-5":"#4ade80","green-6":"#22c55e","green-7":"#16a34a","green-8":"#15803d","green-9":"#166534","green-10":"#14532d","blue-1":"#eff6ff","blue-2":"#dbeafe","blue-3":"#bfdbfe","blue-4":"#93c5fd","blue-5":"#60a5fa","blue-6":"#3b82f6","blue-7":"#2563eb","blue-8":"#1d4ed8","blue-9":"#1e40af","blue-10":"#1e3a8a","yellow-1":"#fefce8","yellow-2":"#fef9c3","yellow-3":"#fef08a","yellow-4":"#fde047","yellow-5":"#facc15","yellow-6":"#eab308","yellow-7":"#ca8a04","yellow-8":"#a16207","yellow-9":"#854d0e","yellow-10":"#713f12","primary-text-emphasis":"#111827","secondary-text-emphasis":"#374151","tertiary-text-emphasis":"#6b7280","disabled-text-emphasis":"#9ca3af","invert-text-emphasis":"#111827","brand-text-emphasis":"#7c3aed","error-text-emphasis":"#ef4444","success-text-emphasis":"#22c55e","warning-text-emphasis":"#eab308","info-text-emphasis":"#3b82f6","light-text-emphasis":"#f9fafb","dark-text-emphasis":"#1f2937","primary-bg-subtle":"#ffffff","secondary-bg-subtle":"#e5e7eb","tertiary-bg-subtle":"#d1d5db","invert-bg-subtle":"#111827","brand-bg-subtle":"#e4d0fa","error-bg-subtle":"#fee2e2","success-bg-subtle":"#dcfce7","warning-bg-subtle":"#fef9c3","info-bg-subtle":"#dbeafe","light-bg-subtle":"#f3f4f6","dark-bg-subtle":"#1f2937","primary-border-subtle":"#e5e7eb","secondary-border-subtle":"#111827","success-border-subtle":"#22c55e","error-border-subtle":"#ef4444","warning-border-subtle":"#eab308","info-border-subtle":"#3b82f6","brand-border-subtle":"#7c3aed","light-border-subtle":"#f9fafb","dark-border-subtle":"#1f2937","primary-hover":"#7c3aed","secondary-hover":"#e5e7eb","light-hover":"#f3f4f6","dark-hover":"#4b5563","error-hover":"#b91c1c","success-hover":"#15803d","warning-hover":"#a16207","info-hover":"#1d4ed8","primary-gradient":"linear-gradient(135deg, #e4d0fa, #d0b2f5, #b88cef)","secondary-gradient":"linear-gradient(135deg, #f3f4f6, #e5e7eb, #d1d5db)","light-gradient":"linear-gradient(135deg, #f9fafb, #f3f4f6, #e5e7eb)","dark-gradient":"linear-gradient(135deg, #4b5563, #1f2937, #000000)","success-gradient":"linear-gradient(135deg, #dcfce7, #86efac, #4ade80)","info-gradient":"linear-gradient(135deg, #dbeafe, #bfdbfe, #60a5fa)","warning-gradient":"linear-gradient(135deg, #fef9c3, #fef08a, #facc15)","error-gradient":"linear-gradient(135deg, #fef2f2, #fee2e2, #fecaca)",gradient:"linear-gradient(135deg, #f9fafb, #f3f4f6, #e5e7eb)","font-sans-serif":'"Roboto", sans-serif',"font-monospace":'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',"body-font-family":'"Roboto", sans-serif',"body-font-size":"1rem","body-font-weight":"400","body-line-height":"1.2","body-color":"#111827","body-bg":"#ffffff","heading-color":"#111827","font-size-xl":"1.5rem","font-size-2xl":"2rem","display-1":"4rem","font-weight-light":"300","font-weight-normal":"400","font-weight-medium":"500","font-weight-semibold":"600","font-weight-bold":"700","font-weight-heavy":"800","font-weight-black":"900","line-height-base":"1.2","line-height-sm":"1.43","line-height-lg":"1.56","letter-spacing-h1":"-1px","letter-spacing-h2":"-1px","letter-spacing-h3":"-1px","letter-spacing-h4":"-0.5px","letter-spacing-h5":"-0.5px","letter-spacing-h6":"-0.5px","link-color":"#7c3aed","link-color-rgb":"124, 58, 237","link-decoration":"none","link-hover-color":"rgb(85.3674418605, 18.2930232558, 200.2069767442)","link-hover-color-rgb":"85.3674418605, 18.2930232558, 200.2069767442","highlight-bg":"#fef08a","code-color":"#f87171","border-width":"1px","border-style":"solid","border-color":"#e5e7eb","border-color-translucent":"rgba(229, 231, 235, 0.175)","border-radius":"0.5rem","border-radius-sm":"0.25rem","border-radius-lg":"0.625rem","border-radius-xl":"0.75rem","border-radius-xxl":"1rem","border-radius-2xl":"var(--atomix-border-radius-xxl)","border-radius-3xl":"1.5rem","border-radius-4xl":"2rem","border-radius-pill":"50rem","box-shadow":"0 8px 16px rgba(0, 0, 0, 0.15)","box-shadow-xs":"0px 1px 2px 0px rgba(45, 54, 67, 0.04), 0px 2px 4px 0px rgba(45, 54, 67, 0.08)","box-shadow-sm":"0 2px 4px rgba(0, 0, 0, 0.075)","box-shadow-lg":"0 16px 48px rgba(0, 0, 0, 0.175)","box-shadow-xl":"0px 16px 64px -8px rgba(45, 54, 67, 0.14)","box-shadow-inset":"inset 0 1px 2px rgba(0, 0, 0, 0.075)","focus-border-color":"#9c63e9","focus-ring-width":"3px","focus-ring-offset":"2px","focus-ring-opacity":"0.25","form-valid-color":"#22c55e","form-valid-border-color":"#22c55e","form-invalid-color":"#ef4444","form-invalid-border-color":"#ef4444","spacing-0":"0rem","spacing-1":"0.25rem","spacing-px-6":"0.375rem","spacing-2":"0.5rem","spacing-px-10":"0.625rem","spacing-3":"0.75rem","spacing-px-14":"0.875rem","spacing-4":"1rem","spacing-5":"1.25rem","spacing-px-22":"1.375rem","spacing-6":"1.5rem","spacing-7":"1.75rem","spacing-px-30":"1.875rem","spacing-8":"2rem","spacing-9":"2.25rem","spacing-10":"2.5rem","spacing-11":"2.75rem","spacing-12":"3rem","spacing-14":"3.5rem","spacing-16":"4rem","spacing-20":"5rem","spacing-24":"6rem","spacing-28":"7rem","spacing-32":"8rem","spacing-36":"9rem","spacing-40":"10rem","spacing-44":"11rem","spacing-48":"12rem","spacing-52":"13rem","spacing-56":"14rem","spacing-60":"15rem","spacing-64":"16rem","spacing-72":"18rem","spacing-80":"20rem","spacing-90":"22.5rem","spacing-200":"50rem","transition-duration-fast":"0.15s","transition-duration-base":"0.3s","transition-duration-slow":"0.5s","transition-duration-slower":"0.7s","easing-base":"cubic-bezier(0.23, 1, 0.32, 1)","easing-ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)","easing-ease-out":"cubic-bezier(0, 0, 0.2, 1)","easing-ease-in":"cubic-bezier(0.4, 0, 1, 1)","easing-ease-linear":"linear","transition-fast":"all 0.15s cubic-bezier(0.23, 1, 0.32, 1)","transition-base":"all 0.3s cubic-bezier(0.23, 1, 0.32, 1)","transition-slow":"all 0.5s cubic-bezier(0.23, 1, 0.32, 1)","z-n1":"-1","z-0":"0","z-1":"1","z-2":"2","z-3":"3","z-4":"4","z-5":"5","z-dropdown":"1000","z-sticky":"1020","z-fixed":"1030","z-modal":"1040","z-popover":"1050","z-tooltip":"1060","z-drawer":"1070","breakpoint-xs":"0","breakpoint-sm":"576px","breakpoint-md":"768px","breakpoint-lg":"992px","breakpoint-xl":"1200px","breakpoint-xxl":"1440px","interactive-vortex-enabled":"false","interactive-vortex-strength":"0.5","interactive-vortex-radius":"100","interactive-vortex-decay":"0.8","interactive-chromatic-enabled":"false","interactive-chromatic-mode":"lateral","interactive-chromatic-red-shift":"0.02","interactive-chromatic-green-shift":"0","interactive-chromatic-blue-shift":"-0.02","interactive-chromatic-edge-only":"false","interactive-chromatic-edge-threshold":"0.5","interactive-mouse-sensitivity":"1.0","interactive-mouse-trail-effect":"false","interactive-animation-speed-base":"1.0","interactive-animation-speed-multiplier":"1.0","optimization-breakpoint-mobile":"0px","optimization-breakpoint-tablet":"768px","optimization-breakpoint-desktop":"1024px","optimization-breakpoint-wide":"1440px","optimization-device-scaling-mobile":"0.5","optimization-device-scaling-tablet":"0.75","optimization-device-scaling-desktop":"1.0","optimization-performance-fps-target":"60","optimization-auto-scaling-enabled":"false","optimization-auto-scaling-low-end":"0.5","optimization-auto-scaling-mid-range":"0.75","optimization-auto-scaling-high-end":"1.0","visual-polish-border-iridescent-glow":"false","visual-polish-border-shimmer-effect":"false","visual-polish-border-beveled-edges":"false","visual-polish-border-pulsing-glow":"false","visual-polish-content-aware-blur-enabled":"false","visual-polish-content-aware-depth-detection":"false","visual-polish-content-aware-edge-preservation":"false","visual-polish-content-aware-variable-radius":"false","visual-polish-holographic-enabled":"false","visual-polish-holographic-rainbow-diffraction":"false","visual-polish-holographic-scanline-animation":"false","visual-polish-holographic-grid-overlay":"false","visual-polish-holographic-data-stream":"false","visual-polish-holographic-pulse-rings":"false"};function rd(e){return{...nd,...e}}function od(e,t={}){const{selector:a=":root",prefix:n="atomix"}=t;return`${a} {\n${Object.entries(e).filter((([,e])=>void 0!==e)).map((([e,t])=>` --${n}-${e}: ${t};`)).join("\n")}\n}`}function id(e,t,a="atomix"){return od(e,{selector:t,prefix:a})}function sd(e){const t={};if(e.palette){if(e.palette.primary){const a=e.palette.primary.main;t.primary=a;const n=cd(a);n&&(t["primary-rgb"]=n)}if(e.palette.secondary){const a=e.palette.secondary.main;t.secondary=a;const n=cd(a);n&&(t["secondary-rgb"]=n)}const a=["error","warning","info","success"];for(const n of a)if(e.palette[n]){const a=e.palette[n].main;t[n]=a;const r=cd(a);r&&(t[n+"-rgb"]=r)}e.palette.background&&(t["body-bg"]=e.palette.background.default),e.palette.text&&(t["body-color"]=e.palette.text.primary)}if(e.typography&&(t["body-font-family"]=e.typography.fontFamily,t["body-font-size"]=e.typography.fontSize+"px",t["font-weight-normal"]=""+e.typography.fontWeightRegular,t["font-weight-bold"]=""+e.typography.fontWeightBold),"function"==typeof e.spacing&&(t["spacing-1"]=e.spacing(1),t["spacing-2"]=e.spacing(2),t["spacing-4"]=e.spacing(4)),e.breakpoints?.values&&(t["breakpoint-xs"]=e.breakpoints.values.xs+"px",t["breakpoint-sm"]=e.breakpoints.values.sm+"px",t["breakpoint-md"]=e.breakpoints.values.md+"px",t["breakpoint-lg"]=e.breakpoints.values.lg+"px",t["breakpoint-xl"]=e.breakpoints.values.xl+"px"),e.shadows&&(t["box-shadow"]=e.shadows[2],t["box-shadow-sm"]=e.shadows[1],t["box-shadow-lg"]=e.shadows[3]),e.transitions&&(t["transition-duration-base"]=e.transitions.duration.standard+"ms"),e.zIndex&&(t["z-modal"]=""+e.zIndex.modal,t["z-popover"]=""+e.zIndex.popover,t["z-tooltip"]=""+e.zIndex.tooltip),e.borderRadius){const a=e.borderRadius.base;t["border-radius"]="number"==typeof a?a+"px":a}if(e.custom){if(e.custom.interactiveEffects){const a=e.custom.interactiveEffects;a.vortex&&(t["interactive-vortex-enabled"]=(a.vortex.enabled??!1)+"",t["interactive-vortex-strength"]=(a.vortex.strength??.5)+"",t["interactive-vortex-radius"]=(a.vortex.radius??100)+"",t["interactive-vortex-decay"]=(a.vortex.decay??.8)+""),a.chromaticAberration&&(t["interactive-chromatic-enabled"]=(a.chromaticAberration.enabled??!1)+"",t["interactive-chromatic-mode"]=a.chromaticAberration.mode??"lateral",t["interactive-chromatic-red-shift"]=(a.chromaticAberration.redShift??.02)+"",t["interactive-chromatic-green-shift"]=(a.chromaticAberration.greenShift??0)+"",t["interactive-chromatic-blue-shift"]=(a.chromaticAberration.blueShift??-.02)+"",t["interactive-chromatic-edge-only"]=(a.chromaticAberration.edgeOnly??!1)+"",t["interactive-chromatic-edge-threshold"]=(a.chromaticAberration.edgeThreshold??.5)+""),a.mouseInteraction&&(t["interactive-mouse-sensitivity"]=(a.mouseInteraction.sensitivity??1)+"",t["interactive-mouse-trail-effect"]=(a.mouseInteraction.trailEffect??!1)+""),a.animationSpeed&&(t["interactive-animation-speed-base"]=(a.animationSpeed.base??1)+"",t["interactive-animation-speed-multiplier"]=(a.animationSpeed.timeMultiplier??1)+"")}if(e.custom.optimization){const a=e.custom.optimization;a.responsive&&(a.responsive.breakpoints&&(t["optimization-breakpoint-mobile"]=a.responsive.breakpoints.mobile??"0px",t["optimization-breakpoint-tablet"]=a.responsive.breakpoints.tablet??"768px",t["optimization-breakpoint-desktop"]=a.responsive.breakpoints.desktop??"1024px",t["optimization-breakpoint-wide"]=a.responsive.breakpoints.wide??"1440px"),a.responsive.deviceScaling&&(t["optimization-device-scaling-mobile"]=(a.responsive.deviceScaling.mobile??.5)+"",t["optimization-device-scaling-tablet"]=(a.responsive.deviceScaling.tablet??.75)+"",t["optimization-device-scaling-desktop"]=(a.responsive.deviceScaling.desktop??1)+"")),a.performance&&(t["optimization-performance-fps-target"]=(a.performance.fpsTarget??60)+"",t["optimization-auto-scaling-enabled"]=(a.performance.autoScaling??!1)+""),a.autoScaling&&(t["optimization-auto-scaling-enabled"]=(a.autoScaling.enabled??!1)+"",t["optimization-auto-scaling-low-end"]=(a.autoScaling.qualityThresholds?.lowEnd??.5)+"",t["optimization-auto-scaling-mid-range"]=(a.autoScaling.qualityThresholds?.midRange??.75)+"",t["optimization-auto-scaling-high-end"]=(a.autoScaling.qualityThresholds?.highEnd??1)+"")}if(e.custom.visualPolish){const a=e.custom.visualPolish;a.borders&&(t["visual-polish-border-iridescent-glow"]=(a.borders.iridescentGlow??!1)+"",t["visual-polish-border-shimmer-effect"]=(a.borders.shimmerEffect??!1)+"",t["visual-polish-border-beveled-edges"]=(a.borders.beveledEdges??!1)+"",t["visual-polish-border-pulsing-glow"]=(a.borders.pulsingGlow??!1)+""),a.contentAwareBlur&&(t["visual-polish-content-aware-blur-enabled"]=(a.contentAwareBlur.enabled??!1)+"",t["visual-polish-content-aware-depth-detection"]=(a.contentAwareBlur.depthDetection??!1)+"",t["visual-polish-content-aware-edge-preservation"]=(a.contentAwareBlur.edgePreservation??!1)+"",t["visual-polish-content-aware-variable-radius"]=(a.contentAwareBlur.variableRadius??!1)+""),a.holographicEffects&&(t["visual-polish-holographic-enabled"]=(a.holographicEffects.enabled??!1)+"",t["visual-polish-holographic-rainbow-diffraction"]=(a.holographicEffects.rainbowDiffraction??!1)+"",t["visual-polish-holographic-scanline-animation"]=(a.holographicEffects.scanlineAnimation??!1)+"",t["visual-polish-holographic-grid-overlay"]=(a.holographicEffects.gridOverlay??!1)+"",t["visual-polish-holographic-data-stream"]=(a.holographicEffects.dataStream??!1)+"",t["visual-polish-holographic-pulse-rings"]=(a.holographicEffects.pulseRings??!1)+"")}}return rd(t)}function ld(e){const t=e.prefix||"atomix",a=e.theme||{};let n={...nd};if(a.extend&&Object.entries(a.extend).forEach((([e,t])=>{"object"==typeof t&&null!==t&&Object.entries(t).forEach((([t,a])=>{const r=`${e}-${t}`;"string"==typeof a||"number"==typeof a?n[r]=a+"":"object"==typeof a&&null!==a&&Object.entries(a).forEach((([e,t])=>{"string"!=typeof t&&"number"!=typeof t||(n[`${r}-${e}`]=t+"")}))}))})),a.tokens&&(n={...n,...a.tokens}),e){if(e.interactiveEffects){const t=e.interactiveEffects;t.vortex&&(n["interactive-vortex-enabled"]=(t.vortex.enabled??!1)+"",n["interactive-vortex-strength"]=(t.vortex.strength??.5)+"",n["interactive-vortex-radius"]=(t.vortex.radius??100)+"",n["interactive-vortex-decay"]=(t.vortex.decay??.8)+"",n["interactive-vortex-curl-noise"]=(t.vortex.curlNoise??!1)+"",n["interactive-vortex-velocity-tracking"]=(t.vortex.velocityTracking??!1)+""),t.chromaticAberration&&(n["interactive-chromatic-enabled"]=(t.chromaticAberration.enabled??!1)+"",n["interactive-chromatic-mode"]=t.chromaticAberration.mode??"lateral",n["interactive-chromatic-red-shift"]=(t.chromaticAberration.redShift??.02)+"",n["interactive-chromatic-green-shift"]=(t.chromaticAberration.greenShift??0)+"",n["interactive-chromatic-blue-shift"]=(t.chromaticAberration.blueShift??-.02)+"",n["interactive-chromatic-edge-only"]=(t.chromaticAberration.edgeOnly??!1)+"",n["interactive-chromatic-edge-threshold"]=(t.chromaticAberration.edgeThreshold??.5)+""),t.mouseInteraction&&(n["interactive-mouse-sensitivity"]=(t.mouseInteraction.sensitivity??1)+"",n["interactive-mouse-trail-effect"]=(t.mouseInteraction.trailEffect??!1)+"",n["interactive-mouse-pressure-sensitivity"]=(t.mouseInteraction.pressureSensitivity??!1)+""),t.animationSpeed&&(n["interactive-animation-speed-base"]=(t.animationSpeed.base??1)+"",n["interactive-animation-speed-multiplier"]=(t.animationSpeed.timeMultiplier??1)+"")}if(e.optimization){const t=e.optimization;t.responsive&&(t.responsive.breakpoints&&(n["optimization-breakpoint-mobile"]=t.responsive.breakpoints.mobile??"0px",n["optimization-breakpoint-tablet"]=t.responsive.breakpoints.tablet??"768px",n["optimization-breakpoint-desktop"]=t.responsive.breakpoints.desktop??"1024px",n["optimization-breakpoint-wide"]=t.responsive.breakpoints.wide??"1440px"),t.responsive.deviceScaling&&(n["optimization-device-scaling-mobile"]=(t.responsive.deviceScaling.mobile??.5)+"",n["optimization-device-scaling-tablet"]=(t.responsive.deviceScaling.tablet??.75)+"",n["optimization-device-scaling-desktop"]=(t.responsive.deviceScaling.desktop??1)+"")),t.performance&&(n["optimization-performance-fps-target"]=(t.performance.fpsTarget??60)+"",n["optimization-auto-scaling-enabled"]=(t.performance.autoScaling??!1)+"",n["optimization-monitor-dashboard-enabled"]=(t.performance.monitorDashboard??!1)+""),t.autoScaling&&(n["optimization-auto-scaling-enabled"]=(t.autoScaling.enabled??!1)+"",n["optimization-auto-scaling-low-end"]=(t.autoScaling.qualityThresholds?.lowEnd??.5)+"",n["optimization-auto-scaling-mid-range"]=(t.autoScaling.qualityThresholds?.midRange??.75)+"",n["optimization-auto-scaling-high-end"]=(t.autoScaling.qualityThresholds?.highEnd??1)+"")}if(e.visualPolish){const t=e.visualPolish;t.borders&&(n["visual-polish-border-iridescent-glow"]=(t.borders.iridescentGlow??!1)+"",n["visual-polish-border-shimmer-effect"]=(t.borders.shimmerEffect??!1)+"",n["visual-polish-border-beveled-edges"]=(t.borders.beveledEdges??!1)+"",n["visual-polish-border-pulsing-glow"]=(t.borders.pulsingGlow??!1)+""),t.contentAwareBlur&&(n["visual-polish-content-aware-blur-enabled"]=(t.contentAwareBlur.enabled??!1)+"",n["visual-polish-content-aware-depth-detection"]=(t.contentAwareBlur.depthDetection??!1)+"",n["visual-polish-content-aware-edge-preservation"]=(t.contentAwareBlur.edgePreservation??!1)+"",n["visual-polish-content-aware-variable-radius"]=(t.contentAwareBlur.variableRadius??!1)+""),t.holographicEffects&&(n["visual-polish-holographic-enabled"]=(t.holographicEffects.enabled??!1)+"",n["visual-polish-holographic-rainbow-diffraction"]=(t.holographicEffects.rainbowDiffraction??!1)+"",n["visual-polish-holographic-scanline-animation"]=(t.holographicEffects.scanlineAnimation??!1)+"",n["visual-polish-holographic-grid-overlay"]=(t.holographicEffects.gridOverlay??!1)+"",n["visual-polish-holographic-data-stream"]=(t.holographicEffects.dataStream??!1)+"",n["visual-polish-holographic-pulse-rings"]=(t.holographicEffects.pulseRings??!1)+"")}}const r={};return Object.entries(n).forEach((([e,a])=>{const n=e.startsWith(t)?e:`${t}-${e}`;r[n]=a})),r}function cd(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,a,n)=>t+t+a+a+n+n));const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t&&t[1]&&t[2]&&t[3]?`${parseInt(t[1],16)}, ${parseInt(t[2],16)}, ${parseInt(t[3],16)}`:"0, 0, 0"}function dd(e){const t={};return Object.entries(e).forEach((([e,a])=>{void 0!==a&&(t["--atomix-"+e]=a+"")})),t}function ud(e){const t=[];if(e.prefix&&(/^[a-zA-Z][a-zA-Z0-9-]*$/.test(e.prefix)||t.push(`Invalid prefix "${e.prefix}". Prefix should start with a letter and contain only letters, numbers, and hyphens.\nExample: "myapp", "brand-ui", "enterprise"`),2>e.prefix.length&&t.push(`Prefix "${e.prefix}" is too short. Use at least 2 characters for clarity.\nExample: "app" instead of "a"`)),e.theme&&(e.theme.extend&&e.theme.tokens&&t.push("Both theme.extend and theme.tokens are defined. theme.tokens will take precedence and completely replace the default token system.\nIf you want to extend defaults, remove theme.tokens and use only theme.extend."),e.theme.extend)){const a=e.theme.extend,n=["colors","typography","spacing","borderRadius","shadows","zIndex","transitions","breakpoints"];Object.keys(a).forEach((e=>{sn(n).call(n,e)||t.push(`Unknown theme property: "${e}"\nValid properties: ${n.join(", ")}\nDid you mean one of these? Check for typos.`)}))}if(e.interactiveEffects){const a=e.interactiveEffects;a.vortex&&(a.vortex.strength&&(0>a.vortex.strength||a.vortex.strength>10)&&t.push("Vortex strength should be between 0 and 10 for optimal performance"),a.vortex.radius&&0>a.vortex.radius&&t.push("Vortex radius should be a positive number"),!a.vortex.decay||a.vortex.decay>0&&1>=a.vortex.decay||t.push("Vortex decay should be between 0 and 1")),a.chromaticAberration&&(a.chromaticAberration.redShift&&Math.abs(a.chromaticAberration.redShift)>.1&&t.push("Chromatic red shift value seems unusually high (>0.1), verify this is intended"),a.chromaticAberration.blueShift&&Math.abs(a.chromaticAberration.blueShift)>.1&&t.push("Chromatic blue shift value seems unusually high (>0.1), verify this is intended"),a.chromaticAberration.edgeThreshold&&(0>a.chromaticAberration.edgeThreshold||a.chromaticAberration.edgeThreshold>1)&&t.push("Chromatic edge threshold should be between 0 and 1")),a.mouseInteraction&&a.mouseInteraction.sensitivity&&0>a.mouseInteraction.sensitivity&&t.push("Mouse sensitivity should be a positive number"),a.animationSpeed&&(a.animationSpeed.base&&0>=a.animationSpeed.base&&t.push("Animation base speed should be greater than 0"),a.animationSpeed.timeMultiplier&&0>=a.animationSpeed.timeMultiplier&&t.push("Animation time multiplier should be greater than 0"))}if(e.optimization){const a=e.optimization;if(a.responsive&&a.responsive.breakpoints){const e=a.responsive.breakpoints;e.mobile&&!md(e.mobile)&&t.push("Mobile breakpoint value is not a valid CSS length"),e.tablet&&!md(e.tablet)&&t.push("Tablet breakpoint value is not a valid CSS length"),e.desktop&&!md(e.desktop)&&t.push("Desktop breakpoint value is not a valid CSS length"),e.wide&&!md(e.wide)&&t.push("Wide breakpoint value is not a valid CSS length")}if(a.responsive&&a.responsive.deviceScaling){const e=a.responsive.deviceScaling;!e.mobile||e.mobile>0&&1>=e.mobile||t.push("Mobile device scaling should be between 0 and 1"),!e.tablet||e.tablet>0&&1>=e.tablet||t.push("Tablet device scaling should be between 0 and 1"),!e.desktop||e.desktop>0&&1>=e.desktop||t.push("Desktop device scaling should be between 0 and 1")}if(a.performance&&(!a.performance.fpsTarget||a.performance.fpsTarget>0&&240>=a.performance.fpsTarget||t.push("FPS target should be a reasonable value (typically 30-120)")),a.autoScaling&&a.autoScaling.qualityThresholds){const e=a.autoScaling.qualityThresholds;e.lowEnd&&(0>e.lowEnd||e.lowEnd>1)&&t.push("Auto-scaling low-end threshold should be between 0 and 1"),e.midRange&&(0>e.midRange||e.midRange>1)&&t.push("Auto-scaling mid-range threshold should be between 0 and 1"),e.highEnd&&(0>e.highEnd||e.highEnd>1)&&t.push("Auto-scaling high-end threshold should be between 0 and 1")}}if(e.visualPolish){const a=e.visualPolish;a.contentAwareBlur&&(void 0!==a.contentAwareBlur.edgePreservation&&"boolean"!=typeof a.contentAwareBlur.edgePreservation&&t.push("Content-aware blur edge preservation should be a boolean value"),void 0!==a.contentAwareBlur.depthDetection&&"boolean"!=typeof a.contentAwareBlur.depthDetection&&t.push("Content-aware blur depth detection should be a boolean value")),a.holographicEffects&&(void 0!==a.holographicEffects.enabled&&"boolean"!=typeof a.holographicEffects.enabled&&t.push("Holographic effects enabled should be a boolean value"),void 0!==a.holographicEffects.rainbowDiffraction&&"boolean"!=typeof a.holographicEffects.rainbowDiffraction&&t.push("Holographic rainbow diffraction should be a boolean value"))}var a;return e.ai&&(e.ai.provider&&!sn(a=["openai","anthropic"]).call(a,e.ai.provider)&&t.push(`Unknown AI provider: "${e.ai.provider}". Supported: openai, anthropic`),e.ai.temperature&&(0>e.ai.temperature||e.ai.temperature>1)&&t.push("AI temperature should be between 0 and 1"),e.ai.maxTokens&&100>e.ai.maxTokens&&t.push("AI maxTokens should typically be 100 or more"),e.ai.rateLimit&&(e.ai.rateLimit.requests>0||t.push("AI rate limit requests should be greater than 0"),e.ai.rateLimit.windowMs>0||t.push("AI rate limit window should be greater than 0"))),e.telemetry&&e.telemetry.path&&!e.telemetry.path.endsWith(".json")&&t.push("Telemetry path should typically end with .json"),t}function md(e){return/^(\d+(\.\d+)?)(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ex|ch)?$/.test(e)}function hd(e={}){const{configPath:t,required:a=!1}=e,n={prefix:"atomix",theme:{extend:{}}};if("undefined"!=typeof window){if(a)throw Error('Config loading requires Node.js file system access.\n\nSolutions:\n1. Provide tokens explicitly to createTheme():\n const css = createTheme({ "--brand-primary": "#6366f1" });\n\n2. Use SSR framework (Next.js, Remix, Astro)\n\n3. Load config on server and pass to client\n\nSee examples/config-examples/browser-only.config.ts');return n}if(t)return pd(t,a,n);const r=["atomix.config.ts","atomix.config.js","atomix.config.json"];for(const o of r){const e=pd(o,!1,n);if(JSON.stringify(e)!==JSON.stringify(n))return e}if(a)throw Error('No Atomix configuration file found in project root.\n\nExpected one of:\n - atomix.config.ts (recommended)\n - atomix.config.js\n - atomix.config.json\n\nQuick Fix:\n1. Create a config file in your project root:\n touch atomix.config.ts\n\n2. Add basic configuration:\n import { defineConfig } from "@shohojdhara/atomix/config";\n export default defineConfig({ prefix: "myapp" });\n\n3. Or copy an example:\n cp node_modules/@shohojdhara/atomix/examples/config-examples/standard.config.ts ./atomix.config.ts');return n}function pd(e,t,a){try{const t="undefined"!=typeof require?require:void 0;if(!t)return a;const n=t(e),r=n.default||n;if(r&&"object"==typeof r)return r;throw Error("Invalid config format")}catch(n){if(t)throw Error(`Failed to load config from ${e}: ${n.message}`);return a}}function gd(e,t){let a,n;if(e)a=!0===e.__isJSTheme||e.palette&&e.typography?sd(e):e;else{const e=function(){if("undefined"!=typeof window)throw Error("loadThemeFromConfigSync: Not available in browser environment. Config loading requires Node.js/SSR environment.");let e;try{const t="undefined"!=typeof require?require:void 0;if(!t)throw Error("require is not available");const{loadAtomixConfig:a}=t("../../config/loader");e=a}catch(o){throw Error("Config loader module not available")}const t=e({configPath:undefined,required:!0});if(!t?.theme)return rd({});if((a=t.theme)&&"object"==typeof a&&(a.palette||a.typography||a.spacing||a.breakpoints||a.colors))return sd(t.theme);var a;const n=t.theme;let r={};return n.tokens?r=n.tokens:n.extend&&(r=n.extend),t.interactiveEffects&&(t.interactiveEffects.vortex&&(r={...r,"interactive-vortex-enabled":(t.interactiveEffects.vortex.enabled??!1)+"","interactive-vortex-strength":(t.interactiveEffects.vortex.strength??.5)+"","interactive-vortex-radius":(t.interactiveEffects.vortex.radius??100)+"","interactive-vortex-decay":(t.interactiveEffects.vortex.decay??.8)+""}),t.interactiveEffects.chromaticAberration&&(r={...r,"interactive-chromatic-enabled":(t.interactiveEffects.chromaticAberration.enabled??!1)+"","interactive-chromatic-mode":t.interactiveEffects.chromaticAberration.mode??"lateral","interactive-chromatic-red-shift":(t.interactiveEffects.chromaticAberration.redShift??.02)+"","interactive-chromatic-green-shift":(t.interactiveEffects.chromaticAberration.greenShift??0)+"","interactive-chromatic-blue-shift":(t.interactiveEffects.chromaticAberration.blueShift??-.02)+"","interactive-chromatic-edge-only":(t.interactiveEffects.chromaticAberration.edgeOnly??!1)+"","interactive-chromatic-edge-threshold":(t.interactiveEffects.chromaticAberration.edgeThreshold??.5)+""}),t.interactiveEffects.mouseInteraction&&(r={...r,"interactive-mouse-sensitivity":(t.interactiveEffects.mouseInteraction.sensitivity??1)+"","interactive-mouse-trail-effect":(t.interactiveEffects.mouseInteraction.trailEffect??!1)+""}),t.interactiveEffects.animationSpeed&&(r={...r,"interactive-animation-speed-base":(t.interactiveEffects.animationSpeed.base??1)+"","interactive-animation-speed-multiplier":(t.interactiveEffects.animationSpeed.timeMultiplier??1)+""})),t.optimization&&(t.optimization.responsive&&(t.optimization.responsive.breakpoints&&(r={...r,"optimization-breakpoint-mobile":t.optimization.responsive.breakpoints.mobile??"0px","optimization-breakpoint-tablet":t.optimization.responsive.breakpoints.tablet??"768px","optimization-breakpoint-desktop":t.optimization.responsive.breakpoints.desktop??"1024px","optimization-breakpoint-wide":t.optimization.responsive.breakpoints.wide??"1440px"}),t.optimization.responsive.deviceScaling&&(r={...r,"optimization-device-scaling-mobile":(t.optimization.responsive.deviceScaling.mobile??.5)+"","optimization-device-scaling-tablet":(t.optimization.responsive.deviceScaling.tablet??.75)+"","optimization-device-scaling-desktop":(t.optimization.responsive.deviceScaling.desktop??1)+""})),t.optimization.performance&&(r={...r,"optimization-performance-fps-target":(t.optimization.performance.fpsTarget??60)+"","optimization-auto-scaling-enabled":(t.optimization.performance.autoScaling??!1)+""}),t.optimization.autoScaling&&(r={...r,"optimization-auto-scaling-enabled":(t.optimization.autoScaling.enabled??!1)+"","optimization-auto-scaling-low-end":(t.optimization.autoScaling.qualityThresholds?.lowEnd??.5)+"","optimization-auto-scaling-mid-range":(t.optimization.autoScaling.qualityThresholds?.midRange??.75)+"","optimization-auto-scaling-high-end":(t.optimization.autoScaling.qualityThresholds?.highEnd??1)+""})),t.visualPolish&&(t.visualPolish.borders&&(r={...r,"visual-polish-border-iridescent-glow":(t.visualPolish.borders.iridescentGlow??!1)+"","visual-polish-border-shimmer-effect":(t.visualPolish.borders.shimmerEffect??!1)+"","visual-polish-border-beveled-edges":(t.visualPolish.borders.beveledEdges??!1)+"","visual-polish-border-pulsing-glow":(t.visualPolish.borders.pulsingGlow??!1)+""}),t.visualPolish.contentAwareBlur&&(r={...r,"visual-polish-content-aware-blur-enabled":(t.visualPolish.contentAwareBlur.enabled??!1)+"","visual-polish-content-aware-depth-detection":(t.visualPolish.contentAwareBlur.depthDetection??!1)+"","visual-polish-content-aware-edge-preservation":(t.visualPolish.contentAwareBlur.edgePreservation??!1)+"","visual-polish-content-aware-variable-radius":(t.visualPolish.contentAwareBlur.variableRadius??!1)+""}),t.visualPolish.holographicEffects&&(r={...r,"visual-polish-holographic-enabled":(t.visualPolish.holographicEffects.enabled??!1)+"","visual-polish-holographic-rainbow-diffraction":(t.visualPolish.holographicEffects.rainbowDiffraction??!1)+"","visual-polish-holographic-scanline-animation":(t.visualPolish.holographicEffects.scanlineAnimation??!1)+"","visual-polish-holographic-grid-overlay":(t.visualPolish.holographicEffects.gridOverlay??!1)+"","visual-polish-holographic-data-stream":(t.visualPolish.holographicEffects.dataStream??!1)+"","visual-polish-holographic-pulse-rings":(t.visualPolish.holographicEffects.pulseRings??!1)+""})),rd(r)}();try{const e=hd({configPath:"atomix.config.ts",required:!0});n=e?.prefix}catch(i){}a=e}const r=rd(a),o=t?.prefix??n??"atomix";return od(r,{...t,prefix:o})}function fd(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"function"!=typeof e}function bd(...e){if(0===e.length)return{};if(1===e.length)return e[0];const[t,...a]=e,n={...t};for(const r of a)if(r)for(const e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;const t=n[e],a=r[e];fd(t)&&fd(a)?n[e]=bd(t,a):n[e]=a}return n}function xd(...e){return bd({},...e)}function vd(e,t){return xd(e,t)}function Sd(){return{}}function yd(e,t,a){e[t]=a}function Ed(e,t){const a=t in e;return delete e[t],a}function Ad(e,t){return t in e}function Nd(e,t){return e[t]}function Td(e){return Object.values(e)}function Cd(e){return Object.keys(e)}function _d(e){Object.keys(e).forEach((t=>delete e[t]))}function Ld(e){return Object.keys(e).length}function wd(){return"undefined"!=typeof document}function Id(e,t="atomix-theme"){if(!wd())return;let a=document.getElementById(t);a||(a=document.createElement("style"),a.id=t,a.setAttribute("data-atomix-theme","true"),document.head.appendChild(a)),a.textContent=e}function Rd(e="atomix-theme"){if(!wd())return;const t=document.getElementById(e);t&&t.remove()}function Od(e="atomix-theme"){return!!wd()&&null!==document.getElementById(e)}var kd,jd;"undefined"!=typeof process&&process.env,function(e){e.THEME_NOT_FOUND="THEME_NOT_FOUND",e.THEME_LOAD_FAILED="THEME_LOAD_FAILED",e.THEME_VALIDATION_FAILED="THEME_VALIDATION_FAILED",e.CONFIG_LOAD_FAILED="CONFIG_LOAD_FAILED",e.CONFIG_VALIDATION_FAILED="CONFIG_VALIDATION_FAILED",e.CIRCULAR_DEPENDENCY="CIRCULAR_DEPENDENCY",e.MISSING_DEPENDENCY="MISSING_DEPENDENCY",e.STORAGE_ERROR="STORAGE_ERROR",e.INVALID_THEME_NAME="INVALID_THEME_NAME",e.CSS_INJECTION_FAILED="CSS_INJECTION_FAILED",e.INVALID_COLOR_FORMAT="INVALID_COLOR_FORMAT",e.MISSING_REQUIRED_TOKEN="MISSING_REQUIRED_TOKEN",e.CONTRAST_VIOLATION="CONTRAST_VIOLATION",e.INVALID_TOKEN_TYPE="INVALID_TOKEN_TYPE",e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(kd||(kd={}));class Md extends Error{constructor(e,t=kd.UNKNOWN_ERROR,a){super(e),this.name="ThemeError",this.code=t,this.context=a,this.timestamp=Date.now(),Error.captureStackTrace&&Error.captureStackTrace(this,Md)}toJSON(){return{name:this.name,message:this.message,code:this.code,context:this.context,timestamp:this.timestamp,stack:this.stack}}}!function(e){e[e.ERROR=0]="ERROR",e[e.WARN=1]="WARN",e[e.INFO=2]="INFO",e[e.DEBUG=3]="DEBUG"}(jd||(jd={}));class Dd{constructor(e={}){this.config={level:e.level??("undefined"!=typeof process&&"production"===process.env?.NODE_ENV?jd.WARN:jd.INFO),enableConsole:e.enableConsole??!0,onError:e.onError,onWarn:e.onWarn,onInfo:e.onInfo,onDebug:e.onDebug}}error(e,t,a){if(this.config.level<jd.ERROR)return;const n=t instanceof Md?t:new Md(e,kd.UNKNOWN_ERROR,a);this.config.enableConsole,this.config.onError?.(n,a)}warn(e,t){this.config.level<jd.WARN||(this.config.enableConsole,this.config.onWarn?.(e,t))}info(e,t){this.config.level<jd.INFO||(this.config.enableConsole,this.config.onInfo?.(e,t))}debug(e,t){this.config.level<jd.DEBUG||(this.config.enableConsole,this.config.onDebug?.(e,t))}}let Pd=null;function Bd(){return Pd||(Pd=new Dd),Pd}const zd=()=>"undefined"!=typeof window&&"undefined"!=typeof document,Fd=()=>!zd(),Ud=e=>e.replace(/[<>"']/g,"").replace(/\.\./g,"").replace(/\/+/g,"/").replace(/^\/+|\/+$/g,""),Gd=(e,t="/themes",a=!1,n=null)=>{if(!Hd(e))throw new Md(`Invalid theme name: "${e}". Theme names must be lowercase alphanumeric with hyphens (e.g., "my-theme").`,kd.INVALID_THEME_NAME,{themeName:e,pattern:/^[a-z0-9]+(-[a-z0-9]+)*$/});const r=`${e}${a?".min.css":".css"}`;return n?`${Ud(n)}/${r}`:`${Ud(t)}/${r.replace(/^\//,"")}`},Vd=(e,t)=>{Fd()||(document.body&&document.body.setAttribute(e,t),document.documentElement.setAttribute(e,t))},Hd=e=>!(!e||"string"!=typeof e)&&/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e),$d=()=>({getItem:e=>{if(Fd())return null;try{return localStorage.getItem(e)}catch{return null}},setItem:(e,t)=>{if(!Fd())try{localStorage.setItem(e,t)}catch{}},removeItem:e=>{if(!Fd())try{localStorage.removeItem(e)}catch{}},isAvailable:()=>{if(Fd())return!1;try{const e="__atomix_storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}});var Yd=Object.freeze({__proto__:null,applyThemeAttributes:Vd,buildThemePath:Gd,createLocalStorageAdapter:$d,isBrowser:zd,isServer:Fd,isValidThemeName:Hd,loadThemeCSS:(e,t)=>Fd()?Promise.resolve():new Promise(((a,n)=>{if(document.getElementById(t))return void a();const r=document.createElement("link");r.id=t,r.rel="stylesheet",r.type="text/css",r.href=e,r.setAttribute("data-atomix-theme","true"),r.onload=()=>{a()},r.onerror=()=>{r.remove(),n(new Md(`Failed to load theme CSS from: ${e}. Please check that the file exists and is accessible.`,kd.THEME_LOAD_FAILED,{fullPath:e,linkId:t}))},document.head.appendChild(r)}))});function Kd(e,t={}){const{selector:a=":root",storageKey:n="atomix-theme",enableTransition:r=!0,transitionDuration:o=300}=t,i="system"===e?Qd():e,s=":root"===a?document.documentElement:document.querySelector(a);if(s){if(r){const e=s;e.style.transition=`all ${o}ms ease-in-out`,setTimeout((()=>{e.style.transition=""}),o)}s.classList.remove("atomix-theme-light","atomix-theme-dark"),s.classList.add("atomix-theme-"+i),s.setAttribute("data-theme",i),Jd(i,{storageKey:n}),window.dispatchEvent(new CustomEvent("atomix-theme-change",{detail:{mode:i}}))}}function Wd(e={}){const t="dark"===qd(e.storageKey)?"light":"dark";return Kd(t,e),t}function qd(e="atomix-theme"){return"undefined"==typeof window?"light":localStorage.getItem(e)||"light"}function Qd(){return"undefined"==typeof window?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Xd(e={}){const t=qd(e.storageKey);if(!t||"system"===t){const t=Qd();return Kd(t,e),t}return Kd(t,e),t}function Zd(e){if("undefined"==typeof window)return()=>{};const t=window.matchMedia("(prefers-color-scheme: dark)"),a=t=>{e(t.matches?"dark":"light")};return t.addEventListener?(t.addEventListener("change",a),()=>t.removeEventListener("change",a)):(t.addListener(a),()=>t.removeListener(a))}function Jd(e,t={}){if("undefined"==typeof window)return;const{storageKey:a="atomix-theme",storageType:n="localStorage"}=t;("localStorage"===n?localStorage:sessionStorage).setItem(a,e)}function eu(e={}){if("undefined"==typeof window)return;const{storageKey:t="atomix-theme",storageType:a="localStorage"}=e;("localStorage"===a?localStorage:sessionStorage).removeItem(t)}function tu(...e){return di(e).call(e,((e,t)=>bd(e,t)),{})}function au(e,t){return bd({...e},t)}function nu(e,t){const a={};return t.forEach((t=>{e[t]&&(a[t]=e[t])})),a}function ru(e,t){const a={...e};return t.forEach((e=>{delete a[e]})),a}function ou(e){if(3===(e=e.replace(/^#/,"")).length&&(e=e.split("").map((e=>e+e)).join("")),6!==e.length)return null;const t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:255&t}}function iu(e,t,a){return"#"+[e,t,a].map((e=>{const t=e.toString(16);return 1===t.length?"0"+t:t})).join("")}function su(e){const t=ou(e);if(!t)return 0;const[a,n,r]=[t.r,t.g,t.b].map((e=>(e/=255)>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92));return.2126*(a??0)+.7152*(n??0)+.0722*(r??0)}function lu(e,t){const a=su(e),n=su(t);return(Math.max(a,n)+.05)/(Math.min(a,n)+.05)}function cu(e,t,a="small"){return lu(e,t)>=("large"===a?3:4.5)}function du(e,t=3){return t>lu(e,"#FFFFFF")?"#000000":"#FFFFFF"}function uu(e,t=0){const a=ou(e);if(!a)return e;const n=Math.max(0,Math.min(1,t)),r=Math.round(a.r+(255-a.r)*n),o=Math.round(a.g+(255-a.g)*n),i=Math.round(a.b+(255-a.b)*n);return iu(Math.min(255,r),Math.min(255,o),Math.min(255,i))}function mu(e,t=0){const a=ou(e);if(!a)return e;const n=Math.max(0,Math.min(1,t)),r=Math.round(a.r*(1-n)),o=Math.round(a.g*(1-n)),i=Math.round(a.b*(1-n));return iu(Math.max(0,r),Math.max(0,o),Math.max(0,i))}function hu(e,t){const a=ou(e);if(!a)return e;const n=Math.max(0,Math.min(1,t));return`rgba(${a.r}, ${a.g}, ${a.b}, ${n})`}function pu(e,t=.15){return su(e)>.5?mu(e,t):uu(e,t)}function gu(e=4){return(...t)=>0===t.length?"0px":"function"==typeof e?e(...t):t.map((t=>{if("number"==typeof e)return t*e+"px";if(Array.isArray(e)){const a=e[t];return"number"==typeof a?a+"px":t+"px"}return t+"px"})).join(" ")}function fu(e,t,a){const n={};if(!ou(e))return n;for(let r=1;10>=r;r++){let o;o=6>r?uu(e,(6-r)/5*.8):6===r?e:mu(e,(r-6)/4*.6),n[`${t}-${a}-${r}`]=o}return n}function bu(e,t={}){const{selector:a=":root",inject:n=!1,styleId:r="atomix-theme-variables",prefix:o="atomix"}=t,i={};if(Object.assign(i,function(e,t){const a={};if(["primary","secondary","error","warning","info","success","light","dark"].forEach((n=>{const r=e[n];if(r&&"object"==typeof r){a[`${t}-${n}`]=r.main;const e=ou(r.main);if(e&&(a[`${t}-${n}-rgb`]=`${e.r}, ${e.g}, ${e.b}`),"light"!==n&&"dark"!==n){const e=fu(r.main,t,n);Object.assign(a,e)}else a[`${t}-${n}-main`]=r.main,r.light&&(a[`${t}-${n}-light`]=r.light),r.dark&&(a[`${t}-${n}-dark`]=r.dark);r.dark&&(a[`${t}-${n}-hover`]=r.dark),a[`${t}-${n}-text-emphasis`]=pu(r.main,.15),a[`${t}-${n}-bg-subtle`]=hu(r.main,.1),a[`${t}-${n}-border-subtle`]=hu(r.main,.2)}})),e.text?.primary){const n=fu(e.text.primary,t,"gray");Object.assign(a,n)}if(e.error&&"object"==typeof e.error&&e.error.main){const n=fu(e.error.main,t,"red");Object.assign(a,n)}if(e.success&&"object"==typeof e.success&&e.success.main){const n=fu(e.success.main,t,"green");Object.assign(a,n)}if(e.info&&"object"==typeof e.info&&e.info.main){const n=fu(e.info.main,t,"blue");Object.assign(a,n)}if(e.warning&&"object"==typeof e.warning&&e.warning.main){const n=fu(e.warning.main,t,"yellow");Object.assign(a,n)}if(e.background&&(a[t+"-body-bg"]=e.background.default,e.background.default&&(a[t+"-primary-bg-subtle"]=e.background.default),e.background.paper&&(a[t+"-secondary-bg-subtle"]=e.background.paper,a[t+"-tertiary-bg-subtle"]=e.background.paper),e.background.subtle&&(a[t+"-invert-bg-subtle"]=e.background.subtle),e.primary&&(a[t+"-brand-bg-subtle"]=hu(e.primary.main,.1))),e.text&&(a[t+"-body-color"]=e.text.primary,e.text.primary&&(a[t+"-primary-text-emphasis"]=e.text.primary),e.text.secondary&&(a[t+"-secondary-text-emphasis"]=e.text.secondary,a[t+"-tertiary-text-emphasis"]=e.text.secondary),e.text.disabled&&(a[t+"-disabled-text-emphasis"]=e.text.disabled),e.text.primary&&(a[t+"-invert-text-emphasis"]=e.text.primary)),e.primary&&(a[t+"-brand-text-emphasis"]=e.primary.main,a[t+"-brand-border-subtle"]=hu(e.primary.main,.2)),e.light&&"object"==typeof e.light&&(a[t+"-light-border-subtle"]=hu(e.light.main,.2)),e.dark&&"object"==typeof e.dark&&(a[t+"-dark-border-subtle"]=hu(e.dark.main,.2)),e.text&&(a[t+"-heading-color"]=e.text.primary),e.primary){a[t+"-link-color"]=e.primary.main;const n=ou(e.primary.main);n&&(a[t+"-link-color-rgb"]=`${n.r}, ${n.g}, ${n.b}`),a[t+"-link-hover-color"]=e.primary.dark||mu(e.primary.main,.1);const r=ou(e.primary.dark||mu(e.primary.main,.1));r&&(a[t+"-link-hover-color-rgb"]=`${r.r}, ${r.g}, ${r.b}`),a[t+"-link-decoration"]="none"}if(e.text&&(a[t+"-border-color"]=hu(e.text.primary,.1),a[t+"-border-color-translucent"]=hu(e.text.primary,.15)),e.primary&&(a[t+"-focus-border-color"]=e.primary.main),e.success&&(a[t+"-form-valid-color"]=e.success.main,a[t+"-form-valid-border-color"]=hu(e.success.main,.3)),e.error&&(a[t+"-form-invalid-color"]=e.error.main,a[t+"-form-invalid-border-color"]=hu(e.error.main,.3)),e.warning?a[t+"-highlight-bg"]=hu(e.warning.main,.2):a[t+"-highlight-bg"]="rgba(255, 235, 59, 0.2)",e.text&&(a[t+"-code-color"]=e.text.secondary),["primary","secondary","error","warning","info","success","light","dark"].forEach((n=>{const r=e[n];if(r&&"object"==typeof r){const e=uu(r.main,.6),o=uu(r.main,.3),i=r.main;a[`${t}-${n}-gradient`]=`linear-gradient(135deg, ${e}, ${o}, ${i})`}})),e.text?.primary){const n=uu(e.text.primary,.8),r=uu(e.text.primary,.6),o=uu(e.text.primary,.4);a[t+"-gradient"]=`linear-gradient(135deg, ${n}, ${r}, ${o})`}return a}(e.palette,o)),Object.assign(i,function(e,t){const a={};a[t+"-body-font-family"]=e.fontFamily,a[t+"-font-sans-serif"]=e.fontFamily,a[t+"-font-monospace"]='SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace';const n=e.fontSize||16;a[t+"-root-font-size"]=n+"px";const r=e.fontSize;a[t+"-body-font-size"]=r+"px",a[t+"-body-font-weight"]=e.fontWeightRegular+"",a[t+"-font-weight-light"]=(e.fontWeightLight??300)+"",a[t+"-font-weight-normal"]=(e.fontWeightRegular??400)+"",a[t+"-font-weight-medium"]=(e.fontWeightMedium??500)+"",a[t+"-font-weight-semibold"]=(e.fontWeightSemiBold??600)+"",a[t+"-font-weight-bold"]=(e.fontWeightBold??700)+"","fontWeightHeavy"in e&&(a[t+"-font-weight-heavy"]=(e.fontWeightHeavy||800)+""),"fontWeightBlack"in e&&(a[t+"-font-weight-black"]=(e.fontWeightBlack||900)+"");const o="number"==typeof e.body1?.lineHeight?e.body1.lineHeight:parseFloat((e.body1?.lineHeight||1.2)+"");a[t+"-body-line-height"]=o+"",a[t+"-line-height-base"]=o+"",a[t+"-line-height-sm"]="1.43",a[t+"-line-height-lg"]="1.56";const i=.75*r,s=.875*r,l=1*r,c=1.125*r,d=1.5*r,u=2*r;if(a[t+"-font-size-xs"]=i+"px",a[t+"-font-size-sm"]=s+"px",a[t+"-font-size-md"]=l+"px",a[t+"-font-size-lg"]=c+"px",a[t+"-font-size-xl"]=d+"px",a[t+"-font-size-2xl"]=u+"px","display1"in e){const n=e.display1;a[t+"-display-1"]="string"==typeof n?n:n+"px"}return["h1","h2","h3","h4","h5","h6"].forEach((n=>{const r=e[n];r?.letterSpacing&&(a[`${t}-letter-spacing-${n}`]=r.letterSpacing+"")})),a}(e.typography,o)),Object.assign(i,function(e,t){const a={};return e.md&&(a[t+"-box-shadow"]=e.md),e.xs&&(a[t+"-box-shadow-xs"]=e.xs),e.sm&&(a[t+"-box-shadow-sm"]=e.sm),e.lg&&(a[t+"-box-shadow-lg"]=e.lg),e.xl&&(a[t+"-box-shadow-xl"]=e.xl),e.inset?a[t+"-box-shadow-inset"]=e.inset:e.sm&&(a[t+"-box-shadow-inset"]=e.sm.replace(/^0\s/,"inset ")),a}(e.shadows,o)),Object.assign(i,function(e,t){const a={},n=e.duration.shortest||150,r=e.duration.standard||300,o=e.duration.complex||500,i=e.easing.easeInOut||"cubic-bezier(0.23, 1, 0.32, 1)";return a[t+"-transition-duration-fast"]=n/1e3+"s",a[t+"-transition-duration-base"]=r/1e3+"s",a[t+"-transition-duration-slow"]=o/1e3+"s",a[t+"-transition-duration-slower"]="0.7s",a[t+"-easing-base"]=i,a[t+"-easing-ease-in-out"]=e.easing.easeInOut||"cubic-bezier(0.4, 0, 0.2, 1)",a[t+"-easing-ease-out"]=e.easing.easeOut||"cubic-bezier(0, 0, 0.2, 1)",a[t+"-easing-ease-in"]=e.easing.easeIn||"cubic-bezier(0.4, 0, 1, 1)",a[t+"-easing-ease-linear"]="linear",a[t+"-transition-fast"]=`all ${n/1e3}s ${i}`,a[t+"-transition-base"]=`all ${r/1e3}s ${i}`,a[t+"-transition-slow"]=`all ${o/1e3}s ${i}`,a}(e.transitions,o)),Object.assign(i,function(e,t){const a={};return a[t+"-z-n1"]="-1",a[t+"-z-0"]="0",a[t+"-z-1"]="1",a[t+"-z-2"]="2",a[t+"-z-3"]="3",a[t+"-z-4"]="4",a[t+"-z-5"]="5",e.mobileStepper&&(a[t+"-z-dropdown"]=e.mobileStepper+""),e.appBar&&(a[t+"-z-sticky"]=e.appBar+""),a[t+"-z-fixed"]="1030",e.modal&&(a[t+"-z-modal"]=e.modal+""),e.speedDial&&(a[t+"-z-popover"]=e.speedDial+""),e.tooltip&&(a[t+"-z-tooltip"]=e.tooltip+""),e.drawer&&(a[t+"-z-drawer"]=e.drawer+""),e.snackbar&&(a[t+"-z-snackbar"]=e.snackbar+""),a}(e.zIndex,o)),Object.assign(i,function(e,t){const a={};return Object.entries(e.values).forEach((([n,r])=>{a[`${t}-breakpoint-${n}`]=`${r}${e.unit}`})),a}(e.breakpoints,o)),Object.assign(i,function(e,t){const a={};return Object.entries({0:0,1:1,"px-6":1.5,2:2,"px-10":2.5,3:3,"px-14":3.5,4:4,5:5,"px-22":5.5,6:6,7:7,"px-30":7.5,8:8,9:9,10:10,11:11,12:12,14:14,16:16,20:20,24:24,28:28,32:32,36:36,40:40,44:44,48:48,52:52,56:56,60:60,64:64,72:72,80:80,90:90,200:200}).forEach((([n,r])=>{const o=e(r),i=o.match(/([\d.]+)px/);if(i&&i[1]){const e=parseFloat(i[1])/16;a[`${t}-spacing-${n}`]=e+"rem"}else a[`${t}-spacing-${n}`]=o})),a}(e.spacing,o)),Object.assign(i,function(e,t){const a={};return a[t+"-border-width"]="1px",a[t+"-border-style"]="solid",!a[t+"-border-color"]&&e.text&&(a[t+"-border-color"]=hu(e.text.primary,.1)),a}(e.palette,o)),Object.assign(i,function(e,t){const a={},n=(e,t)=>void 0===e?t:"number"==typeof e?e+"px":e+"";return a[t+"-border-radius"]=n(e.base,"0.5rem"),a[t+"-border-radius-sm"]=n(e.sm,"0.25rem"),a[t+"-border-radius-lg"]=n(e.lg,"0.625rem"),a[t+"-border-radius-xl"]=n(e.xl,"0.75rem"),a[t+"-border-radius-xxl"]=n(e.xxl,"1rem"),a[t+"-border-radius-3xl"]=n(e["3xl"],"1.5rem"),a[t+"-border-radius-4xl"]=n(e["4xl"],"2rem"),a[t+"-border-radius-pill"]=n(e.pill,"50rem"),a}(e.borderRadius,o)),Object.assign(i,function(e,t){const a={};return a[t+"-focus-ring-width"]="3px",a[t+"-focus-ring-offset"]="2px",a[t+"-focus-ring-opacity"]="0.25",a}(e.palette,o)),e.custom&&Object.keys(e.custom).length>0){const t=function(e,t="",a={}){const n=[{obj:e,prefix:t}];for(;n.length>0;){const{obj:e,prefix:t}=n.pop();for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const o=e[r],i=t?`${t}-${r}`:r;if(o&&"object"==typeof o&&!Array.isArray(o)){if("function"==typeof o)continue;n.push({obj:o,prefix:i})}else"string"!=typeof o&&"number"!=typeof o||(a[i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()]=o+"")}}return a}(e.custom,o+"-custom");Object.assign(i,t)}const s=`${a} {\n${Object.entries(i).map((([e,t])=>` --${e}: ${t};`)).join("\n")}\n}`;return n&&zd()&&function(e,t="atomix-theme-variables"){if(!zd())return;let a=document.getElementById(t);a||(a=document.createElement("style"),a.id=t,a.setAttribute("data-atomix-theme-vars","true"),document.head.appendChild(a)),a.textContent=e}(s,r),s}function xu(e,t,a){let n=e;return t&&(n+="__"+t),a&&Object.entries(a).forEach((([e,t])=>{t&&(n+="--"+e,"string"==typeof t&&t!==e&&(n+="-"+t))})),n}function vu(e,t={}){const{prefix:a="atomix",component:n,variant:r,state:o}=t,i=[a];return n&&i.push(n),r&&i.push(r),o&&i.push(o),i.push(e),"--"+i.join("-")}function Su(e){const t={};for(const[a,n]of Object.entries(e))t[a]="object"==typeof n&&null!==n?Su(n):n;return t}function yu(e){return e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))}function Eu(e,t="atomix"){return`--${t}-${e.split(".").map((e=>yu(e))).join("-")}`}function Au(e,t,a,n){const r=["atomix",e];return a&&r.push(a),n&&r.push(n),r.push(t),`var(${"--"+r.join("-")}, var(${"--atomix-"+t}, initial))`}function Nu(e,t,a,n){const r={};if(!t)return r;const o=["atomix",e];a&&o.push(a),n&&o.push(n);const i=o.join("-");return t.primary&&(r[`--${i}-color`]=t.primary),t["primary-9"]&&(r[`--${i}-color-hover`]=t["primary-9"]),t["body-color"]&&(r[`--${i}-color-disabled`]=t["body-color"]),t["body-font-family"]&&(r[`--${i}-font-family`]=t["body-font-family"]),t["body-font-size"]&&(r[`--${i}-font-size`]=t["body-font-size"]),t["spacing-1"]&&(r[`--${i}-spacing-sm`]=t["spacing-1"]),t["spacing-2"]&&(r[`--${i}-spacing-md`]=t["spacing-2"]),t["spacing-4"]&&(r[`--${i}-spacing-lg`]=t["spacing-4"]),r}function Tu(e,t={},a,n,r){return r?{...Nu(e,r,a,n),...t}:t}function Cu(e,t,a,n){return n=>Au(e,n,t,a)}const _u=a.createContext(null);_u.displayName="ThemeContext";const Lu=Bd(),wu={hex:/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/,rgb:/^rgb\(\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)\s*(?:,\s*([01]?\.?\d+))?\s*\)$/,rgba:/^rgba\(\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)\s*,\s*([01]?\.?\d+)\s*\)$/,hsl:/^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,hsla:/^hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([01]?\.?\d+)\s*\)$/},Iu=["primary","secondary","success","info","warning","error","light","dark"],Ru=["primary-text-emphasis","secondary-text-emphasis","tertiary-text-emphasis","disabled-text-emphasis"],Ou=[{text:"primary-text-emphasis",background:"primary-bg-subtle",name:"Primary text on subtle background"},{text:"secondary-text-emphasis",background:"secondary-bg-subtle",name:"Secondary text on subtle background"},{text:"error-text-emphasis",background:"error-bg-subtle",name:"Error text on subtle background"},{text:"success-text-emphasis",background:"success-bg-subtle",name:"Success text on subtle background"}];function ku(e){const t=e.match(wu.rgb)||e.match(wu.rgba);if(!t)return null;const a=parseInt(t[1]??"0",10),n=parseInt(t[2]??"0",10),r=parseInt(t[3]??"0",10);return 0>a||a>255||0>n||n>255||0>r||r>255?null:{r:a,g:n,b:r}}function ju(e){const t=e.match(wu.hsl)||e.match(wu.hsla);if(!t)return null;let a=parseInt(t[1]??"0",10)/360,n=parseInt(t[2]??"0",10)/100,r=parseInt(t[3]??"0",10)/100;if(0>a||a>1||0>n||n>1||0>r||r>1)return null;const o=(e,t,a)=>(0>a&&(a+=1),a>1&&(a-=1),1/6>a?e+6*(t-e)*a:.5>a?t:2/3>a?e+(t-e)*(2/3-a)*6:e);let i,s,l;if(0===n)i=s=l=r;else{const e=.5>r?r*(1+n):r+n-r*n,t=2*r-e;i=o(t,e,a+1/3),s=o(t,e,a),l=o(t,e,a-1/3)}return{r:Math.round(255*i),g:Math.round(255*s),b:Math.round(255*l)}}function Mu(e){return wu.hex.test(e)?function(e){const t=wu.hex.exec(e);if(!t||!t[1])return null;const a=t[1];let n,r,o;switch(a.length){case 3:case 4:n=parseInt((a[0]??"0")+(a[0]??"0"),16),r=parseInt((a[1]??"0")+(a[1]??"0"),16),o=parseInt((a[2]??"0")+(a[2]??"0"),16);break;case 6:case 8:n=parseInt(a.slice(0,2),16),r=parseInt(a.slice(2,4),16),o=parseInt(a.slice(4,6),16);break;default:return null}return{r:n,g:r,b:o}}(e):e.startsWith("rgb")?ku(e):e.startsWith("hsl")?ju(e):null}function Du(e,t,a){const n=e=>(e/=255)>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92;return.2126*n(e)+.7152*n(t)+.0722*n(a)}function Pu(e,t,a=!1){const n=function(e,t){const a=Mu(e),n=Mu(t);if(!a||!n)return null;const r=Du(a.r,a.g,a.b),o=Du(n.r,n.g,n.b);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)}(e,t);if(null===n)return{valid:!1,ratio:0,requiredRatio:a?3:4.5};const r=a?3:4.5;return{valid:n>=r,ratio:n,requiredRatio:r}}function Bu(e,t={}){const a=[];t.skipRequiredTokens||a.push(function(e){const t=[],a=[];for(const n of Iu)n in e||t.push(`Required color token '${n}' is missing`);for(const n of Ru)n in e||t.push(`Required text emphasis token '${n}' is missing`);for(const n of Iu){const t=n+"-rgb";t in e||a.push(`RGB version of '${n}' token '${t}' is missing`)}return{valid:0===t.length,errors:t,warnings:a}}(e)),t.skipColorValidation||a.push(function(e){const t=[],a=new Set(["primary","secondary","success","info","warning","error","light","dark","primary-text-emphasis","secondary-text-emphasis","tertiary-text-emphasis","disabled-text-emphasis","invert-text-emphasis","brand-text-emphasis","error-text-emphasis","success-text-emphasis","warning-text-emphasis","info-text-emphasis","light-text-emphasis","dark-text-emphasis","primary-bg-subtle","secondary-bg-subtle","tertiary-bg-subtle","invert-bg-subtle","brand-bg-subtle","error-bg-subtle","success-bg-subtle","warning-bg-subtle","info-bg-subtle","light-bg-subtle","dark-bg-subtle","primary-border-subtle","secondary-border-subtle","success-border-subtle","error-border-subtle","warning-border-subtle","info-border-subtle","brand-border-subtle","light-border-subtle","dark-border-subtle","primary-hover","secondary-hover","light-hover","dark-hover","error-hover","success-hover","warning-hover","info-hover",...Array.from({length:10},((e,t)=>["primary-"+(t+1),"red-"+(t+1),"green-"+(t+1),"blue-"+(t+1),"yellow-"+(t+1)])).flat(),...Array.from({length:10},((e,t)=>"gray-"+(t+1))),"body-color","heading-color","link-color","link-hover-color","highlight-bg","code-color","border-color","border-color-translucent","focus-border-color","form-valid-color","form-valid-border-color","form-invalid-color","form-invalid-border-color"]);for(const r of a){if(!(r in e))continue;const a=e[r];"string"==typeof a?(n=a,wu.hex.test(n)||(wu.rgb.test(n)||wu.rgba.test(n)?null!==ku(n):(wu.hsl.test(n)||wu.hsla.test(n))&&null!==ju(n))||t.push(`Token '${r}' has invalid color format: '${a}'`)):t.push(`Token '${r}' must be a string, got ${typeof a}`)}var n;return{valid:0===t.length,errors:t,warnings:[]}}(e)),t.skipAccessibility||a.push(function(e){const t=[],a=[];for(const n of Ou){const r=e[n.text],o=e[n.background];if(!r||!o){a.push(`Cannot validate contrast for ${n.name}: missing tokens`);continue}const i=Pu(r,o);if(!i.valid){const e=3===i.requiredRatio?"large text (AA)":"normal text (AA)";t.push(`${n.name}: contrast ratio ${i.ratio.toFixed(2)}:1 is below required ${i.requiredRatio}:1 for ${e}`)}}return{valid:0===t.length,errors:t,warnings:a}}(e));const n=a.flatMap((e=>e.errors)),r=a.flatMap((e=>e.warnings)),o=0===n.length;return o?r.length>0?Lu.warn(`DesignTokens validation passed with ${r.length} warnings`,{warnings:r}):Lu.debug("DesignTokens validation passed"):Lu.error("DesignTokens validation failed",Error(`Validation failed with ${n.length} errors and ${r.length} warnings`),{errors:n,warnings:r,tokenCount:Object.keys(e).length}),{valid:o,errors:n,warnings:r}}function zu(e){const t={...nd,...e};return{tokens:t,validation:Bu(t)}}const Fu=Bd(),Uu=({children:e,defaultTheme:n,themes:r={},basePath:o="/themes",cdnPath:i=null,useMinified:s=!1,storageKey:l="atomix-theme",dataAttribute:c="data-theme",enablePersistence:d=!0,onThemeChange:u,onError:m})=>{const h=a.useRef(u),p=a.useRef(m);a.useEffect((()=>{h.current=u,p.current=m}),[u,m]);const g=a.useCallback((e=>{h.current?.(e)}),[]),f=a.useCallback(((e,t)=>{p.current?.(e,t)}),[]),b=a.useMemo((()=>$d()),[]),x=a.useMemo((()=>{if(d&&b.isAvailable()){const t=b.getItem(l);if(t){if(t.trim().startsWith("{"))try{return JSON.parse(t)}catch(e){return Fu.error("Failed to parse stored theme tokens",e),t}return t}}return null!=n?n:"default"}),[n,d,l,b]),[v,S]=a.useState((()=>"string"==typeof x?x:"tokens-theme")),[y,E]=a.useState((()=>{if(x&&"string"!=typeof x){const{tokens:e,validation:t}=zu(x);if(t.valid)return e}if(n&&"string"!=typeof n){const{tokens:e,validation:t}=zu(n);if(t.valid)return e}return null})),[A,N]=a.useState(!1),[T,C]=a.useState(null),_=a.useRef(new Set),L=a.useRef({}),w=a.useRef(null);a.useEffect((()=>{n&&"string"!=typeof n&&y&&!Fd()&&Id(gd(y),"theme-tokens-theme")}),[n,y]),a.useEffect((()=>{Fd()||Vd(v+"",c)}),[v,c]),a.useEffect((()=>{d&&b.isAvailable()&&("tokens-theme"===v?y&&b.setItem(l,JSON.stringify(y)):b.setItem(l,v+""))}),[v,y,d,l,b]),a.useEffect((()=>()=>{w.current&&(w.current.abort(),w.current=null),Object.entries(L.current).forEach((([e,t])=>{})),L.current={}}),[]);const I=a.useCallback((async(e,t)=>{w.current&&w.current.abort();const a=new AbortController;w.current=a,N(!0),C(null);try{let n;if("string"!=typeof e){if(a.signal.aborted)return;const{tokens:n,validation:r}=zu(e);if(!r.valid){const e="Invalid DesignTokens provided: "+r.errors.join(", "),n=Error(e);if(Fu.error("Theme validation failed",n,{errors:r.errors,warnings:r.warnings}),!1!==t?.fallbackOnError){Fu.warn("Falling back to default theme due to validation errors");const{tokens:e}=zu({}),t=gd(e),r="tokens-theme-fallback";if(a.signal.aborted)return;return Rd("theme-"+v),Id(t,"theme-"+r),E(e),S(r),g(e),f(n,r),void N(!1)}throw n}const o=gd(n),i="tokens-theme";if(a.signal.aborted)return;if(Rd("theme-"+v),Id(o,"theme-"+i),a.signal.aborted)return;return E(n),S(i),g(n),void N(!1)}if(n=e,"string"==typeof e&&r[e]){if(L.current[e])try{if(await L.current[e],a.signal.aborted)return;return S(e),E(null),g(e),void N(!1)}catch{}const t=new Promise(((t,n)=>{(async()=>{try{if(a.signal.aborted)return void t();if(!r[e])throw Error("Theme metadata not found for theme: "+e);{const n=Gd(e,o,s,i);if(a.signal.aborted)return void t();const{loadThemeCSS:r}=await Promise.resolve().then((function(){return Yd}));if(await r(n,"theme-"+e),a.signal.aborted)return void t();Rd("theme-"+v),_.current.add(e),S(e),E(null),g(e),t()}}catch(l){if(a.signal.aborted)return void t();const r=l instanceof Error?l:Error(l+"");C(r),f(r,e+""),n(r)}})()}));L.current[e]=t;try{await t}catch{}setTimeout((()=>{L.current[e]===t&&delete L.current[e]}),1e3)}else{if(a.signal.aborted)return;S(n),E(null),g(n)}}catch(n){if(a.signal.aborted)return;const t=n instanceof Error?n:Error(n+"");C(t),f(t,e+"")}finally{a.signal.aborted||N(!1)}}),[r,v,g,f,o,s,i]),R=a.useCallback((e=>_.current.has(e)),[]),O=a.useCallback((async e=>{if(r[e]&&!R(e)){N(!0);try{const t=Gd(e,o,s,i);await fetch(t),_.current.add(e)}catch(t){const a=t instanceof Error?t:Error(t+"");C(a),f(a,e)}finally{N(!1)}}}),[r,R,f,o,s,i]),k=a.useCallback((async(e,t)=>I("string"==typeof e&&t?t:e)),[I]),j=a.useMemo((()=>({})),[]),M=a.useMemo((()=>Object.entries(r).map((([e,t])=>({...t,name:e})))),[r]),D=a.useMemo((()=>({theme:v,activeTokens:y,setTheme:I,updateTheme:k,availableThemes:M,isLoading:A,error:T,isThemeLoaded:R,preloadTheme:O,themeManager:j})),[v,y,I,k,M,A,T,R,O,j]);return t.jsx(_u.Provider,{value:D,children:e})};function Gu(){const e=a.useContext(_u);if(!e)throw Error("useTheme must be used within a ThemeProvider");return{theme:e.theme,activeTokens:e.activeTokens,setTheme:e.setTheme,updateTheme:e.updateTheme,availableThemes:e.availableThemes,isLoading:e.isLoading,error:e.error,isThemeLoaded:e.isThemeLoaded,preloadTheme:e.preloadTheme}}function Vu(){const{theme:e,activeTokens:t}=Gu(),n=a.useCallback(((e,t)=>{if("undefined"==typeof window)return t||"";const a="--atomix-"+e;return getComputedStyle(document.documentElement).getPropertyValue(a).trim()||t||""}),[]);return{theme:e,activeTokens:t,getToken:n,colors:{primary:n("primary","#3b82f6"),secondary:n("secondary","#10b981"),error:n("error","#ef4444"),success:n("success","#22c55e"),warning:n("warning","#eab308"),info:n("info","#3b82f6"),light:n("light","#f9fafb"),dark:n("dark","#111827")},spacing:{1:n("spacing-1","0.25rem"),2:n("spacing-2","0.5rem"),3:n("spacing-3","0.75rem"),4:n("spacing-4","1rem"),5:n("spacing-5","1.25rem"),6:n("spacing-6","1.5rem"),8:n("spacing-8","2rem"),10:n("spacing-10","2.5rem"),12:n("spacing-12","3rem"),16:n("spacing-16","4rem"),20:n("spacing-20","5rem")},borderRadius:{sm:n("border-radius-sm","0.25rem"),md:n("border-radius-md","0.5rem"),lg:n("border-radius-lg","0.75rem"),xl:n("border-radius-xl","1rem"),full:n("border-radius-full","9999px")},typography:{fontFamily:{sans:n("font-sans-serif","Inter, system-ui, sans-serif"),serif:n("font-serif","Georgia, serif"),mono:n("font-monospace","Fira Code, monospace")},fontSize:{xs:n("font-size-xs","0.75rem"),sm:n("font-size-sm","0.875rem"),md:n("font-size-md","1rem"),lg:n("font-size-lg","1.125rem"),xl:n("font-size-xl","1.25rem"),"2xl":n("font-size-2xl","1.5rem"),"3xl":n("font-size-3xl","1.875rem"),"4xl":n("font-size-4xl","2.25rem")},fontWeight:{light:n("font-weight-light","300"),normal:n("font-weight-normal","400"),medium:n("font-weight-medium","500"),semibold:n("font-weight-semibold","600"),bold:n("font-weight-bold","700")}},shadows:{sm:n("box-shadow-sm","0 1px 2px 0 rgba(0, 0, 0, 0.05)"),md:n("box-shadow-md","0 4px 6px -1px rgba(0, 0, 0, 0.1)"),lg:n("box-shadow-lg","0 10px 15px -3px rgba(0, 0, 0, 0.1)"),xl:n("box-shadow-xl","0 20px 25px -5px rgba(0, 0, 0, 0.1)"),inset:n("box-shadow-inset","inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)")},transitions:{fast:n("transition-fast","150ms"),base:n("transition-base","200ms"),slow:n("transition-slow","300ms")}}}const Hu=({error:e,errorInfo:a})=>{const n=e instanceof Md,r=n?e.code:kd.UNKNOWN_ERROR,o=n?e.context:void 0;return t.jsxs("div",{style:{padding:"2rem",margin:"1rem",border:"1px solid #e0e0e0",borderRadius:"8px",backgroundColor:"#fafafa",color:"#333"},role:"alert",children:[t.jsx("h2",{style:{marginTop:0,color:"#d32f2f"},children:"Theme Error"}),t.jsxs("p",{children:[t.jsx("strong",{children:"Error:"})," ",e.message]}),n&&t.jsxs("p",{children:[t.jsx("strong",{children:"Error Code:"})," ",r]}),o&&Object.keys(o).length>0&&t.jsxs("details",{style:{marginTop:"1rem"},children:[t.jsx("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"Error Context"}),t.jsx("pre",{style:{marginTop:"0.5rem",padding:"0.5rem",backgroundColor:"#f5f5f5",borderRadius:"4px",overflow:"auto"},children:JSON.stringify(o,null,2)})]}),("undefined"==typeof process||"development"===process.env?.NODE_ENV)&&a&&t.jsxs("details",{style:{marginTop:"1rem"},children:[t.jsx("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"Stack Trace (Development Only)"}),t.jsx("pre",{style:{marginTop:"0.5rem",padding:"0.5rem",backgroundColor:"#f5f5f5",borderRadius:"4px",overflow:"auto",fontSize:"0.875rem"},children:a.componentStack})]}),t.jsx("button",{onClick:()=>window.location.reload(),style:{marginTop:"1rem",padding:"0.5rem 1rem",backgroundColor:"#1976d2",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"},children:"Reload Page"})]})};class $u extends a.Component{constructor(e){super(e),this.logger=Bd(),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){const a=e instanceof Md?e:new Md(e.message,kd.UNKNOWN_ERROR,{componentStack:t.componentStack});if(this.logger.error("Theme error boundary caught an error",a,{componentStack:t.componentStack,errorBoundary:"ThemeErrorBoundary"}),this.setState({error:e,errorInfo:t}),this.props.onError)try{this.props.onError(e,t)}catch(n){this.logger.error("Error in onError callback",n instanceof Error?n:Error(n+""),{originalError:e.message})}}componentDidUpdate(e){this.props.resetOnPropsChange&&this.state.hasError&&e.children!==this.props.children&&this.setState({hasError:!1,error:null,errorInfo:null})}render(){return this.state.hasError&&this.state.error&&this.state.errorInfo?this.props.fallback?this.props.fallback(this.state.error,this.state.errorInfo):t.jsx(Hu,{error:this.state.error,errorInfo:this.state.errorInfo}):this.props.children}}function Yu(e={}){const{initialMode:t="system",syncWithSystem:n=!1,storageKey:r="atomix-theme",enableTransition:o=!0,transitionDuration:i=300}=e,[s,l]=a.useState((()=>{if("undefined"==typeof window)return t;const e=qd(r);return e&&"system"!==e?e:"system"===t?Qd():t}));return a.useEffect((()=>{"undefined"!=typeof window&&(Xd({storageKey:r,enableTransition:o,transitionDuration:i}),l(qd(r)))}),[r,o,i]),a.useEffect((()=>{if(n)return Zd((e=>{l(e),Kd(e,{storageKey:r,enableTransition:o,transitionDuration:i})}))}),[n,r,o,i]),{mode:s,isDark:"dark"===s,isLight:"light"===s,toggle:a.useCallback((()=>{const e=Wd({storageKey:r,enableTransition:o,transitionDuration:i});return l(e),e}),[r,o,i]),setMode:a.useCallback((e=>{Kd(e,{storageKey:r,enableTransition:o,transitionDuration:i}),l(e)}),[r,o,i]),resetToSystem:a.useCallback((()=>{const e=Qd();Kd(e,{storageKey:r,enableTransition:o,transitionDuration:i}),l(e)}),[r,o,i]),clearPreference:a.useCallback((()=>{"undefined"!=typeof window&&localStorage.removeItem(r)}),[r])}}const Ku=({className:e="",showLabel:a=!1,lightLabel:n="Light",darkLabel:r="Dark",iconSize:o=20,variant:i="icon",render:s,ariaLabel:l="Toggle theme",...c})=>{const{mode:d,isDark:u,toggle:m}=Yu(c);return s?t.jsx(t.Fragment,{children:s({isDark:u,toggle:m,mode:d})}):"icon"===i?t.jsx("button",{onClick:m,className:"theme-toggle theme-toggle-icon "+e,"aria-label":l,title:u?r:n,style:{background:"none",border:"none",cursor:"pointer",padding:"8px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease-in-out"},children:u?t.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("circle",{cx:"12",cy:"12",r:"5"}),t.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),t.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),t.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),t.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),t.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),t.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),t.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),t.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]}):t.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})}):"button"===i?t.jsxs("button",{onClick:m,className:"theme-toggle theme-toggle-button "+e,"aria-label":l,style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid currentColor",background:"transparent",color:"inherit",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"all 0.3s ease-in-out"},children:[u?t.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("circle",{cx:"12",cy:"12",r:"5"}),t.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),t.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),t.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),t.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),t.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),t.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),t.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),t.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]}):t.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}),a&&t.jsx("span",{children:u?r:n})]}):"switch"===i?t.jsx("div",{className:"theme-toggle theme-toggle-switch "+e,role:"button",tabIndex:0,onClick:m,onKeyDown:e=>"Enter"===e.key&&m(),"aria-label":l,style:{position:"relative",width:"56px",height:"28px",borderRadius:"14px",background:u?"#4b5563":"#d1d5db",cursor:"pointer",transition:"background 0.3s ease-in-out",display:"flex",alignItems:"center",padding:"2px"},children:t.jsx("div",{style:{position:"absolute",left:u?"auto":"2px",right:u?"2px":"auto",width:"24px",height:"24px",borderRadius:"50%",background:"white",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",transition:"all 0.3s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center"},children:u?t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#4b5563",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#f59e0b",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("circle",{cx:"12",cy:"12",r:"5"}),t.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),t.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),t.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),t.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),t.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),t.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),t.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),t.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})}):null};Ku.displayName="ThemeToggle";class Wu{constructor(e=document.documentElement){this.styleId="atomix-theme-applicator",this.root=e}applyTheme(e){this.clearAppliedVars(),Id(gd(e,{selector:":root",prefix:"atomix"}),this.styleId)}applyGlobalCSSVars(e){Object.entries(e).forEach((([e,t])=>{this.root.style.setProperty(e,t+"")}))}clearAppliedVars(){Rd(this.styleId)}removeTheme(){this.clearAppliedVars(),Rd(this.styleId)}updateCSSVars(e){this.applyGlobalCSSVars(e)}}let qu=null;function Qu(){return qu||(qu=new Wu),qu}function Xu(e){Qu().applyTheme(e)}const Zu={mobile:{width:375,height:667,label:"Mobile (375px)"},tablet:{width:768,height:1024,label:"Tablet (768px)"},desktop:{width:1280,height:720,label:"Desktop (1280px)"},custom:{width:1280,height:720,label:"Custom"}},Ju=({theme:e,showDetails:n=!0,showPalette:r=!0,showTypography:o=!0,showSpacing:i=!1,children:s,className:l,style:c})=>{const[d,u]=a.useState(""),[m,h]=a.useState(!1),[p,g]=a.useState("desktop"),[f,b]=a.useState(1280),[x,v]=a.useState(720),[S,y]=a.useState({}),E=a.useMemo((()=>"custom"===p?{width:f,height:x}:Zu[p]),[p,f,x]),A=a.useMemo((()=>m?{...e,palette:{...e.palette,background:{default:"#121212",subtle:"#1e1e1e"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.8)",disabled:"rgba(255, 255, 255, 0.5)"}}}:e),[e,m]);a.useEffect((()=>{const e=bu(A,{selector:":root",prefix:"atomix-preview"});u(e)}),[A]);const N=e=>{(e=>{y((t=>({...t,[e]:!t[e]})))})(e),setTimeout((()=>{y((t=>{const a={...t};return delete a[e],a}))}),200)};return t.jsxs("div",{className:"atomix-theme-preview "+(l||""),style:c,children:[t.jsxs("div",{className:"preview-controls",children:[t.jsxs("div",{className:"control-group",children:[t.jsx("label",{children:"Viewport:"}),t.jsxs("select",{value:p,onChange:e=>g(e.target.value),children:[t.jsx("option",{value:"mobile",children:"Mobile (375px)"}),t.jsx("option",{value:"tablet",children:"Tablet (768px)"}),t.jsx("option",{value:"desktop",children:"Desktop (1280px)"}),t.jsx("option",{value:"custom",children:"Custom"})]})]}),"custom"===p&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"control-group",children:[t.jsx("label",{children:"Width:"}),t.jsx("input",{type:"number",value:f,onChange:e=>b(parseInt(e.target.value)||1280),min:"320",max:"3840"})]}),t.jsxs("div",{className:"control-group",children:[t.jsx("label",{children:"Height:"}),t.jsx("input",{type:"number",value:x,onChange:e=>v(parseInt(e.target.value)||720),min:"240",max:"2160"})]})]}),t.jsx("div",{className:"control-group",children:t.jsxs("label",{children:[t.jsx("input",{type:"checkbox",checked:m,onChange:e=>h(e.target.checked)}),"Dark Mode"]})})]}),t.jsxs("div",{className:"viewport-wrapper",style:{width:E.width+"px",height:E.height+"px",maxWidth:"100%"},children:[t.jsx("style",{children:d}),n&&t.jsxs("div",{className:"theme-details",children:[t.jsx("h2",{children:A.name}),A.description&&t.jsx("p",{children:A.description}),A.author&&t.jsxs("p",{children:[t.jsx("strong",{children:"Author:"})," ",A.author]}),A.version&&t.jsxs("p",{children:[t.jsx("strong",{children:"Version:"})," ",A.version]}),A.status&&t.jsxs("p",{children:[t.jsx("strong",{children:"Status:"})," ",A.status]}),A.tags&&A.tags.length>0&&t.jsxs("p",{children:[t.jsx("strong",{children:"Tags:"})," ",A.tags.join(", ")]})]}),r&&t.jsxs("div",{className:"theme-palette",children:[t.jsx("h3",{children:"Color Palette"}),t.jsx("div",{className:"color-grid",children:["primary","secondary","error","warning","info","success"].map((e=>{const a=A.palette[e];return a&&"object"==typeof a&&"main"in a?t.jsxs("div",{className:"color-item",children:[t.jsx("div",{className:"color-swatch",style:{backgroundColor:a.main}}),t.jsxs("div",{className:"color-info",children:[t.jsx("strong",{children:e}),t.jsx("code",{children:a.main})]})]},e):null}))}),t.jsx("h4",{children:"Background"}),t.jsx("div",{className:"color-grid",children:Object.entries(A.palette.background).map((([e,a])=>t.jsxs("div",{className:"color-item",children:[t.jsx("div",{className:"color-swatch",style:{backgroundColor:a}}),t.jsxs("div",{className:"color-info",children:[t.jsx("strong",{children:e}),t.jsx("code",{children:a})]})]},e)))}),t.jsx("h4",{children:"Text"}),t.jsx("div",{className:"color-grid",children:Object.entries(A.palette.text).map((([e,a])=>t.jsxs("div",{className:"color-item",children:[t.jsx("div",{className:"color-swatch",style:{backgroundColor:a}}),t.jsxs("div",{className:"color-info",children:[t.jsx("strong",{children:e}),t.jsx("code",{children:a})]})]},e)))})]}),o&&t.jsxs("div",{className:"theme-typography",children:[t.jsx("h3",{children:"Typography"}),t.jsxs("div",{className:"typography-info",children:[t.jsxs("p",{children:[t.jsx("strong",{children:"Font Family:"})," ",t.jsx("code",{children:A.typography.fontFamily})]}),t.jsxs("p",{children:[t.jsx("strong",{children:"Base Font Size:"})," ",t.jsxs("code",{children:[A.typography.fontSize,"px"]})]})]}),t.jsxs("div",{className:"typography-samples",children:[t.jsx("h1",{style:{fontSize:A.typography.h1.fontSize,fontWeight:A.typography.h1.fontWeight,lineHeight:A.typography.h1.lineHeight},children:"Heading 1"}),t.jsx("h2",{style:{fontSize:A.typography.h2.fontSize,fontWeight:A.typography.h2.fontWeight,lineHeight:A.typography.h2.lineHeight},children:"Heading 2"}),t.jsx("h3",{style:{fontSize:A.typography.h3.fontSize,fontWeight:A.typography.h3.fontWeight,lineHeight:A.typography.h3.lineHeight},children:"Heading 3"}),t.jsx("p",{style:{fontSize:A.typography.body1.fontSize,fontWeight:A.typography.body1.fontWeight,lineHeight:A.typography.body1.lineHeight},children:"Body 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit."}),t.jsx("p",{style:{fontSize:A.typography.body2.fontSize,fontWeight:A.typography.body2.fontWeight,lineHeight:A.typography.body2.lineHeight},children:"Body 2: Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."})]})]}),i&&t.jsxs("div",{className:"theme-spacing",children:[t.jsx("h3",{children:"Spacing"}),t.jsx("div",{className:"spacing-samples",children:[1,2,3,4,6,8,12].map((e=>t.jsxs("div",{className:"spacing-item",children:[t.jsx("div",{className:"spacing-box",style:{width:A.spacing(e),height:A.spacing(e),backgroundColor:A.palette.primary.main}}),t.jsxs("code",{children:[e," = ",A.spacing(e)]})]},e)))})]}),t.jsxs("div",{className:"theme-components",children:[t.jsx("h3",{children:"Sample Components"}),t.jsxs("div",{className:"component-group",children:[t.jsx("h4",{children:"Buttons"}),t.jsxs("div",{className:"button-group",children:[t.jsx("button",{className:"interactive-button "+(S["btn-primary"]?"active":""),onClick:()=>N("btn-primary"),onMouseEnter:()=>y((e=>({...e,"btn-primary-hover":!0}))),onMouseLeave:()=>y((e=>{const t={...e};return delete t["btn-primary-hover"],t})),style:{backgroundColor:S["btn-primary-hover"]&&A.palette.primary.dark||A.palette.primary.main,color:A.palette.primary.contrastText,border:"none",padding:A.spacing(1,2),borderRadius:A.borderRadius.base,cursor:"pointer",transform:S["btn-primary"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease"},children:"Primary Button"}),t.jsx("button",{className:"interactive-button "+(S["btn-secondary"]?"active":""),onClick:()=>N("btn-secondary"),onMouseEnter:()=>y((e=>({...e,"btn-secondary-hover":!0}))),onMouseLeave:()=>y((e=>{const t={...e};return delete t["btn-secondary-hover"],t})),style:{backgroundColor:S["btn-secondary-hover"]&&A.palette.secondary.dark||A.palette.secondary.main,color:A.palette.secondary.contrastText,border:"none",padding:A.spacing(1,2),borderRadius:A.borderRadius.base,cursor:"pointer",transform:S["btn-secondary"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease"},children:"Secondary Button"}),t.jsx("button",{className:"interactive-button "+(S["btn-outline"]?"active":""),onClick:()=>N("btn-outline"),onMouseEnter:()=>y((e=>({...e,"btn-outline-hover":!0}))),onMouseLeave:()=>y((e=>{const t={...e};return delete t["btn-outline-hover"],t})),onFocus:()=>y((e=>({...e,"btn-outline-focus":!0}))),onBlur:()=>y((e=>{const t={...e};return delete t["btn-outline-focus"],t})),style:{backgroundColor:"transparent",color:A.palette.primary.main,border:"2px solid "+(S["btn-outline-focus"]&&A.palette.primary.dark||A.palette.primary.main),padding:A.spacing(1,2),borderRadius:A.borderRadius.base,cursor:"pointer",transform:S["btn-outline"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease",outline:S["btn-outline-focus"]?"2px solid "+A.palette.primary.main:"none",outlineOffset:"2px"},children:"Outline Button"})]})]}),t.jsxs("div",{className:"component-group",children:[t.jsx("h4",{children:"Card"}),t.jsxs("div",{className:"interactive-card",onMouseEnter:()=>y((e=>({...e,"card-hover":!0}))),onMouseLeave:()=>y((e=>{const t={...e};return delete t["card-hover"],t})),style:{backgroundColor:A.palette.background.subtle,border:"1px solid "+A.palette.text.disabled,borderRadius:A.borderRadius.lg,padding:A.spacing(3),boxShadow:S["card-hover"]?A.shadows.lg:A.shadows.md,maxWidth:"300px",transition:"all 0.2s ease",cursor:"pointer"},children:[t.jsx("h5",{style:{margin:0,marginBottom:A.spacing(1)},children:"Card Title"}),t.jsx("p",{style:{margin:0,color:A.palette.text.secondary,fontSize:A.typography.body2.fontSize},children:"This is a sample card component showing how the theme colors and spacing work together."})]})]})]}),s&&t.jsxs("div",{className:"theme-custom",children:[t.jsx("h3",{children:"Custom Components"}),s]})]}),t.jsx("style",{children:`\n .atomix-theme-preview {\n padding: 24px;\n font-family: ${A.typography.fontFamily};\n color: ${A.palette.text.primary};\n background-color: ${A.palette.background.default};\n }\n\n .preview-controls {\n display: flex;\n gap: 16px;\n align-items: center;\n padding: 16px;\n background: ${A.palette.background.subtle};\n border-radius: ${A.borderRadius.md};\n margin-bottom: 24px;\n flex-wrap: wrap;\n }\n\n .control-group {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .control-group label {\n font-size: 14px;\n color: ${A.palette.text.secondary};\n }\n\n .control-group select,\n .control-group input[type="number"] {\n padding: 6px 12px;\n border: 1px solid ${A.palette.text.disabled};\n border-radius: ${A.borderRadius.base};\n font-size: 14px;\n background: ${A.palette.background.default};\n color: ${A.palette.text.primary};\n }\n\n .control-group input[type="checkbox"] {\n margin-right: 4px;\n }\n\n .viewport-wrapper {\n border: 2px solid ${A.palette.text.disabled};\n border-radius: ${A.borderRadius.lg};\n overflow: auto;\n background: ${A.palette.background.default};\n margin: 0 auto;\n box-shadow: ${A.shadows.lg};\n }\n\n .theme-details {\n margin-bottom: 32px;\n padding: 16px;\n background-color: ${A.palette.background.subtle};\n border-radius: ${A.borderRadius.lg};\n }\n\n .theme-palette,\n .theme-typography,\n .theme-spacing,\n .theme-components {\n margin-bottom: 32px;\n padding: 16px;\n }\n\n .color-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));\n gap: 16px;\n margin-bottom: 16px;\n }\n\n .color-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .color-swatch {\n width: 40px;\n height: 40px;\n border-radius: ${A.borderRadius.base};\n border: 1px solid ${A.palette.text.disabled};\n }\n\n .color-info {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .color-info code {\n font-size: 12px;\n color: ${A.palette.text.secondary};\n }\n\n .typography-samples {\n margin-top: 16px;\n }\n\n .typography-samples > * {\n margin: 8px 0;\n }\n\n .spacing-samples {\n display: flex;\n gap: 16px;\n flex-wrap: wrap;\n margin-top: 16px;\n }\n\n .spacing-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n }\n\n .spacing-box {\n border: 1px solid ${A.palette.text.disabled};\n }\n\n .component-group {\n margin-bottom: 24px;\n }\n\n .button-group {\n display: flex;\n gap: 12px;\n flex-wrap: wrap;\n }\n\n .interactive-button {\n transition: all 0.2s ease;\n }\n\n .interactive-button:focus-visible {\n outline: 2px solid ${A.palette.primary.main};\n outline-offset: 2px;\n }\n\n .interactive-card {\n transition: all 0.2s ease;\n }\n\n h3 {\n color: ${A.palette.text.primary};\n border-bottom: 2px solid ${A.palette.primary.main};\n padding-bottom: 8px;\n }\n\n h4 {\n color: ${A.palette.text.primary};\n margin-top: 24px;\n margin-bottom: 12px;\n }\n `})]})};class em{validate(e,t){const a=[],n=[],r=[],o=this.validatePalette(e.palette,t);a.push(...o.errors),n.push(...o.warnings),r.push(...o.a11yIssues);const i=this.validateTypography(e.typography);a.push(...i.errors),n.push(...i.warnings);const s=this.validateSpacing(e.spacing);a.push(...s.errors),n.push(...s.warnings);const l=this.validateBreakpoints(e.breakpoints);a.push(...l.errors),n.push(...l.warnings);const c=this.validateTransitions(e.transitions);a.push(...c.errors),n.push(...c.warnings);const d=this.validateZIndex(e.zIndex);a.push(...d.errors),n.push(...d.warnings);const u=this.validateBorderRadius(e.borderRadius);a.push(...u.errors),n.push(...u.warnings);const m=this.validateCustom(e.custom);return a.push(...m.errors),n.push(...m.warnings),{valid:0===a.length,errors:a,warnings:n,a11yIssues:r}}validatePalette(e,t){const a=[],n=[],r=[],o=t?.a11y?.contrastTarget||4.5;if(e.primary){const t=this.checkContrast(e.primary.main,e.primary.contrastText||"#000000");if(o>t){const i={type:"contrast",severity:3>t?"error":"warning",message:`Primary color contrast ratio (${t.toFixed(2)}) is below target (${o})`,property:"palette.primary",value:e.primary.main};r.push(i),3>t?a.push(i.message):n.push(i.message)}}if(e.text&&e.background){const t=this.checkContrast(e.background.default,e.text.primary);if(o>t){const i={type:"contrast",severity:3>t?"error":"warning",message:`Text color contrast ratio (${t.toFixed(2)}) is below target (${o})`,property:"palette.text.primary",value:e.text.primary};r.push(i),3>t?a.push(i.message):n.push(i.message)}}const i=["primary","secondary","error","warning","info","success"];for(const s of i){const t=e[s];t&&(this.isValidColor(t.main)||a.push(`Invalid color value for ${s}.main: ${t.main}`))}return{valid:0===a.length,errors:a,warnings:n,a11yIssues:r}}validateTypography(e){const t=[],a=[];return e.fontFamily&&"string"==typeof e.fontFamily||t.push("Typography must have a fontFamily"),e.fontSize&&"number"==typeof e.fontSize&&e.fontSize>0||t.push("Typography must have a valid fontSize"),e.fontSize&&12>e.fontSize&&a.push("Font size is below recommended minimum (12px) for accessibility"),{valid:0===t.length,errors:t,warnings:a,a11yIssues:[]}}validateSpacing(e){const t=[];if("function"!=typeof e)t.push("Spacing must be a function");else try{"string"!=typeof e(1)&&t.push("Spacing function must return a string")}catch(a){t.push("Spacing function error: "+(a instanceof Error?a.message:a+""))}return{valid:0===t.length,errors:t,warnings:[],a11yIssues:[]}}validateBreakpoints(e){const t=[],a=[];if(e.values){const n=["xs","sm","md","lg","xl"];for(const a of n)"number"!=typeof e.values[a]&&t.push(`Breakpoint ${a} must be a number`);const r=[e.values.xs,e.values.sm,e.values.md,e.values.lg,e.values.xl].filter((e=>"number"==typeof e));for(let e=1;e<r.length;e++){const t=r[e],n=r[e-1];if(null!=t&&null!=n&&n>=t){a.push("Breakpoint values should be in ascending order");break}}}else t.push("Breakpoints must have values");return{valid:0===t.length,errors:t,warnings:a,a11yIssues:[]}}checkContrast(e,t){try{return lu(e,t)}catch{return 0}}isValidColor(e){return!!/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e)||!!/^rgba?\(/.test(e)||!!/^hsla?\(/.test(e)}validateTransitions(e){const t=[],a=[],n=[];if(!e)return t.push("Transitions configuration is required"),{valid:!1,errors:t,warnings:a,a11yIssues:n};if(e.duration){const n=["shortest","shorter","short","standard","complex","enteringScreen","leavingScreen"];for(const r of n){const n=e.duration[r];void 0!==n&&("number"!=typeof n||0>n?t.push(`Transition duration ${r} must be a non-negative number`):n>1e4&&a.push(`Transition duration ${r} (${n}ms) exceeds recommended maximum (10000ms)`))}}if(e.easing){const n=["easeInOut","easeOut","easeIn","sharp"],r=/^(linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier\([^)]+\)|steps\([^)]+\))$/i;for(const o of n){const n=e.easing[o];void 0!==n&&("string"!=typeof n?t.push(`Transition easing ${o} must be a string`):r.test(n)||a.push(`Transition easing ${o} may not be a valid CSS easing function: ${n}`))}}return{valid:0===t.length,errors:t,warnings:a,a11yIssues:n}}validateZIndex(e){const t=[],a=[],n=[];if(!e)return t.push("Z-index configuration is required"),{valid:!1,errors:t,warnings:a,a11yIssues:n};const r=Object.entries(e).filter((([,e])=>"number"==typeof e));for(const[o,i]of Object.entries(e))void 0!==i&&("number"!=typeof i?t.push(`Z-index ${o} must be a number, got ${typeof i}`):0>i?t.push(`Z-index ${o} must be non-negative, got ${i}`):i>1e4&&a.push(`Z-index ${o} (${i}) exceeds recommended maximum (10000)`));for(let o=0;o<r.length;o++)for(let e=o+1;e<r.length;e++){const t=r[o],n=r[e];if(!t||!n)continue;const[i,s]=t,[l,c]=n,d=Math.abs(s-c);10>d&&d>0&&a.push(`Z-index values ${i} (${s}) and ${l} (${c}) are very close, potential layering conflicts`)}return{valid:0===t.length,errors:t,warnings:a,a11yIssues:n}}validateBorderRadius(e){const t=[],a=[],n=[];if(!e)return t.push("Border radius configuration is required"),{valid:!1,errors:t,warnings:a,a11yIssues:n};const r=["base","sm","md","lg","xl","xxl","3xl","4xl","pill"];for(const o of r){const n=e[o];if(void 0!==n){let e;if("number"==typeof n)e=n;else{if("string"!=typeof n){t.push(`Border radius ${o} must be a number or string, got ${typeof n}`);continue}{const a=n.match(/^([\d.]+)(px|rem|em|%)?$/);if(!a){t.push(`Border radius ${o} has invalid format: ${n}`);continue}const[,r]=a;if(!r){t.push(`Border radius ${o} has invalid numeric value: ${n}`);continue}e=parseFloat(r)}}0>e?t.push(`Border radius ${o} must be non-negative, got ${e}`):e>1e3&&a.push(`Border radius ${o} (${n}) exceeds recommended maximum (1000px)`)}}return{valid:0===t.length,errors:t,warnings:a,a11yIssues:n}}validateCustom(e){const t=[],a=[],n=[];if(!e||"object"!=typeof e)return{valid:!0,errors:t,warnings:a,a11yIssues:n};const r=new WeakSet;let o=0;const i=(e,t="custom")=>{if(o>10)a.push(`Custom property path ${t} exceeds maximum depth (10), potential circular reference`);else if(null!==e&&"object"==typeof e)if(r.has(e))a.push("Circular reference detected in custom property path: "+t);else{r.add(e),o++;try{for(const[n,r]of Object.entries(e)){const e=`${t}.${n}`;/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(n)||a.push(`Custom property name "${n}" in ${t} does not follow naming conventions (should be valid identifier)`),null===r||"object"!=typeof r||Array.isArray(r)||i(r,e)}}finally{o--,r.delete(e)}}};return i(e),{valid:0===t.length,errors:t,warnings:a,a11yIssues:n}}}const tm=({theme:e,showValidation:n=!0,showCSSVariables:r=!0,showStructure:o=!0,className:i,style:s})=>{const[l,c]=a.useState("overview"),[d,u]=a.useState(new Set(["palette"])),[m,h]=a.useState(""),[p,g]=a.useState(""),[f,b]=a.useState(null),x=a.useRef(void 0);a.useEffect((()=>(x.current&&clearTimeout(x.current),x.current=setTimeout((()=>{g(m)}),300),()=>{x.current&&clearTimeout(x.current)})),[m]);const v=a.useMemo((()=>{if(!n)return null;try{return(new em).validate(e)}catch(t){return{valid:!1,errors:["Failed to validate theme: "+(t instanceof Error?t.message:t+"")],warnings:[],a11yIssues:[]}}}),[e,n]),S=a.useMemo((()=>{if(!r)return"";try{return bu(e,{selector:":root",prefix:"atomix"})}catch(t){return`/* Error generating CSS variables: ${t instanceof Error?t.message:t+""} */`}}),[e,r]),y=a.useMemo((()=>{const t=[],a=(e,n="",r=0)=>{if(10>=r)if(null!=e)if("object"!=typeof e||Array.isArray(e)){const a=n.toLowerCase(),r=p.toLowerCase(),o=!p||sn(a).call(a,r);t.push({path:n,value:e,matches:o})}else Object.entries(e).forEach((([e,o])=>{if("__isJSTheme"===e)return;const i=n?`${n}.${e}`:e,s=i.toLowerCase(),l=p.toLowerCase(),c=!p||sn(s).call(s,l);if("object"!=typeof o||null===o||Array.isArray(o)){const e="string"==typeof o?o.toLowerCase():(o+"").toLowerCase(),a=!p||sn(e).call(e,l);t.push({path:i,value:o,matches:c||a})}else t.push({path:i,value:null,matches:c}),a(o,i,r+1)}));else t.push({path:n,value:e,matches:!1})};return a(e),t}),[e,p]),E=a.useCallback((async e=>{try{await navigator.clipboard.writeText(e),b(e),setTimeout((()=>b(null)),2e3)}catch(t){const a=document.createElement("textarea");a.value=e,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select();try{document.execCommand("copy"),b(e),setTimeout((()=>b(null)),2e3)}catch{}document.body.removeChild(a)}}),[]),A=(e,a)=>a?e.split(RegExp(`(${a})`,"gi")).map(((e,n)=>e.toLowerCase()===a.toLowerCase()?t.jsx("mark",{className:"search-highlight",children:e},n):e)):e,N=(e,a=0,n="")=>null==e?t.jsx("span",{className:"value-null",children:"null"}):"string"==typeof e?t.jsxs("span",{className:"value-string",children:['"',A(e,p),'"']}):"number"==typeof e?t.jsx("span",{className:"value-number",children:e}):"boolean"==typeof e?t.jsx("span",{className:"value-boolean",children:e+""}):"function"==typeof e?t.jsx("span",{className:"value-function",children:"function"}):Array.isArray(e)?t.jsxs("div",{className:"value-array",children:["[",e.map(((r,o)=>t.jsxs("div",{className:"array-item",children:[N(r,a+1,`${n}[${o}]`),o<e.length-1&&","]},o))),"]"]}):"object"==typeof e?t.jsxs("div",{className:"value-object",style:{marginLeft:16*a},children:["{",Object.entries(e).map((([e,r])=>{const o=n?`${n}.${e}`:e;return t.jsxs("div",{className:"object-property",children:[t.jsxs("span",{className:"property-key clickable",onClick:()=>E(o),title:"Click to copy: "+o,children:[A(e,p),":"]})," ",N(r,a+1,o),f===o&&t.jsx("span",{className:"copy-feedback",children:"✓ Copied!"})]},e)})),"}"]}):t.jsx("span",{children:e+""});return t.jsxs("div",{className:"atomix-theme-inspector "+(i||""),style:s,children:[t.jsxs("div",{className:"inspector-tabs",children:[t.jsx("button",{className:"tab "+("overview"===l?"active":""),onClick:()=>c("overview"),children:"Overview"}),n&&t.jsxs("button",{className:"tab "+("validation"===l?"active":""),onClick:()=>c("validation"),children:["Validation",v&&!v.valid&&t.jsx("span",{className:"tab-badge error",children:v.errors.length})]}),r&&t.jsx("button",{className:"tab "+("css"===l?"active":""),onClick:()=>c("css"),children:"CSS Variables"}),o&&t.jsx("button",{className:"tab "+("structure"===l?"active":""),onClick:()=>c("structure"),children:"Structure"})]}),t.jsxs("div",{className:"inspector-content",children:["overview"===l&&t.jsxs("div",{className:"inspector-overview",children:[t.jsxs("div",{className:"theme-metadata",children:[t.jsx("h3",{children:"Theme Information"}),t.jsx("table",{children:t.jsxs("tbody",{children:[t.jsxs("tr",{children:[t.jsx("td",{children:t.jsx("strong",{children:"Name:"})}),t.jsx("td",{children:e.name})]}),e.description&&t.jsxs("tr",{children:[t.jsx("td",{children:t.jsx("strong",{children:"Description:"})}),t.jsx("td",{children:e.description})]}),e.author&&t.jsxs("tr",{children:[t.jsx("td",{children:t.jsx("strong",{children:"Author:"})}),t.jsx("td",{children:e.author})]}),e.version&&t.jsxs("tr",{children:[t.jsx("td",{children:t.jsx("strong",{children:"Version:"})}),t.jsx("td",{children:e.version})]}),e.status&&t.jsxs("tr",{children:[t.jsx("td",{children:t.jsx("strong",{children:"Status:"})}),t.jsx("td",{children:t.jsx("span",{className:"status-badge status-"+e.status,children:e.status})})]}),t.jsxs("tr",{children:[t.jsx("td",{children:t.jsx("strong",{children:"Dark Mode:"})}),t.jsx("td",{children:e.supportsDarkMode?"Yes":"No"})]}),e.tags&&e.tags.length>0&&t.jsxs("tr",{children:[t.jsx("td",{children:t.jsx("strong",{children:"Tags:"})}),t.jsx("td",{children:e.tags.map((e=>t.jsx("span",{className:"tag",children:e},e)))})]})]})})]}),t.jsxs("div",{className:"theme-stats",children:[t.jsx("h3",{children:"Statistics"}),t.jsxs("div",{className:"stats-grid",children:[t.jsxs("div",{className:"stat-item",children:[t.jsx("div",{className:"stat-value",children:Object.keys(e.palette).length}),t.jsx("div",{className:"stat-label",children:"Palette Colors"})]}),t.jsxs("div",{className:"stat-item",children:[t.jsx("div",{className:"stat-value",children:Object.keys(e.typography).length}),t.jsx("div",{className:"stat-label",children:"Typography Variants"})]}),t.jsxs("div",{className:"stat-item",children:[t.jsx("div",{className:"stat-value",children:Object.keys(e.shadows).length}),t.jsx("div",{className:"stat-label",children:"Shadow Variants"})]}),t.jsxs("div",{className:"stat-item",children:[t.jsx("div",{className:"stat-value",children:Object.keys(e.custom).length}),t.jsx("div",{className:"stat-label",children:"Custom Properties"})]})]})]})]}),"validation"===l&&(v?t.jsxs("div",{className:"inspector-validation",children:[t.jsx("div",{className:"validation-status "+(v.valid?"valid":"invalid"),children:v.valid?"✅ Theme is valid":"❌ Theme has issues"}),v.errors.length>0&&t.jsxs("div",{className:"validation-section",children:[t.jsx("h3",{children:"Errors"}),t.jsx("ul",{className:"validation-list error-list",children:v.errors.map(((e,a)=>t.jsx("li",{children:e},a)))})]}),v.warnings.length>0&&t.jsxs("div",{className:"validation-section",children:[t.jsx("h3",{children:"Warnings"}),t.jsx("ul",{className:"validation-list warning-list",children:v.warnings.map(((e,a)=>t.jsx("li",{children:e},a)))})]}),v.a11yIssues.length>0&&t.jsxs("div",{className:"validation-section",children:[t.jsx("h3",{children:"Accessibility Issues"}),t.jsx("ul",{className:"validation-list a11y-list",children:v.a11yIssues.map(((e,a)=>t.jsxs("li",{className:"a11y-"+e.severity,children:[t.jsxs("strong",{children:[e.type,":"]})," ",e.message,e.property&&t.jsx("code",{children:e.property})]},a)))})]})]}):null),"css"===l&&t.jsxs("div",{className:"inspector-css",children:[t.jsxs("div",{className:"css-header",children:[t.jsx("h3",{children:"Generated CSS Variables"}),t.jsx("button",{onClick:()=>navigator.clipboard?.writeText(S),className:"copy-button",children:"Copy to Clipboard"})]}),t.jsx("pre",{className:"css-code",children:t.jsx("code",{children:S})})]}),"structure"===l&&(()=>{const a=p?y.filter((e=>e.matches)):y;return t.jsxs("div",{className:"inspector-structure",children:[t.jsxs("div",{className:"structure-header-controls",children:[t.jsx("h3",{children:"Theme Structure"}),t.jsxs("div",{className:"search-controls",children:[t.jsx("input",{type:"text",placeholder:"Search properties...",value:m,onChange:e=>h(e.target.value),className:"search-input"}),m&&t.jsx("button",{className:"clear-search",onClick:()=>h(""),title:"Clear search",children:"×"}),p&&t.jsxs("span",{className:"search-results-count",children:[a.length," result",1!==a.length?"s":""]})]})]}),p&&0===a.length&&t.jsxs("div",{className:"no-results",children:['No properties found matching "',p,'"']}),t.jsx("div",{className:"structure-tree",children:Object.entries(e).map((([e,a])=>{if("__isJSTheme"===e)return null;const n=d.has(e),r="object"==typeof a&&null!==a&&!Array.isArray(a),o=!p||y.some((t=>t.path.startsWith(e)&&t.matches));return p&&!o?null:t.jsxs("div",{className:"structure-node",children:[t.jsxs("div",{className:"structure-header",onClick:()=>r&&(e=>{const t=new Set(d);t.has(e)?t.delete(e):t.add(e),u(t)})(e),children:[r&&t.jsx("span",{className:"expand-icon "+(n?"expanded":""),children:"▶"}),t.jsx("span",{className:"property-name clickable",onClick:t=>{t.stopPropagation(),E(e)},title:"Click to copy: "+e,children:A(e,p)}),f===e&&t.jsx("span",{className:"copy-feedback",children:"✓ Copied!"}),t.jsx("span",{className:"property-type",children:Array.isArray(a)?"array":typeof a})]}),r&&n&&t.jsx("div",{className:"structure-children",children:N(a,0,e)}),!r&&t.jsx("div",{className:"structure-value",children:N(a,0,e)})]},e)}))})]})})()]}),t.jsx("style",{children:"\n .atomix-theme-inspector {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .inspector-tabs {\n display: flex;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n border-radius: 8px 8px 0 0;\n }\n\n .tab {\n padding: 12px 16px;\n border: none;\n background: none;\n cursor: pointer;\n border-bottom: 2px solid transparent;\n position: relative;\n }\n\n .tab:hover {\n background: #e0e0e0;\n }\n\n .tab.active {\n background: white;\n border-bottom-color: #2196f3;\n }\n\n .tab-badge {\n position: absolute;\n top: 4px;\n right: 4px;\n background: #f44336;\n color: white;\n border-radius: 10px;\n padding: 2px 6px;\n font-size: 10px;\n min-width: 16px;\n text-align: center;\n }\n\n .inspector-content {\n padding: 16px;\n max-height: 600px;\n overflow-y: auto;\n }\n\n .theme-metadata table {\n width: 100%;\n border-collapse: collapse;\n }\n\n .theme-metadata td {\n padding: 8px;\n border-bottom: 1px solid #f0f0f0;\n vertical-align: top;\n }\n\n .status-badge {\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 12px;\n text-transform: uppercase;\n }\n\n .status-stable { background: #e8f5e8; color: #2e7d32; }\n .status-beta { background: #fff3e0; color: #f57c00; }\n .status-experimental { background: #fce4ec; color: #c2185b; }\n .status-deprecated { background: #ffebee; color: #d32f2f; }\n\n .tag {\n display: inline-block;\n background: #e3f2fd;\n color: #1976d2;\n padding: 2px 6px;\n border-radius: 4px;\n font-size: 12px;\n margin-right: 4px;\n }\n\n .stats-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 16px;\n margin-top: 16px;\n }\n\n .stat-item {\n text-align: center;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n }\n\n .stat-value {\n font-size: 24px;\n font-weight: bold;\n color: #2196f3;\n }\n\n .stat-label {\n font-size: 12px;\n color: #666;\n margin-top: 4px;\n }\n\n .validation-status {\n padding: 12px;\n border-radius: 8px;\n margin-bottom: 16px;\n font-weight: bold;\n }\n\n .validation-status.valid {\n background: #e8f5e8;\n color: #2e7d32;\n }\n\n .validation-status.invalid {\n background: #ffebee;\n color: #d32f2f;\n }\n\n .validation-list {\n margin: 0;\n padding-left: 20px;\n }\n\n .validation-list li {\n margin-bottom: 8px;\n }\n\n .error-list li { color: #d32f2f; }\n .warning-list li { color: #f57c00; }\n .a11y-list li { color: #7b1fa2; }\n\n .css-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n }\n\n .copy-button {\n padding: 8px 16px;\n background: #2196f3;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .copy-button:hover {\n background: #1976d2;\n }\n\n .css-code {\n background: #f5f5f5;\n padding: 16px;\n border-radius: 8px;\n overflow-x: auto;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n line-height: 1.4;\n }\n\n .structure-header-controls {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n flex-wrap: wrap;\n gap: 12px;\n }\n\n .structure-header-controls h3 {\n margin: 0;\n }\n\n .search-controls {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .search-input {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n width: 250px;\n }\n\n .search-input:focus {\n outline: none;\n border-color: #2196f3;\n }\n\n .clear-search {\n background: #f44336;\n color: white;\n border: none;\n border-radius: 50%;\n width: 24px;\n height: 24px;\n cursor: pointer;\n font-size: 18px;\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .clear-search:hover {\n background: #d32f2f;\n }\n\n .search-results-count {\n font-size: 12px;\n color: #666;\n padding: 4px 8px;\n background: #f5f5f5;\n border-radius: 4px;\n }\n\n .no-results {\n padding: 24px;\n text-align: center;\n color: #666;\n font-style: italic;\n }\n\n .search-highlight {\n background: #fff59d;\n padding: 2px 4px;\n border-radius: 2px;\n }\n\n .structure-node {\n margin-bottom: 8px;\n }\n\n .structure-header {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n }\n\n .structure-header:hover {\n background: #f0f0f0;\n }\n\n .expand-icon {\n transition: transform 0.2s;\n font-size: 12px;\n }\n\n .expand-icon.expanded {\n transform: rotate(90deg);\n }\n\n .property-name {\n font-weight: bold;\n color: #1976d2;\n }\n\n .property-name.clickable {\n cursor: pointer;\n text-decoration: underline;\n text-decoration-style: dotted;\n }\n\n .property-name.clickable:hover {\n color: #0d47a1;\n }\n\n .copy-feedback {\n font-size: 12px;\n color: #4caf50;\n margin-left: 8px;\n font-weight: normal;\n }\n\n .property-type {\n font-size: 12px;\n color: #666;\n background: #f0f0f0;\n padding: 2px 6px;\n border-radius: 4px;\n }\n\n .structure-children,\n .structure-value {\n margin-left: 24px;\n margin-top: 8px;\n }\n\n .value-string { color: #388e3c; }\n .value-number { color: #1976d2; }\n .value-boolean { color: #7b1fa2; }\n .value-null { color: #666; font-style: italic; }\n .value-function { color: #f57c00; font-style: italic; }\n\n .value-object {\n font-family: monospace;\n font-size: 12px;\n }\n\n .object-property {\n margin-left: 16px;\n }\n\n .property-key {\n color: #1976d2;\n font-weight: bold;\n }\n\n .property-key.clickable {\n cursor: pointer;\n text-decoration: underline;\n text-decoration-style: dotted;\n }\n\n .property-key.clickable:hover {\n color: #0d47a1;\n }\n "})]})},am=({themeA:e,themeB:n,showOnlyDifferences:r=!1,className:o,style:i})=>{const[s,l]=a.useState(""),[c,d]=a.useState(""),[u,m]=a.useState("all"),[h,p]=a.useState("all"),g=a.useRef(void 0);a.useEffect((()=>(g.current&&clearTimeout(g.current),g.current=setTimeout((()=>{d(s)}),300),()=>{g.current&&clearTimeout(g.current)})),[s]);const f=a.useMemo((()=>{const t=[],a=e=>e.split(".")[0]||"other",r=(e,n,o="")=>{const i=new Set([...Object.keys(e||{}),...Object.keys(n||{})]);for(const s of i){if("__isJSTheme"===s)continue;const i=o?`${o}.${s}`:s,l=e?.[s],c=n?.[s];void 0===l&&void 0!==c?t.push({path:i,valueA:void 0,valueB:c,type:"added",category:a(i)}):void 0!==l&&void 0===c?t.push({path:i,valueA:l,valueB:void 0,type:"removed",category:a(i)}):"object"!=typeof l||"object"!=typeof c||Array.isArray(l)||Array.isArray(c)?JSON.stringify(l)!==JSON.stringify(c)&&t.push({path:i,valueA:l,valueB:c,type:"changed",category:a(i)}):r(l,c,i)}};return r(e,n),t}),[e,n]),b=a.useMemo((()=>{let e=f;if("all"!==u&&(e=e.filter((e=>e.type===u))),"all"!==h&&(e=e.filter((e=>e.category===h))),c){const t=c.toLowerCase();e=e.filter((e=>{var a,n,r;return sn(a=e.path.toLowerCase()).call(a,t)||sn(n=(e.valueA+"").toLowerCase()).call(n,t)||sn(r=(e.valueB+"").toLowerCase()).call(r,t)}))}return e}),[f,u,h,c]),x=a.useMemo((()=>{const e=new Set(f.map((e=>e.category)).filter(Boolean));return Array.from(e).sort()}),[f]),v=e=>void 0===e?"undefined":null===e?"null":"string"==typeof e?`"${e}"`:"object"==typeof e?JSON.stringify(e,null,2):e+"",S=e=>{switch(e){case"added":return"#4caf50";case"removed":return"#f44336";case"changed":return"#ff9800";default:return"#666"}},y=e=>{switch(e){case"added":return"rgba(76, 175, 80, 0.1)";case"removed":return"rgba(244, 67, 54, 0.1)";case"changed":return"rgba(255, 152, 0, 0.1)";default:return"transparent"}},E=(e,a)=>a?e.split(RegExp(`(${a})`,"gi")).map(((e,n)=>e.toLowerCase()===a.toLowerCase()?t.jsx("mark",{className:"search-highlight",children:e},n):e)):e,A=a.useMemo((()=>({total:f.length,added:f.filter((e=>"added"===e.type)).length,removed:f.filter((e=>"removed"===e.type)).length,changed:f.filter((e=>"changed"===e.type)).length,filtered:b.length})),[f,b]);return t.jsxs("div",{className:"atomix-theme-comparator "+(o||""),style:i,children:[t.jsxs("div",{className:"comparator-header",children:[t.jsxs("div",{className:"theme-column",children:[t.jsx("h3",{children:e.name}),e.version&&t.jsxs("span",{className:"version",children:["v",e.version]})]}),t.jsx("div",{className:"vs-divider",children:"VS"}),t.jsxs("div",{className:"theme-column",children:[t.jsx("h3",{children:n.name}),n.version&&t.jsxs("span",{className:"version",children:["v",n.version]})]})]}),t.jsxs("div",{className:"filter-controls",children:[t.jsxs("div",{className:"filter-group",children:[t.jsx("label",{children:"Search:"}),t.jsx("input",{type:"text",placeholder:"Search differences...",value:s,onChange:e=>l(e.target.value),className:"search-input"}),s&&t.jsx("button",{className:"clear-search",onClick:()=>l(""),title:"Clear search",children:"×"})]}),t.jsxs("div",{className:"filter-group",children:[t.jsx("label",{children:"Type:"}),t.jsxs("select",{value:u,onChange:e=>m(e.target.value),className:"filter-select",children:[t.jsx("option",{value:"all",children:"All Types"}),t.jsx("option",{value:"added",children:"Added"}),t.jsx("option",{value:"removed",children:"Removed"}),t.jsx("option",{value:"changed",children:"Changed"})]})]}),x.length>0&&t.jsxs("div",{className:"filter-group",children:[t.jsx("label",{children:"Category:"}),t.jsxs("select",{value:h,onChange:e=>p(e.target.value),className:"filter-select",children:[t.jsx("option",{value:"all",children:"All Categories"}),x.map((e=>t.jsx("option",{value:e,children:e},e)))]})]}),(s||"all"!==u||"all"!==h)&&t.jsx("button",{className:"clear-filters",onClick:()=>{l(""),m("all"),p("all")},children:"Clear Filters"})]}),t.jsxs("div",{className:"comparator-stats",children:[t.jsxs("div",{className:"stat",children:[t.jsx("span",{className:"stat-value",children:A.total}),t.jsx("span",{className:"stat-label",children:"Total Differences"})]}),t.jsxs("div",{className:"stat stat-added",children:[t.jsx("span",{className:"stat-value",style:{color:"#4caf50"},children:A.added}),t.jsx("span",{className:"stat-label",children:"Added"})]}),t.jsxs("div",{className:"stat stat-removed",children:[t.jsx("span",{className:"stat-value",style:{color:"#f44336"},children:A.removed}),t.jsx("span",{className:"stat-label",children:"Removed"})]}),t.jsxs("div",{className:"stat stat-changed",children:[t.jsx("span",{className:"stat-value",style:{color:"#ff9800"},children:A.changed}),t.jsx("span",{className:"stat-label",children:"Changed"})]}),A.filtered!==A.total&&t.jsxs("div",{className:"stat stat-filtered",children:[t.jsx("span",{className:"stat-value",style:{color:"#2196f3"},children:A.filtered}),t.jsx("span",{className:"stat-label",children:"Filtered"})]})]}),0===b.length?t.jsx("div",{className:"no-differences",children:0===f.length?t.jsx(t.Fragment,{children:"✅ Themes are identical"}):t.jsx(t.Fragment,{children:"No differences match your filters. Try adjusting your search or filters."})}):t.jsxs("div",{className:"differences-list",children:[t.jsxs("h4",{children:["Differences (",b.length,")"]}),b.map(((a,r)=>t.jsxs("div",{className:"difference-item difference-"+a.type,style:{backgroundColor:y(a.type)},children:[t.jsxs("div",{className:"difference-header",children:[t.jsx("span",{className:"difference-type",style:{backgroundColor:S(a.type)},children:a.type}),t.jsx("code",{className:"difference-path",children:E(a.path,c)}),a.category&&t.jsx("span",{className:"difference-category",children:a.category})]}),t.jsxs("div",{className:"difference-values",children:[t.jsxs("div",{className:"value-column value-"+("added"===a.type?"empty":"filled"),children:[t.jsx("div",{className:"value-label",children:e.name}),t.jsx("pre",{className:"value-content",children:"added"===a.type?t.jsx("span",{className:"value-empty",children:"—"}):E(v(a.valueA),c)})]}),t.jsx("div",{className:"value-divider",children:"→"}),t.jsxs("div",{className:"value-column value-"+("removed"===a.type?"empty":"filled"),children:[t.jsx("div",{className:"value-label",children:n.name}),t.jsx("pre",{className:"value-content",children:"removed"===a.type?t.jsx("span",{className:"value-empty",children:"—"}):E(v(a.valueB),c)})]})]})]},r)))]}),t.jsx("style",{children:"\n .atomix-theme-comparator {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n padding: 24px;\n }\n\n .comparator-header {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n gap: 24px;\n align-items: center;\n margin-bottom: 24px;\n padding-bottom: 24px;\n border-bottom: 2px solid #e0e0e0;\n }\n\n .theme-column {\n text-align: center;\n }\n\n .theme-column h3 {\n margin: 0;\n font-size: 20px;\n color: #333;\n }\n\n .version {\n display: inline-block;\n margin-top: 4px;\n padding: 2px 8px;\n background: #e3f2fd;\n color: #1976d2;\n border-radius: 4px;\n font-size: 12px;\n }\n\n .vs-divider {\n font-weight: bold;\n font-size: 24px;\n color: #666;\n }\n\n .filter-controls {\n display: flex;\n gap: 16px;\n align-items: center;\n margin-bottom: 24px;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n flex-wrap: wrap;\n }\n\n .filter-group {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .filter-group label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .search-input {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n width: 250px;\n }\n\n .search-input:focus {\n outline: none;\n border-color: #2196f3;\n }\n\n .clear-search {\n background: #f44336;\n color: white;\n border: none;\n border-radius: 50%;\n width: 24px;\n height: 24px;\n cursor: pointer;\n font-size: 18px;\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .clear-search:hover {\n background: #d32f2f;\n }\n\n .filter-select {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n background: white;\n cursor: pointer;\n }\n\n .clear-filters {\n padding: 8px 16px;\n background: #666;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n }\n\n .clear-filters:hover {\n background: #555;\n }\n\n .search-highlight {\n background: #fff59d;\n padding: 2px 4px;\n border-radius: 2px;\n }\n\n .comparator-stats {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 16px;\n margin-bottom: 24px;\n }\n\n .stat {\n text-align: center;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n }\n\n .stat-added {\n border-left: 4px solid #4caf50;\n }\n\n .stat-removed {\n border-left: 4px solid #f44336;\n }\n\n .stat-changed {\n border-left: 4px solid #ff9800;\n }\n\n .stat-filtered {\n border-left: 4px solid #2196f3;\n }\n\n .stat-value {\n display: block;\n font-size: 32px;\n font-weight: bold;\n color: #2196f3;\n }\n\n .stat-label {\n display: block;\n font-size: 12px;\n color: #666;\n margin-top: 4px;\n }\n\n .no-differences {\n text-align: center;\n padding: 48px;\n font-size: 18px;\n color: #4caf50;\n background: #e8f5e9;\n border-radius: 8px;\n }\n\n .differences-list h4 {\n margin: 0 0 16px 0;\n font-size: 18px;\n color: #333;\n }\n\n .difference-item {\n margin-bottom: 16px;\n border: 2px solid;\n border-radius: 8px;\n overflow: hidden;\n transition: all 0.2s ease;\n }\n\n .difference-added {\n border-color: #4caf50;\n }\n\n .difference-removed {\n border-color: #f44336;\n }\n\n .difference-changed {\n border-color: #ff9800;\n }\n\n .difference-header {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px;\n background: rgba(0, 0, 0, 0.05);\n }\n\n .difference-type {\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 11px;\n font-weight: bold;\n color: white;\n text-transform: uppercase;\n }\n\n .difference-path {\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 13px;\n color: #1976d2;\n flex: 1;\n }\n\n .difference-category {\n font-size: 11px;\n padding: 2px 6px;\n background: rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n color: #666;\n text-transform: uppercase;\n }\n\n .difference-values {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n gap: 16px;\n padding: 16px;\n align-items: start;\n }\n\n .value-column {\n min-width: 0;\n }\n\n .value-column.value-empty {\n opacity: 0.5;\n }\n\n .value-label {\n font-size: 12px;\n font-weight: bold;\n color: #666;\n margin-bottom: 8px;\n }\n\n .value-content {\n margin: 0;\n padding: 12px;\n background: rgba(255, 255, 255, 0.7);\n border-radius: 4px;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n overflow-x: auto;\n white-space: pre-wrap;\n word-break: break-all;\n }\n\n .value-empty {\n color: #999;\n font-style: italic;\n }\n\n .value-divider {\n font-size: 20px;\n color: #666;\n align-self: center;\n }\n "})]})},nm={primary:{main:"#7c3aed",light:"#d0b2f5",dark:"#3c1583",contrastText:"#ffffff"},secondary:{main:"#f3f4f6",light:"#ffffff",dark:"#e5e7eb",contrastText:"#1f2937"},error:{main:"#ef4444",light:"#fca5a5",dark:"#991b1b",contrastText:"#ffffff"},warning:{main:"#eab308",light:"#fde047",dark:"#854d0e",contrastText:"#000000"},info:{main:"#3b82f6",light:"#93c5fd",dark:"#1e40af",contrastText:"#ffffff"},success:{main:"#22c55e",light:"#86efac",dark:"#166534",contrastText:"#ffffff"},background:{default:"#ffffff",paper:"#f3f4f6",subtle:"#d1d5db"},text:{primary:"#111827",secondary:"#374151",disabled:"#9ca3af"}},rm={fontFamily:'"Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif',fontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightSemiBold:600,fontWeightBold:700,fontWeightHeavy:800,fontWeightBlack:900,h1:{fontSize:"2.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h2:{fontSize:"2rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h3:{fontSize:"1.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h4:{fontSize:"1.25rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h5:{fontSize:"1.125rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h6:{fontSize:"1rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},body1:{fontSize:"1rem",fontWeight:400,lineHeight:1.2},body2:{fontSize:"0.875rem",fontWeight:400,lineHeight:1.2}},om={xs:"0px 1px 2px 0px rgba(45, 54, 67, 0.04), 0px 2px 4px 0px rgba(45, 54, 67, 0.08)",sm:"0 2px 4px rgba(0, 0, 0, 0.075)",md:"0 4px 8px rgba(0, 0, 0, 0.1)",lg:"0 16px 48px rgba(0, 0, 0, 0.175)",xl:"0px 16px 64px -8px rgba(45, 54, 67, 0.14)",inset:"inset 0 1px 2px rgba(0, 0, 0, 0.075)"},im={duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"}},sm={mobileStepper:1e3,speedDial:1050,appBar:1020,drawer:1070,modal:1040,snackbar:1080,tooltip:1060},lm={base:"0.5rem",sm:"0.25rem",md:"0.25rem",lg:"0.625rem",xl:"0.75rem",xxl:"1rem","3xl":"1.5rem","4xl":"2rem",pill:"50rem"};function cm(e){return"string"==typeof e?{main:e,light:uu(e,.15),dark:mu(e,.15),contrastText:du(e)}:{main:e.main||"#000000",light:e.light||uu(e.main||"#000000",.15),dark:e.dark||mu(e.main||"#000000",.15),contrastText:e.contrastText||du(e.main||"#000000")}}function dm(...e){const t=di(e).call(e,((e,t)=>bd(e,t||{})),{}),a={primary:cm(t.palette?.primary||nm.primary),secondary:cm(t.palette?.secondary||nm.secondary),error:cm(t.palette?.error||nm.error),warning:cm(t.palette?.warning||nm.warning),info:cm(t.palette?.info||nm.info),success:cm(t.palette?.success||nm.success),...t.palette?.light&&{light:cm(t.palette.light)},...t.palette?.dark&&{dark:cm(t.palette.dark)},background:{default:t.palette?.background?.default||nm.background.default,paper:t.palette?.background?.paper||nm.background.paper,subtle:t.palette?.background?.subtle||nm.background.subtle},text:{primary:t.palette?.text?.primary||nm.text.primary,secondary:t.palette?.text?.secondary||nm.text.secondary,disabled:t.palette?.text?.disabled||nm.text.disabled},...t.palette},n=bd({...rm},t.typography||{}),r=gu(t.spacing),o=function(e){const t={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1440,...e?.values},a=e?.unit||"px";return{values:t,unit:a,up:e=>`@media (min-width:${"number"==typeof e?e:t[e]??0}${a})`,down:e=>`@media (max-width:${("number"==typeof e?e:t[e]??0)-.05}${a})`,between:(e,n)=>{const r="number"==typeof e?e:t[e]??0,o="number"==typeof n?n:t[n]??0;return`@media (min-width:${r}${a}) and (max-width:${o-.05}${a})`}}}(t.breakpoints),i=bd({...om},t.shadows||{}),s=bd({...im},t.transitions||{}),l=bd({...sm},t.zIndex||{}),c=bd({...lm},t.borderRadius||{});return{name:t.name||"Custom Theme",class:t.class,description:t.description,author:t.author,version:t.version||"1.0.0",tags:t.tags,supportsDarkMode:t.supportsDarkMode,status:t.status||"experimental",a11y:t.a11y,color:t.color||a.primary.main,features:t.features,dependencies:t.dependencies,palette:a,typography:n,spacing:r,breakpoints:o,shadows:i,transitions:s,zIndex:l,borderRadius:c,custom:t.custom||{},__isJSTheme:!0}}function um(e={}){const{maxHistorySize:t=50,initialState:n}=e,[r,o]=a.useState(n),i=a.useRef([n]),s=a.useRef(0),[l,c]=a.useState(!1),[d,u]=a.useState(!1),m=a.useCallback((()=>{c(s.current>0),u(s.current<i.current.length-1)}),[]),h=a.useCallback((e=>{s.current<i.current.length-1&&(i.current=i.current.slice(0,s.current+1)),i.current.push(e),s.current=i.current.length-1,i.current.length>t&&(i.current.shift(),s.current--),o(e),m()}),[t,m]),p=a.useCallback((()=>{if(s.current>0){s.current--;const e=i.current[s.current];o(e),m()}}),[m]),g=a.useCallback((()=>{if(s.current<i.current.length-1){s.current++;const e=i.current[s.current];o(e),m()}}),[m]),f=a.useCallback((()=>{const e=i.current[s.current];i.current=[e],s.current=0,m()}),[m]),b=a.useCallback((()=>({currentIndex:s.current,totalEntries:i.current.length})),[]);return a.useEffect((()=>{m()}),[m]),{state:r,setState:h,undo:p,redo:g,canUndo:l,canRedo:d,clearHistory:f,getHistoryStats:b}}function mm(e,t){if(e=e.trim(),"hex"===t&&e.startsWith("#"))return e;if("rgb"===t&&e.startsWith("rgb("))return e;if("rgba"===t&&e.startsWith("rgba("))return e;if("hsl"===t&&e.startsWith("hsl("))return e;if("hsla"===t&&e.startsWith("hsla("))return e;const a=document.createElement("div");a.style.color=e,document.body.appendChild(a);const n=window.getComputedStyle(a).color;document.body.removeChild(a);const r=n.match(/\d+/g);if(!r||3>r.length)return e;const o=parseInt(r[0],10),i=parseInt(r[1]||"0",10),s=parseInt(r[2]||"0",10),l=r[3]?parseFloat(r[3]):1;switch(t){case"hex":return"#"+[o,i,s].map((e=>e.toString(16).padStart(2,"0"))).join("");case"rgb":return`rgb(${o}, ${i}, ${s})`;case"rgba":return`rgba(${o}, ${i}, ${s}, ${l})`;case"hsl":case"hsla":{const e=function(e,t,a){const n=Math.max(e/=255,t/=255,a/=255),r=Math.min(e,t,a);let o=0,i=0;const s=(n+r)/2;if(n!==r){const l=n-r;switch(i=s>.5?l/(2-n-r):l/(n+r),n){case e:o=((t-a)/l+(a>t?6:0))/6;break;case t:o=((a-e)/l+2)/6;break;case a:o=((e-t)/l+4)/6}}return{h:Math.round(360*o),s:Math.round(100*i),l:Math.round(100*s)}}(o,i,s);return"hsl"===t?`hsl(${e.h}, ${e.s}%, ${e.l}%)`:`hsla(${e.h}, ${e.s}%, ${e.l}%, ${l})`}default:return e}}const hm=({initialTheme:e,onChange:n,className:r,style:o})=>{const{state:i,setState:s,undo:l,redo:c,canUndo:d,canRedo:u}=um({initialState:e,maxHistorySize:50}),[m,h]=a.useState(JSON.stringify(e,null,2)),[p,g]=a.useState(null),[f,b]=a.useState("visual"),[x,v]=a.useState("hex"),[S,y]=a.useState(50),[E,A]=a.useState(!1),N=a.useRef(null),T=a.useRef(null);a.useEffect((()=>{const e=localStorage.getItem("atomix-editor-layout");if(e){const t=parseFloat(e);!isNaN(t)&&t>0&&100>t&&y(t)}}),[]),a.useEffect((()=>{localStorage.setItem("atomix-editor-layout",S.toString())}),[S]);const C=a.useCallback(((e,t=!0)=>{t?s(e):h(JSON.stringify(e,null,2)),n?.(e),g(null)}),[n,s]);a.useEffect((()=>{h(JSON.stringify(i,null,2))}),[i]);const _=a.useCallback((e=>{h(e);try{const t=dm(JSON.parse(e));C(t,!1)}catch(t){g(t instanceof Error?t.message:"Invalid JSON")}}),[C]),L=a.useRef(void 0);a.useEffect((()=>{if(!p){try{const e=dm(JSON.parse(m));L.current&&clearTimeout(L.current),L.current=setTimeout((()=>{s(e)}),1e3)}catch{}return()=>{L.current&&clearTimeout(L.current)}}}),[m,p,s]);const w=a.useCallback(((e,t)=>{const a={...i},n=e.split(".");let r=a;for(let i=0;i<n.length-1;i++){const e=n[i];e&&!r[e]&&(r[e]={}),e&&(r=r[e])}const o=n[n.length-1];o&&(r[o]=t),C(dm(a))}),[i,C]),I=a.useCallback((()=>{const e=JSON.stringify(i,null,2),t="data:application/json;charset=utf-8,"+encodeURIComponent(e),a=i.name.toLowerCase().replace(/\s+/g,"-")+"-theme.json",n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download",a),n.click()}),[i]),R=a.useCallback((()=>{navigator.clipboard?.writeText(m)}),[m]);a.useEffect((()=>{const e=e=>{const t=0>navigator.platform.toUpperCase().indexOf("MAC")?e.ctrlKey:e.metaKey;t&&"z"===e.key&&!e.shiftKey?(e.preventDefault(),d&&l()):t&&("y"===e.key||"z"===e.key&&e.shiftKey)?(e.preventDefault(),u&&c()):t&&"s"===e.key?(e.preventDefault(),I()):t&&"/"===e.key?(e.preventDefault(),b((e=>"visual"===e?"json":"visual"))):"Escape"===e.key&&g(null)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[d,u,l,c,I]);const O=a.useCallback((e=>{e.preventDefault(),A(!0)}),[]);a.useEffect((()=>{if(!E)return;const e=e=>{if(!N.current||!T.current)return;const t=N.current.parentElement;if(!t)return;const a=t.getBoundingClientRect(),n=(e.clientX-a.left)/a.width*100;y(Math.max(20,Math.min(80,n)))},t=()=>{A(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}),[E]);const k=a.useCallback((e=>mm(e,x)),[x]);return t.jsxs("div",{className:"atomix-theme-live-editor "+(r||""),style:o,children:[t.jsxs("div",{className:"editor-header",children:[t.jsx("h2",{children:"Live Theme Editor"}),t.jsxs("div",{className:"editor-controls",children:[t.jsxs("div",{className:"history-controls",children:[t.jsx("button",{className:"history-button",onClick:l,disabled:!d,title:"Undo (Ctrl+Z)",children:"↶ Undo"}),t.jsx("button",{className:"history-button",onClick:c,disabled:!u,title:"Redo (Ctrl+Shift+Z)",children:"↷ Redo"})]}),t.jsxs("div",{className:"mode-controls",children:[t.jsx("button",{className:"mode-button "+("visual"===f?"active":""),onClick:()=>b("visual"),title:"Visual Editor (Ctrl+/)",children:"Visual"}),t.jsx("button",{className:"mode-button "+("json"===f?"active":""),onClick:()=>b("json"),title:"JSON Editor (Ctrl+/)",children:"JSON"})]}),t.jsxs("div",{className:"action-controls",children:[t.jsx("button",{className:"export-button",onClick:I,title:"Export (Ctrl+S)",children:"Export"}),t.jsx("button",{className:"copy-button",onClick:R,title:"Copy JSON",children:"Copy JSON"})]})]})]}),t.jsxs("div",{className:"editor-content",ref:N,children:[t.jsx("div",{className:"editor-panel",style:{width:S+"%"},children:"visual"===f?t.jsxs("div",{className:"visual-editor",children:[t.jsxs("div",{className:"editor-section",children:[t.jsx("h3",{children:"Colors"}),t.jsxs("div",{className:"color-format-selector",children:[t.jsx("label",{children:"Color Format:"}),t.jsxs("select",{value:x,onChange:e=>v(e.target.value),children:[t.jsx("option",{value:"hex",children:"HEX"}),t.jsx("option",{value:"rgb",children:"RGB"}),t.jsx("option",{value:"rgba",children:"RGBA"}),t.jsx("option",{value:"hsl",children:"HSL"}),t.jsx("option",{value:"hsla",children:"HSLA"})]})]}),t.jsxs("div",{className:"editor-field",children:[t.jsx("label",{children:"Primary Color"}),t.jsxs("div",{className:"color-input-group",children:[t.jsx("input",{type:"color",value:i.palette.primary.main,onChange:e=>w("palette.primary.main",e.target.value)}),t.jsx("input",{type:"text",value:k(i.palette.primary.main),onChange:e=>{const t=mm(e.target.value,"hex");w("palette.primary.main",t)},placeholder:"#7AFFD7"})]})]}),t.jsxs("div",{className:"editor-field",children:[t.jsx("label",{children:"Secondary Color"}),t.jsxs("div",{className:"color-input-group",children:[t.jsx("input",{type:"color",value:i.palette.secondary.main,onChange:e=>w("palette.secondary.main",e.target.value)}),t.jsx("input",{type:"text",value:k(i.palette.secondary.main),onChange:e=>{const t=mm(e.target.value,"hex");w("palette.secondary.main",t)},placeholder:"#FF5733"})]})]}),t.jsx("h3",{children:"Background"}),t.jsxs("div",{className:"editor-field",children:[t.jsx("label",{children:"Default Background"}),t.jsxs("div",{className:"color-input-group",children:[t.jsx("input",{type:"color",value:i.palette.background.default,onChange:e=>w("palette.background.default",e.target.value)}),t.jsx("input",{type:"text",value:k(i.palette.background.default),onChange:e=>{const t=mm(e.target.value,"hex");w("palette.background.default",t)}})]})]})]}),t.jsxs("div",{className:"editor-section",children:[t.jsx("h3",{children:"Typography"}),t.jsxs("div",{className:"editor-field",children:[t.jsx("label",{children:"Font Family"}),t.jsx("input",{type:"text",value:i.typography.fontFamily,onChange:e=>w("typography.fontFamily",e.target.value),placeholder:"Inter, sans-serif"})]}),t.jsxs("div",{className:"editor-field",children:[t.jsx("label",{children:"Base Font Size (px)"}),t.jsx("input",{type:"number",value:i.typography.fontSize,onChange:e=>w("typography.fontSize",parseInt(e.target.value)),min:"10",max:"24"})]})]})]}):t.jsxs("div",{className:"json-editor",children:[t.jsx("textarea",{value:m,onChange:e=>_(e.target.value),spellCheck:!1}),p&&t.jsxs("div",{className:"error-message",children:["❌ ",p,t.jsx("button",{className:"error-dismiss",onClick:()=>g(null),children:"×"})]})]})}),t.jsx("div",{className:"resizer "+(E?"resizing":""),onMouseDown:O}),t.jsxs("div",{className:"preview-panel",ref:T,style:{width:100-S+"%"},children:[t.jsx("h3",{children:"Live Preview"}),t.jsx(Ju,{theme:i,showDetails:!1,showPalette:!0,showTypography:!0})]})]}),t.jsx("style",{children:"\n .atomix-theme-live-editor {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .editor-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n border-radius: 8px 8px 0 0;\n }\n\n .editor-header h2 {\n margin: 0;\n font-size: 20px;\n color: #333;\n }\n\n .editor-controls {\n display: flex;\n gap: 12px;\n align-items: center;\n }\n\n .history-controls,\n .mode-controls,\n .action-controls {\n display: flex;\n gap: 8px;\n }\n\n .history-button,\n .mode-button,\n .export-button,\n .copy-button {\n padding: 8px 16px;\n border: 1px solid #e0e0e0;\n background: white;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n transition: all 0.2s;\n }\n\n .history-button:hover:not(:disabled),\n .mode-button:hover,\n .export-button:hover,\n .copy-button:hover {\n background: #f5f5f5;\n }\n\n .history-button:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .mode-button.active {\n background: #2196f3;\n color: white;\n border-color: #2196f3;\n }\n\n .export-button {\n background: #4caf50;\n color: white;\n border-color: #4caf50;\n }\n\n .copy-button {\n background: #ff9800;\n color: white;\n border-color: #ff9800;\n }\n\n .editor-content {\n display: flex;\n position: relative;\n min-height: 600px;\n }\n\n .editor-panel,\n .preview-panel {\n overflow-y: auto;\n padding: 24px;\n }\n\n .resizer {\n width: 4px;\n background: #e0e0e0;\n cursor: col-resize;\n position: relative;\n flex-shrink: 0;\n transition: background 0.2s;\n }\n\n .resizer:hover,\n .resizer.resizing {\n background: #2196f3;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n left: -2px;\n right: -2px;\n top: 0;\n bottom: 0;\n }\n\n .editor-panel h3,\n .preview-panel h3 {\n margin: 0 0 16px 0;\n font-size: 16px;\n color: #333;\n border-bottom: 2px solid #2196f3;\n padding-bottom: 8px;\n }\n\n .visual-editor {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n\n .editor-section {\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n\n .color-format-selector {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 8px;\n }\n\n .color-format-selector label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .color-format-selector select {\n padding: 6px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n background: white;\n cursor: pointer;\n }\n\n .editor-field {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .editor-field label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .color-input-group {\n display: flex;\n gap: 8px;\n align-items: center;\n }\n\n .color-input-group input[type=\"color\"] {\n width: 50px;\n height: 40px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .color-input-group input[type=\"text\"],\n .editor-field input[type=\"text\"],\n .editor-field input[type=\"number\"] {\n flex: 1;\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n font-family: 'Monaco', 'Menlo', monospace;\n }\n\n .json-editor {\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n .json-editor textarea {\n flex: 1;\n padding: 16px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n line-height: 1.5;\n resize: none;\n }\n\n .error-message {\n padding: 12px;\n background: #ffebee;\n color: #d32f2f;\n border-radius: 4px;\n margin-top: 8px;\n font-size: 14px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .error-dismiss {\n background: none;\n border: none;\n color: #d32f2f;\n font-size: 20px;\n cursor: pointer;\n padding: 0;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .error-dismiss:hover {\n background: rgba(211, 47, 47, 0.1);\n border-radius: 50%;\n }\n\n .preview-panel {\n border-left: 1px solid #e0e0e0;\n }\n "})]})},pm=({initialTokens:e={},onTokensChange:n,className:r,style:o})=>{const[i,s]=a.useState((()=>rd(e))),[l,c]=a.useState("hex"),[d,u]=a.useState("colors"),[m,h]=a.useState("");a.useEffect((()=>{const e=gd(i,{selector:":root",prefix:"atomix-preview"});h(e),n?.(i)}),[i,n]);const p=a.useMemo((()=>dm({palette:{primary:{main:i.primary},secondary:{main:i.secondary},error:{main:i.error},warning:{main:i.warning},info:{main:i.info},success:{main:i.success},background:{default:"#ffffff",subtle:i["secondary-bg-subtle"]||"#f3f4f6"},text:{primary:i["primary-text-emphasis"]||"#111827",secondary:i["secondary-text-emphasis"]||"#374151",disabled:i["disabled-text-emphasis"]||"#9ca3af"}},typography:{fontFamily:i["body-font-family"]||'"Roboto", sans-serif',fontSize:parseInt(i["body-font-size"]||"16")},spacing:e=>.25*e+"rem"})),[i]),g=a.useCallback(((e,t)=>{s((a=>({...a,[e]:t})))}),[]),f=a.useCallback(((e,t)=>{const a=document.createElement("div");a.style.color=e,document.body.appendChild(a);const n=window.getComputedStyle(a).color;document.body.removeChild(a);const r=n.match(/\d+/g);if(!r||3>r.length)return e;const o=parseInt(r[0]||"0",10),i=parseInt(r[1]||"0",10),s=parseInt(r[2]||"0",10),l=r[3]?parseFloat(r[3]):1;switch(t){case"hex":return"#"+[o,i,s].map((e=>e.toString(16).padStart(2,"0"))).join("");case"rgb":return`rgb(${o}, ${i}, ${s})`;case"rgba":return`rgba(${o}, ${i}, ${s}, ${l})`;case"hsl":case"hsla":{const e=function(e,t,a){const n=Math.max(e/=255,t/=255,a/=255),r=Math.min(e,t,a);let o=0,i=0;const s=(n+r)/2;if(n!==r){const l=n-r;switch(i=s>.5?l/(2-n-r):l/(n+r),n){case e:o=((t-a)/l+(a>t?6:0))/6;break;case t:o=((a-e)/l+2)/6;break;case a:o=((e-t)/l+4)/6}}return{h:Math.round(360*o),s:Math.round(100*i),l:Math.round(100*s)}}(o,i,s);return"hsl"===t?`hsl(${e.h}, ${e.s}%, ${e.l}%)`:`hsla(${e.h}, ${e.s}%, ${e.l}%, ${l})`}default:return e}}),[]),b=a.useCallback((()=>{const e=JSON.stringify(i,null,2),t="data:application/json;charset=utf-8,"+encodeURIComponent(e),a=document.createElement("a");a.setAttribute("href",t),a.setAttribute("download","design-tokens.json"),a.click()}),[i]),x=a.useCallback((()=>{const e=gd(i),t="data:text/css;charset=utf-8,"+encodeURIComponent(e),a=document.createElement("a");a.setAttribute("href",t),a.setAttribute("download","theme.css"),a.click()}),[i]),v=a.useCallback((()=>{navigator.clipboard?.writeText(JSON.stringify(i,null,2))}),[i]),S=a.useCallback((()=>{s(nd)}),[]),y=a.useCallback((e=>{const t=e.target.files?.[0];if(!t)return;const a=new FileReader;a.onload=e=>{try{const t=e.target?.result,a=rd(JSON.parse(t));s(a)}catch(t){alert("Invalid JSON file. Please select a valid design tokens JSON file.")}},a.readAsText(t)}),[]),E={colors:{label:"Colors",tokens:["primary","secondary","success","info","warning","error","light","dark","primary-rgb","secondary-rgb","success-rgb","info-rgb","warning-rgb","error-rgb","light-rgb","dark-rgb","gray-1","gray-2","gray-3","gray-4","gray-5","gray-6","gray-7","gray-8","gray-9","gray-10","primary-1","primary-2","primary-3","primary-4","primary-5","primary-6","primary-7","primary-8","primary-9","primary-10","primary-text-emphasis","secondary-text-emphasis","tertiary-text-emphasis","disabled-text-emphasis","invert-text-emphasis","brand-text-emphasis","error-text-emphasis","success-text-emphasis","warning-text-emphasis","info-text-emphasis","light-text-emphasis","dark-text-emphasis","primary-bg-subtle","secondary-bg-subtle","tertiary-bg-subtle","invert-bg-subtle","brand-bg-subtle","error-bg-subtle","success-bg-subtle","warning-bg-subtle","info-bg-subtle","light-bg-subtle","dark-bg-subtle","primary-border-subtle","secondary-border-subtle","success-border-subtle","error-border-subtle","warning-border-subtle","info-border-subtle","brand-border-subtle","light-border-subtle","dark-border-subtle","primary-hover","secondary-hover","light-hover","dark-hover","error-hover","success-hover","warning-hover","info-hover","primary-gradient","secondary-gradient","light-gradient","dark-gradient","success-gradient","info-gradient","warning-gradient","error-gradient","gradient"]},typography:{label:"Typography",tokens:["font-sans-serif","font-monospace","body-font-family","body-font-size","body-font-weight","body-line-height","body-color","body-bg","heading-color","font-size-xl","font-size-2xl","display-1","font-weight-light","font-weight-normal","font-weight-medium","font-weight-semibold","font-weight-bold","font-weight-heavy","font-weight-black","line-height-base","line-height-sm","line-height-lg","letter-spacing-h1","letter-spacing-h2","letter-spacing-h3","letter-spacing-h4","letter-spacing-h5","letter-spacing-h6","link-color","link-color-rgb","link-decoration","link-hover-color","link-hover-color-rgb","highlight-bg","code-color"]},spacing:{label:"Spacing",tokens:["spacing-0","spacing-1","spacing-px-6","spacing-2","spacing-px-10","spacing-3","spacing-px-14","spacing-4","spacing-5","spacing-px-22","spacing-6","spacing-7","spacing-px-30","spacing-8","spacing-9","spacing-10","spacing-11","spacing-12","spacing-14","spacing-16","spacing-20","spacing-24","spacing-28","spacing-32","spacing-36","spacing-40","spacing-44","spacing-48","spacing-52","spacing-56","spacing-60","spacing-64","spacing-72","spacing-80","spacing-90","spacing-200"]},shadows:{label:"Shadows",tokens:["box-shadow","box-shadow-xs","box-shadow-sm","box-shadow-lg","box-shadow-xl","box-shadow-inset"]},borders:{label:"Borders",tokens:["border-width","border-style","border-color","border-color-translucent","border-radius","border-radius-sm","border-radius-lg","border-radius-xl","border-radius-xxl","border-radius-2xl","border-radius-3xl","border-radius-4xl","border-radius-pill","focus-border-color","focus-ring-width","focus-ring-offset","focus-ring-opacity","form-valid-color","form-valid-border-color","form-invalid-color","form-invalid-border-color"]},transitions:{label:"Transitions",tokens:["transition-duration-fast","transition-duration-base","transition-duration-slow","transition-duration-slower","easing-base","easing-ease-in-out","easing-ease-out","easing-ease-in","easing-ease-linear","transition-fast","transition-base","transition-slow"]},zindex:{label:"Z-Index",tokens:["z-n1","z-0","z-1","z-2","z-3","z-4","z-5","z-dropdown","z-sticky","z-fixed","z-modal","z-popover","z-tooltip","z-drawer"]},breakpoints:{label:"Breakpoints",tokens:["breakpoint-xs","breakpoint-sm","breakpoint-md","breakpoint-lg","breakpoint-xl","breakpoint-xxl"]}};return t.jsxs("div",{className:"design-tokens-customizer "+(r||""),style:o,children:[t.jsxs("div",{className:"customizer-header",children:[t.jsx("h2",{children:"Interactive Theme Customizer"}),t.jsxs("div",{className:"customizer-controls",children:[t.jsxs("select",{value:l,onChange:e=>c(e.target.value),children:[t.jsx("option",{value:"hex",children:"HEX"}),t.jsx("option",{value:"rgb",children:"RGB"}),t.jsx("option",{value:"rgba",children:"RGBA"}),t.jsx("option",{value:"hsl",children:"HSL"}),t.jsx("option",{value:"hsla",children:"HSLA"})]}),t.jsx("button",{onClick:S,children:"Reset to Defaults"}),t.jsxs("label",{className:"file-input-button",children:["Load Tokens",t.jsx("input",{type:"file",accept:".json",onChange:y,style:{display:"none"}})]}),t.jsx("button",{onClick:v,children:"Copy Tokens"}),t.jsx("button",{onClick:b,children:"Export Tokens"}),t.jsx("button",{onClick:x,children:"Export Theme CSS"})]})]}),t.jsxs("div",{className:"customizer-content",children:[t.jsx("div",{className:"customizer-sidebar",children:Object.entries(E).map((([e,a])=>t.jsx("button",{className:"category-button "+(d===e?"active":""),onClick:()=>u(e),children:a.label},e)))}),t.jsxs("div",{className:"customizer-editor",children:[t.jsx("h3",{children:E[d].label}),t.jsx("div",{className:"tokens-grid",children:E[d].tokens.map((e=>{var a;const n=i[e]||"",r=sn(e).call(e,"color")||sn(e).call(e,"bg")||sn(e).call(e,"gradient")||sn(a=["primary","secondary","success","info","warning","error","light","dark"]).call(a,e)||e.match(/^(gray|primary|red|green|blue|yellow)-\d+$/);return t.jsxs("div",{className:"token-item",children:[t.jsx("label",{children:e}),r?t.jsxs("div",{className:"color-input-group",children:[t.jsx("input",{type:"color",value:n.startsWith("#")?n:f(n,"hex"),onChange:t=>g(e,t.target.value)}),t.jsx("input",{type:"text",value:f(n,l),onChange:t=>{const a=f(t.target.value,"hex");g(e,a)}})]}):t.jsx("input",{type:"text",value:n,onChange:t=>g(e,t.target.value)})]},e)}))})]}),t.jsxs("div",{className:"customizer-preview",children:[t.jsx("h3",{children:"Live Preview"}),t.jsx("style",{children:m}),t.jsx(Ju,{theme:p,showDetails:!1,showPalette:!0,showTypography:!0,showSpacing:!0})]})]}),t.jsx("style",{children:"\n .design-tokens-customizer {\n display: flex;\n flex-direction: column;\n height: 100vh;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .customizer-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n }\n\n .customizer-header h2 {\n margin: 0;\n font-size: 24px;\n color: #333;\n }\n\n .customizer-controls {\n display: flex;\n gap: 8px;\n align-items: center;\n }\n\n .customizer-controls select,\n .customizer-controls button {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n background: white;\n cursor: pointer;\n }\n\n .customizer-controls button:hover,\n .file-input-button:hover {\n background: #f0f0f0;\n }\n\n .file-input-button {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n background: white;\n cursor: pointer;\n font-size: 14px;\n display: inline-block;\n }\n\n .customizer-content {\n display: flex;\n flex: 1;\n overflow: hidden;\n }\n\n .customizer-sidebar {\n width: 200px;\n border-right: 1px solid #e0e0e0;\n padding: 16px;\n background: #fafafa;\n overflow-y: auto;\n }\n\n .category-button {\n display: block;\n width: 100%;\n padding: 12px;\n margin-bottom: 8px;\n border: none;\n background: white;\n border-radius: 4px;\n cursor: pointer;\n text-align: left;\n font-size: 14px;\n }\n\n .category-button:hover,\n .category-button.active {\n background: #e0e0e0;\n }\n\n .customizer-editor {\n flex: 1;\n padding: 24px;\n overflow-y: auto;\n }\n\n .customizer-editor h3 {\n margin-top: 0;\n margin-bottom: 16px;\n color: #333;\n }\n\n .tokens-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n gap: 16px;\n }\n\n .token-item {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .token-item label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .color-input-group {\n display: flex;\n gap: 8px;\n align-items: center;\n }\n\n .color-input-group input[type=\"color\"] {\n width: 50px;\n height: 40px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .color-input-group input[type=\"text\"],\n .token-item input[type=\"text\"] {\n flex: 1;\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n font-family: 'Monaco', 'Menlo', monospace;\n }\n\n .customizer-preview {\n width: 400px;\n border-left: 1px solid #e0e0e0;\n padding: 24px;\n overflow-y: auto;\n background: #fafafa;\n }\n\n .customizer-preview h3 {\n margin-top: 0;\n margin-bottom: 16px;\n color: #333;\n }\n "})]})};function gm(e){if(!e||"object"!=typeof e)return!1;const t=e;if("palette"in t||"typography"in t||"__isJSTheme"in t)return!1;const a=Object.keys(t);return 0!==a.length&&a.some((e=>/^[a-z]+(-[a-z0-9]+)*$/.test(e)&&"string"==typeof t[e]))}class fm{constructor(e){this.frameCount=0,this.lastSampleTime=0,this.lastFpsUpdate=0,this.frameTimes=[],this.animationFrameId=null,this.isActive=!1,this.startTime=0,this.config={fpsTarget:e?.fpsTarget??60,sampleInterval:e?.sampleInterval??500,onUpdate:e?.onUpdate??(()=>{}),onDegraded:e?.onDegraded??(()=>{}),enableMemoryMonitoring:e?.enableMemoryMonitoring??("undefined"!=typeof window&&window.performance&&window.performance.memory)}}start(){this.isActive||(this.isActive=!0,this.frameCount=0,this.lastSampleTime=performance.now(),this.lastFpsUpdate=this.lastSampleTime,this.frameTimes=[],this.startTime=this.lastSampleTime,this.animationFrameId=requestAnimationFrame(this.onFrame.bind(this)))}stop(){this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null),this.isActive=!1}getMetrics(){var e;const t=performance.now(),a=t-this.lastFpsUpdate,n=a>0?Math.round(this.frameCount/a*1e3):0,r=this.frameTimes.length>0?di(e=this.frameTimes).call(e,((e,t)=>e+t),0)/this.frameTimes.length:0,o=this.frameTimes.length>0?Math.max(...this.frameTimes):0;let i;if(this.config.enableMemoryMonitoring){const e=window.performance;e&&e.memory&&(i={usedJSHeapSize:e.memory.usedJSHeapSize,totalJSHeapSize:e.memory.totalJSHeapSize,jsHeapSizeLimit:e.memory.jsHeapSizeLimit})}return{fps:n,frameTime:r,peakFrameTime:o,memory:i,timestamp:t,isDegraded:n<.7*this.config.fpsTarget}}getFps(){return this.getMetrics().fps}isPerformanceDegraded(){return this.getMetrics().isDegraded}onFrame(e){if(!this.isActive)return;const t=e-this.lastSampleTime;if(this.frameTimes.push(t),this.frameTimes.length>60&&this.frameTimes.shift(),this.frameCount++,this.lastSampleTime=e,e-this.lastFpsUpdate>=this.config.sampleInterval){const t=this.getMetrics();this.config.onUpdate(t),t.isDegraded&&this.config.onDegraded(t),this.frameCount=0,this.lastFpsUpdate=e}this.animationFrameId=requestAnimationFrame(this.onFrame.bind(this))}async testFunctionPerformance(e,t=100){const a=[];for(let n=0;t>n;n++){const t=performance.now();e();const n=performance.now();a.push(n-t)}return di(a).call(a,((e,t)=>e+t),0)/a.length}}function bm(e){return new fm(e)}function xm(e){const[t]=a.useState((()=>bm(e))),[n,r]=a.useState((()=>"undefined"!=typeof window?t.getMetrics():{fps:0,frameTime:0,peakFrameTime:0,timestamp:0,isDegraded:!1})),o=a.useCallback((()=>{"undefined"!=typeof window&&t.start()}),[t]),i=a.useCallback((()=>{"undefined"!=typeof window&&t.stop()}),[t]);return a.useEffect((()=>{if("undefined"==typeof window)return;const a=e?.onUpdate;return t.config.onUpdate=e=>{r(e),a?.(e)},()=>{t.stop()}}),[t,e?.onUpdate]),{metrics:n,start:o,stop:i}}class vm{constructor(e){this.currentDevice="desktop",this.resizeHandler=null,this.observer=null,this.config=e,this.currentDevice=this.getCurrentDeviceType(),this.setupResizeListener()}getCurrentDeviceType(){if("undefined"==typeof window)return"desktop";const e=window.innerWidth;this.parsePxValue(this.config.breakpoints.mobile);const t=this.parsePxValue(this.config.breakpoints.tablet),a=this.parsePxValue(this.config.breakpoints.desktop),n=this.parsePxValue(this.config.breakpoints.wide);return t>e?"mobile":a>e?"tablet":n>e?"desktop":"wide"}getCurrentScalingFactor(){const e="wide"===this.currentDevice?"desktop":this.currentDevice;return this.config.deviceScaling[e]||1}scaleValue(e){return e*this.getCurrentScalingFactor()}isDevice(e){return this.currentDevice===e}isMobileOrSmaller(){return"mobile"===this.currentDevice}isTabletOrSmaller(){return"mobile"===this.currentDevice||"tablet"===this.currentDevice}isDesktopOrLarger(){return"desktop"===this.currentDevice||"wide"===this.currentDevice}updateConfig(e){this.config=e,this.currentDevice=this.getCurrentDeviceType()}destroy(){this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.observer&&(this.observer.disconnect(),this.observer=null)}parsePxValue(e){return e.endsWith("px")?parseFloat(e.slice(0,-2)):e.endsWith("rem")?16*parseFloat(e.slice(0,-3)):e.endsWith("em")?16*parseFloat(e.slice(0,-2)):parseFloat(e)||0}setupResizeListener(){if("undefined"==typeof window)return;let e=null;const t=()=>{e&&window.clearTimeout(e),e=window.setTimeout((()=>{const e=this.getCurrentDeviceType();e!==this.currentDevice&&(this.currentDevice=e)}),150)};this.resizeHandler=t,window.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(this.observer=new ResizeObserver(t),this.observer.observe(document.body))}}function Sm(e){return new vm(e)}function ym(e){const[t]=a.useState((()=>Sm(e))),[n,r]=a.useState((()=>"undefined"!=typeof window?t.getCurrentDeviceType():"desktop"));return a.useEffect((()=>{if("undefined"==typeof window)return;const e=()=>{const e=t.getCurrentDeviceType();e!==n&&r(e)};return r(t.getCurrentDeviceType()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),t.destroy()}}),[t,n]),"undefined"==typeof window?{deviceType:"desktop",isMobile:!1,isTablet:!1,isDesktop:!0,isWide:!1,scaleValue:e=>e,getCurrentDeviceType:()=>"desktop",getCurrentScalingFactor:()=>1,isMobileOrSmaller:()=>!1,isTabletOrSmaller:()=>!0,isDesktopOrLarger:()=>!0}:{deviceType:n,isMobile:"mobile"===n,isTablet:"tablet"===n,isDesktop:"desktop"===n,isWide:"wide"===n,scaleValue:e=>t.scaleValue(e),getCurrentDeviceType:()=>t.getCurrentDeviceType(),getCurrentScalingFactor:()=>t.getCurrentScalingFactor(),isMobileOrSmaller:()=>t.isMobileOrSmaller(),isTabletOrSmaller:()=>t.isTabletOrSmaller(),isDesktopOrLarger:()=>t.isDesktopOrLarger()}}const Em=new Set(["ar","he","fa","ur","yi","ji","iw","ku","ps","sd"]),Am={enabled:!1,direction:"ltr",dataAttribute:"data-direction",autoDetect:!1,locale:void 0};class Nm{constructor(e={}){this.listeners=new Set,this.config={...Am,...e,locale:e.locale},this.config.autoDetect&&!this.config.locale&&(this.config.locale=this.detectLocale()),this.config.enabled&&this.config.locale&&Em.has(this.config.locale.toLowerCase())&&(this.config.direction="rtl"),this.config.enabled&&"undefined"!=typeof document&&this.applyDirection(this.config.direction)}detectLocale(){if("undefined"==typeof navigator)return"en";const e=((navigator.language||navigator.languages&&navigator.languages[0]||"en")+"").split("-");return e[0]?e[0].toLowerCase():"en"}isRTLLocale(e){return Em.has(e.toLowerCase())}getDirection(){return this.config.direction}isEnabled(){return this.config.enabled}setDirection(e){this.config.direction!==e&&(this.config.direction=e,this.applyDirection(e),this.notifyListeners(e))}toggleDirection(){const e="ltr"===this.config.direction?"rtl":"ltr";return this.setDirection(e),e}enable(){this.config.enabled||(this.config.enabled=!0,this.applyDirection(this.config.direction))}disable(){this.config.enabled&&(this.config.enabled=!1,this.applyDirection("ltr"))}setLocale(e){if(this.config.locale=e.toLowerCase(),this.config.autoDetect){const t=this.isRTLLocale(e);this.setDirection(t?"rtl":"ltr")}}getLocale(){return this.config.locale}applyDirection(e){if("undefined"==typeof document)return;const t=document.documentElement,a=document.body;t.setAttribute("dir",e),a?.setAttribute("dir",e),this.config.dataAttribute&&(t.setAttribute(this.config.dataAttribute,e),a?.setAttribute(this.config.dataAttribute,e)),t.style.setProperty("--atomix-direction",e),t.style.setProperty("--atomix-text-direction",e)}onDirectionChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}notifyListeners(e){this.listeners.forEach((t=>{try{t(e)}catch(a){Bd().error("Error in RTL direction change listener",a instanceof Error?a:Error(a+""),{direction:e})}}))}getValue(e,t){return"rtl"===this.config.direction?t:e}getCSSProperty(e){return"rtl"===this.config.direction&&{left:"right",right:"left","margin-left":"margin-right","margin-right":"margin-left","padding-left":"padding-right","padding-right":"padding-left","border-left":"border-right","border-right":"border-left","border-left-width":"border-right-width","border-right-width":"border-left-width","text-align: left":"text-align: right","text-align: right":"text-align: left"}[e]||e}destroy(){if(this.listeners.clear(),"undefined"!=typeof document){const e=document.documentElement,t=document.body;e.removeAttribute("dir"),e.removeAttribute(this.config.dataAttribute),t?.removeAttribute("dir"),t?.removeAttribute(this.config.dataAttribute)}}}function Tm(e){return new Nm(e)}function Cm(e){return Em.has(e.toLowerCase())}function _m(e){return Cm(e)?"rtl":"ltr"}function Lm(e,t,a="ltr"){return"rtl"===a?t:e}function wm(e,t="atomix-theme"){Id(e,t)}function Im(e="atomix-theme"){Rd(e)}const Rm={"--atomix-button-bg":"background-color","--atomix-button-color":"text color","--atomix-button-padding-x":"horizontal padding","--atomix-button-padding-y":"vertical padding","--atomix-button-border-radius":"border radius","--atomix-button-border-width":"border width","--atomix-button-border-color":"border color","--atomix-button-font-size":"font size","--atomix-button-font-weight":"font weight","--atomix-button-font-family":"font family","--atomix-button-line-height":"line height","--atomix-button-min-width":"minimum width","--atomix-button-min-height":"minimum height","--atomix-button-transition":"transition","--atomix-button-hover-bg":"hover background","--atomix-button-hover-color":"hover text color","--atomix-button-hover-border-color":"hover border color","--atomix-button-active-bg":"active background","--atomix-button-active-color":"active text color","--atomix-button-focus-ring-color":"focus ring color","--atomix-button-focus-ring-width":"focus ring width","--atomix-button-disabled-opacity":"disabled opacity","--atomix-button-disabled-bg":"disabled background","--atomix-button-icon-size":"icon size","--atomix-button-icon-gap":"icon spacing","--atomix-button-spinner-size":"spinner size","--atomix-button-label-font-weight":"label font weight"},Om={"--atomix-card-bg":"background color","--atomix-card-color":"text color","--atomix-card-padding":"padding","--atomix-card-border-radius":"border radius","--atomix-card-border-width":"border width","--atomix-card-border-color":"border color","--atomix-card-box-shadow":"box shadow","--atomix-card-width":"width","--atomix-card-max-width":"maximum width","--atomix-card-hover-bg":"hover background","--atomix-card-hover-shadow":"hover shadow","--atomix-card-hover-transform":"hover transform","--atomix-card-header-padding":"header padding","--atomix-card-header-bg":"header background","--atomix-card-header-border-bottom":"header border bottom","--atomix-card-body-padding":"body padding","--atomix-card-body-font-size":"body font size","--atomix-card-footer-padding":"footer padding","--atomix-card-footer-bg":"footer background","--atomix-card-footer-border-top":"footer border top","--atomix-card-title-font-size":"title font size","--atomix-card-title-font-weight":"title font weight","--atomix-card-title-color":"title color","--atomix-card-title-margin-bottom":"title margin bottom","--atomix-card-image-border-radius":"image border radius","--atomix-card-image-max-height":"image max height"},km={"--atomix-input-bg":"background color","--atomix-input-color":"text color","--atomix-input-padding-x":"horizontal padding","--atomix-input-padding-y":"vertical padding","--atomix-input-border-radius":"border radius","--atomix-input-border-width":"border width","--atomix-input-border-color":"border color","--atomix-input-font-size":"font size","--atomix-input-font-family":"font family","--atomix-input-line-height":"line height","--atomix-input-height":"height","--atomix-input-placeholder-color":"placeholder color","--atomix-input-hover-border-color":"hover border color","--atomix-input-focus-border-color":"focus border color","--atomix-input-focus-ring-color":"focus ring color","--atomix-input-focus-ring-width":"focus ring width","--atomix-input-disabled-bg":"disabled background","--atomix-input-disabled-opacity":"disabled opacity","--atomix-input-invalid-border-color":"invalid border color","--atomix-input-valid-border-color":"valid border color"},jm={"--atomix-modal-bg":"background color","--atomix-modal-color":"text color","--atomix-modal-padding":"padding","--atomix-modal-border-radius":"border radius","--atomix-modal-box-shadow":"box shadow","--atomix-modal-width":"width","--atomix-modal-max-width":"maximum width","--atomix-modal-max-height":"maximum height","--atomix-modal-backdrop-bg":"backdrop background","--atomix-modal-backdrop-opacity":"backdrop opacity","--atomix-modal-backdrop-blur":"backdrop blur","--atomix-modal-header-padding":"header padding","--atomix-modal-header-border-bottom":"header border bottom","--atomix-modal-title-font-size":"title font size","--atomix-modal-title-font-weight":"title font weight","--atomix-modal-body-padding":"body padding","--atomix-modal-body-font-size":"body font size","--atomix-modal-footer-padding":"footer padding","--atomix-modal-footer-border-top":"footer border top","--atomix-modal-footer-gap":"footer button gap","--atomix-modal-close-size":"close button size","--atomix-modal-close-color":"close button color","--atomix-modal-close-hover-color":"close button hover color"},Mm={"--atomix-dropdown-bg":"background color","--atomix-dropdown-color":"text color","--atomix-dropdown-border-radius":"border radius","--atomix-dropdown-border-width":"border width","--atomix-dropdown-border-color":"border color","--atomix-dropdown-box-shadow":"box shadow","--atomix-dropdown-min-width":"minimum width","--atomix-dropdown-max-height":"maximum height","--atomix-dropdown-padding":"padding","--atomix-dropdown-item-padding":"item padding","--atomix-dropdown-item-font-size":"item font size","--atomix-dropdown-item-hover-bg":"item hover background","--atomix-dropdown-item-hover-color":"item hover color","--atomix-dropdown-item-active-bg":"item active background","--atomix-dropdown-item-active-color":"item active color","--atomix-dropdown-item-disabled-opacity":"item disabled opacity","--atomix-dropdown-divider-color":"divider color","--atomix-dropdown-divider-margin":"divider margin","--atomix-dropdown-header-padding":"header padding","--atomix-dropdown-header-font-size":"header font size","--atomix-dropdown-header-font-weight":"header font weight","--atomix-dropdown-header-color":"header color"},Dm={"--atomix-badge-bg":"background color","--atomix-badge-color":"text color","--atomix-badge-padding-x":"horizontal padding","--atomix-badge-padding-y":"vertical padding","--atomix-badge-border-radius":"border radius","--atomix-badge-font-size":"font size","--atomix-badge-font-weight":"font weight","--atomix-badge-line-height":"line height","--atomix-badge-icon-size":"icon size","--atomix-badge-icon-gap":"icon spacing"},Pm={"--atomix-tabs-bg":"background color","--atomix-tabs-border-color":"border color","--atomix-tabs-border-width":"border width","--atomix-tabs-nav-gap":"nav gap","--atomix-tabs-nav-padding":"nav padding","--atomix-tabs-btn-padding-x":"button horizontal padding","--atomix-tabs-btn-padding-y":"button vertical padding","--atomix-tabs-btn-color":"button color","--atomix-tabs-btn-font-size":"button font size","--atomix-tabs-btn-font-weight":"button font weight","--atomix-tabs-btn-hover-color":"button hover color","--atomix-tabs-btn-active-color":"button active color","--atomix-tabs-btn-active-border-color":"button active border color","--atomix-tabs-btn-active-border-width":"button active border width","--atomix-tabs-panel-padding":"panel padding","--atomix-tabs-panel-bg":"panel background"},Bm={"--atomix-progress-bg":"background color","--atomix-progress-height":"height","--atomix-progress-border-radius":"border radius","--atomix-progress-bar-bg":"bar background","--atomix-progress-bar-transition":"bar transition"},zm={"--atomix-tooltip-bg":"background color","--atomix-tooltip-color":"text color","--atomix-tooltip-padding-x":"horizontal padding","--atomix-tooltip-padding-y":"vertical padding","--atomix-tooltip-border-radius":"border radius","--atomix-tooltip-font-size":"font size","--atomix-tooltip-max-width":"maximum width","--atomix-tooltip-box-shadow":"box shadow","--atomix-tooltip-z-index":"z-index","--atomix-tooltip-arrow-size":"arrow size","--atomix-tooltip-arrow-color":"arrow color"},Fm={"--atomix-checkbox-size":"checkbox size","--atomix-checkbox-bg":"background color","--atomix-checkbox-border-color":"border color","--atomix-checkbox-border-width":"border width","--atomix-checkbox-border-radius":"border radius","--atomix-checkbox-transition":"transition","--atomix-checkbox-checked-bg":"checked background","--atomix-checkbox-checked-border-color":"checked border color","--atomix-checkbox-hover-border-color":"hover border color","--atomix-checkbox-focus-ring-color":"focus ring color","--atomix-checkbox-focus-ring-width":"focus ring width","--atomix-checkbox-disabled-opacity":"disabled opacity","--atomix-checkbox-invalid-border-color":"invalid border color","--atomix-checkbox-icon-size":"icon size","--atomix-checkbox-icon-color":"icon color","--atomix-checkbox-label-gap":"label spacing","--atomix-checkbox-label-font-size":"label font size","--atomix-checkbox-label-color":"label color"},Um={"--atomix-radio-size":"radio size","--atomix-radio-bg":"background color","--atomix-radio-border-color":"border color","--atomix-radio-border-width":"border width","--atomix-radio-transition":"transition","--atomix-radio-checked-bg":"checked background","--atomix-radio-checked-border-color":"checked border color","--atomix-radio-hover-border-color":"hover border color","--atomix-radio-focus-ring-color":"focus ring color","--atomix-radio-focus-ring-width":"focus ring width","--atomix-radio-disabled-opacity":"disabled opacity","--atomix-radio-invalid-border-color":"invalid border color","--atomix-radio-dot-size":"dot size","--atomix-radio-dot-color":"dot color","--atomix-radio-label-gap":"label spacing","--atomix-radio-label-font-size":"label font size","--atomix-radio-label-color":"label color"},Gm={Button:Rm,Card:Om,Input:km,Modal:jm,Dropdown:Mm,Badge:Dm,Tabs:Pm,Progress:Bm,Tooltip:zm,Checkbox:Fm,Radio:Um};function Vm(e,t){if(e||t)return e?t?{className:[e.className,t.className].filter(Boolean).join(" "),style:{...e.style,...t.style}}:e:t}function Hm(e,t){const{performanceAnalysis:a=!0,compatibilityReport:n=!0}=t||{},r=[],o=[];let i="low";const s=ud(e);r.push(...s),a&&(i=function(e){let t=0;if(e.interactiveEffects){const a=e.interactiveEffects;a.vortex?.enabled&&(t+=2),a.chromaticAberration?.enabled&&(t+=1),a.mouseInteraction?.trailEffect&&(t+=1),a.mouseInteraction?.pressureSensitivity&&(t+=1)}if(e.visualPolish){const a=e.visualPolish;a.borders?.iridescentGlow&&(t+=1),a.borders?.shimmerEffect&&(t+=1),a.contentAwareBlur?.enabled&&(t+=2),a.holographicEffects?.enabled&&(t+=2),a.holographicEffects?.scanlineAnimation&&(t+=1),a.holographicEffects?.dataStream&&(t+=1),a.holographicEffects?.pulseRings&&(t+=1)}return e.optimization?.autoScaling?.enabled&&(t-=1),6>t?3>t?"low":"medium":"high"}(e)),function(e,t){(e.interactiveEffects||e.visualPolish?.holographicEffects?.enabled)&&(e.optimization?.autoScaling?.enabled||t.push("Consider enabling auto-scaling in optimization settings to adjust effects based on device performance: optimization.autoScaling.enabled = true"),e.optimization?.performance?.fpsTarget||t.push("Set a target FPS in optimization.performance.fpsTarget to ensure smooth performance when using interactive effects")),e.optimization&&!e.optimization.responsive&&t.push("Consider adding responsive breakpoints in optimization.responsive.breakpoints to adapt advanced effects based on device type"),e.visualPolish?.holographicEffects?.enabled&&t.push("For better performance on lower-end devices, consider conditionally disabling holographic effects based on device capabilities"),e.visualPolish?.contentAwareBlur?.enabled&&t.push("Content-aware blur can be expensive; consider setting a maximum blur radius or using simpler blur techniques for mobile devices"),e.interactiveEffects?.chromaticAberration?.enabled&&(e.interactiveEffects.chromaticAberration.redShift&&Math.abs(e.interactiveEffects.chromaticAberration.redShift)>.05&&t.push("High chromatic aberration red shift values (>0.05) may cause discomfort for some users; consider reducing to improve accessibility"),e.interactiveEffects.chromaticAberration.blueShift&&Math.abs(e.interactiveEffects.chromaticAberration.blueShift)>.05&&t.push("High chromatic aberration blue shift values (>0.05) may cause discomfort for some users; consider reducing to improve accessibility"))}(e,o);const l=0===r.length,c=n?function(e){return{browsers:!(e.visualPolish?.holographicEffects?.enabled||e.visualPolish?.contentAwareBlur?.enabled||e.interactiveEffects?.vortex?.enabled||e.interactiveEffects?.chromaticAberration?.enabled),ssr:!0,frameworks:["react","vue","angular","svelte","vanillajs"]}}(e):{browsers:!0,ssr:!0,frameworks:["react","vue","angular","svelte","vanillajs"]};return{isValid:l,warnings:r,suggestions:o,performanceImpact:i,compatibility:c}}const $m=wl,Ym=yl,Km=td,Wm=ad,qm=Object.freeze({__proto__:null,DesignTokensCustomizer:pm,RTLManager:Nm,ThemeApplicator:Wu,ThemeComparator:am,ThemeContext:_u,ThemeErrorBoundary:$u,ThemeInspector:tm,ThemeLiveEditor:hm,ThemePreview:Ju,ThemeProvider:Uu,ThemeToggle:Ku,ThemeValidator:em,alpha:hu,applyCSSVariables:Js,applyComponentTheme:Tu,applyTheme:Xu,camelToKebab:yu,clearThemePreference:eu,clearThemes:_d,configToTokens:ld,createPerformanceMonitor:bm,createRTLManager:Tm,createResponsiveUtil:Sm,createSpacing:gu,createTheme:gd,createThemeRegistry:Sd,createTokens:rd,cssVarsToStyle:al,darken:mu,deepMerge:bd,default:{createTheme:gd,injectTheme:wm,removeTheme:Im,ThemeProvider:Uu,useTheme:Gu,useThemeTokens:Vu,ThemeContext:_u,ThemeErrorBoundary:$u,configToTokens:ld,designTokensToCSSVars:dd,switchTheme:Kd,toggleTheme:Wd,getCurrentTheme:qd,getSystemTheme:Qd,initializeTheme:Xd,listenToSystemTheme:Zd,persistTheme:Jd,clearThemePreference:eu,mergeTokens:tu,overrideTokens:au,pickTokens:nu,omitTokens:ru,hexToRgb:ou,rgbToHex:iu,getLuminance:su,getContrastRatio:lu,isAccessible:cu,getContrastText:du,lighten:uu,darken:mu,alpha:hu,emphasize:pu,createSpacing:gu,createPerformanceMonitor:bm,usePerformanceMonitor:xm,createResponsiveUtil:Sm,useResponsive:ym,ThemeToggle:Ku,ThemeApplicator:Wu,applyTheme:Xu,getThemeApplicator:Qu,createThemeRegistry:Sd,registerTheme:yd,unregisterTheme:Ed,hasTheme:Ad,getTheme:Nd,getAllThemes:Td,getThemeIds:Cd,clearThemes:_d,getThemeCount:Ld,deepMerge:bd,mergeTheme:xd,extendTheme:vd,createTokens:rd,defaultTokens:nd,generateCSSVariables:od,generateCSSVariablesForSelector:id,generateClassName:xu,generateCSSVariableName:vu,normalizeThemeTokens:Su,camelToKebab:yu,themePropertyToCSSVar:Eu,getComponentThemeValue:Au,generateComponentCSSVars:Nu,applyComponentTheme:Tu,useComponentTheme:Cu,useThemeSwitcher:Yu,isDesignTokens:gm,mapSCSSTokensToCSSVars:Zs,applyCSSVariables:Js,removeCSSVariables:el,getCSSVariable:tl,cssVarsToStyle:al,mergeCSSVars:nl,isValidCSSVariableName:rl,extractComponentName:ol,injectCSS:Id,removeCSS:Rd,isCSSInjected:Od,RTLManager:Nm,createRTLManager:Tm,isRTLLocale:Cm,getDirectionFromLocale:_m,rtlCSS:Lm},defaultTokens:nd,designTokensToCSSVars:dd,emphasize:pu,extendTheme:vd,extractComponentName:ol,generateCSSVariableName:vu,generateCSSVariables:od,generateCSSVariablesForSelector:id,generateClassName:xu,generateComponentCSSVars:Nu,getAllThemes:Td,getCSSVariable:tl,getComponentThemeValue:Au,getContrastRatio:lu,getContrastText:du,getCurrentTheme:qd,getDirectionFromLocale:_m,getLuminance:su,getSystemTheme:Qd,getTheme:Nd,getThemeApplicator:Qu,getThemeCount:Ld,getThemeIds:Cd,hasTheme:Ad,hexToRgb:ou,initializeTheme:Xd,injectCSS:Id,injectTheme:wm,isAccessible:cu,isCSSInjected:Od,isDesignTokens:gm,isRTLLocale:Cm,isValidCSSVariableName:rl,lighten:uu,listenToSystemTheme:Zd,mapSCSSTokensToCSSVars:Zs,mergeCSSVars:nl,mergeTheme:xd,mergeTokens:tu,normalizeThemeTokens:Su,omitTokens:ru,overrideTokens:au,persistTheme:Jd,pickTokens:nu,registerTheme:yd,removeCSS:Rd,removeCSSVariables:el,removeTheme:Im,rgbToHex:iu,rtlCSS:Lm,switchTheme:Kd,themePropertyToCSSVar:Eu,toggleTheme:Wd,unregisterTheme:Ed,useComponentTheme:Cu,useHistory:um,usePerformanceMonitor:xm,useResponsive:ym,useTheme:Gu,useThemeSwitcher:Yu,useThemeTokens:Vu}),Qm={...ed,...Yl,composables:$m,utils:Ym,constants:Wm,types:Km};e.ACCORDION=fn,e.ATOMIX_GLASS=dr,e.AVATAR=qn,e.AVATAR_GROUP=Qn,e.Accordion=po,e.AreaChart=zi,e.AtomixGlass=so,e.AtomixLogo=go,e.Avatar=ko,e.AvatarGroup=jo,e.BADGE=bn,e.BADGE_CSS_VARS=Dm,e.BALANCED_PRESET=eo,e.BLOCK=lr,e.BREADCRUMB=Sn,e.BUTTON=hn,e.BUTTON_CSS_VARS=Rm,e.BUTTON_GROUP=pn,e.Badge=Do,e.BarChart=Ui,e.Block=zo,e.Breadcrumb=Uo,e.BubbleChart=Gi,e.Button=mi,e.ButtonGroup=hi,e.CALLOUT=gn,e.CARD=Yn,e.CARD_CSS_VARS=Om,e.CHART=ir,e.CHECKBOX_CSS_VARS=Fm,e.CLASS_PREFIX=dn,e.CODE_SNIPPET=sr,e.COMPONENT_CSS_VARS=Gm,e.COUNTDOWN=yn,e.Callout=Ei,e.CandlestickChart=Vi,e.Card=Li,e.Chart=ji,e.ChartRenderer=Di,e.Checkbox=fs,e.ColorModeToggle=cs,e.Container=Po,e.Countdown=ds,e.DATA_TABLE_CLASSES=Bn,e.DATA_TABLE_SELECTORS=zn,e.DATEPICKER=tr,e.DEFAULT_ATOMIX_FONTS=Sl,e.DEFAULT_BREAKPOINTS=Vr,e.DROPDOWN=Jn,e.DROPDOWN_CSS_VARS=Mm,e.DataTable=Ts,e.DatePicker=Is,e.DesignTokensCustomizer=pm,e.DeviceDetector=oo,e.DonutChart=Hi,e.Dropdown=Ns,e.EDGE_PANEL=Pn,e.EdgePanel=Ps,e.ElevationCard=wi,e.FOOTER=cr,e.FORM=Gn,e.FORM_GROUP=Vn,e.Footer=Vl,e.FooterLink=Wl,e.FooterSection=Kl,e.FooterSocialLink=zl,e.Form=zs,e.FormGroup=Us,e.FunnelChart=$i,e.GaugeChart=Yi,e.Grid=Fl,e.GridCol=Ul,e.HERO=En,e.HeatmapChart=Wi,e.Hero=Ql,e.INPUT=Hn,e.INPUT_CSS_VARS=km,e.Icon=Oo,e.Input=Vs,e.LIST=xn,e.LIST_GROUP=vn,e.LineChart=Qi,e.List=Jl,e.ListGroup=ec,e.MESSAGES=Zn,e.MOBILE_OPTIMIZED_BREAKPOINTS=no,e.MODAL=Xn,e.MODAL_CSS_VARS=jm,e.MasonryGrid=Hl,e.MasonryGridItem=$l,e.MegaMenu=Sc,e.MegaMenuColumn=yc,e.MegaMenuLink=Ec,e.Menu=fc,e.MenuDivider=vc,e.MenuItem=bc,e.Messages=tc,e.Modal=sc,e.MultiAxisChart=Xi,e.NAV=jn,e.NAVBAR=kn,e.Nav=lc,e.NavDropdown=Ac,e.NavItem=uc,e.Navbar=mc,e.PAGINATION_DEFAULTS=Fn,e.PERFORMANCE_PRESET=Jr,e.PHOTOVIEWER=nr,e.POPOVER=Nn,e.PROGRESS=er,e.PROGRESS_CSS_VARS=Bm,e.Pagination=gs,e.PerformanceOverlay=Wr,e.PhotoViewer=wc,e.PieChart=Ji,e.Popover=Rc,e.ProductReview=jc,e.Progress=Mc,e.QUALITY_PRESET=to,e.RADIO=$n,e.RADIO_CSS_VARS=Um,e.RATING=Dn,e.RIVER=Rn,e.RTLManager=Nm,e.RadarChart=es,e.Radio=jl,e.Rating=kc,e.River=Dc,e.Row=Gl,e.SECTION_INTRO=In,e.SELECT=Kn,e.SIDE_MENU=Mn,e.SIZES=cn,e.SLIDER=or,e.SPINNER=wn,e.STEPS=_n,e.ScatterChart=ts,e.SectionIntro=Pc,e.Select=kl,e.SideMenu=gc,e.SideMenuItem=pc,e.SideMenuList=hc,e.Slider=Bc,e.Spinner=Vo,e.Steps=Fc,e.TAB=Cn,e.TABS_CSS_VARS=Pm,e.TESTIMONIAL=Ln,e.TEXTAREA=Wn,e.THEME_COLORS=ln,e.THEME_NAMING=un,e.TODO=Un,e.TOGGLE=Tn,e.TOOLTIP=An,e.TOOLTIP_CSS_VARS=zm,e.TYPEDBUTTON=mn,e.Tabs=Kc,e.Testimonial=Wc,e.Textarea=Ml,e.ThemeApplicator=Wu,e.ThemeComparator=am,e.ThemeContext=_u,e.ThemeErrorBoundary=$u,e.ThemeInspector=tm,e.ThemeLiveEditor=hm,e.ThemePreview=Ju,e.ThemeProvider=Uu,e.ThemeToggle=Ku,e.ThemeValidator=em,e.Todo=qc,e.Toggle=Qc,e.Tooltip=Xc,e.TreemapChart=os,e.UPLOAD=On,e.Upload=Zc,e.VIDEO_PLAYER=ar,e.VideoPlayer=Jc,e.WaterfallChart=is,e.alpha=hu,e.applyCSSVariables=Js,e.applyCSSVarsToStyle=function(e,t){var a;return{...di(a=Object.entries(e)).call(a,((e,[t,a])=>(e[t]="number"==typeof a?a+"px":a,e)),{}),...t}},e.applyComponentTheme=Tu,e.applyPartStyles=sl,e.applyTheme=Xu,e.camelToKebab=yu,e.clearThemePreference=eu,e.clearThemes=_d,e.composables=$m,e.configToTokens=ld,e.constants=Wm,e.createBreakpoints=Yr,e.createCSSVarStyle=ll,e.createDarkVariant=function(e){const t={name:e.name+" Dark",palette:{mode:"dark",primary:e.palette?.primary,secondary:e.palette?.secondary,error:e.palette?.error,warning:e.palette?.warning,info:e.palette?.info,success:e.palette?.success,background:{default:"#121212",paper:"#1e1e1e",subtle:"#1e1e1e"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"}}};return{...e,...t,palette:{...e.palette,...t.palette,background:{...e.palette?.background,...t.palette?.background},text:{...e.palette?.text,...t.palette?.text}}}},e.createDebugAttrs=hl,e.createFontPreloadLink=bl,e.createPartProps=ul,e.createPerformanceMonitor=bm,e.createRTLManager=Tm,e.createResponsiveUtil=Sm,e.createSlotComponent=function(e="div"){return function({slot:a,children:n,...r}){const o=r;if(a)return t.jsx(t.Fragment,{children:ui(a,o,n)});if("string"==typeof e){const a=e;return t.jsx(a,{...r,children:n})}const i=e;return t.jsx(i,{...o,children:n})}},e.createSlotProps=function(e){return e},e.createSpacing=gu,e.createTheme=gd,e.createThemeRegistry=Sd,e.createTokens=rd,e.cssVarsToStyle=al,e.darken=mu,e.deepMerge=bd,e.default=Qm,e.defaultTokens=nd,e.defineConfig=function(e){return e},e.designTokensToCSSVars=dd,e.emphasize=pu,e.exportTheme=function(e){return JSON.stringify(e,null,2)},e.extendTheme=vd,e.extractComponentName=ol,e.extractYouTubeId=fl,e.generateCSSVariableName=vu,e.generateCSSVariables=od,e.generateCSSVariablesForSelector=id,e.generateClassName=xu,e.generateComponentCSSVars=Nu,e.generateFontPreloadTags=vl,e.generateUUID=pl,e.getAllThemes=Td,e.getCSSVariable=tl,e.getComponentCSSVars=function(e){return Gm[e]},e.getComponentThemeValue=Au,e.getContrastRatio=lu,e.getContrastText=du,e.getCurrentTheme=qd,e.getDefaultBreakpoints=$r,e.getDevicePreset=ao,e.getDirectionFromLocale=_m,e.getLuminance=su,e.getMobileOptimizedParams=ro,e.getPartStyles=dl,e.getQualityMultipliers=qr,e.getSystemTheme=Qd,e.getTheme=Nd,e.getThemeApplicator=Qu,e.getThemeCount=Ld,e.getThemeIds=Cd,e.getThemeMetadata=function(e){return{name:e.name||"Custom Theme",description:e.description,author:e.author,version:e.version||"1.0.0",tags:e.tags||[],supportsDarkMode:"dark"===e.palette?.mode,status:"stable",color:e.palette?.primary?.main||"#7AFFD7"}},e.hasCustomization=ml,e.hasTheme=Ad,e.hexToRgb=ou,e.importTheme=function(e){try{return JSON.parse(e)}catch(t){throw Error("Invalid theme JSON")}},e.initializeTheme=Xd,e.injectCSS=Id,e.injectTheme=wm,e.isAccessible=cu,e.isCSSInjected=Od,e.isDesignTokens=gm,e.isRTLLocale=Cm,e.isSlot=function(e){return"object"==typeof e&&null!==e&&("render"in e||"component"in e||"children"in e)},e.isValidCSSVariableName=rl,e.isYouTubeUrl=gl,e.lighten=uu,e.listenToSystemTheme=Zd,e.loadAtomixConfig=hd,e.loadConfig=function(e){return hd({configPath:e?.configPath,required:e?.required??!1})},e.mapSCSSTokensToCSSVars=Zs,e.mergeCSSVars=nl,e.mergeClassNames=il,e.mergeComponentProps=cl,e.mergePartStyles=Vm,e.mergeSlots=function(...e){const t=e.filter((e=>void 0!==e));if(0!==t.length)return 1===t.length?t[0]:di(t).call(t,((e,t)=>({...e,...t})))},e.mergeTheme=xd,e.mergeTokens=tu,e.normalizeThemeTokens=Su,e.omitTokens=ru,e.overrideTokens=au,e.persistTheme=Jd,e.pickTokens=nu,e.preloadFonts=xl,e.printConfigReport=function(e,t){const a=Hm(e);a.warnings.length>0&&a.warnings.forEach((e=>{})),a.suggestions.length>0&&a.suggestions.forEach((e=>{}));const n=[];e.interactiveEffects&&n.push("Interactive Effects"),e.optimization&&n.push("Optimization"),e.visualPolish&&n.push("Visual Polish"),e.ai&&n.push("AI Integration"),e.tokenEngine&&n.push("Token Engine"),e.generator&&n.push("Component Generator"),n.length>0&&n.forEach((e=>{}))},e.quickTheme=function(e,t,a){return dm({name:e,palette:{primary:{main:t},secondary:a?{main:a}:void 0}})},e.registerTheme=yd,e.removeCSS=Rd,e.removeCSSVariables=el,e.removeTheme=Im,e.renderSlot=ui,e.resolveConfigPath=function(e){if("undefined"!=typeof window)return null;let t,a;try{const e="undefined"!=typeof require?require:void 0;e&&(t=e("fs"),a=e("path"))}catch(i){return null}if(!t||!a)return null;const{existsSync:n}=t,{join:r}=a;if(e){const t=r(process.cwd(),e);return n(t)?t:null}const o=[r(process.cwd(),"atomix.config.ts"),r(process.cwd(),"atomix.config.js"),r(process.cwd(),"atomix.config.json")];for(const s of o)if(n(s))return s;return null},e.rgbToHex=iu,e.rtlCSS=Lm,e.sliderConstants=rr,e.supportsDarkMode=function(e){var t;return"dark"===e.palette?.mode||!0===e.supportsDarkMode||!!(null==(t=e.a11y?.modes)?void 0:Function.call.bind(sn(t),t))?.("dark")},e.switchTheme=Kd,e.theme=qm,e.themePropertyToCSSVar=Eu,e.themeToCSS=function(e,t=":root"){return bu(e,{selector:t,prefix:"atomix"})},e.toggleTheme=Wd,e.types=Km,e.unregisterTheme=Ed,e.useAccordion=ur,e.useAtomixGlass=Gr,e.useBadge=Mo,e.useBarChart=Fi,e.useBlock=Bo,e.useChartData=Cl,e.useChartInteraction=Ll,e.useChartScale=_l,e.useComponentCustomization=function(e,t){const{theme:n}=Gu(),r=a.useMemo((()=>nl(n?.components?.[e]?.cssVars||{},t.cssVars||{})),[n,e,t.cssVars]),o=a.useMemo((()=>{const a=n?.components?.[e]?.parts||{},r=t.parts||{},o={};return new Set([...Object.keys(a),...Object.keys(r)]).forEach((e=>{o[e]=Vm(a[e],r[e])})),o}),[n,e,t.parts]),i=a.useMemo((()=>[n?.components?.[e]?.className||"",t.className||""].filter(Boolean).join(" ")),[n,e,t.className]),s=a.useMemo((()=>({...t.style})),[t.style]),l=a.useMemo((()=>{var e;return di(e=Object.entries(r)).call(e,((e,[t,a])=>(e[t]="number"==typeof a?a+"px":a,e)),{})}),[r]);return{cssVars:r,parts:o,className:i,style:s,cssVarStyle:l}},e.useComponentDefaultProps=function(e){const{theme:t}=Gu();return a.useMemo((()=>t?.components?.[e]?.defaultProps||{}),[t,e])},e.useComponentTheme=Cu,e.useEdgePanel=Rs,e.useForm=Bs,e.useFormGroup=Fs,e.useHero=Hs,e.useHistory=um,e.useInput=Gs,e.useLineChart=qi,e.useMergedProps=function(e,t){return a.useMemo((()=>({...e,...t})),[e,t])},e.useNav=Ks,e.useNavDropdown=qs,e.useNavItem=Ws,e.useNavbar=Ys,e.usePieChart=Zi,e.useRadio=Al,e.useResponsive=ym,e.useResponsiveGlass=Hr,e.useRiver=$s,e.useSelect=Nl,e.useSideMenu=Qs,e.useSideMenuItem=Xs,e.useSlot=function(e,t,n){return a.useMemo((()=>ui(e,t,n)),[e,t,n])},e.useSpinner=Go,e.useTextarea=Tl,e.useTheme=Gu,e.useThemeSwitcher=Yu,e.useThemeTokens=Vu,e.useTodo=El,e.utils=Ym,e.validateConfig=function(e){return ud(e)},e.validateConfiguration=Hm,e.validateTheme=function(e){const t=[];return e.name||t.push("Theme must have a name"),e.palette||t.push("Theme must have a palette"),e.palette&&!e.palette.primary&&t.push("Theme palette must have a primary color"),{valid:0===t.length,errors:t}},Object.defineProperty(e,"__esModule",{value:!0})}));
|