@apipass/design-system 1.12.0 → 1.12.1

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.
@@ -814,5 +814,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
814
814
  transform: rotate(360deg);
815
815
  }
816
816
  }
817
- `,Q6=new Map,p2=(t,r)=>{q1(()=>{if(typeof document>"u")return;let o=document,n=Q6.get(o);if(n){r&&n.setAttribute("nonce",r);return}let s=o.createElement("style");s.textContent=t,r&&s.setAttribute("nonce",r),o.head.appendChild(s),Q6.set(o,s)},[r])};function f2(t){return p2(h2,t.nonce),d.createElement(u2,{...t})}function C2({type:t}){switch(t){case"success":return e.jsx(L6,{size:"20"});case"error":return e.jsx(f1,{size:"20"});case"warning":return e.jsx(k6,{size:"20"});case"info":return e.jsx(M6,{size:"20"});default:return null}}function x2({className:t,position:r="top-right",autoClose:o=5e3,theme:n="colored",icon:s=C2,...a}){return e.jsx(f2,{className:h("apipass-toast-container",typeof t=="string"?t:void 0),position:r,autoClose:o,theme:n,icon:s,...a})}function j2(t){return t.hasChildItems??!!(t.children&&t.children.length>0)}function k2({className:t,items:r,renderItem:o,isNodeLoading:n,onItemAction:s,...a}){function c(l){return e.jsxs(f.TreeItem,{id:l.id,textValue:l.label,hasChildItems:j2(l),className:"tree-item",onAction:s?()=>s(l):void 0,children:[e.jsx(Y6,{children:o(l)}),l.children&&l.children.length>0&&e.jsx(f.Collection,{items:l.children,children:c}),((n==null?void 0:n(l.id))??!1)&&e.jsx(f.TreeItem,{id:`${l.id}::loading`,textValue:"Loading",isDisabled:!0,className:"tree-item",children:e.jsx(Y6,{children:e.jsx(l1,{size:"16",className:"tree-item-loading-icon"})})})]})}return e.jsx(f.Tree,{items:r,className:h(t,"tree"),...a,children:c})}function Y6({children:t}){return e.jsx(f.TreeItemContent,{children:({hasChildItems:r,level:o})=>e.jsxs("div",{className:"tree-item-row",style:{"--tree-item-depth":o-1},children:[r?e.jsx(f.Button,{slot:"chevron",className:"tree-item-chevron",children:e.jsx(m6,{size:"16"})}):e.jsx("span",{className:"tree-item-chevron-spacer","aria-hidden":"true"}),t]})})}function J({className:t,alignPrimary:r="start",alignSecondary:o="start",container:n=!1,direction:s="row",gap:a,type:c="auto",wrap:l=!1,...u}){const p=h(t,"flex",n&&"flex-container",`flex-align-primary-${r}`,`flex-align-secondary-${o}`,`flex-direction-${s}`,`flex-type-${c}`,a&&`flex-gap-${a}`,l&&"flex-wrap");return e.jsx("div",{className:p,...u,style:{...u.style,"--flex-align-primary":r,"--flex-align-secondary":o,"--flex-direction":s}})}function g2({className:t,children:r,size:o}){const n=h(t,"flex-item",o&&`flex-item-size-${o}`);return e.jsx("div",{className:n,children:r})}function v2({children:t,className:r,elementType:o="section",padding:n="600",paddingBottom:s,paddingTop:a,...c}){const{variant:l="subtle",...u}=c,p=h(r,"section",`section-variant-${c.variant}`,`section-padding-top-${a||n}`,`section-padding-bottom-${s||n}`),j=c.variant==="image"?e.jsx(w1,{alt:"Background image",role:"presentation",src:c.src,size:"fill",aspectRatio:"fill",className:"section-image"}):null;switch(o){case"section":return e.jsxs("section",{className:p,...u,children:[j," ",t]});case"header":return e.jsxs("header",{className:p,...u,children:[j," ",t]});case"footer":return e.jsxs("footer",{className:p,...u,children:[j," ",t]})}}function L2({className:t,columns:r="none",rows:o="none",gap:n,columnGap:s,rowGap:a,flow:c,container:l=!1,justifyItems:u="stretch",alignItems:p="stretch",style:j={},...C}){const m=h(t,"grid",l&&"grid-container",`grid-justify-items-${u}`,`grid-align-items-${p}`,n&&`grid-gap-${n}`,s&&`grid-column-gap-${s}`,a&&`grid-row-gap-${a}`,c&&`grid-flow-${c.replace(" ","-")}`),M={...j,display:"grid",gridTemplateColumns:r,gridTemplateRows:o,gap:n?`var(--sds-size-space-${n})`:void 0,columnGap:s?`var(--sds-size-space-${s})`:void 0,rowGap:a?`var(--sds-size-space-${a})`:void 0,justifyItems:u,alignItems:p};return e.jsx("div",{className:m,style:M,...C})}function m2({className:t,column:r,row:o,area:n,style:s={},...a}){const c=h(t,"grid-item"),l={...s};return r&&(l.gridColumn=r),o&&(l.gridRow=o),n&&(l.gridArea=n),e.jsx("div",{className:c,style:l,...a})}function $3({className:t,elementType:r="p",lineHeight:o="body",lineClamp:n,style:s,...a}){const c=h(t,!!n&&"text-truncate","text-body-base",`text-line-height-${o}`),l=n?{"--text-truncate-line-clamp":n,...s}:s;return e.jsx(f.Text,{style:l,elementType:r,className:c,...a})}function X1({className:t,elementType:r="small",lineHeight:o="body",lineClamp:n,style:s,...a}){const c=h(t,!!n&&"text-truncate","text-body-small",`text-line-height-${o}`),l=n?{"--text-truncate-line-clamp":n,...s}:s;return e.jsx(f.Text,{style:l,className:c,elementType:r,...a})}function M2({className:t,elementType:r="small",lineClamp:o,lineHeight:n="body",style:s,...a}){const c=h(t,!!o&&"text-truncate","text-body-small-strong",`text-line-height-${n}`),l=o?{"--text-truncate-line-clamp":o,...s}:s;return e.jsx(f.Text,{style:l,className:c,elementType:r,...a})}function K1({className:t,elementType:r="strong",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-body-strong"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function b2({className:t,elementType:r,...o}){const n=h(t,"text-body-emphasis");return e.jsx(f.Text,{className:n,elementType:r,...o})}function _2({className:t,...r}){const o=h(t,"text-body-link");return e.jsx(T1,{className:o,...r})}function y2({className:t,...r}){const o=h(t,"text-body-code");return e.jsx(f.Text,{className:o,...r})}function I2({className:t,...r}){const o=h(t,"text-input");return e.jsx(f.Text,{className:o,...r})}function Q1({className:t,elementType:r="h1",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-title-hero"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function Z6({className:t,elementType:r="h2",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-title-page"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function Y1({className:t,elementType:r="p",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-subtitle"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function S3({className:t,elementType:r="h3",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-heading"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function J1({className:t,elementType:r="p",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-subheading"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function w2({className:t,currency:r,size:o="large",price:n,label:s,...a}){const c=h(t,"text-price",`text-price-size-${o}`),l=e.jsxs(e.Fragment,{children:[e.jsx("sup",{className:"text-price-currency",children:r}),n]});return e.jsxs(f.Text,{elementType:"p",className:c,...a,children:[o==="small"?e.jsx(S3,{elementType:"span",children:l}):e.jsx(Z6,{elementType:"span",children:l}),s&&e.jsx(X1,{children:s})]})}function H2({className:t,...r}){const o=h(t,"text-list-item");return e.jsx("li",{className:o,...r})}function ee({children:t,className:r,density:o="default",title:n,...s}){const a=h(r,"text-list",`text-list-density-${o}`);return e.jsxs("ul",{className:a,...s,children:[n&&e.jsx("li",{className:"text-list-title",children:n}),t]})}function T2({className:t,...r}){const o=h(t,"text-link-list");return e.jsx(ee,{className:o,...r})}function V2({align:t="start",className:r,heading:o,subheading:n,...s}){const a=h(r,"text-content-heading",`text-align-${t}`);return e.jsxs(J,{direction:"column",gap:"200",className:a,...s,children:[e.jsx(S3,{children:o}),n&&e.jsx(J1,{children:n})]})}function P2({align:t="start",className:r,title:o,subtitle:n,...s}){const a=h(r,"text-content-title"),{isMobile:c}=S6();return e.jsxs(J,{direction:"column",gap:"200",className:a,...s,children:[c?e.jsx(Z6,{className:`text-align-${t}`,children:o}):e.jsx(Q1,{className:`text-align-${t}`,children:o}),n&&e.jsx(Y1,{className:`text-align-${t}`,children:n})]})}function $2({className:t,placeholder:r,label:o,description:n,errorMessage:s,...a}){const c=h(t,"field");return e.jsxs(f.TextField,{className:c,...a,children:[o&&e.jsx(G,{children:o}),e.jsx(te,{placeholder:r}),n&&e.jsx(X,{children:n}),e.jsx(e3,{children:s})]})}const te=d.forwardRef(function({isResizable:r=!0,...o},n){const s=h("text-area",r&&"text-area-resizable");return e.jsx(f.TextArea,{ref:n,className:s,...o})}),t6=typeof document<"u"?d.useLayoutEffect:()=>{};var i6;const N2=(i6=d.useInsertionEffect)!==null&&i6!==void 0?i6:t6;function W2(t){const r=d.useRef(null);return N2(()=>{r.current=t},[t]),d.useCallback((...o)=>{const n=r.current;return n==null?void 0:n(...o)},[])}const F3={prefix:String(Math.round(Math.random()*1e10)),current:0},re=d.createContext(F3),E2=d.createContext(!1);let S2=!!(typeof window<"u"&&window.document&&window.document.createElement),a6=new WeakMap;function Z2(t=!1){let r=d.useContext(re),o=d.useRef(null);if(o.current===null&&!t){var n,s;let a=(s=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||s===void 0||(n=s.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let c=a6.get(a);c==null?a6.set(a,{id:r.current,state:a.memoizedState}):a.memoizedState!==c.state&&(r.current=c.id,a6.delete(a))}o.current=++r.current}return o.current}function D2(t){let r=d.useContext(re);r===F3&&!S2&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let o=Z2(!!t),n=r===F3&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return t||`${n}-${o}`}function O2(t){let r=d.useId(),[o]=d.useState(z2()),n=o||process.env.NODE_ENV==="test"?"react-aria":`react-aria${F3.prefix}`;return t||`${n}-${r}`}const R2=typeof d.useId=="function"?O2:D2;function A2(){return!1}function F2(){return!0}function B2(t){return()=>{}}function z2(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(B2,A2,F2):d.useContext(E2)}let U2=!!(typeof window<"u"&&window.document&&window.document.createElement),m3=new Map,w3;typeof FinalizationRegistry<"u"&&(w3=new FinalizationRegistry(t=>{m3.delete(t)}));function G2(t){let[r,o]=d.useState(t),n=d.useRef(null),s=R2(r),a=d.useRef(null);if(w3&&w3.register(a,s),U2){const c=m3.get(s);c&&!c.includes(n)?c.push(n):m3.set(s,[n])}return t6(()=>{let c=s;return()=>{w3&&w3.unregister(a),m3.delete(c)}},[s]),d.useEffect(()=>{let c=n.current;return c&&o(c),()=>{c&&(n.current=null)}}),s}function q2(t,r){if(t===r)return t;let o=m3.get(t);if(o)return o.forEach(s=>s.current=r),r;let n=m3.get(r);return n?(n.forEach(s=>s.current=t),t):r}function X2(...t){return(...r)=>{for(let o of t)typeof o=="function"&&o(...r)}}const j3=t=>{var r;return(r=t==null?void 0:t.ownerDocument)!==null&&r!==void 0?r:document},p6=t=>t&&"window"in t&&t.window===t?t:j3(t).defaultView||window;function K2(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function Q2(t){return K2(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Y2=!1;function D6(){return Y2}function J2(t,r){if(!D6())return r&&t?t.contains(r):!1;if(!t||!r)return!1;let o=r;for(;o!==null;){if(o===t)return!0;o.tagName==="SLOT"&&o.assignedSlot?o=o.assignedSlot.parentNode:Q2(o)?o=o.host:o=o.parentNode}return!1}const B3=(t=document)=>{var r;if(!D6())return t.activeElement;let o=t.activeElement;for(;o&&"shadowRoot"in o&&(!((r=o.shadowRoot)===null||r===void 0)&&r.activeElement);)o=o.shadowRoot.activeElement;return o};function e4(t){return D6()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}function f6(...t){let r={...t[0]};for(let o=1;o<t.length;o++){let n=t[o];for(let s in n){let a=r[s],c=n[s];typeof a=="function"&&typeof c=="function"&&s[0]==="o"&&s[1]==="n"&&s.charCodeAt(2)>=65&&s.charCodeAt(2)<=90?r[s]=X2(a,c):(s==="className"||s==="UNSAFE_className")&&typeof a=="string"&&typeof c=="string"?r[s]=h(a,c):s==="id"&&a&&c?r.id=q2(a,c):r[s]=c!==void 0?c:a}}return r}function J6(t){if(t4())t.focus({preventScroll:!0});else{let r=r4(t);t.focus(),o4(r)}}let O3=null;function t4(){if(O3==null){O3=!1;try{document.createElement("div").focus({get preventScroll(){return O3=!0,!0}})}catch{}}return O3}function r4(t){let r=t.parentNode,o=[],n=document.scrollingElement||document.documentElement;for(;r instanceof HTMLElement&&r!==n;)(r.offsetHeight<r.scrollHeight||r.offsetWidth<r.scrollWidth)&&o.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),r=r.parentNode;return n instanceof HTMLElement&&o.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),o}function o4(t){for(let{element:r,scrollTop:o,scrollLeft:n}of t)r.scrollTop=o,r.scrollLeft=n}function r6(t){var r;if(typeof window>"u"||window.navigator==null)return!1;let o=(r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands;return Array.isArray(o)&&o.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function O6(t){var r;return typeof window<"u"&&window.navigator!=null?t.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function i3(t){if(process.env.NODE_ENV==="test")return t;let r=null;return()=>(r==null&&(r=t()),r)}const R6=i3(function(){return O6(/^Mac/i)}),n4=i3(function(){return O6(/^iPhone/i)}),s4=i3(function(){return O6(/^iPad/i)||R6()&&navigator.maxTouchPoints>1}),i4=i3(function(){return n4()||s4()});i3(function(){return R6()||i4()});i3(function(){return r6(/AppleWebKit/i)&&!a4()});const a4=i3(function(){return r6(/Chrome/i)}),c4=i3(function(){return r6(/Android/i)});i3(function(){return r6(/Firefox/i)});let a3=new Map,C6=new Set;function e1(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let r=n=>{if(!t(n)||!n.target)return;let s=a3.get(n.target);s||(s=new Set,a3.set(n.target,s),n.target.addEventListener("transitioncancel",o,{once:!0})),s.add(n.propertyName)},o=n=>{if(!t(n)||!n.target)return;let s=a3.get(n.target);if(s&&(s.delete(n.propertyName),s.size===0&&(n.target.removeEventListener("transitioncancel",o),a3.delete(n.target)),a3.size===0)){for(let a of C6)a();C6.clear()}};document.body.addEventListener("transitionrun",r),document.body.addEventListener("transitionend",o)}typeof document<"u"&&(document.readyState!=="loading"?e1():document.addEventListener("DOMContentLoaded",e1));function l4(){for(const[t]of a3)"isConnected"in t&&!t.isConnected&&a3.delete(t)}function d4(t){requestAnimationFrame(()=>{l4(),a3.size===0?t():C6.add(t)})}function u4(){let t=d.useRef(new Map),r=d.useCallback((s,a,c,l)=>{let u=l!=null&&l.once?(...p)=>{t.current.delete(c),c(...p)}:c;t.current.set(c,{type:a,eventTarget:s,fn:u,options:l}),s.addEventListener(a,u,l)},[]),o=d.useCallback((s,a,c,l)=>{var u;let p=((u=t.current.get(c))===null||u===void 0?void 0:u.fn)||c;s.removeEventListener(a,p,l),t.current.delete(c)},[]),n=d.useCallback(()=>{t.current.forEach((s,a)=>{o(s.eventTarget,s.type,a,s.options)})},[o]);return d.useEffect(()=>n,[n]),{addGlobalListener:r,removeGlobalListener:o,removeAllGlobalListeners:n}}function h4(t,r){t6(()=>{if(t&&t.ref&&r)return t.ref.current=r.current,()=>{t.ref&&(t.ref.current=null)}})}function p4(t){return t.pointerType===""&&t.isTrusted?!0:c4()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function f4(t,r,o){let[n,s]=d.useState(t||r),a=d.useRef(t!==void 0),c=t!==void 0;d.useEffect(()=>{let p=a.current;p!==c&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}.`),a.current=c},[c]);let l=c?t:n,u=d.useCallback((p,...j)=>{let C=(m,...M)=>{o&&(Object.is(l,m)||o(m,...M)),c||(l=m)};typeof p=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s((M,...b)=>{let x=p(c?l:M,...b);return C(x,...j),c?M:x})):(c||s(p),C(p,...j))},[c,l,o]);return[l,u]}function C4(t){let r=t;return r.nativeEvent=t,r.isDefaultPrevented=()=>r.defaultPrevented,r.isPropagationStopped=()=>r.cancelBubble,r.persist=()=>{},r}function x4(t){let r=d.useRef({isFocused:!1,observer:null});t6(()=>{const n=r.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let o=W2(n=>{t==null||t(n)});return d.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){r.current.isFocused=!0;let s=n.target,a=c=>{if(r.current.isFocused=!1,s.disabled){let l=C4(c);o(l)}r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};s.addEventListener("focusout",a,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&s.disabled){var c;(c=r.current.observer)===null||c===void 0||c.disconnect();let l=s===document.activeElement?null:document.activeElement;s.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),r.current.observer.observe(s,{attributes:!0,attributeFilter:["disabled"]})}},[o])}let j4=!1,M3=null,k4=new Set,T3=new Map,C3=!1,x6=!1;function A6(t,r){for(let o of k4)o(t,r)}function g4(t){return!(t.metaKey||!R6()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function z3(t){C3=!0,g4(t)&&(M3="keyboard",A6("keyboard",t))}function q(t){M3="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(C3=!0,A6("pointer",t))}function oe(t){p4(t)&&(C3=!0,M3="virtual")}function ne(t){t.target===window||t.target===document||j4||!t.isTrusted||(!C3&&!x6&&(M3="virtual",A6("virtual",t)),C3=!1,x6=!1)}function se(){C3=!1,x6=!0}function t1(t){if(typeof window>"u"||typeof document>"u"||T3.get(p6(t)))return;const r=p6(t),o=j3(t);let n=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){C3=!0,n.apply(this,arguments)},o.addEventListener("keydown",z3,!0),o.addEventListener("keyup",z3,!0),o.addEventListener("click",oe,!0),r.addEventListener("focus",ne,!0),r.addEventListener("blur",se,!1),typeof PointerEvent<"u"?(o.addEventListener("pointerdown",q,!0),o.addEventListener("pointermove",q,!0),o.addEventListener("pointerup",q,!0)):process.env.NODE_ENV==="test"&&(o.addEventListener("mousedown",q,!0),o.addEventListener("mousemove",q,!0),o.addEventListener("mouseup",q,!0)),r.addEventListener("beforeunload",()=>{ie(t)},{once:!0}),T3.set(r,{focus:n})}const ie=(t,r)=>{const o=p6(t),n=j3(t);r&&n.removeEventListener("DOMContentLoaded",r),T3.has(o)&&(o.HTMLElement.prototype.focus=T3.get(o).focus,n.removeEventListener("keydown",z3,!0),n.removeEventListener("keyup",z3,!0),n.removeEventListener("click",oe,!0),o.removeEventListener("focus",ne,!0),o.removeEventListener("blur",se,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",q,!0),n.removeEventListener("pointermove",q,!0),n.removeEventListener("pointerup",q,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",q,!0),n.removeEventListener("mousemove",q,!0),n.removeEventListener("mouseup",q,!0)),T3.delete(o))};function v4(t){const r=j3(t);let o;return r.readyState!=="loading"?t1(t):(o=()=>{t1(t)},r.addEventListener("DOMContentLoaded",o)),()=>ie(t,o)}typeof document<"u"&&v4();function L4(){return M3!=="pointer"}function ae(){return M3}function m4(t){const r=j3(t),o=B3(r);if(ae()==="virtual"){let n=o;d4(()=>{B3(r)===n&&t.isConnected&&J6(t)})}else J6(t)}function M4(t){let{isDisabled:r,onFocus:o,onBlur:n,onFocusChange:s}=t;const a=d.useCallback(u=>{if(u.target===u.currentTarget)return n&&n(u),s&&s(!1),!0},[n,s]),c=x4(a),l=d.useCallback(u=>{const p=j3(u.target),j=p?B3(p):B3();u.target===u.currentTarget&&j===e4(u.nativeEvent)&&(o&&o(u),s&&s(!0),c(u))},[s,o,c]);return{focusProps:{onFocus:!r&&(o||s||n)?l:void 0,onBlur:!r&&(n||s)?a:void 0}}}function r1(t){if(!t)return;let r=!0;return o=>{let n={...o,preventDefault(){o.preventDefault()},isDefaultPrevented(){return o.isDefaultPrevented()},stopPropagation(){r&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):r=!0},continuePropagation(){r=!1},isPropagationStopped(){return r}};t(n),r&&o.stopPropagation()}}function b4(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:r1(t.onKeyDown),onKeyUp:r1(t.onKeyUp)}}}let _4=d.createContext(null);function y4(t){let r=d.useContext(_4)||{};h4(r,t);let{ref:o,...n}=r;return n}function I4(t,r){let{focusProps:o}=M4(t),{keyboardProps:n}=b4(t),s=f6(o,n),a=y4(r),c=t.isDisabled?{}:a,l=d.useRef(t.autoFocus);d.useEffect(()=>{l.current&&r.current&&m4(r.current),l.current=!1},[r]);let u=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(u=void 0),{focusableProps:f6({...s,tabIndex:u},c)}}let U3=!1,R3=0;function j6(){U3=!0,setTimeout(()=>{U3=!1},50)}function o1(t){t.pointerType==="touch"&&j6()}function w4(){if(!(typeof document>"u"))return R3===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",o1):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",j6)),R3++,()=>{R3--,!(R3>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",o1):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",j6))}}function H4(t){let{onHoverStart:r,onHoverChange:o,onHoverEnd:n,isDisabled:s}=t,[a,c]=d.useState(!1),l=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(w4,[]);let{addGlobalListener:u,removeAllGlobalListeners:p}=u4(),{hoverProps:j,triggerHoverEnd:C}=d.useMemo(()=>{let m=(x,v)=>{if(l.pointerType=v,s||v==="touch"||l.isHovered||!x.currentTarget.contains(x.target))return;l.isHovered=!0;let _=x.currentTarget;l.target=_,u(j3(x.target),"pointerover",k=>{l.isHovered&&l.target&&!J2(l.target,k.target)&&M(k,k.pointerType)},{capture:!0}),r&&r({type:"hoverstart",target:_,pointerType:v}),o&&o(!0),c(!0)},M=(x,v)=>{let _=l.target;l.pointerType="",l.target=null,!(v==="touch"||!l.isHovered||!_)&&(l.isHovered=!1,p(),n&&n({type:"hoverend",target:_,pointerType:v}),o&&o(!1),c(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=x=>{U3&&x.pointerType==="mouse"||m(x,x.pointerType)},b.onPointerLeave=x=>{!s&&x.currentTarget.contains(x.target)&&M(x,x.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=x=>{!l.ignoreEmulatedMouseEvents&&!U3&&m(x,"mouse"),l.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=x=>{!s&&x.currentTarget.contains(x.target)&&M(x,"mouse")}),{hoverProps:b,triggerHoverEnd:M}},[r,o,n,s,l,u,p]);return d.useEffect(()=>{s&&C({currentTarget:l.target},l.pointerType)},[s]),{hoverProps:j,isHovered:a}}function T4(t,r,o){let{isDisabled:n,trigger:s}=t,a=G2(),c=d.useRef(!1),l=d.useRef(!1),u=()=>{(c.current||l.current)&&r.open(l.current)},p=_=>{!c.current&&!l.current&&r.close(_)};d.useEffect(()=>{let _=k=>{o&&o.current&&k.key==="Escape"&&(k.stopPropagation(),r.close(!0))};if(r.isOpen)return document.addEventListener("keydown",_,!0),()=>{document.removeEventListener("keydown",_,!0)}},[o,r]);let j=()=>{s!=="focus"&&(ae()==="pointer"?c.current=!0:c.current=!1,u())},C=()=>{s!=="focus"&&(l.current=!1,c.current=!1,p())},m=()=>{l.current=!1,c.current=!1,p(!0)},M=()=>{L4()&&(l.current=!0,u())},b=()=>{l.current=!1,c.current=!1,p(!0)},{hoverProps:x}=H4({isDisabled:n,onHoverStart:j,onHoverEnd:C}),{focusableProps:v}=I4({isDisabled:n,onFocus:M,onBlur:b},o);return{triggerProps:{"aria-describedby":r.isOpen?a:void 0,...f6(v,x,{onPointerDown:m,onKeyDown:m}),tabIndex:void 0},tooltipProps:{id:a}}}function V4(t){let[r,o]=f4(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=d.useCallback(()=>{o(!0)},[o]),s=d.useCallback(()=>{o(!1)},[o]),a=d.useCallback(()=>{o(!r)},[o,r]);return{isOpen:r,setOpen:o,open:n,close:s,toggle:a}}const P4=1500,n1=500;let d3={},$4=0,y3=!1,r3=null,u3=null;function N4(t={}){let{delay:r=P4,closeDelay:o=n1}=t,{isOpen:n,open:s,close:a}=V4(t),c=d.useMemo(()=>`${++$4}`,[]),l=d.useRef(null),u=d.useRef(a),p=()=>{d3[c]=m},j=()=>{for(let b in d3)b!==c&&(d3[b](!0),delete d3[b])},C=()=>{l.current&&clearTimeout(l.current),l.current=null,j(),p(),y3=!0,s(),r3&&(clearTimeout(r3),r3=null),u3&&(clearTimeout(u3),u3=null)},m=b=>{b||o<=0?(l.current&&clearTimeout(l.current),l.current=null,u.current()):l.current||(l.current=setTimeout(()=>{l.current=null,u.current()},o)),r3&&(clearTimeout(r3),r3=null),y3&&(u3&&clearTimeout(u3),u3=setTimeout(()=>{delete d3[c],u3=null,y3=!1},Math.max(n1,o)))},M=()=>{j(),p(),!n&&!r3&&!y3?r3=setTimeout(()=>{r3=null,y3=!0,C()},r):n||C()};return d.useEffect(()=>{u.current=a},[a]),d.useEffect(()=>()=>{l.current&&clearTimeout(l.current),d3[c]&&delete d3[c]},[c]),{isOpen:n,open:b=>{!b&&r>0&&!l.current?M():C()},close:m}}function W4({children:t,content:r,className:o,offset:n,delay:s,closeDelay:a,placement:c}){const l=N4({delay:s,closeDelay:a}),u=d.useRef(null),{triggerProps:p,tooltipProps:j}=T4({},l,u),C=h(o,"tooltip");return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:u,className:"tooltip-trigger-wrapper",...p,children:t}),e.jsx(f.TooltipTriggerStateContext.Provider,{value:l,children:e.jsxs(f.Tooltip,{...j,triggerRef:u,className:C,offset:n,placement:c,children:[e.jsx(F6,{}),e.jsx("div",{className:"dialog dialog-type-card",children:r})]})})]})}function ce({children:t,content:r,className:o,offset:n=16,trigger:s="hover",delay:a=500,closeDelay:c=100,placement:l,...u}){const p=h(o,"tooltip");return s==="click"?e.jsxs(f.DialogTrigger,{children:[t,e.jsxs(f.Popover,{...u,className:p,offset:n,placement:l,children:[e.jsx(F6,{}),e.jsx(f.Dialog,{className:"dialog dialog-type-card","aria-label":"Tooltip",children:r})]})]}):e.jsx(W4,{content:r,className:o,offset:n,delay:a,closeDelay:c,placement:l,...u,children:t})}function F6({className:t,...r}){const o=h(t,"tooltip-overlay-arrow");return e.jsxs(f.OverlayArrow,{...r,className:o,children:[e.jsx("svg",{viewBox:"0 0 10 5",children:e.jsx("path",{d:"M0 0 L5 5 L10 0"})}),e.jsx("svg",{viewBox:"0 0 10 5",children:e.jsx("path",{d:"M0 0 L5 5 L10 0"})})]})}function le({isAllowed:t,noAccessLabel:r,children:o}){const n=typeof o=="function"?o(t):o;return t?n:e.jsx(ce,{content:r,trigger:"hover",placement:"top",offset:4,children:e.jsx("span",{style:{display:"inline-flex"},children:n})})}function E4({isFavorited:t,onToggle:r,"aria-label":o,size:n="16"}){return e.jsx("button",{type:"button","aria-label":o,"aria-pressed":t,onClick:r,className:`favorite-button${t?" favorite-button--active":""}`,children:t?e.jsx("svg",{width:n,height:n,viewBox:"0 0 16 16",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.99992 1.33325L10.0599 5.50659L14.6666 6.17992L11.3333 9.42659L12.1199 14.0133L7.99992 11.8466L3.87992 14.0133L4.66659 9.42659L1.33325 6.17992L5.93992 5.50659L7.99992 1.33325Z"})}):e.jsx(p1,{size:n})})}function S4({title:t,headerIcon:r,children:o,bodyPadding:n="24px",className:s,style:a}){return e.jsxs("div",{className:h("info-card",s),style:a,children:[e.jsxs("div",{className:"info-card-header",children:[e.jsx("span",{className:"info-card-header-title",children:t}),r&&e.jsx("span",{className:"info-card-header-icon",children:r})]}),e.jsx("div",{className:"info-card-body",style:{padding:n},children:o})]})}function Z4({isOpen:t,title:r,message:o,confirmValue:n,confirmValueLabel:s,confirmLabel:a="Confirm",cancelLabel:c="Cancel",isDanger:l=!1,isLoading:u=!1,onConfirm:p,onClose:j}){const[C,m]=d.useState(""),M=n?C===n:!0;function b(){m(""),j()}function x(){M&&(m(""),p())}return t?e.jsx(Q3,{isOpen:t,onOpenChange:v=>!v&&b(),children:e.jsxs(K3,{children:[e.jsxs(J,{direction:"row",alignPrimary:"space-between",alignSecondary:"center",children:[e.jsx(w6,{children:r}),e.jsx(I6,{onPress:b})]}),e.jsxs(H6,{children:[o&&e.jsx("p",{className:"confirm-dialog-message",dangerouslySetInnerHTML:{__html:o}}),n&&e.jsx(H1,{label:s,value:C,onChange:m,isRequired:!0})]}),e.jsxs(J,{direction:"row",gap:"200",alignPrimary:"end",className:"confirm-dialog-footer",children:[e.jsx(Q,{variant:"neutral",onPress:b,isDisabled:u,children:c}),l?e.jsx(y6,{variant:"danger-primary",onPress:x,isDisabled:!M||u,children:u?"...":a}):e.jsx(Q,{variant:"primary",onPress:x,isDisabled:!M||u,children:u?"...":a})]})]})}):null}function D4(t,r){if(r<=6)return Array.from({length:r},(s,a)=>a+1);const o=[1,2,3],n=[r-1,r];return t<=4?[...o,"...",...n]:t>=r-3?[1,2,"...",r-2,r-1,r]:[1,"...",t-1,t,t+1,"...",r]}function O4({currentPage:t,totalPages:r,onPageChange:o,previousLabel:n,nextLabel:s}){const a=D4(t,r);return e.jsxs("div",{className:"data-table-pagination",children:[e.jsxs("button",{onClick:()=>o(Math.max(1,t-1)),disabled:t===1,className:"data-table-page-btn data-table-page-nav","aria-label":n,children:[e.jsx(g6,{size:"16"}),n]}),e.jsx("div",{className:"data-table-page-numbers",children:a.map((c,l)=>c==="..."?e.jsx("span",{className:"data-table-page-ellipsis",children:"..."},`ellipsis-${l}`):e.jsx("button",{onClick:()=>o(c),className:`data-table-page-btn${c===t?" data-table-page-btn-active":""}`,children:c},c))}),e.jsxs("button",{onClick:()=>o(Math.min(r,t+1)),disabled:t===r,className:"data-table-page-btn data-table-page-nav","aria-label":s,children:[s,e.jsx(v6,{size:"16"})]})]})}function R4({action:t,item:r}){const o=t.isAllowed!==!1,n=e.jsx("button",{className:"data-table-row-action-btn","aria-label":t.label,disabled:!o,onClick:o?()=>t.onPress(r):void 0,children:t.icon});return o?n:e.jsx(le,{isAllowed:!1,noAccessLabel:t.noAccessLabel??"",children:n})}function de({columns:t,data:r,actions:o,rowActions:n,rowActionsLabel:s="",searchPlaceholder:a="Search...",searchKeys:c=[],isLoading:l=!1,loadingMessage:u="Loading...",emptyMessage:p="No records found",previousLabel:j="Previous",nextLabel:C="Next",pageSize:m=10,nestedColumns:M,getNestedData:b,nestedLoadingMessage:x="Loading...",nestedEmptyMessage:v="No records found",nestedSearchKeys:_,nestedSearchPlaceholder:k,nestedActions:g,nestedPageSize:I}){const[w,P]=d.useState(""),[L,V]=d.useState(1),[W,H]=d.useState(new Set),[D,z]=d.useState(new Map),R=!!b&&!!M,K=!!n;function y(T){const S=T.id;H(O=>{const l3=new Set(O);if(l3.has(S))l3.delete(S);else if(l3.add(S),!D.has(S)){const Y=b(T);Y instanceof Promise?(z(_3=>new Map(_3).set(S,{status:"loading",data:[]})),Y.then(_3=>{z(ue=>new Map(ue).set(S,{status:"loaded",data:_3}))})):z(_3=>new Map(_3).set(S,{status:"loaded",data:Y}))}return l3})}const $=c.length>0,B=$||!!o,A=d.useMemo(()=>{if(!w.trim()||!$)return r;const T=w.toLowerCase();return r.filter(S=>c.some(O=>String(S[O]??"").toLowerCase().includes(T)))},[r,w,c,$]),t3=Math.max(1,Math.ceil(A.length/m)),b3=Math.min(L,t3),N=A.slice((b3-1)*m,b3*m);function Z(T,S){return S.render?S.render(T):String(T[S.key]??"")}return e.jsxs(J,{direction:"column",gap:"300",className:"data-table",children:[B&&e.jsxs("div",{className:"data-table-toolbar",children:[$&&e.jsx(P1,{placeholder:a,onSearch:T=>{P(T),V(1)},className:"data-table-search"}),o&&e.jsx("div",{className:"data-table-actions",children:o})]}),l?e.jsx("div",{role:"status","aria-live":"polite","aria-label":u,className:"data-table-status",children:u}):A.length===0?e.jsx("div",{role:"status",className:"data-table-status data-table-empty",children:p}):e.jsxs(D1,{grid:!0,children:[e.jsxs(R1,{children:[R&&e.jsx(L3,{className:"data-table-expand-col"}),t.map((T,S)=>e.jsx(L3,{align:T.align,isRowHeader:S===0,children:T.label},String(T.key))),K&&e.jsx(L3,{align:"right",className:"data-table-row-actions-col",children:s})]}),e.jsx(O1,{children:N.flatMap(T=>{const S=W.has(T.id),O=D.get(T.id),l3=[e.jsxs(c6,{id:T.id,children:[R&&e.jsx(h3,{className:"data-table-expand-cell",children:e.jsx("button",{className:"data-table-expand-btn","aria-label":S?"Collapse row":"Expand row","aria-expanded":S,onClick:()=>y(T),children:S?e.jsx(x3,{size:"16"}):e.jsx(m6,{size:"16"})})}),t.map(Y=>e.jsx(h3,{align:Y.align,children:Z(T,Y)},String(Y.key))),K&&e.jsx(h3,{align:"right",className:"data-table-row-actions-cell",children:e.jsx("div",{className:"data-table-row-actions",children:(typeof n=="function"?n(T):n).map(Y=>e.jsx(R4,{action:Y,item:T},Y.key))})})]},T.id)];return S&&l3.push(e.jsx(c6,{id:`${T.id}-nested`,className:"data-table-nested-row",children:e.jsx(h3,{colSpan:t.length+1+(K?1:0),className:"data-table-nested-cell",children:e.jsx(de,{columns:M,data:(O==null?void 0:O.data)??[],isLoading:!O||O.status==="loading",loadingMessage:x,emptyMessage:v,searchKeys:_,searchPlaceholder:k,actions:g==null?void 0:g(T),pageSize:I??m})})},`${T.id}-nested`)),l3})})]}),t3>1&&e.jsx(O4,{currentPage:b3,totalPages:t3,onPageChange:V,previousLabel:j,nextLabel:C})]})}function A4({isOpen:t,title:r,submitLabel:o="Save",cancelLabel:n="Cancel",isLoading:s=!1,isSubmitDisabled:a=!1,size:c="medium",onSubmit:l,onClose:u,children:p}){return t?e.jsx(Q3,{isOpen:t,onOpenChange:j=>!j&&u(),children:e.jsxs(K3,{className:h("form-modal",`form-modal--${c}`),children:[e.jsxs(J,{direction:"row",alignPrimary:"space-between",alignSecondary:"center",children:[e.jsx(w6,{children:r}),e.jsx(I6,{onPress:u})]}),e.jsx(H6,{children:e.jsx(J,{direction:"column",gap:"300",children:p})}),e.jsxs(J,{direction:"row",gap:"200",alignPrimary:"end",className:"form-modal-footer",children:[e.jsx(Q,{variant:"neutral",onPress:u,isDisabled:s,children:n}),e.jsx(Q,{variant:"primary",onPress:l,isDisabled:a||s,children:s?"...":o})]})]})}):null}function F4({title:t,subtitle:r}){return e.jsxs(J,{direction:"column",gap:"200",className:"page-header",children:[e.jsx($3,{elementType:"h1",className:"page-header-title",children:t}),r&&e.jsx($3,{className:"page-header-subtitle",children:r})]})}function B4(t){if(!(!t||typeof window>"u"))try{const r=window.localStorage.getItem(t);if(r==="1")return!0;if(r==="0")return!1}catch{}}function z4(t,r){if(!(!t||typeof window>"u"))try{window.localStorage.setItem(t,r?"1":"0")}catch{}}function U4({items:t,currentRoute:r,onNavigate:o,title:n,collapsed:s,defaultCollapsed:a=!1,onCollapsedChange:c,storageKey:l}){const u=s!==void 0,[p,j]=d.useState(()=>B4(l)??a),C=u?s:p;function m(){const x=!C;u||(j(x),z4(l,x)),c==null||c(x)}const M=r.replace(/^\//,"");function b(x){return M===x||M.startsWith(x+"/")}return e.jsxs("aside",{className:"sidebar","data-collapsed":C||void 0,children:[e.jsxs("button",{type:"button",onClick:m,"aria-label":C?"Expand sidebar":"Collapse sidebar","aria-expanded":!C,className:"sidebar-toggle",children:[e.jsx(d1,{size:"24"}),!C&&n&&e.jsx("span",{className:"sidebar-title",children:n})]}),e.jsx("div",{className:"sidebar-divider",role:"separator"}),t.map(x=>{const v=b(x.key);return e.jsxs("button",{type:"button",onClick:()=>o(x.key),title:x.label,"aria-label":x.label,"aria-current":v?"page":void 0,"data-active":v||void 0,className:"sidebar-item",children:[x.icon,!C&&e.jsx("span",{className:"sidebar-item-label",children:x.label})]},x.key)})]})}exports.Accordion=f0;exports.AccordionItem=C0;exports.Alert=b6;exports.AnchorOrButton=s3;exports.Avatar=V9;exports.AvatarBlock=$9;exports.AvatarButton=P9;exports.AvatarGroup=N9;exports.Button=Q;exports.ButtonDanger=y6;exports.ButtonGroup=W9;exports.Card=S4;exports.Checkbox=X3;exports.CheckboxField=S9;exports.CheckboxGroup=E9;exports.CodeBlock=j0;exports.CodeEditor=_6;exports.CodeEditorField=I9;exports.CodeEditorPanel=H9;exports.ConfirmDialog=Z4;exports.DataTable=de;exports.Description=X;exports.DestructiveIconButton=C1;exports.Dialog=K3;exports.DialogBody=H6;exports.DialogButton=Z9;exports.DialogClose=I6;exports.DialogDescription=D9;exports.DialogModal=Q3;exports.DialogTitle=w6;exports.DialogTrigger=y1;exports.Divider=O9;exports.ErrorNotification=cs;exports.FavoriteButton=E4;exports.Field=T6;exports.FieldError=e3;exports.FieldGroup=F9;exports.Fieldset=R9;exports.Flex=J;exports.FlexItem=g2;exports.Form=B9;exports.FormModal=A4;exports.Grid=L2;exports.GridItem=m2;exports.Icon=i;exports.IconActivity=he;exports.IconAirplay=pe;exports.IconAlertCircle=i1;exports.IconAlertOctagon=fe;exports.IconAlertTriangle=k6;exports.IconAlignCenter=Ce;exports.IconAlignJustify=xe;exports.IconAlignLeft=je;exports.IconAlignRight=ke;exports.IconAnchor=ge;exports.IconAperture=ve;exports.IconArchive=Le;exports.IconArrowDown=me;exports.IconArrowDownCircle=Me;exports.IconArrowDownLeft=be;exports.IconArrowDownRight=_e;exports.IconArrowLeft=g6;exports.IconArrowLeftCircle=ye;exports.IconArrowRight=v6;exports.IconArrowRightCircle=Ie;exports.IconArrowUp=we;exports.IconArrowUpCircle=He;exports.IconArrowUpLeft=Te;exports.IconArrowUpRight=Ve;exports.IconAtSign=Pe;exports.IconAward=$e;exports.IconBarChart=Ne;exports.IconBarChart2=We;exports.IconBattery=Ee;exports.IconBatteryCharging=Se;exports.IconBell=Ze;exports.IconBellOff=De;exports.IconBluetooth=Oe;exports.IconBold=Re;exports.IconBook=Ae;exports.IconBookOpen=Fe;exports.IconBookmark=Be;exports.IconBox=ze;exports.IconBriefcase=Ue;exports.IconButton=o3;exports.IconCalendar=Ge;exports.IconCamera=qe;exports.IconCameraOff=Xe;exports.IconCast=Ke;exports.IconCheck=G3;exports.IconCheckCircle=L6;exports.IconCheckSquare=Qe;exports.IconChevronDown=x3;exports.IconChevronLeft=Ye;exports.IconChevronRight=m6;exports.IconChevronUp=a1;exports.IconChevronsDown=Je;exports.IconChevronsLeft=et;exports.IconChevronsRight=tt;exports.IconChevronsUp=rt;exports.IconChrome=ot;exports.IconCircle=nt;exports.IconClipboard=st;exports.IconClock=it;exports.IconCloud=at;exports.IconCloudDrizzle=ct;exports.IconCloudLightning=lt;exports.IconCloudOff=dt;exports.IconCloudRain=ut;exports.IconCloudSnow=ht;exports.IconCode=pt;exports.IconCodepen=ft;exports.IconCodesandbox=Ct;exports.IconCoffee=xt;exports.IconColumns=jt;exports.IconCommand=kt;exports.IconCompass=gt;exports.IconCopy=c1;exports.IconCornerDownLeft=vt;exports.IconCornerDownRight=Lt;exports.IconCornerLeftDown=mt;exports.IconCornerLeftUp=Mt;exports.IconCornerRightDown=bt;exports.IconCornerRightUp=_t;exports.IconCornerUpLeft=yt;exports.IconCornerUpRight=It;exports.IconCpu=wt;exports.IconCreditCard=Ht;exports.IconCrop=Tt;exports.IconCrosshair=Vt;exports.IconDatabase=Pt;exports.IconDelete=$t;exports.IconDisc=Nt;exports.IconDivide=Wt;exports.IconDivideCircle=Et;exports.IconDivideSquare=St;exports.IconDollarSign=Zt;exports.IconDownload=Dt;exports.IconDownloadCloud=Ot;exports.IconDribbble=Rt;exports.IconDroplet=At;exports.IconEdit=Ft;exports.IconEdit2=Bt;exports.IconEdit3=zt;exports.IconExternalLink=Ut;exports.IconEye=Gt;exports.IconEyeOff=qt;exports.IconFacebook=Xt;exports.IconFastForward=Kt;exports.IconFeather=Qt;exports.IconFigma=Yt;exports.IconFile=Jt;exports.IconFileMinus=er;exports.IconFilePlus=tr;exports.IconFileText=rr;exports.IconFilm=or;exports.IconFilter=nr;exports.IconFlag=sr;exports.IconFolder=ir;exports.IconFolderMinus=ar;exports.IconFolderPlus=cr;exports.IconFramer=lr;exports.IconFrown=dr;exports.IconGift=ur;exports.IconGitBranch=hr;exports.IconGitCommit=pr;exports.IconGitMerge=fr;exports.IconGitPullRequest=Cr;exports.IconGithub=xr;exports.IconGitlab=jr;exports.IconGlobe=kr;exports.IconGrid=gr;exports.IconHardDrive=vr;exports.IconHash=Lr;exports.IconHeadphones=mr;exports.IconHeart=Mr;exports.IconHelpCircle=br;exports.IconHexagon=_r;exports.IconHome=yr;exports.IconImage=Ir;exports.IconInbox=wr;exports.IconInfo=M6;exports.IconInstagram=Hr;exports.IconItalic=Tr;exports.IconKey=Vr;exports.IconLayers=Pr;exports.IconLayout=$r;exports.IconLifeBuoy=Nr;exports.IconLink=Wr;exports.IconLink2=Er;exports.IconLinkedin=Sr;exports.IconList=Zr;exports.IconLoader=l1;exports.IconLock=Dr;exports.IconLogIn=Or;exports.IconLogOut=Rr;exports.IconMail=Ar;exports.IconMap=Fr;exports.IconMapPin=Br;exports.IconMaximize=zr;exports.IconMaximize2=Ur;exports.IconMeh=Gr;exports.IconMenu=d1;exports.IconMessageCircle=qr;exports.IconMessageSquare=Xr;exports.IconMic=Kr;exports.IconMicOff=Qr;exports.IconMinimize=Yr;exports.IconMinimize2=Jr;exports.IconMinus=u1;exports.IconMinusCircle=eo;exports.IconMinusSquare=to;exports.IconMonitor=ro;exports.IconMoon=oo;exports.IconMoreHorizontal=no;exports.IconMoreVertical=so;exports.IconMousePointer=io;exports.IconMove=ao;exports.IconMusic=co;exports.IconNavigation=lo;exports.IconNavigation2=uo;exports.IconOctagon=ho;exports.IconPackage=po;exports.IconPaperclip=fo;exports.IconPause=Co;exports.IconPauseCircle=xo;exports.IconPenTool=jo;exports.IconPercent=ko;exports.IconPhone=go;exports.IconPhoneCall=vo;exports.IconPhoneForwarded=Lo;exports.IconPhoneIncoming=mo;exports.IconPhoneMissed=Mo;exports.IconPhoneOff=bo;exports.IconPhoneOutgoing=_o;exports.IconPieChart=yo;exports.IconPlay=Io;exports.IconPlayCircle=wo;exports.IconPlus=Ho;exports.IconPlusCircle=To;exports.IconPlusSquare=Vo;exports.IconPocket=Po;exports.IconPower=$o;exports.IconPrinter=No;exports.IconRadio=Wo;exports.IconRefreshCcw=Eo;exports.IconRefreshCw=So;exports.IconRepeat=Zo;exports.IconRewind=Do;exports.IconRotateCcw=Oo;exports.IconRotateCw=Ro;exports.IconRss=Ao;exports.IconSave=Fo;exports.IconScissors=Bo;exports.IconSearch=h1;exports.IconSend=zo;exports.IconServer=Uo;exports.IconSettings=Go;exports.IconShare=qo;exports.IconShare2=Xo;exports.IconShield=Ko;exports.IconShieldOff=Qo;exports.IconShoppingBag=Yo;exports.IconShoppingCart=Jo;exports.IconShuffle=en;exports.IconSidebar=tn;exports.IconSkipBack=rn;exports.IconSkipForward=on;exports.IconSlack=nn;exports.IconSlash=sn;exports.IconSliders=an;exports.IconSmartphone=cn;exports.IconSmile=ln;exports.IconSpeaker=dn;exports.IconSquare=un;exports.IconStar=p1;exports.IconStopCircle=hn;exports.IconSun=pn;exports.IconSunrise=fn;exports.IconSunset=Cn;exports.IconTable=xn;exports.IconTablet=jn;exports.IconTag=kn;exports.IconTarget=gn;exports.IconTerminal=vn;exports.IconThermometer=Ln;exports.IconThumbsDown=mn;exports.IconThumbsUp=Mn;exports.IconToggleLeft=bn;exports.IconToggleRight=_n;exports.IconTool=yn;exports.IconTrash=In;exports.IconTrash2=wn;exports.IconTrashOutline=Hn;exports.IconTrello=Tn;exports.IconTrendingDown=Vn;exports.IconTrendingUp=Pn;exports.IconTriangle=$n;exports.IconTruck=Nn;exports.IconTv=Wn;exports.IconTwitch=En;exports.IconTwitter=Sn;exports.IconType=Zn;exports.IconUmbrella=Dn;exports.IconUnderline=On;exports.IconUnlock=Rn;exports.IconUpload=An;exports.IconUploadCloud=Fn;exports.IconUser=Bn;exports.IconUserCheck=zn;exports.IconUserMinus=Un;exports.IconUserPlus=Gn;exports.IconUserX=qn;exports.IconUsers=Xn;exports.IconVideo=Kn;exports.IconVideoOff=Qn;exports.IconVoicemail=Yn;exports.IconVolume=Jn;exports.IconVolume1=e0;exports.IconVolume2=t0;exports.IconVolumeX=r0;exports.IconWatch=o0;exports.IconWifi=n0;exports.IconWifiOff=s0;exports.IconWind=i0;exports.IconX=p3;exports.IconXCircle=f1;exports.IconXOctagon=a0;exports.IconXSquare=c0;exports.IconYoutube=l0;exports.IconZap=d0;exports.IconZapOff=u0;exports.IconZoomIn=h0;exports.IconZoomOut=p0;exports.Image=w1;exports.Input=V6;exports.InputField=H1;exports.Keyboard=I1;exports.Label=G;exports.Legend=A9;exports.Link=T1;exports.ListBox=P6;exports.ListBoxItem=$6;exports.Logo=q9;exports.Menu=N6;exports.MenuButton=X9;exports.MenuDescription=rs;exports.MenuHeader=Q9;exports.MenuHeading=J9;exports.MenuItem=K9;exports.MenuLabel=ts;exports.MenuPopover=E6;exports.MenuSection=Y9;exports.MenuSeparator=es;exports.MenuShortcut=os;exports.MenuTrigger=W6;exports.Navigation=ns;exports.NavigationButton=is;exports.NavigationPill=ss;exports.Notification=as;exports.PageHeader=F4;exports.Pagination=ds;exports.PaginationGap=Cs;exports.PaginationList=ps;exports.PaginationNext=hs;exports.PaginationPage=fs;exports.PaginationPrevious=us;exports.PermissionGate=le;exports.Picture=U9;exports.PictureSource=G9;exports.Radio=V1;exports.RadioField=js;exports.RadioGroup=xs;exports.Search=P1;exports.Section=v2;exports.Select=$1;exports.SelectField=ks;exports.SelectItem=gs;exports.Sidebar=U4;exports.Slider=N1;exports.SliderField=vs;exports.SliderOutput=W1;exports.SliderThumb=E1;exports.SliderTrack=S1;exports.SplitButton=Ls;exports.SuccessNotification=ls;exports.Switch=Z1;exports.SwitchField=Ms;exports.SwitchGroup=ms;exports.Tab=bs;exports.TabList=_s;exports.TabPanel=ys;exports.Table=D1;exports.TableBody=O1;exports.TableCell=h3;exports.TableColumn=L3;exports.TableHead=R1;exports.TableRow=c6;exports.Tabs=Is;exports.Tag=ws;exports.TagButton=Hs;exports.TagToggle=Ts;exports.TagToggleGroup=Vs;exports.TagToggleList=Ps;exports.Text=$3;exports.TextCode=y2;exports.TextContentHeading=V2;exports.TextContentTitle=P2;exports.TextEmphasis=b2;exports.TextHeading=S3;exports.TextInput=I2;exports.TextLink=_2;exports.TextLinkList=T2;exports.TextList=ee;exports.TextListItem=H2;exports.TextPrice=w2;exports.TextSmall=X1;exports.TextSmallStrong=M2;exports.TextStrong=K1;exports.TextSubheading=J1;exports.TextSubtitle=Y1;exports.TextTitleHero=Q1;exports.TextTitlePage=Z6;exports.Textarea=te;exports.TextareaField=$2;exports.ToastContainer=x2;exports.Tooltip=ce;exports.TooltipOverlayArrow=F6;exports.Tree=k2;exports.formEventTargetToFormData=z9;exports.toast=E;exports.useCustomMediaQuery=g3;exports.useMediaQuery=S6;
817
+ `,Q6=new Map,p2=(t,r)=>{q1(()=>{if(typeof document>"u")return;let o=document,n=Q6.get(o);if(n){r&&n.setAttribute("nonce",r);return}let s=o.createElement("style");s.textContent=t,r&&s.setAttribute("nonce",r),o.head.appendChild(s),Q6.set(o,s)},[r])};function f2(t){return p2(h2,t.nonce),d.createElement(u2,{...t})}function C2({type:t}){switch(t){case"success":return e.jsx(L6,{size:"20"});case"error":return e.jsx(f1,{size:"20"});case"warning":return e.jsx(k6,{size:"20"});case"info":return e.jsx(M6,{size:"20"});default:return null}}function x2({className:t,position:r="top-right",autoClose:o=5e3,theme:n="colored",icon:s=C2,...a}){return e.jsx(f2,{className:h("apipass-toast-container",typeof t=="string"?t:void 0),position:r,autoClose:o,theme:n,icon:s,...a})}function j2(t){return t.hasChildItems??!!(t.children&&t.children.length>0)}function k2({className:t,items:r,renderItem:o,isNodeLoading:n,onItemAction:s,dependencies:a,...c}){function l(u){return e.jsxs(f.TreeItem,{id:u.id,textValue:u.label,hasChildItems:j2(u),className:"tree-item",onAction:s?()=>s(u):void 0,children:[e.jsx(Y6,{children:o(u)}),u.children&&u.children.length>0&&e.jsx(f.Collection,{items:u.children,dependencies:a,children:l}),((n==null?void 0:n(u.id))??!1)&&e.jsx(f.TreeItem,{id:`${u.id}::loading`,textValue:"Loading",isDisabled:!0,className:"tree-item",children:e.jsx(Y6,{children:e.jsx(l1,{size:"16",className:"tree-item-loading-icon"})})})]})}return e.jsx(f.Tree,{items:r,className:h(t,"tree"),dependencies:a,...c,children:l})}function Y6({children:t}){return e.jsx(f.TreeItemContent,{children:({hasChildItems:r,level:o})=>e.jsxs("div",{className:"tree-item-row",style:{"--tree-item-depth":o-1},children:[r?e.jsx(f.Button,{slot:"chevron",className:"tree-item-chevron",children:e.jsx(m6,{size:"16"})}):e.jsx("span",{className:"tree-item-chevron-spacer","aria-hidden":"true"}),t]})})}function J({className:t,alignPrimary:r="start",alignSecondary:o="start",container:n=!1,direction:s="row",gap:a,type:c="auto",wrap:l=!1,...u}){const p=h(t,"flex",n&&"flex-container",`flex-align-primary-${r}`,`flex-align-secondary-${o}`,`flex-direction-${s}`,`flex-type-${c}`,a&&`flex-gap-${a}`,l&&"flex-wrap");return e.jsx("div",{className:p,...u,style:{...u.style,"--flex-align-primary":r,"--flex-align-secondary":o,"--flex-direction":s}})}function g2({className:t,children:r,size:o}){const n=h(t,"flex-item",o&&`flex-item-size-${o}`);return e.jsx("div",{className:n,children:r})}function v2({children:t,className:r,elementType:o="section",padding:n="600",paddingBottom:s,paddingTop:a,...c}){const{variant:l="subtle",...u}=c,p=h(r,"section",`section-variant-${c.variant}`,`section-padding-top-${a||n}`,`section-padding-bottom-${s||n}`),j=c.variant==="image"?e.jsx(w1,{alt:"Background image",role:"presentation",src:c.src,size:"fill",aspectRatio:"fill",className:"section-image"}):null;switch(o){case"section":return e.jsxs("section",{className:p,...u,children:[j," ",t]});case"header":return e.jsxs("header",{className:p,...u,children:[j," ",t]});case"footer":return e.jsxs("footer",{className:p,...u,children:[j," ",t]})}}function L2({className:t,columns:r="none",rows:o="none",gap:n,columnGap:s,rowGap:a,flow:c,container:l=!1,justifyItems:u="stretch",alignItems:p="stretch",style:j={},...C}){const m=h(t,"grid",l&&"grid-container",`grid-justify-items-${u}`,`grid-align-items-${p}`,n&&`grid-gap-${n}`,s&&`grid-column-gap-${s}`,a&&`grid-row-gap-${a}`,c&&`grid-flow-${c.replace(" ","-")}`),M={...j,display:"grid",gridTemplateColumns:r,gridTemplateRows:o,gap:n?`var(--sds-size-space-${n})`:void 0,columnGap:s?`var(--sds-size-space-${s})`:void 0,rowGap:a?`var(--sds-size-space-${a})`:void 0,justifyItems:u,alignItems:p};return e.jsx("div",{className:m,style:M,...C})}function m2({className:t,column:r,row:o,area:n,style:s={},...a}){const c=h(t,"grid-item"),l={...s};return r&&(l.gridColumn=r),o&&(l.gridRow=o),n&&(l.gridArea=n),e.jsx("div",{className:c,style:l,...a})}function $3({className:t,elementType:r="p",lineHeight:o="body",lineClamp:n,style:s,...a}){const c=h(t,!!n&&"text-truncate","text-body-base",`text-line-height-${o}`),l=n?{"--text-truncate-line-clamp":n,...s}:s;return e.jsx(f.Text,{style:l,elementType:r,className:c,...a})}function X1({className:t,elementType:r="small",lineHeight:o="body",lineClamp:n,style:s,...a}){const c=h(t,!!n&&"text-truncate","text-body-small",`text-line-height-${o}`),l=n?{"--text-truncate-line-clamp":n,...s}:s;return e.jsx(f.Text,{style:l,className:c,elementType:r,...a})}function M2({className:t,elementType:r="small",lineClamp:o,lineHeight:n="body",style:s,...a}){const c=h(t,!!o&&"text-truncate","text-body-small-strong",`text-line-height-${n}`),l=o?{"--text-truncate-line-clamp":o,...s}:s;return e.jsx(f.Text,{style:l,className:c,elementType:r,...a})}function K1({className:t,elementType:r="strong",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-body-strong"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function b2({className:t,elementType:r,...o}){const n=h(t,"text-body-emphasis");return e.jsx(f.Text,{className:n,elementType:r,...o})}function _2({className:t,...r}){const o=h(t,"text-body-link");return e.jsx(T1,{className:o,...r})}function y2({className:t,...r}){const o=h(t,"text-body-code");return e.jsx(f.Text,{className:o,...r})}function I2({className:t,...r}){const o=h(t,"text-input");return e.jsx(f.Text,{className:o,...r})}function Q1({className:t,elementType:r="h1",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-title-hero"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function Z6({className:t,elementType:r="h2",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-title-page"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function Y1({className:t,elementType:r="p",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-subtitle"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function S3({className:t,elementType:r="h3",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-heading"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function J1({className:t,elementType:r="p",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-subheading"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function w2({className:t,currency:r,size:o="large",price:n,label:s,...a}){const c=h(t,"text-price",`text-price-size-${o}`),l=e.jsxs(e.Fragment,{children:[e.jsx("sup",{className:"text-price-currency",children:r}),n]});return e.jsxs(f.Text,{elementType:"p",className:c,...a,children:[o==="small"?e.jsx(S3,{elementType:"span",children:l}):e.jsx(Z6,{elementType:"span",children:l}),s&&e.jsx(X1,{children:s})]})}function H2({className:t,...r}){const o=h(t,"text-list-item");return e.jsx("li",{className:o,...r})}function ee({children:t,className:r,density:o="default",title:n,...s}){const a=h(r,"text-list",`text-list-density-${o}`);return e.jsxs("ul",{className:a,...s,children:[n&&e.jsx("li",{className:"text-list-title",children:n}),t]})}function T2({className:t,...r}){const o=h(t,"text-link-list");return e.jsx(ee,{className:o,...r})}function V2({align:t="start",className:r,heading:o,subheading:n,...s}){const a=h(r,"text-content-heading",`text-align-${t}`);return e.jsxs(J,{direction:"column",gap:"200",className:a,...s,children:[e.jsx(S3,{children:o}),n&&e.jsx(J1,{children:n})]})}function P2({align:t="start",className:r,title:o,subtitle:n,...s}){const a=h(r,"text-content-title"),{isMobile:c}=S6();return e.jsxs(J,{direction:"column",gap:"200",className:a,...s,children:[c?e.jsx(Z6,{className:`text-align-${t}`,children:o}):e.jsx(Q1,{className:`text-align-${t}`,children:o}),n&&e.jsx(Y1,{className:`text-align-${t}`,children:n})]})}function $2({className:t,placeholder:r,label:o,description:n,errorMessage:s,...a}){const c=h(t,"field");return e.jsxs(f.TextField,{className:c,...a,children:[o&&e.jsx(G,{children:o}),e.jsx(te,{placeholder:r}),n&&e.jsx(X,{children:n}),e.jsx(e3,{children:s})]})}const te=d.forwardRef(function({isResizable:r=!0,...o},n){const s=h("text-area",r&&"text-area-resizable");return e.jsx(f.TextArea,{ref:n,className:s,...o})}),t6=typeof document<"u"?d.useLayoutEffect:()=>{};var i6;const N2=(i6=d.useInsertionEffect)!==null&&i6!==void 0?i6:t6;function W2(t){const r=d.useRef(null);return N2(()=>{r.current=t},[t]),d.useCallback((...o)=>{const n=r.current;return n==null?void 0:n(...o)},[])}const F3={prefix:String(Math.round(Math.random()*1e10)),current:0},re=d.createContext(F3),E2=d.createContext(!1);let S2=!!(typeof window<"u"&&window.document&&window.document.createElement),a6=new WeakMap;function Z2(t=!1){let r=d.useContext(re),o=d.useRef(null);if(o.current===null&&!t){var n,s;let a=(s=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||s===void 0||(n=s.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let c=a6.get(a);c==null?a6.set(a,{id:r.current,state:a.memoizedState}):a.memoizedState!==c.state&&(r.current=c.id,a6.delete(a))}o.current=++r.current}return o.current}function D2(t){let r=d.useContext(re);r===F3&&!S2&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let o=Z2(!!t),n=r===F3&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return t||`${n}-${o}`}function O2(t){let r=d.useId(),[o]=d.useState(z2()),n=o||process.env.NODE_ENV==="test"?"react-aria":`react-aria${F3.prefix}`;return t||`${n}-${r}`}const R2=typeof d.useId=="function"?O2:D2;function A2(){return!1}function F2(){return!0}function B2(t){return()=>{}}function z2(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(B2,A2,F2):d.useContext(E2)}let U2=!!(typeof window<"u"&&window.document&&window.document.createElement),m3=new Map,w3;typeof FinalizationRegistry<"u"&&(w3=new FinalizationRegistry(t=>{m3.delete(t)}));function G2(t){let[r,o]=d.useState(t),n=d.useRef(null),s=R2(r),a=d.useRef(null);if(w3&&w3.register(a,s),U2){const c=m3.get(s);c&&!c.includes(n)?c.push(n):m3.set(s,[n])}return t6(()=>{let c=s;return()=>{w3&&w3.unregister(a),m3.delete(c)}},[s]),d.useEffect(()=>{let c=n.current;return c&&o(c),()=>{c&&(n.current=null)}}),s}function q2(t,r){if(t===r)return t;let o=m3.get(t);if(o)return o.forEach(s=>s.current=r),r;let n=m3.get(r);return n?(n.forEach(s=>s.current=t),t):r}function X2(...t){return(...r)=>{for(let o of t)typeof o=="function"&&o(...r)}}const j3=t=>{var r;return(r=t==null?void 0:t.ownerDocument)!==null&&r!==void 0?r:document},p6=t=>t&&"window"in t&&t.window===t?t:j3(t).defaultView||window;function K2(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function Q2(t){return K2(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Y2=!1;function D6(){return Y2}function J2(t,r){if(!D6())return r&&t?t.contains(r):!1;if(!t||!r)return!1;let o=r;for(;o!==null;){if(o===t)return!0;o.tagName==="SLOT"&&o.assignedSlot?o=o.assignedSlot.parentNode:Q2(o)?o=o.host:o=o.parentNode}return!1}const B3=(t=document)=>{var r;if(!D6())return t.activeElement;let o=t.activeElement;for(;o&&"shadowRoot"in o&&(!((r=o.shadowRoot)===null||r===void 0)&&r.activeElement);)o=o.shadowRoot.activeElement;return o};function e4(t){return D6()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}function f6(...t){let r={...t[0]};for(let o=1;o<t.length;o++){let n=t[o];for(let s in n){let a=r[s],c=n[s];typeof a=="function"&&typeof c=="function"&&s[0]==="o"&&s[1]==="n"&&s.charCodeAt(2)>=65&&s.charCodeAt(2)<=90?r[s]=X2(a,c):(s==="className"||s==="UNSAFE_className")&&typeof a=="string"&&typeof c=="string"?r[s]=h(a,c):s==="id"&&a&&c?r.id=q2(a,c):r[s]=c!==void 0?c:a}}return r}function J6(t){if(t4())t.focus({preventScroll:!0});else{let r=r4(t);t.focus(),o4(r)}}let O3=null;function t4(){if(O3==null){O3=!1;try{document.createElement("div").focus({get preventScroll(){return O3=!0,!0}})}catch{}}return O3}function r4(t){let r=t.parentNode,o=[],n=document.scrollingElement||document.documentElement;for(;r instanceof HTMLElement&&r!==n;)(r.offsetHeight<r.scrollHeight||r.offsetWidth<r.scrollWidth)&&o.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),r=r.parentNode;return n instanceof HTMLElement&&o.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),o}function o4(t){for(let{element:r,scrollTop:o,scrollLeft:n}of t)r.scrollTop=o,r.scrollLeft=n}function r6(t){var r;if(typeof window>"u"||window.navigator==null)return!1;let o=(r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands;return Array.isArray(o)&&o.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function O6(t){var r;return typeof window<"u"&&window.navigator!=null?t.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function i3(t){if(process.env.NODE_ENV==="test")return t;let r=null;return()=>(r==null&&(r=t()),r)}const R6=i3(function(){return O6(/^Mac/i)}),n4=i3(function(){return O6(/^iPhone/i)}),s4=i3(function(){return O6(/^iPad/i)||R6()&&navigator.maxTouchPoints>1}),i4=i3(function(){return n4()||s4()});i3(function(){return R6()||i4()});i3(function(){return r6(/AppleWebKit/i)&&!a4()});const a4=i3(function(){return r6(/Chrome/i)}),c4=i3(function(){return r6(/Android/i)});i3(function(){return r6(/Firefox/i)});let a3=new Map,C6=new Set;function e1(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let r=n=>{if(!t(n)||!n.target)return;let s=a3.get(n.target);s||(s=new Set,a3.set(n.target,s),n.target.addEventListener("transitioncancel",o,{once:!0})),s.add(n.propertyName)},o=n=>{if(!t(n)||!n.target)return;let s=a3.get(n.target);if(s&&(s.delete(n.propertyName),s.size===0&&(n.target.removeEventListener("transitioncancel",o),a3.delete(n.target)),a3.size===0)){for(let a of C6)a();C6.clear()}};document.body.addEventListener("transitionrun",r),document.body.addEventListener("transitionend",o)}typeof document<"u"&&(document.readyState!=="loading"?e1():document.addEventListener("DOMContentLoaded",e1));function l4(){for(const[t]of a3)"isConnected"in t&&!t.isConnected&&a3.delete(t)}function d4(t){requestAnimationFrame(()=>{l4(),a3.size===0?t():C6.add(t)})}function u4(){let t=d.useRef(new Map),r=d.useCallback((s,a,c,l)=>{let u=l!=null&&l.once?(...p)=>{t.current.delete(c),c(...p)}:c;t.current.set(c,{type:a,eventTarget:s,fn:u,options:l}),s.addEventListener(a,u,l)},[]),o=d.useCallback((s,a,c,l)=>{var u;let p=((u=t.current.get(c))===null||u===void 0?void 0:u.fn)||c;s.removeEventListener(a,p,l),t.current.delete(c)},[]),n=d.useCallback(()=>{t.current.forEach((s,a)=>{o(s.eventTarget,s.type,a,s.options)})},[o]);return d.useEffect(()=>n,[n]),{addGlobalListener:r,removeGlobalListener:o,removeAllGlobalListeners:n}}function h4(t,r){t6(()=>{if(t&&t.ref&&r)return t.ref.current=r.current,()=>{t.ref&&(t.ref.current=null)}})}function p4(t){return t.pointerType===""&&t.isTrusted?!0:c4()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function f4(t,r,o){let[n,s]=d.useState(t||r),a=d.useRef(t!==void 0),c=t!==void 0;d.useEffect(()=>{let p=a.current;p!==c&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}.`),a.current=c},[c]);let l=c?t:n,u=d.useCallback((p,...j)=>{let C=(m,...M)=>{o&&(Object.is(l,m)||o(m,...M)),c||(l=m)};typeof p=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s((M,...b)=>{let x=p(c?l:M,...b);return C(x,...j),c?M:x})):(c||s(p),C(p,...j))},[c,l,o]);return[l,u]}function C4(t){let r=t;return r.nativeEvent=t,r.isDefaultPrevented=()=>r.defaultPrevented,r.isPropagationStopped=()=>r.cancelBubble,r.persist=()=>{},r}function x4(t){let r=d.useRef({isFocused:!1,observer:null});t6(()=>{const n=r.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let o=W2(n=>{t==null||t(n)});return d.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){r.current.isFocused=!0;let s=n.target,a=c=>{if(r.current.isFocused=!1,s.disabled){let l=C4(c);o(l)}r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};s.addEventListener("focusout",a,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&s.disabled){var c;(c=r.current.observer)===null||c===void 0||c.disconnect();let l=s===document.activeElement?null:document.activeElement;s.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),r.current.observer.observe(s,{attributes:!0,attributeFilter:["disabled"]})}},[o])}let j4=!1,M3=null,k4=new Set,T3=new Map,C3=!1,x6=!1;function A6(t,r){for(let o of k4)o(t,r)}function g4(t){return!(t.metaKey||!R6()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function z3(t){C3=!0,g4(t)&&(M3="keyboard",A6("keyboard",t))}function q(t){M3="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(C3=!0,A6("pointer",t))}function oe(t){p4(t)&&(C3=!0,M3="virtual")}function ne(t){t.target===window||t.target===document||j4||!t.isTrusted||(!C3&&!x6&&(M3="virtual",A6("virtual",t)),C3=!1,x6=!1)}function se(){C3=!1,x6=!0}function t1(t){if(typeof window>"u"||typeof document>"u"||T3.get(p6(t)))return;const r=p6(t),o=j3(t);let n=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){C3=!0,n.apply(this,arguments)},o.addEventListener("keydown",z3,!0),o.addEventListener("keyup",z3,!0),o.addEventListener("click",oe,!0),r.addEventListener("focus",ne,!0),r.addEventListener("blur",se,!1),typeof PointerEvent<"u"?(o.addEventListener("pointerdown",q,!0),o.addEventListener("pointermove",q,!0),o.addEventListener("pointerup",q,!0)):process.env.NODE_ENV==="test"&&(o.addEventListener("mousedown",q,!0),o.addEventListener("mousemove",q,!0),o.addEventListener("mouseup",q,!0)),r.addEventListener("beforeunload",()=>{ie(t)},{once:!0}),T3.set(r,{focus:n})}const ie=(t,r)=>{const o=p6(t),n=j3(t);r&&n.removeEventListener("DOMContentLoaded",r),T3.has(o)&&(o.HTMLElement.prototype.focus=T3.get(o).focus,n.removeEventListener("keydown",z3,!0),n.removeEventListener("keyup",z3,!0),n.removeEventListener("click",oe,!0),o.removeEventListener("focus",ne,!0),o.removeEventListener("blur",se,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",q,!0),n.removeEventListener("pointermove",q,!0),n.removeEventListener("pointerup",q,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",q,!0),n.removeEventListener("mousemove",q,!0),n.removeEventListener("mouseup",q,!0)),T3.delete(o))};function v4(t){const r=j3(t);let o;return r.readyState!=="loading"?t1(t):(o=()=>{t1(t)},r.addEventListener("DOMContentLoaded",o)),()=>ie(t,o)}typeof document<"u"&&v4();function L4(){return M3!=="pointer"}function ae(){return M3}function m4(t){const r=j3(t),o=B3(r);if(ae()==="virtual"){let n=o;d4(()=>{B3(r)===n&&t.isConnected&&J6(t)})}else J6(t)}function M4(t){let{isDisabled:r,onFocus:o,onBlur:n,onFocusChange:s}=t;const a=d.useCallback(u=>{if(u.target===u.currentTarget)return n&&n(u),s&&s(!1),!0},[n,s]),c=x4(a),l=d.useCallback(u=>{const p=j3(u.target),j=p?B3(p):B3();u.target===u.currentTarget&&j===e4(u.nativeEvent)&&(o&&o(u),s&&s(!0),c(u))},[s,o,c]);return{focusProps:{onFocus:!r&&(o||s||n)?l:void 0,onBlur:!r&&(n||s)?a:void 0}}}function r1(t){if(!t)return;let r=!0;return o=>{let n={...o,preventDefault(){o.preventDefault()},isDefaultPrevented(){return o.isDefaultPrevented()},stopPropagation(){r&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):r=!0},continuePropagation(){r=!1},isPropagationStopped(){return r}};t(n),r&&o.stopPropagation()}}function b4(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:r1(t.onKeyDown),onKeyUp:r1(t.onKeyUp)}}}let _4=d.createContext(null);function y4(t){let r=d.useContext(_4)||{};h4(r,t);let{ref:o,...n}=r;return n}function I4(t,r){let{focusProps:o}=M4(t),{keyboardProps:n}=b4(t),s=f6(o,n),a=y4(r),c=t.isDisabled?{}:a,l=d.useRef(t.autoFocus);d.useEffect(()=>{l.current&&r.current&&m4(r.current),l.current=!1},[r]);let u=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(u=void 0),{focusableProps:f6({...s,tabIndex:u},c)}}let U3=!1,R3=0;function j6(){U3=!0,setTimeout(()=>{U3=!1},50)}function o1(t){t.pointerType==="touch"&&j6()}function w4(){if(!(typeof document>"u"))return R3===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",o1):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",j6)),R3++,()=>{R3--,!(R3>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",o1):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",j6))}}function H4(t){let{onHoverStart:r,onHoverChange:o,onHoverEnd:n,isDisabled:s}=t,[a,c]=d.useState(!1),l=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(w4,[]);let{addGlobalListener:u,removeAllGlobalListeners:p}=u4(),{hoverProps:j,triggerHoverEnd:C}=d.useMemo(()=>{let m=(x,v)=>{if(l.pointerType=v,s||v==="touch"||l.isHovered||!x.currentTarget.contains(x.target))return;l.isHovered=!0;let _=x.currentTarget;l.target=_,u(j3(x.target),"pointerover",k=>{l.isHovered&&l.target&&!J2(l.target,k.target)&&M(k,k.pointerType)},{capture:!0}),r&&r({type:"hoverstart",target:_,pointerType:v}),o&&o(!0),c(!0)},M=(x,v)=>{let _=l.target;l.pointerType="",l.target=null,!(v==="touch"||!l.isHovered||!_)&&(l.isHovered=!1,p(),n&&n({type:"hoverend",target:_,pointerType:v}),o&&o(!1),c(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=x=>{U3&&x.pointerType==="mouse"||m(x,x.pointerType)},b.onPointerLeave=x=>{!s&&x.currentTarget.contains(x.target)&&M(x,x.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=x=>{!l.ignoreEmulatedMouseEvents&&!U3&&m(x,"mouse"),l.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=x=>{!s&&x.currentTarget.contains(x.target)&&M(x,"mouse")}),{hoverProps:b,triggerHoverEnd:M}},[r,o,n,s,l,u,p]);return d.useEffect(()=>{s&&C({currentTarget:l.target},l.pointerType)},[s]),{hoverProps:j,isHovered:a}}function T4(t,r,o){let{isDisabled:n,trigger:s}=t,a=G2(),c=d.useRef(!1),l=d.useRef(!1),u=()=>{(c.current||l.current)&&r.open(l.current)},p=_=>{!c.current&&!l.current&&r.close(_)};d.useEffect(()=>{let _=k=>{o&&o.current&&k.key==="Escape"&&(k.stopPropagation(),r.close(!0))};if(r.isOpen)return document.addEventListener("keydown",_,!0),()=>{document.removeEventListener("keydown",_,!0)}},[o,r]);let j=()=>{s!=="focus"&&(ae()==="pointer"?c.current=!0:c.current=!1,u())},C=()=>{s!=="focus"&&(l.current=!1,c.current=!1,p())},m=()=>{l.current=!1,c.current=!1,p(!0)},M=()=>{L4()&&(l.current=!0,u())},b=()=>{l.current=!1,c.current=!1,p(!0)},{hoverProps:x}=H4({isDisabled:n,onHoverStart:j,onHoverEnd:C}),{focusableProps:v}=I4({isDisabled:n,onFocus:M,onBlur:b},o);return{triggerProps:{"aria-describedby":r.isOpen?a:void 0,...f6(v,x,{onPointerDown:m,onKeyDown:m}),tabIndex:void 0},tooltipProps:{id:a}}}function V4(t){let[r,o]=f4(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=d.useCallback(()=>{o(!0)},[o]),s=d.useCallback(()=>{o(!1)},[o]),a=d.useCallback(()=>{o(!r)},[o,r]);return{isOpen:r,setOpen:o,open:n,close:s,toggle:a}}const P4=1500,n1=500;let d3={},$4=0,y3=!1,r3=null,u3=null;function N4(t={}){let{delay:r=P4,closeDelay:o=n1}=t,{isOpen:n,open:s,close:a}=V4(t),c=d.useMemo(()=>`${++$4}`,[]),l=d.useRef(null),u=d.useRef(a),p=()=>{d3[c]=m},j=()=>{for(let b in d3)b!==c&&(d3[b](!0),delete d3[b])},C=()=>{l.current&&clearTimeout(l.current),l.current=null,j(),p(),y3=!0,s(),r3&&(clearTimeout(r3),r3=null),u3&&(clearTimeout(u3),u3=null)},m=b=>{b||o<=0?(l.current&&clearTimeout(l.current),l.current=null,u.current()):l.current||(l.current=setTimeout(()=>{l.current=null,u.current()},o)),r3&&(clearTimeout(r3),r3=null),y3&&(u3&&clearTimeout(u3),u3=setTimeout(()=>{delete d3[c],u3=null,y3=!1},Math.max(n1,o)))},M=()=>{j(),p(),!n&&!r3&&!y3?r3=setTimeout(()=>{r3=null,y3=!0,C()},r):n||C()};return d.useEffect(()=>{u.current=a},[a]),d.useEffect(()=>()=>{l.current&&clearTimeout(l.current),d3[c]&&delete d3[c]},[c]),{isOpen:n,open:b=>{!b&&r>0&&!l.current?M():C()},close:m}}function W4({children:t,content:r,className:o,offset:n,delay:s,closeDelay:a,placement:c}){const l=N4({delay:s,closeDelay:a}),u=d.useRef(null),{triggerProps:p,tooltipProps:j}=T4({},l,u),C=h(o,"tooltip");return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:u,className:"tooltip-trigger-wrapper",...p,children:t}),e.jsx(f.TooltipTriggerStateContext.Provider,{value:l,children:e.jsxs(f.Tooltip,{...j,triggerRef:u,className:C,offset:n,placement:c,children:[e.jsx(F6,{}),e.jsx("div",{className:"dialog dialog-type-card",children:r})]})})]})}function ce({children:t,content:r,className:o,offset:n=16,trigger:s="hover",delay:a=500,closeDelay:c=100,placement:l,...u}){const p=h(o,"tooltip");return s==="click"?e.jsxs(f.DialogTrigger,{children:[t,e.jsxs(f.Popover,{...u,className:p,offset:n,placement:l,children:[e.jsx(F6,{}),e.jsx(f.Dialog,{className:"dialog dialog-type-card","aria-label":"Tooltip",children:r})]})]}):e.jsx(W4,{content:r,className:o,offset:n,delay:a,closeDelay:c,placement:l,...u,children:t})}function F6({className:t,...r}){const o=h(t,"tooltip-overlay-arrow");return e.jsxs(f.OverlayArrow,{...r,className:o,children:[e.jsx("svg",{viewBox:"0 0 10 5",children:e.jsx("path",{d:"M0 0 L5 5 L10 0"})}),e.jsx("svg",{viewBox:"0 0 10 5",children:e.jsx("path",{d:"M0 0 L5 5 L10 0"})})]})}function le({isAllowed:t,noAccessLabel:r,children:o}){const n=typeof o=="function"?o(t):o;return t?n:e.jsx(ce,{content:r,trigger:"hover",placement:"top",offset:4,children:e.jsx("span",{style:{display:"inline-flex"},children:n})})}function E4({isFavorited:t,onToggle:r,"aria-label":o,size:n="16"}){return e.jsx("button",{type:"button","aria-label":o,"aria-pressed":t,onClick:r,className:`favorite-button${t?" favorite-button--active":""}`,children:t?e.jsx("svg",{width:n,height:n,viewBox:"0 0 16 16",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.99992 1.33325L10.0599 5.50659L14.6666 6.17992L11.3333 9.42659L12.1199 14.0133L7.99992 11.8466L3.87992 14.0133L4.66659 9.42659L1.33325 6.17992L5.93992 5.50659L7.99992 1.33325Z"})}):e.jsx(p1,{size:n})})}function S4({title:t,headerIcon:r,children:o,bodyPadding:n="24px",className:s,style:a}){return e.jsxs("div",{className:h("info-card",s),style:a,children:[e.jsxs("div",{className:"info-card-header",children:[e.jsx("span",{className:"info-card-header-title",children:t}),r&&e.jsx("span",{className:"info-card-header-icon",children:r})]}),e.jsx("div",{className:"info-card-body",style:{padding:n},children:o})]})}function Z4({isOpen:t,title:r,message:o,confirmValue:n,confirmValueLabel:s,confirmLabel:a="Confirm",cancelLabel:c="Cancel",isDanger:l=!1,isLoading:u=!1,onConfirm:p,onClose:j}){const[C,m]=d.useState(""),M=n?C===n:!0;function b(){m(""),j()}function x(){M&&(m(""),p())}return t?e.jsx(Q3,{isOpen:t,onOpenChange:v=>!v&&b(),children:e.jsxs(K3,{children:[e.jsxs(J,{direction:"row",alignPrimary:"space-between",alignSecondary:"center",children:[e.jsx(w6,{children:r}),e.jsx(I6,{onPress:b})]}),e.jsxs(H6,{children:[o&&e.jsx("p",{className:"confirm-dialog-message",dangerouslySetInnerHTML:{__html:o}}),n&&e.jsx(H1,{label:s,value:C,onChange:m,isRequired:!0})]}),e.jsxs(J,{direction:"row",gap:"200",alignPrimary:"end",className:"confirm-dialog-footer",children:[e.jsx(Q,{variant:"neutral",onPress:b,isDisabled:u,children:c}),l?e.jsx(y6,{variant:"danger-primary",onPress:x,isDisabled:!M||u,children:u?"...":a}):e.jsx(Q,{variant:"primary",onPress:x,isDisabled:!M||u,children:u?"...":a})]})]})}):null}function D4(t,r){if(r<=6)return Array.from({length:r},(s,a)=>a+1);const o=[1,2,3],n=[r-1,r];return t<=4?[...o,"...",...n]:t>=r-3?[1,2,"...",r-2,r-1,r]:[1,"...",t-1,t,t+1,"...",r]}function O4({currentPage:t,totalPages:r,onPageChange:o,previousLabel:n,nextLabel:s}){const a=D4(t,r);return e.jsxs("div",{className:"data-table-pagination",children:[e.jsxs("button",{onClick:()=>o(Math.max(1,t-1)),disabled:t===1,className:"data-table-page-btn data-table-page-nav","aria-label":n,children:[e.jsx(g6,{size:"16"}),n]}),e.jsx("div",{className:"data-table-page-numbers",children:a.map((c,l)=>c==="..."?e.jsx("span",{className:"data-table-page-ellipsis",children:"..."},`ellipsis-${l}`):e.jsx("button",{onClick:()=>o(c),className:`data-table-page-btn${c===t?" data-table-page-btn-active":""}`,children:c},c))}),e.jsxs("button",{onClick:()=>o(Math.min(r,t+1)),disabled:t===r,className:"data-table-page-btn data-table-page-nav","aria-label":s,children:[s,e.jsx(v6,{size:"16"})]})]})}function R4({action:t,item:r}){const o=t.isAllowed!==!1,n=e.jsx("button",{className:"data-table-row-action-btn","aria-label":t.label,disabled:!o,onClick:o?()=>t.onPress(r):void 0,children:t.icon});return o?n:e.jsx(le,{isAllowed:!1,noAccessLabel:t.noAccessLabel??"",children:n})}function de({columns:t,data:r,actions:o,rowActions:n,rowActionsLabel:s="",searchPlaceholder:a="Search...",searchKeys:c=[],isLoading:l=!1,loadingMessage:u="Loading...",emptyMessage:p="No records found",previousLabel:j="Previous",nextLabel:C="Next",pageSize:m=10,nestedColumns:M,getNestedData:b,nestedLoadingMessage:x="Loading...",nestedEmptyMessage:v="No records found",nestedSearchKeys:_,nestedSearchPlaceholder:k,nestedActions:g,nestedPageSize:I}){const[w,P]=d.useState(""),[L,V]=d.useState(1),[W,H]=d.useState(new Set),[D,z]=d.useState(new Map),R=!!b&&!!M,K=!!n;function y(T){const S=T.id;H(O=>{const l3=new Set(O);if(l3.has(S))l3.delete(S);else if(l3.add(S),!D.has(S)){const Y=b(T);Y instanceof Promise?(z(_3=>new Map(_3).set(S,{status:"loading",data:[]})),Y.then(_3=>{z(ue=>new Map(ue).set(S,{status:"loaded",data:_3}))})):z(_3=>new Map(_3).set(S,{status:"loaded",data:Y}))}return l3})}const $=c.length>0,B=$||!!o,A=d.useMemo(()=>{if(!w.trim()||!$)return r;const T=w.toLowerCase();return r.filter(S=>c.some(O=>String(S[O]??"").toLowerCase().includes(T)))},[r,w,c,$]),t3=Math.max(1,Math.ceil(A.length/m)),b3=Math.min(L,t3),N=A.slice((b3-1)*m,b3*m);function Z(T,S){return S.render?S.render(T):String(T[S.key]??"")}return e.jsxs(J,{direction:"column",gap:"300",className:"data-table",children:[B&&e.jsxs("div",{className:"data-table-toolbar",children:[$&&e.jsx(P1,{placeholder:a,onSearch:T=>{P(T),V(1)},className:"data-table-search"}),o&&e.jsx("div",{className:"data-table-actions",children:o})]}),l?e.jsx("div",{role:"status","aria-live":"polite","aria-label":u,className:"data-table-status",children:u}):A.length===0?e.jsx("div",{role:"status",className:"data-table-status data-table-empty",children:p}):e.jsxs(D1,{grid:!0,children:[e.jsxs(R1,{children:[R&&e.jsx(L3,{className:"data-table-expand-col"}),t.map((T,S)=>e.jsx(L3,{align:T.align,isRowHeader:S===0,children:T.label},String(T.key))),K&&e.jsx(L3,{align:"right",className:"data-table-row-actions-col",children:s})]}),e.jsx(O1,{children:N.flatMap(T=>{const S=W.has(T.id),O=D.get(T.id),l3=[e.jsxs(c6,{id:T.id,children:[R&&e.jsx(h3,{className:"data-table-expand-cell",children:e.jsx("button",{className:"data-table-expand-btn","aria-label":S?"Collapse row":"Expand row","aria-expanded":S,onClick:()=>y(T),children:S?e.jsx(x3,{size:"16"}):e.jsx(m6,{size:"16"})})}),t.map(Y=>e.jsx(h3,{align:Y.align,children:Z(T,Y)},String(Y.key))),K&&e.jsx(h3,{align:"right",className:"data-table-row-actions-cell",children:e.jsx("div",{className:"data-table-row-actions",children:(typeof n=="function"?n(T):n).map(Y=>e.jsx(R4,{action:Y,item:T},Y.key))})})]},T.id)];return S&&l3.push(e.jsx(c6,{id:`${T.id}-nested`,className:"data-table-nested-row",children:e.jsx(h3,{colSpan:t.length+1+(K?1:0),className:"data-table-nested-cell",children:e.jsx(de,{columns:M,data:(O==null?void 0:O.data)??[],isLoading:!O||O.status==="loading",loadingMessage:x,emptyMessage:v,searchKeys:_,searchPlaceholder:k,actions:g==null?void 0:g(T),pageSize:I??m})})},`${T.id}-nested`)),l3})})]}),t3>1&&e.jsx(O4,{currentPage:b3,totalPages:t3,onPageChange:V,previousLabel:j,nextLabel:C})]})}function A4({isOpen:t,title:r,submitLabel:o="Save",cancelLabel:n="Cancel",isLoading:s=!1,isSubmitDisabled:a=!1,size:c="medium",onSubmit:l,onClose:u,children:p}){return t?e.jsx(Q3,{isOpen:t,onOpenChange:j=>!j&&u(),children:e.jsxs(K3,{className:h("form-modal",`form-modal--${c}`),children:[e.jsxs(J,{direction:"row",alignPrimary:"space-between",alignSecondary:"center",children:[e.jsx(w6,{children:r}),e.jsx(I6,{onPress:u})]}),e.jsx(H6,{children:e.jsx(J,{direction:"column",gap:"300",children:p})}),e.jsxs(J,{direction:"row",gap:"200",alignPrimary:"end",className:"form-modal-footer",children:[e.jsx(Q,{variant:"neutral",onPress:u,isDisabled:s,children:n}),e.jsx(Q,{variant:"primary",onPress:l,isDisabled:a||s,children:s?"...":o})]})]})}):null}function F4({title:t,subtitle:r}){return e.jsxs(J,{direction:"column",gap:"200",className:"page-header",children:[e.jsx($3,{elementType:"h1",className:"page-header-title",children:t}),r&&e.jsx($3,{className:"page-header-subtitle",children:r})]})}function B4(t){if(!(!t||typeof window>"u"))try{const r=window.localStorage.getItem(t);if(r==="1")return!0;if(r==="0")return!1}catch{}}function z4(t,r){if(!(!t||typeof window>"u"))try{window.localStorage.setItem(t,r?"1":"0")}catch{}}function U4({items:t,currentRoute:r,onNavigate:o,title:n,collapsed:s,defaultCollapsed:a=!1,onCollapsedChange:c,storageKey:l}){const u=s!==void 0,[p,j]=d.useState(()=>B4(l)??a),C=u?s:p;function m(){const x=!C;u||(j(x),z4(l,x)),c==null||c(x)}const M=r.replace(/^\//,"");function b(x){return M===x||M.startsWith(x+"/")}return e.jsxs("aside",{className:"sidebar","data-collapsed":C||void 0,children:[e.jsxs("button",{type:"button",onClick:m,"aria-label":C?"Expand sidebar":"Collapse sidebar","aria-expanded":!C,className:"sidebar-toggle",children:[e.jsx(d1,{size:"24"}),!C&&n&&e.jsx("span",{className:"sidebar-title",children:n})]}),e.jsx("div",{className:"sidebar-divider",role:"separator"}),t.map(x=>{const v=b(x.key);return e.jsxs("button",{type:"button",onClick:()=>o(x.key),title:x.label,"aria-label":x.label,"aria-current":v?"page":void 0,"data-active":v||void 0,className:"sidebar-item",children:[x.icon,!C&&e.jsx("span",{className:"sidebar-item-label",children:x.label})]},x.key)})]})}exports.Accordion=f0;exports.AccordionItem=C0;exports.Alert=b6;exports.AnchorOrButton=s3;exports.Avatar=V9;exports.AvatarBlock=$9;exports.AvatarButton=P9;exports.AvatarGroup=N9;exports.Button=Q;exports.ButtonDanger=y6;exports.ButtonGroup=W9;exports.Card=S4;exports.Checkbox=X3;exports.CheckboxField=S9;exports.CheckboxGroup=E9;exports.CodeBlock=j0;exports.CodeEditor=_6;exports.CodeEditorField=I9;exports.CodeEditorPanel=H9;exports.ConfirmDialog=Z4;exports.DataTable=de;exports.Description=X;exports.DestructiveIconButton=C1;exports.Dialog=K3;exports.DialogBody=H6;exports.DialogButton=Z9;exports.DialogClose=I6;exports.DialogDescription=D9;exports.DialogModal=Q3;exports.DialogTitle=w6;exports.DialogTrigger=y1;exports.Divider=O9;exports.ErrorNotification=cs;exports.FavoriteButton=E4;exports.Field=T6;exports.FieldError=e3;exports.FieldGroup=F9;exports.Fieldset=R9;exports.Flex=J;exports.FlexItem=g2;exports.Form=B9;exports.FormModal=A4;exports.Grid=L2;exports.GridItem=m2;exports.Icon=i;exports.IconActivity=he;exports.IconAirplay=pe;exports.IconAlertCircle=i1;exports.IconAlertOctagon=fe;exports.IconAlertTriangle=k6;exports.IconAlignCenter=Ce;exports.IconAlignJustify=xe;exports.IconAlignLeft=je;exports.IconAlignRight=ke;exports.IconAnchor=ge;exports.IconAperture=ve;exports.IconArchive=Le;exports.IconArrowDown=me;exports.IconArrowDownCircle=Me;exports.IconArrowDownLeft=be;exports.IconArrowDownRight=_e;exports.IconArrowLeft=g6;exports.IconArrowLeftCircle=ye;exports.IconArrowRight=v6;exports.IconArrowRightCircle=Ie;exports.IconArrowUp=we;exports.IconArrowUpCircle=He;exports.IconArrowUpLeft=Te;exports.IconArrowUpRight=Ve;exports.IconAtSign=Pe;exports.IconAward=$e;exports.IconBarChart=Ne;exports.IconBarChart2=We;exports.IconBattery=Ee;exports.IconBatteryCharging=Se;exports.IconBell=Ze;exports.IconBellOff=De;exports.IconBluetooth=Oe;exports.IconBold=Re;exports.IconBook=Ae;exports.IconBookOpen=Fe;exports.IconBookmark=Be;exports.IconBox=ze;exports.IconBriefcase=Ue;exports.IconButton=o3;exports.IconCalendar=Ge;exports.IconCamera=qe;exports.IconCameraOff=Xe;exports.IconCast=Ke;exports.IconCheck=G3;exports.IconCheckCircle=L6;exports.IconCheckSquare=Qe;exports.IconChevronDown=x3;exports.IconChevronLeft=Ye;exports.IconChevronRight=m6;exports.IconChevronUp=a1;exports.IconChevronsDown=Je;exports.IconChevronsLeft=et;exports.IconChevronsRight=tt;exports.IconChevronsUp=rt;exports.IconChrome=ot;exports.IconCircle=nt;exports.IconClipboard=st;exports.IconClock=it;exports.IconCloud=at;exports.IconCloudDrizzle=ct;exports.IconCloudLightning=lt;exports.IconCloudOff=dt;exports.IconCloudRain=ut;exports.IconCloudSnow=ht;exports.IconCode=pt;exports.IconCodepen=ft;exports.IconCodesandbox=Ct;exports.IconCoffee=xt;exports.IconColumns=jt;exports.IconCommand=kt;exports.IconCompass=gt;exports.IconCopy=c1;exports.IconCornerDownLeft=vt;exports.IconCornerDownRight=Lt;exports.IconCornerLeftDown=mt;exports.IconCornerLeftUp=Mt;exports.IconCornerRightDown=bt;exports.IconCornerRightUp=_t;exports.IconCornerUpLeft=yt;exports.IconCornerUpRight=It;exports.IconCpu=wt;exports.IconCreditCard=Ht;exports.IconCrop=Tt;exports.IconCrosshair=Vt;exports.IconDatabase=Pt;exports.IconDelete=$t;exports.IconDisc=Nt;exports.IconDivide=Wt;exports.IconDivideCircle=Et;exports.IconDivideSquare=St;exports.IconDollarSign=Zt;exports.IconDownload=Dt;exports.IconDownloadCloud=Ot;exports.IconDribbble=Rt;exports.IconDroplet=At;exports.IconEdit=Ft;exports.IconEdit2=Bt;exports.IconEdit3=zt;exports.IconExternalLink=Ut;exports.IconEye=Gt;exports.IconEyeOff=qt;exports.IconFacebook=Xt;exports.IconFastForward=Kt;exports.IconFeather=Qt;exports.IconFigma=Yt;exports.IconFile=Jt;exports.IconFileMinus=er;exports.IconFilePlus=tr;exports.IconFileText=rr;exports.IconFilm=or;exports.IconFilter=nr;exports.IconFlag=sr;exports.IconFolder=ir;exports.IconFolderMinus=ar;exports.IconFolderPlus=cr;exports.IconFramer=lr;exports.IconFrown=dr;exports.IconGift=ur;exports.IconGitBranch=hr;exports.IconGitCommit=pr;exports.IconGitMerge=fr;exports.IconGitPullRequest=Cr;exports.IconGithub=xr;exports.IconGitlab=jr;exports.IconGlobe=kr;exports.IconGrid=gr;exports.IconHardDrive=vr;exports.IconHash=Lr;exports.IconHeadphones=mr;exports.IconHeart=Mr;exports.IconHelpCircle=br;exports.IconHexagon=_r;exports.IconHome=yr;exports.IconImage=Ir;exports.IconInbox=wr;exports.IconInfo=M6;exports.IconInstagram=Hr;exports.IconItalic=Tr;exports.IconKey=Vr;exports.IconLayers=Pr;exports.IconLayout=$r;exports.IconLifeBuoy=Nr;exports.IconLink=Wr;exports.IconLink2=Er;exports.IconLinkedin=Sr;exports.IconList=Zr;exports.IconLoader=l1;exports.IconLock=Dr;exports.IconLogIn=Or;exports.IconLogOut=Rr;exports.IconMail=Ar;exports.IconMap=Fr;exports.IconMapPin=Br;exports.IconMaximize=zr;exports.IconMaximize2=Ur;exports.IconMeh=Gr;exports.IconMenu=d1;exports.IconMessageCircle=qr;exports.IconMessageSquare=Xr;exports.IconMic=Kr;exports.IconMicOff=Qr;exports.IconMinimize=Yr;exports.IconMinimize2=Jr;exports.IconMinus=u1;exports.IconMinusCircle=eo;exports.IconMinusSquare=to;exports.IconMonitor=ro;exports.IconMoon=oo;exports.IconMoreHorizontal=no;exports.IconMoreVertical=so;exports.IconMousePointer=io;exports.IconMove=ao;exports.IconMusic=co;exports.IconNavigation=lo;exports.IconNavigation2=uo;exports.IconOctagon=ho;exports.IconPackage=po;exports.IconPaperclip=fo;exports.IconPause=Co;exports.IconPauseCircle=xo;exports.IconPenTool=jo;exports.IconPercent=ko;exports.IconPhone=go;exports.IconPhoneCall=vo;exports.IconPhoneForwarded=Lo;exports.IconPhoneIncoming=mo;exports.IconPhoneMissed=Mo;exports.IconPhoneOff=bo;exports.IconPhoneOutgoing=_o;exports.IconPieChart=yo;exports.IconPlay=Io;exports.IconPlayCircle=wo;exports.IconPlus=Ho;exports.IconPlusCircle=To;exports.IconPlusSquare=Vo;exports.IconPocket=Po;exports.IconPower=$o;exports.IconPrinter=No;exports.IconRadio=Wo;exports.IconRefreshCcw=Eo;exports.IconRefreshCw=So;exports.IconRepeat=Zo;exports.IconRewind=Do;exports.IconRotateCcw=Oo;exports.IconRotateCw=Ro;exports.IconRss=Ao;exports.IconSave=Fo;exports.IconScissors=Bo;exports.IconSearch=h1;exports.IconSend=zo;exports.IconServer=Uo;exports.IconSettings=Go;exports.IconShare=qo;exports.IconShare2=Xo;exports.IconShield=Ko;exports.IconShieldOff=Qo;exports.IconShoppingBag=Yo;exports.IconShoppingCart=Jo;exports.IconShuffle=en;exports.IconSidebar=tn;exports.IconSkipBack=rn;exports.IconSkipForward=on;exports.IconSlack=nn;exports.IconSlash=sn;exports.IconSliders=an;exports.IconSmartphone=cn;exports.IconSmile=ln;exports.IconSpeaker=dn;exports.IconSquare=un;exports.IconStar=p1;exports.IconStopCircle=hn;exports.IconSun=pn;exports.IconSunrise=fn;exports.IconSunset=Cn;exports.IconTable=xn;exports.IconTablet=jn;exports.IconTag=kn;exports.IconTarget=gn;exports.IconTerminal=vn;exports.IconThermometer=Ln;exports.IconThumbsDown=mn;exports.IconThumbsUp=Mn;exports.IconToggleLeft=bn;exports.IconToggleRight=_n;exports.IconTool=yn;exports.IconTrash=In;exports.IconTrash2=wn;exports.IconTrashOutline=Hn;exports.IconTrello=Tn;exports.IconTrendingDown=Vn;exports.IconTrendingUp=Pn;exports.IconTriangle=$n;exports.IconTruck=Nn;exports.IconTv=Wn;exports.IconTwitch=En;exports.IconTwitter=Sn;exports.IconType=Zn;exports.IconUmbrella=Dn;exports.IconUnderline=On;exports.IconUnlock=Rn;exports.IconUpload=An;exports.IconUploadCloud=Fn;exports.IconUser=Bn;exports.IconUserCheck=zn;exports.IconUserMinus=Un;exports.IconUserPlus=Gn;exports.IconUserX=qn;exports.IconUsers=Xn;exports.IconVideo=Kn;exports.IconVideoOff=Qn;exports.IconVoicemail=Yn;exports.IconVolume=Jn;exports.IconVolume1=e0;exports.IconVolume2=t0;exports.IconVolumeX=r0;exports.IconWatch=o0;exports.IconWifi=n0;exports.IconWifiOff=s0;exports.IconWind=i0;exports.IconX=p3;exports.IconXCircle=f1;exports.IconXOctagon=a0;exports.IconXSquare=c0;exports.IconYoutube=l0;exports.IconZap=d0;exports.IconZapOff=u0;exports.IconZoomIn=h0;exports.IconZoomOut=p0;exports.Image=w1;exports.Input=V6;exports.InputField=H1;exports.Keyboard=I1;exports.Label=G;exports.Legend=A9;exports.Link=T1;exports.ListBox=P6;exports.ListBoxItem=$6;exports.Logo=q9;exports.Menu=N6;exports.MenuButton=X9;exports.MenuDescription=rs;exports.MenuHeader=Q9;exports.MenuHeading=J9;exports.MenuItem=K9;exports.MenuLabel=ts;exports.MenuPopover=E6;exports.MenuSection=Y9;exports.MenuSeparator=es;exports.MenuShortcut=os;exports.MenuTrigger=W6;exports.Navigation=ns;exports.NavigationButton=is;exports.NavigationPill=ss;exports.Notification=as;exports.PageHeader=F4;exports.Pagination=ds;exports.PaginationGap=Cs;exports.PaginationList=ps;exports.PaginationNext=hs;exports.PaginationPage=fs;exports.PaginationPrevious=us;exports.PermissionGate=le;exports.Picture=U9;exports.PictureSource=G9;exports.Radio=V1;exports.RadioField=js;exports.RadioGroup=xs;exports.Search=P1;exports.Section=v2;exports.Select=$1;exports.SelectField=ks;exports.SelectItem=gs;exports.Sidebar=U4;exports.Slider=N1;exports.SliderField=vs;exports.SliderOutput=W1;exports.SliderThumb=E1;exports.SliderTrack=S1;exports.SplitButton=Ls;exports.SuccessNotification=ls;exports.Switch=Z1;exports.SwitchField=Ms;exports.SwitchGroup=ms;exports.Tab=bs;exports.TabList=_s;exports.TabPanel=ys;exports.Table=D1;exports.TableBody=O1;exports.TableCell=h3;exports.TableColumn=L3;exports.TableHead=R1;exports.TableRow=c6;exports.Tabs=Is;exports.Tag=ws;exports.TagButton=Hs;exports.TagToggle=Ts;exports.TagToggleGroup=Vs;exports.TagToggleList=Ps;exports.Text=$3;exports.TextCode=y2;exports.TextContentHeading=V2;exports.TextContentTitle=P2;exports.TextEmphasis=b2;exports.TextHeading=S3;exports.TextInput=I2;exports.TextLink=_2;exports.TextLinkList=T2;exports.TextList=ee;exports.TextListItem=H2;exports.TextPrice=w2;exports.TextSmall=X1;exports.TextSmallStrong=M2;exports.TextStrong=K1;exports.TextSubheading=J1;exports.TextSubtitle=Y1;exports.TextTitleHero=Q1;exports.TextTitlePage=Z6;exports.Textarea=te;exports.TextareaField=$2;exports.ToastContainer=x2;exports.Tooltip=ce;exports.TooltipOverlayArrow=F6;exports.Tree=k2;exports.formEventTargetToFormData=z9;exports.toast=E;exports.useCustomMediaQuery=g3;exports.useMediaQuery=S6;
818
818
  //# sourceMappingURL=index.cjs.map