cekat-ui 1.3.17 → 1.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,24 +1,24 @@
1
- (function(W,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],u):(W=typeof globalThis<"u"?globalThis:W||self,u(W.CekatUI={},W.React$1,W.$3wX5A$reactdom))})(this,(function(W,u,Rt){"use strict";function E$(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const b=E$(u);var w$={outline:{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"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const _e=(e,t,n,r)=>{const i=u.forwardRef(({color:a="currentColor",size:l=24,stroke:o=2,title:s,className:d,children:c,...f},m)=>u.createElement("svg",{ref:m,...w$[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${t}`,d].join(" "),strokeWidth:o,stroke:a,...f},[s&&u.createElement("title",{key:"svg-title"},s),...r.map(([h,p])=>u.createElement(h,p)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i};const gi=_e("outline","alert-circle","AlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);const S$=_e("outline","alert-triangle","AlertTriangle",[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);const P$=_e("outline","arrow-down","ArrowDown",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]]);const k$=_e("outline","arrow-up","ArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]]);const B$=_e("outline","arrows-sort","ArrowsSort",[["path",{d:"M3 9l4 -4l4 4m-4 -4v14",key:"svg-0"}],["path",{d:"M21 15l-4 4l-4 -4m4 4v-14",key:"svg-1"}]]);const yi=_e("outline","check","Check",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);const $i=_e("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);const N$=_e("outline","chevron-left","ChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]]);const Bs=_e("outline","chevron-right","ChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);const nl=_e("outline","circle-check","CircleCheck",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 12l2 2l4 -4",key:"svg-1"}]]);const A$=_e("outline","cloud-upload","CloudUpload",[["path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1",key:"svg-0"}],["path",{d:"M9 15l3 -3l3 3",key:"svg-1"}],["path",{d:"M12 12l0 9",key:"svg-2"}]]);const dr=_e("outline","info-circle","InfoCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]]);const Ns=_e("outline","loader-2","Loader2",[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]]);const F$=_e("outline","search","Search",[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);const T$=_e("outline","slash","Slash",[["path",{d:"M17 5l-10 14",key:"svg-0"}]]);const cr=_e("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function at(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const fe=typeof document<"u"?u.useLayoutEffect:()=>{},vi={prefix:String(Math.round(Math.random()*1e10)),current:0},As=u.createContext(vi),I$=u.createContext(!1);let M$=!!(typeof window<"u"&&window.document&&window.document.createElement),rl=new WeakMap;function K$(e=!1){let t=u.useContext(As),n=u.useRef(null);if(n.current===null&&!e){let r=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(r){let i=rl.get(r);i==null?rl.set(r,{id:t.current,state:r.memoizedState}):r.memoizedState!==i.state&&(t.current=i.id,rl.delete(r))}n.current=++t.current}return n.current}function L$(e){let t=u.useContext(As);t===vi&&!M$&&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 n=K$(!!e),r=t===vi&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function O$(e){let t=u.useId(),[n]=u.useState(jt()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${vi.prefix}`;return e||`${r}-${t}`}const z$=typeof u.useId=="function"?O$:L$;function V$(){return!1}function _$(){return!0}function R$(e){return()=>{}}function jt(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(R$,V$,_$):u.useContext(I$)}function j$(e){let[t,n]=u.useState(e),r=u.useRef(t),i=u.useRef(null),a=u.useRef(()=>{if(!i.current)return;let o=i.current.next();if(o.done){i.current=null;return}r.current===o.value?a.current():n(o.value)});fe(()=>{r.current=t,i.current&&a.current()});let l=u.useCallback(o=>{i.current=o(r.current),a.current()},[a]);return[t,l]}let H$=!!(typeof window<"u"&&window.document&&window.document.createElement),Tn=new Map,In;typeof FinalizationRegistry<"u"&&(In=new FinalizationRegistry(e=>{Tn.delete(e)}));let il=new WeakMap;function Ee(e){let[t,n]=u.useState(e),r=u.useRef(null),i=z$(t),a=u.useRef(null),l=il.get(a);if(In&&l!==i&&(l!=null&&In.unregister(a),In.register(a,i,a),il.set(a,i)),H$){const o=Tn.get(i);o&&!o.includes(r)?o.push(r):Tn.set(i,[r])}return fe(()=>{let o=i;return()=>{In&&(In.unregister(a),il.delete(a)),Tn.delete(o)}},[i]),u.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function U$(e,t){if(e===t)return e;let n=Tn.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Tn.get(t);return r?(r.forEach(i=>i.current=e),e):t}function mt(e=[]){let t=Ee(),[n,r]=j$(t),i=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return fe(i,[t,i,...e]),n}function fr(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(i=>{const a=Fs(i,t);return n||=typeof a=="function",a});if(n)return()=>{r.forEach((i,a)=>{typeof i=="function"?i():Fs(e[a],null)})}}}function Fs(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ts(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ts(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ee(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ts(e))&&(r&&(r+=" "),r+=t);return r}function X(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],l=r[i];typeof a=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=at(a,l):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof l=="string"?t[i]=ee(a,l):i==="id"&&a&&l?t.id=U$(a,l):i==="ref"&&a&&l?t.ref=fr(a,l):t[i]=l!==void 0?l:a}}return t}function Te(e){const t=u.useRef(null),n=u.useRef(void 0),r=u.useCallback(i=>{if(typeof e=="function"){const a=e,l=a(i);return()=>{typeof l=="function"?l():a(null)}}else if(e)return e.current=i,()=>{e.current=null}},[e]);return u.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}const Bt=Symbol("default");function Pe({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function ue(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:l,values:o,render:s}=e;return u.useMemo(()=>{let d,c,f;return typeof t=="function"?d=t({...o,defaultClassName:i}):d=t,typeof n=="function"?c=n({...o,defaultStyle:l||{}}):c=n,typeof r=="function"?f=r({...o,defaultChildren:a}):r==null?f=a:f=r,{className:d??i,style:c||l?{...l,...c}:void 0,children:f??a,"data-rac":"",render:s?m=>s(m,o):void 0}},[t,n,r,i,a,l,o,s])}function al(e,t){return n=>t(typeof e=="function"?e(n):e,n)}function qe(e,t){let n=u.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||Bt;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),a=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${a} Valid slot names are ${i}.`)}return n.slots[r]}return n}function pe(e,t,n){let r=qe(n,e.slot)||{},{ref:i,...a}=r,l=Te(u.useMemo(()=>fr(t,i),[t,i])),o=X(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&(typeof a.style=="function"||typeof e.style=="function"?o.style=s=>{let d=typeof a.style=="function"?a.style(s):a.style,c={...s.defaultStyle,...d},f=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...f}}:o.style={...a.style,...e.style}),[o,l]}function un(e=!0){let[t,n]=u.useState(e),r=u.useRef(!1),i=u.useCallback(a=>{r.current=!0,n(!!a)},[]);return fe(()=>{r.current||n(!1)},[]),[i,t]}function mr(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}function W$(e,t,n){let{render:r,...i}=t,a=u.useRef(null),l=u.useMemo(()=>fr(n,a),[n,a]);fe(()=>{process.env.NODE_ENV!=="production"&&r&&(a.current?a.current.localName!==e&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${e}>, got <${a.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[e,r]);let o={...i,ref:l};return r?r(o,void 0):u.createElement(e,o)}const Is={},re=new Proxy({},{get(e,t){if(typeof t!="string")return;let n=Is[t];return n||(n=u.forwardRef(W$.bind(null,t)),Is[t]=n),n}}),G$="react-aria-clear-focus",Z$="react-aria-focus",se=e=>Y$(e)?e.document:q$(e)?e:e?.ownerDocument??(typeof document<"u"?document:void 0),xe=e=>se(e)?.defaultView??(typeof window<"u"?window:void 0);function Ms(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Y$(e){return typeof e=="object"&&e!=null&&"window"in e&&e.window===e}function q$(e){return Ms(e)&&e.nodeType===9}function ll(e){return Ms(e)&&e.nodeType===11&&"host"in e}function X$(e,t,n,r){if(n==null||e==null)return()=>{};let i=Array.isArray(e)?e:[e];for(let a of i)a.addEventListener(t,n,r);return()=>{for(let a of i)a.removeEventListener(t,n,r)}}let J$=!1;function ht(){return J$}function ae(e,t){if(!ht())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;typeof n.assignedElements!="function"&&n.assignedSlot?.parentNode?n=n.assignedSlot.parentNode:ll(n)?n=n.host:n=n.parentNode}return!1}const ce=(e=document)=>{if(!ht())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function G(e){if(ht()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function Q$(e,t){if(t===null)return[];t=t??xe(e);let n=[t];if(!ht()||!e||e===t)return n;let r="getRootNode"in t?t.getRootNode():null,i=e.getRootNode()??null;for(;ll(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function Ht(e){if(!e)return!1;let t=e.getRootNode(),n=xe(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}function Ks(e){let t=t5(se(e));t!==e&&(t&&e5(t,e),e&&ol(e,t))}function e5(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function ol(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function t5(e){let t=ce(e),n=t?.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}function Xe(e){if(n5())e.focus({preventScroll:!0});else{let t=r5(e);e.focus(),i5(t)}}let xi=null;function n5(){if(xi==null){xi=!1;try{document.createElement("div").focus({get preventScroll(){return xi=!0,!0}})}catch{}}return xi}function r5(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function i5(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}const a5=typeof Element<"u"&&"checkVisibility"in Element.prototype;function l5(e){const t=xe(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=xe(e);let{display:l,visibility:o}=a(e);i=l!=="none"&&o!=="hidden"&&o!=="collapse"}return i}function o5(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ul(e,t){return a5?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&l5(e)&&o5(e,t)&&(!e.parentElement||ul(e.parentElement,e))}const sl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],u5=sl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";sl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const s5=sl.join(':not([hidden]):not([tabindex="-1"]),');function Ls(e,t){return e.matches(u5)&&!Os(e)&&(t?.skipVisibilityCheck||ul(e))}function dl(e){return e.matches(s5)&&ul(e)&&!Os(e)}function Os(e){let t=e;for(;t!=null;){if(t instanceof xe(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function cl(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function zs(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Vs(e){let t=u.useRef({isFocused:!1,observer:null});return fe(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),u.useCallback(n=>{let r=G(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r,a=l=>{if(t.current.isFocused=!1,i.disabled){let o=cl(l);e?.(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){t.current.observer?.disconnect();let l=i===ce()?null:ce();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Ci=!1;function _s(e){for(;e&&!Ls(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=xe(e),n=t.document.activeElement;if(!n||n===e)return;Ci=!0;let r=!1,i=c=>{(G(c)===n||r)&&c.stopImmediatePropagation()},a=c=>{(G(c)===n||r)&&(c.stopImmediatePropagation(),!e&&!r&&(r=!0,Xe(n),s()))},l=c=>{(G(c)===e||r)&&c.stopImmediatePropagation()},o=c=>{(G(c)===e||r)&&(c.stopImmediatePropagation(),r||(r=!0,Xe(n),s()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",l,!0),Ci=!1,r=!1},d=requestAnimationFrame(s);return s}function Di(e){if(typeof window>"u"||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function fl(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function pt(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Je=pt(function(){return fl(/^Mac/i)}),d5=pt(function(){return fl(/^iPhone/i)}),Rs=pt(function(){return fl(/^iPad/i)||Je()&&navigator.maxTouchPoints>1}),bt=pt(function(){return d5()||Rs()}),Ei=pt(function(){return Je()||bt()}),gt=pt(function(){return Di(/AppleWebKit/i)&&(bt()||!ml())});pt(function(){return gt()&&!ml()&&!js()});const ml=pt(function(){return Di(/Chrome|CriOS|CrMo/i)}),Mn=pt(function(){return Di(/Android/i)}),js=pt(function(){return Di(/(Firefox|FxiOS)/i)});function hl(e){return e.pointerType===""&&e.isTrusted?!0:Mn()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function c5(e){return!Mn()&&e.width===0&&e.height===0||Mn()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const f5=u.createContext({isNative:!0,open:p5,useHref:e=>e});function sn(){return u.useContext(f5)}function m5(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Nt(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:l}=t;!gt()&&js()&&window.event?.type?.startsWith("key")&&e.target==="_blank"&&(Je()?r=!0:i=!0);let o=gt()&&Je()&&!Rs()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:a,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Nt.isOpening=n,Xe(e),e.dispatchEvent(o),Nt.isOpening=!1}Nt.isOpening=!1;function h5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function p5(e,t){h5(e,n=>Nt(n,t))}function b5(e){const n=sn().useHref(e.href??"");return{"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function wi(e){const n=sn().useHref(e?.href??"");let r={};if(e)for(let i of["href","target","rel","download","ping","referrerPolicy"])i in e&&e[i]!==void 0&&(r[i]=i==="href"?n:e[i]);return r}function Hs(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&m5(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let At=null;const hr=new Set;let pr=new Map,dn=!1,pl=!1;const g5={Tab:!0,Escape:!0};function Si(e,t){for(let n of hr)n(e,t)}function y5(e){return!(e.metaKey||!Je()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Pi(e){dn=!0,!Nt.isOpening&&y5(e)&&(At="keyboard",Si("keyboard",e))}function Qe(e){At="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(dn=!0,Si("pointer",e))}function Us(e){!Nt.isOpening&&hl(e)&&(dn=!0,At="virtual")}function Ws(e){let t=xe(G(e)),n=se(G(e));G(e)===t||G(e)===n||Ci||!e.isTrusted||(!dn&&!pl&&(At="virtual",Si("virtual",e)),dn=!1,pl=!1)}function Gs(){Ci||(dn=!1,pl=!0)}function ki(e){if(typeof window>"u"||typeof document>"u")return;const t=xe(e),n=se(e);if(pr.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){dn=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",Pi,!0),n.addEventListener("keyup",Pi,!0),n.addEventListener("click",Us,!0),t.addEventListener("focus",Ws,!0),t.addEventListener("blur",Gs,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Qe,!0),n.addEventListener("pointermove",Qe,!0),n.addEventListener("pointerup",Qe,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Qe,!0),n.addEventListener("mousemove",Qe,!0),n.addEventListener("mouseup",Qe,!0)),t.addEventListener("beforeunload",()=>{Zs(e)},{once:!0}),pr.set(t,{focus:r})}const Zs=(e,t)=>{const n=xe(e),r=se(e);t&&r.removeEventListener("DOMContentLoaded",t),pr.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:pr.get(n).focus}),r.removeEventListener("keydown",Pi,!0),r.removeEventListener("keyup",Pi,!0),r.removeEventListener("click",Us,!0),n.removeEventListener("focus",Ws,!0),n.removeEventListener("blur",Gs,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Qe,!0),r.removeEventListener("pointermove",Qe,!0),r.removeEventListener("pointerup",Qe,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Qe,!0),r.removeEventListener("mousemove",Qe,!0),r.removeEventListener("mouseup",Qe,!0)),pr.delete(n))};function $5(e){const t=se(e);let n;return t.readyState!=="loading"?ki(e):(n=()=>{ki(e)},t.addEventListener("DOMContentLoaded",n)),()=>Zs(e,n)}typeof document<"u"&&$5();function Ut(){return At!=="pointer"}function Kn(){return At}function Ln(e){At=e,Si(e,null)}function Ys(){ki();let[e,t]=u.useState(At);return u.useEffect(()=>{let n=()=>{t(At)};return hr.add(n),()=>{hr.delete(n)}},[]),jt()?null:e}const v5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function x5(e,t,n){let r=n?G(n):void 0,i=se(r),a=xe(r);const l=typeof a<"u"?a.HTMLInputElement:HTMLInputElement,o=typeof a<"u"?a.HTMLTextAreaElement:HTMLTextAreaElement,s=typeof a<"u"?a.HTMLElement:HTMLElement,d=typeof a<"u"?a.KeyboardEvent:KeyboardEvent;let c=ce(i);return e=e||c instanceof l&&!v5.has(c.type)||c instanceof o||c instanceof s&&c.isContentEditable,!(e&&t==="keyboard"&&n instanceof d&&!g5[n.key])}function C5(e,t,n){ki(),u.useEffect(()=>{if(n?.enabled===!1)return;let r=(i,a)=>{x5(!!n?.isTextInput,i,a)&&e(Ut())};return hr.add(r),()=>{hr.delete(r)}},t)}function br(e){return Je()?e.metaKey:e.ctrlKey}const D5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function gr(e){return e instanceof HTMLInputElement&&!D5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const E5=u.useInsertionEffect??fe;function De(e){const t=u.useRef(null);return E5(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function lt(e,t,n,r){let i=De(n),a=n==null;u.useEffect(()=>{if(a||!e.current)return;let l=e.current;return l.addEventListener(t,i,r),()=>{l.removeEventListener(t,i,r)}},[e,t,r,a])}function Ft(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Ee(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}const w5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),S5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function P5(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return w5.has(n.script)}let t=e.split("-")[0];return S5.has(t)}const qs=Symbol.for("react-aria.i18n.locale");function Xs(){let e=typeof window<"u"&&window[qs]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:P5(e)?"rtl":"ltr"}}let bl=Xs(),yr=new Set;function Js(){bl=Xs();for(let e of yr)e(bl)}function k5(){let e=jt(),[t,n]=u.useState(bl);return u.useEffect(()=>(yr.size===0&&window.addEventListener("languagechange",Js),yr.add(n),()=>{yr.delete(n),yr.size===0&&window.removeEventListener("languagechange",Js)}),[]),e?{locale:typeof window<"u"&&window[qs]||"en-US",direction:"ltr"}:t}const B5=u.createContext(null);function be(){let e=k5();return u.useContext(B5)||e}const N5=Symbol.for("react-aria.i18n.locale"),A5=Symbol.for("react-aria.i18n.strings");let Bi;class cn{constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=F5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[N5];if(Bi===void 0){let i=window[A5];if(!i)return null;Bi={};for(let a in i)Bi[a]=new cn({[n]:i[a]},n)}let r=Bi?.[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}function F5(e,t,n="en-US"){if(t[e])return t[e];let r=T5(e),i=I5(e);if(i&&t[`${r}-${i}`])return t[`${r}-${i}`];if(t[r])return t[r];for(let a in t)if(a.startsWith(r+"-"))return t[a];return t[n]}function T5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}function I5(e){if(Intl.Locale)return new Intl.Locale(e).script}const Qs=new Map,ed=new Map;class td{constructor(t,n){this.locale=t,this.strings=n}format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,l=Qs.get(a);l||(l=new Intl.PluralRules(this.locale,{type:r}),Qs.set(a,l));let o=l.select(t);return i=n[o]||n.other,typeof i=="function"?i():i}number(t){let n=ed.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ed.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}}const nd=new WeakMap;function M5(e){let t=nd.get(e);return t||(t=new cn(e),nd.set(e,t)),t}function rd(e,t){return t&&cn.getGlobalDictionaryForPackage(t)||M5(e)}function ke(e,t){let{locale:n}=be(),r=rd(e,t);return u.useMemo(()=>new td(n,r),[n,r])}const K5=typeof document<"u"?u.useInsertionEffect??u.useLayoutEffect:()=>{};function He(e,t,n){let[r,i]=u.useState(e||t),a=u.useRef(r),l=u.useRef(e!==void 0),o=e!==void 0;u.useEffect(()=>{let f=l.current;f!==o&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),l.current=o},[o]);let s=o?e:r;K5(()=>{a.current=s});let[,d]=u.useReducer(()=>({}),{}),c=u.useCallback((f,...m)=>{let h=typeof f=="function"?f(a.current):f;Object.is(a.current,h)||(a.current=h,i(h),d(),n?.(h,...m))},[n]);return[s,c]}const $r=u.createContext(null),vr=u.createContext(null);class et{constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let i=this.clone();return n.addDescendants(i,t),i}}class Ni extends et{filter(t,n,r){let[i,a]=ld(t,n,this.firstChildKey,r),l=this.clone();return l.firstChildKey=i,l.lastChildKey=a,l}}const ps=class ps extends et{};ps.type="header";let gl=ps;const bs=class bs extends et{};bs.type="loader";let Ai=bs;const gs=class gs extends Ni{filter(t,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,t),i}return null}};gs.type="item";let Fi=gs;const ys=class ys extends Ni{filter(t,n,r){let i=super.filter(t,n,r);if(i&&i.lastChildKey!==null){let a=t.getItem(i.lastChildKey);if(a&&a.type!=="header")return i}return null}};ys.type="section";let id=ys;class ad{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),i=r?.firstChildKey!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);return n?.key??null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}getItem(t){return this.keyMap.get(t)??null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let i of r)this.addDescendants(i,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,i]=ld(this,n,this.firstKey,t);return n?.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function ld(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,l=e.getItem(n);for(;l!=null;){let o=l.filter(e,t,r);o!=null&&(o.nextKey=null,a&&(o.prevKey=a.key,a.nextKey=o.key),i==null&&(i=o),t.addNode(o),a=o),l=l.nextKey!=null?e.getItem(l.nextKey):null}if(a&&a.type==="separator"){let o=a.prevKey;t.removeNode(a.key),o!=null?(a=t.getItem(o),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}class od{constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}}class On extends od{constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof On?this.parentNode.level+(this.parentNode.node?.type==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof On?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let r=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&r!==t.node.colIndex){let i=t.getMutableNode();i.colIndex=r}}}setProps(t,n,r,i,a){let l,{value:o,textValue:s,id:d,...c}=t;if(this.node==null?(l=new r(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),c.ref=n,l.props=c,l.rendered=i,l.render=a,l.value=o,t["aria-label"]&&(l["aria-label"]=t["aria-label"]),l.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",d!=null&&d!==l.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(l.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){(t.parentNode?.firstVisibleChild===t||t.parentNode?.lastVisibleChild===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,a=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),a&&t.ownerDocument.markDirty(a),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class L5 extends od{constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}get isConnected(){return!0}createElement(t){return new On(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let t of this.dirtyNodes)t instanceof On&&(!t.isConnected||t.isHidden)?this.removeNode(t):t.updateChildIndices();for(let t of this.dirtyNodes)t instanceof On?(t.isConnected&&!t.isHidden&&(t.updateNode(),this.addNode(t)),t.node&&this.dirtyNodes.delete(t),t.isMutated=!1):this.dirtyNodes.delete(t);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),this.queuedRender&&t(),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}function yl(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,l=u.useMemo(()=>process.env.NODE_ENV!=="production"&&typeof t=="function"?t.toString():void 0,[t]),o=u.useMemo(()=>new WeakMap,[...a,l]);return u.useMemo(()=>{if(n&&typeof t=="function"){let s=[];for(let d of n){let c=O5(d)?d:null,f=c?o.get(c):null;if(!f){f=t(d);let m=f.props.id??d?.key??d?.id;r!=null&&f.props.id==null&&m!=null&&(m=r+":"+m);let h=m??s.length;f=u.cloneElement(f,i?{key:h,id:m,value:d}:{key:h}),c&&o.set(c,f)}s.push(f)}return s}else if(typeof t!="function")return t},[t,n,o,r,i])}function O5(e){switch(typeof e){case"object":return e!=null;case"function":case"symbol":return!0;default:return!1}}let Wt=new Map,$l=new Set;function ud(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let i=G(r);if(!e(r)||!i)return;let a=Wt.get(i);a||(a=new Set,Wt.set(i,a),i.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{let i=G(r);if(!e(r)||!i)return;let a=Wt.get(i);if(a&&(a.delete(r.propertyName),a.size===0&&(i.removeEventListener("transitioncancel",n),Wt.delete(i)),Wt.size===0)){for(let l of $l)l();$l.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?ud():document.addEventListener("DOMContentLoaded",ud));function z5(){for(const[e]of Wt)"isConnected"in e&&!e.isConnected&&Wt.delete(e)}function sd(e){requestAnimationFrame(()=>{z5(),Wt.size===0?e():$l.add(e)})}function Ie(e){if(!e.isConnected)return;const t=se(e);if(Kn()==="virtual"){let n=ce(t);sd(()=>{const r=ce(t);(r===n||r===t.body)&&e.isConnected&&Xe(e)})}else Xe(e)}function vl(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=u.useCallback(s=>{if(G(s)===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=Vs(a),o=u.useCallback(s=>{let d=G(s);const c=se(d),f=c?ce(c):ce();d===s.currentTarget&&d===f&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!t&&(n||i||r)?o:void 0,onBlur:!t&&(r||i)?a:void 0}}}function Ti(e){if(e)return t=>{let n=!0,r={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n&&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."):n=!0},continuePropagation(){n=!1,typeof t.continuePropagation=="function"&&t.continuePropagation()},isPropagationStopped(){return n}};e(r),n&&!(typeof t.isPropagationStopped=="function"&&t.isPropagationStopped())&&t.stopPropagation()}}const V5=new Set(["shift","alt","control","meta","mod"]),_5=["Alt","Control","Meta","Shift"];function R5(e){let t=new Set;return e.alt&&t.add("Alt"),e.shift&&t.add("Shift"),e.ctrl&&t.add("Control"),e.meta&&t.add("Meta"),e.mod&&t.add(Je()?"Meta":"Control"),t}function j5(e){let t=new Set;return e.altKey&&t.add("Alt"),e.ctrlKey&&t.add("Control"),e.metaKey&&t.add("Meta"),e.shiftKey&&t.add("Shift"),t}function dd(e){return _5.filter(t=>e.has(t))}function H5(e){let t=e.split("+").reduce((n,r)=>{let i=r.toLowerCase();return V5.has(i)?i==="shift"?n.shift=!0:i==="alt"?n.alt=!0:i==="control"?n.ctrl=!0:i==="meta"?n.meta=!0:i==="mod"&&(n.mod=!0):n.key=r,n},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(t.key==="")throw new Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function cd(e){return e.toLowerCase()}const U5={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function W5(e){let t=cd(e),n=U5[t];return n??t}function G5(e){let t=dd(R5(e)),n=W5(e.key);return t.length>0?`${t.join("+")}+${n}`:n}function Z5(e){let t=dd(j5(e)),n=cd(e.key);return(t.length>0?`${t.join("+")}+`:"")+n}function Y5(e){let t=new Map;for(let[n,r]of Object.entries(e)){let i=H5(n);t.set(G5(i),r)}return n=>{let r=Z5(n),i=t.get(r),a=i?.(n);a===void 0&&i!==void 0?a={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof a=="boolean"&&(a={shouldContinuePropagation:!a,shouldPreventDefault:a}),a?.shouldPreventDefault&&n.preventDefault(),(!i||a?.shouldContinuePropagation)&&n.continuePropagation()}}function Le(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,i,a;if(t){let l=Y5(t),o=Ti(d=>{if(!ae(d.currentTarget,G(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!n||d.nativeEvent?.isComposing&&!r){d.continuePropagation();return}l(d)}),s=Ti(d=>{if(!ae(d.currentTarget,G(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!n||d.nativeEvent?.isComposing&&!r){d.continuePropagation();return}d.continuePropagation()});i=e.onKeyDown?at(e.onKeyDown,o):o,a=e.onKeyUp?at(e.onKeyUp,s):s}else i=Ti(e.onKeyDown),a=Ti(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:a}}}function xl(e,t){fe(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let Ii=u.createContext(null);function q5(e){let t=u.useContext(Ii)||{};xl(t,e);let{ref:n,...r}=t;return r}function zn(e,t){let{focusProps:n}=vl(e),{keyboardProps:r}=Le(e),i=X(n,r),a=q5(t),l=e.isDisabled?{}:a,o=u.useRef(e.autoFocus);u.useEffect(()=>{o.current&&t.current&&Ie(t.current),o.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:X({...i,tabIndex:s},l)}}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));const Mi=u.createContext(!1);function X5(e){if(u.useContext(Mi))return u.createElement(u.Fragment,null,e.children);let n=u.createElement(Mi.Provider,{value:!0},e.children);return u.createElement("template",null,n)}function Vn(e){let t=(n,r)=>u.useContext(Mi)?null:e(n,r);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function fd(){return u.useContext(Mi)}var Ki={exports:{}},Cl={};var md;function J5(){if(md)return Cl;md=1;var e=u;function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function o(f,m){var h=m(),p=r({inst:{value:h,getSnapshot:m}}),g=p[0].inst,y=p[1];return a(function(){g.value=h,g.getSnapshot=m,s(g)&&y({inst:g})},[f,h,m]),i(function(){return s(g)&&y({inst:g}),f(function(){s(g)&&y({inst:g})})},[f]),l(h),h}function s(f){var m=f.getSnapshot;f=f.value;try{var h=m();return!n(f,h)}catch{return!0}}function d(f,m){return m()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:o;return Cl.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Cl}var Dl={};var hd;function Q5(){return hd||(hd=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}function t(h,p){c||i.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=p();if(!f){var y=p();a(g,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=l({inst:{value:g,getSnapshot:p}});var $=y[0].inst,x=y[1];return s(function(){$.value=g,$.getSnapshot=p,n($)&&x({inst:$})},[h,g,p]),o(function(){return n($)&&x({inst:$}),h(function(){n($)&&x({inst:$})})},[h]),d(g),g}function n(h){var p=h.getSnapshot;h=h.value;try{var g=p();return!a(h,g)}catch{return!0}}function r(h,p){return p()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=u,a=typeof Object.is=="function"?Object.is:e,l=i.useState,o=i.useEffect,s=i.useLayoutEffect,d=i.useDebugValue,c=!1,f=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Dl.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Dl}var pd;function ev(){return pd||(pd=1,process.env.NODE_ENV==="production"?Ki.exports=J5():Ki.exports=Q5()),Ki.exports}var tv=ev();const bd=u.createContext(!1),xr=u.createContext(null);function fn(e){if(u.useContext(xr))return e.content;let{collection:n,document:r}=av(e.createCollection);return u.createElement(u.Fragment,null,u.createElement(X5,null,u.createElement(xr.Provider,{value:r},e.content)),u.createElement(nv,{render:e.children,collection:n}))}function nv({collection:e,render:t}){return t(e)}function rv(e,t,n){let r=jt(),i=u.useRef(r);i.current=r;let a=u.useCallback(()=>i.current?n():t(),[t,n]);return tv.useSyncExternalStore(e,a)}const iv=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:rv;function av(e){let[t]=u.useState(()=>new L5(e?.()||new ad)),n=u.useCallback(l=>t.subscribe(l),[t]),r=u.useCallback(()=>{let l=t.getCollection();return t.isSSR&&t.resetAfterSSR(),l},[t]),i=u.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:iv(n,r,i),document:t}}const El=u.createContext(null);function lv(e){var n;return n=class extends et{},n.type=e,n}function gd(e,t,n,r,i,a){typeof e=="string"&&(e=lv(e));let l=u.useCallback(s=>{s?.setProps(t,n,e,r,a)},[t,n,r,a,e]),o=u.useContext(El);if(o){let s=o.ownerDocument.nodesByProps.get(t);return s||(s=o.ownerDocument.createElement(e.type),s.setProps(t,n,e,r,a),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,s)),i?u.createElement(El.Provider,{value:s},i):null}return u.createElement(e.type,{ref:l},i)}function yt(e,t){let n=({node:i})=>t(i.props,i.props.ref,i),r=u.forwardRef((i,a)=>{let l=u.useContext(Ii);if(!u.useContext(bd)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(i,a)}return gd(e,i,a,"children"in i?i.children:null,null,s=>u.createElement(Ii.Provider,{value:l},u.createElement(n,{node:s})))});return r.displayName=t.name,r}function Li(e,t,n=yd){let r=({node:a})=>t(a.props,a.props.ref,a),i=u.forwardRef((a,l)=>{let o=n(a);return gd(e,a,l,null,o,s=>u.createElement(r,{node:s}))??u.createElement(u.Fragment,null)});return i.displayName=t.name,i}function yd(e){return yl({...e,addIdAndValue:!0})}const $d=u.createContext(null);function mn(e){let t=u.useContext($d),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=yd({...e,idScope:r,dependencies:n});return u.useContext(xr)&&(i=u.createElement(ov,null,i)),t=u.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),u.createElement($d.Provider,{value:t},i)}function ov({children:e}){let t=u.useContext(xr),n=u.useMemo(()=>u.createElement(xr.Provider,{value:null},u.createElement(bd.Provider,{value:!0},e)),[e]);return jt()?u.createElement(El.Provider,{value:t},n):Rt.createPortal(n,t)}const vd=u.createContext(null),wl={CollectionRoot({collection:e,renderDropIndicator:t}){return xd(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return xd(e,t,n)}};function xd(e,t,n){return yl({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){if(r.type==="content")return u.createElement(u.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:u.createElement(u.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,uv(e,r,n))}})}function uv(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i!=null?e.getItem(i):null;for(;a!=null&&a.type!=="item";)i=e.getKeyAfter(a.key),a=i!=null?e.getItem(i):null;let l=t.nextKey!=null?e.getItem(t.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?e.getItem(l.nextKey):null;let o=[];if(l==null){let s=t;for(;s?.type==="item"&&(!a||s.parentKey!==a.parentKey&&a.level<s.level);){let d=n({type:"item",key:s.key,dropPosition:"after"});u.isValidElement(d)&&o.push(u.cloneElement(d,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return o}const ge=u.createContext(wl);function Cd(e){return u.useMemo(()=>e!=null?new Set([e]):null,[e])}const sv=new Set(["id"]),dv=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),cv=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),fv=new Set(["dir","lang","hidden","inert","translate"]),Dd=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),mv=/^(data-.*)$/;function ie(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:l}=t,o={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(sv.has(s)||n&&dv.has(s)||r&&cv.has(s)||i&&fv.has(s)||a&&(Dd.has(s)||s.endsWith("Capture")&&Dd.has(s.slice(0,-7)))||l?.has(s)||mv.test(s))&&(o[s]=e[s]);return o}let _n="default",Sl="",Oi=new WeakMap;function Pl(e){if(bt()&&gt()){if(_n==="default"){const t=se(e);Sl=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}_n="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Oi.set(e,e.style[t]),e.style[t]="none"}}function zi(e){if(bt()&&gt()){if(_n!=="disabled")return;_n="restoring",setTimeout(()=>{sd(()=>{if(_n==="restoring"){const t=se(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Sl||""),Sl="",_n="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Oi.has(e)){let t=Oi.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Oi.delete(e)}}function Ed(e){return e?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let kl=new WeakMap;function wd(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return Ed(t);if(kl.has(t))return kl.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof xe(n).HTMLMetaElement&&(n.nonce||n.content)||Ed(t)||void 0;return r!==void 0&&kl.set(t,r),r}const Cr=u.createContext({register:()=>{}});Cr.displayName="PressResponderContext";function Rn(){let e=u.useRef(new Map),t=u.useCallback((i,a,l,o)=>{let s=o?.once?(...d)=>{e.current.delete(l),l(...d)}:l;e.current.set(l,{type:a,eventTarget:i,fn:s,options:o}),i.addEventListener(a,s,o)},[]),n=u.useCallback((i,a,l,o)=>{let s=e.current.get(l)?.fn||l;i.removeEventListener(a,s,o),e.current.delete(l)},[]),r=u.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function hv(e){let t=u.useContext(Cr);if(t){let{register:n,ref:r,...i}=t;e=X(i,e),n()}return xl(t,e.ref),e}class Vi{#e;constructor(t,n,r,i){this.#e=!0;const l=(i?.target??r.currentTarget)?.getBoundingClientRect();let o,s=0,d,c=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,c=r.clientY),l&&(d!=null&&c!=null?(o=d-l.left,s=c-l.top):(o=l.width/2,s=l.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=o,this.y=s,this.key=r.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const Sd=Symbol("linkClicked"),Pd="react-aria-pressable-style",kd="data-react-aria-pressable";function Tt(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:l,isDisabled:o,isPressed:s,preventFocusOnPress:d,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:f,ref:m,...h}=hv(e),[p,g]=u.useState(!1),y=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:$,removeAllGlobalListeners:x}=Rn(),v=u.useCallback((D,T)=>{let Y=y.current;if(o||Y.didFirePressStart)return!1;let K=!0;if(Y.isTriggeringEvent=!0,r){let q=new Vi("pressstart",T,D);r(q),K=q.shouldStopPropagation}return n&&n(!0),Y.isTriggeringEvent=!1,Y.didFirePressStart=!0,g(!0),K},[o,r,n]),C=u.useCallback((D,T,Y=!0)=>{let K=y.current;if(!K.didFirePressStart)return!1;K.didFirePressStart=!1,K.isTriggeringEvent=!0;let q=!0;if(i){let P=new Vi("pressend",T,D);i(P),q=P.shouldStopPropagation}if(n&&n(!1),g(!1),t&&Y&&!o){let P=new Vi("press",T,D);t(P),q&&=P.shouldStopPropagation}return K.isTriggeringEvent=!1,q},[o,i,n,t]),w=De(C),S=u.useCallback((D,T)=>{let Y=y.current;if(o)return!1;if(a){Y.isTriggeringEvent=!0;let K=new Vi("pressup",T,D);return a(K),Y.isTriggeringEvent=!1,K.shouldStopPropagation}return!0},[o,a]),B=De(S),E=u.useCallback(D=>{let T=y.current;if(T.isPressed&&T.target){T.didFirePressStart&&T.pointerType!=null&&C(hn(T.target,D),T.pointerType,!1),T.isPressed=!1,T.isOverTarget=!1,T.activePointerId=null,T.pointerType=null,x(),f||zi(T.target);for(let Y of T.disposables)Y();T.disposables=[]}},[f,x,C]),k=De(E);u.useEffect(()=>{o&&y.current.isPressed&&k({currentTarget:y.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[o]);let M=u.useCallback(D=>{c&&E(D)},[c,E]),F=u.useCallback(D=>{o||l?.(D)},[o,l]),I=u.useCallback((D,T)=>{if(!o&&l){let Y=new MouseEvent("click",D);zs(Y,T),l(cl(Y))}},[o,l]),j=u.useMemo(()=>{let D=y.current,T={onKeyDown(K){if(Nl(K.nativeEvent,K.currentTarget)&&ae(K.currentTarget,G(K))){Ad(G(K),K.key)&&K.preventDefault();let q=!0;!D.isPressed&&!K.repeat&&(D.target=K.currentTarget,D.isPressed=!0,D.pointerType="keyboard",q=v(K,"keyboard"));let P=K.currentTarget,N=R=>{Nl(R,P)&&!R.repeat&&ae(P,G(R))&&D.target&&B(hn(D.target,R),"keyboard")};$(se(K.currentTarget),"keyup",at(N,Y),!0),q&&K.stopPropagation(),K.metaKey&&Je()&&D.metaKeyEvents?.set(K.key,K.nativeEvent)}else K.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(K){if(!(K&&!ae(K.currentTarget,G(K)))&&K&&K.button===0&&!D.isTriggeringEvent&&!Nt.isOpening){let q=!0;if(o&&K.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||hl(K.nativeEvent))){let P=v(K,"virtual"),N=B(K,"virtual"),R=w(K,"virtual");F(K),q=P&&N&&R}else if(D.isPressed&&D.pointerType!=="keyboard"){let P=D.pointerType||K.nativeEvent.pointerType||"virtual",N=B(hn(K.currentTarget,K),P),R=w(hn(K.currentTarget,K),P,!0);q=N&&R,D.isOverTarget=!1,F(K),k(K)}D.ignoreEmulatedMouseEvents=!1,q&&K.stopPropagation()}}},Y=K=>{if(D.isPressed&&D.target&&Nl(K,D.target)){Ad(G(K),K.key)&&K.preventDefault();let q=G(K),P=ae(D.target,q);w(hn(D.target,K),"keyboard",P),P&&I(K,D.target),x(),K.key!=="Enter"&&Bl(D.target)&&ae(D.target,q)&&!K[Sd]&&(K[Sd]=!0,Nt(D.target,K,!1)),D.isPressed=!1,D.metaKeyEvents?.delete(K.key)}else if(K.key==="Meta"&&D.metaKeyEvents?.size){let q=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let P of q.values())D.target?.dispatchEvent(new KeyboardEvent("keyup",P))}};if(typeof PointerEvent<"u"){T.onPointerDown=P=>{if(P.button!==0||!ae(P.currentTarget,G(P)))return;if(c5(P.nativeEvent)){D.pointerType="virtual";return}D.pointerType=P.pointerType;let N=!0;if(!D.isPressed){D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=P.pointerId,D.target=P.currentTarget,f||Pl(D.target),N=v(P,D.pointerType);let R=G(P);"releasePointerCapture"in R&&("hasPointerCapture"in R?R.hasPointerCapture(P.pointerId)&&R.releasePointerCapture(P.pointerId):R.releasePointerCapture(P.pointerId)),$(se(P.currentTarget),"pointerup",K,!1),$(se(P.currentTarget),"pointercancel",q,!1)}N&&P.stopPropagation()},T.onMouseDown=P=>{if(ae(P.currentTarget,G(P))&&P.button===0){if(d){let N=_s(P.target);N&&D.disposables.push(N)}P.stopPropagation()}},T.onPointerUp=P=>{!ae(P.currentTarget,G(P))||D.pointerType==="virtual"||P.button===0&&!D.isPressed&&B(P,D.pointerType||P.pointerType)},T.onPointerEnter=P=>{P.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,v(hn(D.target,P),D.pointerType))},T.onPointerLeave=P=>{P.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,w(hn(D.target,P),D.pointerType,!1),M(P))};let K=P=>{if(P.pointerId===D.activePointerId&&D.isPressed&&P.button===0&&D.target){if(ae(D.target,G(P))&&D.pointerType!=null){let N=!1,R=setTimeout(()=>{D.isPressed&&D.target instanceof HTMLElement&&(N?k(P):(Xe(D.target),D.target.click()))},80);$(P.currentTarget,"click",()=>N=!0,!0),D.disposables.push(()=>clearTimeout(R))}else k(P);D.isOverTarget=!1}},q=P=>{k(P)};T.onDragStart=P=>{ae(P.currentTarget,G(P))&&k(P)}}else if(process.env.NODE_ENV==="test"){T.onMouseDown=P=>{if(P.button!==0||!ae(P.currentTarget,G(P)))return;if(D.ignoreEmulatedMouseEvents){P.stopPropagation();return}if(D.isPressed=!0,D.isOverTarget=!0,D.target=P.currentTarget,D.pointerType=hl(P.nativeEvent)?"virtual":"mouse",Rt.flushSync(()=>v(P,D.pointerType))&&P.stopPropagation(),d){let R=_s(P.target);R&&D.disposables.push(R)}$(se(P.currentTarget),"mouseup",K,!1)},T.onMouseEnter=P=>{if(!ae(P.currentTarget,G(P)))return;let N=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!0,N=v(P,D.pointerType)),N&&P.stopPropagation()},T.onMouseLeave=P=>{if(!ae(P.currentTarget,G(P)))return;let N=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!1,N=w(P,D.pointerType,!1),M(P)),N&&P.stopPropagation()},T.onMouseUp=P=>{ae(P.currentTarget,G(P))&&!D.ignoreEmulatedMouseEvents&&P.button===0&&!D.isPressed&&B(P,D.pointerType||"mouse")};let K=P=>{if(P.button===0){if(D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=!1;return}D.target&&ae(D.target,G(P))&&D.pointerType!=null||k(P),D.isOverTarget=!1}};T.onTouchStart=P=>{if(!ae(P.currentTarget,G(P)))return;let N=pv(P.nativeEvent);if(!N)return;D.activePointerId=N.identifier,D.ignoreEmulatedMouseEvents=!0,D.isOverTarget=!0,D.isPressed=!0,D.target=P.currentTarget,D.pointerType="touch",f||Pl(D.target),v(Gt(D.target,P),D.pointerType)&&P.stopPropagation(),$(xe(P.currentTarget),"scroll",q,!0)},T.onTouchMove=P=>{if(!ae(P.currentTarget,G(P)))return;if(!D.isPressed){P.stopPropagation();return}let N=Bd(P.nativeEvent,D.activePointerId),R=!0;N&&Nd(N,P.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,R=v(Gt(D.target,P),D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,R=w(Gt(D.target,P),D.pointerType,!1),M(Gt(D.target,P))),R&&P.stopPropagation()},T.onTouchEnd=P=>{if(!ae(P.currentTarget,G(P)))return;if(!D.isPressed){P.stopPropagation();return}let N=Bd(P.nativeEvent,D.activePointerId),R=!0;N&&Nd(N,P.currentTarget)&&D.pointerType!=null?(B(Gt(D.target,P),D.pointerType),R=w(Gt(D.target,P),D.pointerType),I(P.nativeEvent,D.target)):D.isOverTarget&&D.pointerType!=null&&(R=w(Gt(D.target,P),D.pointerType,!1)),R&&P.stopPropagation(),D.isPressed=!1,D.activePointerId=null,D.isOverTarget=!1,D.ignoreEmulatedMouseEvents=!0,D.target&&!f&&zi(D.target),x()},T.onTouchCancel=P=>{ae(P.currentTarget,G(P))&&(P.stopPropagation(),D.isPressed&&k(Gt(D.target,P)))};let q=P=>{D.isPressed&&ae(G(P),D.target)&&k({currentTarget:D.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};T.onDragStart=P=>{ae(P.currentTarget,G(P))&&k(P)}}return T},[$,o,d,x,f,M,v,F,I]);return u.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const D=se(m.current);if(!D||!D.head||D.getElementById(Pd))return;const T=D.createElement("style");T.id=Pd;let Y=wd(D);Y&&(T.nonce=Y),T.textContent=`
1
+ (function(U,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],u):(U=typeof globalThis<"u"?globalThis:U||self,u(U.CekatUI={},U.React$1,U.$3wX5A$reactdom))})(this,(function(U,u,jt){"use strict";function P$(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const b=P$(u);var k$={outline:{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"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const _e=(e,t,n,r)=>{const i=u.forwardRef(({color:a="currentColor",size:l=24,stroke:o=2,title:s,className:d,children:c,...f},m)=>u.createElement("svg",{ref:m,...k$[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${t}`,d].join(" "),strokeWidth:o,stroke:a,...f},[s&&u.createElement("title",{key:"svg-title"},s),...r.map(([h,p])=>u.createElement(h,p)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i};const $i=_e("outline","alert-circle","AlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);const B$=_e("outline","alert-triangle","AlertTriangle",[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);const N$=_e("outline","arrow-down","ArrowDown",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]]);const A$=_e("outline","arrow-up","ArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]]);const F$=_e("outline","arrows-sort","ArrowsSort",[["path",{d:"M3 9l4 -4l4 4m-4 -4v14",key:"svg-0"}],["path",{d:"M21 15l-4 4l-4 -4m4 4v-14",key:"svg-1"}]]);const vi=_e("outline","check","Check",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);const xi=_e("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);const T$=_e("outline","chevron-left","ChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]]);const Ns=_e("outline","chevron-right","ChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);const nl=_e("outline","circle-check","CircleCheck",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 12l2 2l4 -4",key:"svg-1"}]]);const I$=_e("outline","cloud-upload","CloudUpload",[["path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1",key:"svg-0"}],["path",{d:"M9 15l3 -3l3 3",key:"svg-1"}],["path",{d:"M12 12l0 9",key:"svg-2"}]]);const dr=_e("outline","info-circle","InfoCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]]);const As=_e("outline","loader-2","Loader2",[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]]);const Fs=_e("outline","search","Search",[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);const M$=_e("outline","slash","Slash",[["path",{d:"M17 5l-10 14",key:"svg-0"}]]);const cr=_e("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function at(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const fe=typeof document<"u"?u.useLayoutEffect:()=>{},Ci={prefix:String(Math.round(Math.random()*1e10)),current:0},Ts=u.createContext(Ci),K$=u.createContext(!1);let L$=!!(typeof window<"u"&&window.document&&window.document.createElement),rl=new WeakMap;function O$(e=!1){let t=u.useContext(Ts),n=u.useRef(null);if(n.current===null&&!e){let r=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(r){let i=rl.get(r);i==null?rl.set(r,{id:t.current,state:r.memoizedState}):r.memoizedState!==i.state&&(t.current=i.id,rl.delete(r))}n.current=++t.current}return n.current}function z$(e){let t=u.useContext(Ts);t===Ci&&!L$&&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 n=O$(!!e),r=t===Ci&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function V$(e){let t=u.useId(),[n]=u.useState(Ht()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ci.prefix}`;return e||`${r}-${t}`}const _$=typeof u.useId=="function"?V$:z$;function R$(){return!1}function j$(){return!0}function H$(e){return()=>{}}function Ht(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(H$,R$,j$):u.useContext(K$)}function U$(e){let[t,n]=u.useState(e),r=u.useRef(t),i=u.useRef(null),a=u.useRef(()=>{if(!i.current)return;let o=i.current.next();if(o.done){i.current=null;return}r.current===o.value?a.current():n(o.value)});fe(()=>{r.current=t,i.current&&a.current()});let l=u.useCallback(o=>{i.current=o(r.current),a.current()},[a]);return[t,l]}let W$=!!(typeof window<"u"&&window.document&&window.document.createElement),Tn=new Map,In;typeof FinalizationRegistry<"u"&&(In=new FinalizationRegistry(e=>{Tn.delete(e)}));let il=new WeakMap;function Ee(e){let[t,n]=u.useState(e),r=u.useRef(null),i=_$(t),a=u.useRef(null),l=il.get(a);if(In&&l!==i&&(l!=null&&In.unregister(a),In.register(a,i,a),il.set(a,i)),W$){const o=Tn.get(i);o&&!o.includes(r)?o.push(r):Tn.set(i,[r])}return fe(()=>{let o=i;return()=>{In&&(In.unregister(a),il.delete(a)),Tn.delete(o)}},[i]),u.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function G$(e,t){if(e===t)return e;let n=Tn.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Tn.get(t);return r?(r.forEach(i=>i.current=e),e):t}function mt(e=[]){let t=Ee(),[n,r]=U$(t),i=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return fe(i,[t,i,...e]),n}function fr(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(i=>{const a=Is(i,t);return n||=typeof a=="function",a});if(n)return()=>{r.forEach((i,a)=>{typeof i=="function"?i():Is(e[a],null)})}}}function Is(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ms(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ms(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ee(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ms(e))&&(r&&(r+=" "),r+=t);return r}function q(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],l=r[i];typeof a=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=at(a,l):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof l=="string"?t[i]=ee(a,l):i==="id"&&a&&l?t.id=G$(a,l):i==="ref"&&a&&l?t.ref=fr(a,l):t[i]=l!==void 0?l:a}}return t}function Te(e){const t=u.useRef(null),n=u.useRef(void 0),r=u.useCallback(i=>{if(typeof e=="function"){const a=e,l=a(i);return()=>{typeof l=="function"?l():a(null)}}else if(e)return e.current=i,()=>{e.current=null}},[e]);return u.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}const Nt=Symbol("default");function Pe({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function ue(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:l,values:o,render:s}=e;return u.useMemo(()=>{let d,c,f;return typeof t=="function"?d=t({...o,defaultClassName:i}):d=t,typeof n=="function"?c=n({...o,defaultStyle:l||{}}):c=n,typeof r=="function"?f=r({...o,defaultChildren:a}):r==null?f=a:f=r,{className:d??i,style:c||l?{...l,...c}:void 0,children:f??a,"data-rac":"",render:s?m=>s(m,o):void 0}},[t,n,r,i,a,l,o,s])}function al(e,t){return n=>t(typeof e=="function"?e(n):e,n)}function qe(e,t){let n=u.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||Nt;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),a=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${a} Valid slot names are ${i}.`)}return n.slots[r]}return n}function pe(e,t,n){let r=qe(n,e.slot)||{},{ref:i,...a}=r,l=Te(u.useMemo(()=>fr(t,i),[t,i])),o=q(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&(typeof a.style=="function"||typeof e.style=="function"?o.style=s=>{let d=typeof a.style=="function"?a.style(s):a.style,c={...s.defaultStyle,...d},f=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...f}}:o.style={...a.style,...e.style}),[o,l]}function un(e=!0){let[t,n]=u.useState(e),r=u.useRef(!1),i=u.useCallback(a=>{r.current=!0,n(!!a)},[]);return fe(()=>{r.current||n(!1)},[]),[i,t]}function mr(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}function Z$(e,t,n){let{render:r,...i}=t,a=u.useRef(null),l=u.useMemo(()=>fr(n,a),[n,a]);fe(()=>{process.env.NODE_ENV!=="production"&&r&&(a.current?a.current.localName!==e&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${e}>, got <${a.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[e,r]);let o={...i,ref:l};return r?r(o,void 0):u.createElement(e,o)}const Ks={},re=new Proxy({},{get(e,t){if(typeof t!="string")return;let n=Ks[t];return n||(n=u.forwardRef(Z$.bind(null,t)),Ks[t]=n),n}}),Y$="react-aria-clear-focus",q$="react-aria-focus",se=e=>X$(e)?e.document:J$(e)?e:e?.ownerDocument??(typeof document<"u"?document:void 0),xe=e=>se(e)?.defaultView??(typeof window<"u"?window:void 0);function Ls(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function X$(e){return typeof e=="object"&&e!=null&&"window"in e&&e.window===e}function J$(e){return Ls(e)&&e.nodeType===9}function ll(e){return Ls(e)&&e.nodeType===11&&"host"in e}function Q$(e,t,n,r){if(n==null||e==null)return()=>{};let i=Array.isArray(e)?e:[e];for(let a of i)a.addEventListener(t,n,r);return()=>{for(let a of i)a.removeEventListener(t,n,r)}}let e5=!1;function ht(){return e5}function ae(e,t){if(!ht())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;typeof n.assignedElements!="function"&&n.assignedSlot?.parentNode?n=n.assignedSlot.parentNode:ll(n)?n=n.host:n=n.parentNode}return!1}const ce=(e=document)=>{if(!ht())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function W(e){if(ht()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function t5(e,t){if(t===null)return[];t=t??xe(e);let n=[t];if(!ht()||!e||e===t)return n;let r="getRootNode"in t?t.getRootNode():null,i=e.getRootNode()??null;for(;ll(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function Ut(e){if(!e)return!1;let t=e.getRootNode(),n=xe(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}function Os(e){let t=r5(se(e));t!==e&&(t&&n5(t,e),e&&ol(e,t))}function n5(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function ol(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function r5(e){let t=ce(e),n=t?.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}function Xe(e){if(i5())e.focus({preventScroll:!0});else{let t=a5(e);e.focus(),l5(t)}}let Di=null;function i5(){if(Di==null){Di=!1;try{document.createElement("div").focus({get preventScroll(){return Di=!0,!0}})}catch{}}return Di}function a5(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function l5(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}const o5=typeof Element<"u"&&"checkVisibility"in Element.prototype;function u5(e){const t=xe(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=xe(e);let{display:l,visibility:o}=a(e);i=l!=="none"&&o!=="hidden"&&o!=="collapse"}return i}function s5(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ul(e,t){return o5?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&u5(e)&&s5(e,t)&&(!e.parentElement||ul(e.parentElement,e))}const sl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],d5=sl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";sl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const c5=sl.join(':not([hidden]):not([tabindex="-1"]),');function zs(e,t){return e.matches(d5)&&!Vs(e)&&(t?.skipVisibilityCheck||ul(e))}function dl(e){return e.matches(c5)&&ul(e)&&!Vs(e)}function Vs(e){let t=e;for(;t!=null;){if(t instanceof xe(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function cl(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function _s(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Rs(e){let t=u.useRef({isFocused:!1,observer:null});return fe(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),u.useCallback(n=>{let r=W(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r,a=l=>{if(t.current.isFocused=!1,i.disabled){let o=cl(l);e?.(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){t.current.observer?.disconnect();let l=i===ce()?null:ce();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Ei=!1;function js(e){for(;e&&!zs(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=xe(e),n=t.document.activeElement;if(!n||n===e)return;Ei=!0;let r=!1,i=c=>{(W(c)===n||r)&&c.stopImmediatePropagation()},a=c=>{(W(c)===n||r)&&(c.stopImmediatePropagation(),!e&&!r&&(r=!0,Xe(n),s()))},l=c=>{(W(c)===e||r)&&c.stopImmediatePropagation()},o=c=>{(W(c)===e||r)&&(c.stopImmediatePropagation(),r||(r=!0,Xe(n),s()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",l,!0),Ei=!1,r=!1},d=requestAnimationFrame(s);return s}function wi(e){if(typeof window>"u"||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function fl(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function pt(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Je=pt(function(){return fl(/^Mac/i)}),f5=pt(function(){return fl(/^iPhone/i)}),Hs=pt(function(){return fl(/^iPad/i)||Je()&&navigator.maxTouchPoints>1}),bt=pt(function(){return f5()||Hs()}),Si=pt(function(){return Je()||bt()}),gt=pt(function(){return wi(/AppleWebKit/i)&&(bt()||!ml())});pt(function(){return gt()&&!ml()&&!Us()});const ml=pt(function(){return wi(/Chrome|CriOS|CrMo/i)}),Mn=pt(function(){return wi(/Android/i)}),Us=pt(function(){return wi(/(Firefox|FxiOS)/i)});function hl(e){return e.pointerType===""&&e.isTrusted?!0:Mn()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function m5(e){return!Mn()&&e.width===0&&e.height===0||Mn()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const h5=u.createContext({isNative:!0,open:g5,useHref:e=>e});function sn(){return u.useContext(h5)}function p5(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function At(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:l}=t;!gt()&&Us()&&window.event?.type?.startsWith("key")&&e.target==="_blank"&&(Je()?r=!0:i=!0);let o=gt()&&Je()&&!Hs()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:a,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});At.isOpening=n,Xe(e),e.dispatchEvent(o),At.isOpening=!1}At.isOpening=!1;function b5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function g5(e,t){b5(e,n=>At(n,t))}function y5(e){const n=sn().useHref(e.href??"");return{"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Pi(e){const n=sn().useHref(e?.href??"");let r={};if(e)for(let i of["href","target","rel","download","ping","referrerPolicy"])i in e&&e[i]!==void 0&&(r[i]=i==="href"?n:e[i]);return r}function Ws(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&p5(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let Ft=null;const hr=new Set;let pr=new Map,dn=!1,pl=!1;const $5={Tab:!0,Escape:!0};function ki(e,t){for(let n of hr)n(e,t)}function v5(e){return!(e.metaKey||!Je()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Bi(e){dn=!0,!At.isOpening&&v5(e)&&(Ft="keyboard",ki("keyboard",e))}function Qe(e){Ft="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(dn=!0,ki("pointer",e))}function Gs(e){!At.isOpening&&hl(e)&&(dn=!0,Ft="virtual")}function Zs(e){let t=xe(W(e)),n=se(W(e));W(e)===t||W(e)===n||Ei||!e.isTrusted||(!dn&&!pl&&(Ft="virtual",ki("virtual",e)),dn=!1,pl=!1)}function Ys(){Ei||(dn=!1,pl=!0)}function Ni(e){if(typeof window>"u"||typeof document>"u")return;const t=xe(e),n=se(e);if(pr.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){dn=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",Bi,!0),n.addEventListener("keyup",Bi,!0),n.addEventListener("click",Gs,!0),t.addEventListener("focus",Zs,!0),t.addEventListener("blur",Ys,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Qe,!0),n.addEventListener("pointermove",Qe,!0),n.addEventListener("pointerup",Qe,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Qe,!0),n.addEventListener("mousemove",Qe,!0),n.addEventListener("mouseup",Qe,!0)),t.addEventListener("beforeunload",()=>{qs(e)},{once:!0}),pr.set(t,{focus:r})}const qs=(e,t)=>{const n=xe(e),r=se(e);t&&r.removeEventListener("DOMContentLoaded",t),pr.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:pr.get(n).focus}),r.removeEventListener("keydown",Bi,!0),r.removeEventListener("keyup",Bi,!0),r.removeEventListener("click",Gs,!0),n.removeEventListener("focus",Zs,!0),n.removeEventListener("blur",Ys,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Qe,!0),r.removeEventListener("pointermove",Qe,!0),r.removeEventListener("pointerup",Qe,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Qe,!0),r.removeEventListener("mousemove",Qe,!0),r.removeEventListener("mouseup",Qe,!0)),pr.delete(n))};function x5(e){const t=se(e);let n;return t.readyState!=="loading"?Ni(e):(n=()=>{Ni(e)},t.addEventListener("DOMContentLoaded",n)),()=>qs(e,n)}typeof document<"u"&&x5();function Wt(){return Ft!=="pointer"}function Kn(){return Ft}function Ln(e){Ft=e,ki(e,null)}function Xs(){Ni();let[e,t]=u.useState(Ft);return u.useEffect(()=>{let n=()=>{t(Ft)};return hr.add(n),()=>{hr.delete(n)}},[]),Ht()?null:e}const C5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function D5(e,t,n){let r=n?W(n):void 0,i=se(r),a=xe(r);const l=typeof a<"u"?a.HTMLInputElement:HTMLInputElement,o=typeof a<"u"?a.HTMLTextAreaElement:HTMLTextAreaElement,s=typeof a<"u"?a.HTMLElement:HTMLElement,d=typeof a<"u"?a.KeyboardEvent:KeyboardEvent;let c=ce(i);return e=e||c instanceof l&&!C5.has(c.type)||c instanceof o||c instanceof s&&c.isContentEditable,!(e&&t==="keyboard"&&n instanceof d&&!$5[n.key])}function E5(e,t,n){Ni(),u.useEffect(()=>{if(n?.enabled===!1)return;let r=(i,a)=>{D5(!!n?.isTextInput,i,a)&&e(Wt())};return hr.add(r),()=>{hr.delete(r)}},t)}function br(e){return Je()?e.metaKey:e.ctrlKey}const w5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function gr(e){return e instanceof HTMLInputElement&&!w5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const S5=u.useInsertionEffect??fe;function De(e){const t=u.useRef(null);return S5(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function lt(e,t,n,r){let i=De(n),a=n==null;u.useEffect(()=>{if(a||!e.current)return;let l=e.current;return l.addEventListener(t,i,r),()=>{l.removeEventListener(t,i,r)}},[e,t,r,a])}function Tt(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Ee(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}const P5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),k5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function B5(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return P5.has(n.script)}let t=e.split("-")[0];return k5.has(t)}const Js=Symbol.for("react-aria.i18n.locale");function Qs(){let e=typeof window<"u"&&window[Js]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:B5(e)?"rtl":"ltr"}}let bl=Qs(),yr=new Set;function ed(){bl=Qs();for(let e of yr)e(bl)}function N5(){let e=Ht(),[t,n]=u.useState(bl);return u.useEffect(()=>(yr.size===0&&window.addEventListener("languagechange",ed),yr.add(n),()=>{yr.delete(n),yr.size===0&&window.removeEventListener("languagechange",ed)}),[]),e?{locale:typeof window<"u"&&window[Js]||"en-US",direction:"ltr"}:t}const A5=u.createContext(null);function be(){let e=N5();return u.useContext(A5)||e}const F5=Symbol.for("react-aria.i18n.locale"),T5=Symbol.for("react-aria.i18n.strings");let Ai;class cn{constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=I5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[F5];if(Ai===void 0){let i=window[T5];if(!i)return null;Ai={};for(let a in i)Ai[a]=new cn({[n]:i[a]},n)}let r=Ai?.[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}function I5(e,t,n="en-US"){if(t[e])return t[e];let r=M5(e),i=K5(e);if(i&&t[`${r}-${i}`])return t[`${r}-${i}`];if(t[r])return t[r];for(let a in t)if(a.startsWith(r+"-"))return t[a];return t[n]}function M5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}function K5(e){if(Intl.Locale)return new Intl.Locale(e).script}const td=new Map,nd=new Map;class rd{constructor(t,n){this.locale=t,this.strings=n}format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,l=td.get(a);l||(l=new Intl.PluralRules(this.locale,{type:r}),td.set(a,l));let o=l.select(t);return i=n[o]||n.other,typeof i=="function"?i():i}number(t){let n=nd.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),nd.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}}const id=new WeakMap;function L5(e){let t=id.get(e);return t||(t=new cn(e),id.set(e,t)),t}function ad(e,t){return t&&cn.getGlobalDictionaryForPackage(t)||L5(e)}function ke(e,t){let{locale:n}=be(),r=ad(e,t);return u.useMemo(()=>new rd(n,r),[n,r])}const O5=typeof document<"u"?u.useInsertionEffect??u.useLayoutEffect:()=>{};function He(e,t,n){let[r,i]=u.useState(e||t),a=u.useRef(r),l=u.useRef(e!==void 0),o=e!==void 0;u.useEffect(()=>{let f=l.current;f!==o&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),l.current=o},[o]);let s=o?e:r;O5(()=>{a.current=s});let[,d]=u.useReducer(()=>({}),{}),c=u.useCallback((f,...m)=>{let h=typeof f=="function"?f(a.current):f;Object.is(a.current,h)||(a.current=h,i(h),d(),n?.(h,...m))},[n]);return[s,c]}const $r=u.createContext(null),vr=u.createContext(null);class et{constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let i=this.clone();return n.addDescendants(i,t),i}}class Fi extends et{filter(t,n,r){let[i,a]=ud(t,n,this.firstChildKey,r),l=this.clone();return l.firstChildKey=i,l.lastChildKey=a,l}}const bs=class bs extends et{};bs.type="header";let gl=bs;const gs=class gs extends et{};gs.type="loader";let Ti=gs;const ys=class ys extends Fi{filter(t,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,t),i}return null}};ys.type="item";let Ii=ys;const $s=class $s extends Fi{filter(t,n,r){let i=super.filter(t,n,r);if(i&&i.lastChildKey!==null){let a=t.getItem(i.lastChildKey);if(a&&a.type!=="header")return i}return null}};$s.type="section";let ld=$s;class od{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),i=r?.firstChildKey!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);return n?.key??null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}getItem(t){return this.keyMap.get(t)??null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let i of r)this.addDescendants(i,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,i]=ud(this,n,this.firstKey,t);return n?.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function ud(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,l=e.getItem(n);for(;l!=null;){let o=l.filter(e,t,r);o!=null&&(o.nextKey=null,a&&(o.prevKey=a.key,a.nextKey=o.key),i==null&&(i=o),t.addNode(o),a=o),l=l.nextKey!=null?e.getItem(l.nextKey):null}if(a&&a.type==="separator"){let o=a.prevKey;t.removeNode(a.key),o!=null?(a=t.getItem(o),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}class sd{constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}}class On extends sd{constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof On?this.parentNode.level+(this.parentNode.node?.type==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof On?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let r=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&r!==t.node.colIndex){let i=t.getMutableNode();i.colIndex=r}}}setProps(t,n,r,i,a){let l,{value:o,textValue:s,id:d,...c}=t;if(this.node==null?(l=new r(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),c.ref=n,l.props=c,l.rendered=i,l.render=a,l.value=o,t["aria-label"]&&(l["aria-label"]=t["aria-label"]),l.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",d!=null&&d!==l.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(l.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){(t.parentNode?.firstVisibleChild===t||t.parentNode?.lastVisibleChild===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,a=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),a&&t.ownerDocument.markDirty(a),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class z5 extends sd{constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}get isConnected(){return!0}createElement(t){return new On(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let t of this.dirtyNodes)t instanceof On&&(!t.isConnected||t.isHidden)?this.removeNode(t):t.updateChildIndices();for(let t of this.dirtyNodes)t instanceof On?(t.isConnected&&!t.isHidden&&(t.updateNode(),this.addNode(t)),t.node&&this.dirtyNodes.delete(t),t.isMutated=!1):this.dirtyNodes.delete(t);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),this.queuedRender&&t(),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}function yl(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,l=u.useMemo(()=>process.env.NODE_ENV!=="production"&&typeof t=="function"?t.toString():void 0,[t]),o=u.useMemo(()=>new WeakMap,[...a,l]);return u.useMemo(()=>{if(n&&typeof t=="function"){let s=[];for(let d of n){let c=V5(d)?d:null,f=c?o.get(c):null;if(!f){f=t(d);let m=f.props.id??d?.key??d?.id;r!=null&&f.props.id==null&&m!=null&&(m=r+":"+m);let h=m??s.length;f=u.cloneElement(f,i?{key:h,id:m,value:d}:{key:h}),c&&o.set(c,f)}s.push(f)}return s}else if(typeof t!="function")return t},[t,n,o,r,i])}function V5(e){switch(typeof e){case"object":return e!=null;case"function":case"symbol":return!0;default:return!1}}let Gt=new Map,$l=new Set;function dd(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let i=W(r);if(!e(r)||!i)return;let a=Gt.get(i);a||(a=new Set,Gt.set(i,a),i.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{let i=W(r);if(!e(r)||!i)return;let a=Gt.get(i);if(a&&(a.delete(r.propertyName),a.size===0&&(i.removeEventListener("transitioncancel",n),Gt.delete(i)),Gt.size===0)){for(let l of $l)l();$l.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?dd():document.addEventListener("DOMContentLoaded",dd));function _5(){for(const[e]of Gt)"isConnected"in e&&!e.isConnected&&Gt.delete(e)}function cd(e){requestAnimationFrame(()=>{_5(),Gt.size===0?e():$l.add(e)})}function Ie(e){if(!e.isConnected)return;const t=se(e);if(Kn()==="virtual"){let n=ce(t);cd(()=>{const r=ce(t);(r===n||r===t.body)&&e.isConnected&&Xe(e)})}else Xe(e)}function vl(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=u.useCallback(s=>{if(W(s)===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=Rs(a),o=u.useCallback(s=>{let d=W(s);const c=se(d),f=c?ce(c):ce();d===s.currentTarget&&d===f&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!t&&(n||i||r)?o:void 0,onBlur:!t&&(r||i)?a:void 0}}}function Mi(e){if(e)return t=>{let n=!0,r={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n&&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."):n=!0},continuePropagation(){n=!1,typeof t.continuePropagation=="function"&&t.continuePropagation()},isPropagationStopped(){return n}};e(r),n&&!(typeof t.isPropagationStopped=="function"&&t.isPropagationStopped())&&t.stopPropagation()}}const R5=new Set(["shift","alt","control","meta","mod"]),j5=["Alt","Control","Meta","Shift"];function H5(e){let t=new Set;return e.alt&&t.add("Alt"),e.shift&&t.add("Shift"),e.ctrl&&t.add("Control"),e.meta&&t.add("Meta"),e.mod&&t.add(Je()?"Meta":"Control"),t}function U5(e){let t=new Set;return e.altKey&&t.add("Alt"),e.ctrlKey&&t.add("Control"),e.metaKey&&t.add("Meta"),e.shiftKey&&t.add("Shift"),t}function fd(e){return j5.filter(t=>e.has(t))}function W5(e){let t=e.split("+").reduce((n,r)=>{let i=r.toLowerCase();return R5.has(i)?i==="shift"?n.shift=!0:i==="alt"?n.alt=!0:i==="control"?n.ctrl=!0:i==="meta"?n.meta=!0:i==="mod"&&(n.mod=!0):n.key=r,n},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(t.key==="")throw new Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function md(e){return e.toLowerCase()}const G5={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function Z5(e){let t=md(e),n=G5[t];return n??t}function Y5(e){let t=fd(H5(e)),n=Z5(e.key);return t.length>0?`${t.join("+")}+${n}`:n}function q5(e){let t=fd(U5(e)),n=md(e.key);return(t.length>0?`${t.join("+")}+`:"")+n}function X5(e){let t=new Map;for(let[n,r]of Object.entries(e)){let i=W5(n);t.set(Y5(i),r)}return n=>{let r=q5(n),i=t.get(r),a=i?.(n);a===void 0&&i!==void 0?a={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof a=="boolean"&&(a={shouldContinuePropagation:!a,shouldPreventDefault:a}),a?.shouldPreventDefault&&n.preventDefault(),(!i||a?.shouldContinuePropagation)&&n.continuePropagation()}}function Le(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,i,a;if(t){let l=X5(t),o=Mi(d=>{if(!ae(d.currentTarget,W(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!n||d.nativeEvent?.isComposing&&!r){d.continuePropagation();return}l(d)}),s=Mi(d=>{if(!ae(d.currentTarget,W(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!n||d.nativeEvent?.isComposing&&!r){d.continuePropagation();return}d.continuePropagation()});i=e.onKeyDown?at(e.onKeyDown,o):o,a=e.onKeyUp?at(e.onKeyUp,s):s}else i=Mi(e.onKeyDown),a=Mi(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:a}}}function xl(e,t){fe(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let Ki=u.createContext(null);function J5(e){let t=u.useContext(Ki)||{};xl(t,e);let{ref:n,...r}=t;return r}function zn(e,t){let{focusProps:n}=vl(e),{keyboardProps:r}=Le(e),i=q(n,r),a=J5(t),l=e.isDisabled?{}:a,o=u.useRef(e.autoFocus);u.useEffect(()=>{o.current&&t.current&&Ie(t.current),o.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:q({...i,tabIndex:s},l)}}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));const Li=u.createContext(!1);function Q5(e){if(u.useContext(Li))return u.createElement(u.Fragment,null,e.children);let n=u.createElement(Li.Provider,{value:!0},e.children);return u.createElement("template",null,n)}function Vn(e){let t=(n,r)=>u.useContext(Li)?null:e(n,r);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function hd(){return u.useContext(Li)}var Oi={exports:{}},Cl={};var pd;function ev(){if(pd)return Cl;pd=1;var e=u;function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function o(f,m){var h=m(),p=r({inst:{value:h,getSnapshot:m}}),g=p[0].inst,y=p[1];return a(function(){g.value=h,g.getSnapshot=m,s(g)&&y({inst:g})},[f,h,m]),i(function(){return s(g)&&y({inst:g}),f(function(){s(g)&&y({inst:g})})},[f]),l(h),h}function s(f){var m=f.getSnapshot;f=f.value;try{var h=m();return!n(f,h)}catch{return!0}}function d(f,m){return m()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:o;return Cl.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Cl}var Dl={};var bd;function tv(){return bd||(bd=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}function t(h,p){c||i.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=p();if(!f){var y=p();a(g,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=l({inst:{value:g,getSnapshot:p}});var $=y[0].inst,x=y[1];return s(function(){$.value=g,$.getSnapshot=p,n($)&&x({inst:$})},[h,g,p]),o(function(){return n($)&&x({inst:$}),h(function(){n($)&&x({inst:$})})},[h]),d(g),g}function n(h){var p=h.getSnapshot;h=h.value;try{var g=p();return!a(h,g)}catch{return!0}}function r(h,p){return p()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=u,a=typeof Object.is=="function"?Object.is:e,l=i.useState,o=i.useEffect,s=i.useLayoutEffect,d=i.useDebugValue,c=!1,f=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Dl.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Dl}var gd;function nv(){return gd||(gd=1,process.env.NODE_ENV==="production"?Oi.exports=ev():Oi.exports=tv()),Oi.exports}var rv=nv();const yd=u.createContext(!1),xr=u.createContext(null);function fn(e){if(u.useContext(xr))return e.content;let{collection:n,document:r}=ov(e.createCollection);return u.createElement(u.Fragment,null,u.createElement(Q5,null,u.createElement(xr.Provider,{value:r},e.content)),u.createElement(iv,{render:e.children,collection:n}))}function iv({collection:e,render:t}){return t(e)}function av(e,t,n){let r=Ht(),i=u.useRef(r);i.current=r;let a=u.useCallback(()=>i.current?n():t(),[t,n]);return rv.useSyncExternalStore(e,a)}const lv=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:av;function ov(e){let[t]=u.useState(()=>new z5(e?.()||new od)),n=u.useCallback(l=>t.subscribe(l),[t]),r=u.useCallback(()=>{let l=t.getCollection();return t.isSSR&&t.resetAfterSSR(),l},[t]),i=u.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:lv(n,r,i),document:t}}const El=u.createContext(null);function uv(e){var n;return n=class extends et{},n.type=e,n}function $d(e,t,n,r,i,a){typeof e=="string"&&(e=uv(e));let l=u.useCallback(s=>{s?.setProps(t,n,e,r,a)},[t,n,r,a,e]),o=u.useContext(El);if(o){let s=o.ownerDocument.nodesByProps.get(t);return s||(s=o.ownerDocument.createElement(e.type),s.setProps(t,n,e,r,a),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,s)),i?u.createElement(El.Provider,{value:s},i):null}return u.createElement(e.type,{ref:l},i)}function yt(e,t){let n=({node:i})=>t(i.props,i.props.ref,i),r=u.forwardRef((i,a)=>{let l=u.useContext(Ki);if(!u.useContext(yd)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(i,a)}return $d(e,i,a,"children"in i?i.children:null,null,s=>u.createElement(Ki.Provider,{value:l},u.createElement(n,{node:s})))});return r.displayName=t.name,r}function zi(e,t,n=vd){let r=({node:a})=>t(a.props,a.props.ref,a),i=u.forwardRef((a,l)=>{let o=n(a);return $d(e,a,l,null,o,s=>u.createElement(r,{node:s}))??u.createElement(u.Fragment,null)});return i.displayName=t.name,i}function vd(e){return yl({...e,addIdAndValue:!0})}const xd=u.createContext(null);function mn(e){let t=u.useContext(xd),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=vd({...e,idScope:r,dependencies:n});return u.useContext(xr)&&(i=u.createElement(sv,null,i)),t=u.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),u.createElement(xd.Provider,{value:t},i)}function sv({children:e}){let t=u.useContext(xr),n=u.useMemo(()=>u.createElement(xr.Provider,{value:null},u.createElement(yd.Provider,{value:!0},e)),[e]);return Ht()?u.createElement(El.Provider,{value:t},n):jt.createPortal(n,t)}const Cd=u.createContext(null),wl={CollectionRoot({collection:e,renderDropIndicator:t}){return Dd(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Dd(e,t,n)}};function Dd(e,t,n){return yl({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){if(r.type==="content")return u.createElement(u.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:u.createElement(u.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,dv(e,r,n))}})}function dv(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i!=null?e.getItem(i):null;for(;a!=null&&a.type!=="item";)i=e.getKeyAfter(a.key),a=i!=null?e.getItem(i):null;let l=t.nextKey!=null?e.getItem(t.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?e.getItem(l.nextKey):null;let o=[];if(l==null){let s=t;for(;s?.type==="item"&&(!a||s.parentKey!==a.parentKey&&a.level<s.level);){let d=n({type:"item",key:s.key,dropPosition:"after"});u.isValidElement(d)&&o.push(u.cloneElement(d,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return o}const ge=u.createContext(wl);function Ed(e){return u.useMemo(()=>e!=null?new Set([e]):null,[e])}const cv=new Set(["id"]),fv=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),mv=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),hv=new Set(["dir","lang","hidden","inert","translate"]),wd=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),pv=/^(data-.*)$/;function ie(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:l}=t,o={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(cv.has(s)||n&&fv.has(s)||r&&mv.has(s)||i&&hv.has(s)||a&&(wd.has(s)||s.endsWith("Capture")&&wd.has(s.slice(0,-7)))||l?.has(s)||pv.test(s))&&(o[s]=e[s]);return o}let _n="default",Sl="",Vi=new WeakMap;function Pl(e){if(bt()&&gt()){if(_n==="default"){const t=se(e);Sl=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}_n="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Vi.set(e,e.style[t]),e.style[t]="none"}}function _i(e){if(bt()&&gt()){if(_n!=="disabled")return;_n="restoring",setTimeout(()=>{cd(()=>{if(_n==="restoring"){const t=se(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Sl||""),Sl="",_n="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Vi.has(e)){let t=Vi.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Vi.delete(e)}}function Sd(e){return e?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let kl=new WeakMap;function Pd(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return Sd(t);if(kl.has(t))return kl.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof xe(n).HTMLMetaElement&&(n.nonce||n.content)||Sd(t)||void 0;return r!==void 0&&kl.set(t,r),r}const Cr=u.createContext({register:()=>{}});Cr.displayName="PressResponderContext";function Rn(){let e=u.useRef(new Map),t=u.useCallback((i,a,l,o)=>{let s=o?.once?(...d)=>{e.current.delete(l),l(...d)}:l;e.current.set(l,{type:a,eventTarget:i,fn:s,options:o}),i.addEventListener(a,s,o)},[]),n=u.useCallback((i,a,l,o)=>{let s=e.current.get(l)?.fn||l;i.removeEventListener(a,s,o),e.current.delete(l)},[]),r=u.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function bv(e){let t=u.useContext(Cr);if(t){let{register:n,ref:r,...i}=t;e=q(i,e),n()}return xl(t,e.ref),e}class Ri{#e;constructor(t,n,r,i){this.#e=!0;const l=(i?.target??r.currentTarget)?.getBoundingClientRect();let o,s=0,d,c=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,c=r.clientY),l&&(d!=null&&c!=null?(o=d-l.left,s=c-l.top):(o=l.width/2,s=l.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=o,this.y=s,this.key=r.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const kd=Symbol("linkClicked"),Bd="react-aria-pressable-style",Nd="data-react-aria-pressable";function It(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:l,isDisabled:o,isPressed:s,preventFocusOnPress:d,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:f,ref:m,...h}=bv(e),[p,g]=u.useState(!1),y=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:$,removeAllGlobalListeners:x}=Rn(),v=u.useCallback((D,M)=>{let G=y.current;if(o||G.didFirePressStart)return!1;let O=!0;if(G.isTriggeringEvent=!0,r){let Y=new Ri("pressstart",M,D);r(Y),O=Y.shouldStopPropagation}return n&&n(!0),G.isTriggeringEvent=!1,G.didFirePressStart=!0,g(!0),O},[o,r,n]),C=u.useCallback((D,M,G=!0)=>{let O=y.current;if(!O.didFirePressStart)return!1;O.didFirePressStart=!1,O.isTriggeringEvent=!0;let Y=!0;if(i){let P=new Ri("pressend",M,D);i(P),Y=P.shouldStopPropagation}if(n&&n(!1),g(!1),t&&G&&!o){let P=new Ri("press",M,D);t(P),Y&&=P.shouldStopPropagation}return O.isTriggeringEvent=!1,Y},[o,i,n,t]),w=De(C),S=u.useCallback((D,M)=>{let G=y.current;if(o)return!1;if(a){G.isTriggeringEvent=!0;let O=new Ri("pressup",M,D);return a(O),G.isTriggeringEvent=!1,O.shouldStopPropagation}return!0},[o,a]),B=De(S),E=u.useCallback(D=>{let M=y.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&C(hn(M.target,D),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,x(),f||_i(M.target);for(let G of M.disposables)G();M.disposables=[]}},[f,x,C]),k=De(E);u.useEffect(()=>{o&&y.current.isPressed&&k({currentTarget:y.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[o]);let K=u.useCallback(D=>{c&&E(D)},[c,E]),T=u.useCallback(D=>{o||l?.(D)},[o,l]),I=u.useCallback((D,M)=>{if(!o&&l){let G=new MouseEvent("click",D);_s(G,M),l(cl(G))}},[o,l]),R=u.useMemo(()=>{let D=y.current,M={onKeyDown(O){if(Nl(O.nativeEvent,O.currentTarget)&&ae(O.currentTarget,W(O))){Td(W(O),O.key)&&O.preventDefault();let Y=!0;!D.isPressed&&!O.repeat&&(D.target=O.currentTarget,D.isPressed=!0,D.pointerType="keyboard",Y=v(O,"keyboard"));let P=O.currentTarget,N=_=>{Nl(_,P)&&!_.repeat&&ae(P,W(_))&&D.target&&B(hn(D.target,_),"keyboard")};$(se(O.currentTarget),"keyup",at(N,G),!0),Y&&O.stopPropagation(),O.metaKey&&Je()&&D.metaKeyEvents?.set(O.key,O.nativeEvent)}else O.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(O){if(!(O&&!ae(O.currentTarget,W(O)))&&O&&O.button===0&&!D.isTriggeringEvent&&!At.isOpening){let Y=!0;if(o&&O.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||hl(O.nativeEvent))){let P=v(O,"virtual"),N=B(O,"virtual"),_=w(O,"virtual");T(O),Y=P&&N&&_}else if(D.isPressed&&D.pointerType!=="keyboard"){let P=D.pointerType||O.nativeEvent.pointerType||"virtual",N=B(hn(O.currentTarget,O),P),_=w(hn(O.currentTarget,O),P,!0);Y=N&&_,D.isOverTarget=!1,T(O),k(O)}D.ignoreEmulatedMouseEvents=!1,Y&&O.stopPropagation()}}},G=O=>{if(D.isPressed&&D.target&&Nl(O,D.target)){Td(W(O),O.key)&&O.preventDefault();let Y=W(O),P=ae(D.target,Y);w(hn(D.target,O),"keyboard",P),P&&I(O,D.target),x(),O.key!=="Enter"&&Bl(D.target)&&ae(D.target,Y)&&!O[kd]&&(O[kd]=!0,At(D.target,O,!1)),D.isPressed=!1,D.metaKeyEvents?.delete(O.key)}else if(O.key==="Meta"&&D.metaKeyEvents?.size){let Y=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let P of Y.values())D.target?.dispatchEvent(new KeyboardEvent("keyup",P))}};if(typeof PointerEvent<"u"){M.onPointerDown=P=>{if(P.button!==0||!ae(P.currentTarget,W(P)))return;if(m5(P.nativeEvent)){D.pointerType="virtual";return}D.pointerType=P.pointerType;let N=!0;if(!D.isPressed){D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=P.pointerId,D.target=P.currentTarget,f||Pl(D.target),N=v(P,D.pointerType);let _=W(P);"releasePointerCapture"in _&&("hasPointerCapture"in _?_.hasPointerCapture(P.pointerId)&&_.releasePointerCapture(P.pointerId):_.releasePointerCapture(P.pointerId)),$(se(P.currentTarget),"pointerup",O,!1),$(se(P.currentTarget),"pointercancel",Y,!1)}N&&P.stopPropagation()},M.onMouseDown=P=>{if(ae(P.currentTarget,W(P))&&P.button===0){if(d){let N=js(P.target);N&&D.disposables.push(N)}P.stopPropagation()}},M.onPointerUp=P=>{!ae(P.currentTarget,W(P))||D.pointerType==="virtual"||P.button===0&&!D.isPressed&&B(P,D.pointerType||P.pointerType)},M.onPointerEnter=P=>{P.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,v(hn(D.target,P),D.pointerType))},M.onPointerLeave=P=>{P.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,w(hn(D.target,P),D.pointerType,!1),K(P))};let O=P=>{if(P.pointerId===D.activePointerId&&D.isPressed&&P.button===0&&D.target){if(ae(D.target,W(P))&&D.pointerType!=null){let N=!1,_=setTimeout(()=>{D.isPressed&&D.target instanceof HTMLElement&&(N?k(P):(Xe(D.target),D.target.click()))},80);$(P.currentTarget,"click",()=>N=!0,!0),D.disposables.push(()=>clearTimeout(_))}else k(P);D.isOverTarget=!1}},Y=P=>{k(P)};M.onDragStart=P=>{ae(P.currentTarget,W(P))&&k(P)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=P=>{if(P.button!==0||!ae(P.currentTarget,W(P)))return;if(D.ignoreEmulatedMouseEvents){P.stopPropagation();return}if(D.isPressed=!0,D.isOverTarget=!0,D.target=P.currentTarget,D.pointerType=hl(P.nativeEvent)?"virtual":"mouse",jt.flushSync(()=>v(P,D.pointerType))&&P.stopPropagation(),d){let _=js(P.target);_&&D.disposables.push(_)}$(se(P.currentTarget),"mouseup",O,!1)},M.onMouseEnter=P=>{if(!ae(P.currentTarget,W(P)))return;let N=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!0,N=v(P,D.pointerType)),N&&P.stopPropagation()},M.onMouseLeave=P=>{if(!ae(P.currentTarget,W(P)))return;let N=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!1,N=w(P,D.pointerType,!1),K(P)),N&&P.stopPropagation()},M.onMouseUp=P=>{ae(P.currentTarget,W(P))&&!D.ignoreEmulatedMouseEvents&&P.button===0&&!D.isPressed&&B(P,D.pointerType||"mouse")};let O=P=>{if(P.button===0){if(D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=!1;return}D.target&&ae(D.target,W(P))&&D.pointerType!=null||k(P),D.isOverTarget=!1}};M.onTouchStart=P=>{if(!ae(P.currentTarget,W(P)))return;let N=gv(P.nativeEvent);if(!N)return;D.activePointerId=N.identifier,D.ignoreEmulatedMouseEvents=!0,D.isOverTarget=!0,D.isPressed=!0,D.target=P.currentTarget,D.pointerType="touch",f||Pl(D.target),v(Zt(D.target,P),D.pointerType)&&P.stopPropagation(),$(xe(P.currentTarget),"scroll",Y,!0)},M.onTouchMove=P=>{if(!ae(P.currentTarget,W(P)))return;if(!D.isPressed){P.stopPropagation();return}let N=Ad(P.nativeEvent,D.activePointerId),_=!0;N&&Fd(N,P.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,_=v(Zt(D.target,P),D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,_=w(Zt(D.target,P),D.pointerType,!1),K(Zt(D.target,P))),_&&P.stopPropagation()},M.onTouchEnd=P=>{if(!ae(P.currentTarget,W(P)))return;if(!D.isPressed){P.stopPropagation();return}let N=Ad(P.nativeEvent,D.activePointerId),_=!0;N&&Fd(N,P.currentTarget)&&D.pointerType!=null?(B(Zt(D.target,P),D.pointerType),_=w(Zt(D.target,P),D.pointerType),I(P.nativeEvent,D.target)):D.isOverTarget&&D.pointerType!=null&&(_=w(Zt(D.target,P),D.pointerType,!1)),_&&P.stopPropagation(),D.isPressed=!1,D.activePointerId=null,D.isOverTarget=!1,D.ignoreEmulatedMouseEvents=!0,D.target&&!f&&_i(D.target),x()},M.onTouchCancel=P=>{ae(P.currentTarget,W(P))&&(P.stopPropagation(),D.isPressed&&k(Zt(D.target,P)))};let Y=P=>{D.isPressed&&ae(W(P),D.target)&&k({currentTarget:D.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=P=>{ae(P.currentTarget,W(P))&&k(P)}}return M},[$,o,d,x,f,K,v,T,I]);return u.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const D=se(m.current);if(!D||!D.head||D.getElementById(Bd))return;const M=D.createElement("style");M.id=Bd;let G=Pd(D);G&&(M.nonce=G),M.textContent=`
2
2
  @layer {
3
- [${kd}] {
3
+ [${Nd}] {
4
4
  touch-action: pan-x pan-y pinch-zoom;
5
5
  }
6
6
  }
7
- `.trim(),D.head.prepend(T)},[m]),u.useEffect(()=>{let D=y.current;return()=>{f||zi(D.target??void 0);for(let T of D.disposables)T();D.disposables=[]}},[f]),{isPressed:s||p,pressProps:X(h,j,{[kd]:!0})}}function Bl(e){return e.tagName==="A"&&e.hasAttribute("href")}function Nl(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof xe(i).HTMLInputElement&&!Fd(i,n)||i instanceof xe(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&Bl(i))&&n!=="Enter")}function pv(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Bd(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Gt(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function hn(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function bv(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function gv(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Nd(e,t){let n=t.getBoundingClientRect(),r=bv(e);return gv(n,r)}function yv(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Bl(e)}function Ad(e,t){return Je()&&t==="Enter"?!1:e instanceof HTMLInputElement?t==="Enter"&&(e.type==="checkbox"||e.type==="radio")?!1:!Fd(e,t):yv(e)}const $v=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Fd(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":$v.has(e.type)}function vv(e,t){let{elementType:n="a",onPress:r,onPressStart:i,onPressEnd:a,onPressChange:l,onClick:o,isDisabled:s,...d}=e,c={};n!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:f}=zn(e,t),{pressProps:m,isPressed:h}=Tt({onPress:r,onPressStart:i,onPressEnd:a,onPressChange:l,onClick:o,isDisabled:s,ref:t}),p=ie(d,{labelable:!0}),g=X(f,m),y=sn(),$=wi(e);return{isPressed:h,linkProps:X(p,$,{...g,...c,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:x=>{m.onClick?.(x),Hs(x,y,e.href,e.routerOptions)}})}}function jn(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=u.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:o}=Rn(),s=u.useCallback(f=>{ae(f.currentTarget,G(f))&&a.current.isFocusWithin&&!ae(f.currentTarget,f.relatedTarget)&&(a.current.isFocusWithin=!1,o(),n&&n(f),i&&i(!1))},[n,i,a,o]),d=Vs(s),c=u.useCallback(f=>{if(!ae(f.currentTarget,G(f)))return;let m=G(f);const h=se(m),p=ce(h);if(!a.current.isFocusWithin&&p===m){r&&r(f),i&&i(!0),a.current.isFocusWithin=!0,d(f);let g=f.currentTarget;l(h,"focus",y=>{let $=G(y);if(a.current.isFocusWithin&&!ae(g,$)){let x=new h.defaultView.FocusEvent("blur",{relatedTarget:$});zs(x,g);let v=cl(x);s(v)}},{capture:!0})}},[r,i,d,l,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}function Oe(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=u.useRef({isFocused:!1,isFocusVisible:t||Ut()}),[a,l]=u.useState(!1),[o,s]=u.useState(()=>i.current.isFocused&&i.current.isFocusVisible),d=u.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),c=u.useCallback(h=>{i.current.isFocused=h,i.current.isFocusVisible=Ut(),l(h),d()},[d]);C5(h=>{i.current.isFocusVisible=h,d()},[n,a],{enabled:a,isTextInput:n});let{focusProps:f}=vl({isDisabled:r,onFocusChange:c}),{focusWithinProps:m}=jn({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:o,focusProps:r?m:f}}let _i=!1,Ri=0;function Al(){_i=!0,setTimeout(()=>{_i=!1},500)}function Td(e){e.pointerType==="touch"&&Al()}function xv(){let e=se(null);if(!(typeof e>"u"))return Ri===0&&(typeof PointerEvent<"u"?e.addEventListener("pointerup",Td):process.env.NODE_ENV==="test"&&e.addEventListener("touchend",Al)),Ri++,()=>{Ri--,!(Ri>0)&&(typeof PointerEvent<"u"?e.removeEventListener("pointerup",Td):process.env.NODE_ENV==="test"&&e.removeEventListener("touchend",Al))}}function ze(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,l]=u.useState(!1),o=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(xv,[]);let{addGlobalListener:s,removeAllGlobalListeners:d}=Rn(),{hoverProps:c,triggerHoverEnd:f}=u.useMemo(()=>{let m=(g,y)=>{if(o.pointerType=y,i||y==="touch"||o.isHovered||!ae(g.currentTarget,G(g)))return;o.isHovered=!0;let $=g.currentTarget;o.target=$,s(se(G(g)),"pointerover",x=>{o.isHovered&&o.target&&!ae(o.target,G(x))&&h(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:$,pointerType:y}),n&&n(!0),l(!0)},h=(g,y)=>{let $=o.target;o.pointerType="",o.target=null,!(y==="touch"||!o.isHovered||!$)&&(o.isHovered=!1,d(),r&&r({type:"hoverend",target:$,pointerType:y}),n&&n(!1),l(!1))},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=g=>{_i&&g.pointerType==="mouse"||m(g,g.pointerType)},p.onPointerLeave=g=>{!i&&ae(g.currentTarget,G(g))&&h(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(p.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=g=>{!o.ignoreEmulatedMouseEvents&&!_i&&m(g,"mouse"),o.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=g=>{!i&&ae(g.currentTarget,G(g))&&h(g,"mouse")}),{hoverProps:p,triggerHoverEnd:h}},[t,n,r,i,o,s,d]);return u.useEffect(()=>{i&&f({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:c,isHovered:a}}const Id=u.createContext(null),Cv=u.forwardRef(function(t,n){[t,n]=pe(t,n,Id);let r=t.href&&!t.isDisabled?"a":"span",{linkProps:i,isPressed:a}=vv({...t,elementType:r},n),l=re[r],{hoverProps:o,isHovered:s}=ze(t),{focusProps:d,isFocused:c,isFocusVisible:f}=Oe(),m=ue({...t,defaultClassName:"react-aria-Link",values:{isCurrent:!!t["aria-current"],isDisabled:t.isDisabled||!1,isPressed:a,isHovered:s,isFocused:c,isFocusVisible:f}}),h=ie(t,{global:!0});return delete h.onClick,u.createElement(l,{ref:n,slot:t.slot||void 0,...X(h,m,i,o,d),"data-focused":c||void 0,"data-hovered":s||void 0,"data-pressed":a||void 0,"data-focus-visible":f||void 0,"data-current":!!t["aria-current"]||void 0,"data-disabled":t.isDisabled||void 0},m.children)});var Md={};Md={breadcrumbs:"عناصر الواجهة"};var Kd={};Kd={breadcrumbs:"Трохи хляб"};var Ld={};Ld={breadcrumbs:"Popis cesty"};var Od={};Od={breadcrumbs:"Brødkrummer"};var zd={};zd={breadcrumbs:"Breadcrumbs"};var Vd={};Vd={breadcrumbs:"Πλοηγήσεις breadcrumb"};var _d={};_d={breadcrumbs:"Breadcrumbs"};var Rd={};Rd={breadcrumbs:"Migas de pan"};var jd={};jd={breadcrumbs:"Lingiread"};var Hd={};Hd={breadcrumbs:"Navigointilinkit"};var Ud={};Ud={breadcrumbs:"Chemin de navigation"};var Wd={};Wd={breadcrumbs:"שבילי ניווט"};var Gd={};Gd={breadcrumbs:"Navigacijski putovi"};var Zd={};Zd={breadcrumbs:"Morzsamenü"};var Yd={};Yd={breadcrumbs:"Breadcrumb"};var qd={};qd={breadcrumbs:"パンくずリスト"};var Xd={};Xd={breadcrumbs:"탐색 표시"};var Jd={};Jd={breadcrumbs:"Naršymo kelias"};var Qd={};Qd={breadcrumbs:"Atpakaļceļi"};var ec={};ec={breadcrumbs:"Navigasjonsstier"};var tc={};tc={breadcrumbs:"Broodkruimels"};var nc={};nc={breadcrumbs:"Struktura nawigacyjna"};var rc={};rc={breadcrumbs:"Caminho detalhado"};var ic={};ic={breadcrumbs:"Categorias"};var ac={};ac={breadcrumbs:"Miez de pâine"};var lc={};lc={breadcrumbs:"Навигация"};var oc={};oc={breadcrumbs:"Navigačné prvky Breadcrumbs"};var uc={};uc={breadcrumbs:"Drobtine"};var sc={};sc={breadcrumbs:"Putanje navigacije"};var dc={};dc={breadcrumbs:"Sökvägar"};var cc={};cc={breadcrumbs:"İçerik haritaları"};var fc={};fc={breadcrumbs:"Навігаційна стежка"};var mc={};mc={breadcrumbs:"导航栏"};var hc={};hc={breadcrumbs:"導覽列"};var pc={};pc={"ar-AE":Md,"bg-BG":Kd,"cs-CZ":Ld,"da-DK":Od,"de-DE":zd,"el-GR":Vd,"en-US":_d,"es-ES":Rd,"et-EE":jd,"fi-FI":Hd,"fr-FR":Ud,"he-IL":Wd,"hr-HR":Gd,"hu-HU":Zd,"it-IT":Yd,"ja-JP":qd,"ko-KR":Xd,"lt-LT":Jd,"lv-LV":Qd,"nb-NO":ec,"nl-NL":tc,"pl-PL":nc,"pt-BR":rc,"pt-PT":ic,"ro-RO":ac,"ru-RU":lc,"sk-SK":oc,"sl-SI":uc,"sr-SP":sc,"sv-SE":dc,"tr-TR":cc,"uk-UA":fc,"zh-CN":mc,"zh-TW":hc};function Dv(e){return e&&e.__esModule?e.default:e}function Ev(e){let{"aria-label":t,...n}=e,r=ke(Dv(pc),"@react-aria/breadcrumbs");return{navProps:{...ie(n,{labelable:!0}),"aria-label":t||r.format("breadcrumbs")}}}const Fl=u.createContext(null),wv=u.forwardRef(function(t,n){[t,n]=pe(t,n,Fl);let{CollectionRoot:r}=u.useContext(ge),{navProps:i}=Ev(t),a=ie(t,{global:!0,labelable:!0});return u.createElement(fn,{content:u.createElement(mn,t)},l=>u.createElement(re.ol,{render:t.render,ref:n,...X(a,i),slot:t.slot||void 0,style:t.style,className:t.className??"react-aria-Breadcrumbs"},u.createElement(Fl.Provider,{value:t},u.createElement(r,{collection:l}))))}),$s=class $s extends et{};$s.type="item";let Tl=$s;const Sv=yt(Tl,function(t,n,r){let i=r.nextKey==null,{isDisabled:a,onAction:l}=qe(Fl),o={"aria-current":i?"page":null,isDisabled:a||i,onPress:()=>l?.(r.key)},s=ue({...r.props,children:r.rendered,values:{isDisabled:a||i,isCurrent:i},defaultClassName:"react-aria-Breadcrumb"}),d=ie(t,{global:!0,labelable:!0});return delete d.id,u.createElement(re.li,{...d,...s,ref:n,"data-disabled":a||i||void 0,"data-current":i||void 0},u.createElement(Id.Provider,{value:o},s.children))}),pn=u.createContext({});function Il(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Ee(t);let l=Ee(),o={};n?(r=r?`${l} ${r}`:l,o={id:l,htmlFor:a==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=Ft({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:o,fieldProps:s}}let Ml=new Map,Kl=!1;try{Kl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ji=!1;try{ji=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const bc={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Hi{constructor(t,n={}){this.numberFormatter=Pv(t,n),this.options=n}format(t){let n="";if(!Kl&&this.options.signDisplay!=null?n=kv(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ji){let{unit:r,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!r)return n;let l=bc[r]?.[i];n+=l[a]||l.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Kl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ji&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function Pv(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ji){let{unit:a,unitDisplay:l="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!bc[a]?.[l])throw new Error(`Unsupported unit ${a} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(Ml.has(r))return Ml.get(r);let i=new Intl.NumberFormat(e,t);return Ml.set(r,i),i}function kv(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),l=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(l,"+").replace("!!!",a)}else return e.format(n)}}const Bv=new RegExp("^.*\\(.*\\).*$"),Nv=["latn","arab","hanidec","deva","beng","fullwide"];class gc{constructor(t,n={}){this.locale=t,this.options=n}parse(t){return Ll(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Ll(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Ll(this.locale,this.options,t).options.numberingSystem}}const yc=new Map;function Ll(e,t,n){let r=$c(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of Nv)if(i!==r.options.numberingSystem){let a=$c(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function $c(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=yc.get(n);return r||(r=new Av(e,t),yc.set(n,r)),r}class Av{constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=Fv(t,this.formatter,this.options,n),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(t){let n=this.formatter.resolvedOptions().useGrouping,r=this.sanitize(t);if(!n&&this.symbols.group&&r.includes(this.symbols.group))return NaN;if(this.symbols.group&&(r=r.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=r.indexOf("-");r=r.replace("-",""),r=r.replace("+","");let l=r.indexOf(".");l===-1&&(l=r.length),r=r.replace(".",""),l-2===0?r=`0.${r}`:l-2===-1?r=`0.0${r}`:l-2===-2?r="0.00":r=`${r.slice(0,l-2)}.${r.slice(l-2)}`,a>-1&&(r=`-${r}`)}let i=r?+r:NaN;if(isNaN(i))return NaN;if(this.options.style==="percent"){let a={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new gc(this.locale,a).parse(new Hi(this.locale,a).format(i))}return this.options.currencySign==="accounting"&&Bv.test(t)&&(i=-1*i),i}sanitize(t){let n=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(r=>r.unit===t)?this.symbols.noNumeralUnits.find(r=>r.unit===t).value.toString():(t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=Zt(t,",",this.symbols.decimal),t=Zt(t,"،",this.symbols.decimal)),this.symbols.group&&n&&(t=Zt(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&n&&(t=Zt(t,"'",this.symbols.group)),this.symbols.group==="'"&&t.includes("’")&&n&&(t=Zt(t,"’",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&n&&(t=Zt(t," ",this.symbols.group),t=Zt(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,n=-1/0,r=1/0){let i=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&i&&(t=Zt(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}}const vc=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),xc=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Fv(e,t,n,r){let i=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),a=i.formatToParts(-10000.111),l=i.formatToParts(10000.111),o=xc.map(S=>i.formatToParts(S)),s=o.map((S,B)=>{let E=S.find(k=>k.type==="unit");return E&&!S.some(k=>k.type==="integer"||k.type==="fraction")?{unit:E.value,value:xc[B]}:null}).filter(S=>!!S),d=a.find(S=>S.type==="minusSign")?.value??"-",c=l.find(S=>S.type==="plusSign")?.value;!c&&(r?.signDisplay==="exceptZero"||r?.signDisplay==="always")&&(c="+");let m=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(S=>S.type==="decimal")?.value,h=a.find(S=>S.type==="group")?.value,p=a.filter(S=>!vc.has(S.type)).map(S=>Cc(S.value)),g=o.flatMap(S=>S.filter(B=>!vc.has(B.type)).map(B=>Cc(B.value))),y=[...new Set([...p,...g])].sort((S,B)=>B.length-S.length),$=y.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${y.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),x=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(x.map((S,B)=>[S,B])),C=new RegExp(`[${x.join("")}]`,"g");return{minusSign:d,plusSign:c,decimal:m,group:h,literals:$,numeral:C,numerals:x,index:S=>String(v.get(S)),noNumeralUnits:s}}function Zt(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Cc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Tv(e={}){let{locale:t}=be();return u.useMemo(()=>new Hi(t,e),[t,e])}function Dr(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Iv(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:l={style:"percent"}}=e,o=ie(e,{labelable:!0}),{labelProps:s,fieldProps:d}=Il({...e,labelElementType:"span"});t=Dr(t,n,r);let c=r-n,f=c===0?0:(t-n)/c,m=Tv(l);if(!a&&!i){let h=l.style==="percent"?f:t;i=m.format(h)}return{progressBarProps:X(o,{...d,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:"progressbar"}),labelProps:s}}const Dc=u.createContext(null),Mv=u.forwardRef(function(t,n){[t,n]=pe(t,n,Dc);let{value:r=0,minValue:i=0,maxValue:a=100,isIndeterminate:l=!1}=t;r=Dr(r,i,a);let[o,s]=un(!t["aria-label"]&&!t["aria-labelledby"]),{progressBarProps:d,labelProps:c}=Iv({...t,label:s}),f=a-i,m;l||(f===0?m=0:m=(r-i)/f*100);let h=ue({...t,defaultClassName:"react-aria-ProgressBar",values:{percentage:m,valueText:d["aria-valuetext"],isIndeterminate:l}}),p=ie(t,{global:!0});return u.createElement(re.div,{...X(p,h,d),ref:n,slot:t.slot||void 0},u.createElement(pn.Provider,{value:{...c,ref:o,elementType:"span"}},h.children))}),Ec=7e3;let Yt=null;function $t(e,t="assertive",n=Ec){Yt?Yt.announce(e,t,n):(Yt=new Lv,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Yt.announce(e,t,n):setTimeout(()=>{Yt?.isAttached()&&Yt?.announce(e,t,n)},100))}function Kv(e){Yt&&Yt.clear(e)}class Lv{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Ec){if(!this.node)return;let i=document.createElement("div");typeof t=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",t["aria-labelledby"])):i.textContent=t,n==="assertive"?this.assertiveLog?.appendChild(i):this.politeLog?.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function Ov(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:l,onPressUp:o,onPressChange:s,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:f,href:m,target:h,rel:p,type:g="button"}=e,y;n==="button"?y={type:g,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:y={role:"button",href:n==="a"&&!r?m:void 0,target:n==="a"?h:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?p:void 0};let{pressProps:$,isPressed:x}=Tt({onPressStart:a,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:o,onClick:f,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:v}=zn(e,t);c&&(v.tabIndex=r?-1:v.tabIndex);let C=X(v,$,ie(e,{labelable:!0}));return{isPressed:x,buttonProps:X(y,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}const vt=u.createContext({}),qt=Vn(function(t,n){[t,n]=pe(t,n,vt);let r=t,{isPending:i}=r,{buttonProps:a,isPressed:l}=Ov(t,n);a=Vv(a,i);let{focusProps:o,isFocused:s,isFocusVisible:d}=Oe(t),{hoverProps:c,isHovered:f}=ze({...t,isDisabled:t.isDisabled||i}),m={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:d,isDisabled:t.isDisabled||!1,isPending:i??!1},h=ue({...t,values:m,defaultClassName:"react-aria-Button"}),p=Ee(a.id),g=Ee(),y=a["aria-labelledby"];i&&(y?y=`${y} ${g}`:a["aria-label"]&&(y=`${p} ${g}`));let $=u.useRef(i);u.useEffect(()=>{let v={"aria-labelledby":y||p};(!$.current&&s&&i||$.current&&s&&!i)&&$t(v,"assertive"),$.current=i},[i,s,y,p]);let x=ie(t,{global:!0});return delete x.onClick,u.createElement(re.button,{...X(x,h,a,o,c),type:a.type==="submit"&&i?"button":a.type,id:p,ref:n,"aria-labelledby":y,slot:t.slot||void 0,"aria-disabled":i?"true":a["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":d||void 0},u.createElement(Dc.Provider,{value:{id:g}},h.children))}),zv=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Vv(e,t){if(t){for(const n in e)n.startsWith("on")&&!zv.test(n)&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const Ui=u.createContext({}),wc=u.forwardRef(function(t,n){[t,n]=pe(t,n,Ui);let{children:r,level:i=3,className:a,...l}=t,o=re[`h${i}`];return u.createElement(o,{...l,ref:n,className:a??"react-aria-Heading"},r)}),tt=u.createContext({});var Sc={};Sc={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var Pc={};Pc={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var kc={};kc={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var Bc={};Bc={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Nc={};Nc={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var Ac={};Ac={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var Fc={};Fc={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var Tc={};Tc={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var Ic={};Ic={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var Mc={};Mc={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var Kc={};Kc={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var Lc={};Lc={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var Oc={};Oc={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var zc={};zc={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var Vc={};Vc={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var _c={};_c={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var Rc={};Rc={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var jc={};jc={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var Hc={};Hc={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var Uc={};Uc={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Wc={};Wc={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var Gc={};Gc={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Zc={};Zc={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Yc={};Yc={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var qc={};qc={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var Xc={};Xc={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var Jc={};Jc={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var Qc={};Qc={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var ef={};ef={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var tf={};tf={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var nf={};nf={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var rf={};rf={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var af={};af={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var lf={};lf={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Er={};Er={"ar-AE":Sc,"bg-BG":Pc,"cs-CZ":kc,"da-DK":Bc,"de-DE":Nc,"el-GR":Ac,"en-US":Fc,"es-ES":Tc,"et-EE":Ic,"fi-FI":Mc,"fr-FR":Kc,"he-IL":Lc,"hr-HR":Oc,"hu-HU":zc,"it-IT":Vc,"ja-JP":_c,"ko-KR":Rc,"lt-LT":jc,"lv-LV":Hc,"nb-NO":Uc,"nl-NL":Wc,"pl-PL":Gc,"pt-BR":Zc,"pt-PT":Yc,"ro-RO":qc,"ru-RU":Xc,"sk-SK":Jc,"sl-SI":Qc,"sr-SP":ef,"sv-SE":tf,"tr-TR":nf,"uk-UA":rf,"zh-CN":af,"zh-TW":lf};function of(e,t){let n=u.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Hn(e,t){return e-t*Math.floor(e/t)}const uf=1721426;function bn(e,t,n,r){t=wr(e,t);let i=t-1,a=-2;return n<=2?a=0:Xt(t)&&(a=-1),uf-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Xt(e){return e%4===0&&(e%100!==0||e%400===0)}function wr(e,t){return e==="BC"?1-t:t}function Wi(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const _v={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Re{fromJulianDay(t){let n=t,r=n-uf,i=Math.floor(r/146097),a=Hn(r,146097),l=Math.floor(a/36524),o=Hn(a,36524),s=Math.floor(o/1461),d=Hn(o,1461),c=Math.floor(d/365),f=i*400+l*100+s*4+c+(l!==4&&c!==4?1:0),[m,h]=Wi(f),p=n-bn(m,h,1,1),g=2;n<bn(m,h,3,1)?g=0:Xt(h)&&(g=1);let y=Math.floor(((p+g)*12+373)/367),$=n-bn(m,h,y,1)+1;return new we(m,h,y,$)}toJulianDay(t){return bn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return _v[Xt(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Xt(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const Rv={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ce(e,t){return t=ye(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function jv(e,t){return t=ye(t,e.calendar),e=gn(e),t=gn(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function Hv(e,t){return t=ye(t,e.calendar),e=_l(e),t=_l(t),e.era===t.era&&e.year===t.year}function Uv(e,t){return Gi(e.calendar,t.calendar)&&Ce(e,t)}function Gi(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function sf(e,t){return Ce(e,zl(t))}const Wv={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Ol(e,t,n){let r=e.calendar.toJulianDay(e),i=n?Wv[n]:Xv(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function df(e){return Mt(Date.now(),e)}function zl(e){return Ve(df(e))}function cf(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Gv(e,t){return ff(e)-ff(t)}function ff(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Vl=null,Zv=!1;function Zi(){return Vl==null&&(Vl=new Intl.DateTimeFormat().resolvedOptions().timeZone),Vl}function mf(){return Zv}function gn(e){return e.subtract({days:e.day-1})}function Yi(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function _l(e){return gn(e.subtract({months:e.month-1}))}function Sr(e,t,n){let r=Ol(e,t,n);return e.subtract({days:r})}function Yv(e,t,n){return Sr(e,t,n).add({days:6})}const hf=new Map,Rl=new Map;function qv(e){if(Intl.Locale){let n=hf.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&hf.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function Xv(e){let t=Rl.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo(),t))return Rl.set(e,t),t.firstDay}let n=qv(e);if(e.includes("-fw-")){let r=e.split("-fw-")[1].split("-")[0];r==="mon"?t={firstDay:1}:r==="tue"?t={firstDay:2}:r==="wed"?t={firstDay:3}:r==="thu"?t={firstDay:4}:r==="fri"?t={firstDay:5}:r==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:n&&Rv[n]||0};Rl.set(e,t)}return t.firstDay}function Jv(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((Ol(gn(e),t,n)+r)/7)}function jl(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Hl(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Un(e){e=ye(e,new Re);let t=wr(e.era,e.year);return pf(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function pf(e,t,n,r,i,a,l){let o=new Date;return o.setUTCHours(r,i,a,l),o.setUTCFullYear(e,t-1,n),o.getTime()}function Ul(e,t){if(t==="UTC")return 0;if(e>0&&t===Zi()&&!mf())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:l,second:o}=gf(e,t);return pf(n,r,i,a,l,o,0)-Math.floor(e/1e3)*1e3}const bf=new Map;function gf(e,t){let n=bf.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),bf.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const yf=864e5;function Qv(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>e6(e,t,a))}function e6(e,t,n){let r=gf(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function It(e,t,n="compatible"){let r=Jt(e);if(t==="UTC")return Un(r);if(t===Zi()&&n==="compatible"&&!mf()){r=ye(r,new Re);let s=new Date,d=wr(r.era,r.year);return s.setFullYear(d,r.month-1,r.day),s.setHours(r.hour,r.minute,r.second,r.millisecond),s.getTime()}let i=Un(r),a=Ul(i-yf,t),l=Ul(i+yf,t),o=Qv(r,t,i-a,i-l);if(o.length===1)return o[0];if(o.length>1)switch(n){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-l);case"compatible":case"later":return Math.max(i-a,i-l);case"reject":throw new RangeError("No such absolute time found")}}function $f(e,t,n="compatible"){return new Date(It(e,t,n))}function Mt(e,t){let n=Ul(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,l=r.getUTCDate(),o=r.getUTCHours(),s=r.getUTCMinutes(),d=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Br(i<1?"BC":"AD",i<1?-i+1:i,a,l,t,n,o,s,d,c)}function Ve(e){return new we(e.calendar,e.era,e.year,e.month,e.day)}function Jt(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new kr(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function ye(e,t){if(Gi(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,yn(r),r}function t6(e,t,n){if(e instanceof Br)return e.timeZone===t?e:vf(e,t);let r=It(e,t,n);return Mt(r,t)}function n6(e){let t=Un(e)-e.offset;return new Date(t)}function vf(e,t){let n=Un(e)-e.offset;return ye(Mt(n,t),e.calendar)}function r6(e){return vf(e,Zi())}const Pr=36e5;function qi(e,t){let n=e.copy(),r="hour"in n?o6(n,t):0;Wl(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Gl(n),xf(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,i6(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){let l=n.calendar.isInverseEra?.(n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Wl(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function Gl(e){for(;e.month<1;)Wl(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Wl(e,1)}function i6(e){for(;e.day<1;)e.month--,Gl(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Gl(e)}function xf(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function yn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),xf(e)}function Cf(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function Df(e,t){return qi(e,Cf(t))}function Zl(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),yn(n),n}function Xi(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),l6(n),n}function a6(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Ji(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Ji(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Ji(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Ji(e.hour,24),t}function l6(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Ji(e,t){let n=e%t;return n<0&&(n+=t),n}function o6(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,a6(e)}function Yl(e,t,n,r){let i=e.copy();switch(t){case"era":{let a=e.calendar.getEras(),l=a.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Kt(l,n,0,a.length-1,r?.round),i.era=a[l],yn(i);break}case"year":i.calendar.isInverseEra?.(i)&&(n=-n),i.year=Kt(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Kt(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":i.day=Kt(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),yn(i),i}function Ef(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,l=0,o=23;if(r?.hourCycle===12){let s=a>=12;l=s?12:0,o=s?23:11}i.hour=Kt(a,n,l,o,r?.round);break}case"minute":i.minute=Kt(e.minute,n,0,59,r?.round);break;case"second":i.second=Kt(e.second,n,0,59,r?.round);break;case"millisecond":i.millisecond=Kt(e.millisecond,n,0,999,r?.round);break;default:throw new Error("Unsupported field "+t)}return i}function Kt(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function wf(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=qi(Jt(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=It(i,e.timeZone)}else n=Un(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Mt(n,e.timeZone);return ye(r,e.calendar)}function u6(e,t){return wf(e,Cf(t))}function s6(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if(r?.hourCycle===12){let p=e.hour>=12;i=p?12:0,a=p?23:11}let l=Jt(e),o=ye(Xi(l,{hour:i}),new Re),s=[It(o,e.timeZone,"earlier"),It(o,e.timeZone,"later")].filter(p=>Mt(p,e.timeZone).day===o.day)[0],d=ye(Xi(l,{hour:a}),new Re),c=[It(d,e.timeZone,"earlier"),It(d,e.timeZone,"later")].filter(p=>Mt(p,e.timeZone).day===d.day).pop(),f=Un(e)-e.offset,m=Math.floor(f/Pr),h=f%Pr;return f=Kt(m,n,Math.floor(s/Pr),Math.floor(c/Pr),r?.round)*Pr+h,ye(Mt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Ef(e,t,n,r);case"era":case"year":case"month":case"day":{let i=Yl(Jt(e),t,n,r),a=It(i,e.timeZone);return ye(Mt(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function d6(e,t,n){let r=Jt(e),i=Xi(Zl(r,t),t);if(i.compare(r)===0)return e;let a=It(i,e.timeZone,n);return ye(Mt(a,e.timeZone),e.calendar)}const c6=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,f6=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Sf=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function m6(e){let t=e.match(c6);if(!t)throw Sf.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let n=new we(xt(t[1],0,9999),xt(t[2],1,12),1);return n.day=xt(t[3],1,n.calendar.getDaysInMonth(n)),n}function h6(e){let t=e.match(f6);if(!t)throw Sf.test(e)?new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+e);let n=xt(t[1],-9999,9999),r=n<1?"BC":"AD",i=new kr(r,n<1?-n+1:n,xt(t[2],1,12),1,t[4]?xt(t[4],0,23):0,t[5]?xt(t[5],0,59):0,t[6]?xt(t[6],0,59):0,t[7]?xt(t[7],0,1/0)*1e3:0);return i.day=xt(t[3],0,i.calendar.getDaysInMonth(i)),i}function xt(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function p6(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Pf(e){let t=ye(e,new Re),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function kf(e){return`${Pf(e)}T${p6(e)}`}function b6(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return i!==0&&(a+=`:${String(i).padStart(2,"0")}`),a}function g6(e){return`${kf(e)}${b6(e.offset)}[${e.timeZone}]`}function ql(e){let t=typeof e[0]=="object"?e.shift():new Re,n;if(typeof e[0]=="string")n=e.shift();else{let l=t.getEras();n=l[l.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}class we{#e;constructor(...t){let[n,r,i,a,l]=ql(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=l,yn(this)}copy(){return this.era?new we(this.calendar,this.era,this.year,this.month,this.day):new we(this.calendar,this.year,this.month,this.day)}add(t){return qi(this,t)}subtract(t){return Df(this,t)}set(t){return Zl(this,t)}cycle(t,n,r){return Yl(this,t,n,r)}toDate(t){return $f(this,t)}toString(){return Pf(this)}compare(t){return cf(this,t)}}class kr{#e;constructor(...t){let[n,r,i,a,l]=ql(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,yn(this)}copy(){return this.era?new kr(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new kr(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return qi(this,t)}subtract(t){return Df(this,t)}set(t){return Zl(Xi(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Yl(this,t,n,r);default:return Ef(this,t,n,r)}}toDate(t,n){return $f(this,t,n)}toString(){return kf(this)}compare(t){let n=cf(this,t);return n===0?Gv(this,Jt(t)):n}}class Br{#e;constructor(...t){let[n,r,i,a,l]=ql(t),o=t.shift(),s=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=l,this.timeZone=o,this.offset=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,yn(this)}copy(){return this.era?new Br(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Br(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return wf(this,t)}subtract(t){return u6(this,t)}set(t,n){return d6(this,t,n)}cycle(t,n,r){return s6(this,t,n,r)}toDate(){return n6(this)}toString(){return g6(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-t6(t,this.timeZone).toDate().getTime()}}const Wn=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],y6=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Qi=[1867,1911,1925,1988,2018],Qt=["meiji","taisho","showa","heisei","reiwa"];function Bf(e){const t=Wn.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?Wn.length-1:t===0?0:t-1}function Xl(e){let t=Qi[Qt.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new we(e.year+t,e.month,e.day)}class $6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=Bf(n);return new we(this,Qt[r],n.year-Qi[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Xl(t))}balanceDate(t){let n=Xl(t),r=Bf(n);Qt[r]!==t.era&&(t.era=Qt[r],t.year=n.year-Qi[r]),this.constrainDate(t)}constrainDate(t){let n=Qt.indexOf(t.era),r=y6[n];if(r!=null){let[i,a,l]=r,o=i-Qi[n];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(l,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Wn[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return Qt}getYearsInEra(t){let n=Qt.indexOf(t.era),r=Wn[n],i=Wn[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(Xl(t))}getMinimumMonthInYear(t){let n=Nf(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Nf(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Nf(e){if(e.year===1){let t=Qt.indexOf(e.era);return Wn[t]}}const Af=-543;class v6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=wr(n.era,n.year);return new we(this,r-Af,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Ff(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Ff(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Ff(e){let[t,n]=Wi(e.year+Af);return new we(t,n,e.month,e.day)}const ea=1911;function Tf(e){return e.era==="minguo"?e.year+ea:1-e.year+ea}function If(e){let t=e-ea;return t>0?["minguo",t]:["before_minguo",1-t]}class x6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=wr(n.era,n.year),[i,a]=If(r);return new we(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Mf(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=If(Tf(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Mf(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-ea}constructor(...t){super(...t),this.identifier="roc"}}function Mf(e){let[t,n]=Wi(Tf(e));return new we(t,n,e.month,e.day)}const Kf=1948320,Lf=[0,31,62,93,124,155,186,216,246,276,306,336];class C6{fromJulianDay(t){let n=t-Kf,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,l=a<216?Math.floor(a/31):Math.floor((a-6)/30),o=a-Lf[l]+1;return new we(this,r,l+1,o)}toJulianDay(t){let n=Kf-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=Lf[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Hn(25*t.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Jl=78,Of=80;class D6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Jl,i=t-bn(n.era,n.year,1,1),a;i<Of?(r--,a=Xt(n.year-1)?31:30,i+=a+155+90+10):(a=Xt(n.year)?31:30,i-=Of);let l,o;if(i<a)l=1,o=i+1;else{let s=i-a;s<155?(l=Math.floor(s/31)+2,o=s%31+1):(s-=155,l=Math.floor(s/30)+7,o=s%30+1)}return new we(this,r,l,o)}toJulianDay(t){let n=t.year+Jl,[r,i]=Wi(n),a,l;return Xt(i)?(a=31,l=bn(r,i,3,21)):(a=30,l=bn(r,i,3,22)),t.month===1?l+t.day-1:(l+=a+Math.min(t.month-2,5)*31,t.month>=8&&(l+=(t.month-7)*30),l+=t.day-1,l)}getDaysInMonth(t){return t.month===1&&Xt(t.year+Jl)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const ta=1948440,zf=1948439,nt=1300,Gn=1600,E6=460322;function na(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Vf(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+na(t,r,1,1)))/29.5)+1),a=n-na(t,r,i,1)+1;return new we(e,r,i,a)}function _f(e){return(14+11*e)%30<11}class Ql{fromJulianDay(t){return Vf(this,ta,t)}toJulianDay(t){return na(ta,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&_f(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return _f(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class w6 extends Ql{fromJulianDay(t){return Vf(this,zf,t)}toJulianDay(t){return na(zf,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const S6="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let eo,Zn;function ra(e){return E6+Zn[e-nt]}function Nr(e,t){let n=e-nt,r=1<<11-(t-1);return(eo[n]&r)===0?29:30}function Rf(e,t){let n=ra(e);for(let r=1;r<t;r++)n+=Nr(e,r);return n}function jf(e){return Zn[e+1-nt]-Zn[e-nt]}class P6 extends Ql{constructor(){if(super(),this.identifier="islamic-umalqura",eo||(eo=new Uint16Array(Uint8Array.from(atob(S6),t=>t.charCodeAt(0)).buffer)),!Zn){Zn=new Uint32Array(Gn-nt+1);let t=0;for(let n=nt;n<=Gn;n++){Zn[n-nt]=t;for(let r=1;r<=12;r++)t+=Nr(n,r)}}}fromJulianDay(t){let n=t-ta,r=ra(nt),i=ra(Gn);if(n<r||n>i)return super.fromJulianDay(t);{let a=nt-1,l=1,o=1;for(;o>0;){a++,o=n-ra(a)+1;let s=jf(a);if(o===s){l=12;break}else if(o<s){let d=Nr(a,l);for(l=1;o>d;)o-=d,l++,d=Nr(a,l);break}}return new we(this,a,l,n-Rf(a,l)+1)}}toJulianDay(t){return t.year<nt||t.year>Gn?super.toJulianDay(t):ta+Rf(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<nt||t.year>Gn?super.getDaysInMonth(t):Nr(t.year,t.month)}getDaysInYear(t){return t.year<nt||t.year>Gn?super.getDaysInYear(t):jf(t.year)}}const Hf=347997,Uf=1080,Wf=24*Uf,k6=29,B6=12*Uf+793,N6=k6*Wf+B6;function $n(e){return Hn(e*7+1,19)<7}function ia(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Hn(3*(r+1),7)<3&&(r+=1),r}function A6(e){let t=ia(e-1),n=ia(e);return ia(e+1)-n===356?2:n-t===382?1:0}function Ar(e){return ia(e)+A6(e)}function Gf(e){return Ar(e+1)-Ar(e)}function F6(e){let t=Gf(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function aa(e,t){if(t>=6&&!$n(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=F6(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$n(e)?30:0:30}class T6{fromJulianDay(t){let n=t-Hf,r=n*Wf/N6,i=Math.floor((19*r+234)/235)+1,a=Ar(i),l=Math.floor(n-a);for(;l<1;)i--,a=Ar(i),l=Math.floor(n-a);let o=1,s=0;for(;s<l;)s+=aa(i,o),o++;o--,s-=aa(i,o);let d=l-s;return new we(this,i,o,d)}toJulianDay(t){let n=Ar(t.year);for(let r=1;r<t.month;r++)n+=aa(t.year,r);return n+t.day+Hf}getDaysInMonth(t){return aa(t.year,t.month)}getMonthsInYear(t){return $n(t.year)?13:12}getDaysInYear(t){return Gf(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&($n(n.year)&&!$n(t.year)&&n.month>6?t.month--:!$n(n.year)&&$n(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const to=1723856,Zf=1824665,no=5500;function la(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function ro(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-la(e,n,1,1))/30),i=t+1-la(e,n,r,1);return[n,r,i]}function Yf(e){return Math.floor(e%4/3)}function qf(e,t){return t%13!==0?30:Yf(e)+5}class io{fromJulianDay(t){let[n,r,i]=ro(to,t),a="AM";return n<=0&&(a="AA",n+=no),new we(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=no),la(to,n,t.month,t.day)}getDaysInMonth(t){return qf(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Yf(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class I6 extends io{fromJulianDay(t){let[n,r,i]=ro(to,t);return n+=no,new we(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class M6 extends io{fromJulianDay(t){let[n,r,i]=ro(Zf,t),a="CE";return n<=0&&(a="BCE",n=1-n),new we(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),la(Zf,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),qf(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function oa(e){switch(e){case"buddhist":return new v6;case"ethiopic":return new io;case"ethioaa":return new I6;case"coptic":return new M6;case"hebrew":return new T6;case"indian":return new D6;case"islamic-civil":return new Ql;case"islamic-tbla":return new w6;case"islamic-umalqura":return new P6;case"japanese":return new $6;case"persian":return new C6;case"roc":return new x6;default:return new Re}}let ao=new Map;class vn{constructor(t,n={}){this.formatter=Xf(t,n),this.options=n}format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return O6()&&(this.resolvedHourCycle||(this.resolvedHourCycle=z6(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}}const K6={true:{ja:"h11"},false:{}};function Xf(e,t={}){if(typeof t.hour12=="boolean"&&L6()){t={...t};let i=K6[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(ao.has(n))return ao.get(n);let r=new Intl.DateTimeFormat(e,t);return ao.set(n,r),r}let lo=null;function L6(){return lo==null&&(lo=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),lo}let oo=null;function O6(){return oo==null&&(oo=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),oo}function z6(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=Xf(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Ye(e){e=of(e??{},V6);let{locale:t}=be();return u.useMemo(()=>new vn(t,e),[t,e])}function V6(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function Jf(e){return e&&e.__esModule?e.default:e}const uo=new WeakMap;function Fr(e){return e?.calendar.identifier==="gregory"&&e.era==="BC"?"short":void 0}function _6(e){let t=ke(Jf(Er),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:(n=Array.isArray(e.value)?e.value[0]:e.value??void 0,r=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let i=Ye({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Fr(n)||Fr(r),timeZone:e.timeZone}),{locale:a}=be(),l=u.useMemo(()=>new Intl.ListFormat(a),[a]),o="anchorDate"in e?e.anchorDate:null;return u.useMemo(()=>{if(!o&&n&&r){if(Ce(n,r)){let s=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else if("highlightedRange"in e){let s=co(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}else if(Array.isArray(e.value)){let s=e.value.map(c=>i.format(c.toDate(e.timeZone))),d=l.format(s);return t.format("selectedDateDescription",{date:d})}}return""},[n,r,o,e,t,i,l])}function so(e,t,n,r){let i=ke(Jf(Er),"@react-aria/calendar"),a=Fr(e)||Fr(t),l=Ye({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),o=Ye({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return u.useMemo(()=>{if(Ce(e,gn(e))){let s=e,d=t;if(e.calendar.getFormattableMonth&&(s=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),Ce(t,Yi(e)))return l.format(s.toDate(n));if(Ce(t,Yi(t)))return r?co(l,i,s,d,n):l.formatRange(s.toDate(n),d.toDate(n))}return r?co(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))},[e,t,l,o,i,n,r])}function co(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),l=-1;for(let d=0;d<a.length;d++){let c=a[d];if(c.source==="shared"&&c.type==="literal")l=d;else if(c.source==="endRange")break}let o="",s="";for(let d=0;d<a.length;d++)d<l?o+=a[d].value:d>l&&(s+=a[d].value);return t.format("dateRange",{startDate:o,endDate:s})}function Tr(e,t){const n=u.useRef(!0),r=u.useRef(null);let i=De(e);u.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),u.useEffect(()=>{let a=r.current;n.current?n.current=!1:(!a||t.some((l,o)=>!Object.is(l,a[o])))&&i(),r.current=t},t)}function R6(e){return e&&e.__esModule?e.default:e}function Qf(e,t){let n=ke(R6(Er),"@react-aria/calendar"),r=ie(e),i=so(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=so(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Tr(()=>{t.isFocused||$t(a)},[a]);let l=_6(t);Tr(()=>{l&&$t(l,"polite",4e3)},[l]);let o=mt([!!e.errorMessage,e.isInvalid,e.validationState]);uo.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:l});let[s,d]=u.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&s&&(d(!1),t.setFocused(!0));let[f,m]=u.useState(!1),h=e.isDisabled||t.isPreviousVisibleRangeInvalid();h&&f&&(m(!1),t.setFocused(!0));let p=Ft({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:X(r,p,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:h,onFocusChange:m},errorMessageProps:{id:o},title:i}}function j6(e,t){return Qf(e,t)}function H6(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=be(),{keyboardProps:l}=Le({shortcuts:{End:()=>{t.focusSectionEnd()},Home:()=>{t.focusSectionStart()},Escape:()=>("setAnchorDate"in t&&t.setAnchorDate(null),!1)}}),{keyboardProps:o}=Le({shortcuts:{Enter:()=>{t.selectFocusedDate()}," ":()=>{t.selectFocusedDate()},PageUp:()=>{t.focusPreviousSection()},"Shift+PageUp":()=>{t.focusPreviousSection(!0)},PageDown:()=>{t.focusNextSection()},"Shift+PageDown":()=>{t.focusNextSection(!0)},ArrowLeft:()=>{a==="rtl"?t.focusNextDay():t.focusPreviousDay()},ArrowUp:()=>{t.focusPreviousRow()},ArrowRight:()=>{a==="rtl"?t.focusPreviousDay():t.focusNextDay()},ArrowDown:()=>{t.focusNextRow()}},allowRepeats:!0}),s=so(n,r,t.timeZone,!0),{ariaLabel:d,ariaLabelledBy:c}=uo.get(t),f=Ft({"aria-label":[d,s].filter(Boolean).join(", "),"aria-labelledby":c}),m=Ye({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=be(),p=u.useMemo(()=>{let y=t.visibleDuration.days&&t.visibleDuration.days<7,$=y?n:Sr(zl(t.timeZone),h,i),x=y?t.visibleDuration.days:7;return[...new Array(x).keys()].map(v=>{let w=$.add({days:v}).toDate(t.timeZone);return m.format(w)})},[h,t.timeZone,m,i,n,t.visibleDuration.days]),g=t.getWeeksInMonth(n);return{gridProps:X(f,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||t.selectionMode==="multiple"||void 0,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)},l,o),headerProps:{"aria-hidden":!0},weekDays:p,weeksInMonth:g}}function en(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!=="hidden"&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function ot(e,t){let n=e;for(en(n,t)&&(n=n.parentElement);n&&!en(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function fo(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(en(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function ua(e,t,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(e===t)return;let a=e.scrollTop,l=e.scrollLeft,o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),d=window.getComputedStyle(t),c=window.getComputedStyle(e),f=document.scrollingElement||document.documentElement,m=e===f,h=e===f?0:s.top,p=e===f?e.clientHeight:s.bottom,g=e===f?0:s.left,y=e===f?e.clientWidth:s.right,$=parseFloat(d.scrollMarginTop)||0,x=parseFloat(d.scrollMarginBottom)||0,v=parseFloat(d.scrollMarginLeft)||0,C=parseFloat(d.scrollMarginRight)||0,w=parseFloat(c.scrollPaddingTop)||0,S=parseFloat(c.scrollPaddingBottom)||0,B=parseFloat(c.scrollPaddingLeft)||0,E=parseFloat(c.scrollPaddingRight)||0,k=parseFloat(c.borderTopWidth)||0,M=parseFloat(c.borderBottomWidth)||0,F=parseFloat(c.borderLeftWidth)||0,I=parseFloat(c.borderRightWidth)||0,j=o.top-$,D=o.bottom+x,T=o.left-v,Y=o.right+C,K=e===f?0:F+I,q=e===f?0:k+M,P=e===f?0:e.offsetWidth-e.clientWidth-K,N=e===f?0:e.offsetHeight-e.clientHeight-q,R=h+(m?0:k)+w,Q=p-(m?0:M)-S-N,O=g+(m?0:F)+B,z=y-(m?0:I)-E;bt()&&gt()||c.direction==="ltr"?z-=P:c.direction==="rtl"&&(O+=P);let A=j<R||D>Q,V=T<O||Y>z;if(A&&r==="start")a+=j-R;else if(A&&r==="center")a+=(j+D)/2-(R+Q)/2;else if(A&&r==="end")a+=D-Q;else if(A&&r==="nearest"){let L=j-R,J=D-Q;a+=Math.abs(L)<=Math.abs(J)?L:J}if(V&&i==="start")l+=T-O;else if(V&&i==="center")l+=(T+Y)/2-(O+z)/2;else if(V&&i==="end")l+=Y-z;else if(V&&i==="nearest"){let L=T-O,J=Y-z;l+=Math.abs(L)<=Math.abs(J)?L:J}if(process.env.NODE_ENV==="test"){e.scrollLeft=l,e.scrollTop=a;return}e.scrollTo({left:l,top:a})}function Ct(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let r=document.scrollingElement||document.documentElement;if(window.getComputedStyle(r).overflow==="hidden"){let{left:a,top:l}=e.getBoundingClientRect(),o=fo(e,!0);for(let c of o)ua(c,e);let{left:s,top:d}=e.getBoundingClientRect();if(Math.abs(a-s)>1||Math.abs(l-d)>1){o=n?fo(n,!0):[];for(let c of o)ua(c,n,{block:"center",inline:"center"});for(let c of fo(e,!0))ua(c,e)}}else{let{left:a,top:l}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:o,top:s}=e.getBoundingClientRect();(Math.abs(a-o)>1||Math.abs(l-s)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let U6=0;const mo=new Map;function xn(e){let[t,n]=u.useState();return fe(()=>{if(!e)return;let r=mo.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${U6++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},mo.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),mo.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function W6(e){return e&&e.__esModule?e.default:e}function G6(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:l}=uo.get(t),o=ke(W6(Er),"@react-aria/calendar"),s=Ye({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Fr(r),timeZone:t.timeZone}),d=t.isCellFocused(r)&&!e.isOutsideMonth;i=i||t.isCellDisabled(r)||!!e.isOutsideMonth;let c=t.isCellUnavailable(r),f=!i&&!c,m=t.isSelected(r)&&f,h=!1;t.isValueInvalid&&("highlightedRange"in t?h=!t.anchorDate&&t.highlightedRange!=null&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:Array.isArray(t.value)?h=t.value.some(F=>Ce(F,r)):t.value&&(h=Ce(t.value,r))),h&&!i&&(m=!0),r=of(r,Uv);let p=u.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),g=sf(r,t.timeZone),y=u.useMemo(()=>{let F="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Ce(r,t.value.start)||Ce(r,t.value.end))&&(F=l+", "),F+=s.format(p),g?F=o.format(m?"todayDateSelected":"todayDate",{date:F}):m&&(F=o.format("dateSelected",{date:F})),t.minValue&&Ce(r,t.minValue)?F+=", "+o.format("minimumDate"):t.maxValue&&Ce(r,t.maxValue)&&(F+=", "+o.format("maximumDate")),F},[s,p,o,m,g,r,t,l]),$="";"anchorDate"in t&&d&&!t.isReadOnly&&f&&(t.anchorDate?$=o.format("finishRangeSelectionPrompt"):$=o.format("startRangeSelectionPrompt"));let x=xn($),v=u.useRef(!1),C=u.useRef(!1),w=u.useRef(void 0),{pressProps:S,isPressed:B}=Tt({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!f||t.isReadOnly,onPressStart(F){if(t.isReadOnly){t.setFocusedDate(r),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&(F.pointerType==="mouse"||F.pointerType==="touch")){if(t.highlightedRange&&!h){if(Ce(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setFocused(!0),t.setDragging(!0),C.current=!0;return}else if(Ce(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setFocused(!0),t.setDragging(!0),C.current=!0;return}}let I=()=>{t.setDragging(!0),w.current=void 0,t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0),v.current=!0};F.pointerType==="touch"?w.current=setTimeout(I,200):I()}},onPressEnd(){C.current=!1,v.current=!1,clearTimeout(w.current),w.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0))},onPressUp(F){t.isReadOnly||("anchorDate"in t&&w.current&&(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0)),"anchorDate"in t&&(C.current?t.setAnchorDate(r):t.anchorDate&&!v.current?(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0)):F.pointerType==="keyboard"&&!t.anchorDate?(t.selectDate(r),t.focusNearestAvailableDate(r)):F.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0))))}}),E;i||(E=Ce(r,t.focusedDate)?0:-1),u.useEffect(()=>{d&&n.current&&(Xe(n.current),Kn()!=="pointer"&&ce()===n.current&&Ct(n.current,{containingElement:ot(n.current)}))},[d,n]);let k=Ye({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),M=u.useMemo(()=>k.formatToParts(p).find(F=>F.type==="day").value,[k,p]);return{cellProps:{role:"gridcell","aria-disabled":!f||void 0,"aria-selected":m||void 0,"aria-invalid":h||void 0},buttonProps:X(S,{onFocus(){i||(t.setFocusedDate(r),t.setFocused(!0))},tabIndex:E,role:"button","aria-disabled":!f||void 0,"aria-label":y,"aria-invalid":h||void 0,"aria-describedby":[h?a:void 0,x["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(F){"highlightDate"in t&&(F.pointerType!=="touch"||t.isDragging)&&f&&t.highlightDate(r)},onPointerDown(F){let I=G(F);I instanceof HTMLElement&&"releasePointerCapture"in I&&("hasPointerCapture"in I?I.hasPointerCapture(F.pointerId)&&I.releasePointerCapture(F.pointerId):I.releasePointerCapture(F.pointerId))},onContextMenu(F){F.preventDefault()}}),isPressed:B,isFocused:d,isSelected:m,isDisabled:i,isUnavailable:c,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:M}}function Z6(e,t){let n=Ye({month:e.format||"short",calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),r=[],i=t.focusedDate.calendar.getMonthsInYear(t.focusedDate);for(let o=1;o<=i;o++){let s=t.focusedDate.set({month:o}),d=s.calendar.getFormattableMonth?s.calendar.getFormattableMonth(s):s;r.push({id:o,date:s,formatted:n.format(d.toDate(t.timeZone))})}let{locale:a}=be();return{"aria-label":u.useMemo(()=>new Intl.DisplayNames(a,{type:"dateTimeField"}).of("month"),[a]),value:t.focusedDate.month,onChange:o=>{o!=null&&t.setFocusedDate(r[Number(o)-1].date)},items:r}}function Y6(e,t){let n=Ye({year:e.format?.year||"numeric",era:e.format?.era||(t.focusedDate.calendar.identifier==="gregory"&&t.focusedDate.era==="BC"?"short":void 0),calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),r=e.visibleYears||20,i=t.focusedDate.subtract({years:Math.floor(r/2)}),a=t.focusedDate.add({years:Math.ceil(r/2)-1});t.maxValue&&a.compare(t.maxValue)>0&&(a=Ve(t.maxValue),i=a.subtract({years:r-1})),t.minValue&&i.compare(t.minValue)<0&&(i=Ve(t.minValue),a=i.add({years:r-1}),t.maxValue&&a.compare(t.maxValue)>0&&(a=Ve(t.maxValue)));let l=[],o=i,s=0;for(;o.compare(a)<=0;)Hv(o,t.focusedDate)&&(s=l.length),l.push({id:l.length,date:o,formatted:n.format(o.toDate(t.timeZone))}),o=o.add({years:1});let{locale:d}=be();return{"aria-label":u.useMemo(()=>new Intl.DisplayNames(d,{type:"dateTimeField"}).of("year"),[d]),value:s,onChange:f=>{f!=null&&t.setFocusedDate(l[f].date)},items:l}}function q6(e,t){let n=u.useMemo(()=>{let a=t.visibleRange.start;return e.offset&&(a=a.add(e.offset)),a},[t.visibleRange.start,e.offset]),r=t.visibleDuration.days||t.visibleDuration.weeks,i=Ye({day:e.format?.day||(r?"numeric":void 0),month:e.format?.month||"long",year:e.format?.year||"numeric",era:e.format?.era||n&&n.calendar.identifier==="gregory"&&n.era==="BC"?"short":void 0,calendar:t.visibleRange?.start.calendar.identifier,timeZone:t.timeZone});return u.useMemo(()=>{if(r)return i.formatRange(n.toDate(t.timeZone),t.visibleRange.end.toDate(t.timeZone));let a=n.calendar.getFormattableMonth?n.calendar.getFormattableMonth(n):n;return i.format(a.toDate(t.timeZone))},[i,r,n,t.timeZone,t.visibleRange.end])}function X6(e,t,n){let{commitBehavior:r="select",...i}=e,a=Qf(i,t),l=u.useRef(!1),o=u.useRef(typeof window<"u"?window:null);lt(o,"pointerdown",c=>{l.current=c.width===0&&c.height===0});const s={clear:()=>t.clearSelection(),reset:()=>t.setAnchorDate(null),select:()=>t.commitSelection()};return lt(o,"pointerup",c=>{if(l.current){l.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let f=c.target;n.current&&Ht(n.current)&&(!ae(n.current,f)||!f.closest('button, [role="button"]'))&&s[r]()}),a.calendarProps.onBlur=c=>{n.current&&(!c.relatedTarget||!ae(n.current,c.relatedTarget))&&t.anchorDate&&s[r]()},lt(n,"touchmove",c=>{t.isDragging&&c.preventDefault()},{passive:!1,capture:!0}),a}function tn(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function ho(e,t,n,r,i){let a={};for(let o in t)a[o]=Math.floor(t[o]/2),a[o]>0&&t[o]%2===0&&a[o]--;let l=Cn(e,t,n).subtract(a);return Ir(e,l,t,n,r,i)}function Cn(e,t,n,r,i){let a=e;return t.years?a=_l(e):t.months?a=gn(e):(t.weeks||t.days&&t.days>7)&&(a=Sr(e,n)),Ir(e,a,t,n,r,i)}function po(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let l=Cn(e,t,n).subtract(a);return Ir(e,l,t,n,r,i)}function Ir(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let l=Hl(t,Cn(Ve(i),n,r));l&&(t=l)}if(a&&e.compare(a)<=0){let l=jl(t,po(Ve(a),n,r));l&&(t=l)}return t}function Dt(e,t,n){if(t){let r=Hl(e,Ve(t));r&&(e=r)}if(n){let r=jl(e,Ve(n));r&&(e=r)}return e}function e0(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function J6(e,t){return e===t?!0:e.days===t.days&&e.weeks===t.weeks&&e.months===t.months&&e.years===t.years}function t0(e){let t=u.useMemo(()=>new vn(e.locale),[e.locale]),n=u.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:l,maxValue:o,selectionAlignment:s,isDateUnavailable:d,pageBehavior:c="visible",selectionMode:f="single",firstDayOfWeek:m,weeksInMonth:h}=e,p=u.useMemo(()=>i(n.calendar),[i,n.calendar]),[g,y]=He(e.value,e.defaultValue??null,e.onChange),$=u.useMemo(()=>Array.isArray(g)?g.map(z=>ye(Ve(z),p)):g?ye(Ve(g),p):null,[g,p]),x=u.useMemo(()=>{let z=Array.isArray(g)?g[0]:g;return z&&"timeZone"in z?z.timeZone:n.timeZone},[g,n.timeZone]),v=u.useMemo(()=>e.focusedValue?Dt(ye(Ve(e.focusedValue),p),l,o):void 0,[e.focusedValue,p,l,o]),C=u.useMemo(()=>e.defaultFocusedValue?Dt(ye(Ve(e.defaultFocusedValue),p),l,o):Dt($?Array.isArray($)?$[0]:$:ye(zl(x),p),l,o),[e.defaultFocusedValue,$,x,p,l,o]),[w,S]=He(v,C,e.onFocusChange),B=()=>{switch(s){case"start":return Cn(w,a,r,l,o);case"end":return po(w,a,r,l,o);default:return ho(w,a,r,l,o)}},[E,k]=u.useState(B),[M,F]=u.useState(e.autoFocus||!1),[I,j]=u.useState(a);J6(a,I)||(j(a),k(B()));let D=u.useMemo(()=>{let z={...a};return z.days?z.days--:z.days=-1,E.add(z)},[E,a]),[T,Y]=u.useState(p);if(!Gi(p,T)){let z=ye(w,p);k(ho(z,a,r,l,o)),S(z),Y(p)}tn(w,l,o)?S(Dt(w,l,o)):w.compare(E)<0?k(po(w,a,r,l,o)):w.compare(D)>0&&k(Cn(w,a,r,l,o));function K(z){z=Dt(z,l,o),S(z)}function q(z){let A=Dt(z,l,o),V=e0(A,E,d);if(!V)return null;let L=Array.isArray(g)?g[0]:g,J=ye(V,L?.calendar||new Re);return L&&"hour"in L?L.set(J):J}function P(z){if(!e.isDisabled&&!e.isReadOnly){if(z===null){y(f==="multiple"?[]:null);return}if(Array.isArray(z))y(z.map(q).filter(Boolean));else{let A=q(z);A&&y(A)}}}let N=u.useMemo(()=>$?Array.isArray($)?$.some(z=>d?.(z)||tn(z,l,o)):d?.($)||tn($,l,o):!1,[$,d,l,o]),R=e.isInvalid||e.validationState==="invalid"||N,Q=R?"invalid":null,O=u.useMemo(()=>c==="visible"?a:bo(a),[c,a]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:$,setValue:P,selectionMode:f,visibleDuration:a,visibleRange:{start:E,end:D},minValue:l,maxValue:o,focusedDate:w,timeZone:x,validationState:Q,isValueInvalid:R,setFocusedDate(z){K(z)},focusNextDay(){K(w.add({days:1}))},focusPreviousDay(){K(w.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&K(w.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&K(w.subtract({weeks:1}))},focusNextPage(){let z=E.add(O);S(Dt(w.add(O),l,o)),k(Cn(Ir(w,z,O,r,l,o),O,r))},focusPreviousPage(){let z=E.subtract(O);S(Dt(w.subtract(O),l,o)),k(Cn(Ir(w,z,O,r,l,o),O,r))},focusSectionStart(){a.days?K(E):a.weeks?K(Sr(w,r)):(a.months||a.years)&&K(gn(w))},focusSectionEnd(){a.days?K(D):a.weeks?K(Yv(w,r)):(a.months||a.years)&&K(Yi(w))},focusNextSection(z){if(!z&&!a.days){K(w.add(bo(a)));return}a.days?this.focusNextPage():a.weeks?K(w.add({months:1})):(a.months||a.years)&&K(w.add({years:1}))},focusPreviousSection(z){if(!z&&!a.days){K(w.subtract(bo(a)));return}a.days?this.focusPreviousPage():a.weeks?K(w.subtract({months:1})):(a.months||a.years)&&K(w.subtract({years:1}))},selectFocusedDate(){d&&d(w)||this.selectDate(w)},selectDate(z){if(!(e.isDisabled||e.isReadOnly))if(f==="multiple"&&z!=null){let A=q(z);if(!A)return;let V=[];Array.isArray(g)?V=g:g!=null&&(V=[g]);let L=V.findIndex(le=>Ce(le,A)),J=L>=0?V.slice(0,L).concat(V.slice(L+1)):[...V,A];y(J)}else P(z)},isFocused:M,setFocused:F,isInvalid(z){return tn(z,l,o)},isSelected(z){return!$||this.isCellDisabled(z)||this.isCellUnavailable(z)?!1:Array.isArray($)?$.some(A=>Ce(A,z)):Ce(z,$)},isCellFocused(z){return M&&w&&Ce(z,w)},isCellDisabled(z){return e.isDisabled||z.compare(E)<0||z.compare(D)>0||this.isInvalid(z)},isCellUnavailable(z){return e.isDateUnavailable?e.isDateUnavailable(z):!1},isPreviousVisibleRangeInvalid(){let z=E.subtract({days:1});return Ce(z,E)||this.isInvalid(z)},isNextVisibleRangeInvalid(){let z=D.add({days:1});return Ce(z,D)||this.isInvalid(z)},getDatesInWeek(z,A=E){let V=A.add({weeks:z}),L=[],J=a.days&&a.days<7?a.days:7;if(J===7){V=Sr(V,r,m);let le=Ol(V,r,m);for(let Ke=0;Ke<le;Ke++)L.push(null)}for(;L.length<J;){L.push(V);let le=V.add({days:1});if(Ce(V,le))break;V=le}for(;L.length<J;)L.push(null);return L},getWeeksInMonth(z=E){let A=h||Jv(z,r,m);return(a.weeks||a.days)&&(A=a.weeks??0,a.days&&(A+=Math.ceil(a.days/7))),A}}}function bo(e){let t={...e};for(let n in e)t[n]=1;return t}function Q6(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:l={months:1},minValue:o,maxValue:s,...d}=e,[c,f]=He(t,n||null,r),[m,h]=u.useState(null),p="center";if(c&&c.start&&c.end){let j=ho(Ve(c.start),l,a,o,s).add(l).subtract({days:1});c.end.compare(j)>0&&(p="start")}let g=u.useMemo(()=>{let I=e.isDateUnavailable;if(I)return j=>I(j,m)},[e.isDateUnavailable,m]),y=u.useCallback(I=>{if(I&&g&&!e.allowsNonContiguousRanges){const j=r0(I,g,l,-1),D=r0(I,g,l,1);return{start:j,end:D}}else return null},[g,l,e.allowsNonContiguousRanges]),$=u.useMemo(()=>y(m),[y,m]),x=u.useMemo(()=>Hl(o,$?.start),[o,$]),v=u.useMemo(()=>jl(s,$?.end),[s,$]),C=t0({...d,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:l,minValue:x,maxValue:v,selectionAlignment:e.selectionAlignment||p,isDateUnavailable:g}),w=m?go(m,C.focusedDate):c&&go(c.start,c.end),S=I=>{if(e.isReadOnly)return;const j=Dt(I,x,v),D=e0(j,C.visibleRange.start,g);if(D)if(!m)h(D);else{let T=go(m,D);T&&f({start:n0(T.start,c?.start),end:n0(T.end,c?.end)}),h(null)}},[B,E]=u.useState(!1),k=u.useMemo(()=>!c||m?!1:g&&(g(c.start)||g(c.end))?!0:tn(c.start,o,s)||tn(c.end,o,s),[g,c,m,o,s]),M=e.isInvalid||e.validationState==="invalid"||k;return{...C,value:c,setValue:f,anchorDate:m,setAnchorDate:h,highlightedRange:w,validationState:M?"invalid":null,isValueInvalid:M,selectFocusedDate(){C.isCellUnavailable(C.focusedDate)||S(C.focusedDate)},commitSelection(){S(C.focusedDate)},selectDate:S,highlightDate(I){m&&C.setFocusedDate(I)},isSelected(I){return!!(w&&I.compare(w.start)>=0&&I.compare(w.end)<=0&&!C.isCellDisabled(I)&&!C.isCellUnavailable(I))},isInvalid(I){return C.isInvalid(I)||tn(I,$?.start,$?.end)},isDragging:B,setDragging:E,clearSelection(){h(null),f(null)},focusNearestAvailableDate(I){let j=y(I),D=Y=>this.isInvalid(Y)||tn(Y,j?.start,j?.end),T=I.add({days:1});D(T)&&(T=I.subtract({days:1})),D(T)||(this.setFocusedDate(T),this.setFocused(!0))}}}function go(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Ve(e),end:Ve(t)})}function n0(e,t){return e=ye(e,t?.calendar||new Re),t&&"hour"in t?t.set(e):e}function r0(e,t,n,r){let i=e.add({days:r}),a=e.subtract(n),l=e.add(n);for(;(r<0?i.compare(a)>=0:i.compare(l)<=0)&&!t(i);)i=i.add({days:r});if(t(i))return i.add({days:-r})}const i0={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Dn(e={}){let{style:t,isFocusable:n}=e,[r,i]=u.useState(!1),{focusWithinProps:a}=jn({isDisabled:!n,onFocusWithinChange:o=>i(o)}),l=u.useMemo(()=>r?t:t?{...i0,...t}:i0,[r]);return{visuallyHiddenProps:{...a,style:l}}}function Mr(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:l}=Dn(e);return u.createElement(n,X(a,l),t)}const yo=u.createContext(null),$o=u.createContext(null),Yn=u.createContext(null),qn=u.createContext(null),ex=u.forwardRef(function(t,n){[t,n]=pe(t,n,yo);let{locale:r}=be(),i=t0({...t,locale:r,createCalendar:t.createCalendar||oa}),{calendarProps:a,prevButtonProps:l,nextButtonProps:o,errorMessageProps:s,title:d}=j6(t,i),c=ue({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:"react-aria-Calendar"}),f=ie(t,{global:!0});return u.createElement(re.div,{...X(f,c,a),ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0},u.createElement(Pe,{values:[[vt,{slots:{previous:l,next:o}}],[Ui,{"aria-hidden":!0,level:2,children:d}],[Yn,i],[yo,t],[tt,{slots:{errorMessage:s}}]]},u.createElement(Mr,null,u.createElement("h2",null,a["aria-label"])),c.children,u.createElement(Mr,null,u.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>i.focusNextPage(),tabIndex:-1}))))}),tx=u.forwardRef(function(t,n){[t,n]=pe(t,n,$o);let{locale:r}=be(),i=Q6({...t,locale:r,createCalendar:t.createCalendar||oa}),{calendarProps:a,prevButtonProps:l,nextButtonProps:o,errorMessageProps:s,title:d}=X6(t,i,n),c=ue({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),f=ie(t,{global:!0});return u.createElement(re.div,{...X(c,f,a),ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0},u.createElement(Pe,{values:[[vt,{slots:{previous:l,next:o}}],[Ui,{"aria-hidden":!0,level:2,children:d}],[qn,i],[$o,t],[tt,{slots:{errorMessage:s}}]]},u.createElement(Mr,null,u.createElement("h2",null,a["aria-label"])),c.children,u.createElement(Mr,null,u.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>i.focusNextPage(),tabIndex:-1}))))}),sa=u.createContext(null),nx=u.forwardRef(function(t,n){let r=u.useContext(Yn),i=u.useContext(qn),a=qe(yo),l=qe($o),o=r??i,s=o.visibleRange.start;t.offset&&(s=s.add(t.offset));let d=a?.firstDayOfWeek??l?.firstDayOfWeek,{gridProps:c,headerProps:f,weekDays:m,weeksInMonth:h}=H6({startDate:s,endDate:Yi(s),weekdayStyle:t.weekdayStyle,firstDayOfWeek:d},o),p=ie(t,{global:!0});return u.createElement(sa.Provider,{value:{headerProps:f,weekDays:m,startDate:s,weeksInMonth:h}},u.createElement(re.table,{render:t.render,...X(p,c),ref:n,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children!="function"?t.children:u.createElement(u.Fragment,null,u.createElement(a0,null,g=>u.createElement(l0,null,g)),u.createElement(o0,null,t.children))))});function rx(e,t){let{children:n,style:r,className:i}=e,{headerProps:a,weekDays:l}=u.useContext(sa),o=ie(e,{global:!0});return u.createElement(re.thead,{render:e.render,...X(o,a),ref:t,style:r,className:i??"react-aria-CalendarGridHeader"},u.createElement("tr",null,l.map((s,d)=>u.cloneElement(n(s),{key:d}))))}const a0=u.forwardRef(rx);function ix(e,t){let{children:n,style:r,className:i}=e,a=ie(e,{global:!0});return u.createElement(re.th,{render:e.render,...a,ref:t,style:r,className:i||"react-aria-CalendarHeaderCell"},n)}const l0=u.forwardRef(ix);function ax(e,t){let{children:n,style:r,className:i}=e,a=u.useContext(Yn),l=u.useContext(qn),o=a??l,{startDate:s,weeksInMonth:d}=u.useContext(sa),c=ie(e,{global:!0});return u.createElement(re.tbody,{render:e.render,...c,ref:t,style:r,className:i??"react-aria-CalendarGridBody"},[...new Array(d).keys()].map(f=>u.createElement("tr",{key:f},o.getDatesInWeek(f,s).map((m,h)=>m?u.cloneElement(n(m),{key:h}):u.createElement("td",{key:h})))))}const o0=u.forwardRef(ax),lx=u.forwardRef(function({date:t,...n},r){let i=u.useContext(Yn),a=u.useContext(qn),l=i??a,{startDate:o}=u.useContext(sa)??{startDate:l.visibleRange.start},s=l.visibleDuration.days||l.visibleDuration.weeks?!1:!jv(o,t),d=sf(t,l.timeZone),c=u.useRef(null),{cellProps:f,buttonProps:m,...h}=G6({date:t,isOutsideMonth:s},l,c),{hoverProps:p,isHovered:g}=ze({...n,isDisabled:h.isDisabled||h.isUnavailable}),{focusProps:y,isFocusVisible:$}=Oe();$&&=h.isFocused;let x=!1,v=!1;"highlightedRange"in l&&l.highlightedRange&&(x=Ce(t,l.highlightedRange.start),v=Ce(t,l.highlightedRange.end));let C=ue({...n,defaultChildren:h.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:g,isOutsideMonth:s,isFocusVisible:$,isSelectionStart:x,isSelectionEnd:v,isToday:d,...h}}),w={"data-focused":h.isFocused||void 0,"data-hovered":g||void 0,"data-pressed":h.isPressed||void 0,"data-unavailable":h.isUnavailable||void 0,"data-disabled":h.isDisabled||void 0,"data-focus-visible":$||void 0,"data-outside-visible-range":h.isOutsideVisibleRange||void 0,"data-outside-month":s||void 0,"data-selected":h.isSelected||void 0,"data-selection-start":x||void 0,"data-selection-end":v||void 0,"data-invalid":h.isInvalid||void 0,"data-today":d||void 0},S=ie(n,{global:!0});return u.createElement("td",{...f,ref:r},u.createElement(re.div,{...X(S,m,y,p,w,C),ref:c}))}),ox=u.forwardRef(function(t,n){let{offset:r,format:i,className:a="react-aria-CalendarHeading",...l}=t,o=u.useContext(Yn),s=u.useContext(qn),c=q6({offset:r,format:i},o||s);return u.createElement(wc,{...l,className:a,ref:n},c)}),da=u.createContext(null),u0={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},s0={...u0,customError:!0,valid:!1},Kr={isInvalid:!1,validationDetails:u0,validationErrors:[]},ux=u.createContext({}),vo="__reactAriaFormValidationState";function ca(e){if(e[vo]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[vo];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return sx(e)}function sx(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:l,validationBehavior:o="aria"}=e;n&&(t||=n==="invalid");let s=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:s0}:null,d=u.useMemo(()=>{if(!l||i==null)return null;let M=dx(l,i);return d0(M)},[l,i]);a?.validationDetails.valid&&(a=void 0);let c=u.useContext(ux),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(M=>xo(c[M])):xo(c[r]):[],[c,r]),[m,h]=u.useState(c),[p,g]=u.useState(!1);c!==m&&(h(c),g(!1));let y=u.useMemo(()=>d0(p?[]:f),[p,f]),$=u.useRef(Kr),[x,v]=u.useState(Kr),C=u.useRef(Kr),w=()=>{if(!S)return;B(!1);let M=d||a||$.current;Co(M,C.current)||(C.current=M,v(M))},[S,B]=u.useState(!1);return u.useEffect(w),{realtimeValidation:s||y||d||a||Kr,displayValidation:o==="native"?s||y||x:s||y||d||a||x,updateValidation(M){o==="aria"&&!Co(x,M)?v(M):$.current=M},resetValidation(){let M=Kr;Co(M,C.current)||(C.current=M,v(M)),o==="native"&&B(!1),g(!0)},commitValidation(){o==="native"&&B(!0),g(!0)}}}function xo(e){return e?Array.isArray(e)?e:[e]:[]}function dx(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return xo(n)}return[]}function d0(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:s0}:null}function Co(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}const fa=u.createContext(null);function Do(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:l}=Il(e),o=mt([!!t,!!n,r,i]),s=mt([!!t,!!n,r,i]);return l=X(l,{"aria-describedby":[o,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:l,descriptionProps:{id:o},errorMessageProps:{id:s}}}function ma(e,t,n){let r=De(i=>{n&&!i.defaultPrevented&&n(t)});u.useEffect(()=>{let i=e?.current?.form;return i?.addEventListener("reset",r),()=>{i?.removeEventListener("reset",r)}},[e])}function Eo(e,t,n){let{validationBehavior:r,focus:i}=e;fe(()=>{if(r==="native"&&n?.current&&"setCustomValidity"in n.current&&!n.current.disabled){let d=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(fx(n.current))}});let a=u.useRef(!1),l=De(()=>{a.current||t.resetValidation()}),o=De(d=>{t.displayValidation.isInvalid||t.commitValidation();let c=n?.current?.form;!d.defaultPrevented&&n&&c&&mx(c)===n.current&&(i?i():n.current?.focus(),Ln("keyboard")),d.preventDefault()}),s=De(()=>{t.commitValidation()});u.useEffect(()=>{let d=n?.current;if(!d)return;let c=d.form,f=c?.reset;return c&&(c.reset=()=>{a.current=!window.event||window.event.type==="message"&&G(window.event)instanceof MessagePort,f?.call(c),a.current=!1}),d.addEventListener("invalid",o),d.addEventListener("change",s),c?.addEventListener("reset",l),()=>{d.removeEventListener("invalid",o),d.removeEventListener("change",s),c?.removeEventListener("reset",l),c&&(c.reset=f)}},[n,r])}function cx(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function fx(e){return{isInvalid:!e.validity.valid,validationDetails:cx(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function mx(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}const c0=u.createContext(null),f0=u.createContext(null);function hx(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=u.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:l}=Rn(),o=u.useCallback((m,h,p,g)=>{p===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t?.({type:"movestart",pointerType:h,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey})),n?.({type:"move",pointerType:h,deltaX:p,deltaY:g,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey}))},[t,n,i]),s=De(o),d=u.useCallback((m,h)=>{zi(),i.current.didMove&&r?.({type:"moveend",pointerType:h,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey})},[r,i]),c=De(d);return{moveProps:u.useMemo(()=>{let m={},h=()=>{Pl(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let g=v=>{v.button===0&&(s(v,"mouse",v.pageX-(i.current.lastPosition?.pageX??0),v.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:v.pageX,pageY:v.pageY})},y=v=>{if(v.button===0){c(v,"mouse");let C=xe(G(v));l(C,"mousemove",g,!1),l(C,"mouseup",y,!1)}};m.onMouseDown=v=>{if(v.button===0){h(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:v.pageX,pageY:v.pageY};let C=xe(G(v));a(C,"mousemove",g,!1),a(C,"mouseup",y,!1)}};let $=v=>{let C=[...v.changedTouches].findIndex(({identifier:w})=>w===i.current.id);if(C>=0){let{pageX:w,pageY:S}=v.changedTouches[C];s(v,"touch",w-(i.current.lastPosition?.pageX??0),S-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:w,pageY:S}}},x=v=>{if([...v.changedTouches].findIndex(({identifier:w})=>w===i.current.id)>=0){c(v,"touch"),i.current.id=null;let w=xe(G(v));l(w,"touchmove",$),l(w,"touchend",x),l(w,"touchcancel",x)}};m.onTouchStart=v=>{if(v.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:w,identifier:S}=v.changedTouches[0];h(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:C,pageY:w},i.current.id=S;let B=xe(G(v));a(B,"touchmove",$,!1),a(B,"touchend",x,!1),a(B,"touchcancel",x,!1)}}else{let g=$=>{if($.pointerId===i.current.id){let x=$.pointerType||"mouse";s($,x,$.pageX-(i.current.lastPosition?.pageX??0),$.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},y=$=>{if($.pointerId===i.current.id){let x=$.pointerType||"mouse";c($,x),i.current.id=null;let v=xe(G($));l(v,"pointermove",g,!1),l(v,"pointerup",y,!1),l(v,"pointercancel",y,!1)}};m.onPointerDown=$=>{if($.button===0&&i.current.id==null){h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId;let x=xe(G($));a(x,"pointermove",g,!1),a(x,"pointerup",y,!1),a(x,"pointercancel",y,!1)}}}let p=(g,y,$)=>{h(),s(g,"keyboard",y,$),c(g,"keyboard")};return m.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),p(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),p(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),p(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),p(g,0,1);break}},m},[a,l,i])}}const Xn=u.createContext({}),Lr=u.forwardRef(function(t,n){[t,n]=pe(t,n,Xn);let{isDisabled:r,isInvalid:i,isReadOnly:a,onHoverStart:l,onHoverChange:o,onHoverEnd:s,...d}=t;r??=!!t["aria-disabled"]&&t["aria-disabled"]!=="false",i??=!!t["aria-invalid"]&&t["aria-invalid"]!=="false";let{hoverProps:c,isHovered:f}=ze({onHoverStart:l,onHoverChange:o,onHoverEnd:s,isDisabled:r}),{isFocused:m,isFocusVisible:h,focusProps:p}=Oe({within:!0}),g=ue({...t,values:{isHovered:f,isFocusWithin:m,isFocusVisible:h,isDisabled:r,isInvalid:i},defaultClassName:"react-aria-Group"});return u.createElement(re.div,{...X(d,p,c),...g,ref:n,role:t.role??"group",slot:t.slot??void 0,"data-focus-within":m||void 0,"data-hovered":f||void 0,"data-focus-visible":h||void 0,"data-disabled":r||void 0,"data-invalid":i||void 0,"data-readonly":a||void 0},g.children)}),Jn=u.createContext({});let px=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i};const ha=Vn(function(t,n){[t,n]=pe(t,n,Jn);let{hoverProps:r,isHovered:i}=ze({...t,isDisabled:t.disabled}),{isFocused:a,isFocusVisible:l,focusProps:o}=Oe({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=ue({...t,values:{isHovered:i,isFocused:a,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement(re.input,{...X(px(t),o,r),...d,ref:n,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":s||void 0})});function m0(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:l="text",validationBehavior:o="aria"}=e,[s,d]=He(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=zn(e,t),f=ca({...e,value:s}),{isInvalid:m,validationErrors:h,validationDetails:p}=f.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:x}=Do({...e,isInvalid:m,errorMessage:e.errorMessage||h}),v=ie(e,{labelable:!0});const C={type:l,pattern:e.pattern};let[w]=u.useState(s);return ma(t,e.defaultValue??w,d),Eo(e,f,t),{labelProps:g,inputProps:X(v,n==="input"?C:void 0,{disabled:r,readOnly:a,required:i&&o==="native","aria-required":i&&o==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:s,onChange:S=>d(G(S).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...y}),descriptionProps:$,errorMessageProps:x,isInvalid:m,validationErrors:h,validationDetails:p}}var h0={};h0={Empty:"فارغ"};var p0={};p0={Empty:"Изпразни"};var b0={};b0={Empty:"Prázdné"};var g0={};g0={Empty:"Tom"};var y0={};y0={Empty:"Leer"};var $0={};$0={Empty:"Άδειο"};var v0={};v0={Empty:"Empty"};var x0={};x0={Empty:"Vacío"};var C0={};C0={Empty:"Tühjenda"};var D0={};D0={Empty:"Tyhjä"};var E0={};E0={Empty:"Vide"};var w0={};w0={Empty:"ריק"};var S0={};S0={Empty:"Prazno"};var P0={};P0={Empty:"Üres"};var k0={};k0={Empty:"Vuoto"};var B0={};B0={Empty:"空"};var N0={};N0={Empty:"비어 있음"};var A0={};A0={Empty:"Tuščias"};var F0={};F0={Empty:"Tukšs"};var T0={};T0={Empty:"Tom"};var I0={};I0={Empty:"Leeg"};var M0={};M0={Empty:"Pusty"};var K0={};K0={Empty:"Vazio"};var L0={};L0={Empty:"Vazio"};var O0={};O0={Empty:"Gol"};var z0={};z0={Empty:"Не заполнено"};var V0={};V0={Empty:"Prázdne"};var _0={};_0={Empty:"Prazen"};var R0={};R0={Empty:"Prazno"};var j0={};j0={Empty:"Tomt"};var H0={};H0={Empty:"Boş"};var U0={};U0={Empty:"Пусто"};var W0={};W0={Empty:"空"};var G0={};G0={Empty:"空白"};var Z0={};Z0={"ar-AE":h0,"bg-BG":p0,"cs-CZ":b0,"da-DK":g0,"de-DE":y0,"el-GR":$0,"en-US":v0,"es-ES":x0,"et-EE":C0,"fi-FI":D0,"fr-FR":E0,"he-IL":w0,"hr-HR":S0,"hu-HU":P0,"it-IT":k0,"ja-JP":B0,"ko-KR":N0,"lt-LT":A0,"lv-LV":F0,"nb-NO":T0,"nl-NL":I0,"pl-PL":M0,"pt-BR":K0,"pt-PT":L0,"ro-RO":O0,"ru-RU":z0,"sk-SK":V0,"sl-SI":_0,"sr-SP":R0,"sv-SE":j0,"tr-TR":H0,"uk-UA":U0,"zh-CN":W0,"zh-TW":G0};function bx(e){return e&&e.__esModule?e.default:e}const Y0=()=>{};function gx(e){const t=u.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:l,isReadOnly:o,isRequired:s,onIncrement:d,onIncrementPage:c,onDecrement:f,onDecrementPage:m,onDecrementToMin:h,onIncrementToMax:p}=e;const g=ke(bx(Z0),"@react-aria/spinbutton");let y=u.useRef(!1);const $=u.useCallback(()=>{clearTimeout(t.current),y.current=!1},[]),x=De(()=>{$()});u.useEffect(()=>()=>x(),[]);let{keyboardProps:v}=Le({isDisabled:l||o,shortcuts:{PageUp:()=>{if(c){c();return}if(d){d();return}return!1},ArrowUp:()=>{if(d){d();return}return!1},PageDown:()=>{if(m){m();return}if(f){f();return}return!1},ArrowDown:()=>{if(f){f();return}return!1},Home:()=>{if(h){h();return}return!1},End:()=>{if(p){p();return}return!1}},allowRepeats:!0}),C=u.useRef(!1),w=()=>{C.current=!0},S=()=>{C.current=!1},B=r===""?g.format("Empty"):(r||`${n}`).replace("-","−");u.useEffect(()=>{C.current&&(Kv("assertive"),$t(B,"assertive"))},[B]);let E=u.useCallback(()=>{$()},[$]);const k=De(d??Y0),M=De(f??Y0),F=De(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&(k(),I(60))}),I=De(O=>{x(),y.current=!0,t.current=window.setTimeout(F,O)}),j=De(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&(M(),D(60))}),D=De(O=>{x(),y.current=!0,t.current=window.setTimeout(j,O)});let T=O=>{O.preventDefault()},{addGlobalListener:Y,removeAllGlobalListeners:K}=Rn(),q=u.useRef(!1),[P,N]=u.useState(null);u.useEffect(()=>{P==="touch"?I(600):P?I(400):P||x()},[P]);let[R,Q]=u.useState(null);return u.useEffect(()=>{R==="touch"?D(600):R?D(400):R||x()},[R]),{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":B,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":l||void 0,"aria-readonly":o||void 0,"aria-required":s||void 0,...v,onFocus:w,onBlur:S},incrementButtonProps:{onPressStart:O=>{$(),O.pointerType!=="touch"?(d?.(),N("mouse")):(Y(window,"pointercancel",E,{capture:!0}),q.current=!1,N("touch")),Y(window,"contextmenu",T)},onPressUp:O=>{$(),O.pointerType==="touch"&&(q.current=!0),K(),N(null)},onPressEnd:O=>{$(),O.pointerType==="touch"&&!y.current&&q.current&&d?.(),q.current=!1,N(null)},onFocus:w,onBlur:S},decrementButtonProps:{onPressStart:O=>{$(),O.pointerType!=="touch"?(f?.(),Q("mouse")):(Y(window,"pointercancel",E,{capture:!0}),q.current=!1,Q("touch"))},onPressUp:O=>{$(),O.pointerType==="touch"&&(q.current=!0),K(),Q(null)},onPressEnd:O=>{$(),O.pointerType==="touch"&&!y.current&&q.current&&f?.(),q.current=!1,Q(null)},onFocus:w,onBlur:S}}}var q0={};q0={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var X0={};X0={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var J0={};J0={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var Q0={};Q0={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var em={};em={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var tm={};tm={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var nm={};nm={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var rm={};rm={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var im={};im={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var am={};am={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var lm={};lm={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var om={};om={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var um={};um={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var sm={};sm={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var dm={};dm={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var cm={};cm={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var fm={};fm={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var mm={};mm={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var hm={};hm={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var pm={};pm={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var bm={};bm={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var gm={};gm={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var ym={};ym={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var $m={};$m={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var vm={};vm={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var xm={};xm={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var Cm={};Cm={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var Dm={};Dm={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var Em={};Em={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var wm={};wm={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var Sm={};Sm={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var Pm={};Pm={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var km={};km={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Bm={};Bm={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var wo={};wo={"ar-AE":q0,"bg-BG":X0,"cs-CZ":J0,"da-DK":Q0,"de-DE":em,"el-GR":tm,"en-US":nm,"es-ES":rm,"et-EE":im,"fi-FI":am,"fr-FR":lm,"he-IL":om,"hr-HR":um,"hu-HU":sm,"it-IT":dm,"ja-JP":cm,"ko-KR":fm,"lt-LT":mm,"lv-LV":hm,"nb-NO":pm,"nl-NL":bm,"pl-PL":gm,"pt-BR":ym,"pt-PT":$m,"ro-RO":vm,"ru-RU":xm,"sk-SK":Cm,"sl-SI":Dm,"sr-SP":Em,"sv-SE":wm,"tr-TR":Sm,"uk-UA":Pm,"zh-CN":km,"zh-TW":Bm};const ut=u.createContext({}),So=u.createContext(null),yx=u.forwardRef(function(t,n){let{render:r}=u.useContext(So);return u.createElement(u.Fragment,null,r(t,n))});function pa(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),i=u.useCallback(a=>{if(r||t?.isDropTarget(a))return n?n(a):u.createElement(yx,{target:a})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function Nm(e,t,n){let r=e.focusedKey,i=null;if(t?.isVirtualDragging?.()&&n?.target?.type==="item"&&(i=n.target.key,n.target.dropPosition==="after")){let a=n.collection.getKeyAfter(i),l=null;if(a!=null){let o=n.collection.getItem(i)?.level??0;for(;a!=null;){let s=n.collection.getItem(a);if(!s)break;if(s.type!=="item"){a=n.collection.getKeyAfter(a);continue}if((s.level??0)<=o)break;l=a,a=n.collection.getKeyAfter(a)}}i=a??l??i}return u.useMemo(()=>new Set([r,i].filter(a=>a!=null)),[r,i])}const Po=u.createContext({}),$x=yt(gl,function(t,n){return[t,n]=pe(t,n,Po),u.createElement(re.header,{className:"react-aria-Header",...t,ref:n},t.children)}),Am=u.createContext(null);function ba(e){let t=u.useRef({});return u.createElement(Am.Provider,{value:t},e.children)}const vx=u.forwardRef(function(t,n){let{name:r,isVisible:i=!0,children:a,className:l,style:o,render:s,...d}=t,[c,f]=u.useState(i?"visible":"hidden"),m=u.useContext(Am);if(!m)throw new Error("<SharedElement> must be rendered inside a <SharedElementTransition>");i&&c==="hidden"&&f("visible"),n=Te(n),fe(()=>{let p=n.current,g=m.current,y=g[r],$=null;if(p&&i&&y){f("visible");let x=p.getAnimations(),v=y.style.map(([C,w])=>{let S=p.style[C];if(C==="translate"){let B=y.rect,E=p.getBoundingClientRect(),k=B.left-E?.left,M=B.top-E?.top;p.style.translate=`${k}px ${M}px`}else p.style[C]=w;return[C,S]});for(let C of p.getAnimations())x.includes(C)||C.cancel();$=requestAnimationFrame(()=>{$=null;for(let[C,w]of v)p.style[C]=w}),delete g[r]}else p&&i&&!y?(queueMicrotask(()=>Rt.flushSync(()=>f("entering"))),$=requestAnimationFrame(()=>{$=null,f("visible")})):p&&!i&&queueMicrotask(()=>{g[r]?(delete g[r],Rt.flushSync(()=>f("exiting")),Promise.all(p.getAnimations().map(x=>x.finished)).then(()=>f("hidden")).catch(()=>{})):f("hidden")});return()=>{if($!=null&&cancelAnimationFrame($),p&&p.isConnected&&!p.hasAttribute("data-exiting")){let x=window.getComputedStyle(p);if(x.transitionProperty!=="none"){let v=x.transitionProperty.split(/\s*,\s*/);g[r]={rect:p.getBoundingClientRect(),style:v.map(C=>[C,x[C]])}}}}},[n,m,r,i]);let h=ue({children:a,className:l,style:o,render:s,values:{isEntering:c==="entering",isExiting:c==="exiting"}});return c==="hidden"?null:u.createElement(re.div,{...d,...h,ref:n,"data-entering":c==="entering"||void 0,"data-exiting":c==="exiting"||void 0})}),Or=u.createContext({isSelected:!1}),xx=u.forwardRef(function(t,n){[t,n]=pe(t,n,Or);let{isSelected:r,...i}=t;return u.createElement(vx,{...i,ref:n,className:t.className||"react-aria-SelectionIndicator",name:"SelectionIndicator",isVisible:r})});function Cx(e){let t=ie(e,{labelable:!0}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}const ko=u.createContext({}),vs=class vs extends et{filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let i=this.clone();return n.addDescendants(i,t),i}return null}};vs.type="separator";let Bo=vs;const Fm=yt(Bo,function(t,n){[t,n]=pe(t,n,ko);let{elementType:r,orientation:i,style:a,className:l,slot:o,...s}=t,d=r||"hr";d==="hr"&&i==="vertical"&&(d="div");let c=re[d],{separatorProps:f}=Cx({...s,elementType:r,orientation:i}),m=ie(t,{global:!0});return u.createElement(c,{render:t.render,...X(m,f),style:a,className:l??"react-aria-Separator",ref:n,slot:o||void 0})}),ga=new WeakMap;function Dx(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Tm(e,t){let n=ga.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Dx(t)}`}class Ex{constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const o=l.shadowRoot;if(o){const s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(s),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(l);if(this.filter?.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const a=n.shadowRoot;if(a){const l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}get currentNode(){return this._currentNode}set currentNode(t){if(!ae(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,o=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),r=i=l.host}else r=r.parentNode;const a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return ae(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let r;if(typeof this.filter=="function"?r=this.filter(t):this.filter?.acceptNode&&(r=this.filter.acceptNode(t)),r===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(n):this.filter?.acceptNode&&(i=this.filter.acceptNode(n)),i===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let a=this.lastChild();return a&&(this.currentNode=a),a}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function Im(e,t,n,r){return ht()?new Ex(e,t,n,r):e.createTreeWalker(t,n,r)}const Mm=u.createContext(null),No="react-aria-focus-scope-restore";let $e=null;function ya(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=u.useRef(null),l=u.useRef(null),o=u.useRef([]),{parentNode:s}=u.useContext(Mm)||{},d=u.useMemo(()=>new Io({scopeRef:o}),[o]);fe(()=>{let m=s||Be.root;if(Be.getTreeNode(m.scopeRef)&&$e&&!$a($e,m.scopeRef)){let h=Be.getTreeNode($e);h&&(m=h)}m.addChild(d),Be.addNode(d)},[d,s]),fe(()=>{let m=Be.getTreeNode(o);m&&(m.contain=!!n)},[n]),fe(()=>{let m=a.current?.nextSibling,h=[],p=g=>g.stopPropagation();for(;m&&m!==l.current;)h.push(m),m.addEventListener(No,p),m=m.nextSibling;return o.current=h,()=>{for(let g of h)g.removeEventListener(No,p)}},[t]),Ax(o,r,n),kx(o,n),Fx(o,r,n),Nx(o,i),u.useEffect(()=>{const m=ce(se(o.current?o.current[0]:void 0));let h=null;if(rt(m,o.current)){for(let p of Be.traverse())p.scopeRef&&rt(m,p.scopeRef.current)&&(h=p);h===Be.getTreeNode(o)&&($e=h.scopeRef)}},[o]),fe(()=>()=>{let m=Be.getTreeNode(o)?.parent?.scopeRef??null;(o===$e||$a(o,$e))&&(!m||Be.getTreeNode(m))&&($e=m),Be.removeTreeNode(o)},[o]);let c=u.useMemo(()=>wx(o),[]),f=u.useMemo(()=>({focusManager:c,parentNode:d}),[d,c]);return u.createElement(Mm.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function wx(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:l}=t,o=r||ce(se(n[0]??void 0)),s=n[0].previousElementSibling,d=En(n),c=Ae(d,{tabbable:i,accept:l},n);c.currentNode=rt(o,n)?o:s;let f=c.nextNode();return!f&&a&&(c.currentNode=s,f=c.nextNode()),f&&je(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:l}=t,o=r||ce(se(n[0]??void 0)),s=n[n.length-1].nextElementSibling,d=En(n),c=Ae(d,{tabbable:i,accept:l},n);c.currentNode=rt(o,n)?o:s;let f=c.previousNode();return!f&&a&&(c.currentNode=s,f=c.previousNode()),f&&je(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=En(n),l=Ae(a,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let o=l.nextNode();return o&&je(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=En(n),l=Ae(a,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let o=l.previousNode();return o&&je(o,!0),o}}}function En(e){return e[0].parentElement}function zr(e){let t=Be.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Sx(e){if(!e.form)return Array.from(se(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(r=>!r.form);const t=e.form.elements.namedItem(e.name);let n=xe(e);return t instanceof n.RadioNodeList?Array.from(t).filter(r=>r instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function Px(e){if(e.checked)return!0;const t=Sx(e);return t.length>0&&!t.some(n=>n.checked)}function kx(e,t){let n=u.useRef(void 0),r=u.useRef(void 0);fe(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=se(i?i[0]:void 0);let l=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!zr(e)||d.isComposing)return;let c=ce(a),f=e.current;if(!f||!rt(c,f))return;let m=En(f),h=Ae(m,{tabbable:!0},f);if(!c)return;h.currentNode=c;let p=d.shiftKey?h.previousNode():h.nextNode();p||(h.currentNode=d.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,p=d.shiftKey?h.previousNode():h.nextNode()),d.preventDefault(),p&&(je(p,!0),p instanceof xe(p).HTMLInputElement&&p.select())},o=d=>{(!$e||$a($e,e))&&rt(G(d),e.current)?($e=e,n.current=G(d)):zr(e)&&!nn(G(d),e)?n.current?je(n.current):$e&&$e.current&&Ao($e.current):zr(e)&&(n.current=G(d))},s=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=Kn(),f=(c==="virtual"||c===null)&&Mn()&&ml(),m=ce(a);if(!f&&m&&zr(e)&&!nn(m,e)){$e=e;let h=G(d);h&&h.isConnected?(n.current=h,je(n.current)):$e.current&&Ao($e.current)}})};return a.addEventListener("keydown",l,!1),a.addEventListener("focusin",o,!1),i?.forEach(d=>d.addEventListener("focusin",o,!1)),i?.forEach(d=>d.addEventListener("focusout",s,!1)),()=>{a.removeEventListener("keydown",l,!1),a.removeEventListener("focusin",o,!1),i?.forEach(d=>d.removeEventListener("focusin",o,!1)),i?.forEach(d=>d.removeEventListener("focusout",s,!1))}},[e,t]),fe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Km(e){return nn(e)}function rt(e,t){return!e||!t?!1:t.some(n=>ae(n,e))}function nn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Be.traverse(Be.getTreeNode(t)))if(n&&rt(e,n.current))return!0;return!1}function Bx(e){return nn(e,$e)}function $a(e,t){let n=Be.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function je(e,t=!1){if(e!=null&&!t)try{Ie(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Lm(e,t=!0){let n=e[0].previousElementSibling,r=En(e),i=Ae(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=En(e),i=Ae(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function Ao(e,t=!0){je(Lm(e,t))}function Nx(e,t){const n=u.useRef(t);u.useEffect(()=>{if(n.current){$e=e;const r=se(e.current?e.current[0]:void 0);!rt(ce(r),$e.current)&&e.current&&Ao(e.current)}n.current=!1},[e])}function Ax(e,t,n){fe(()=>{if(t||n)return;let r=e.current;const i=se(r?r[0]:void 0);let a=l=>{let o=G(l);rt(o,e.current)?$e=e:Km(o)||($e=null)};return i.addEventListener("focusin",a,!1),r?.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r?.forEach(l=>l.removeEventListener("focusin",a,!1))}},[e,t,n])}function Om(e){let t=Be.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function Fx(e,t,n){const r=u.useRef(typeof document<"u"?ce(se(e.current?e.current[0]:void 0)):null);fe(()=>{let i=e.current;const a=se(i?i[0]:void 0);if(!t||n)return;let l=()=>{(!$e||$a($e,e))&&rt(ce(a),e.current)&&($e=e)};return a.addEventListener("focusin",l,!1),i?.forEach(o=>o.addEventListener("focusin",l,!1)),()=>{a.removeEventListener("focusin",l,!1),i?.forEach(o=>o.removeEventListener("focusin",l,!1))}},[e,n]),fe(()=>{const i=se(e.current?e.current[0]:void 0);if(!t)return;let a=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!zr(e)||l.isComposing)return;let o=i.activeElement;if(!nn(o,e)||!Om(e))return;let s=Be.getTreeNode(e);if(!s)return;let d=s.nodeToRestore,c=Ae(i.body,{tabbable:!0});c.currentNode=o;let f=l.shiftKey?c.previousNode():c.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,s.nodeToRestore=void 0),(!f||!nn(f,e))&&d){c.currentNode=d;do f=l.shiftKey?c.previousNode():c.nextNode();while(nn(f,e));l.preventDefault(),l.stopPropagation(),f?je(f,!0):Km(d)?je(d,!0):o.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),fe(()=>{const i=se(e.current?e.current[0]:void 0);if(!t)return;let a=Be.getTreeNode(e);if(a)return a.nodeToRestore=r.current??void 0,()=>{let l=Be.getTreeNode(e);if(!l)return;let o=l.nodeToRestore,s=ce(i);if(t&&o&&(s&&nn(s,e)||s===i.body&&Om(e))){let d=Be.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=d.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){zm(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Be.getTreeNode(c.scopeRef)){let f=Lm(c.scopeRef.current,!0);zm(f);return}c=c.parent}}})}}},[e,t])}function zm(e){e.dispatchEvent(new CustomEvent(No,{bubbles:!0,cancelable:!0}))&&je(e)}function Ae(e,t,n){let r=t?.tabbable?dl:Ls,i=e?.nodeType===Node.ELEMENT_NODE?e:null,a=se(i),l=Im(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(o){return ae(t?.from,o)||t?.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!Px(o)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:r(o)&&(!n||rt(o,n))&&(!t?.accept||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(l.currentNode=t.from),l}function Vm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:l=t.wrap,accept:o=t.accept}=n,s=i||ce(se(r)),d=Ae(r,{tabbable:a,accept:o});ae(r,s)&&(d.currentNode=s);let c=d.nextNode();return!c&&l&&(d.currentNode=r,c=d.nextNode()),c&&je(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:l=t.wrap,accept:o=t.accept}=n,s=i||ce(se(r)),d=Ae(r,{tabbable:a,accept:o});if(ae(r,s))d.currentNode=s;else{let f=Fo(d);return f&&je(f,!0),f??null}let c=d.previousNode();if(!c&&l){d.currentNode=r;let f=Fo(d);if(!f)return null;c=f}return c&&je(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Ae(r,{tabbable:i,accept:a}).nextNode();return o&&je(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,l=Ae(r,{tabbable:i,accept:a}),o=Fo(l);return o&&je(o,!0),o??null}}}function Fo(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class To{constructor(){this.fastMap=new Map,this.root=new Io({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new Io({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&rt(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new To;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return t}}class Io{constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}}let Be=new To;function Mo(e){return Ei()?e.altKey:e.ctrlKey}function wn(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}const _m=new WeakMap;function Tx(e){let t=Ee();return _m.set(e,t),t}function Ix(e){return _m.get(e)}const Rm=1e3;function jm(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=u.useRef({search:"",timeout:void 0}),a=o=>{if(i.current.search.length>0&&o.key===" "){if(o.preventDefault(),(!("continuePropagation"in o)||"continuePropagation"in o&&!o.isPropagationStopped())&&o.stopPropagation(),i.current.search+=" ",t.getKeyForSearch!=null){let s=t.getKeyForSearch(i.current.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(i.current.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},Rm)}},l=o=>{let s=Mx(o.key);if(!(!s||o.ctrlKey||o.metaKey||o.altKey||!ae(o.currentTarget,G(o))||i.current.search.length===0&&s===" ")){if(i.current.search+=s,t.getKeyForSearch!=null){let d=t.getKeyForSearch(i.current.search,n.focusedKey);if(d==null&&(d=t.getKeyForSearch(i.current.search)),d!=null)n.setFocusedKey(d),r&&r(d),o.preventDefault(),"continuePropagation"in o||o.stopPropagation();else{i.current.search="",clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},Rm)}};return u.useEffect(()=>{let o=i.current.timeout;return()=>{clearTimeout(o)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0,onKeyDown:t.getKeyForSearch?l:void 0}}}function Mx(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Hm(e,t){const n=u.useRef(!0),r=u.useRef(null);fe(()=>(n.current=!0,()=>{n.current=!1}),[]),fe(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function va(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:l=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:f,allowsTabNavigation:m=!1,scrollRef:h=r,linkBehavior:p="action",UNSTABLE_focusOnEntry:g}=e,{direction:y}=be(),$=sn();const x=(_,H,me)=>{if(H!=null){if(t.isLink(H)&&p==="selection"&&d&&!Mo(_)){Rt.flushSync(()=>{t.setFocusedKey(H,me)});let he=wn(r,H),kt=t.getItemProps(H);if(he){$.open(he,_,kt.href,kt.routerOptions);return}return!1}if(t.setFocusedKey(H,me),t.isLink(H)&&p==="override")return!1;if(_.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(H);return}else if(d&&!Mo(_)){t.replaceSelection(H);return}}return!1};let v=_=>{if(n.getKeyBelow){let H=t.focusedKey!=null?n.getKeyBelow?.(t.focusedKey):n.getFirstKey?.();if(H==null&&a&&(H=n.getFirstKey?.(t.focusedKey)),H!=null){x(_,H);return}}return!1},C=_=>{if(n.getKeyAbove){let H=t.focusedKey!=null?n.getKeyAbove?.(t.focusedKey):n.getLastKey?.();if(H==null&&a&&(H=n.getLastKey?.(t.focusedKey)),H!=null){x(_,H);return}}return!1},w=_=>{if(n.getFirstKey){if(t.focusedKey===null&&_.shiftKey)return!1;let H=n.getFirstKey(t.focusedKey,br(_));if(t.setFocusedKey(H),H!=null){if(br(_)&&_.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(H);return}else if(d){t.replaceSelection(H);return}}}return!1},S=_=>{if(n.getKeyLeftOf){let H=t.focusedKey!=null?n.getKeyLeftOf?.(t.focusedKey):n.getFirstKey?.();if(H==null&&a&&(H=y==="rtl"?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),H!=null){x(_,H,y==="rtl"?"first":"last");return}}return!1},B=_=>{if(n.getKeyRightOf){let H=t.focusedKey!=null?n.getKeyRightOf?.(t.focusedKey):n.getFirstKey?.();if(H==null&&a&&(H=y==="rtl"?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),H!=null){x(_,H,y==="rtl"?"last":"first");return}}return!1},E=_=>{if(n.getLastKey){if(t.focusedKey===null&&_.shiftKey)return!1;let H=n.getLastKey(t.focusedKey,br(_));if(t.setFocusedKey(H),H!=null){if(br(_)&&_.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(H);return}else if(d){t.replaceSelection(H);return}}}return!1},k=_=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let H=n.getKeyPageBelow(t.focusedKey);if(H!=null)return x(_,H)}return!1},M=_=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let H=n.getKeyPageAbove(t.focusedKey);if(H!=null)return x(_,H)}return!1},F=()=>{if(t.selectionMode==="multiple"&&o!==!0){t.selectAll();return}return!1},I=()=>{if(s==="clearSelection"&&!l&&t.selectedKeys.size!==0){t.clearSelection();return}return!1},j=()=>{if(!m&&r.current){let _=Ae(r.current,{tabbable:!0}),H,me;do me=_.lastChild(),me&&(H=me);while(me);let he=ce();H&&(!Ht(H)||he&&!dl(he))&&Xe(H)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},D=()=>(!m&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),T=(_,H)=>({[Je()?_+"+Shift+Alt":_+"+Shift+Control"]:H,[_+"+Shift"]:H,[Je()?_+"+Alt":_+"+Control"]:H,[_]:H}),{keyboardProps:Y}=Le({shortcuts:{...T("ArrowDown",v),...T("ArrowUp",C),...T("ArrowLeft",S),...T("ArrowRight",B),...T("PageDown",k),...T("PageUp",M)},allowRepeats:!0}),{keyboardProps:K}=Le({shortcuts:{...T("Home",w),...T("End",E),"Mod+A":F,Escape:I,Tab:j,"Tab+Shift":D}}),q=u.useRef({top:0,left:0});lt(h,"scroll",()=>{q.current={top:h.current?.scrollTop??0,left:h.current?.scrollLeft??0}});let P=_=>{if(t.isFocused){ae(_.currentTarget,G(_))||t.setFocused(!1);return}if(!ae(_.currentTarget,G(_)))return;let H=Kn();t.setFocused(!0);let me=he=>{he!=null&&(t.setFocusedKey(he),d&&!t.isSelected(he)&&t.replaceSelection(he))};if(g&&(H==="keyboard"||H==="virtual"))me(g==="first"?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let he=_.relatedTarget;he&&_.currentTarget.compareDocumentPosition(he)&Node.DOCUMENT_POSITION_FOLLOWING?me(t.lastSelectedKey??n.getLastKey?.()):me(t.firstSelectedKey??n.getFirstKey?.())}else h.current&&(h.current.scrollTop=q.current.top,h.current.scrollLeft=q.current.left);if(t.focusedKey!=null&&h.current){let he=wn(r,t.focusedKey);he instanceof HTMLElement&&(!Ht(he)&&!f&&Xe(he),(H==="keyboard"||g&&H==="virtual")&&Ct(he,{containingElement:r.current}))}},N=_=>{ae(_.currentTarget,_.relatedTarget)||t.setFocused(!1)},R=u.useRef(!1);lt(r,Z$,f?_=>{let{detail:H}=_;_.stopPropagation(),t.setFocused(!0),H?.focusStrategy==="first"&&(R.current=!0)}:void 0);let Q=n.getFirstKey?.()??null;Hm(()=>{if(R.current)if(Q==null){let _=ce();Ks(r.current),ol(_,null),t.collection.size>0&&(R.current=!1)}else t.setFocusedKey(Q),R.current=!1},[Q,t.collection.size]),Hm(()=>{t.collection.size>0&&(R.current=!1)},[t.focusedKey]),lt(r,G$,f?_=>{_.stopPropagation(),t.setFocused(!1),_.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);const O=u.useRef(i),z=u.useRef(!1);u.useEffect(()=>{if(O.current){let _=null;i==="first"&&(_=n.getFirstKey?.()??null),i==="last"&&(_=n.getLastKey?.()??null);let H=t.selectedKeys;if(H.size){for(let me of H)if(t.canSelectItem(me)){_=me;break}}t.setFocused(!0),t.setFocusedKey(_),_==null&&!f&&r.current&&Ie(r.current),t.collection.size>0&&(O.current=!1,z.current=!0)}});let A=u.useRef(t.focusedKey),V=u.useRef(null);u.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==A.current||z.current)&&h.current&&r.current){let _=Kn(),H=wn(r,t.focusedKey);if(!(H instanceof HTMLElement))return;(_==="keyboard"||z.current)&&(V.current&&cancelAnimationFrame(V.current),V.current=requestAnimationFrame(()=>{h.current&&(ua(h.current,H),_!=="virtual"&&Ct(H,{containingElement:r.current}))}))}!f&&t.isFocused&&t.focusedKey==null&&A.current!=null&&r.current&&Ie(r.current),A.current=t.focusedKey,z.current=!1}),u.useEffect(()=>()=>{V.current&&cancelAnimationFrame(V.current)},[]),lt(r,"react-aria-focus-scope-restore",_=>{_.preventDefault(),t.setFocused(!0)});let L={...X(K,Y),onFocus:P,onBlur:N,onMouseDown(_){h.current===G(_)&&_.preventDefault()}},{typeSelectProps:J}=jm({keyboardDelegate:n,selectionManager:t});c||(L=X(J,L));let le;f||(le=t.focusedKey==null?0:-1);let Ke=Tx(t.collection);return{collectionProps:X(L,{tabIndex:le,"data-collection":Ke})}}class Ko{constructor(t){this.ref=t}getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?wn(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-i.left-n.clientLeft+n.scrollLeft,y:a.top-i.top-n.clientTop+n.scrollTop,width:a.width,height:a.height}}getContentSize(){let t=this.ref.current;return{width:t?.scrollWidth??0,height:t?.scrollHeight??0}}getVisibleRect(){let t=this.ref.current;return{x:t?.scrollLeft??0,y:t?.scrollTop??0,width:t?.clientWidth??0,height:t?.clientHeight??0}}}class Vr{constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Ko(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Ko(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findNextNonDisabled(t,n,r=!1){let i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a?.type==="item"&&(r||!this.isDisabled(a)))return i;i=n(i)}return null}getNextKey(t,n){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,i=>this.collection.getKeyAfter(i),n?.includeDisabled)}getPreviousKey(t,n){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,i=>this.collection.getKeyBefore(i),n?.includeDisabled)}findKey(t,n,r){let i=t,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let l=a;do{if(i=n(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&r(l,a)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}isReversed(t){let n=this.getNextKey(t),r=wn(this.ref,t);if(n!=null){let a=wn(this.ref,n);return!r||!a?!1:r.getBoundingClientRect().top>a.getBoundingClientRect().top}let i=this.getPreviousKey(t);if(i!=null){let a=wn(this.ref,i);return!r||!a?!1:a.getBoundingClientRect().top>r.getBoundingClientRect().top}return!1}getKeyBelow(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getPreviousKey(t,n):this.getNextKey(t,n):this.getNextKey(t,n)}getKeyAbove(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getNextKey(t,n):this.getPreviousKey(t,n):this.getPreviousKey(t,n)}getNextColumn(t,n,r){return n?this.getPreviousKey(t,r):this.getNextKey(t,r)}getKeyRightOf(t,n){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,i=>this.layoutDelegate[r](i),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl",n):this.findKey(t,i=>this.getNextColumn(i,this.direction==="rtl",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl",n):null}getKeyLeftOf(t,n){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,i=>this.layoutDelegate[r](i),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr",n):this.findKey(t,i=>this.getNextColumn(i,this.direction==="ltr",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr",n):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let i=this.isReversed(t);if(n&&!en(n))return this.getFirstKey();let a=t;if(this.orientation==="horizontal"){let l=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>l&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=this.layoutDelegate.getVisibleRect(),o=i?r.y-l.height:Math.max(0,r.y+r.height-l.height);for(;r&&r.y>o&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??(i?this.getLastKey():this.getFirstKey())}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let i=this.isReversed(t);if(n&&!en(n))return this.getLastKey();let a=t;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,r.x-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??(i?this.getFirstKey():this.getLastKey())}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i);if(!a)return null;let l=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(l,t)===0)return i;i=this.getNextKey(i)}return null}}let Lo=new Map;function Qn(e){let{locale:t}=be(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Lo.has(n))return Lo.get(n);let r=new Intl.Collator(t,e);return Lo.set(n,r),r}function Um(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:l,orientation:o}=e,s=Qn({usage:"search",sensitivity:"base"}),d=t.disabledBehavior,c=u.useMemo(()=>a||new Vr({collection:n,disabledKeys:r,disabledBehavior:d,ref:i,collator:s,layoutDelegate:l,orientation:o}),[a,l,n,r,i,s,d,o]),{collectionProps:f}=va({...e,ref:i,selectionManager:t,keyboardDelegate:c});return{listProps:f}}function Kx(e,t,n){let r=ie(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.orientation||"vertical",l=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&l==="action"&&(l="override");let{listProps:o}=Um({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:l}),{focusWithinProps:s}=jn({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),d=Ee(e.id);ga.set(t,{id:d,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:l,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:f}=Il({...e,id:d,labelElementType:"span"});return{labelProps:c,listBoxProps:X(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":a,...X(f,o)})}}const Lx=500;function Oo(e){let{isDisabled:t,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:a,threshold:l=Lx,accessibilityDescription:o}=e;const s=u.useRef(void 0);let{addGlobalListener:d,removeAllGlobalListeners:c}=Rn(),f=p=>n?p.pointerType===n:p.pointerType==="mouse"||p.pointerType==="touch",{pressProps:m}=Tt({isDisabled:t,onPressStart(p){if(p.continuePropagation(),f(p)){r&&r({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),d(p.target,"click",y=>y.preventDefault(),{once:!0}),se(p.target).activeElement!==p.target&&Xe(p.target),a&&a({...p,type:"longpress"}),s.current=void 0},l),p.pointerType==="touch"&&d(p.target,"contextmenu",y=>y.preventDefault(),{once:!0});let g=xe(p.target);d(g,"pointerup",()=>{setTimeout(()=>{c()},100)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),i&&f(p)&&i({...p,type:"longpressend"})}}),h=xn(a&&!t?o:void 0);return{longPressProps:X(m,h)}}function _r(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:l,focus:o,isDisabled:s,onAction:d,allowsDifferentPressOrigin:c,linkBehavior:f="action"}=e,m=sn();t=Ee(t);let h=A=>{if(A.pointerType==="keyboard"&&Mo(A))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let V=n.getItemProps(r);m.open(i.current,A,V.href,V.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):A&&A.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||A&&(br(A)||A.pointerType==="touch"||A.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};u.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Ks(i.current):o?o():ce()!==i.current&&i.current&&Ie(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let p={};!l&&!s?p={tabIndex:r===n.focusedKey?0:-1,onFocus(A){G(A)===i.current&&n.setFocusedKey(r)}}:s&&(p.onMouseDown=A=>{A.preventDefault()}),u.useEffect(()=>{s&&n.focusedKey===r&&n.setFocusedKey(null)},[n,s,r]);let g=n.isLink(r)&&f==="override",y=d&&e.UNSTABLE_itemBehavior==="action",$=n.isLink(r)&&f!=="selection"&&f!=="none",x=!s&&n.canSelectItem(r)&&!g&&!y,v=(d||$)&&!s,C=v&&(n.selectionBehavior==="replace"?!x:!x||n.isEmpty),w=v&&x&&n.selectionBehavior==="replace",S=C||w,B=u.useRef(null),E=S&&x,k=u.useRef(!1),M=u.useRef(!1),F=n.getItemProps(r),I=A=>{d&&(d(),i.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),$&&i.current&&m.open(i.current,A,F.href,F.routerOptions)},j={ref:i};a?(j.onPressStart=A=>{B.current=A.pointerType,k.current=E,A.pointerType==="keyboard"&&(!S||Gm(A.key))&&h(A)},c?(j.onPressUp=C?void 0:A=>{A.pointerType==="mouse"&&x&&h(A)},j.onPress=C?I:A=>{A.pointerType!=="keyboard"&&A.pointerType!=="mouse"&&x&&h(A)}):j.onPress=A=>{if(C||w&&A.pointerType!=="mouse"){if(A.pointerType==="keyboard"&&!Wm(A.key))return;I(A)}else A.pointerType!=="keyboard"&&x&&h(A)}):(j.onPressStart=A=>{B.current=A.pointerType,k.current=E,M.current=C,x&&(A.pointerType==="mouse"&&!C||A.pointerType==="keyboard"&&(!v||Gm(A.key)))&&h(A)},j.onPress=A=>{(A.pointerType==="touch"||A.pointerType==="pen"||A.pointerType==="virtual"||A.pointerType==="keyboard"&&S&&Wm(A.key)||A.pointerType==="mouse"&&M.current)&&(S?I(A):x&&h(A))});let D=Ix(n.collection);if(p["data-collection"]=D,p["data-key"]=r,j.preventFocusOnPress=l,l&&(j=X(j,{onPressStart(A){A.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(A){A.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),F)for(let A of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])F[A]&&(j[A]=at(j[A],F[A]));let{pressProps:T,isPressed:Y}=Tt(j),K=w?A=>{B.current==="mouse"&&(A.stopPropagation(),A.preventDefault(),I(A))}:void 0,{longPressProps:q}=Oo({isDisabled:!E,onLongPress(A){A.pointerType==="touch"&&(h(A),n.setSelectionBehavior("toggle"))}}),P=A=>{B.current==="touch"&&k.current&&A.preventDefault()},N=f!=="none"&&n.isLink(r)?A=>{Nt.isOpening||A.preventDefault()}:void 0,R=X(p,x||C||l&&!s?T:{},E?q:{},{onDoubleClick:K,onDragStartCapture:P,onClick:N,id:t},l?{onMouseDown:A=>A.preventDefault()}:void 0),Q=A=>{let V=A;for(;V&&V!==i.current;){let L=V.getAttribute("data-collection");if(L!=null)return L!==D;V=V.parentElement}return dl(A)},O=R.onPointerDown;R.onPointerDown=A=>{let V=G(A);if(V&&V!==i.current&&Q(V)){A.stopPropagation();return}O?.(A)};let z=R.onMouseDown;return R.onMouseDown=A=>{let V=G(A);if(V&&V!==i.current&&Q(V)){A.stopPropagation();return}z?.(A)},{itemProps:R,isPressed:Y,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:x,hasAction:S}}function Wm(e){return e==="Enter"}function Gm(e){return e===" "}function Ne(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Lt(e){return Rr(e,0)}function Rr(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function er(e){let t;for(let n of e)t=n;return t}function zo(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Zm(e,t),t],i=[...Zm(e,n),n],a=r.slice(0,i.length).findIndex((l,o)=>l!==i[o]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===t)>=0,-1)}function Zm(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Ym=new WeakMap;function Vo(e){let t=Ym.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(Ne(a,e)):a.type==="item"&&n++};return r(e),Ym.set(e,n),n}function Ox(e,t,n){let{key:r}=e,i=ga.get(t),a=e.isDisabled??t.selectionManager.isDisabled(r),l=e.isSelected??t.selectionManager.isSelected(r),o=e.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,s=e.shouldFocusOnHover??i?.shouldFocusOnHover,d=e.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,c=e.isVirtualized??i?.isVirtualized,f=mt(),m=mt(),h={role:"option","aria-disabled":a||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?l:void 0,"aria-label":e["aria-label"],"aria-labelledby":f,"aria-describedby":m},p=t.collection.getItem(r);if(c){let k=Number(p?.index);h["aria-posinset"]=Number.isNaN(k)?void 0:k+1,h["aria-setsize"]=Vo(t.collection)}let g=i?.onAction?()=>i?.onAction?.(r):void 0,y=Tm(t,r),{itemProps:$,isPressed:x,isFocused:v,hasAction:C,allowsSelection:w}=_r({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:o,allowsDifferentPressOrigin:o&&s,isVirtualized:c,shouldUseVirtualFocus:d,isDisabled:a,onAction:g||p?.props?.onAction?at(p?.props?.onAction,g):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:y}),{hoverProps:S}=ze({isDisabled:a||!s,onHoverStart(){Ut()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}}),B=ie(p?.props);delete B.id;let E=wi(p?.props);return{optionProps:{...h,...X(B,$,S,E),id:y},labelProps:{id:f},descriptionProps:{id:m},isFocused:v,isFocusVisible:v&&t.selectionManager.isFocused&&Ut(),isSelected:l,isDisabled:a,isPressed:x,allowsSelection:w,hasAction:C}}function zx(e){let{heading:t,"aria-label":n}=e,r=Ee();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation",onMouseDown:i=>{i.preventDefault()}}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}function qm(e){const t=u.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}class _o{constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let o of l.childNodes)n(o)};for(let l of t)n(l);let r=null,i=0,a=0;for(let[l,o]of this.keyMap)r?(r.nextKey=l,o.prevKey=r.key):(this.firstKey=l,o.prevKey=void 0),o.type==="item"&&(o.index=i++),(o.type==="section"||o.type==="item")&&a++,r=o,r.nextKey=void 0;this._size=a,this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}}class st extends Set{constructor(t,n,r){super(t),t instanceof st?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Vx(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function jr(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,l=u.useRef(!1),[,o]=u.useState(!1),s=u.useRef(null),d=u.useRef(null),[,c]=u.useState(null),f=u.useMemo(()=>Xm(e.selectedKeys),[e.selectedKeys]),m=u.useMemo(()=>Xm(e.defaultSelectedKeys,new st),[e.defaultSelectedKeys]),[h,p]=He(f,m,e.onSelectionChange),g=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,$]=u.useState(i);i==="replace"&&y==="toggle"&&typeof h=="object"&&h.size===0&&$("replace");let x=u.useRef(i);return u.useEffect(()=>{i!==x.current&&($(i),x.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return l.current},setFocused(v){l.current=v,o(v)},get focusedKey(){return s.current},get childFocusStrategy(){return d.current},setFocusedKey(v,C="first"){s.current=v,d.current=C,c(v)},selectedKeys:h,setSelectedKeys(v){(r||!Vx(v,h))&&p(v)},disabledKeys:g,disabledBehavior:a}}function Xm(e,t){return e?e==="all"?"all":new st(e):t}class tr{constructor(t,n,r){this.collection=t,this.state=n,this.allowsCellSelection=r?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null,this.fullCollection=r?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&zo(this.collection,r,t)<0)&&(t=r)}return t?.key??null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&zo(this.collection,r,t)>0)&&(t=r)}return t?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new st([n],n,n);else{let i=this.state.selectedKeys,a=i.anchorKey??n;r=new st(i,a,n);for(let l of this.getKeyRange(a,i.currentKey??n))r.delete(l);for(let l of this.getKeyRange(n,a))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?zo(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let r=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&r.push(i),i===n)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new st(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new st([n],n,n):new st;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new st;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=this.fullCollection??this.collection,n=[],r=i=>{for(;i!=null;){if(this.canSelectItemIn(i,t)){let a=t.getItem(i);a?.type==="item"&&n.push(i),a?.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r(Lt(Ne(a,t))?.key??null)}i=t.getKeyAfter(i)}};return r(t.getFirstKey()),n}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new st)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){return this.canSelectItemIn(t,this.collection)}canSelectItemIn(t,n){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=n.getItem(t);return!(!r||r?.props?.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){let n=this.collection.getItem(t);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!n?.props?.isDisabled)&&n?.props?.disabledBehavior!=="selection"}isLink(t){return!!this.collection.getItem(t)?.props?.href}getItemProps(t){return this.collection.getItem(t)?.props}withCollection(t){return new tr(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}class _x{build(t,n){return this.context=n,Jm(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(u.isValidElement(n)&&n.type===u.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let a of r)yield*this.getFullNode({value:a,index:i},{renderer:n}),i++}else{let i=[];u.Children.forEach(n,l=>{l&&i.push(l)});let a=0;for(let l of i){let o=this.getFullNode({element:l,index:a},{});for(let s of o)a++,yield s}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){let l=a.key??a.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(u.isValidElement(t.element)&&t.element.type===u.Fragment){let s=[];u.Children.forEach(t.element.props.children,c=>{s.push(c)});let d=t.index??0;for(const c of s)yield*this.getFullNode({element:c,index:d++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=i?i.key:null,yield s;return}a=n.renderer(t.value)}if(u.isValidElement(a)){let s=a.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let m=a.type;throw new Error(`Unknown element <${m}> in collection.`)}let d=s.getCollectionNode(a.props,this.context),c=t.index??0,f=d.next();for(;!f.done&&f.value;){let m=f.value;t.index=c;let h=m.key??null;h==null&&(h=m.element?null:this.getKey(a,t,n,r));let g=[...this.getFullNode({...m,key:h,index:c,wrapper:Rx(t.wrapper,m.wrapper)},this.getChildState(n,m),r?`${r}${a.key}`:a.key,i)];for(let y of g){if(y.value=m.value??t.value??null,y.value&&this.cache.set(y.value,y),t.type&&y.type!==t.type)throw new Error(`Unsupported type <${Ro(y.type)}> in <${Ro(i?.type??"unknown parent type")}>. Only <${Ro(t.type)}> is supported.`);c++,yield y}f=d.next(g)}return}if(t.key==null||t.type==null)return;let l=this,o={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:t.value??null,level:(i?.level??0)+(i?.type==="item"?1:0),index:t.index,rendered:t.rendered,textValue:t.textValue??"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:Jm(function*(){if(!t.hasChildNodes||!t.childNodes)return;let s=0;for(let d of t.childNodes()){d.key!=null&&(d.key=`${o.key}${d.key}`);let c=l.getFullNode({...d,index:s},l.getChildState(n,d),o.key,o);for(let f of c)s++,yield f}})};yield o}constructor(){this.cache=new WeakMap}}function Jm(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Rx(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Ro(e){return e[0].toUpperCase()+e.slice(1)}function jo(e,t,n){let r=u.useMemo(()=>new _x,[]),{children:i,items:a,collection:l}=e;return u.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:a},n);return t(s)},[r,i,a,l,n,t])}function xa(e){let{filter:t,layoutDelegate:n}=e,r=jr(e),i=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=u.useCallback(d=>t?new _o(t(d)):new _o(d),[t]),l=u.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=jo(e,a,l),s=u.useMemo(()=>new tr(o,r,{layoutDelegate:n}),[o,r,n]);return Qm(o,s),{collection:o,disabledKeys:i,selectionManager:s}}function jx(e,t){let n=u.useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return Qm(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function Qm(e,t){const n=u.useRef(null);u.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getKeyAfter(t.focusedKey),i=null;for(;r!=null;){let a=e.getItem(r);if(a&&a.type==="item"&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyAfter(r)}if(i==null)for(r=n.current.getKeyBefore(t.focusedKey);r!=null;){let a=e.getItem(r);if(a&&a.type==="item"&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyBefore(r)}t.setFocusedKey(i)}n.current=e},[e,t])}function e4(e,t){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:a="end"}=e,l=u.useRef(null),o=De(s=>{for(let d of s)d.isIntersecting&&r&&r()});fe(()=>{if(t.current){const s=100*i,d=a==="start"?`${s}% 0px 0px 0px`:`0px ${s}% ${s}% ${s}%`;l.current=new IntersectionObserver(o,{root:ot(t?.current),rootMargin:d}),l.current.observe(t.current)}return()=>{l.current&&l.current.disconnect()}},[n,t,i,a])}const Hr=u.createContext(null),Sn=u.createContext(null),Hx=u.forwardRef(function(t,n){[t,n]=pe(t,n,Hr);let r=u.useContext(Sn);return r?u.createElement(t4,{state:r,props:t,listBoxRef:n}):u.createElement(fn,{content:u.createElement(mn,t)},i=>u.createElement(Ux,{props:t,listBoxRef:n,collection:i}))});function Ux({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=u.useContext(ge),i=xa({...e,layoutDelegate:r});return u.createElement(t4,{state:i,props:e,listBoxRef:t})}function t4({state:e,props:t,listBoxRef:n}){[t,n]=pe(t,n,$r);let{dragAndDropHooks:r,layout:i="stack",orientation:a="vertical",filter:l}=t,o=jx(e,l),{collection:s,selectionManager:d}=o,c=!!r?.useDraggableCollectionState,f=!!r?.useDroppableCollectionState,{direction:m}=be(),{disabledBehavior:h,disabledKeys:p}=d,g=Qn({usage:"search",sensitivity:"base"}),{isVirtualized:y,layoutDelegate:$,dropTargetDelegate:x,CollectionRoot:v}=u.useContext(ge),C=u.useMemo(()=>t.keyboardDelegate||new Vr({collection:s,collator:g,ref:n,disabledKeys:p,disabledBehavior:h,layout:i,orientation:a,direction:m,layoutDelegate:$}),[s,g,n,h,p,a,m,t.keyboardDelegate,i,$]),{listBoxProps:w}=Kx({...t,shouldSelectOnPressUp:c||t.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:y},o,n),S=u.useRef(c),B=u.useRef(f);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(S.current!==c&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),B.current!==f&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[c,f]);let E,k,M,F=!1,I=null,j=u.useRef(null);if(c&&r){E=r.useDraggableCollectionState({collection:s,selectionManager:d,preview:r.renderDragPreview?j:void 0}),r.useDraggableCollection({},E,n);let Q=r.DragPreview;I=r.renderDragPreview?u.createElement(Q,{ref:j},r.renderDragPreview):null}if(f&&r){k=r.useDroppableCollectionState({collection:s,selectionManager:d});let Q=r.dropTargetDelegate||x||new r.ListDropTargetDelegate(s,n,{orientation:a,layout:i,direction:m});M=r.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:Q},k,n),F=k.isDropTarget({type:"root"})}let{focusProps:D,isFocused:T,isFocusVisible:Y}=Oe(),K=o.collection.size===0,q={isDropTarget:F,isEmpty:K,isFocused:T,isFocusVisible:Y,layout:t.layout||"stack",orientation:a,state:o},P=ue({...t,children:void 0,defaultClassName:"react-aria-ListBox",values:q}),N=null;K&&t.renderEmptyState&&(N=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(q)));let R=ie(t,{global:!0});return u.createElement(ya,null,u.createElement(re.div,{...X(R,P,w,D,M?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":F||void 0,"data-empty":K||void 0,"data-focused":T||void 0,"data-focus-visible":Y||void 0,"data-layout":t.layout||"stack","data-orientation":a},u.createElement(Pe,{values:[[Hr,t],[Sn,o],[ut,{dragAndDropHooks:r,dragState:E,dropState:k}],[ko,{elementType:"div"}],[So,{render:Zx}],[vd,{name:"ListBoxSection",render:Wx}]]},u.createElement(ba,null,u.createElement(v,{collection:s,scrollRef:n,persistedKeys:Nm(d,r,k),renderDropIndicator:pa(r,k)}))),N,I))}function Wx(e,t,n,r="react-aria-ListBoxSection"){let i=u.useContext(Sn),{dragAndDropHooks:a,dropState:l}=u.useContext(ut),{CollectionBranch:o}=u.useContext(ge),[s,d]=un(),{headingProps:c,groupProps:f}=zx({heading:d,"aria-label":e["aria-label"]??void 0}),m=ue({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),h=ie(e,{global:!0});return delete h.id,u.createElement(re.section,{...X(h,m,f),ref:t},u.createElement(Po.Provider,{value:{...c,ref:s}},u.createElement(o,{collection:i.collection,parent:n,renderDropIndicator:pa(a,l)})))}const Gx=yt(Fi,function(t,n,r){let i=Te(n),a=u.useContext(Sn),{dragAndDropHooks:l,dragState:o,dropState:s}=u.useContext(ut),d=o&&!(o.isDisabled||o.selectionManager.isDisabled(r.key)),{optionProps:c,labelProps:f,descriptionProps:m,...h}=Ox({key:r.key,"aria-label":t?.["aria-label"]},a,i),{hoverProps:p,isHovered:g}=ze({isDisabled:!h.allowsSelection&&!h.hasAction&&!d,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),{keyboardProps:y}=Le(t),{focusProps:$}=vl(t),x=null;o&&l&&(x=l.useDraggableItem({key:r.key,hasAction:h.hasAction},o));let v=null;s&&l&&(v=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let C=o&&o.isDragging(r.key),w=ue({...t,id:void 0,children:t.children,defaultClassName:"react-aria-ListBoxItem",values:{...h,isHovered:g,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior,allowsDragging:!!o,isDragging:C,isDropTarget:v?.isDropTarget}});u.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[r.textValue]);let S=t.href?re.a:re.div,B=ie(t,{global:!0});return delete B.id,delete B.onClick,t.href&&c.tabIndex==null&&(c.tabIndex=-1),u.createElement(S,{...X(B,w,c,p,y,$,x?.dragProps,v?.dropProps),ref:i,"data-allows-dragging":!!o||void 0,"data-selected":h.isSelected||void 0,"data-disabled":h.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":C||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":a.selectionManager.selectionMode==="none"?void 0:a.selectionManager.selectionMode},u.createElement(Pe,{values:[[tt,{slots:{[Bt]:f,label:f,description:m}}],[Or,{isSelected:h.isSelected}]]},w.children))});function Zx(e,t){t=Te(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(ut),{dropIndicatorProps:i,isHidden:a,isDropTarget:l}=n.useDropIndicator(e,r,t);return a?null:u.createElement(qx,{...e,dropIndicatorProps:i,isDropTarget:l,ref:t})}function Yx(e,t){let{dropIndicatorProps:n,isDropTarget:r,...i}=e,a=ue({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement(u.Fragment,null,u.createElement(re.div,{...n,...a,role:"option",ref:t,"data-drop-target":r||void 0}))}const qx=u.forwardRef(Yx);yt(Ai,function(t,n,r){let i=u.useContext(Sn),{isLoading:a,onLoadMore:l,scrollOffset:o,...s}=t,d=u.useRef(null),c=u.useMemo(()=>({onLoadMore:l,collection:i?.collection,sentinelRef:d,scrollOffset:o}),[l,o,i?.collection]);e4(c,d);let f=ue({...s,id:void 0,children:r.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),m={tabIndex:-1};return u.createElement(u.Fragment,null,u.createElement("div",{style:{position:"relative",width:0,height:0},inert:qm(!0)},u.createElement("div",{"data-testid":"loadMoreSentinel",ref:d,style:{position:"absolute",height:1,width:1}})),a&&f.children&&u.createElement(u.Fragment,null,u.createElement(re.div,{...X(ie(t,{global:!0}),m),...f,role:"option",ref:n},f.children)))});const n4=u.createContext({placement:"bottom"}),Xx=u.forwardRef(function(t,n){[t,n]=pe(t,n,n4);let r=t.placement,i={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(i[r]="100%");let a=ue({...t,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});a.style&&Object.keys(a.style).forEach(o=>a.style[o]===void 0&&delete a.style[o]);let l=ie(t);return u.createElement(re.div,{...l,...a,style:{...i,...a.style},ref:n,"data-placement":r})}),Jx=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function r4(e){return e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer!==void 0}let Ur=new WeakMap,We=[];function Ho(e,t){let n=xe(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&Jx,l=new Set(e),o=new Set,s=y=>a&&y instanceof n.HTMLElement?y.inert:y.getAttribute("aria-hidden")==="true",d=(y,$)=>{a&&y instanceof n.HTMLElement?y.inert=$:$?y.setAttribute("aria-hidden","true"):(y.removeAttribute("aria-hidden"),y instanceof n.HTMLElement&&(y.inert=!1))},c=new Set;if(ht()){let y=i.getRootNode();for(let $ of e){let x=$.getRootNode();for(;ll(x)&&x!==y;)c.add(x),x=x.host.getRootNode()}}let f=y=>{for(let C of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(C);let $=C=>{if(o.has(C)||l.has(C)||C.parentElement&&o.has(C.parentElement)&&C.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let w of l)if(ae(C,w))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},x=Im(se(y),y,NodeFilter.SHOW_ELEMENT,{acceptNode:$}),v=$(y);if(v===NodeFilter.FILTER_ACCEPT&&m(y),v!==NodeFilter.FILTER_REJECT){let C=x.nextNode();for(;C!=null;)m(C),C=x.nextNode()}},m=y=>{let $=Ur.get(y)??0;s(y)&&$===0||($===0&&d(y,!0),o.add(y),Ur.set(y,$+1))};We.length&&We[We.length-1].disconnect(),f(i);let h=new MutationObserver(y=>{for(let $ of y)if($.type==="childList"){if($.target.isConnected&&![...l,...o].some(x=>ae(x,$.target)))for(let x of $.addedNodes)(x instanceof HTMLElement||x instanceof SVGElement)&&r4(x)?l.add(x):x instanceof Element&&f(x);if(ht()){for(let x of c)if(!x.isConnected){h.disconnect();break}}}});h.observe(i,{childList:!0,subtree:!0});let p=new Set;if(ht())for(let y of c){let $=new MutationObserver(x=>{for(let v of x)if(v.type==="childList"){if(v.target.isConnected&&![...l,...o].some(C=>ae(C,v.target)))for(let C of v.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&r4(C)?l.add(C):C instanceof Element&&f(C);if(ht()){for(let C of c)if(!C.isConnected){h.disconnect();break}}}});$.observe(y,{childList:!0,subtree:!0}),p.add($)}let g={visibleNodes:l,hiddenNodes:o,observe(){h.observe(i,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return We.push(g),()=>{if(h.disconnect(),ht())for(let y of p)y.disconnect();for(let y of o){let $=Ur.get(y);$!=null&&($===1?(d(y,!1),Ur.delete(y)):Ur.set(y,$-1))}g===We[We.length-1]?(We.pop(),We.length&&We[We.length-1].observe()):We.splice(We.indexOf(g),1)}}function Qx(e){let t=We[We.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}const it={top:"top",bottom:"top",left:"left",right:"left"},Ca={top:"bottom",bottom:"top",left:"right",right:"left"},e9={top:"left",left:"top"},Uo={top:"height",left:"width"},i4={width:"totalWidth",height:"totalHeight"},Da={};let t9=()=>typeof document<"u"?window.visualViewport:null;function a4(e,t){let n=0,r=0,i=0,a=0,l=0,o=0,s={},d=(t?.scale??1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let c=document.documentElement;i=c.clientWidth,a=c.clientHeight,n=t?.width??i,r=t?.height??a,s.top=c.scrollTop||e.scrollTop,s.left=c.scrollLeft||e.scrollLeft,t&&(l=t.offsetTop,o=t.offsetLeft)}else({width:n,height:r,top:l,left:o}=Wr(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,i=n,a=r;return gt()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d&&(s.top=0,s.left=0,l=t?.pageTop??0,o=t?.pageLeft??0),{width:n,height:r,totalWidth:i,totalHeight:a,scroll:s,top:l,left:o}}function n9(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function l4(e,t,n,r,i,a,l){let o=i.scroll[e]??0,s=r[Uo[e]],d=l[e]+r.scroll[it[e]]+a,c=l[e]+r.scroll[it[e]]+s-a,f=t-o+r.scroll[it[e]]+l[e]-r[it[e]],m=t-o+n+r.scroll[it[e]]+l[e]-r[it[e]];return f<d?d-f:m>c?Math.max(c-m,d-f):0}function r9(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function o4(e){if(Da[e])return Da[e];let[t,n]=e.split(" "),r=it[t]||"right",i=e9[r];it[n]||(n="center");let a=Uo[r],l=Uo[i];return Da[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:l},Da[e]}function Wo(e,t,n,r,i,a,l,o,s,d,c){let{placement:f,crossPlacement:m,axis:h,crossAxis:p,size:g,crossSize:y}=r,$={};$[p]=e[p]??0,m==="center"?$[p]+=((e[y]??0)-(n[y]??0))/2:m!==p&&($[p]+=(e[y]??0)-(n[y]??0)),$[p]+=a;const x=e[p]-n[y]+s+d,v=e[p]+e[y]-s-d;if($[p]=Dr($[p],x,v),f===h){let C=o?c[g]:c[i4[g]];$[Ca[h]]=Math.floor(C-e[h]+i)}else $[h]=Math.floor(e[h]+e[g]+i);return $}function i9(e,t,n,r,i,a,l,o,s,d,c){let f=(e.top!=null?e.top:s[i4.height]-(e.bottom??0)-l)-(s.scroll.top??0),m=d?n.top:0,h={top:Math.max(t.top+m,(c?.offsetTop??t.top)+m),bottom:Math.min(t.top+t.height+m,(c?.offsetTop??0)+(c?.height??0))};return o!=="top"?Math.max(0,h.bottom-f-((i.top??0)+(i.bottom??0)+a)):Math.max(0,f+l-h.top-((i.top??0)+(i.bottom??0)+a))}function u4(e,t,n,r,i,a,l,o){let{placement:s,axis:d,size:c}=a;return s===d?Math.max(0,n[d]-(l.scroll[d]??0)-(e[d]+(o?t[d]:0))-(r[d]??0)-r[Ca[d]]-i):Math.max(0,e[c]+e[d]+(o?t[d]:0)-n[d]-n[c]+(l.scroll[d]??0)-(r[d]??0)-r[Ca[d]]-i)}function a9(e,t,n,r,i,a,l,o,s,d,c,f,m,h,p,g,y,$){let x=o4(e),{size:v,crossAxis:C,crossSize:w,placement:S,crossPlacement:B}=x,E=Wo(t,o,n,x,c,f,d,m,p,g,s),k=c,M=u4(o,d,t,i,a+c,x,s,y);if(l&&n[v]>M){let A=o4(`${Ca[S]} ${B}`),V=Wo(t,o,n,A,c,f,d,m,p,g,s);u4(o,d,t,i,a+c,A,s,y)>M&&(x=A,E=V,k=c)}let F="bottom";x.axis==="top"?x.placement==="top"?F="top":x.placement==="bottom"&&(F="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?F="bottom":x.crossPlacement==="bottom"&&(F="top"));let I=l4(C,E[C],n[w],o,s,a,d);E[C]+=I;let j=i9(E,o,d,m,i,a,n.height,F,s,y,$);h&&h<j&&(j=h),n.height=Math.min(n.height,j),E=Wo(t,o,n,x,k,f,d,m,p,g,s),I=l4(C,E[C],n[w],o,s,a,d),E[C]+=I;let D={},T=t[C]-E[C]-i[it[C]],Y=T+.5*t[w];const K=p/2+g,q=it[C]==="left"?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),P=n[w]-q-p/2-g,N=t[C]+p/2-(E[C]+i[it[C]]),R=t[C]+t[w]-p/2-(E[C]+i[it[C]]),Q=Dr(Y,N,R);D[C]=Dr(Q,K,P),{placement:S,crossPlacement:B}=x,p?T=D[C]:B==="right"?T+=t[w]:B==="center"&&(T+=t[w]/2);let O=S==="left"||S==="top"?n[v]:0,z={x:S==="top"||S==="bottom"?T:O,y:S==="left"||S==="right"?T:O};return{position:E,maxHeight:j,arrowOffsetLeft:D.left,arrowOffsetTop:D.top,placement:S,triggerAnchorPoint:z}}function l9(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:l,boundaryElement:o,offset:s,crossOffset:d,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:m=0,targetRect:h}=e,p=t9(),g=r instanceof HTMLElement?o9(r):document.documentElement,y=g===document.documentElement;const $=window.getComputedStyle(g).position;let x=!!$&&$!=="static",v=y?Wr(n,!1,h):s4(n,g,!1,h);if(!y){let{marginTop:F,marginLeft:I}=window.getComputedStyle(n);v.top+=parseInt(F,10)||0,v.left+=parseInt(I,10)||0}let C=Wr(r,!0),w=r9(r);C.width+=(w.left??0)+(w.right??0),C.height+=(w.top??0)+(w.bottom??0);let S=n9(i),B=a4(o,p),E=a4(g,p),k;if((o.tagName==="BODY"||o.tagName==="HTML")&&!y){let F=Ea(g,!1);k={top:-(F.top-B.top),left:-(F.left-B.left),width:0,height:0}}else(o.tagName==="BODY"||o.tagName==="HTML")&&y?k={top:0,left:0,width:0,height:0}:k=s4(o,g,!1);let M=ae(o,g);return a9(t,v,C,S,w,a,l,B,E,k,s,d,x,c,f,m,M,p)}function Ea(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function Wr(e,t,n){let{top:r,left:i,width:a,height:l}=n||Ea(e,t),{scrollTop:o,scrollLeft:s,clientTop:d,clientLeft:c}=document.documentElement;return{top:r+o-d,left:i+s-c,width:a,height:l}}function s4(e,t,n,r){let i=window.getComputedStyle(e),a;if(i.position==="fixed")a=r||Ea(e,n);else{a=Wr(e,n,r);let l=Wr(t,n),o=window.getComputedStyle(t);l.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=l.top,a.left-=l.left}return a.top-=parseInt(i.marginTop,10)||0,a.left-=parseInt(i.marginLeft,10)||0,a}function o9(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!d4(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!d4(t);)t=t.parentElement;return t||document.documentElement}function d4(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const c4=new WeakMap;function u9(e){let{triggerRef:t,isOpen:n,onClose:r}=e;u.useEffect(()=>{if(!n||r===null)return;let i=a=>{let l=G(a);if(!t.current||l instanceof Node&&!ae(l,t.current)||l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement)return;let o=r||c4.get(t.current);o&&o()};return X$(Q$(t.current),"scroll",i,!0)},[n,r,t])}function s9(){return typeof window.ResizeObserver<"u"}function Gr(e){const{ref:t,box:n,onResize:r}=e;let i=De(r);u.useEffect(()=>{let a=t?.current;if(a)if(s9()){const l=new window.ResizeObserver(o=>{o.length&&i()});return l.observe(a,{box:n}),()=>{a&&l.unobserve(a)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[t,n])}let Pn=typeof document<"u"?window.visualViewport:null;function d9(e){let{direction:t}=be(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:l=i,placement:o="bottom",containerPadding:s=12,shouldFlip:d=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:f=0,crossOffset:m=0,shouldUpdatePosition:h=!0,isOpen:p=!0,onClose:g,maxHeight:y,arrowBoundaryOffset:$=0,getTargetRect:x}=e,[v,C]=u.useState(null),w=[h,o,i.current,r.current,a?.current,l.current,s,d,c,f,m,p,t,y,$,n],S=u.useRef(Pn?.scale);u.useEffect(()=>{p&&(S.current=Pn?.scale)},[p]);let B=u.useCallback(()=>{if(h===!1||!p||!i.current||!r.current||!c||Pn?.scale!==S.current)return;let M=null;if(l.current&&Ht(l.current)){let D=ce()?.getBoundingClientRect(),T=l.current.getBoundingClientRect();M={type:"top",offset:(D?.top??0)-T.top},M.offset>T.height/2&&(M.type="bottom",M.offset=(D?.bottom??0)-T.bottom)}let F=i.current;!y&&i.current&&(F.style.top="0px",F.style.bottom="",F.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let I=l9({placement:f9(o,t),overlayNode:i.current,targetNode:r.current,scrollNode:l.current||i.current,padding:s,shouldFlip:d,boundaryElement:c,offset:f,crossOffset:m,maxHeight:y,arrowSize:n??(a?.current?Ea(a.current,!0).width:0),arrowBoundaryOffset:$,targetRect:x?.(r.current)});if(!I.position)return;F.style.top="",F.style.bottom="",F.style.left="",F.style.right="",Object.keys(I.position).forEach(D=>F.style[D]=I.position[D]+"px"),F.style.maxHeight=I.maxHeight!=null?I.maxHeight+"px":"";let j=ce();if(M&&j&&l.current){let D=j.getBoundingClientRect(),T=l.current.getBoundingClientRect(),Y=D[M.type]-T[M.type];l.current.scrollTop+=Y-M.offset}C(I)},w);fe(B,w),c9(B),Gr({ref:i,onResize:B}),Gr({ref:r,onResize:B});let E=u.useRef(!1);fe(()=>{let M,F=()=>{E.current=!0,clearTimeout(M),M=setTimeout(()=>{E.current=!1},500),B()},I=()=>{E.current&&F()};return Pn?.addEventListener("resize",F),Pn?.addEventListener("scroll",I),()=>{Pn?.removeEventListener("resize",F),Pn?.removeEventListener("scroll",I)}},[B]);let k=u.useCallback(()=>{E.current||g?.()},[g,E]);return u9({triggerRef:r,isOpen:p,onClose:g&&k}),{overlayProps:{style:{position:v?"absolute":"fixed",top:v?void 0:0,left:v?void 0:0,zIndex:1e5,...v?.position,maxHeight:v?.maxHeight??"100vh"}},placement:v?.placement??null,triggerAnchorPoint:v?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:B}}function c9(e){fe(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function f9(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function m9(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=De(s=>{n&&wa(s,t)&&(i&&i(s),a.current.isPointerDown=!0)}),o=De(s=>{n&&n(s)});u.useEffect(()=>{let s=a.current;if(r)return;const d=t.current,c=se(d);if(typeof PointerEvent<"u"){let f=m=>{s.isPointerDown&&wa(m,t)&&o(m),s.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",f,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=h=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&wa(h,t)&&o(h),s.isPointerDown=!1},m=h=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&wa(h,t)&&o(h),s.isPointerDown=!1};return c.addEventListener("mousedown",l,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",l,!0),c.addEventListener("touchend",m,!0),()=>{c.removeEventListener("mousedown",l,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",l,!0),c.removeEventListener("touchend",m,!0)}}},[t,r])}function wa(e,t){if(e.button>0)return!1;let n=G(e);if(n){const r=n.ownerDocument;if(!r||!ae(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const Et=[];function f4(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:o}=e,s=u.useRef(void 0);u.useEffect(()=>{if(i&&!Et.includes(t))return Et.push(t),()=>{let p=Et.indexOf(t);p>=0&&Et.splice(p,1)}},[i,t]);let d=()=>{Et[Et.length-1]===t&&n&&n()},c=p=>{const g=Et[Et.length-1];s.current=g,(!o||o(G(p)))&&g===t&&p.stopPropagation()},f=p=>{(!o||o(G(p)))&&(Et[Et.length-1]===t&&p.stopPropagation(),s.current===t&&d()),s.current=void 0},{keyboardProps:m}=Le({shortcuts:{Escape:()=>{if(!l){d();return}return!1}}});m9({ref:t,onInteractOutside:a&&i?f:void 0,onInteractOutsideStart:c});let{focusWithinProps:h}=jn({isDisabled:!r,onBlurWithin:p=>{!p.relatedTarget||Bx(p.relatedTarget)||(!o||o(p.relatedTarget))&&n?.()}});return{overlayProps:{...m,...h},underlayProps:{}}}const Zr=typeof document<"u"&&window.visualViewport;let Sa=0,Go;function m4(e={}){let{isDisabled:t}=e;fe(()=>{if(!t)return Sa++,Sa===1&&(bt()&&gt()?Go=p9():Go=h9()),()=>{Sa--,Sa===0&&Go()}},[t])}function h9(){let e=window.innerWidth-document.documentElement.clientWidth;return at(e>0&&("scrollbarGutter"in document.documentElement.style?Pa(document.documentElement,"scrollbarGutter","stable"):Pa(document.documentElement,"paddingRight",`${e}px`)),Pa(document.documentElement,"overflow","hidden"))}function p9(){let e=Pa(document.documentElement,"overflow","hidden"),t,n=!1,r=c=>{let f=G(c);t=en(f)?f:ot(f,!0),n=!1;let m=f.ownerDocument.defaultView.getSelection();m&&!m.isCollapsed&&m.containsNode(f,!0)&&(n=!0),c.composedPath().some(h=>h instanceof HTMLInputElement&&h.type==="range")&&(n=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(n=!0)},i=document.createElement("style"),a=wd();a&&(i.nonce=a),i.textContent=`
7
+ `.trim(),D.head.prepend(M)},[m]),u.useEffect(()=>{let D=y.current;return()=>{f||_i(D.target??void 0);for(let M of D.disposables)M();D.disposables=[]}},[f]),{isPressed:s||p,pressProps:q(h,R,{[Nd]:!0})}}function Bl(e){return e.tagName==="A"&&e.hasAttribute("href")}function Nl(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof xe(i).HTMLInputElement&&!Id(i,n)||i instanceof xe(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&Bl(i))&&n!=="Enter")}function gv(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Ad(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Zt(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function hn(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function yv(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function $v(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Fd(e,t){let n=t.getBoundingClientRect(),r=yv(e);return $v(n,r)}function vv(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Bl(e)}function Td(e,t){return Je()&&t==="Enter"?!1:e instanceof HTMLInputElement?t==="Enter"&&(e.type==="checkbox"||e.type==="radio")?!1:!Id(e,t):vv(e)}const xv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Id(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":xv.has(e.type)}function Cv(e,t){let{elementType:n="a",onPress:r,onPressStart:i,onPressEnd:a,onPressChange:l,onClick:o,isDisabled:s,...d}=e,c={};n!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:f}=zn(e,t),{pressProps:m,isPressed:h}=It({onPress:r,onPressStart:i,onPressEnd:a,onPressChange:l,onClick:o,isDisabled:s,ref:t}),p=ie(d,{labelable:!0}),g=q(f,m),y=sn(),$=Pi(e);return{isPressed:h,linkProps:q(p,$,{...g,...c,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:x=>{m.onClick?.(x),Ws(x,y,e.href,e.routerOptions)}})}}function jn(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=u.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:o}=Rn(),s=u.useCallback(f=>{ae(f.currentTarget,W(f))&&a.current.isFocusWithin&&!ae(f.currentTarget,f.relatedTarget)&&(a.current.isFocusWithin=!1,o(),n&&n(f),i&&i(!1))},[n,i,a,o]),d=Rs(s),c=u.useCallback(f=>{if(!ae(f.currentTarget,W(f)))return;let m=W(f);const h=se(m),p=ce(h);if(!a.current.isFocusWithin&&p===m){r&&r(f),i&&i(!0),a.current.isFocusWithin=!0,d(f);let g=f.currentTarget;l(h,"focus",y=>{let $=W(y);if(a.current.isFocusWithin&&!ae(g,$)){let x=new h.defaultView.FocusEvent("blur",{relatedTarget:$});_s(x,g);let v=cl(x);s(v)}},{capture:!0})}},[r,i,d,l,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}function Oe(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=u.useRef({isFocused:!1,isFocusVisible:t||Wt()}),[a,l]=u.useState(!1),[o,s]=u.useState(()=>i.current.isFocused&&i.current.isFocusVisible),d=u.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),c=u.useCallback(h=>{i.current.isFocused=h,i.current.isFocusVisible=Wt(),l(h),d()},[d]);E5(h=>{i.current.isFocusVisible=h,d()},[n,a],{enabled:a,isTextInput:n});let{focusProps:f}=vl({isDisabled:r,onFocusChange:c}),{focusWithinProps:m}=jn({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:o,focusProps:r?m:f}}let ji=!1,Hi=0;function Al(){ji=!0,setTimeout(()=>{ji=!1},500)}function Md(e){e.pointerType==="touch"&&Al()}function Dv(){let e=se(null);if(!(typeof e>"u"))return Hi===0&&(typeof PointerEvent<"u"?e.addEventListener("pointerup",Md):process.env.NODE_ENV==="test"&&e.addEventListener("touchend",Al)),Hi++,()=>{Hi--,!(Hi>0)&&(typeof PointerEvent<"u"?e.removeEventListener("pointerup",Md):process.env.NODE_ENV==="test"&&e.removeEventListener("touchend",Al))}}function ze(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,l]=u.useState(!1),o=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(Dv,[]);let{addGlobalListener:s,removeAllGlobalListeners:d}=Rn(),{hoverProps:c,triggerHoverEnd:f}=u.useMemo(()=>{let m=(g,y)=>{if(o.pointerType=y,i||y==="touch"||o.isHovered||!ae(g.currentTarget,W(g)))return;o.isHovered=!0;let $=g.currentTarget;o.target=$,s(se(W(g)),"pointerover",x=>{o.isHovered&&o.target&&!ae(o.target,W(x))&&h(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:$,pointerType:y}),n&&n(!0),l(!0)},h=(g,y)=>{let $=o.target;o.pointerType="",o.target=null,!(y==="touch"||!o.isHovered||!$)&&(o.isHovered=!1,d(),r&&r({type:"hoverend",target:$,pointerType:y}),n&&n(!1),l(!1))},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=g=>{ji&&g.pointerType==="mouse"||m(g,g.pointerType)},p.onPointerLeave=g=>{!i&&ae(g.currentTarget,W(g))&&h(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(p.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=g=>{!o.ignoreEmulatedMouseEvents&&!ji&&m(g,"mouse"),o.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=g=>{!i&&ae(g.currentTarget,W(g))&&h(g,"mouse")}),{hoverProps:p,triggerHoverEnd:h}},[t,n,r,i,o,s,d]);return u.useEffect(()=>{i&&f({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:c,isHovered:a}}const Kd=u.createContext(null),Ev=u.forwardRef(function(t,n){[t,n]=pe(t,n,Kd);let r=t.href&&!t.isDisabled?"a":"span",{linkProps:i,isPressed:a}=Cv({...t,elementType:r},n),l=re[r],{hoverProps:o,isHovered:s}=ze(t),{focusProps:d,isFocused:c,isFocusVisible:f}=Oe(),m=ue({...t,defaultClassName:"react-aria-Link",values:{isCurrent:!!t["aria-current"],isDisabled:t.isDisabled||!1,isPressed:a,isHovered:s,isFocused:c,isFocusVisible:f}}),h=ie(t,{global:!0});return delete h.onClick,u.createElement(l,{ref:n,slot:t.slot||void 0,...q(h,m,i,o,d),"data-focused":c||void 0,"data-hovered":s||void 0,"data-pressed":a||void 0,"data-focus-visible":f||void 0,"data-current":!!t["aria-current"]||void 0,"data-disabled":t.isDisabled||void 0},m.children)});var Ld={};Ld={breadcrumbs:"عناصر الواجهة"};var Od={};Od={breadcrumbs:"Трохи хляб"};var zd={};zd={breadcrumbs:"Popis cesty"};var Vd={};Vd={breadcrumbs:"Brødkrummer"};var _d={};_d={breadcrumbs:"Breadcrumbs"};var Rd={};Rd={breadcrumbs:"Πλοηγήσεις breadcrumb"};var jd={};jd={breadcrumbs:"Breadcrumbs"};var Hd={};Hd={breadcrumbs:"Migas de pan"};var Ud={};Ud={breadcrumbs:"Lingiread"};var Wd={};Wd={breadcrumbs:"Navigointilinkit"};var Gd={};Gd={breadcrumbs:"Chemin de navigation"};var Zd={};Zd={breadcrumbs:"שבילי ניווט"};var Yd={};Yd={breadcrumbs:"Navigacijski putovi"};var qd={};qd={breadcrumbs:"Morzsamenü"};var Xd={};Xd={breadcrumbs:"Breadcrumb"};var Jd={};Jd={breadcrumbs:"パンくずリスト"};var Qd={};Qd={breadcrumbs:"탐색 표시"};var ec={};ec={breadcrumbs:"Naršymo kelias"};var tc={};tc={breadcrumbs:"Atpakaļceļi"};var nc={};nc={breadcrumbs:"Navigasjonsstier"};var rc={};rc={breadcrumbs:"Broodkruimels"};var ic={};ic={breadcrumbs:"Struktura nawigacyjna"};var ac={};ac={breadcrumbs:"Caminho detalhado"};var lc={};lc={breadcrumbs:"Categorias"};var oc={};oc={breadcrumbs:"Miez de pâine"};var uc={};uc={breadcrumbs:"Навигация"};var sc={};sc={breadcrumbs:"Navigačné prvky Breadcrumbs"};var dc={};dc={breadcrumbs:"Drobtine"};var cc={};cc={breadcrumbs:"Putanje navigacije"};var fc={};fc={breadcrumbs:"Sökvägar"};var mc={};mc={breadcrumbs:"İçerik haritaları"};var hc={};hc={breadcrumbs:"Навігаційна стежка"};var pc={};pc={breadcrumbs:"导航栏"};var bc={};bc={breadcrumbs:"導覽列"};var gc={};gc={"ar-AE":Ld,"bg-BG":Od,"cs-CZ":zd,"da-DK":Vd,"de-DE":_d,"el-GR":Rd,"en-US":jd,"es-ES":Hd,"et-EE":Ud,"fi-FI":Wd,"fr-FR":Gd,"he-IL":Zd,"hr-HR":Yd,"hu-HU":qd,"it-IT":Xd,"ja-JP":Jd,"ko-KR":Qd,"lt-LT":ec,"lv-LV":tc,"nb-NO":nc,"nl-NL":rc,"pl-PL":ic,"pt-BR":ac,"pt-PT":lc,"ro-RO":oc,"ru-RU":uc,"sk-SK":sc,"sl-SI":dc,"sr-SP":cc,"sv-SE":fc,"tr-TR":mc,"uk-UA":hc,"zh-CN":pc,"zh-TW":bc};function wv(e){return e&&e.__esModule?e.default:e}function Sv(e){let{"aria-label":t,...n}=e,r=ke(wv(gc),"@react-aria/breadcrumbs");return{navProps:{...ie(n,{labelable:!0}),"aria-label":t||r.format("breadcrumbs")}}}const Fl=u.createContext(null),Pv=u.forwardRef(function(t,n){[t,n]=pe(t,n,Fl);let{CollectionRoot:r}=u.useContext(ge),{navProps:i}=Sv(t),a=ie(t,{global:!0,labelable:!0});return u.createElement(fn,{content:u.createElement(mn,t)},l=>u.createElement(re.ol,{render:t.render,ref:n,...q(a,i),slot:t.slot||void 0,style:t.style,className:t.className??"react-aria-Breadcrumbs"},u.createElement(Fl.Provider,{value:t},u.createElement(r,{collection:l}))))}),vs=class vs extends et{};vs.type="item";let Tl=vs;const kv=yt(Tl,function(t,n,r){let i=r.nextKey==null,{isDisabled:a,onAction:l}=qe(Fl),o={"aria-current":i?"page":null,isDisabled:a||i,onPress:()=>l?.(r.key)},s=ue({...r.props,children:r.rendered,values:{isDisabled:a||i,isCurrent:i},defaultClassName:"react-aria-Breadcrumb"}),d=ie(t,{global:!0,labelable:!0});return delete d.id,u.createElement(re.li,{...d,...s,ref:n,"data-disabled":a||i||void 0,"data-current":i||void 0},u.createElement(Kd.Provider,{value:o},s.children))}),pn=u.createContext({});function Il(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Ee(t);let l=Ee(),o={};n?(r=r?`${l} ${r}`:l,o={id:l,htmlFor:a==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=Tt({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:o,fieldProps:s}}let Ml=new Map,Kl=!1;try{Kl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Ui=!1;try{Ui=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const yc={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Wi{constructor(t,n={}){this.numberFormatter=Bv(t,n),this.options=n}format(t){let n="";if(!Kl&&this.options.signDisplay!=null?n=Nv(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Ui){let{unit:r,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!r)return n;let l=yc[r]?.[i];n+=l[a]||l.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Kl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Ui&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function Bv(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Ui){let{unit:a,unitDisplay:l="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!yc[a]?.[l])throw new Error(`Unsupported unit ${a} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(Ml.has(r))return Ml.get(r);let i=new Intl.NumberFormat(e,t);return Ml.set(r,i),i}function Nv(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),l=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(l,"+").replace("!!!",a)}else return e.format(n)}}const Av=new RegExp("^.*\\(.*\\).*$"),Fv=["latn","arab","hanidec","deva","beng","fullwide"];class $c{constructor(t,n={}){this.locale=t,this.options=n}parse(t){return Ll(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Ll(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Ll(this.locale,this.options,t).options.numberingSystem}}const vc=new Map;function Ll(e,t,n){let r=xc(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of Fv)if(i!==r.options.numberingSystem){let a=xc(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function xc(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=vc.get(n);return r||(r=new Tv(e,t),vc.set(n,r)),r}class Tv{constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=Iv(t,this.formatter,this.options,n),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(t){let n=this.formatter.resolvedOptions().useGrouping,r=this.sanitize(t);if(!n&&this.symbols.group&&r.includes(this.symbols.group))return NaN;if(this.symbols.group&&(r=r.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=r.indexOf("-");r=r.replace("-",""),r=r.replace("+","");let l=r.indexOf(".");l===-1&&(l=r.length),r=r.replace(".",""),l-2===0?r=`0.${r}`:l-2===-1?r=`0.0${r}`:l-2===-2?r="0.00":r=`${r.slice(0,l-2)}.${r.slice(l-2)}`,a>-1&&(r=`-${r}`)}let i=r?+r:NaN;if(isNaN(i))return NaN;if(this.options.style==="percent"){let a={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new $c(this.locale,a).parse(new Wi(this.locale,a).format(i))}return this.options.currencySign==="accounting"&&Av.test(t)&&(i=-1*i),i}sanitize(t){let n=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(r=>r.unit===t)?this.symbols.noNumeralUnits.find(r=>r.unit===t).value.toString():(t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=Yt(t,",",this.symbols.decimal),t=Yt(t,"،",this.symbols.decimal)),this.symbols.group&&n&&(t=Yt(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&n&&(t=Yt(t,"'",this.symbols.group)),this.symbols.group==="'"&&t.includes("’")&&n&&(t=Yt(t,"’",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&n&&(t=Yt(t," ",this.symbols.group),t=Yt(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,n=-1/0,r=1/0){let i=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&i&&(t=Yt(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}}const Cc=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Dc=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Iv(e,t,n,r){let i=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),a=i.formatToParts(-10000.111),l=i.formatToParts(10000.111),o=Dc.map(S=>i.formatToParts(S)),s=o.map((S,B)=>{let E=S.find(k=>k.type==="unit");return E&&!S.some(k=>k.type==="integer"||k.type==="fraction")?{unit:E.value,value:Dc[B]}:null}).filter(S=>!!S),d=a.find(S=>S.type==="minusSign")?.value??"-",c=l.find(S=>S.type==="plusSign")?.value;!c&&(r?.signDisplay==="exceptZero"||r?.signDisplay==="always")&&(c="+");let m=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(S=>S.type==="decimal")?.value,h=a.find(S=>S.type==="group")?.value,p=a.filter(S=>!Cc.has(S.type)).map(S=>Ec(S.value)),g=o.flatMap(S=>S.filter(B=>!Cc.has(B.type)).map(B=>Ec(B.value))),y=[...new Set([...p,...g])].sort((S,B)=>B.length-S.length),$=y.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${y.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),x=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(x.map((S,B)=>[S,B])),C=new RegExp(`[${x.join("")}]`,"g");return{minusSign:d,plusSign:c,decimal:m,group:h,literals:$,numeral:C,numerals:x,index:S=>String(v.get(S)),noNumeralUnits:s}}function Yt(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Ec(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Mv(e={}){let{locale:t}=be();return u.useMemo(()=>new Wi(t,e),[t,e])}function Dr(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Kv(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:l={style:"percent"}}=e,o=ie(e,{labelable:!0}),{labelProps:s,fieldProps:d}=Il({...e,labelElementType:"span"});t=Dr(t,n,r);let c=r-n,f=c===0?0:(t-n)/c,m=Mv(l);if(!a&&!i){let h=l.style==="percent"?f:t;i=m.format(h)}return{progressBarProps:q(o,{...d,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:"progressbar"}),labelProps:s}}const wc=u.createContext(null),Lv=u.forwardRef(function(t,n){[t,n]=pe(t,n,wc);let{value:r=0,minValue:i=0,maxValue:a=100,isIndeterminate:l=!1}=t;r=Dr(r,i,a);let[o,s]=un(!t["aria-label"]&&!t["aria-labelledby"]),{progressBarProps:d,labelProps:c}=Kv({...t,label:s}),f=a-i,m;l||(f===0?m=0:m=(r-i)/f*100);let h=ue({...t,defaultClassName:"react-aria-ProgressBar",values:{percentage:m,valueText:d["aria-valuetext"],isIndeterminate:l}}),p=ie(t,{global:!0});return u.createElement(re.div,{...q(p,h,d),ref:n,slot:t.slot||void 0},u.createElement(pn.Provider,{value:{...c,ref:o,elementType:"span"}},h.children))}),Sc=7e3;let qt=null;function $t(e,t="assertive",n=Sc){qt?qt.announce(e,t,n):(qt=new zv,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?qt.announce(e,t,n):setTimeout(()=>{qt?.isAttached()&&qt?.announce(e,t,n)},100))}function Ov(e){qt&&qt.clear(e)}class zv{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Sc){if(!this.node)return;let i=document.createElement("div");typeof t=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",t["aria-labelledby"])):i.textContent=t,n==="assertive"?this.assertiveLog?.appendChild(i):this.politeLog?.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function Vv(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:l,onPressUp:o,onPressChange:s,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:f,href:m,target:h,rel:p,type:g="button"}=e,y;n==="button"?y={type:g,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:y={role:"button",href:n==="a"&&!r?m:void 0,target:n==="a"?h:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?p:void 0};let{pressProps:$,isPressed:x}=It({onPressStart:a,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:o,onClick:f,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:v}=zn(e,t);c&&(v.tabIndex=r?-1:v.tabIndex);let C=q(v,$,ie(e,{labelable:!0}));return{isPressed:x,buttonProps:q(y,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}const vt=u.createContext({}),Xt=Vn(function(t,n){[t,n]=pe(t,n,vt);let r=t,{isPending:i}=r,{buttonProps:a,isPressed:l}=Vv(t,n);a=Rv(a,i);let{focusProps:o,isFocused:s,isFocusVisible:d}=Oe(t),{hoverProps:c,isHovered:f}=ze({...t,isDisabled:t.isDisabled||i}),m={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:d,isDisabled:t.isDisabled||!1,isPending:i??!1},h=ue({...t,values:m,defaultClassName:"react-aria-Button"}),p=Ee(a.id),g=Ee(),y=a["aria-labelledby"];i&&(y?y=`${y} ${g}`:a["aria-label"]&&(y=`${p} ${g}`));let $=u.useRef(i);u.useEffect(()=>{let v={"aria-labelledby":y||p};(!$.current&&s&&i||$.current&&s&&!i)&&$t(v,"assertive"),$.current=i},[i,s,y,p]);let x=ie(t,{global:!0});return delete x.onClick,u.createElement(re.button,{...q(x,h,a,o,c),type:a.type==="submit"&&i?"button":a.type,id:p,ref:n,"aria-labelledby":y,slot:t.slot||void 0,"aria-disabled":i?"true":a["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":d||void 0},u.createElement(wc.Provider,{value:{id:g}},h.children))}),_v=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Rv(e,t){if(t){for(const n in e)n.startsWith("on")&&!_v.test(n)&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const Gi=u.createContext({}),Pc=u.forwardRef(function(t,n){[t,n]=pe(t,n,Gi);let{children:r,level:i=3,className:a,...l}=t,o=re[`h${i}`];return u.createElement(o,{...l,ref:n,className:a??"react-aria-Heading"},r)}),tt=u.createContext({});var kc={};kc={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var Bc={};Bc={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var Nc={};Nc={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var Ac={};Ac={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Fc={};Fc={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var Tc={};Tc={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var Ic={};Ic={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var Mc={};Mc={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var Kc={};Kc={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var Lc={};Lc={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var Oc={};Oc={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var zc={};zc={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var Vc={};Vc={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var _c={};_c={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var Rc={};Rc={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var jc={};jc={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var Hc={};Hc={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var Uc={};Uc={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var Wc={};Wc={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var Gc={};Gc={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Zc={};Zc={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var Yc={};Yc={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var qc={};qc={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Xc={};Xc={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Jc={};Jc={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var Qc={};Qc={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var ef={};ef={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var tf={};tf={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var nf={};nf={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var rf={};rf={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var af={};af={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var lf={};lf={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var of={};of={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var uf={};uf={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Er={};Er={"ar-AE":kc,"bg-BG":Bc,"cs-CZ":Nc,"da-DK":Ac,"de-DE":Fc,"el-GR":Tc,"en-US":Ic,"es-ES":Mc,"et-EE":Kc,"fi-FI":Lc,"fr-FR":Oc,"he-IL":zc,"hr-HR":Vc,"hu-HU":_c,"it-IT":Rc,"ja-JP":jc,"ko-KR":Hc,"lt-LT":Uc,"lv-LV":Wc,"nb-NO":Gc,"nl-NL":Zc,"pl-PL":Yc,"pt-BR":qc,"pt-PT":Xc,"ro-RO":Jc,"ru-RU":Qc,"sk-SK":ef,"sl-SI":tf,"sr-SP":nf,"sv-SE":rf,"tr-TR":af,"uk-UA":lf,"zh-CN":of,"zh-TW":uf};function sf(e,t){let n=u.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Hn(e,t){return e-t*Math.floor(e/t)}const df=1721426;function bn(e,t,n,r){t=wr(e,t);let i=t-1,a=-2;return n<=2?a=0:Jt(t)&&(a=-1),df-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Jt(e){return e%4===0&&(e%100!==0||e%400===0)}function wr(e,t){return e==="BC"?1-t:t}function Zi(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const jv={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Re{fromJulianDay(t){let n=t,r=n-df,i=Math.floor(r/146097),a=Hn(r,146097),l=Math.floor(a/36524),o=Hn(a,36524),s=Math.floor(o/1461),d=Hn(o,1461),c=Math.floor(d/365),f=i*400+l*100+s*4+c+(l!==4&&c!==4?1:0),[m,h]=Zi(f),p=n-bn(m,h,1,1),g=2;n<bn(m,h,3,1)?g=0:Jt(h)&&(g=1);let y=Math.floor(((p+g)*12+373)/367),$=n-bn(m,h,y,1)+1;return new we(m,h,y,$)}toJulianDay(t){return bn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return jv[Jt(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Jt(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const Hv={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ce(e,t){return t=ye(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Uv(e,t){return t=ye(t,e.calendar),e=gn(e),t=gn(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function Wv(e,t){return t=ye(t,e.calendar),e=_l(e),t=_l(t),e.era===t.era&&e.year===t.year}function Gv(e,t){return Yi(e.calendar,t.calendar)&&Ce(e,t)}function Yi(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function cf(e,t){return Ce(e,zl(t))}const Zv={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Ol(e,t,n){let r=e.calendar.toJulianDay(e),i=n?Zv[n]:Qv(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function ff(e){return Kt(Date.now(),e)}function zl(e){return Ve(ff(e))}function mf(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Yv(e,t){return hf(e)-hf(t)}function hf(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Vl=null,qv=!1;function qi(){return Vl==null&&(Vl=new Intl.DateTimeFormat().resolvedOptions().timeZone),Vl}function pf(){return qv}function gn(e){return e.subtract({days:e.day-1})}function Xi(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function _l(e){return gn(e.subtract({months:e.month-1}))}function Sr(e,t,n){let r=Ol(e,t,n);return e.subtract({days:r})}function Xv(e,t,n){return Sr(e,t,n).add({days:6})}const bf=new Map,Rl=new Map;function Jv(e){if(Intl.Locale){let n=bf.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&bf.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function Qv(e){let t=Rl.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo(),t))return Rl.set(e,t),t.firstDay}let n=Jv(e);if(e.includes("-fw-")){let r=e.split("-fw-")[1].split("-")[0];r==="mon"?t={firstDay:1}:r==="tue"?t={firstDay:2}:r==="wed"?t={firstDay:3}:r==="thu"?t={firstDay:4}:r==="fri"?t={firstDay:5}:r==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:n&&Hv[n]||0};Rl.set(e,t)}return t.firstDay}function e6(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((Ol(gn(e),t,n)+r)/7)}function jl(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Hl(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Un(e){e=ye(e,new Re);let t=wr(e.era,e.year);return gf(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function gf(e,t,n,r,i,a,l){let o=new Date;return o.setUTCHours(r,i,a,l),o.setUTCFullYear(e,t-1,n),o.getTime()}function Ul(e,t){if(t==="UTC")return 0;if(e>0&&t===qi()&&!pf())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:l,second:o}=$f(e,t);return gf(n,r,i,a,l,o,0)-Math.floor(e/1e3)*1e3}const yf=new Map;function $f(e,t){let n=yf.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),yf.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const vf=864e5;function t6(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>n6(e,t,a))}function n6(e,t,n){let r=$f(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Mt(e,t,n="compatible"){let r=Qt(e);if(t==="UTC")return Un(r);if(t===qi()&&n==="compatible"&&!pf()){r=ye(r,new Re);let s=new Date,d=wr(r.era,r.year);return s.setFullYear(d,r.month-1,r.day),s.setHours(r.hour,r.minute,r.second,r.millisecond),s.getTime()}let i=Un(r),a=Ul(i-vf,t),l=Ul(i+vf,t),o=t6(r,t,i-a,i-l);if(o.length===1)return o[0];if(o.length>1)switch(n){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-l);case"compatible":case"later":return Math.max(i-a,i-l);case"reject":throw new RangeError("No such absolute time found")}}function xf(e,t,n="compatible"){return new Date(Mt(e,t,n))}function Kt(e,t){let n=Ul(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,l=r.getUTCDate(),o=r.getUTCHours(),s=r.getUTCMinutes(),d=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Br(i<1?"BC":"AD",i<1?-i+1:i,a,l,t,n,o,s,d,c)}function Ve(e){return new we(e.calendar,e.era,e.year,e.month,e.day)}function Qt(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new kr(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function ye(e,t){if(Yi(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,yn(r),r}function r6(e,t,n){if(e instanceof Br)return e.timeZone===t?e:Cf(e,t);let r=Mt(e,t,n);return Kt(r,t)}function i6(e){let t=Un(e)-e.offset;return new Date(t)}function Cf(e,t){let n=Un(e)-e.offset;return ye(Kt(n,t),e.calendar)}function a6(e){return Cf(e,qi())}const Pr=36e5;function Ji(e,t){let n=e.copy(),r="hour"in n?s6(n,t):0;Wl(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Gl(n),Df(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,l6(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){let l=n.calendar.isInverseEra?.(n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Wl(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function Gl(e){for(;e.month<1;)Wl(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Wl(e,1)}function l6(e){for(;e.day<1;)e.month--,Gl(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Gl(e)}function Df(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function yn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Df(e)}function Ef(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function wf(e,t){return Ji(e,Ef(t))}function Zl(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),yn(n),n}function Qi(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),u6(n),n}function o6(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ea(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ea(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ea(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ea(e.hour,24),t}function u6(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ea(e,t){let n=e%t;return n<0&&(n+=t),n}function s6(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,o6(e)}function Yl(e,t,n,r){let i=e.copy();switch(t){case"era":{let a=e.calendar.getEras(),l=a.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Lt(l,n,0,a.length-1,r?.round),i.era=a[l],yn(i);break}case"year":i.calendar.isInverseEra?.(i)&&(n=-n),i.year=Lt(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Lt(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":i.day=Lt(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),yn(i),i}function Sf(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,l=0,o=23;if(r?.hourCycle===12){let s=a>=12;l=s?12:0,o=s?23:11}i.hour=Lt(a,n,l,o,r?.round);break}case"minute":i.minute=Lt(e.minute,n,0,59,r?.round);break;case"second":i.second=Lt(e.second,n,0,59,r?.round);break;case"millisecond":i.millisecond=Lt(e.millisecond,n,0,999,r?.round);break;default:throw new Error("Unsupported field "+t)}return i}function Lt(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function Pf(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Ji(Qt(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Mt(i,e.timeZone)}else n=Un(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Kt(n,e.timeZone);return ye(r,e.calendar)}function d6(e,t){return Pf(e,Ef(t))}function c6(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if(r?.hourCycle===12){let p=e.hour>=12;i=p?12:0,a=p?23:11}let l=Qt(e),o=ye(Qi(l,{hour:i}),new Re),s=[Mt(o,e.timeZone,"earlier"),Mt(o,e.timeZone,"later")].filter(p=>Kt(p,e.timeZone).day===o.day)[0],d=ye(Qi(l,{hour:a}),new Re),c=[Mt(d,e.timeZone,"earlier"),Mt(d,e.timeZone,"later")].filter(p=>Kt(p,e.timeZone).day===d.day).pop(),f=Un(e)-e.offset,m=Math.floor(f/Pr),h=f%Pr;return f=Lt(m,n,Math.floor(s/Pr),Math.floor(c/Pr),r?.round)*Pr+h,ye(Kt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Sf(e,t,n,r);case"era":case"year":case"month":case"day":{let i=Yl(Qt(e),t,n,r),a=Mt(i,e.timeZone);return ye(Kt(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function f6(e,t,n){let r=Qt(e),i=Qi(Zl(r,t),t);if(i.compare(r)===0)return e;let a=Mt(i,e.timeZone,n);return ye(Kt(a,e.timeZone),e.calendar)}const m6=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,h6=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,kf=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function p6(e){let t=e.match(m6);if(!t)throw kf.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let n=new we(xt(t[1],0,9999),xt(t[2],1,12),1);return n.day=xt(t[3],1,n.calendar.getDaysInMonth(n)),n}function b6(e){let t=e.match(h6);if(!t)throw kf.test(e)?new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+e);let n=xt(t[1],-9999,9999),r=n<1?"BC":"AD",i=new kr(r,n<1?-n+1:n,xt(t[2],1,12),1,t[4]?xt(t[4],0,23):0,t[5]?xt(t[5],0,59):0,t[6]?xt(t[6],0,59):0,t[7]?xt(t[7],0,1/0)*1e3:0);return i.day=xt(t[3],0,i.calendar.getDaysInMonth(i)),i}function xt(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function g6(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Bf(e){let t=ye(e,new Re),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Nf(e){return`${Bf(e)}T${g6(e)}`}function y6(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return i!==0&&(a+=`:${String(i).padStart(2,"0")}`),a}function $6(e){return`${Nf(e)}${y6(e.offset)}[${e.timeZone}]`}function ql(e){let t=typeof e[0]=="object"?e.shift():new Re,n;if(typeof e[0]=="string")n=e.shift();else{let l=t.getEras();n=l[l.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}class we{#e;constructor(...t){let[n,r,i,a,l]=ql(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=l,yn(this)}copy(){return this.era?new we(this.calendar,this.era,this.year,this.month,this.day):new we(this.calendar,this.year,this.month,this.day)}add(t){return Ji(this,t)}subtract(t){return wf(this,t)}set(t){return Zl(this,t)}cycle(t,n,r){return Yl(this,t,n,r)}toDate(t){return xf(this,t)}toString(){return Bf(this)}compare(t){return mf(this,t)}}class kr{#e;constructor(...t){let[n,r,i,a,l]=ql(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,yn(this)}copy(){return this.era?new kr(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new kr(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Ji(this,t)}subtract(t){return wf(this,t)}set(t){return Zl(Qi(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Yl(this,t,n,r);default:return Sf(this,t,n,r)}}toDate(t,n){return xf(this,t,n)}toString(){return Nf(this)}compare(t){let n=mf(this,t);return n===0?Yv(this,Qt(t)):n}}class Br{#e;constructor(...t){let[n,r,i,a,l]=ql(t),o=t.shift(),s=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=l,this.timeZone=o,this.offset=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,yn(this)}copy(){return this.era?new Br(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Br(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Pf(this,t)}subtract(t){return d6(this,t)}set(t,n){return f6(this,t,n)}cycle(t,n,r){return c6(this,t,n,r)}toDate(){return i6(this)}toString(){return $6(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-r6(t,this.timeZone).toDate().getTime()}}const Wn=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],v6=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ta=[1867,1911,1925,1988,2018],en=["meiji","taisho","showa","heisei","reiwa"];function Af(e){const t=Wn.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?Wn.length-1:t===0?0:t-1}function Xl(e){let t=ta[en.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new we(e.year+t,e.month,e.day)}class x6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=Af(n);return new we(this,en[r],n.year-ta[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Xl(t))}balanceDate(t){let n=Xl(t),r=Af(n);en[r]!==t.era&&(t.era=en[r],t.year=n.year-ta[r]),this.constrainDate(t)}constrainDate(t){let n=en.indexOf(t.era),r=v6[n];if(r!=null){let[i,a,l]=r,o=i-ta[n];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(l,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Wn[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return en}getYearsInEra(t){let n=en.indexOf(t.era),r=Wn[n],i=Wn[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(Xl(t))}getMinimumMonthInYear(t){let n=Ff(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Ff(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Ff(e){if(e.year===1){let t=en.indexOf(e.era);return Wn[t]}}const Tf=-543;class C6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=wr(n.era,n.year);return new we(this,r-Tf,n.month,n.day)}toJulianDay(t){return super.toJulianDay(If(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(If(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function If(e){let[t,n]=Zi(e.year+Tf);return new we(t,n,e.month,e.day)}const na=1911;function Mf(e){return e.era==="minguo"?e.year+na:1-e.year+na}function Kf(e){let t=e-na;return t>0?["minguo",t]:["before_minguo",1-t]}class D6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=wr(n.era,n.year),[i,a]=Kf(r);return new we(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Lf(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Kf(Mf(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Lf(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-na}constructor(...t){super(...t),this.identifier="roc"}}function Lf(e){let[t,n]=Zi(Mf(e));return new we(t,n,e.month,e.day)}const Of=1948320,zf=[0,31,62,93,124,155,186,216,246,276,306,336];class E6{fromJulianDay(t){let n=t-Of,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,l=a<216?Math.floor(a/31):Math.floor((a-6)/30),o=a-zf[l]+1;return new we(this,r,l+1,o)}toJulianDay(t){let n=Of-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=zf[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Hn(25*t.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Jl=78,Vf=80;class w6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Jl,i=t-bn(n.era,n.year,1,1),a;i<Vf?(r--,a=Jt(n.year-1)?31:30,i+=a+155+90+10):(a=Jt(n.year)?31:30,i-=Vf);let l,o;if(i<a)l=1,o=i+1;else{let s=i-a;s<155?(l=Math.floor(s/31)+2,o=s%31+1):(s-=155,l=Math.floor(s/30)+7,o=s%30+1)}return new we(this,r,l,o)}toJulianDay(t){let n=t.year+Jl,[r,i]=Zi(n),a,l;return Jt(i)?(a=31,l=bn(r,i,3,21)):(a=30,l=bn(r,i,3,22)),t.month===1?l+t.day-1:(l+=a+Math.min(t.month-2,5)*31,t.month>=8&&(l+=(t.month-7)*30),l+=t.day-1,l)}getDaysInMonth(t){return t.month===1&&Jt(t.year+Jl)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const ra=1948440,_f=1948439,nt=1300,Gn=1600,S6=460322;function ia(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Rf(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+ia(t,r,1,1)))/29.5)+1),a=n-ia(t,r,i,1)+1;return new we(e,r,i,a)}function jf(e){return(14+11*e)%30<11}class Ql{fromJulianDay(t){return Rf(this,ra,t)}toJulianDay(t){return ia(ra,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&jf(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return jf(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class P6 extends Ql{fromJulianDay(t){return Rf(this,_f,t)}toJulianDay(t){return ia(_f,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const k6="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let eo,Zn;function aa(e){return S6+Zn[e-nt]}function Nr(e,t){let n=e-nt,r=1<<11-(t-1);return(eo[n]&r)===0?29:30}function Hf(e,t){let n=aa(e);for(let r=1;r<t;r++)n+=Nr(e,r);return n}function Uf(e){return Zn[e+1-nt]-Zn[e-nt]}class B6 extends Ql{constructor(){if(super(),this.identifier="islamic-umalqura",eo||(eo=new Uint16Array(Uint8Array.from(atob(k6),t=>t.charCodeAt(0)).buffer)),!Zn){Zn=new Uint32Array(Gn-nt+1);let t=0;for(let n=nt;n<=Gn;n++){Zn[n-nt]=t;for(let r=1;r<=12;r++)t+=Nr(n,r)}}}fromJulianDay(t){let n=t-ra,r=aa(nt),i=aa(Gn);if(n<r||n>i)return super.fromJulianDay(t);{let a=nt-1,l=1,o=1;for(;o>0;){a++,o=n-aa(a)+1;let s=Uf(a);if(o===s){l=12;break}else if(o<s){let d=Nr(a,l);for(l=1;o>d;)o-=d,l++,d=Nr(a,l);break}}return new we(this,a,l,n-Hf(a,l)+1)}}toJulianDay(t){return t.year<nt||t.year>Gn?super.toJulianDay(t):ra+Hf(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<nt||t.year>Gn?super.getDaysInMonth(t):Nr(t.year,t.month)}getDaysInYear(t){return t.year<nt||t.year>Gn?super.getDaysInYear(t):Uf(t.year)}}const Wf=347997,Gf=1080,Zf=24*Gf,N6=29,A6=12*Gf+793,F6=N6*Zf+A6;function $n(e){return Hn(e*7+1,19)<7}function la(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Hn(3*(r+1),7)<3&&(r+=1),r}function T6(e){let t=la(e-1),n=la(e);return la(e+1)-n===356?2:n-t===382?1:0}function Ar(e){return la(e)+T6(e)}function Yf(e){return Ar(e+1)-Ar(e)}function I6(e){let t=Yf(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function oa(e,t){if(t>=6&&!$n(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=I6(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$n(e)?30:0:30}class M6{fromJulianDay(t){let n=t-Wf,r=n*Zf/F6,i=Math.floor((19*r+234)/235)+1,a=Ar(i),l=Math.floor(n-a);for(;l<1;)i--,a=Ar(i),l=Math.floor(n-a);let o=1,s=0;for(;s<l;)s+=oa(i,o),o++;o--,s-=oa(i,o);let d=l-s;return new we(this,i,o,d)}toJulianDay(t){let n=Ar(t.year);for(let r=1;r<t.month;r++)n+=oa(t.year,r);return n+t.day+Wf}getDaysInMonth(t){return oa(t.year,t.month)}getMonthsInYear(t){return $n(t.year)?13:12}getDaysInYear(t){return Yf(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&($n(n.year)&&!$n(t.year)&&n.month>6?t.month--:!$n(n.year)&&$n(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const to=1723856,qf=1824665,no=5500;function ua(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function ro(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-ua(e,n,1,1))/30),i=t+1-ua(e,n,r,1);return[n,r,i]}function Xf(e){return Math.floor(e%4/3)}function Jf(e,t){return t%13!==0?30:Xf(e)+5}class io{fromJulianDay(t){let[n,r,i]=ro(to,t),a="AM";return n<=0&&(a="AA",n+=no),new we(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=no),ua(to,n,t.month,t.day)}getDaysInMonth(t){return Jf(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Xf(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class K6 extends io{fromJulianDay(t){let[n,r,i]=ro(to,t);return n+=no,new we(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class L6 extends io{fromJulianDay(t){let[n,r,i]=ro(qf,t),a="CE";return n<=0&&(a="BCE",n=1-n),new we(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),ua(qf,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Jf(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function sa(e){switch(e){case"buddhist":return new C6;case"ethiopic":return new io;case"ethioaa":return new K6;case"coptic":return new L6;case"hebrew":return new M6;case"indian":return new w6;case"islamic-civil":return new Ql;case"islamic-tbla":return new P6;case"islamic-umalqura":return new B6;case"japanese":return new x6;case"persian":return new E6;case"roc":return new D6;default:return new Re}}let ao=new Map;class vn{constructor(t,n={}){this.formatter=Qf(t,n),this.options=n}format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return V6()&&(this.resolvedHourCycle||(this.resolvedHourCycle=_6(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}}const O6={true:{ja:"h11"},false:{}};function Qf(e,t={}){if(typeof t.hour12=="boolean"&&z6()){t={...t};let i=O6[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(ao.has(n))return ao.get(n);let r=new Intl.DateTimeFormat(e,t);return ao.set(n,r),r}let lo=null;function z6(){return lo==null&&(lo=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),lo}let oo=null;function V6(){return oo==null&&(oo=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),oo}function _6(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=Qf(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Ye(e){e=sf(e??{},R6);let{locale:t}=be();return u.useMemo(()=>new vn(t,e),[t,e])}function R6(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function e0(e){return e&&e.__esModule?e.default:e}const uo=new WeakMap;function Fr(e){return e?.calendar.identifier==="gregory"&&e.era==="BC"?"short":void 0}function j6(e){let t=ke(e0(Er),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:(n=Array.isArray(e.value)?e.value[0]:e.value??void 0,r=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let i=Ye({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Fr(n)||Fr(r),timeZone:e.timeZone}),{locale:a}=be(),l=u.useMemo(()=>new Intl.ListFormat(a),[a]),o="anchorDate"in e?e.anchorDate:null;return u.useMemo(()=>{if(!o&&n&&r){if(Ce(n,r)){let s=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else if("highlightedRange"in e){let s=co(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}else if(Array.isArray(e.value)){let s=e.value.map(c=>i.format(c.toDate(e.timeZone))),d=l.format(s);return t.format("selectedDateDescription",{date:d})}}return""},[n,r,o,e,t,i,l])}function so(e,t,n,r){let i=ke(e0(Er),"@react-aria/calendar"),a=Fr(e)||Fr(t),l=Ye({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),o=Ye({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return u.useMemo(()=>{if(Ce(e,gn(e))){let s=e,d=t;if(e.calendar.getFormattableMonth&&(s=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),Ce(t,Xi(e)))return l.format(s.toDate(n));if(Ce(t,Xi(t)))return r?co(l,i,s,d,n):l.formatRange(s.toDate(n),d.toDate(n))}return r?co(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))},[e,t,l,o,i,n,r])}function co(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),l=-1;for(let d=0;d<a.length;d++){let c=a[d];if(c.source==="shared"&&c.type==="literal")l=d;else if(c.source==="endRange")break}let o="",s="";for(let d=0;d<a.length;d++)d<l?o+=a[d].value:d>l&&(s+=a[d].value);return t.format("dateRange",{startDate:o,endDate:s})}function Tr(e,t){const n=u.useRef(!0),r=u.useRef(null);let i=De(e);u.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),u.useEffect(()=>{let a=r.current;n.current?n.current=!1:(!a||t.some((l,o)=>!Object.is(l,a[o])))&&i(),r.current=t},t)}function H6(e){return e&&e.__esModule?e.default:e}function t0(e,t){let n=ke(H6(Er),"@react-aria/calendar"),r=ie(e),i=so(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=so(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Tr(()=>{t.isFocused||$t(a)},[a]);let l=j6(t);Tr(()=>{l&&$t(l,"polite",4e3)},[l]);let o=mt([!!e.errorMessage,e.isInvalid,e.validationState]);uo.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:l});let[s,d]=u.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&s&&(d(!1),t.setFocused(!0));let[f,m]=u.useState(!1),h=e.isDisabled||t.isPreviousVisibleRangeInvalid();h&&f&&(m(!1),t.setFocused(!0));let p=Tt({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:q(r,p,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:h,onFocusChange:m},errorMessageProps:{id:o},title:i}}function U6(e,t){return t0(e,t)}function W6(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=be(),{keyboardProps:l}=Le({shortcuts:{End:()=>{t.focusSectionEnd()},Home:()=>{t.focusSectionStart()},Escape:()=>("setAnchorDate"in t&&t.setAnchorDate(null),!1)}}),{keyboardProps:o}=Le({shortcuts:{Enter:()=>{t.selectFocusedDate()}," ":()=>{t.selectFocusedDate()},PageUp:()=>{t.focusPreviousSection()},"Shift+PageUp":()=>{t.focusPreviousSection(!0)},PageDown:()=>{t.focusNextSection()},"Shift+PageDown":()=>{t.focusNextSection(!0)},ArrowLeft:()=>{a==="rtl"?t.focusNextDay():t.focusPreviousDay()},ArrowUp:()=>{t.focusPreviousRow()},ArrowRight:()=>{a==="rtl"?t.focusPreviousDay():t.focusNextDay()},ArrowDown:()=>{t.focusNextRow()}},allowRepeats:!0}),s=so(n,r,t.timeZone,!0),{ariaLabel:d,ariaLabelledBy:c}=uo.get(t),f=Tt({"aria-label":[d,s].filter(Boolean).join(", "),"aria-labelledby":c}),m=Ye({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=be(),p=u.useMemo(()=>{let y=t.visibleDuration.days&&t.visibleDuration.days<7,$=y?n:Sr(zl(t.timeZone),h,i),x=y?t.visibleDuration.days:7;return[...new Array(x).keys()].map(v=>{let w=$.add({days:v}).toDate(t.timeZone);return m.format(w)})},[h,t.timeZone,m,i,n,t.visibleDuration.days]),g=t.getWeeksInMonth(n);return{gridProps:q(f,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||t.selectionMode==="multiple"||void 0,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)},l,o),headerProps:{"aria-hidden":!0},weekDays:p,weeksInMonth:g}}function tn(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!=="hidden"&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function ot(e,t){let n=e;for(tn(n,t)&&(n=n.parentElement);n&&!tn(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function fo(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(tn(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function da(e,t,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(e===t)return;let a=e.scrollTop,l=e.scrollLeft,o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),d=window.getComputedStyle(t),c=window.getComputedStyle(e),f=document.scrollingElement||document.documentElement,m=e===f,h=e===f?0:s.top,p=e===f?e.clientHeight:s.bottom,g=e===f?0:s.left,y=e===f?e.clientWidth:s.right,$=parseFloat(d.scrollMarginTop)||0,x=parseFloat(d.scrollMarginBottom)||0,v=parseFloat(d.scrollMarginLeft)||0,C=parseFloat(d.scrollMarginRight)||0,w=parseFloat(c.scrollPaddingTop)||0,S=parseFloat(c.scrollPaddingBottom)||0,B=parseFloat(c.scrollPaddingLeft)||0,E=parseFloat(c.scrollPaddingRight)||0,k=parseFloat(c.borderTopWidth)||0,K=parseFloat(c.borderBottomWidth)||0,T=parseFloat(c.borderLeftWidth)||0,I=parseFloat(c.borderRightWidth)||0,R=o.top-$,D=o.bottom+x,M=o.left-v,G=o.right+C,O=e===f?0:T+I,Y=e===f?0:k+K,P=e===f?0:e.offsetWidth-e.clientWidth-O,N=e===f?0:e.offsetHeight-e.clientHeight-Y,_=h+(m?0:k)+w,Q=p-(m?0:K)-S-N,X=g+(m?0:T)+B,A=y-(m?0:I)-E;bt()&&gt()||c.direction==="ltr"?A-=P:c.direction==="rtl"&&(X+=P);let F=R<_||D>Q,z=M<X||G>A;if(F&&r==="start")a+=R-_;else if(F&&r==="center")a+=(R+D)/2-(_+Q)/2;else if(F&&r==="end")a+=D-Q;else if(F&&r==="nearest"){let L=R-_,J=D-Q;a+=Math.abs(L)<=Math.abs(J)?L:J}if(z&&i==="start")l+=M-X;else if(z&&i==="center")l+=(M+G)/2-(X+A)/2;else if(z&&i==="end")l+=G-A;else if(z&&i==="nearest"){let L=M-X,J=G-A;l+=Math.abs(L)<=Math.abs(J)?L:J}if(process.env.NODE_ENV==="test"){e.scrollLeft=l,e.scrollTop=a;return}e.scrollTo({left:l,top:a})}function Ct(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let r=document.scrollingElement||document.documentElement;if(window.getComputedStyle(r).overflow==="hidden"){let{left:a,top:l}=e.getBoundingClientRect(),o=fo(e,!0);for(let c of o)da(c,e);let{left:s,top:d}=e.getBoundingClientRect();if(Math.abs(a-s)>1||Math.abs(l-d)>1){o=n?fo(n,!0):[];for(let c of o)da(c,n,{block:"center",inline:"center"});for(let c of fo(e,!0))da(c,e)}}else{let{left:a,top:l}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:o,top:s}=e.getBoundingClientRect();(Math.abs(a-o)>1||Math.abs(l-s)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let G6=0;const mo=new Map;function xn(e){let[t,n]=u.useState();return fe(()=>{if(!e)return;let r=mo.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${G6++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},mo.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),mo.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Z6(e){return e&&e.__esModule?e.default:e}function Y6(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:l}=uo.get(t),o=ke(Z6(Er),"@react-aria/calendar"),s=Ye({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Fr(r),timeZone:t.timeZone}),d=t.isCellFocused(r)&&!e.isOutsideMonth;i=i||t.isCellDisabled(r)||!!e.isOutsideMonth;let c=t.isCellUnavailable(r),f=!i&&!c,m=t.isSelected(r)&&f,h=!1;t.isValueInvalid&&("highlightedRange"in t?h=!t.anchorDate&&t.highlightedRange!=null&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:Array.isArray(t.value)?h=t.value.some(T=>Ce(T,r)):t.value&&(h=Ce(t.value,r))),h&&!i&&(m=!0),r=sf(r,Gv);let p=u.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),g=cf(r,t.timeZone),y=u.useMemo(()=>{let T="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Ce(r,t.value.start)||Ce(r,t.value.end))&&(T=l+", "),T+=s.format(p),g?T=o.format(m?"todayDateSelected":"todayDate",{date:T}):m&&(T=o.format("dateSelected",{date:T})),t.minValue&&Ce(r,t.minValue)?T+=", "+o.format("minimumDate"):t.maxValue&&Ce(r,t.maxValue)&&(T+=", "+o.format("maximumDate")),T},[s,p,o,m,g,r,t,l]),$="";"anchorDate"in t&&d&&!t.isReadOnly&&f&&(t.anchorDate?$=o.format("finishRangeSelectionPrompt"):$=o.format("startRangeSelectionPrompt"));let x=xn($),v=u.useRef(!1),C=u.useRef(!1),w=u.useRef(void 0),{pressProps:S,isPressed:B}=It({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!f||t.isReadOnly,onPressStart(T){if(t.isReadOnly){t.setFocusedDate(r),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&(T.pointerType==="mouse"||T.pointerType==="touch")){if(t.highlightedRange&&!h){if(Ce(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setFocused(!0),t.setDragging(!0),C.current=!0;return}else if(Ce(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setFocused(!0),t.setDragging(!0),C.current=!0;return}}let I=()=>{t.setDragging(!0),w.current=void 0,t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0),v.current=!0};T.pointerType==="touch"?w.current=setTimeout(I,200):I()}},onPressEnd(){C.current=!1,v.current=!1,clearTimeout(w.current),w.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0))},onPressUp(T){t.isReadOnly||("anchorDate"in t&&w.current&&(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0)),"anchorDate"in t&&(C.current?t.setAnchorDate(r):t.anchorDate&&!v.current?(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0)):T.pointerType==="keyboard"&&!t.anchorDate?(t.selectDate(r),t.focusNearestAvailableDate(r)):T.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0))))}}),E;i||(E=Ce(r,t.focusedDate)?0:-1),u.useEffect(()=>{d&&n.current&&(Xe(n.current),Kn()!=="pointer"&&ce()===n.current&&Ct(n.current,{containingElement:ot(n.current)}))},[d,n]);let k=Ye({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),K=u.useMemo(()=>k.formatToParts(p).find(T=>T.type==="day").value,[k,p]);return{cellProps:{role:"gridcell","aria-disabled":!f||void 0,"aria-selected":m||void 0,"aria-invalid":h||void 0},buttonProps:q(S,{onFocus(){i||(t.setFocusedDate(r),t.setFocused(!0))},tabIndex:E,role:"button","aria-disabled":!f||void 0,"aria-label":y,"aria-invalid":h||void 0,"aria-describedby":[h?a:void 0,x["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(T){"highlightDate"in t&&(T.pointerType!=="touch"||t.isDragging)&&f&&t.highlightDate(r)},onPointerDown(T){let I=W(T);I instanceof HTMLElement&&"releasePointerCapture"in I&&("hasPointerCapture"in I?I.hasPointerCapture(T.pointerId)&&I.releasePointerCapture(T.pointerId):I.releasePointerCapture(T.pointerId))},onContextMenu(T){T.preventDefault()}}),isPressed:B,isFocused:d,isSelected:m,isDisabled:i,isUnavailable:c,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:K}}function q6(e,t){let n=Ye({month:e.format||"short",calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),r=[],i=t.focusedDate.calendar.getMonthsInYear(t.focusedDate);for(let o=1;o<=i;o++){let s=t.focusedDate.set({month:o}),d=s.calendar.getFormattableMonth?s.calendar.getFormattableMonth(s):s;r.push({id:o,date:s,formatted:n.format(d.toDate(t.timeZone))})}let{locale:a}=be();return{"aria-label":u.useMemo(()=>new Intl.DisplayNames(a,{type:"dateTimeField"}).of("month"),[a]),value:t.focusedDate.month,onChange:o=>{o!=null&&t.setFocusedDate(r[Number(o)-1].date)},items:r}}function X6(e,t){let n=Ye({year:e.format?.year||"numeric",era:e.format?.era||(t.focusedDate.calendar.identifier==="gregory"&&t.focusedDate.era==="BC"?"short":void 0),calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),r=e.visibleYears||20,i=t.focusedDate.subtract({years:Math.floor(r/2)}),a=t.focusedDate.add({years:Math.ceil(r/2)-1});t.maxValue&&a.compare(t.maxValue)>0&&(a=Ve(t.maxValue),i=a.subtract({years:r-1})),t.minValue&&i.compare(t.minValue)<0&&(i=Ve(t.minValue),a=i.add({years:r-1}),t.maxValue&&a.compare(t.maxValue)>0&&(a=Ve(t.maxValue)));let l=[],o=i,s=0;for(;o.compare(a)<=0;)Wv(o,t.focusedDate)&&(s=l.length),l.push({id:l.length,date:o,formatted:n.format(o.toDate(t.timeZone))}),o=o.add({years:1});let{locale:d}=be();return{"aria-label":u.useMemo(()=>new Intl.DisplayNames(d,{type:"dateTimeField"}).of("year"),[d]),value:s,onChange:f=>{f!=null&&t.setFocusedDate(l[f].date)},items:l}}function J6(e,t){let n=u.useMemo(()=>{let a=t.visibleRange.start;return e.offset&&(a=a.add(e.offset)),a},[t.visibleRange.start,e.offset]),r=t.visibleDuration.days||t.visibleDuration.weeks,i=Ye({day:e.format?.day||(r?"numeric":void 0),month:e.format?.month||"long",year:e.format?.year||"numeric",era:e.format?.era||n&&n.calendar.identifier==="gregory"&&n.era==="BC"?"short":void 0,calendar:t.visibleRange?.start.calendar.identifier,timeZone:t.timeZone});return u.useMemo(()=>{if(r)return i.formatRange(n.toDate(t.timeZone),t.visibleRange.end.toDate(t.timeZone));let a=n.calendar.getFormattableMonth?n.calendar.getFormattableMonth(n):n;return i.format(a.toDate(t.timeZone))},[i,r,n,t.timeZone,t.visibleRange.end])}function Q6(e,t,n){let{commitBehavior:r="select",...i}=e,a=t0(i,t),l=u.useRef(!1),o=u.useRef(typeof window<"u"?window:null);lt(o,"pointerdown",c=>{l.current=c.width===0&&c.height===0});const s={clear:()=>t.clearSelection(),reset:()=>t.setAnchorDate(null),select:()=>t.commitSelection()};return lt(o,"pointerup",c=>{if(l.current){l.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let f=c.target;n.current&&Ut(n.current)&&(!ae(n.current,f)||!f.closest('button, [role="button"]'))&&s[r]()}),a.calendarProps.onBlur=c=>{n.current&&(!c.relatedTarget||!ae(n.current,c.relatedTarget))&&t.anchorDate&&s[r]()},lt(n,"touchmove",c=>{t.isDragging&&c.preventDefault()},{passive:!1,capture:!0}),a}function nn(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function ho(e,t,n,r,i){let a={};for(let o in t)a[o]=Math.floor(t[o]/2),a[o]>0&&t[o]%2===0&&a[o]--;let l=Cn(e,t,n).subtract(a);return Ir(e,l,t,n,r,i)}function Cn(e,t,n,r,i){let a=e;return t.years?a=_l(e):t.months?a=gn(e):(t.weeks||t.days&&t.days>7)&&(a=Sr(e,n)),Ir(e,a,t,n,r,i)}function po(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let l=Cn(e,t,n).subtract(a);return Ir(e,l,t,n,r,i)}function Ir(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let l=Hl(t,Cn(Ve(i),n,r));l&&(t=l)}if(a&&e.compare(a)<=0){let l=jl(t,po(Ve(a),n,r));l&&(t=l)}return t}function Dt(e,t,n){if(t){let r=Hl(e,Ve(t));r&&(e=r)}if(n){let r=jl(e,Ve(n));r&&(e=r)}return e}function n0(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function ex(e,t){return e===t?!0:e.days===t.days&&e.weeks===t.weeks&&e.months===t.months&&e.years===t.years}function r0(e){let t=u.useMemo(()=>new vn(e.locale),[e.locale]),n=u.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:l,maxValue:o,selectionAlignment:s,isDateUnavailable:d,pageBehavior:c="visible",selectionMode:f="single",firstDayOfWeek:m,weeksInMonth:h}=e,p=u.useMemo(()=>i(n.calendar),[i,n.calendar]),[g,y]=He(e.value,e.defaultValue??null,e.onChange),$=u.useMemo(()=>Array.isArray(g)?g.map(A=>ye(Ve(A),p)):g?ye(Ve(g),p):null,[g,p]),x=u.useMemo(()=>{let A=Array.isArray(g)?g[0]:g;return A&&"timeZone"in A?A.timeZone:n.timeZone},[g,n.timeZone]),v=u.useMemo(()=>e.focusedValue?Dt(ye(Ve(e.focusedValue),p),l,o):void 0,[e.focusedValue,p,l,o]),C=u.useMemo(()=>e.defaultFocusedValue?Dt(ye(Ve(e.defaultFocusedValue),p),l,o):Dt($?Array.isArray($)?$[0]:$:ye(zl(x),p),l,o),[e.defaultFocusedValue,$,x,p,l,o]),[w,S]=He(v,C,e.onFocusChange),B=()=>{switch(s){case"start":return Cn(w,a,r,l,o);case"end":return po(w,a,r,l,o);default:return ho(w,a,r,l,o)}},[E,k]=u.useState(B),[K,T]=u.useState(e.autoFocus||!1),[I,R]=u.useState(a);ex(a,I)||(R(a),k(B()));let D=u.useMemo(()=>{let A={...a};return A.days?A.days--:A.days=-1,E.add(A)},[E,a]),[M,G]=u.useState(p);if(!Yi(p,M)){let A=ye(w,p);k(ho(A,a,r,l,o)),S(A),G(p)}nn(w,l,o)?S(Dt(w,l,o)):w.compare(E)<0?k(po(w,a,r,l,o)):w.compare(D)>0&&k(Cn(w,a,r,l,o));function O(A){A=Dt(A,l,o),S(A)}function Y(A){let F=Dt(A,l,o),z=n0(F,E,d);if(!z)return null;let L=Array.isArray(g)?g[0]:g,J=ye(z,L?.calendar||new Re);return L&&"hour"in L?L.set(J):J}function P(A){if(!e.isDisabled&&!e.isReadOnly){if(A===null){y(f==="multiple"?[]:null);return}if(Array.isArray(A))y(A.map(Y).filter(Boolean));else{let F=Y(A);F&&y(F)}}}let N=u.useMemo(()=>$?Array.isArray($)?$.some(A=>d?.(A)||nn(A,l,o)):d?.($)||nn($,l,o):!1,[$,d,l,o]),_=e.isInvalid||e.validationState==="invalid"||N,Q=_?"invalid":null,X=u.useMemo(()=>c==="visible"?a:bo(a),[c,a]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:$,setValue:P,selectionMode:f,visibleDuration:a,visibleRange:{start:E,end:D},minValue:l,maxValue:o,focusedDate:w,timeZone:x,validationState:Q,isValueInvalid:_,setFocusedDate(A){O(A)},focusNextDay(){O(w.add({days:1}))},focusPreviousDay(){O(w.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&O(w.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&O(w.subtract({weeks:1}))},focusNextPage(){let A=E.add(X);S(Dt(w.add(X),l,o)),k(Cn(Ir(w,A,X,r,l,o),X,r))},focusPreviousPage(){let A=E.subtract(X);S(Dt(w.subtract(X),l,o)),k(Cn(Ir(w,A,X,r,l,o),X,r))},focusSectionStart(){a.days?O(E):a.weeks?O(Sr(w,r)):(a.months||a.years)&&O(gn(w))},focusSectionEnd(){a.days?O(D):a.weeks?O(Xv(w,r)):(a.months||a.years)&&O(Xi(w))},focusNextSection(A){if(!A&&!a.days){O(w.add(bo(a)));return}a.days?this.focusNextPage():a.weeks?O(w.add({months:1})):(a.months||a.years)&&O(w.add({years:1}))},focusPreviousSection(A){if(!A&&!a.days){O(w.subtract(bo(a)));return}a.days?this.focusPreviousPage():a.weeks?O(w.subtract({months:1})):(a.months||a.years)&&O(w.subtract({years:1}))},selectFocusedDate(){d&&d(w)||this.selectDate(w)},selectDate(A){if(!(e.isDisabled||e.isReadOnly))if(f==="multiple"&&A!=null){let F=Y(A);if(!F)return;let z=[];Array.isArray(g)?z=g:g!=null&&(z=[g]);let L=z.findIndex(le=>Ce(le,F)),J=L>=0?z.slice(0,L).concat(z.slice(L+1)):[...z,F];y(J)}else P(A)},isFocused:K,setFocused:T,isInvalid(A){return nn(A,l,o)},isSelected(A){return!$||this.isCellDisabled(A)||this.isCellUnavailable(A)?!1:Array.isArray($)?$.some(F=>Ce(F,A)):Ce(A,$)},isCellFocused(A){return K&&w&&Ce(A,w)},isCellDisabled(A){return e.isDisabled||A.compare(E)<0||A.compare(D)>0||this.isInvalid(A)},isCellUnavailable(A){return e.isDateUnavailable?e.isDateUnavailable(A):!1},isPreviousVisibleRangeInvalid(){let A=E.subtract({days:1});return Ce(A,E)||this.isInvalid(A)},isNextVisibleRangeInvalid(){let A=D.add({days:1});return Ce(A,D)||this.isInvalid(A)},getDatesInWeek(A,F=E){let z=F.add({weeks:A}),L=[],J=a.days&&a.days<7?a.days:7;if(J===7){z=Sr(z,r,m);let le=Ol(z,r,m);for(let Ke=0;Ke<le;Ke++)L.push(null)}for(;L.length<J;){L.push(z);let le=z.add({days:1});if(Ce(z,le))break;z=le}for(;L.length<J;)L.push(null);return L},getWeeksInMonth(A=E){let F=h||e6(A,r,m);return(a.weeks||a.days)&&(F=a.weeks??0,a.days&&(F+=Math.ceil(a.days/7))),F}}}function bo(e){let t={...e};for(let n in e)t[n]=1;return t}function tx(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:l={months:1},minValue:o,maxValue:s,...d}=e,[c,f]=He(t,n||null,r),[m,h]=u.useState(null),p="center";if(c&&c.start&&c.end){let R=ho(Ve(c.start),l,a,o,s).add(l).subtract({days:1});c.end.compare(R)>0&&(p="start")}let g=u.useMemo(()=>{let I=e.isDateUnavailable;if(I)return R=>I(R,m)},[e.isDateUnavailable,m]),y=u.useCallback(I=>{if(I&&g&&!e.allowsNonContiguousRanges){const R=a0(I,g,l,-1),D=a0(I,g,l,1);return{start:R,end:D}}else return null},[g,l,e.allowsNonContiguousRanges]),$=u.useMemo(()=>y(m),[y,m]),x=u.useMemo(()=>Hl(o,$?.start),[o,$]),v=u.useMemo(()=>jl(s,$?.end),[s,$]),C=r0({...d,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:l,minValue:x,maxValue:v,selectionAlignment:e.selectionAlignment||p,isDateUnavailable:g}),w=m?go(m,C.focusedDate):c&&go(c.start,c.end),S=I=>{if(e.isReadOnly)return;const R=Dt(I,x,v),D=n0(R,C.visibleRange.start,g);if(D)if(!m)h(D);else{let M=go(m,D);M&&f({start:i0(M.start,c?.start),end:i0(M.end,c?.end)}),h(null)}},[B,E]=u.useState(!1),k=u.useMemo(()=>!c||m?!1:g&&(g(c.start)||g(c.end))?!0:nn(c.start,o,s)||nn(c.end,o,s),[g,c,m,o,s]),K=e.isInvalid||e.validationState==="invalid"||k;return{...C,value:c,setValue:f,anchorDate:m,setAnchorDate:h,highlightedRange:w,validationState:K?"invalid":null,isValueInvalid:K,selectFocusedDate(){C.isCellUnavailable(C.focusedDate)||S(C.focusedDate)},commitSelection(){S(C.focusedDate)},selectDate:S,highlightDate(I){m&&C.setFocusedDate(I)},isSelected(I){return!!(w&&I.compare(w.start)>=0&&I.compare(w.end)<=0&&!C.isCellDisabled(I)&&!C.isCellUnavailable(I))},isInvalid(I){return C.isInvalid(I)||nn(I,$?.start,$?.end)},isDragging:B,setDragging:E,clearSelection(){h(null),f(null)},focusNearestAvailableDate(I){let R=y(I),D=G=>this.isInvalid(G)||nn(G,R?.start,R?.end),M=I.add({days:1});D(M)&&(M=I.subtract({days:1})),D(M)||(this.setFocusedDate(M),this.setFocused(!0))}}}function go(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Ve(e),end:Ve(t)})}function i0(e,t){return e=ye(e,t?.calendar||new Re),t&&"hour"in t?t.set(e):e}function a0(e,t,n,r){let i=e.add({days:r}),a=e.subtract(n),l=e.add(n);for(;(r<0?i.compare(a)>=0:i.compare(l)<=0)&&!t(i);)i=i.add({days:r});if(t(i))return i.add({days:-r})}const l0={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Dn(e={}){let{style:t,isFocusable:n}=e,[r,i]=u.useState(!1),{focusWithinProps:a}=jn({isDisabled:!n,onFocusWithinChange:o=>i(o)}),l=u.useMemo(()=>r?t:t?{...l0,...t}:l0,[r]);return{visuallyHiddenProps:{...a,style:l}}}function Mr(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:l}=Dn(e);return u.createElement(n,q(a,l),t)}const yo=u.createContext(null),$o=u.createContext(null),Yn=u.createContext(null),qn=u.createContext(null),nx=u.forwardRef(function(t,n){[t,n]=pe(t,n,yo);let{locale:r}=be(),i=r0({...t,locale:r,createCalendar:t.createCalendar||sa}),{calendarProps:a,prevButtonProps:l,nextButtonProps:o,errorMessageProps:s,title:d}=U6(t,i),c=ue({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:"react-aria-Calendar"}),f=ie(t,{global:!0});return u.createElement(re.div,{...q(f,c,a),ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0},u.createElement(Pe,{values:[[vt,{slots:{previous:l,next:o}}],[Gi,{"aria-hidden":!0,level:2,children:d}],[Yn,i],[yo,t],[tt,{slots:{errorMessage:s}}]]},u.createElement(Mr,null,u.createElement("h2",null,a["aria-label"])),c.children,u.createElement(Mr,null,u.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>i.focusNextPage(),tabIndex:-1}))))}),rx=u.forwardRef(function(t,n){[t,n]=pe(t,n,$o);let{locale:r}=be(),i=tx({...t,locale:r,createCalendar:t.createCalendar||sa}),{calendarProps:a,prevButtonProps:l,nextButtonProps:o,errorMessageProps:s,title:d}=Q6(t,i,n),c=ue({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),f=ie(t,{global:!0});return u.createElement(re.div,{...q(c,f,a),ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0},u.createElement(Pe,{values:[[vt,{slots:{previous:l,next:o}}],[Gi,{"aria-hidden":!0,level:2,children:d}],[qn,i],[$o,t],[tt,{slots:{errorMessage:s}}]]},u.createElement(Mr,null,u.createElement("h2",null,a["aria-label"])),c.children,u.createElement(Mr,null,u.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>i.focusNextPage(),tabIndex:-1}))))}),ca=u.createContext(null),ix=u.forwardRef(function(t,n){let r=u.useContext(Yn),i=u.useContext(qn),a=qe(yo),l=qe($o),o=r??i,s=o.visibleRange.start;t.offset&&(s=s.add(t.offset));let d=a?.firstDayOfWeek??l?.firstDayOfWeek,{gridProps:c,headerProps:f,weekDays:m,weeksInMonth:h}=W6({startDate:s,endDate:Xi(s),weekdayStyle:t.weekdayStyle,firstDayOfWeek:d},o),p=ie(t,{global:!0});return u.createElement(ca.Provider,{value:{headerProps:f,weekDays:m,startDate:s,weeksInMonth:h}},u.createElement(re.table,{render:t.render,...q(p,c),ref:n,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children!="function"?t.children:u.createElement(u.Fragment,null,u.createElement(o0,null,g=>u.createElement(u0,null,g)),u.createElement(s0,null,t.children))))});function ax(e,t){let{children:n,style:r,className:i}=e,{headerProps:a,weekDays:l}=u.useContext(ca),o=ie(e,{global:!0});return u.createElement(re.thead,{render:e.render,...q(o,a),ref:t,style:r,className:i??"react-aria-CalendarGridHeader"},u.createElement("tr",null,l.map((s,d)=>u.cloneElement(n(s),{key:d}))))}const o0=u.forwardRef(ax);function lx(e,t){let{children:n,style:r,className:i}=e,a=ie(e,{global:!0});return u.createElement(re.th,{render:e.render,...a,ref:t,style:r,className:i||"react-aria-CalendarHeaderCell"},n)}const u0=u.forwardRef(lx);function ox(e,t){let{children:n,style:r,className:i}=e,a=u.useContext(Yn),l=u.useContext(qn),o=a??l,{startDate:s,weeksInMonth:d}=u.useContext(ca),c=ie(e,{global:!0});return u.createElement(re.tbody,{render:e.render,...c,ref:t,style:r,className:i??"react-aria-CalendarGridBody"},[...new Array(d).keys()].map(f=>u.createElement("tr",{key:f},o.getDatesInWeek(f,s).map((m,h)=>m?u.cloneElement(n(m),{key:h}):u.createElement("td",{key:h})))))}const s0=u.forwardRef(ox),ux=u.forwardRef(function({date:t,...n},r){let i=u.useContext(Yn),a=u.useContext(qn),l=i??a,{startDate:o}=u.useContext(ca)??{startDate:l.visibleRange.start},s=l.visibleDuration.days||l.visibleDuration.weeks?!1:!Uv(o,t),d=cf(t,l.timeZone),c=u.useRef(null),{cellProps:f,buttonProps:m,...h}=Y6({date:t,isOutsideMonth:s},l,c),{hoverProps:p,isHovered:g}=ze({...n,isDisabled:h.isDisabled||h.isUnavailable}),{focusProps:y,isFocusVisible:$}=Oe();$&&=h.isFocused;let x=!1,v=!1;"highlightedRange"in l&&l.highlightedRange&&(x=Ce(t,l.highlightedRange.start),v=Ce(t,l.highlightedRange.end));let C=ue({...n,defaultChildren:h.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:g,isOutsideMonth:s,isFocusVisible:$,isSelectionStart:x,isSelectionEnd:v,isToday:d,...h}}),w={"data-focused":h.isFocused||void 0,"data-hovered":g||void 0,"data-pressed":h.isPressed||void 0,"data-unavailable":h.isUnavailable||void 0,"data-disabled":h.isDisabled||void 0,"data-focus-visible":$||void 0,"data-outside-visible-range":h.isOutsideVisibleRange||void 0,"data-outside-month":s||void 0,"data-selected":h.isSelected||void 0,"data-selection-start":x||void 0,"data-selection-end":v||void 0,"data-invalid":h.isInvalid||void 0,"data-today":d||void 0},S=ie(n,{global:!0});return u.createElement("td",{...f,ref:r},u.createElement(re.div,{...q(S,m,y,p,w,C),ref:c}))}),sx=u.forwardRef(function(t,n){let{offset:r,format:i,className:a="react-aria-CalendarHeading",...l}=t,o=u.useContext(Yn),s=u.useContext(qn),c=J6({offset:r,format:i},o||s);return u.createElement(Pc,{...l,className:a,ref:n},c)}),fa=u.createContext(null),d0={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},c0={...d0,customError:!0,valid:!1},Kr={isInvalid:!1,validationDetails:d0,validationErrors:[]},dx=u.createContext({}),vo="__reactAriaFormValidationState";function ma(e){if(e[vo]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[vo];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return cx(e)}function cx(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:l,validationBehavior:o="aria"}=e;n&&(t||=n==="invalid");let s=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:c0}:null,d=u.useMemo(()=>{if(!l||i==null)return null;let K=fx(l,i);return f0(K)},[l,i]);a?.validationDetails.valid&&(a=void 0);let c=u.useContext(dx),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(K=>xo(c[K])):xo(c[r]):[],[c,r]),[m,h]=u.useState(c),[p,g]=u.useState(!1);c!==m&&(h(c),g(!1));let y=u.useMemo(()=>f0(p?[]:f),[p,f]),$=u.useRef(Kr),[x,v]=u.useState(Kr),C=u.useRef(Kr),w=()=>{if(!S)return;B(!1);let K=d||a||$.current;Co(K,C.current)||(C.current=K,v(K))},[S,B]=u.useState(!1);return u.useEffect(w),{realtimeValidation:s||y||d||a||Kr,displayValidation:o==="native"?s||y||x:s||y||d||a||x,updateValidation(K){o==="aria"&&!Co(x,K)?v(K):$.current=K},resetValidation(){let K=Kr;Co(K,C.current)||(C.current=K,v(K)),o==="native"&&B(!1),g(!0)},commitValidation(){o==="native"&&B(!0),g(!0)}}}function xo(e){return e?Array.isArray(e)?e:[e]:[]}function fx(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return xo(n)}return[]}function f0(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:c0}:null}function Co(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}const ha=u.createContext(null);function Do(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:l}=Il(e),o=mt([!!t,!!n,r,i]),s=mt([!!t,!!n,r,i]);return l=q(l,{"aria-describedby":[o,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:l,descriptionProps:{id:o},errorMessageProps:{id:s}}}function pa(e,t,n){let r=De(i=>{n&&!i.defaultPrevented&&n(t)});u.useEffect(()=>{let i=e?.current?.form;return i?.addEventListener("reset",r),()=>{i?.removeEventListener("reset",r)}},[e])}function Eo(e,t,n){let{validationBehavior:r,focus:i}=e;fe(()=>{if(r==="native"&&n?.current&&"setCustomValidity"in n.current&&!n.current.disabled){let d=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(hx(n.current))}});let a=u.useRef(!1),l=De(()=>{a.current||t.resetValidation()}),o=De(d=>{t.displayValidation.isInvalid||t.commitValidation();let c=n?.current?.form;!d.defaultPrevented&&n&&c&&px(c)===n.current&&(i?i():n.current?.focus(),Ln("keyboard")),d.preventDefault()}),s=De(()=>{t.commitValidation()});u.useEffect(()=>{let d=n?.current;if(!d)return;let c=d.form,f=c?.reset;return c&&(c.reset=()=>{a.current=!window.event||window.event.type==="message"&&W(window.event)instanceof MessagePort,f?.call(c),a.current=!1}),d.addEventListener("invalid",o),d.addEventListener("change",s),c?.addEventListener("reset",l),()=>{d.removeEventListener("invalid",o),d.removeEventListener("change",s),c?.removeEventListener("reset",l),c&&(c.reset=f)}},[n,r])}function mx(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function hx(e){return{isInvalid:!e.validity.valid,validationDetails:mx(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function px(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}const m0=u.createContext(null),h0=u.createContext(null);function bx(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=u.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:l}=Rn(),o=u.useCallback((m,h,p,g)=>{p===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t?.({type:"movestart",pointerType:h,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey})),n?.({type:"move",pointerType:h,deltaX:p,deltaY:g,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey}))},[t,n,i]),s=De(o),d=u.useCallback((m,h)=>{_i(),i.current.didMove&&r?.({type:"moveend",pointerType:h,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey})},[r,i]),c=De(d);return{moveProps:u.useMemo(()=>{let m={},h=()=>{Pl(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let g=v=>{v.button===0&&(s(v,"mouse",v.pageX-(i.current.lastPosition?.pageX??0),v.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:v.pageX,pageY:v.pageY})},y=v=>{if(v.button===0){c(v,"mouse");let C=xe(W(v));l(C,"mousemove",g,!1),l(C,"mouseup",y,!1)}};m.onMouseDown=v=>{if(v.button===0){h(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:v.pageX,pageY:v.pageY};let C=xe(W(v));a(C,"mousemove",g,!1),a(C,"mouseup",y,!1)}};let $=v=>{let C=[...v.changedTouches].findIndex(({identifier:w})=>w===i.current.id);if(C>=0){let{pageX:w,pageY:S}=v.changedTouches[C];s(v,"touch",w-(i.current.lastPosition?.pageX??0),S-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:w,pageY:S}}},x=v=>{if([...v.changedTouches].findIndex(({identifier:w})=>w===i.current.id)>=0){c(v,"touch"),i.current.id=null;let w=xe(W(v));l(w,"touchmove",$),l(w,"touchend",x),l(w,"touchcancel",x)}};m.onTouchStart=v=>{if(v.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:w,identifier:S}=v.changedTouches[0];h(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:C,pageY:w},i.current.id=S;let B=xe(W(v));a(B,"touchmove",$,!1),a(B,"touchend",x,!1),a(B,"touchcancel",x,!1)}}else{let g=$=>{if($.pointerId===i.current.id){let x=$.pointerType||"mouse";s($,x,$.pageX-(i.current.lastPosition?.pageX??0),$.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},y=$=>{if($.pointerId===i.current.id){let x=$.pointerType||"mouse";c($,x),i.current.id=null;let v=xe(W($));l(v,"pointermove",g,!1),l(v,"pointerup",y,!1),l(v,"pointercancel",y,!1)}};m.onPointerDown=$=>{if($.button===0&&i.current.id==null){h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId;let x=xe(W($));a(x,"pointermove",g,!1),a(x,"pointerup",y,!1),a(x,"pointercancel",y,!1)}}}let p=(g,y,$)=>{h(),s(g,"keyboard",y,$),c(g,"keyboard")};return m.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),p(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),p(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),p(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),p(g,0,1);break}},m},[a,l,i])}}const Xn=u.createContext({}),Lr=u.forwardRef(function(t,n){[t,n]=pe(t,n,Xn);let{isDisabled:r,isInvalid:i,isReadOnly:a,onHoverStart:l,onHoverChange:o,onHoverEnd:s,...d}=t;r??=!!t["aria-disabled"]&&t["aria-disabled"]!=="false",i??=!!t["aria-invalid"]&&t["aria-invalid"]!=="false";let{hoverProps:c,isHovered:f}=ze({onHoverStart:l,onHoverChange:o,onHoverEnd:s,isDisabled:r}),{isFocused:m,isFocusVisible:h,focusProps:p}=Oe({within:!0}),g=ue({...t,values:{isHovered:f,isFocusWithin:m,isFocusVisible:h,isDisabled:r,isInvalid:i},defaultClassName:"react-aria-Group"});return u.createElement(re.div,{...q(d,p,c),...g,ref:n,role:t.role??"group",slot:t.slot??void 0,"data-focus-within":m||void 0,"data-hovered":f||void 0,"data-focus-visible":h||void 0,"data-disabled":r||void 0,"data-invalid":i||void 0,"data-readonly":a||void 0},g.children)}),Jn=u.createContext({});let gx=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i};const Or=Vn(function(t,n){[t,n]=pe(t,n,Jn);let{hoverProps:r,isHovered:i}=ze({...t,isDisabled:t.disabled}),{isFocused:a,isFocusVisible:l,focusProps:o}=Oe({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=ue({...t,values:{isHovered:i,isFocused:a,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement(re.input,{...q(gx(t),o,r),...d,ref:n,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":s||void 0})});function p0(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:l="text",validationBehavior:o="aria"}=e,[s,d]=He(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=zn(e,t),f=ma({...e,value:s}),{isInvalid:m,validationErrors:h,validationDetails:p}=f.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:x}=Do({...e,isInvalid:m,errorMessage:e.errorMessage||h}),v=ie(e,{labelable:!0});const C={type:l,pattern:e.pattern};let[w]=u.useState(s);return pa(t,e.defaultValue??w,d),Eo(e,f,t),{labelProps:g,inputProps:q(v,n==="input"?C:void 0,{disabled:r,readOnly:a,required:i&&o==="native","aria-required":i&&o==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:s,onChange:S=>d(W(S).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...y}),descriptionProps:$,errorMessageProps:x,isInvalid:m,validationErrors:h,validationDetails:p}}var b0={};b0={Empty:"فارغ"};var g0={};g0={Empty:"Изпразни"};var y0={};y0={Empty:"Prázdné"};var $0={};$0={Empty:"Tom"};var v0={};v0={Empty:"Leer"};var x0={};x0={Empty:"Άδειο"};var C0={};C0={Empty:"Empty"};var D0={};D0={Empty:"Vacío"};var E0={};E0={Empty:"Tühjenda"};var w0={};w0={Empty:"Tyhjä"};var S0={};S0={Empty:"Vide"};var P0={};P0={Empty:"ריק"};var k0={};k0={Empty:"Prazno"};var B0={};B0={Empty:"Üres"};var N0={};N0={Empty:"Vuoto"};var A0={};A0={Empty:"空"};var F0={};F0={Empty:"비어 있음"};var T0={};T0={Empty:"Tuščias"};var I0={};I0={Empty:"Tukšs"};var M0={};M0={Empty:"Tom"};var K0={};K0={Empty:"Leeg"};var L0={};L0={Empty:"Pusty"};var O0={};O0={Empty:"Vazio"};var z0={};z0={Empty:"Vazio"};var V0={};V0={Empty:"Gol"};var _0={};_0={Empty:"Не заполнено"};var R0={};R0={Empty:"Prázdne"};var j0={};j0={Empty:"Prazen"};var H0={};H0={Empty:"Prazno"};var U0={};U0={Empty:"Tomt"};var W0={};W0={Empty:"Boş"};var G0={};G0={Empty:"Пусто"};var Z0={};Z0={Empty:"空"};var Y0={};Y0={Empty:"空白"};var q0={};q0={"ar-AE":b0,"bg-BG":g0,"cs-CZ":y0,"da-DK":$0,"de-DE":v0,"el-GR":x0,"en-US":C0,"es-ES":D0,"et-EE":E0,"fi-FI":w0,"fr-FR":S0,"he-IL":P0,"hr-HR":k0,"hu-HU":B0,"it-IT":N0,"ja-JP":A0,"ko-KR":F0,"lt-LT":T0,"lv-LV":I0,"nb-NO":M0,"nl-NL":K0,"pl-PL":L0,"pt-BR":O0,"pt-PT":z0,"ro-RO":V0,"ru-RU":_0,"sk-SK":R0,"sl-SI":j0,"sr-SP":H0,"sv-SE":U0,"tr-TR":W0,"uk-UA":G0,"zh-CN":Z0,"zh-TW":Y0};function yx(e){return e&&e.__esModule?e.default:e}const X0=()=>{};function $x(e){const t=u.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:l,isReadOnly:o,isRequired:s,onIncrement:d,onIncrementPage:c,onDecrement:f,onDecrementPage:m,onDecrementToMin:h,onIncrementToMax:p}=e;const g=ke(yx(q0),"@react-aria/spinbutton");let y=u.useRef(!1);const $=u.useCallback(()=>{clearTimeout(t.current),y.current=!1},[]),x=De(()=>{$()});u.useEffect(()=>()=>x(),[]);let{keyboardProps:v}=Le({isDisabled:l||o,shortcuts:{PageUp:()=>{if(c){c();return}if(d){d();return}return!1},ArrowUp:()=>{if(d){d();return}return!1},PageDown:()=>{if(m){m();return}if(f){f();return}return!1},ArrowDown:()=>{if(f){f();return}return!1},Home:()=>{if(h){h();return}return!1},End:()=>{if(p){p();return}return!1}},allowRepeats:!0}),C=u.useRef(!1),w=()=>{C.current=!0},S=()=>{C.current=!1},B=r===""?g.format("Empty"):(r||`${n}`).replace("-","−");u.useEffect(()=>{C.current&&(Ov("assertive"),$t(B,"assertive"))},[B]);let E=u.useCallback(()=>{$()},[$]);const k=De(d??X0),K=De(f??X0),T=De(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&(k(),I(60))}),I=De(X=>{x(),y.current=!0,t.current=window.setTimeout(T,X)}),R=De(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&(K(),D(60))}),D=De(X=>{x(),y.current=!0,t.current=window.setTimeout(R,X)});let M=X=>{X.preventDefault()},{addGlobalListener:G,removeAllGlobalListeners:O}=Rn(),Y=u.useRef(!1),[P,N]=u.useState(null);u.useEffect(()=>{P==="touch"?I(600):P?I(400):P||x()},[P]);let[_,Q]=u.useState(null);return u.useEffect(()=>{_==="touch"?D(600):_?D(400):_||x()},[_]),{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":B,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":l||void 0,"aria-readonly":o||void 0,"aria-required":s||void 0,...v,onFocus:w,onBlur:S},incrementButtonProps:{onPressStart:X=>{$(),X.pointerType!=="touch"?(d?.(),N("mouse")):(G(window,"pointercancel",E,{capture:!0}),Y.current=!1,N("touch")),G(window,"contextmenu",M)},onPressUp:X=>{$(),X.pointerType==="touch"&&(Y.current=!0),O(),N(null)},onPressEnd:X=>{$(),X.pointerType==="touch"&&!y.current&&Y.current&&d?.(),Y.current=!1,N(null)},onFocus:w,onBlur:S},decrementButtonProps:{onPressStart:X=>{$(),X.pointerType!=="touch"?(f?.(),Q("mouse")):(G(window,"pointercancel",E,{capture:!0}),Y.current=!1,Q("touch"))},onPressUp:X=>{$(),X.pointerType==="touch"&&(Y.current=!0),O(),Q(null)},onPressEnd:X=>{$(),X.pointerType==="touch"&&!y.current&&Y.current&&f?.(),Y.current=!1,Q(null)},onFocus:w,onBlur:S}}}var J0={};J0={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var Q0={};Q0={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var em={};em={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var tm={};tm={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var nm={};nm={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var rm={};rm={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var im={};im={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var am={};am={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var lm={};lm={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var om={};om={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var um={};um={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var sm={};sm={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var dm={};dm={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var cm={};cm={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var fm={};fm={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var mm={};mm={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var hm={};hm={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var pm={};pm={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var bm={};bm={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var gm={};gm={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var ym={};ym={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var $m={};$m={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var vm={};vm={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var xm={};xm={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Cm={};Cm={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var Dm={};Dm={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var Em={};Em={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var wm={};wm={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var Sm={};Sm={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var Pm={};Pm={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var km={};km={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var Bm={};Bm={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var Nm={};Nm={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Am={};Am={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var wo={};wo={"ar-AE":J0,"bg-BG":Q0,"cs-CZ":em,"da-DK":tm,"de-DE":nm,"el-GR":rm,"en-US":im,"es-ES":am,"et-EE":lm,"fi-FI":om,"fr-FR":um,"he-IL":sm,"hr-HR":dm,"hu-HU":cm,"it-IT":fm,"ja-JP":mm,"ko-KR":hm,"lt-LT":pm,"lv-LV":bm,"nb-NO":gm,"nl-NL":ym,"pl-PL":$m,"pt-BR":vm,"pt-PT":xm,"ro-RO":Cm,"ru-RU":Dm,"sk-SK":Em,"sl-SI":wm,"sr-SP":Sm,"sv-SE":Pm,"tr-TR":km,"uk-UA":Bm,"zh-CN":Nm,"zh-TW":Am};const ut=u.createContext({}),So=u.createContext(null),vx=u.forwardRef(function(t,n){let{render:r}=u.useContext(So);return u.createElement(u.Fragment,null,r(t,n))});function ba(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),i=u.useCallback(a=>{if(r||t?.isDropTarget(a))return n?n(a):u.createElement(vx,{target:a})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function Fm(e,t,n){let r=e.focusedKey,i=null;if(t?.isVirtualDragging?.()&&n?.target?.type==="item"&&(i=n.target.key,n.target.dropPosition==="after")){let a=n.collection.getKeyAfter(i),l=null;if(a!=null){let o=n.collection.getItem(i)?.level??0;for(;a!=null;){let s=n.collection.getItem(a);if(!s)break;if(s.type!=="item"){a=n.collection.getKeyAfter(a);continue}if((s.level??0)<=o)break;l=a,a=n.collection.getKeyAfter(a)}}i=a??l??i}return u.useMemo(()=>new Set([r,i].filter(a=>a!=null)),[r,i])}const Po=u.createContext({}),xx=yt(gl,function(t,n){return[t,n]=pe(t,n,Po),u.createElement(re.header,{className:"react-aria-Header",...t,ref:n},t.children)}),Tm=u.createContext(null);function ga(e){let t=u.useRef({});return u.createElement(Tm.Provider,{value:t},e.children)}const Cx=u.forwardRef(function(t,n){let{name:r,isVisible:i=!0,children:a,className:l,style:o,render:s,...d}=t,[c,f]=u.useState(i?"visible":"hidden"),m=u.useContext(Tm);if(!m)throw new Error("<SharedElement> must be rendered inside a <SharedElementTransition>");i&&c==="hidden"&&f("visible"),n=Te(n),fe(()=>{let p=n.current,g=m.current,y=g[r],$=null;if(p&&i&&y){f("visible");let x=p.getAnimations(),v=y.style.map(([C,w])=>{let S=p.style[C];if(C==="translate"){let B=y.rect,E=p.getBoundingClientRect(),k=B.left-E?.left,K=B.top-E?.top;p.style.translate=`${k}px ${K}px`}else p.style[C]=w;return[C,S]});for(let C of p.getAnimations())x.includes(C)||C.cancel();$=requestAnimationFrame(()=>{$=null;for(let[C,w]of v)p.style[C]=w}),delete g[r]}else p&&i&&!y?(queueMicrotask(()=>jt.flushSync(()=>f("entering"))),$=requestAnimationFrame(()=>{$=null,f("visible")})):p&&!i&&queueMicrotask(()=>{g[r]?(delete g[r],jt.flushSync(()=>f("exiting")),Promise.all(p.getAnimations().map(x=>x.finished)).then(()=>f("hidden")).catch(()=>{})):f("hidden")});return()=>{if($!=null&&cancelAnimationFrame($),p&&p.isConnected&&!p.hasAttribute("data-exiting")){let x=window.getComputedStyle(p);if(x.transitionProperty!=="none"){let v=x.transitionProperty.split(/\s*,\s*/);g[r]={rect:p.getBoundingClientRect(),style:v.map(C=>[C,x[C]])}}}}},[n,m,r,i]);let h=ue({children:a,className:l,style:o,render:s,values:{isEntering:c==="entering",isExiting:c==="exiting"}});return c==="hidden"?null:u.createElement(re.div,{...d,...h,ref:n,"data-entering":c==="entering"||void 0,"data-exiting":c==="exiting"||void 0})}),zr=u.createContext({isSelected:!1}),Dx=u.forwardRef(function(t,n){[t,n]=pe(t,n,zr);let{isSelected:r,...i}=t;return u.createElement(Cx,{...i,ref:n,className:t.className||"react-aria-SelectionIndicator",name:"SelectionIndicator",isVisible:r})});function Ex(e){let t=ie(e,{labelable:!0}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}const ko=u.createContext({}),xs=class xs extends et{filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let i=this.clone();return n.addDescendants(i,t),i}return null}};xs.type="separator";let Bo=xs;const Im=yt(Bo,function(t,n){[t,n]=pe(t,n,ko);let{elementType:r,orientation:i,style:a,className:l,slot:o,...s}=t,d=r||"hr";d==="hr"&&i==="vertical"&&(d="div");let c=re[d],{separatorProps:f}=Ex({...s,elementType:r,orientation:i}),m=ie(t,{global:!0});return u.createElement(c,{render:t.render,...q(m,f),style:a,className:l??"react-aria-Separator",ref:n,slot:o||void 0})}),ya=new WeakMap;function wx(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Mm(e,t){let n=ya.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${wx(t)}`}class Sx{constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const o=l.shadowRoot;if(o){const s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(s),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(l);if(this.filter?.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const a=n.shadowRoot;if(a){const l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}get currentNode(){return this._currentNode}set currentNode(t){if(!ae(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,o=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),r=i=l.host}else r=r.parentNode;const a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return ae(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let r;if(typeof this.filter=="function"?r=this.filter(t):this.filter?.acceptNode&&(r=this.filter.acceptNode(t)),r===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(n):this.filter?.acceptNode&&(i=this.filter.acceptNode(n)),i===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let a=this.lastChild();return a&&(this.currentNode=a),a}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function Km(e,t,n,r){return ht()?new Sx(e,t,n,r):e.createTreeWalker(t,n,r)}const Lm=u.createContext(null),No="react-aria-focus-scope-restore";let $e=null;function $a(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=u.useRef(null),l=u.useRef(null),o=u.useRef([]),{parentNode:s}=u.useContext(Lm)||{},d=u.useMemo(()=>new Io({scopeRef:o}),[o]);fe(()=>{let m=s||Be.root;if(Be.getTreeNode(m.scopeRef)&&$e&&!va($e,m.scopeRef)){let h=Be.getTreeNode($e);h&&(m=h)}m.addChild(d),Be.addNode(d)},[d,s]),fe(()=>{let m=Be.getTreeNode(o);m&&(m.contain=!!n)},[n]),fe(()=>{let m=a.current?.nextSibling,h=[],p=g=>g.stopPropagation();for(;m&&m!==l.current;)h.push(m),m.addEventListener(No,p),m=m.nextSibling;return o.current=h,()=>{for(let g of h)g.removeEventListener(No,p)}},[t]),Tx(o,r,n),Nx(o,n),Ix(o,r,n),Fx(o,i),u.useEffect(()=>{const m=ce(se(o.current?o.current[0]:void 0));let h=null;if(rt(m,o.current)){for(let p of Be.traverse())p.scopeRef&&rt(m,p.scopeRef.current)&&(h=p);h===Be.getTreeNode(o)&&($e=h.scopeRef)}},[o]),fe(()=>()=>{let m=Be.getTreeNode(o)?.parent?.scopeRef??null;(o===$e||va(o,$e))&&(!m||Be.getTreeNode(m))&&($e=m),Be.removeTreeNode(o)},[o]);let c=u.useMemo(()=>Px(o),[]),f=u.useMemo(()=>({focusManager:c,parentNode:d}),[d,c]);return u.createElement(Lm.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Px(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:l}=t,o=r||ce(se(n[0]??void 0)),s=n[0].previousElementSibling,d=En(n),c=Ae(d,{tabbable:i,accept:l},n);c.currentNode=rt(o,n)?o:s;let f=c.nextNode();return!f&&a&&(c.currentNode=s,f=c.nextNode()),f&&je(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:l}=t,o=r||ce(se(n[0]??void 0)),s=n[n.length-1].nextElementSibling,d=En(n),c=Ae(d,{tabbable:i,accept:l},n);c.currentNode=rt(o,n)?o:s;let f=c.previousNode();return!f&&a&&(c.currentNode=s,f=c.previousNode()),f&&je(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=En(n),l=Ae(a,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let o=l.nextNode();return o&&je(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=En(n),l=Ae(a,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let o=l.previousNode();return o&&je(o,!0),o}}}function En(e){return e[0].parentElement}function Vr(e){let t=Be.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function kx(e){if(!e.form)return Array.from(se(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(r=>!r.form);const t=e.form.elements.namedItem(e.name);let n=xe(e);return t instanceof n.RadioNodeList?Array.from(t).filter(r=>r instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function Bx(e){if(e.checked)return!0;const t=kx(e);return t.length>0&&!t.some(n=>n.checked)}function Nx(e,t){let n=u.useRef(void 0),r=u.useRef(void 0);fe(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=se(i?i[0]:void 0);let l=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Vr(e)||d.isComposing)return;let c=ce(a),f=e.current;if(!f||!rt(c,f))return;let m=En(f),h=Ae(m,{tabbable:!0},f);if(!c)return;h.currentNode=c;let p=d.shiftKey?h.previousNode():h.nextNode();p||(h.currentNode=d.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,p=d.shiftKey?h.previousNode():h.nextNode()),d.preventDefault(),p&&(je(p,!0),p instanceof xe(p).HTMLInputElement&&p.select())},o=d=>{(!$e||va($e,e))&&rt(W(d),e.current)?($e=e,n.current=W(d)):Vr(e)&&!rn(W(d),e)?n.current?je(n.current):$e&&$e.current&&Ao($e.current):Vr(e)&&(n.current=W(d))},s=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=Kn(),f=(c==="virtual"||c===null)&&Mn()&&ml(),m=ce(a);if(!f&&m&&Vr(e)&&!rn(m,e)){$e=e;let h=W(d);h&&h.isConnected?(n.current=h,je(n.current)):$e.current&&Ao($e.current)}})};return a.addEventListener("keydown",l,!1),a.addEventListener("focusin",o,!1),i?.forEach(d=>d.addEventListener("focusin",o,!1)),i?.forEach(d=>d.addEventListener("focusout",s,!1)),()=>{a.removeEventListener("keydown",l,!1),a.removeEventListener("focusin",o,!1),i?.forEach(d=>d.removeEventListener("focusin",o,!1)),i?.forEach(d=>d.removeEventListener("focusout",s,!1))}},[e,t]),fe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Om(e){return rn(e)}function rt(e,t){return!e||!t?!1:t.some(n=>ae(n,e))}function rn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Be.traverse(Be.getTreeNode(t)))if(n&&rt(e,n.current))return!0;return!1}function Ax(e){return rn(e,$e)}function va(e,t){let n=Be.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function je(e,t=!1){if(e!=null&&!t)try{Ie(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function zm(e,t=!0){let n=e[0].previousElementSibling,r=En(e),i=Ae(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=En(e),i=Ae(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function Ao(e,t=!0){je(zm(e,t))}function Fx(e,t){const n=u.useRef(t);u.useEffect(()=>{if(n.current){$e=e;const r=se(e.current?e.current[0]:void 0);!rt(ce(r),$e.current)&&e.current&&Ao(e.current)}n.current=!1},[e])}function Tx(e,t,n){fe(()=>{if(t||n)return;let r=e.current;const i=se(r?r[0]:void 0);let a=l=>{let o=W(l);rt(o,e.current)?$e=e:Om(o)||($e=null)};return i.addEventListener("focusin",a,!1),r?.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r?.forEach(l=>l.removeEventListener("focusin",a,!1))}},[e,t,n])}function Vm(e){let t=Be.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function Ix(e,t,n){const r=u.useRef(typeof document<"u"?ce(se(e.current?e.current[0]:void 0)):null);fe(()=>{let i=e.current;const a=se(i?i[0]:void 0);if(!t||n)return;let l=()=>{(!$e||va($e,e))&&rt(ce(a),e.current)&&($e=e)};return a.addEventListener("focusin",l,!1),i?.forEach(o=>o.addEventListener("focusin",l,!1)),()=>{a.removeEventListener("focusin",l,!1),i?.forEach(o=>o.removeEventListener("focusin",l,!1))}},[e,n]),fe(()=>{const i=se(e.current?e.current[0]:void 0);if(!t)return;let a=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Vr(e)||l.isComposing)return;let o=i.activeElement;if(!rn(o,e)||!Vm(e))return;let s=Be.getTreeNode(e);if(!s)return;let d=s.nodeToRestore,c=Ae(i.body,{tabbable:!0});c.currentNode=o;let f=l.shiftKey?c.previousNode():c.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,s.nodeToRestore=void 0),(!f||!rn(f,e))&&d){c.currentNode=d;do f=l.shiftKey?c.previousNode():c.nextNode();while(rn(f,e));l.preventDefault(),l.stopPropagation(),f?je(f,!0):Om(d)?je(d,!0):o.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),fe(()=>{const i=se(e.current?e.current[0]:void 0);if(!t)return;let a=Be.getTreeNode(e);if(a)return a.nodeToRestore=r.current??void 0,()=>{let l=Be.getTreeNode(e);if(!l)return;let o=l.nodeToRestore,s=ce(i);if(t&&o&&(s&&rn(s,e)||s===i.body&&Vm(e))){let d=Be.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=d.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){_m(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Be.getTreeNode(c.scopeRef)){let f=zm(c.scopeRef.current,!0);_m(f);return}c=c.parent}}})}}},[e,t])}function _m(e){e.dispatchEvent(new CustomEvent(No,{bubbles:!0,cancelable:!0}))&&je(e)}function Ae(e,t,n){let r=t?.tabbable?dl:zs,i=e?.nodeType===Node.ELEMENT_NODE?e:null,a=se(i),l=Km(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(o){return ae(t?.from,o)||t?.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!Bx(o)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:r(o)&&(!n||rt(o,n))&&(!t?.accept||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(l.currentNode=t.from),l}function Rm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:l=t.wrap,accept:o=t.accept}=n,s=i||ce(se(r)),d=Ae(r,{tabbable:a,accept:o});ae(r,s)&&(d.currentNode=s);let c=d.nextNode();return!c&&l&&(d.currentNode=r,c=d.nextNode()),c&&je(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:l=t.wrap,accept:o=t.accept}=n,s=i||ce(se(r)),d=Ae(r,{tabbable:a,accept:o});if(ae(r,s))d.currentNode=s;else{let f=Fo(d);return f&&je(f,!0),f??null}let c=d.previousNode();if(!c&&l){d.currentNode=r;let f=Fo(d);if(!f)return null;c=f}return c&&je(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Ae(r,{tabbable:i,accept:a}).nextNode();return o&&je(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,l=Ae(r,{tabbable:i,accept:a}),o=Fo(l);return o&&je(o,!0),o??null}}}function Fo(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class To{constructor(){this.fastMap=new Map,this.root=new Io({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new Io({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&rt(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new To;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return t}}class Io{constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}}let Be=new To;function Mo(e){return Si()?e.altKey:e.ctrlKey}function wn(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}const jm=new WeakMap;function Mx(e){let t=Ee();return jm.set(e,t),t}function Kx(e){return jm.get(e)}const Hm=1e3;function Um(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=u.useRef({search:"",timeout:void 0}),a=o=>{if(i.current.search.length>0&&o.key===" "){if(o.preventDefault(),(!("continuePropagation"in o)||"continuePropagation"in o&&!o.isPropagationStopped())&&o.stopPropagation(),i.current.search+=" ",t.getKeyForSearch!=null){let s=t.getKeyForSearch(i.current.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(i.current.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},Hm)}},l=o=>{let s=Lx(o.key);if(!(!s||o.ctrlKey||o.metaKey||o.altKey||!ae(o.currentTarget,W(o))||i.current.search.length===0&&s===" ")){if(i.current.search+=s,t.getKeyForSearch!=null){let d=t.getKeyForSearch(i.current.search,n.focusedKey);if(d==null&&(d=t.getKeyForSearch(i.current.search)),d!=null)n.setFocusedKey(d),r&&r(d),o.preventDefault(),"continuePropagation"in o||o.stopPropagation();else{i.current.search="",clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},Hm)}};return u.useEffect(()=>{let o=i.current.timeout;return()=>{clearTimeout(o)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0,onKeyDown:t.getKeyForSearch?l:void 0}}}function Lx(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Wm(e,t){const n=u.useRef(!0),r=u.useRef(null);fe(()=>(n.current=!0,()=>{n.current=!1}),[]),fe(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function xa(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:l=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:f,allowsTabNavigation:m=!1,scrollRef:h=r,linkBehavior:p="action",UNSTABLE_focusOnEntry:g}=e,{direction:y}=be(),$=sn();const x=(V,j,me)=>{if(j!=null){if(t.isLink(j)&&p==="selection"&&d&&!Mo(V)){jt.flushSync(()=>{t.setFocusedKey(j,me)});let he=wn(r,j),Bt=t.getItemProps(j);if(he){$.open(he,V,Bt.href,Bt.routerOptions);return}return!1}if(t.setFocusedKey(j,me),t.isLink(j)&&p==="override")return!1;if(V.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(j);return}else if(d&&!Mo(V)){t.replaceSelection(j);return}}return!1};let v=V=>{if(n.getKeyBelow){let j=t.focusedKey!=null?n.getKeyBelow?.(t.focusedKey):n.getFirstKey?.();if(j==null&&a&&(j=n.getFirstKey?.(t.focusedKey)),j!=null){x(V,j);return}}return!1},C=V=>{if(n.getKeyAbove){let j=t.focusedKey!=null?n.getKeyAbove?.(t.focusedKey):n.getLastKey?.();if(j==null&&a&&(j=n.getLastKey?.(t.focusedKey)),j!=null){x(V,j);return}}return!1},w=V=>{if(n.getFirstKey){if(t.focusedKey===null&&V.shiftKey)return!1;let j=n.getFirstKey(t.focusedKey,br(V));if(t.setFocusedKey(j),j!=null){if(br(V)&&V.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(j);return}else if(d){t.replaceSelection(j);return}}}return!1},S=V=>{if(n.getKeyLeftOf){let j=t.focusedKey!=null?n.getKeyLeftOf?.(t.focusedKey):n.getFirstKey?.();if(j==null&&a&&(j=y==="rtl"?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),j!=null){x(V,j,y==="rtl"?"first":"last");return}}return!1},B=V=>{if(n.getKeyRightOf){let j=t.focusedKey!=null?n.getKeyRightOf?.(t.focusedKey):n.getFirstKey?.();if(j==null&&a&&(j=y==="rtl"?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),j!=null){x(V,j,y==="rtl"?"last":"first");return}}return!1},E=V=>{if(n.getLastKey){if(t.focusedKey===null&&V.shiftKey)return!1;let j=n.getLastKey(t.focusedKey,br(V));if(t.setFocusedKey(j),j!=null){if(br(V)&&V.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(j);return}else if(d){t.replaceSelection(j);return}}}return!1},k=V=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let j=n.getKeyPageBelow(t.focusedKey);if(j!=null)return x(V,j)}return!1},K=V=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let j=n.getKeyPageAbove(t.focusedKey);if(j!=null)return x(V,j)}return!1},T=()=>{if(t.selectionMode==="multiple"&&o!==!0){t.selectAll();return}return!1},I=()=>{if(s==="clearSelection"&&!l&&t.selectedKeys.size!==0){t.clearSelection();return}return!1},R=()=>{if(!m&&r.current){let V=Ae(r.current,{tabbable:!0}),j,me;do me=V.lastChild(),me&&(j=me);while(me);let he=ce();j&&(!Ut(j)||he&&!dl(he))&&Xe(j)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},D=()=>(!m&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),M=(V,j)=>({[Je()?V+"+Shift+Alt":V+"+Shift+Control"]:j,[V+"+Shift"]:j,[Je()?V+"+Alt":V+"+Control"]:j,[V]:j}),{keyboardProps:G}=Le({shortcuts:{...M("ArrowDown",v),...M("ArrowUp",C),...M("ArrowLeft",S),...M("ArrowRight",B),...M("PageDown",k),...M("PageUp",K)},allowRepeats:!0}),{keyboardProps:O}=Le({shortcuts:{...M("Home",w),...M("End",E),"Mod+A":T,Escape:I,Tab:R,"Tab+Shift":D}}),Y=u.useRef({top:0,left:0});lt(h,"scroll",()=>{Y.current={top:h.current?.scrollTop??0,left:h.current?.scrollLeft??0}});let P=V=>{if(t.isFocused){ae(V.currentTarget,W(V))||t.setFocused(!1);return}if(!ae(V.currentTarget,W(V)))return;let j=Kn();t.setFocused(!0);let me=he=>{he!=null&&(t.setFocusedKey(he),d&&!t.isSelected(he)&&t.replaceSelection(he))};if(g&&(j==="keyboard"||j==="virtual"))me(g==="first"?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let he=V.relatedTarget;he&&V.currentTarget.compareDocumentPosition(he)&Node.DOCUMENT_POSITION_FOLLOWING?me(t.lastSelectedKey??n.getLastKey?.()):me(t.firstSelectedKey??n.getFirstKey?.())}else h.current&&(h.current.scrollTop=Y.current.top,h.current.scrollLeft=Y.current.left);if(t.focusedKey!=null&&h.current){let he=wn(r,t.focusedKey);he instanceof HTMLElement&&(!Ut(he)&&!f&&Xe(he),(j==="keyboard"||g&&j==="virtual")&&Ct(he,{containingElement:r.current}))}},N=V=>{ae(V.currentTarget,V.relatedTarget)||t.setFocused(!1)},_=u.useRef(!1);lt(r,q$,f?V=>{let{detail:j}=V;V.stopPropagation(),t.setFocused(!0),j?.focusStrategy==="first"&&(_.current=!0)}:void 0);let Q=n.getFirstKey?.()??null;Wm(()=>{if(_.current)if(Q==null){let V=ce();Os(r.current),ol(V,null),t.collection.size>0&&(_.current=!1)}else t.setFocusedKey(Q),_.current=!1},[Q,t.collection.size]),Wm(()=>{t.collection.size>0&&(_.current=!1)},[t.focusedKey]),lt(r,Y$,f?V=>{V.stopPropagation(),t.setFocused(!1),V.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);const X=u.useRef(i),A=u.useRef(!1);u.useEffect(()=>{if(X.current){let V=null;i==="first"&&(V=n.getFirstKey?.()??null),i==="last"&&(V=n.getLastKey?.()??null);let j=t.selectedKeys;if(j.size){for(let me of j)if(t.canSelectItem(me)){V=me;break}}t.setFocused(!0),t.setFocusedKey(V),V==null&&!f&&r.current&&Ie(r.current),t.collection.size>0&&(X.current=!1,A.current=!0)}});let F=u.useRef(t.focusedKey),z=u.useRef(null);u.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==F.current||A.current)&&h.current&&r.current){let V=Kn(),j=wn(r,t.focusedKey);if(!(j instanceof HTMLElement))return;(V==="keyboard"||A.current)&&(z.current&&cancelAnimationFrame(z.current),z.current=requestAnimationFrame(()=>{h.current&&(da(h.current,j),V!=="virtual"&&Ct(j,{containingElement:r.current}))}))}!f&&t.isFocused&&t.focusedKey==null&&F.current!=null&&r.current&&Ie(r.current),F.current=t.focusedKey,A.current=!1}),u.useEffect(()=>()=>{z.current&&cancelAnimationFrame(z.current)},[]),lt(r,"react-aria-focus-scope-restore",V=>{V.preventDefault(),t.setFocused(!0)});let L={...q(O,G),onFocus:P,onBlur:N,onMouseDown(V){h.current===W(V)&&V.preventDefault()}},{typeSelectProps:J}=Um({keyboardDelegate:n,selectionManager:t});c||(L=q(J,L));let le;f||(le=t.focusedKey==null?0:-1);let Ke=Mx(t.collection);return{collectionProps:q(L,{tabIndex:le,"data-collection":Ke})}}class Ko{constructor(t){this.ref=t}getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?wn(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-i.left-n.clientLeft+n.scrollLeft,y:a.top-i.top-n.clientTop+n.scrollTop,width:a.width,height:a.height}}getContentSize(){let t=this.ref.current;return{width:t?.scrollWidth??0,height:t?.scrollHeight??0}}getVisibleRect(){let t=this.ref.current;return{x:t?.scrollLeft??0,y:t?.scrollTop??0,width:t?.clientWidth??0,height:t?.clientHeight??0}}}class _r{constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Ko(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Ko(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findNextNonDisabled(t,n,r=!1){let i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a?.type==="item"&&(r||!this.isDisabled(a)))return i;i=n(i)}return null}getNextKey(t,n){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,i=>this.collection.getKeyAfter(i),n?.includeDisabled)}getPreviousKey(t,n){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,i=>this.collection.getKeyBefore(i),n?.includeDisabled)}findKey(t,n,r){let i=t,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let l=a;do{if(i=n(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&r(l,a)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}isReversed(t){let n=this.getNextKey(t),r=wn(this.ref,t);if(n!=null){let a=wn(this.ref,n);return!r||!a?!1:r.getBoundingClientRect().top>a.getBoundingClientRect().top}let i=this.getPreviousKey(t);if(i!=null){let a=wn(this.ref,i);return!r||!a?!1:a.getBoundingClientRect().top>r.getBoundingClientRect().top}return!1}getKeyBelow(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getPreviousKey(t,n):this.getNextKey(t,n):this.getNextKey(t,n)}getKeyAbove(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getNextKey(t,n):this.getPreviousKey(t,n):this.getPreviousKey(t,n)}getNextColumn(t,n,r){return n?this.getPreviousKey(t,r):this.getNextKey(t,r)}getKeyRightOf(t,n){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,i=>this.layoutDelegate[r](i),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl",n):this.findKey(t,i=>this.getNextColumn(i,this.direction==="rtl",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl",n):null}getKeyLeftOf(t,n){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,i=>this.layoutDelegate[r](i),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr",n):this.findKey(t,i=>this.getNextColumn(i,this.direction==="ltr",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr",n):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let i=this.isReversed(t);if(n&&!tn(n))return this.getFirstKey();let a=t;if(this.orientation==="horizontal"){let l=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>l&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=this.layoutDelegate.getVisibleRect(),o=i?r.y-l.height:Math.max(0,r.y+r.height-l.height);for(;r&&r.y>o&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??(i?this.getLastKey():this.getFirstKey())}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let i=this.isReversed(t);if(n&&!tn(n))return this.getLastKey();let a=t;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,r.x-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??(i?this.getFirstKey():this.getLastKey())}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i);if(!a)return null;let l=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(l,t)===0)return i;i=this.getNextKey(i)}return null}}let Lo=new Map;function Qn(e){let{locale:t}=be(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Lo.has(n))return Lo.get(n);let r=new Intl.Collator(t,e);return Lo.set(n,r),r}function Gm(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:l,orientation:o}=e,s=Qn({usage:"search",sensitivity:"base"}),d=t.disabledBehavior,c=u.useMemo(()=>a||new _r({collection:n,disabledKeys:r,disabledBehavior:d,ref:i,collator:s,layoutDelegate:l,orientation:o}),[a,l,n,r,i,s,d,o]),{collectionProps:f}=xa({...e,ref:i,selectionManager:t,keyboardDelegate:c});return{listProps:f}}function Ox(e,t,n){let r=ie(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.orientation||"vertical",l=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&l==="action"&&(l="override");let{listProps:o}=Gm({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:l}),{focusWithinProps:s}=jn({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),d=Ee(e.id);ya.set(t,{id:d,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:l,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:f}=Il({...e,id:d,labelElementType:"span"});return{labelProps:c,listBoxProps:q(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":a,...q(f,o)})}}const zx=500;function Oo(e){let{isDisabled:t,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:a,threshold:l=zx,accessibilityDescription:o}=e;const s=u.useRef(void 0);let{addGlobalListener:d,removeAllGlobalListeners:c}=Rn(),f=p=>n?p.pointerType===n:p.pointerType==="mouse"||p.pointerType==="touch",{pressProps:m}=It({isDisabled:t,onPressStart(p){if(p.continuePropagation(),f(p)){r&&r({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),d(p.target,"click",y=>y.preventDefault(),{once:!0}),se(p.target).activeElement!==p.target&&Xe(p.target),a&&a({...p,type:"longpress"}),s.current=void 0},l),p.pointerType==="touch"&&d(p.target,"contextmenu",y=>y.preventDefault(),{once:!0});let g=xe(p.target);d(g,"pointerup",()=>{setTimeout(()=>{c()},100)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),i&&f(p)&&i({...p,type:"longpressend"})}}),h=xn(a&&!t?o:void 0);return{longPressProps:q(m,h)}}function Rr(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:l,focus:o,isDisabled:s,onAction:d,allowsDifferentPressOrigin:c,linkBehavior:f="action"}=e,m=sn();t=Ee(t);let h=F=>{if(F.pointerType==="keyboard"&&Mo(F))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let z=n.getItemProps(r);m.open(i.current,F,z.href,z.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):F&&F.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||F&&(br(F)||F.pointerType==="touch"||F.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};u.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Os(i.current):o?o():ce()!==i.current&&i.current&&Ie(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let p={};!l&&!s?p={tabIndex:r===n.focusedKey?0:-1,onFocus(F){W(F)===i.current&&n.setFocusedKey(r)}}:s&&(p.onMouseDown=F=>{F.preventDefault()}),u.useEffect(()=>{s&&n.focusedKey===r&&n.setFocusedKey(null)},[n,s,r]);let g=n.isLink(r)&&f==="override",y=d&&e.UNSTABLE_itemBehavior==="action",$=n.isLink(r)&&f!=="selection"&&f!=="none",x=!s&&n.canSelectItem(r)&&!g&&!y,v=(d||$)&&!s,C=v&&(n.selectionBehavior==="replace"?!x:!x||n.isEmpty),w=v&&x&&n.selectionBehavior==="replace",S=C||w,B=u.useRef(null),E=S&&x,k=u.useRef(!1),K=u.useRef(!1),T=n.getItemProps(r),I=F=>{d&&(d(),i.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),$&&i.current&&m.open(i.current,F,T.href,T.routerOptions)},R={ref:i};a?(R.onPressStart=F=>{B.current=F.pointerType,k.current=E,F.pointerType==="keyboard"&&(!S||Ym(F.key))&&h(F)},c?(R.onPressUp=C?void 0:F=>{F.pointerType==="mouse"&&x&&h(F)},R.onPress=C?I:F=>{F.pointerType!=="keyboard"&&F.pointerType!=="mouse"&&x&&h(F)}):R.onPress=F=>{if(C||w&&F.pointerType!=="mouse"){if(F.pointerType==="keyboard"&&!Zm(F.key))return;I(F)}else F.pointerType!=="keyboard"&&x&&h(F)}):(R.onPressStart=F=>{B.current=F.pointerType,k.current=E,K.current=C,x&&(F.pointerType==="mouse"&&!C||F.pointerType==="keyboard"&&(!v||Ym(F.key)))&&h(F)},R.onPress=F=>{(F.pointerType==="touch"||F.pointerType==="pen"||F.pointerType==="virtual"||F.pointerType==="keyboard"&&S&&Zm(F.key)||F.pointerType==="mouse"&&K.current)&&(S?I(F):x&&h(F))});let D=Kx(n.collection);if(p["data-collection"]=D,p["data-key"]=r,R.preventFocusOnPress=l,l&&(R=q(R,{onPressStart(F){F.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(F){F.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),T)for(let F of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])T[F]&&(R[F]=at(R[F],T[F]));let{pressProps:M,isPressed:G}=It(R),O=w?F=>{B.current==="mouse"&&(F.stopPropagation(),F.preventDefault(),I(F))}:void 0,{longPressProps:Y}=Oo({isDisabled:!E,onLongPress(F){F.pointerType==="touch"&&(h(F),n.setSelectionBehavior("toggle"))}}),P=F=>{B.current==="touch"&&k.current&&F.preventDefault()},N=f!=="none"&&n.isLink(r)?F=>{At.isOpening||F.preventDefault()}:void 0,_=q(p,x||C||l&&!s?M:{},E?Y:{},{onDoubleClick:O,onDragStartCapture:P,onClick:N,id:t},l?{onMouseDown:F=>F.preventDefault()}:void 0),Q=F=>{let z=F;for(;z&&z!==i.current;){let L=z.getAttribute("data-collection");if(L!=null)return L!==D;z=z.parentElement}return dl(F)},X=_.onPointerDown;_.onPointerDown=F=>{let z=W(F);if(z&&z!==i.current&&Q(z)){F.stopPropagation();return}X?.(F)};let A=_.onMouseDown;return _.onMouseDown=F=>{let z=W(F);if(z&&z!==i.current&&Q(z)){F.stopPropagation();return}A?.(F)},{itemProps:_,isPressed:G,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:x,hasAction:S}}function Zm(e){return e==="Enter"}function Ym(e){return e===" "}function Ne(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Ot(e){return jr(e,0)}function jr(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function er(e){let t;for(let n of e)t=n;return t}function zo(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...qm(e,t),t],i=[...qm(e,n),n],a=r.slice(0,i.length).findIndex((l,o)=>l!==i[o]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===t)>=0,-1)}function qm(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Xm=new WeakMap;function Vo(e){let t=Xm.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(Ne(a,e)):a.type==="item"&&n++};return r(e),Xm.set(e,n),n}function Vx(e,t,n){let{key:r}=e,i=ya.get(t),a=e.isDisabled??t.selectionManager.isDisabled(r),l=e.isSelected??t.selectionManager.isSelected(r),o=e.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,s=e.shouldFocusOnHover??i?.shouldFocusOnHover,d=e.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,c=e.isVirtualized??i?.isVirtualized,f=mt(),m=mt(),h={role:"option","aria-disabled":a||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?l:void 0,"aria-label":e["aria-label"],"aria-labelledby":f,"aria-describedby":m},p=t.collection.getItem(r);if(c){let k=Number(p?.index);h["aria-posinset"]=Number.isNaN(k)?void 0:k+1,h["aria-setsize"]=Vo(t.collection)}let g=i?.onAction?()=>i?.onAction?.(r):void 0,y=Mm(t,r),{itemProps:$,isPressed:x,isFocused:v,hasAction:C,allowsSelection:w}=Rr({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:o,allowsDifferentPressOrigin:o&&s,isVirtualized:c,shouldUseVirtualFocus:d,isDisabled:a,onAction:g||p?.props?.onAction?at(p?.props?.onAction,g):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:y}),{hoverProps:S}=ze({isDisabled:a||!s,onHoverStart(){Wt()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}}),B=ie(p?.props);delete B.id;let E=Pi(p?.props);return{optionProps:{...h,...q(B,$,S,E),id:y},labelProps:{id:f},descriptionProps:{id:m},isFocused:v,isFocusVisible:v&&t.selectionManager.isFocused&&Wt(),isSelected:l,isDisabled:a,isPressed:x,allowsSelection:w,hasAction:C}}function _x(e){let{heading:t,"aria-label":n}=e,r=Ee();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation",onMouseDown:i=>{i.preventDefault()}}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}function Jm(e){const t=u.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}class _o{constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let o of l.childNodes)n(o)};for(let l of t)n(l);let r=null,i=0,a=0;for(let[l,o]of this.keyMap)r?(r.nextKey=l,o.prevKey=r.key):(this.firstKey=l,o.prevKey=void 0),o.type==="item"&&(o.index=i++),(o.type==="section"||o.type==="item")&&a++,r=o,r.nextKey=void 0;this._size=a,this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}}class st extends Set{constructor(t,n,r){super(t),t instanceof st?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Rx(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Hr(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,l=u.useRef(!1),[,o]=u.useState(!1),s=u.useRef(null),d=u.useRef(null),[,c]=u.useState(null),f=u.useMemo(()=>Qm(e.selectedKeys),[e.selectedKeys]),m=u.useMemo(()=>Qm(e.defaultSelectedKeys,new st),[e.defaultSelectedKeys]),[h,p]=He(f,m,e.onSelectionChange),g=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,$]=u.useState(i);i==="replace"&&y==="toggle"&&typeof h=="object"&&h.size===0&&$("replace");let x=u.useRef(i);return u.useEffect(()=>{i!==x.current&&($(i),x.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return l.current},setFocused(v){l.current=v,o(v)},get focusedKey(){return s.current},get childFocusStrategy(){return d.current},setFocusedKey(v,C="first"){s.current=v,d.current=C,c(v)},selectedKeys:h,setSelectedKeys(v){(r||!Rx(v,h))&&p(v)},disabledKeys:g,disabledBehavior:a}}function Qm(e,t){return e?e==="all"?"all":new st(e):t}class tr{constructor(t,n,r){this.collection=t,this.state=n,this.allowsCellSelection=r?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null,this.fullCollection=r?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&zo(this.collection,r,t)<0)&&(t=r)}return t?.key??null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&zo(this.collection,r,t)>0)&&(t=r)}return t?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new st([n],n,n);else{let i=this.state.selectedKeys,a=i.anchorKey??n;r=new st(i,a,n);for(let l of this.getKeyRange(a,i.currentKey??n))r.delete(l);for(let l of this.getKeyRange(n,a))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?zo(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let r=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&r.push(i),i===n)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new st(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new st([n],n,n):new st;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new st;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=this.fullCollection??this.collection,n=[],r=i=>{for(;i!=null;){if(this.canSelectItemIn(i,t)){let a=t.getItem(i);a?.type==="item"&&n.push(i),a?.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r(Ot(Ne(a,t))?.key??null)}i=t.getKeyAfter(i)}};return r(t.getFirstKey()),n}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new st)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){return this.canSelectItemIn(t,this.collection)}canSelectItemIn(t,n){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=n.getItem(t);return!(!r||r?.props?.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){let n=this.collection.getItem(t);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!n?.props?.isDisabled)&&n?.props?.disabledBehavior!=="selection"}isLink(t){return!!this.collection.getItem(t)?.props?.href}getItemProps(t){return this.collection.getItem(t)?.props}withCollection(t){return new tr(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}class jx{build(t,n){return this.context=n,e4(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(u.isValidElement(n)&&n.type===u.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let a of r)yield*this.getFullNode({value:a,index:i},{renderer:n}),i++}else{let i=[];u.Children.forEach(n,l=>{l&&i.push(l)});let a=0;for(let l of i){let o=this.getFullNode({element:l,index:a},{});for(let s of o)a++,yield s}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){let l=a.key??a.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(u.isValidElement(t.element)&&t.element.type===u.Fragment){let s=[];u.Children.forEach(t.element.props.children,c=>{s.push(c)});let d=t.index??0;for(const c of s)yield*this.getFullNode({element:c,index:d++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=i?i.key:null,yield s;return}a=n.renderer(t.value)}if(u.isValidElement(a)){let s=a.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let m=a.type;throw new Error(`Unknown element <${m}> in collection.`)}let d=s.getCollectionNode(a.props,this.context),c=t.index??0,f=d.next();for(;!f.done&&f.value;){let m=f.value;t.index=c;let h=m.key??null;h==null&&(h=m.element?null:this.getKey(a,t,n,r));let g=[...this.getFullNode({...m,key:h,index:c,wrapper:Hx(t.wrapper,m.wrapper)},this.getChildState(n,m),r?`${r}${a.key}`:a.key,i)];for(let y of g){if(y.value=m.value??t.value??null,y.value&&this.cache.set(y.value,y),t.type&&y.type!==t.type)throw new Error(`Unsupported type <${Ro(y.type)}> in <${Ro(i?.type??"unknown parent type")}>. Only <${Ro(t.type)}> is supported.`);c++,yield y}f=d.next(g)}return}if(t.key==null||t.type==null)return;let l=this,o={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:t.value??null,level:(i?.level??0)+(i?.type==="item"?1:0),index:t.index,rendered:t.rendered,textValue:t.textValue??"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:e4(function*(){if(!t.hasChildNodes||!t.childNodes)return;let s=0;for(let d of t.childNodes()){d.key!=null&&(d.key=`${o.key}${d.key}`);let c=l.getFullNode({...d,index:s},l.getChildState(n,d),o.key,o);for(let f of c)s++,yield f}})};yield o}constructor(){this.cache=new WeakMap}}function e4(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Hx(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Ro(e){return e[0].toUpperCase()+e.slice(1)}function jo(e,t,n){let r=u.useMemo(()=>new jx,[]),{children:i,items:a,collection:l}=e;return u.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:a},n);return t(s)},[r,i,a,l,n,t])}function Ca(e){let{filter:t,layoutDelegate:n}=e,r=Hr(e),i=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=u.useCallback(d=>t?new _o(t(d)):new _o(d),[t]),l=u.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=jo(e,a,l),s=u.useMemo(()=>new tr(o,r,{layoutDelegate:n}),[o,r,n]);return t4(o,s),{collection:o,disabledKeys:i,selectionManager:s}}function Ux(e,t){let n=u.useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return t4(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function t4(e,t){const n=u.useRef(null);u.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getKeyAfter(t.focusedKey),i=null;for(;r!=null;){let a=e.getItem(r);if(a&&a.type==="item"&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyAfter(r)}if(i==null)for(r=n.current.getKeyBefore(t.focusedKey);r!=null;){let a=e.getItem(r);if(a&&a.type==="item"&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyBefore(r)}t.setFocusedKey(i)}n.current=e},[e,t])}function n4(e,t){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:a="end"}=e,l=u.useRef(null),o=De(s=>{for(let d of s)d.isIntersecting&&r&&r()});fe(()=>{if(t.current){const s=100*i,d=a==="start"?`${s}% 0px 0px 0px`:`0px ${s}% ${s}% ${s}%`;l.current=new IntersectionObserver(o,{root:ot(t?.current),rootMargin:d}),l.current.observe(t.current)}return()=>{l.current&&l.current.disconnect()}},[n,t,i,a])}const Ur=u.createContext(null),Sn=u.createContext(null),Wx=u.forwardRef(function(t,n){[t,n]=pe(t,n,Ur);let r=u.useContext(Sn);return r?u.createElement(r4,{state:r,props:t,listBoxRef:n}):u.createElement(fn,{content:u.createElement(mn,t)},i=>u.createElement(Gx,{props:t,listBoxRef:n,collection:i}))});function Gx({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=u.useContext(ge),i=Ca({...e,layoutDelegate:r});return u.createElement(r4,{state:i,props:e,listBoxRef:t})}function r4({state:e,props:t,listBoxRef:n}){[t,n]=pe(t,n,$r);let{dragAndDropHooks:r,layout:i="stack",orientation:a="vertical",filter:l}=t,o=Ux(e,l),{collection:s,selectionManager:d}=o,c=!!r?.useDraggableCollectionState,f=!!r?.useDroppableCollectionState,{direction:m}=be(),{disabledBehavior:h,disabledKeys:p}=d,g=Qn({usage:"search",sensitivity:"base"}),{isVirtualized:y,layoutDelegate:$,dropTargetDelegate:x,CollectionRoot:v}=u.useContext(ge),C=u.useMemo(()=>t.keyboardDelegate||new _r({collection:s,collator:g,ref:n,disabledKeys:p,disabledBehavior:h,layout:i,orientation:a,direction:m,layoutDelegate:$}),[s,g,n,h,p,a,m,t.keyboardDelegate,i,$]),{listBoxProps:w}=Ox({...t,shouldSelectOnPressUp:c||t.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:y},o,n),S=u.useRef(c),B=u.useRef(f);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(S.current!==c&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),B.current!==f&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[c,f]);let E,k,K,T=!1,I=null,R=u.useRef(null);if(c&&r){E=r.useDraggableCollectionState({collection:s,selectionManager:d,preview:r.renderDragPreview?R:void 0}),r.useDraggableCollection({},E,n);let Q=r.DragPreview;I=r.renderDragPreview?u.createElement(Q,{ref:R},r.renderDragPreview):null}if(f&&r){k=r.useDroppableCollectionState({collection:s,selectionManager:d});let Q=r.dropTargetDelegate||x||new r.ListDropTargetDelegate(s,n,{orientation:a,layout:i,direction:m});K=r.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:Q},k,n),T=k.isDropTarget({type:"root"})}let{focusProps:D,isFocused:M,isFocusVisible:G}=Oe(),O=o.collection.size===0,Y={isDropTarget:T,isEmpty:O,isFocused:M,isFocusVisible:G,layout:t.layout||"stack",orientation:a,state:o},P=ue({...t,children:void 0,defaultClassName:"react-aria-ListBox",values:Y}),N=null;O&&t.renderEmptyState&&(N=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(Y)));let _=ie(t,{global:!0});return u.createElement($a,null,u.createElement(re.div,{...q(_,P,w,D,K?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":T||void 0,"data-empty":O||void 0,"data-focused":M||void 0,"data-focus-visible":G||void 0,"data-layout":t.layout||"stack","data-orientation":a},u.createElement(Pe,{values:[[Ur,t],[Sn,o],[ut,{dragAndDropHooks:r,dragState:E,dropState:k}],[ko,{elementType:"div"}],[So,{render:qx}],[Cd,{name:"ListBoxSection",render:Zx}]]},u.createElement(ga,null,u.createElement(v,{collection:s,scrollRef:n,persistedKeys:Fm(d,r,k),renderDropIndicator:ba(r,k)}))),N,I))}function Zx(e,t,n,r="react-aria-ListBoxSection"){let i=u.useContext(Sn),{dragAndDropHooks:a,dropState:l}=u.useContext(ut),{CollectionBranch:o}=u.useContext(ge),[s,d]=un(),{headingProps:c,groupProps:f}=_x({heading:d,"aria-label":e["aria-label"]??void 0}),m=ue({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),h=ie(e,{global:!0});return delete h.id,u.createElement(re.section,{...q(h,m,f),ref:t},u.createElement(Po.Provider,{value:{...c,ref:s}},u.createElement(o,{collection:i.collection,parent:n,renderDropIndicator:ba(a,l)})))}const Yx=yt(Ii,function(t,n,r){let i=Te(n),a=u.useContext(Sn),{dragAndDropHooks:l,dragState:o,dropState:s}=u.useContext(ut),d=o&&!(o.isDisabled||o.selectionManager.isDisabled(r.key)),{optionProps:c,labelProps:f,descriptionProps:m,...h}=Vx({key:r.key,"aria-label":t?.["aria-label"]},a,i),{hoverProps:p,isHovered:g}=ze({isDisabled:!h.allowsSelection&&!h.hasAction&&!d,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),{keyboardProps:y}=Le(t),{focusProps:$}=vl(t),x=null;o&&l&&(x=l.useDraggableItem({key:r.key,hasAction:h.hasAction},o));let v=null;s&&l&&(v=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let C=o&&o.isDragging(r.key),w=ue({...t,id:void 0,children:t.children,defaultClassName:"react-aria-ListBoxItem",values:{...h,isHovered:g,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior,allowsDragging:!!o,isDragging:C,isDropTarget:v?.isDropTarget}});u.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[r.textValue]);let S=t.href?re.a:re.div,B=ie(t,{global:!0});return delete B.id,delete B.onClick,t.href&&c.tabIndex==null&&(c.tabIndex=-1),u.createElement(S,{...q(B,w,c,p,y,$,x?.dragProps,v?.dropProps),ref:i,"data-allows-dragging":!!o||void 0,"data-selected":h.isSelected||void 0,"data-disabled":h.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":C||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":a.selectionManager.selectionMode==="none"?void 0:a.selectionManager.selectionMode},u.createElement(Pe,{values:[[tt,{slots:{[Nt]:f,label:f,description:m}}],[zr,{isSelected:h.isSelected}]]},w.children))});function qx(e,t){t=Te(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(ut),{dropIndicatorProps:i,isHidden:a,isDropTarget:l}=n.useDropIndicator(e,r,t);return a?null:u.createElement(Jx,{...e,dropIndicatorProps:i,isDropTarget:l,ref:t})}function Xx(e,t){let{dropIndicatorProps:n,isDropTarget:r,...i}=e,a=ue({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement(u.Fragment,null,u.createElement(re.div,{...n,...a,role:"option",ref:t,"data-drop-target":r||void 0}))}const Jx=u.forwardRef(Xx);yt(Ti,function(t,n,r){let i=u.useContext(Sn),{isLoading:a,onLoadMore:l,scrollOffset:o,...s}=t,d=u.useRef(null),c=u.useMemo(()=>({onLoadMore:l,collection:i?.collection,sentinelRef:d,scrollOffset:o}),[l,o,i?.collection]);n4(c,d);let f=ue({...s,id:void 0,children:r.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),m={tabIndex:-1};return u.createElement(u.Fragment,null,u.createElement("div",{style:{position:"relative",width:0,height:0},inert:Jm(!0)},u.createElement("div",{"data-testid":"loadMoreSentinel",ref:d,style:{position:"absolute",height:1,width:1}})),a&&f.children&&u.createElement(u.Fragment,null,u.createElement(re.div,{...q(ie(t,{global:!0}),m),...f,role:"option",ref:n},f.children)))});const i4=u.createContext({placement:"bottom"}),Qx=u.forwardRef(function(t,n){[t,n]=pe(t,n,i4);let r=t.placement,i={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(i[r]="100%");let a=ue({...t,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});a.style&&Object.keys(a.style).forEach(o=>a.style[o]===void 0&&delete a.style[o]);let l=ie(t);return u.createElement(re.div,{...l,...a,style:{...i,...a.style},ref:n,"data-placement":r})}),e9=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function a4(e){return e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer!==void 0}let Wr=new WeakMap,We=[];function Ho(e,t){let n=xe(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&e9,l=new Set(e),o=new Set,s=y=>a&&y instanceof n.HTMLElement?y.inert:y.getAttribute("aria-hidden")==="true",d=(y,$)=>{a&&y instanceof n.HTMLElement?y.inert=$:$?y.setAttribute("aria-hidden","true"):(y.removeAttribute("aria-hidden"),y instanceof n.HTMLElement&&(y.inert=!1))},c=new Set;if(ht()){let y=i.getRootNode();for(let $ of e){let x=$.getRootNode();for(;ll(x)&&x!==y;)c.add(x),x=x.host.getRootNode()}}let f=y=>{for(let C of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(C);let $=C=>{if(o.has(C)||l.has(C)||C.parentElement&&o.has(C.parentElement)&&C.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let w of l)if(ae(C,w))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},x=Km(se(y),y,NodeFilter.SHOW_ELEMENT,{acceptNode:$}),v=$(y);if(v===NodeFilter.FILTER_ACCEPT&&m(y),v!==NodeFilter.FILTER_REJECT){let C=x.nextNode();for(;C!=null;)m(C),C=x.nextNode()}},m=y=>{let $=Wr.get(y)??0;s(y)&&$===0||($===0&&d(y,!0),o.add(y),Wr.set(y,$+1))};We.length&&We[We.length-1].disconnect(),f(i);let h=new MutationObserver(y=>{for(let $ of y)if($.type==="childList"){if($.target.isConnected&&![...l,...o].some(x=>ae(x,$.target)))for(let x of $.addedNodes)(x instanceof HTMLElement||x instanceof SVGElement)&&a4(x)?l.add(x):x instanceof Element&&f(x);if(ht()){for(let x of c)if(!x.isConnected){h.disconnect();break}}}});h.observe(i,{childList:!0,subtree:!0});let p=new Set;if(ht())for(let y of c){let $=new MutationObserver(x=>{for(let v of x)if(v.type==="childList"){if(v.target.isConnected&&![...l,...o].some(C=>ae(C,v.target)))for(let C of v.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&a4(C)?l.add(C):C instanceof Element&&f(C);if(ht()){for(let C of c)if(!C.isConnected){h.disconnect();break}}}});$.observe(y,{childList:!0,subtree:!0}),p.add($)}let g={visibleNodes:l,hiddenNodes:o,observe(){h.observe(i,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return We.push(g),()=>{if(h.disconnect(),ht())for(let y of p)y.disconnect();for(let y of o){let $=Wr.get(y);$!=null&&($===1?(d(y,!1),Wr.delete(y)):Wr.set(y,$-1))}g===We[We.length-1]?(We.pop(),We.length&&We[We.length-1].observe()):We.splice(We.indexOf(g),1)}}function t9(e){let t=We[We.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}const it={top:"top",bottom:"top",left:"left",right:"left"},Da={top:"bottom",bottom:"top",left:"right",right:"left"},n9={top:"left",left:"top"},Uo={top:"height",left:"width"},l4={width:"totalWidth",height:"totalHeight"},Ea={};let r9=()=>typeof document<"u"?window.visualViewport:null;function o4(e,t){let n=0,r=0,i=0,a=0,l=0,o=0,s={},d=(t?.scale??1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let c=document.documentElement;i=c.clientWidth,a=c.clientHeight,n=t?.width??i,r=t?.height??a,s.top=c.scrollTop||e.scrollTop,s.left=c.scrollLeft||e.scrollLeft,t&&(l=t.offsetTop,o=t.offsetLeft)}else({width:n,height:r,top:l,left:o}=Gr(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,i=n,a=r;return gt()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d&&(s.top=0,s.left=0,l=t?.pageTop??0,o=t?.pageLeft??0),{width:n,height:r,totalWidth:i,totalHeight:a,scroll:s,top:l,left:o}}function i9(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function u4(e,t,n,r,i,a,l){let o=i.scroll[e]??0,s=r[Uo[e]],d=l[e]+r.scroll[it[e]]+a,c=l[e]+r.scroll[it[e]]+s-a,f=t-o+r.scroll[it[e]]+l[e]-r[it[e]],m=t-o+n+r.scroll[it[e]]+l[e]-r[it[e]];return f<d?d-f:m>c?Math.max(c-m,d-f):0}function a9(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function s4(e){if(Ea[e])return Ea[e];let[t,n]=e.split(" "),r=it[t]||"right",i=n9[r];it[n]||(n="center");let a=Uo[r],l=Uo[i];return Ea[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:l},Ea[e]}function Wo(e,t,n,r,i,a,l,o,s,d,c){let{placement:f,crossPlacement:m,axis:h,crossAxis:p,size:g,crossSize:y}=r,$={};$[p]=e[p]??0,m==="center"?$[p]+=((e[y]??0)-(n[y]??0))/2:m!==p&&($[p]+=(e[y]??0)-(n[y]??0)),$[p]+=a;const x=e[p]-n[y]+s+d,v=e[p]+e[y]-s-d;if($[p]=Dr($[p],x,v),f===h){let C=o?c[g]:c[l4[g]];$[Da[h]]=Math.floor(C-e[h]+i)}else $[h]=Math.floor(e[h]+e[g]+i);return $}function l9(e,t,n,r,i,a,l,o,s,d,c){let f=(e.top!=null?e.top:s[l4.height]-(e.bottom??0)-l)-(s.scroll.top??0),m=d?n.top:0,h={top:Math.max(t.top+m,(c?.offsetTop??t.top)+m),bottom:Math.min(t.top+t.height+m,(c?.offsetTop??0)+(c?.height??0))};return o!=="top"?Math.max(0,h.bottom-f-((i.top??0)+(i.bottom??0)+a)):Math.max(0,f+l-h.top-((i.top??0)+(i.bottom??0)+a))}function d4(e,t,n,r,i,a,l,o){let{placement:s,axis:d,size:c}=a;return s===d?Math.max(0,n[d]-(l.scroll[d]??0)-(e[d]+(o?t[d]:0))-(r[d]??0)-r[Da[d]]-i):Math.max(0,e[c]+e[d]+(o?t[d]:0)-n[d]-n[c]+(l.scroll[d]??0)-(r[d]??0)-r[Da[d]]-i)}function o9(e,t,n,r,i,a,l,o,s,d,c,f,m,h,p,g,y,$){let x=s4(e),{size:v,crossAxis:C,crossSize:w,placement:S,crossPlacement:B}=x,E=Wo(t,o,n,x,c,f,d,m,p,g,s),k=c,K=d4(o,d,t,i,a+c,x,s,y);if(l&&n[v]>K){let F=s4(`${Da[S]} ${B}`),z=Wo(t,o,n,F,c,f,d,m,p,g,s);d4(o,d,t,i,a+c,F,s,y)>K&&(x=F,E=z,k=c)}let T="bottom";x.axis==="top"?x.placement==="top"?T="top":x.placement==="bottom"&&(T="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?T="bottom":x.crossPlacement==="bottom"&&(T="top"));let I=u4(C,E[C],n[w],o,s,a,d);E[C]+=I;let R=l9(E,o,d,m,i,a,n.height,T,s,y,$);h&&h<R&&(R=h),n.height=Math.min(n.height,R),E=Wo(t,o,n,x,k,f,d,m,p,g,s),I=u4(C,E[C],n[w],o,s,a,d),E[C]+=I;let D={},M=t[C]-E[C]-i[it[C]],G=M+.5*t[w];const O=p/2+g,Y=it[C]==="left"?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),P=n[w]-Y-p/2-g,N=t[C]+p/2-(E[C]+i[it[C]]),_=t[C]+t[w]-p/2-(E[C]+i[it[C]]),Q=Dr(G,N,_);D[C]=Dr(Q,O,P),{placement:S,crossPlacement:B}=x,p?M=D[C]:B==="right"?M+=t[w]:B==="center"&&(M+=t[w]/2);let X=S==="left"||S==="top"?n[v]:0,A={x:S==="top"||S==="bottom"?M:X,y:S==="left"||S==="right"?M:X};return{position:E,maxHeight:R,arrowOffsetLeft:D.left,arrowOffsetTop:D.top,placement:S,triggerAnchorPoint:A}}function u9(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:l,boundaryElement:o,offset:s,crossOffset:d,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:m=0,targetRect:h}=e,p=r9(),g=r instanceof HTMLElement?s9(r):document.documentElement,y=g===document.documentElement;const $=window.getComputedStyle(g).position;let x=!!$&&$!=="static",v=y?Gr(n,!1,h):c4(n,g,!1,h);if(!y){let{marginTop:T,marginLeft:I}=window.getComputedStyle(n);v.top+=parseInt(T,10)||0,v.left+=parseInt(I,10)||0}let C=Gr(r,!0),w=a9(r);C.width+=(w.left??0)+(w.right??0),C.height+=(w.top??0)+(w.bottom??0);let S=i9(i),B=o4(o,p),E=o4(g,p),k;if((o.tagName==="BODY"||o.tagName==="HTML")&&!y){let T=wa(g,!1);k={top:-(T.top-B.top),left:-(T.left-B.left),width:0,height:0}}else(o.tagName==="BODY"||o.tagName==="HTML")&&y?k={top:0,left:0,width:0,height:0}:k=c4(o,g,!1);let K=ae(o,g);return o9(t,v,C,S,w,a,l,B,E,k,s,d,x,c,f,m,K,p)}function wa(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function Gr(e,t,n){let{top:r,left:i,width:a,height:l}=n||wa(e,t),{scrollTop:o,scrollLeft:s,clientTop:d,clientLeft:c}=document.documentElement;return{top:r+o-d,left:i+s-c,width:a,height:l}}function c4(e,t,n,r){let i=window.getComputedStyle(e),a;if(i.position==="fixed")a=r||wa(e,n);else{a=Gr(e,n,r);let l=Gr(t,n),o=window.getComputedStyle(t);l.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=l.top,a.left-=l.left}return a.top-=parseInt(i.marginTop,10)||0,a.left-=parseInt(i.marginLeft,10)||0,a}function s9(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!f4(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!f4(t);)t=t.parentElement;return t||document.documentElement}function f4(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const m4=new WeakMap;function d9(e){let{triggerRef:t,isOpen:n,onClose:r}=e;u.useEffect(()=>{if(!n||r===null)return;let i=a=>{let l=W(a);if(!t.current||l instanceof Node&&!ae(l,t.current)||l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement)return;let o=r||m4.get(t.current);o&&o()};return Q$(t5(t.current),"scroll",i,!0)},[n,r,t])}function c9(){return typeof window.ResizeObserver<"u"}function Zr(e){const{ref:t,box:n,onResize:r}=e;let i=De(r);u.useEffect(()=>{let a=t?.current;if(a)if(c9()){const l=new window.ResizeObserver(o=>{o.length&&i()});return l.observe(a,{box:n}),()=>{a&&l.unobserve(a)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[t,n])}let Pn=typeof document<"u"?window.visualViewport:null;function f9(e){let{direction:t}=be(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:l=i,placement:o="bottom",containerPadding:s=12,shouldFlip:d=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:f=0,crossOffset:m=0,shouldUpdatePosition:h=!0,isOpen:p=!0,onClose:g,maxHeight:y,arrowBoundaryOffset:$=0,getTargetRect:x}=e,[v,C]=u.useState(null),w=[h,o,i.current,r.current,a?.current,l.current,s,d,c,f,m,p,t,y,$,n],S=u.useRef(Pn?.scale);u.useEffect(()=>{p&&(S.current=Pn?.scale)},[p]);let B=u.useCallback(()=>{if(h===!1||!p||!i.current||!r.current||!c||Pn?.scale!==S.current)return;let K=null;if(l.current&&Ut(l.current)){let D=ce()?.getBoundingClientRect(),M=l.current.getBoundingClientRect();K={type:"top",offset:(D?.top??0)-M.top},K.offset>M.height/2&&(K.type="bottom",K.offset=(D?.bottom??0)-M.bottom)}let T=i.current;!y&&i.current&&(T.style.top="0px",T.style.bottom="",T.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let I=u9({placement:h9(o,t),overlayNode:i.current,targetNode:r.current,scrollNode:l.current||i.current,padding:s,shouldFlip:d,boundaryElement:c,offset:f,crossOffset:m,maxHeight:y,arrowSize:n??(a?.current?wa(a.current,!0).width:0),arrowBoundaryOffset:$,targetRect:x?.(r.current)});if(!I.position)return;T.style.top="",T.style.bottom="",T.style.left="",T.style.right="",Object.keys(I.position).forEach(D=>T.style[D]=I.position[D]+"px"),T.style.maxHeight=I.maxHeight!=null?I.maxHeight+"px":"";let R=ce();if(K&&R&&l.current){let D=R.getBoundingClientRect(),M=l.current.getBoundingClientRect(),G=D[K.type]-M[K.type];l.current.scrollTop+=G-K.offset}C(I)},w);fe(B,w),m9(B),Zr({ref:i,onResize:B}),Zr({ref:r,onResize:B});let E=u.useRef(!1);fe(()=>{let K,T=()=>{E.current=!0,clearTimeout(K),K=setTimeout(()=>{E.current=!1},500),B()},I=()=>{E.current&&T()};return Pn?.addEventListener("resize",T),Pn?.addEventListener("scroll",I),()=>{Pn?.removeEventListener("resize",T),Pn?.removeEventListener("scroll",I)}},[B]);let k=u.useCallback(()=>{E.current||g?.()},[g,E]);return d9({triggerRef:r,isOpen:p,onClose:g&&k}),{overlayProps:{style:{position:v?"absolute":"fixed",top:v?void 0:0,left:v?void 0:0,zIndex:1e5,...v?.position,maxHeight:v?.maxHeight??"100vh"}},placement:v?.placement??null,triggerAnchorPoint:v?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:B}}function m9(e){fe(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function h9(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function p9(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=De(s=>{n&&Sa(s,t)&&(i&&i(s),a.current.isPointerDown=!0)}),o=De(s=>{n&&n(s)});u.useEffect(()=>{let s=a.current;if(r)return;const d=t.current,c=se(d);if(typeof PointerEvent<"u"){let f=m=>{s.isPointerDown&&Sa(m,t)&&o(m),s.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",f,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=h=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&Sa(h,t)&&o(h),s.isPointerDown=!1},m=h=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&Sa(h,t)&&o(h),s.isPointerDown=!1};return c.addEventListener("mousedown",l,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",l,!0),c.addEventListener("touchend",m,!0),()=>{c.removeEventListener("mousedown",l,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",l,!0),c.removeEventListener("touchend",m,!0)}}},[t,r])}function Sa(e,t){if(e.button>0)return!1;let n=W(e);if(n){const r=n.ownerDocument;if(!r||!ae(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const Et=[];function h4(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:o}=e,s=u.useRef(void 0);u.useEffect(()=>{if(i&&!Et.includes(t))return Et.push(t),()=>{let p=Et.indexOf(t);p>=0&&Et.splice(p,1)}},[i,t]);let d=()=>{Et[Et.length-1]===t&&n&&n()},c=p=>{const g=Et[Et.length-1];s.current=g,(!o||o(W(p)))&&g===t&&p.stopPropagation()},f=p=>{(!o||o(W(p)))&&(Et[Et.length-1]===t&&p.stopPropagation(),s.current===t&&d()),s.current=void 0},{keyboardProps:m}=Le({shortcuts:{Escape:()=>{if(!l){d();return}return!1}}});p9({ref:t,onInteractOutside:a&&i?f:void 0,onInteractOutsideStart:c});let{focusWithinProps:h}=jn({isDisabled:!r,onBlurWithin:p=>{!p.relatedTarget||Ax(p.relatedTarget)||(!o||o(p.relatedTarget))&&n?.()}});return{overlayProps:{...m,...h},underlayProps:{}}}const Yr=typeof document<"u"&&window.visualViewport;let Pa=0,Go;function p4(e={}){let{isDisabled:t}=e;fe(()=>{if(!t)return Pa++,Pa===1&&(bt()&&gt()?Go=g9():Go=b9()),()=>{Pa--,Pa===0&&Go()}},[t])}function b9(){let e=window.innerWidth-document.documentElement.clientWidth;return at(e>0&&("scrollbarGutter"in document.documentElement.style?ka(document.documentElement,"scrollbarGutter","stable"):ka(document.documentElement,"paddingRight",`${e}px`)),ka(document.documentElement,"overflow","hidden"))}function g9(){let e=ka(document.documentElement,"overflow","hidden"),t,n=!1,r=c=>{let f=W(c);t=tn(f)?f:ot(f,!0),n=!1;let m=f.ownerDocument.defaultView.getSelection();m&&!m.isCollapsed&&m.containsNode(f,!0)&&(n=!0),c.composedPath().some(h=>h instanceof HTMLInputElement&&h.type==="range")&&(n=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(n=!0)},i=document.createElement("style"),a=Pd();a&&(i.nonce=a),i.textContent=`
8
8
  @layer {
9
9
  * {
10
10
  overscroll-behavior: contain;
11
11
  }
12
- }`.trim(),document.head.prepend(i);let l=c=>{if(!(c.touches.length===2||n)){if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()}},o=c=>{let f=G(c),m=c.relatedTarget;m&&gr(m)?(m.focus({preventScroll:!0}),h4(m,gr(f))):m||f.parentElement?.closest("[tabindex]")?.focus({preventScroll:!0})},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(c){let f=ce(),m=f!=null&&gr(f);s.call(this,{...c,preventScroll:!0}),(!c||!c.preventScroll)&&h4(this,m)};let d=at(Zo(document,"touchstart",r,{passive:!1,capture:!0}),Zo(document,"touchmove",l,{passive:!1,capture:!0}),Zo(document,"blur",o,!0));return()=>{e(),d(),i.remove(),HTMLElement.prototype.focus=s}}function Pa(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Zo(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function h4(e,t){t||!Zr?p4(e):Zr.addEventListener("resize",()=>p4(e),{once:!0})}function p4(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=ot(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(a.top<i.top||a.bottom>i.top+n.clientHeight){let l=i.bottom;Zr&&(l=Math.min(l,Zr.offsetTop+Zr.height));let o=a.top-i.top-((l-i.top)/2-a.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}n=r.parentElement}}function b9(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o,...s}=e,d=s.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:f}=f4({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||d,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o},i??r),{overlayProps:m,arrowProps:h,placement:p,triggerAnchorPoint:g}=d9({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!d?t.close:null,getTargetRect:s.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});m4({isDisabled:a||!t.isOpen}),u.useEffect(()=>{if(t.isOpen&&r.current)return a?Qx(i?.current??r.current):Ho([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]);let{focusWithinProps:y}=jn(e);return{popoverProps:X(c,m,y),arrowProps:h,underlayProps:f,placement:p,triggerAnchorPoint:g}}var b4={};b4={dismiss:"تجاهل"};var g4={};g4={dismiss:"Отхвърляне"};var y4={};y4={dismiss:"Odstranit"};var $4={};$4={dismiss:"Luk"};var v4={};v4={dismiss:"Schließen"};var x4={};x4={dismiss:"Απόρριψη"};var C4={};C4={dismiss:"Dismiss"};var D4={};D4={dismiss:"Descartar"};var E4={};E4={dismiss:"Lõpeta"};var w4={};w4={dismiss:"Hylkää"};var S4={};S4={dismiss:"Rejeter"};var P4={};P4={dismiss:"התעלם"};var k4={};k4={dismiss:"Odbaci"};var B4={};B4={dismiss:"Elutasítás"};var N4={};N4={dismiss:"Ignora"};var A4={};A4={dismiss:"閉じる"};var F4={};F4={dismiss:"무시"};var T4={};T4={dismiss:"Atmesti"};var I4={};I4={dismiss:"Nerādīt"};var M4={};M4={dismiss:"Lukk"};var K4={};K4={dismiss:"Negeren"};var L4={};L4={dismiss:"Zignoruj"};var O4={};O4={dismiss:"Descartar"};var z4={};z4={dismiss:"Dispensar"};var V4={};V4={dismiss:"Revocare"};var _4={};_4={dismiss:"Пропустить"};var R4={};R4={dismiss:"Zrušiť"};var j4={};j4={dismiss:"Opusti"};var H4={};H4={dismiss:"Odbaci"};var U4={};U4={dismiss:"Avvisa"};var W4={};W4={dismiss:"Kapat"};var G4={};G4={dismiss:"Скасувати"};var Z4={};Z4={dismiss:"取消"};var Y4={};Y4={dismiss:"關閉"};var q4={};q4={"ar-AE":b4,"bg-BG":g4,"cs-CZ":y4,"da-DK":$4,"de-DE":v4,"el-GR":x4,"en-US":C4,"es-ES":D4,"et-EE":E4,"fi-FI":w4,"fr-FR":S4,"he-IL":P4,"hr-HR":k4,"hu-HU":B4,"it-IT":N4,"ja-JP":A4,"ko-KR":F4,"lt-LT":T4,"lv-LV":I4,"nb-NO":M4,"nl-NL":K4,"pl-PL":L4,"pt-BR":O4,"pt-PT":z4,"ro-RO":V4,"ru-RU":_4,"sk-SK":R4,"sl-SI":j4,"sr-SP":H4,"sv-SE":U4,"tr-TR":W4,"uk-UA":G4,"zh-CN":Z4,"zh-TW":Y4};function g9(e){return e&&e.__esModule?e.default:e}function Yo(e){let{onDismiss:t,...n}=e,r=ke(g9(q4),"@react-aria/overlays"),i=Ft(n,r.format("dismiss")),a=()=>{t&&t()};return u.createElement(Mr,null,u.createElement("button",{...i,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}const X4=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),i=u.useContext(Cr),a=X(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=Te(n||i?.ref),xl(i,a.ref),u.useEffect(()=>{r.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),u.createElement(Cr.Provider,{value:a},e)});function y9({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(Cr.Provider,{value:t},e)}const $9=u.createContext({});function v9(){return u.useContext($9)??{}}const J4=u.createContext(null);function qo(e){let t=jt(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=u.useState(!1),l=u.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:o}=v9();if(!e.portalContainer&&o&&(n=o()),!n)return null;let s=e.children;return e.disableFocusManagement||(s=u.createElement(ya,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},s)),s=u.createElement(J4.Provider,{value:l},u.createElement(y9,null,u.createElement(Ii.Provider,{value:null},s))),Rt.createPortal(s,n)}function Q4(){let t=u.useContext(J4)?.setContain;fe(()=>{t?.(!0)},[t])}function Yr(e){let[t,n]=He(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,i]=u.useState(null);const a=u.useCallback(()=>{n(!0)},[n]),l=u.useCallback(()=>{n(!1)},[n]),o=u.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:a,close:l,toggle:o,point:r,setPoint:i}}function Xo(e,t=!0){let[n,r]=u.useState(!0),i=n&&t;return fe(()=>{if(i&&e.current&&"getAnimations"in e.current)for(let a of e.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[e,i]),e3(e,i,u.useCallback(()=>r(!1),[])),i}function Jo(e,t){let[n,r]=u.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let i=n==="exiting";return e3(e,i,u.useCallback(()=>{r(a=>a==="exiting"?"closed":a)},[])),i}function e3(e,t,n){fe(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.allSettled(r.map(a=>a.finished)).then(()=>{i||Rt.flushSync(()=>{n()})}),()=>{i=!0}}},[e,t,n])}const qr=u.createContext(null),t3=u.createContext(null),n3=u.forwardRef(function(t,n){[t,n]=pe(t,n,qr);let r=u.useContext(Ot),i=Yr(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,l=Jo(n,a.isOpen),o=t.isExiting||!t.shouldSkipAnimation&&l||!1,s=fd(),{direction:d}=be();if(s){let c=t.children;return typeof c=="function"&&(c=c({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),u.createElement(u.Fragment,null,c)}return a&&!a.isOpen&&!o?null:u.createElement(x9,{...t,triggerRef:t.triggerRef,state:a,popoverRef:n,isExiting:o,dir:d})});function x9({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=u.useRef(null),l=u.useRef(null),o=u.useContext(t3),s=o&&i.trigger==="SubmenuTrigger",{popoverProps:d,underlayProps:c,arrowProps:f,placement:m,triggerAnchorPoint:h}=b9({...i,offset:i.offset??8,arrowRef:a,groupRef:s?o:l},e),p=i.popoverRef,g=Xo(p,!!m),y=i.isEntering||!i.shouldSkipAnimation&&g||!1,$=ue({...i,defaultClassName:"react-aria-Popover",values:{trigger:i.trigger||null,placement:m,isEntering:y,isExiting:t}}),x=!i.isNonModal||i.trigger==="SubmenuTrigger"||i.trigger==="PreviewTrigger",[v,C]=u.useState(i.trigger==="PreviewTrigger");fe(()=>{p.current&&C(x&&!p.current.querySelector("[role=dialog]"))},[p,x]),u.useEffect(()=>{v&&i.trigger!=="PreviewTrigger"&&(i.trigger!=="SubmenuTrigger"||Kn()!=="pointer")&&p.current&&!Ht(p.current)&&Ie(p.current)},[v,p,i.trigger]);let w=u.useMemo(()=>{let F=$.children;if(r)for(let I of r)F=u.createElement(I.Provider,{value:null},F);return F},[$.children,r]),[S,B]=u.useState(null),E=u.useCallback(()=>{i.triggerRef.current&&B(i.triggerRef.current.getBoundingClientRect().width+"px")},[i.triggerRef]);fe(E,[E]),Gr({ref:$.style?.["--trigger-width"]?void 0:i.triggerRef,onResize:E});let k={...d.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...$.style,"--trigger-width":$.style?.["--trigger-width"]||S},M=u.createElement(re.div,{...X(ie(i,{global:!0}),d),...$,id:v?i.id:void 0,role:v?"dialog":void 0,tabIndex:v?-1:void 0,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"],ref:p,slot:i.slot||void 0,style:k,dir:i.dir,"data-trigger":i.trigger,"data-placement":m,"data-entering":y||void 0,"data-exiting":t||void 0},!i.isNonModal&&u.createElement(Yo,{onDismiss:e.close}),u.createElement(n4.Provider,{value:{...f,placement:m,ref:a}},w),u.createElement(Yo,{onDismiss:e.close}));return s?u.createElement(qo,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:t,portalContainer:n??o?.current??void 0},M):u.createElement(qo,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:l,style:{display:"contents"}},u.createElement(t3.Provider,{value:l},M)))}const C9=u.createContext({});var r3={};r3={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var i3={};i3={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var a3={};a3={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var l3={};l3={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var o3={};o3={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var u3={};u3={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var s3={};s3={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var d3={};d3={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var c3={};c3={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var f3={};f3={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var m3={};m3={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var h3={};h3={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var p3={};p3={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var b3={};b3={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var g3={};g3={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var y3={};y3={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var $3={};$3={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var v3={};v3={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var x3={};x3={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var C3={};C3={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var D3={};D3={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var E3={};E3={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var w3={};w3={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var S3={};S3={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var P3={};P3={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var k3={};k3={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var B3={};B3={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var N3={};N3={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var A3={};A3={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var F3={};F3={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var T3={};T3={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var I3={};I3={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var M3={};M3={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var K3={};K3={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var L3={};L3={"ar-AE":r3,"bg-BG":i3,"cs-CZ":a3,"da-DK":l3,"de-DE":o3,"el-GR":u3,"en-US":s3,"es-ES":d3,"et-EE":c3,"fi-FI":f3,"fr-FR":m3,"he-IL":h3,"hr-HR":p3,"hu-HU":b3,"it-IT":g3,"ja-JP":y3,"ko-KR":$3,"lt-LT":v3,"lv-LV":x3,"nb-NO":C3,"nl-NL":D3,"pl-PL":E3,"pt-BR":w3,"pt-PT":S3,"ro-RO":P3,"ru-RU":k3,"sk-SK":B3,"sl-SI":N3,"sr-SP":A3,"sv-SE":F3,"tr-TR":T3,"uk-UA":I3,"zh-CN":M3,"zh-TW":K3};function D9(e){let{onContextMenu:t}=e,n=u.useRef(!1),{longPressProps:r}=Oo({onLongPressStart(){n.current=!1},onLongPress(i){n.current?n.current=!1:t?.({target:i.target,x:i.x,y:i.y})}});return t?{contextMenuProps:X(bt()?r:{},{onContextMenu(i){i.stopPropagation(),i.preventDefault(),n.current=!0;let a=i.currentTarget.getBoundingClientRect();t({target:i.currentTarget,x:i.clientX-a.x,y:i.clientY-a.y})},onKeyDown(i){if(Je()&&i.ctrlKey&&i.key==="Enter"){n.current=!1;let a=i.currentTarget;i.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let l=a.getBoundingClientRect();t({target:a,x:l.width/2,y:l.height/2})}},10)}}})}:{contextMenuProps:{}}}function O3(e,t,n){let{type:r}=e,{isOpen:i}=t;u.useEffect(()=>{n&&n.current&&c4.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let l=Ee();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:t.toggle},overlayProps:{id:l}}}function E9(e){return e&&e.__esModule?e.default:e}function Qo(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,l=Ee(),{triggerProps:o,overlayProps:s}=O3({type:r},t,n),d=(y,$,x="first")=>{if(!y||$.isDefaultPrevented())return!1;t.toggle(x)},{keyboardProps:c}=Le({isDisabled:i,shortcuts:{Enter:y=>d(a!=="longPress",y,"first")," ":y=>d(a!=="longPress",y,"first"),ArrowDown:y=>d(a!=="longPress",y,"first"),ArrowUp:y=>d(a!=="longPress",y,"last"),"Alt+Enter":y=>d(a==="longPress",y,"first"),"Alt+ ":y=>d(a==="longPress",y,"first"),"Alt+ArrowDown":y=>d(!0,y,"first"),"Alt+ArrowUp":y=>d(!0,y,"last")}}),f=ke(E9(L3),"@react-aria/menu"),{longPressProps:m}=Oo({isDisabled:i||a!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),h={preventFocusOnPress:!0,onPressStart(y){y.pointerType!=="touch"&&y.pointerType!=="keyboard"&&!i&&(Xe(y.target),t.open(y.pointerType==="virtual"?"first":null))},onPress(y){y.pointerType==="touch"&&!i&&(Xe(y.target),t.toggle())}};delete o.onPress;let{contextMenuProps:p}=D9({onContextMenu(y){let $=y.target.getBoundingClientRect();t.setPoint({x:$.x+y.x,y:$.y+y.y}),t.open()}});u.useEffect(()=>{if(t.isOpen&&a==="contextMenu"){let y=$=>{($.button===2||$.button===0&&$.ctrlKey===!0)&&G($)===document.body&&t.close()};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)}},[t,a]);let g;if(a==="press")g={...h,...c};else if(a==="longPress")g={...m,...c};else if(a==="contextMenu"){g=p;let{"aria-haspopup":y,"aria-expanded":$,"aria-controls":x,...v}=o;o=v}return{menuTriggerProps:{...o,...g,id:l},menuProps:{...s,"aria-labelledby":l,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const z3=new WeakMap;function w9(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...l}=e;!e["aria-label"]&&!e["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let o=ie(e,{labelable:!0}),{listProps:s}=Um({...l,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return z3.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:X(o,{onKeyDown:i,onKeyUp:a},{role:"menu",...s,onKeyDown:d=>{(d.key!=="Escape"||e.shouldUseVirtualFocus)&&s.onKeyDown?.(d)}})}}function S9(e,t,n){let{id:r,key:i,closeOnSelect:a,shouldCloseOnSelect:l,isVirtualized:o,"aria-haspopup":s,onPressStart:d,onPressUp:c,onPress:f,onPressChange:m,onPressEnd:h,onClick:p,onHoverStart:g,onHoverChange:y,onHoverEnd:$,onKeyDown:x,onKeyUp:v,onFocus:C,onFocusChange:w,onBlur:S,selectionManager:B=t.selectionManager}=e,E=!!s,k=E&&e["aria-expanded"]==="true",M=e.isDisabled??B.isDisabled(i),F=e.isSelected??B.isSelected(i),I=z3.get(t),j=t.collection.getItem(i),D=e.onClose||I.onClose,T=sn(),Y=()=>{if(!E&&(j?.props?.onAction?j.props.onAction():e.onAction&&e.onAction(i),I.onAction)){let ve=I.onAction;ve(i,j?.value)}},K="menuitem";E||(B.selectionMode==="single"?K="menuitemradio":B.selectionMode==="multiple"&&(K="menuitemcheckbox"));let q=mt(),P=mt(),N=mt(),R={id:r,"aria-disabled":M||void 0,role:K,"aria-label":e["aria-label"],"aria-labelledby":q,"aria-describedby":[e["aria-describedby"],P,N].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};if(B.selectionMode!=="none"&&!E&&(R["aria-checked"]=F),o){let ve=Number(j?.index);R["aria-posinset"]=Number.isNaN(ve)?void 0:ve+1,R["aria-setsize"]=Vo(t.collection)}let Q=u.useRef(!1),O=ve=>{m?.(ve),Q.current=ve},z=u.useRef(null),A=ve=>{ve.pointerType!=="keyboard"&&(z.current={pointerType:ve.pointerType}),ve.pointerType==="mouse"&&(Q.current||ve.target.click()),c?.(ve)},V=ve=>{p?.(ve),Y(),Hs(ve,T,j.props.href,j?.props.routerOptions);let on=z.current?.pointerType==="keyboard"?z.current?.key==="Enter"||B.selectionMode==="none"||B.isLink(i):B.selectionMode!=="multiple"||B.isLink(i);on=l??a??on,D&&!E&&on&&D(),z.current=null},{itemProps:L,isFocused:J}=_r({id:r,selectionManager:B,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:I.shouldUseVirtualFocus}),{pressProps:le,isPressed:Ke}=Tt({onPressStart:d,onPress:f,onPressUp:A,onPressChange:O,onPressEnd:h,isDisabled:M}),{hoverProps:_}=ze({isDisabled:M,onHoverStart(ve){!Ut()&&!(k&&s)&&(B.setFocused(!0),B.setFocusedKey(i)),g?.(ve)},onHoverChange:y,onHoverEnd:$}),{keyboardProps:H}=Le({shortcuts:{" ":ve=>{z.current={pointerType:"keyboard",key:" "},G(ve).click(),Ln("keyboard")},Enter:ve=>{z.current={pointerType:"keyboard",key:"Enter"};let on=G(ve);if(on.tagName!=="A"){on.click(),Ln("keyboard");return}return Ln("keyboard"),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:x,onKeyUp:v}),{focusableProps:me}=zn({onBlur:S,onFocus:C,onFocusChange:w},n),he=ie(j?.props);delete he.id;let kt=wi(j?.props);return{menuItemProps:{...R,...X(he,kt,E?{onFocus:L.onFocus,"data-collection":L["data-collection"],"data-key":L["data-key"]}:L,le,_,H,me,I.shouldUseVirtualFocus||E?{onMouseDown:ve=>ve.preventDefault()}:void 0,M?void 0:{onClick:V}),tabIndex:L.tabIndex!=null&&k&&!I.shouldUseVirtualFocus?-1:L.tabIndex},labelProps:{id:q},descriptionProps:{id:P},keyboardShortcutProps:{id:N},isFocused:J,isFocusVisible:J&&B.isFocused&&Ut()&&!k,isSelected:F,isPressed:Ke,isDisabled:M}}function P9(e){let{heading:t,"aria-label":n}=e,r=Ee();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}function eu(e){let t=Yr(e),[n,r]=u.useState(null),[i,a]=u.useState([]),l=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(d=null){r(d),t.open()},toggle(d=null){r(d),t.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(d,c)=>{a(f=>c>f.length?f:[...f.slice(0,c),d])},closeSubmenu:(d,c)=>{a(f=>f[c]===d?f.slice(0,c):f)}}}class k9{constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||n.has(l.key)))for(let o of l.childNodes)r(o)};for(let l of t)r(l);let i=null,a=0;for(let[l,o]of this.keyMap)i?(i.nextKey=l,o.prevKey=i.key):(this.firstKey=l,o.prevKey=void 0),o.type==="item"&&(o.index=a++),i=o,i.nextKey=void 0;this.lastKey=i?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}}function B9(e){let{onExpandedChange:t}=e,[n,r]=He(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=jr(e),a=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),l=jo(e,u.useCallback(s=>new k9(s,{expandedKeys:n}),[n]),null);return u.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:a,toggleKey:s=>{r(N9(n,s))},setExpandedKeys:r,selectionManager:new tr(l,i)}}function N9(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const V3=u.createContext(null),tu=u.createContext(null),ka=u.createContext(null),Ba=u.createContext(null);function Na(e){let t=eu(e),n=u.useRef(null),{menuTriggerProps:r,menuProps:i}=Qo({...e,type:"menu"},t,n),a=u.useRef(null);return fd()?null:u.createElement(Pe,{values:[[V3,{...i,ref:a}],[Ot,t],[ka,t],[qr,{trigger:"MenuTrigger",triggerRef:n,scrollRef:a,placement:"bottom start","aria-labelledby":i["aria-labelledby"],offset:e.trigger==="contextMenu"?0:void 0}]]},u.createElement(X4,{...r,ref:n,isPressed:t.isOpen},e.children))}const A9=u.createContext(null),xs=class xs extends et{filter(t,n,r){let i=t.getItem(this.firstChildKey);if(i&&r(i.textValue,this)){let a=this.clone();return n.addDescendants(a,t),a}return null}};xs.type="submenutrigger";let _3=xs;const R3=u.forwardRef(function(t,n){return[t,n]=pe(t,n,V3),u.createElement(fn,{content:u.createElement(mn,t)},r=>u.createElement(F9,{props:t,collection:r,menuRef:n}))});function F9({props:e,collection:t,menuRef:n}){[e,n]=pe(e,n,$r);let{filter:r,...i}=e,a=u.useMemo(()=>r?t.filter(r):t,[t,r]),l=B9({...e,collection:a,children:void 0}),o=u.useContext(ka),{isVirtualized:s,CollectionRoot:d}=u.useContext(ge),{menuProps:c}=w9({...e,isVirtualized:s,onClose:e.onClose||o?.close},l,n),f=ue({...e,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),m=null;l.collection.size===0&&e.renderEmptyState&&(m=u.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let h=ie(e,{global:!0});return u.createElement(ya,null,u.createElement(re.div,{...X(h,f,c),ref:n,slot:e.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:e.onScroll},u.createElement(Pe,{values:[[tu,l],[ko,{elementType:"div"}],[vd,{name:"MenuSection",render:I9}],[A9,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[Xr,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[$r,null],[vr,null],[Ba,l.selectionManager],[ka,o??eu({})]]},u.createElement(ba,null,u.createElement(d,{collection:l.collection,persistedKeys:Cd(l.selectionManager.focusedKey),scrollRef:n}))),m))}class T9 extends tr{constructor(t,n){super(t.collection,n),this.parent=t}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}}function I9(e,t,n,r="react-aria-MenuSection"){let i=u.useContext(tu),{CollectionBranch:a}=u.useContext(ge),[l,o]=un(),{headingProps:s,groupProps:d}=P9({heading:o,"aria-label":n.props["aria-label"]??void 0}),c=ue({...e,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),f=u.useContext(Ba),m=jr(e),h=e.selectionMode!=null?new T9(f,m):f,p=qe(Xr)?.shouldCloseOnSelect,g=ie(e,{global:!0});return delete g.id,u.createElement(re.section,{...X(g,c,d),ref:t},u.createElement(Pe,{values:[[Po,{...s,ref:l}],[Ba,h],[Xr,{shouldCloseOnSelect:e.shouldCloseOnSelect??p}]]},u.createElement(a,{collection:i.collection,parent:n})))}const Xr=u.createContext(null),j3=yt(Fi,function(t,n,r){[t,n]=pe(t,n,Xr);let i=qe(Xr)?.id,a=u.useContext(tu),l=Te(n),o=u.useContext(Ba),{isVirtualized:s}=u.useContext(ge),{menuItemProps:d,labelProps:c,descriptionProps:f,keyboardShortcutProps:m,...h}=S9({...t,id:i,key:r.key,selectionManager:o,isVirtualized:s},a,l),{hoverProps:p,isHovered:g}=ze({isDisabled:h.isDisabled}),y=ue({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...h,isHovered:g,isFocusVisible:h.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!t["aria-haspopup"],isOpen:t["aria-expanded"]==="true"}}),$=t.href?re.a:re.div,x=ie(t,{global:!0});return delete x.id,delete x.onClick,u.createElement($,{...X(x,y,d,p),ref:l,"data-disabled":h.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-selected":h.isSelected||void 0,"data-selection-mode":o.selectionMode==="none"?void 0:o.selectionMode,"data-has-submenu":!!t["aria-haspopup"]||void 0,"data-open":t["aria-expanded"]==="true"||void 0},u.createElement(Pe,{values:[[tt,{slots:{[Bt]:c,label:c,description:f}}],[C9,m],[Or,{isSelected:h.isSelected}]]},y.children))});function M9(e,t){let{role:n="dialog"}=e,r=mt();r=e["aria-label"]?void 0:r;let i=mt();i=n==="alertdialog"&&!e["aria-describedby"]?i:void 0;let a=u.useRef(!1);u.useEffect(()=>{if(t.current&&!Ht(t.current)){Ie(t.current);let s=setTimeout(()=>{(ce()===t.current||ce()===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Ie(t.current)),a.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),Q4();let l=u.useRef(!1);u.useEffect(()=>{if(process.env.NODE_ENV!=="production"&&!l.current&&t.current){let s=t.current,d=s.hasAttribute("aria-label"),c=s.hasAttribute("aria-labelledby");!d&&!c&&(console.warn("A dialog must have a title for accessibility. Either provide an aria-label or aria-labelledby prop, or render a heading element inside the dialog."),l.current=!0)}});let o=e["aria-describedby"]??i;return{dialogProps:{...ie(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]??r,"aria-describedby":o,onBlur:s=>{a.current&&s.stopPropagation()}},titleProps:{id:r},contentProps:{id:i}}}const H3=u.createContext(null),Ot=u.createContext(null);function K9(e){let t=eu(e),n=u.useRef(null),{triggerProps:r,overlayProps:i}=O3({type:"dialog"},t,n);return r.id=Ee(),i["aria-labelledby"]=r.id,u.createElement(Pe,{values:[[Ot,t],[ka,t],[H3,i],[qr,{trigger:"DialogTrigger",triggerRef:n,id:i.id,"aria-labelledby":i["aria-labelledby"]}]]},u.createElement(X4,{...r,ref:n,isPressed:t.isOpen},e.children))}const U3=u.forwardRef(function(t,n){let r=t["aria-labelledby"];[t,n]=pe(t,n,H3);let{dialogProps:i,titleProps:a,contentProps:l}=M9({...t,"aria-labelledby":r},n),o=u.useContext(Ot);!i["aria-label"]&&!i["aria-labelledby"]&&(t["aria-labelledby"]?i["aria-labelledby"]=t["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=ue({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:o?.close||(()=>{})}}),d=ie(t,{global:!0});return u.createElement(re.section,{...X(d,s,i),render:t.render,ref:n,slot:t.slot||void 0},u.createElement(Pe,{values:[[Ui,{slots:{[Bt]:{},title:{...a,level:2}}}],[tt,{slots:{[Bt]:{},description:l}}],[vt,{slots:{[Bt]:{},close:{onPress:()=>o?.close()}}}]]},s.children))});var W3={};W3={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var G3={};G3={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var Z3={};Z3={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var Y3={};Y3={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var q3={};q3={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var X3={};X3={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var J3={};J3={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var Q3={};Q3={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var eh={};eh={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var th={};th={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehtoa`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Siirtyi ryhmään ${e.groupTitle}, jossa ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehto`,other:()=>`${t.number(e.groupCount)} vaihtoehtoa`})}.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var nh={};nh={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var rh={};rh={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var ih={};ih={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var ah={};ah={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var lh={};lh={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var oh={};oh={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var uh={};uh={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var sh={};sh={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var dh={};dh={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var ch={};ch={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var fh={};fh={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var mh={};mh={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var hh={};hh={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var ph={};ph={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var bh={};bh={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var gh={};gh={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var yh={};yh={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var $h={};$h={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var vh={};vh={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var xh={};xh={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var Ch={};Ch={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var Dh={};Dh={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var Eh={};Eh={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var wh={};wh={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var Sh={};Sh={"ar-AE":W3,"bg-BG":G3,"cs-CZ":Z3,"da-DK":Y3,"de-DE":q3,"el-GR":X3,"en-US":J3,"es-ES":Q3,"et-EE":eh,"fi-FI":th,"fr-FR":nh,"he-IL":rh,"hr-HR":ih,"hu-HU":ah,"it-IT":lh,"ja-JP":oh,"ko-KR":uh,"lt-LT":sh,"lv-LV":dh,"nb-NO":ch,"nl-NL":fh,"pl-PL":mh,"pt-BR":hh,"pt-PT":ph,"ro-RO":bh,"ru-RU":gh,"sk-SK":yh,"sl-SI":$h,"sr-SP":vh,"sv-SE":xh,"tr-TR":Ch,"uk-UA":Dh,"zh-CN":Eh,"zh-TW":wh};function L9(e){return e&&e.__esModule?e.default:e}function O9(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:l,layoutDelegate:o,shouldFocusWrap:s,isReadOnly:d,isDisabled:c}=e,f=u.useRef(null);n=n??f;let m=ke(L9(Sh),"@react-aria/combobox"),{menuTriggerProps:h,menuProps:p}=Qo({type:"listbox",isDisabled:c||d},t,n);ga.set(t,{id:p.id});let{collection:g}=t,{disabledKeys:y}=t.selectionManager,$=u.useMemo(()=>l||new Vr({collection:g,disabledKeys:y,ref:a,layoutDelegate:o}),[l,o,g,y,a]),{collectionProps:x}=va({selectionManager:t.selectionManager,keyboardDelegate:$,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:i,isVirtualized:!0}),v=sn(),{keyboardProps:C}=Le({shortcuts:{Enter:_=>{let H=t.isOpen;if(t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let me=t.collection.getItem(t.selectionManager.focusedKey);if(me?.props.href){let he=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);return he instanceof HTMLAnchorElement&&v.open(he,_,me.props.href,me.props.routerOptions),t.close(),{shouldPreventDefault:H}}else if(me?.props.onAction)return me.props.onAction(),t.close(),{shouldPreventDefault:H}}return t.commit(),{shouldPreventDefault:H}},Tab:()=>{if(t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let _=t.collection.getItem(t.selectionManager.focusedKey);if(_?.props.href)return t.close(),{shouldPreventDefault:!1};if(_?.props.onAction)return _.props.onAction(),t.close(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}}return t.isOpen&&t.commit(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}},Escape:()=>{let _=!1;return(!t.selectionManager.isEmpty||t.inputValue===""||e.allowsCustomValue)&&(_=!0),t.revert(),{shouldContinuePropagation:_}}}}),{keyboardProps:w}=Le({shortcuts:{ArrowDown:()=>(t.open("first","manual"),{shouldPreventDefault:!1}),ArrowUp:()=>(t.open("last","manual"),{shouldPreventDefault:!1}),ArrowLeft:()=>(t.selectionManager.setFocusedKey(null),{shouldPreventDefault:!1}),ArrowRight:()=>(t.selectionManager.setFocusedKey(null),{shouldPreventDefault:!1})},allowRepeats:!0}),S=_=>{let H=n?.current&&n.current===_.relatedTarget,me=ae(r.current,_.relatedTarget);H||me||(e.onBlur&&e.onBlur(_),t.setFocused(!1))},B=_=>{t.isFocused||(e.onFocus&&e.onFocus(_),t.setFocused(!0))},E=z9([t.selectionManager.selectedKeys,t.selectionManager.selectionMode]),{isInvalid:k,validationErrors:M,validationDetails:F}=t.displayValidation,{labelProps:I,inputProps:j,descriptionProps:D,errorMessageProps:T}=m0({...e,isRequired:e.selectionMode==="multiple"?e.isRequired&&t.selectionManager.isEmpty:e.isRequired,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:at(t.isOpen&&x.onKeyDown,C.onKeyDown,w.onKeyDown,e.onKeyDown),onBlur:S,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:B,autoComplete:"off",validate:void 0,[vo]:t,"aria-describedby":[E,e["aria-describedby"]].filter(Boolean).join(" ")||void 0},i);ma(i,t.defaultValue,t.setValue);let Y=_=>{_.pointerType==="touch"&&(i.current?.focus(),t.toggle(null,"manual"))},K=_=>{_.pointerType!=="touch"&&(i.current?.focus(),t.toggle(_.pointerType==="keyboard"||_.pointerType==="virtual"?"first":null,"manual"))},q=Ft({id:h.id,"aria-label":m.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||I.id}),P=Ft({id:p.id,"aria-label":m.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||I.id}),N=u.useRef(0),R=_=>{if(c||d)return;if(_.timeStamp-N.current<500){_.preventDefault(),i.current?.focus();return}let H=G(_).getBoundingClientRect(),me=_.changedTouches[0],he=Math.ceil(H.left+.5*H.width),kt=Math.ceil(H.top+.5*H.height);me.clientX===he&&me.clientY===kt&&(_.preventDefault(),i.current?.focus(),t.toggle(null,"manual"),N.current=_.timeStamp)},Q=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0,O=Q?.parentKey??null,z=t.selectionManager.focusedKey??null,A=u.useRef(O),V=u.useRef(z);u.useEffect(()=>{if(Ei()&&Q!=null&&z!=null&&z!==V.current){let _=t.selectionManager.isSelected(z),H=O!=null?t.collection.getItem(O):null,me=H?.["aria-label"]||(typeof H?.rendered=="string"?H.rendered:"")||"",he=m.format("focusAnnouncement",{isGroupChange:(H&&O!==A.current)??!1,groupTitle:me,groupCount:H?[...Ne(H,t.collection)].length:0,optionText:Q["aria-label"]||Q.textValue||"",isSelected:_});$t(he)}A.current=O,V.current=z});let L=Vo(t.collection),J=u.useRef(L),le=u.useRef(t.isOpen);u.useEffect(()=>{let _=t.isOpen!==le.current&&(t.selectionManager.focusedKey==null||Ei());if(t.isOpen&&(_||L!==J.current)){let H=m.format("countAnnouncement",{optionCount:L});$t(H)}J.current=L,le.current=t.isOpen});let Ke=u.useRef(t.selectedKey);return u.useEffect(()=>{if(Ei()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Ke.current){let _=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",H=m.format("selectedAnnouncement",{optionText:_});$t(H)}Ke.current=t.selectedKey}),u.useEffect(()=>{if(t.isOpen)return Ho([i.current,r.current].filter(_=>_!=null))},[t.isOpen,i,r]),Tr(()=>{!Q&&i.current&&ce(se(i.current))===i.current&&ol(i.current,null)},[Q]),lt(a,"react-aria-item-action",t.isOpen?()=>{t.close()}:void 0),{labelProps:{...I,onClick:"htmlFor"in I&&I.htmlFor||e.isDisabled?void 0:()=>{i.current?.focus(),Ln("keyboard")}},buttonProps:{...h,...q,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:Y,onPressStart:K,isDisabled:c||d},inputProps:X(j,{role:"combobox","aria-expanded":h["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":Q?Tm(t,Q.key):void 0,onTouchEnd:R,autoCorrect:"off",spellCheck:"false"}),listBoxProps:X(p,P,{onAction:void 0,autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),valueProps:{id:E},descriptionProps:D,errorMessageProps:T,isInvalid:k,validationErrors:M,validationDetails:F}}function z9(e=[]){let t=Ee(),[n,r]=u.useState(!0),[i,a]=u.useState(e);return i.some((l,o)=>!Object.is(l,e[o]))&&(r(!0),a(e)),u.useEffect(()=>{n&&!document.getElementById(t)&&r(!1)},[t,n,i]),n?t:void 0}function V9(e){let{defaultFilter:t,menuTrigger:n="input",allowsEmptyCollection:r=!1,allowsCustomValue:i,shouldCloseOnBlur:a=!0,selectionMode:l="single"}=e,[o,s]=u.useState(!1),[d,c]=u.useState(!1),[f,m]=u.useState(null),h=u.useMemo(()=>e.defaultValue!==void 0?e.defaultValue:l==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,l]),p=u.useMemo(()=>e.value!==void 0?e.value:l==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,l]),[g,y]=He(p,h,e.onChange),$=l==="single"&&Array.isArray(g)?g[0]:g,x=oe=>{if(l==="single"){let Se=Array.isArray(oe)?oe[0]??null:oe;y(Se),Se!==$&&e.onSelectionChange?.(Se)}else{let Se=[];Array.isArray(oe)?Se=oe:oe!=null&&(Se=[oe]),y(Se)}},{collection:v,selectionManager:C,disabledKeys:w}=xa({...e,items:e.items??e.defaultItems,selectionMode:l,disallowEmptySelection:l==="single",allowDuplicateSelectionEvents:!0,selectedKeys:u.useMemo(()=>R9($),[$]),onSelectionChange:oe=>{if(oe!=="all")if(l==="single"){let Se=oe.values().next().value??null;Se===$?(e.onSelectionChange?.(Se),V(),O()):x(Se)}else x([...oe])}}),S=l==="single"?C.firstSelectedKey:null,B=u.useMemo(()=>[...C.selectedKeys].map(oe=>v.getItem(oe)).filter(oe=>oe!=null),[C.selectedKeys,v]),[E,k]=He(e.inputValue,kh(e.defaultInputValue,S,v)||"",e.onInputChange),[M]=u.useState($),[F]=u.useState(E),I=v,j=u.useMemo(()=>e.items!=null||!t?v:_9(v,E,t),[v,E,t,e.items]),[D,T]=u.useState(j),Y=u.useRef("focus"),q=Yr({...e,onOpenChange:oe=>{e.onOpenChange&&e.onOpenChange(oe,oe?Y.current:void 0),C.setFocused(oe),oe||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),P=(oe=null,Se)=>{let bi=Se==="manual"||Se==="focus"&&n==="focus";(r||j.size>0||bi&&I.size>0||e.items)&&(bi&&!q.isOpen&&e.items===void 0&&s(!0),Y.current=Se,m(oe),q.open())},N=(oe=null,Se)=>{let bi=Se==="manual"||Se==="focus"&&n==="focus";!(r||j.size>0||bi&&I.size>0||e.items)&&!q.isOpen||(bi&&!q.isOpen&&e.items===void 0&&s(!0),q.isOpen||(Y.current=Se),Q(oe))},R=u.useCallback(()=>{T(o?I:j)},[o,I,j]),Q=u.useCallback((oe=null)=>{q.isOpen&&R(),m(oe),q.toggle()},[q,R]),O=u.useCallback(()=>{q.isOpen&&(R(),q.close())},[q,R]),[z,A]=u.useState(E),V=()=>{let oe=S!=null?v.getItem(S)?.textValue??"":"";A(oe),k(oe)},L=u.useRef($),J=u.useRef(S!=null?v.getItem(S)?.textValue??"":"");u.useEffect(()=>{d&&(j.size>0||r)&&!q.isOpen&&E!==z&&n!=="manual"&&P(null,"input"),!o&&!r&&q.isOpen&&j.size===0&&O(),$!=null&&$!==L.current&&l==="single"&&O(),E!==z&&(C.setFocusedKey(null),s(!1),l==="single"&&E===""&&(e.inputValue===void 0||p===void 0)&&x(null)),$!==L.current&&(e.inputValue===void 0||p===void 0)?V():z!==E&&A(E);let oe=S!=null?v.getItem(S)?.textValue??"":"";!d&&S!=null&&e.inputValue===void 0&&S===L.current&&J.current!==oe&&(A(oe),k(oe)),L.current=$,J.current=oe});let le=ca({...e,value:u.useMemo(()=>Array.isArray($)&&$.length===0?null:{inputValue:E,value:$,selectedKey:S},[E,S,$])}),Ke=()=>{i&&S==null?_():H()},_=()=>{if(l==="multiple"){A(E),O();return}let oe=null;L.current=oe,x(oe),O()},H=(oe=!1)=>{if(p!==void 0&&e.inputValue!==void 0){let Se=S!=null?v.getItem(S)?.textValue??"":"";(oe||l==="multiple"||E!==Se)&&(e.onSelectionChange?.(S),e.onChange?.($)),A(Se),O()}else V(),O()};const me=()=>{if(i){const oe=S!=null?v.getItem(S)?.textValue??"":"";E===oe?H():_()}else H()};let he=()=>{q.isOpen&&C.focusedKey!=null?C.isSelected(C.focusedKey)&&l==="single"?H(!0):C.select(C.focusedKey):me()},kt=u.useRef([E,$]),ve=oe=>{oe?(kt.current=[E,$],n==="focus"&&!e.isReadOnly&&P(null,"focus")):(a&&me(),(E!==kt.current[0]||$!==kt.current[1])&&le.commitValidation()),c(oe)},on=u.useMemo(()=>q.isOpen?o?I:j:D,[q.isOpen,I,j,o,D]),D$=e.defaultSelectedKey??(l==="single"?M:null);return{...le,...q,focusStrategy:f,toggle:N,open:P,close:me,selectionManager:C,value:$,defaultValue:h??M,setValue:x,selectedKey:S,selectedItems:B,defaultSelectedKey:D$,setSelectedKey:x,disabledKeys:w,isFocused:d,setFocused:ve,selectedItem:B[0]??null,collection:on,inputValue:E,defaultInputValue:kh(e.defaultInputValue,D$,v)??F,setInputValue:k,commit:he,revert:Ke}}function _9(e,t,n){return new _o(Ph(e,e,t,n))}function Ph(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let l=Ph(e,Ne(a,e),n,r);[...l].some(o=>o.type==="item")&&i.push({...a,childNodes:l})}else a.type==="item"&&r(a.textValue,n)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}function kh(e,t,n){return e==null&&t!=null?n.getItem(t)?.textValue??"":e}function R9(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Bh(e){let t=Qn({usage:"search",...e}),n=u.useCallback((a,l)=>l.length===0?!0:(a=a.normalize("NFC"),l=l.normalize("NFC"),t.compare(a.slice(0,l.length),l)===0),[t]),r=u.useCallback((a,l)=>l.length===0?!0:(a=a.normalize("NFC"),l=l.normalize("NFC"),t.compare(a.slice(-l.length),l)===0),[t]),i=u.useCallback((a,l)=>{if(l.length===0)return!0;a=a.normalize("NFC"),l=l.normalize("NFC");let o=0,s=l.length;for(;o+s<=a.length;o++){let d=a.slice(o,o+s);if(t.compare(l,d)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function j9(e={}){let{locale:t}=be();return u.useMemo(()=>new Intl.ListFormat(t,e),[t,e])}const H9=u.createContext(null),nu=u.createContext(null),U9=Vn(function(t,n){[t,n]=pe(t,n,H9);let{children:r,isDisabled:i=!1,isInvalid:a=!1,isRequired:l=!1,isReadOnly:o=!1}=t,s=u.useMemo(()=>u.createElement(Hr.Provider,{value:{items:t.items??t.defaultItems}},typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:l,defaultChildren:null,isReadOnly:o}):r),[r,i,a,l,o,t.items,t.defaultItems]);return u.createElement(fn,{content:s},d=>u.createElement(G9,{props:t,collection:d,comboBoxRef:n}))}),W9=[pn,vt,Jn,vr,Xn,tt];function G9({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:i="key",allowsCustomValue:a}=e;a&&(i="text");let{validationBehavior:l}=qe(fa)||{},o=e.validationBehavior??l??"native",{contains:s}=Bh({sensitivity:"base"}),d=V9({...e,defaultFilter:e.defaultFilter||s,items:e.items,children:void 0,collection:t,validationBehavior:o}),c=u.useRef(null),f=u.useRef(null),m=u.useRef(null),h=u.useRef(null),p=u.useRef(null),[g,y]=un(!e["aria-label"]&&!e["aria-labelledby"]),[$,x]=u.useState("label"),{buttonProps:v,inputProps:C,listBoxProps:w,labelProps:S,descriptionProps:B,errorMessageProps:E,valueProps:k,...M}=O9({...mr(e),label:y,inputRef:f,buttonRef:c,listBoxRef:h,popoverRef:p,name:i==="text"?r:void 0,validationBehavior:o,labelElementType:$},d),[F,I]=u.useState(null),j=u.useCallback(()=>{if(f.current&&!m.current){let P=c.current?.getBoundingClientRect(),N=f.current.getBoundingClientRect(),R=P?Math.min(P.left,N.left):N.left,Q=P?Math.max(P.right,N.right):N.right;I(Q-R+"px")}},[c,f,I]);Gr({ref:f,onResize:j});let D=u.useMemo(()=>({get current(){return m.current||f.current}}),[m,f]),T=u.useMemo(()=>({isOpen:d.isOpen,isDisabled:e.isDisabled||!1,isInvalid:M.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1}),[d.isOpen,e.isDisabled,M.isInvalid,e.isRequired,e.isReadOnly]),Y=ue({...e,values:T,defaultClassName:"react-aria-ComboBox"}),K=ie(e,{global:!0});delete K.id;let q=[];if(r&&i==="key"){let P=Array.isArray(d.value)?d.value:[d.value];P.length===0&&(P=[null]),q=P.map((N,R)=>u.createElement("input",{key:R,type:"hidden",name:r,form:e.form,value:N??""}))}return u.createElement(Pe,{values:[[nu,d],[pn,{...S,elementType:$,ref:g}],[vt,{...v,ref:c,isPressed:d.isOpen}],[Jn,{...C,ref:f}],[vr,{...C,ref:u.useCallback(P=>{f.current=P,P&&x(P.tagName.toLowerCase()==="input"?"label":"span")},[]),value:d.inputValue,onChange:P=>d.setInputValue(P)}],[Ot,d],[qr,{ref:p,triggerRef:D,scrollRef:h,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":F},clearContexts:W9}],[Hr,{...w,ref:h}],[Sn,d],[tt,{slots:{description:B,errorMessage:E}}],[Xn,{ref:m,isInvalid:M.isInvalid,isDisabled:e.isDisabled||!1}],[da,M],[Z9,k]]},u.createElement(re.div,{...K,...Y,ref:n,slot:e.slot||void 0,"data-focused":d.isFocused||void 0,"data-open":d.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-invalid":M.isInvalid||void 0,"data-required":e.isRequired||void 0},Y.children,q))}const Z9=u.createContext(null),Y9=["day","month","year"],q9={hour:1,minute:2,second:3};function X9(e,t){let{autoComplete:n,isDisabled:r,name:i}=e,{visuallyHiddenProps:a}=Dn({style:{position:"fixed",top:0,left:0}}),l=60;t.granularity==="second"?l=1:t.granularity==="hour"&&(l=3600);let o="";t.value&&(t.granularity==="day"?o=Ve(t.value).toString():o=Jt("timeZone"in t.value?r6(t.value):t.value).toString());let s=t.granularity==="day"?"date":"datetime-local",d=["hour","minute","second"],c=0;return d.includes(t.granularity)&&(c=q9[t.granularity],d=d.slice(0,c)),{containerProps:{...a,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:n,disabled:r,type:s,form:"",name:i,step:l,value:o,onChange:f=>{let m=G(f).value.toString();if(m)try{let h=h6(m);if(t.granularity==="day"&&(h=m6(m)),"setSegment"in t)for(let p in h)Y9.includes(p)&&t.setSegment(p,h[p]),d.includes(p)&&t.setSegment(p,h[p]);t.setValue(h)}catch{}}}}}function J9(e){let{state:t}=e,{containerProps:n,inputProps:r}=X9({...e},t);return u.createElement("div",{...n,"data-testid":"hidden-dateinput-container"},u.createElement("input",r))}var Nh={};Nh={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Ah={};Ah={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Fh={};Fh={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Th={};Th={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Ih={};Ih={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var Mh={};Mh={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var Kh={};Kh={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var Lh={};Lh={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var Oh={};Oh={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var zh={};zh={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var Vh={};Vh={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var _h={};_h={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var Rh={};Rh={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var jh={};jh={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var Hh={};Hh={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var Uh={};Uh={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var Wh={};Wh={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var Gh={};Gh={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var Zh={};Zh={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var Yh={};Yh={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var qh={};qh={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var Xh={};Xh={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var Jh={};Jh={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var Qh={};Qh={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var ep={};ep={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var tp={};tp={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var np={};np={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var rp={};rp={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var ip={};ip={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var ap={};ap={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var lp={};lp={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var op={};op={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var up={};up={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var sp={};sp={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var ru={};ru={"ar-AE":Nh,"bg-BG":Ah,"cs-CZ":Fh,"da-DK":Th,"de-DE":Ih,"el-GR":Mh,"en-US":Kh,"es-ES":Lh,"et-EE":Oh,"fi-FI":zh,"fr-FR":Vh,"he-IL":_h,"hr-HR":Rh,"hu-HU":jh,"it-IT":Hh,"ja-JP":Uh,"ko-KR":Wh,"lt-LT":Gh,"lv-LV":Zh,"nb-NO":Yh,"nl-NL":qh,"pl-PL":Xh,"pt-BR":Jh,"pt-PT":Qh,"ro-RO":ep,"ru-RU":tp,"sk-SK":np,"sl-SI":rp,"sr-SP":ip,"sv-SE":ap,"tr-TR":lp,"uk-UA":op,"zh-CN":up,"zh-TW":sp};function Q9(e,t,n){let{direction:r}=be(),i=u.useMemo(()=>Vm(t),[t]),{keyboardProps:a}=Le({shortcuts:{"Alt+ArrowDown":()=>{if("setOpen"in e){e.setOpen(!0);return}return!1},"Alt+ArrowUp":()=>{if("setOpen"in e){e.setOpen(!0);return}return!1},ArrowLeft:s=>{if(n)return!1;if(r==="rtl"){if(t.current){let d=G(s),c=dp(t.current,d.getBoundingClientRect().left,-1);if(c){c.focus();return}}}else{i.focusPrevious();return}return!1},ArrowRight:s=>{if(n)return!1;if(r==="rtl"){if(t.current){let d=G(s),c=dp(t.current,d.getBoundingClientRect().left,1);if(c){c.focus();return}}}else{i.focusNext();return}return!1}},allowRepeats:!0}),l=()=>{if(!t.current)return;let s=window.event?G(window.event):null,d=Ae(t.current,{tabbable:!0});if(s&&(d.currentNode=s,s=d.previousNode()),!s){let c;do c=d.lastChild(),c&&(s=c);while(c)}for(;s?.hasAttribute("data-placeholder");){let c=d.previousNode();if(c&&c.hasAttribute("data-placeholder"))s=c;else break}s&&s.focus()},{pressProps:o}=Tt({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(s){s.pointerType==="mouse"&&l()},onPress(s){(s.pointerType==="touch"||s.pointerType==="pen")&&l()}});return X(o,a)}function dp(e,t,n){let r=Ae(e,{tabbable:!0}),i=r.nextNode(),a=null,l=1/0;for(;i;){let s=i.getBoundingClientRect().left-t,d=Math.abs(s);Math.sign(s)===n&&d<l&&(a=i,l=d),i=r.nextNode()}return a}function e8(e){return e&&e.__esModule?e.default:e}const cp=new WeakMap,iu="__reactAriaDateFieldRole",t8="__reactAriaDateFieldFocusManager";function fp(e,t,n){let{isInvalid:r,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:l,fieldProps:o,descriptionProps:s,errorMessageProps:d}=Do({...e,labelElementType:"span",isInvalid:r,errorMessage:e.errorMessage||i}),c=u.useRef(null),{focusWithinProps:f}=jn({...e,onFocusWithin(k){c.current=t.value,e.onFocus?.(k)},onBlurWithin:k=>{t.confirmPlaceholder(),t.value!==c.current&&t.commitValidation(),e.onBlur?.(k)},onFocusWithinChange:e.onFocusChange}),m=ke(e8(ru),"@react-aria/datepicker"),h=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",p=t.maxGranularity==="hour"?"time":"date",g=t.value?m.format(h,{[p]:t.formatValue({month:"long"})}):"",y=xn(g),$=e[iu]==="presentation"?o["aria-describedby"]:[y["aria-describedby"],o["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[t8],v=u.useMemo(()=>x||Vm(n),[x,n]),C=Q9(t,n,e[iu]==="presentation");cp.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:$,focusManager:v});let w=u.useRef(e.autoFocus),S;e[iu]==="presentation"?S={role:"presentation"}:S=X(o,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":$}),u.useEffect(()=>{w.current&&v.focusFirst(),w.current=!1},[v]),ma(e.inputRef,t.defaultValue,t.setValue),Eo({...e,focus(){v.focusFirst()}},t,e.inputRef);let B={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(B.type="text",B.hidden=!0,B.required=e.isRequired,B.onChange=()=>{});let E=ie(e);return{labelProps:{...l,onClick:()=>{v.focusFirst()}},fieldProps:X(E,S,C,f,{onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,style:{unicodeBidi:"isolate"}}),inputProps:B,descriptionProps:s,errorMessageProps:d,isInvalid:r,validationErrors:i,validationDetails:a}}function n8(e){return e&&e.__esModule?e.default:e}function r8(){let{locale:e}=be(),t=rd(n8(ru),"@react-aria/datepicker");return u.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new i8(e,t)}},[e,t])}class i8{constructor(t,n){this.locale=t,this.dictionary=n}of(t){return this.dictionary.getStringForLocale(t,this.locale)}}function a8(e,t,n){let r=u.useRef(""),{locale:i,direction:a}=be(),l=r8(),{ariaLabel:o,ariaLabelledBy:s,ariaDescribedBy:d,focusManager:c}=cp.get(t),f=e.isPlaceholder?"":e.text,m=u.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),h=Ye({month:"long",timeZone:m.timeZone}),p=Ye({hour:"numeric",hour12:m.hour12,timeZone:m.timeZone});if(e.type==="month"&&!e.isPlaceholder){let N=h.format(t.dateValue);f=N!==f?`${f} – ${N}`:N}else e.type==="hour"&&!e.isPlaceholder&&(f=p.format(t.dateValue));let{spinButtonProps:g}=gx({value:e.value??void 0,textValue:f,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{r.current="",t.decrementToMin(e.type)}}),y=u.useMemo(()=>new gc(i,{maximumFractionDigits:0}),[i]),$=()=>{if(e.text===e.placeholder&&c.focusPrevious(),y.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let N=e.text.slice(0,-1),R=y.parse(N);N=R===0?"":N,N.length===0||R===0?t.clearSegment(e.type):t.setSegment(e.type,R),r.current=N}else(e.type==="dayPeriod"||e.type==="era")&&t.clearSegment(e.type)},{keyboardProps:x}=Le({shortcuts:{Backspace:()=>{$()},Delete:()=>{$()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:v}=Bh({sensitivity:"base"}),C=Ye({hour:"numeric",hour12:!0}),w=u.useMemo(()=>{let N=new Date;return N.setHours(0),C.formatToParts(N).find(R=>R.type==="dayPeriod").value},[C]),S=u.useMemo(()=>{let N=new Date;return N.setHours(12),C.formatToParts(N).find(R=>R.type==="dayPeriod").value},[C]),B=Ye({year:"numeric",era:"narrow",timeZone:"UTC"}),E=u.useMemo(()=>{if(e.type!=="era")return[];let N=ye(new we(1,1,1),t.calendar),R=t.calendar.getEras().map(O=>{let z=N.set({year:1,month:1,day:1,era:O}).toDate("UTC"),V=B.formatToParts(z).find(L=>L.type==="era").value;return{era:O,formatted:V}}),Q=l8(R.map(O=>O.formatted));if(Q)for(let O of R)O.formatted=O.formatted.slice(Q);return R},[B,t.calendar,e.type]),k=N=>{if(t.isDisabled||t.isReadOnly)return;let R=r.current+N;switch(e.type){case"dayPeriod":if(v(w,N))t.setSegment("dayPeriod",0);else if(v(S,N))t.setSegment("dayPeriod",1);else break;c.focusNext();break;case"era":{let Q=E.find(O=>v(O.formatted,N));Q&&(t.setSegment("era",Q.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!y.isValidPartialNumber(R))return;let Q=y.parse(R),O=Q;if(e.maxValue!==void 0&&Q>e.maxValue&&(O=y.parse(N)),isNaN(Q))return;t.setSegment(e.type,O),e.maxValue!==void 0&&(+(Q+"0")>e.maxValue||R.length>=String(e.maxValue).length)?(r.current="",c.focusNext()):r.current=R;break}}},M=()=>{r.current="",n.current&&Ct(n.current,{containingElement:ot(n.current)}),window.getSelection()?.collapse(n.current)},F=u.useRef(typeof document<"u"?document:null);lt(F,"selectionchange",()=>{let N=window.getSelection();N?.anchorNode&&ae(n.current,N?.anchorNode)&&ce()===n.current&&N.collapse(n.current)});let I=u.useRef("");lt(n,"beforeinput",N=>{if(n.current)switch(N.preventDefault(),N.inputType){case"deleteContentBackward":case"deleteContentForward":y.isValidPartialNumber(e.text)&&!t.isReadOnly&&$();break;case"insertCompositionText":I.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:N.data!=null&&k(N.data);break}}),lt(n,"input",N=>{let{inputType:R,data:Q}=N;R==="insertCompositionText"&&(n.current&&(n.current.textContent=I.current),Q!=null&&(v(w,Q)||v(S,Q))&&k(Q))}),fe(()=>{let N=n.current;return()=>{ce()===N&&(c.focusPrevious()||c.focusNext())}},[n,c]);let j=bt()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},D=u.useMemo(()=>t.segments.find(N=>N.isEditable),[t.segments]);e!==D&&!t.isInvalid&&(d=void 0);let T=Ee(),Y=!t.isDisabled&&!t.isReadOnly&&e.isEditable,K=e.type==="literal"?"":l.of(e.type),q=Ft({"aria-label":`${K}${o?`, ${o}`:""}${s?", ":""}`,"aria-labelledby":s});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let P={caretColor:"transparent"};if(a==="rtl"){P.unicodeBidi="embed";let N=m[e.type];(N==="numeric"||N==="2-digit")&&(P.direction="ltr")}return{segmentProps:X(g,q,{id:T,...j,...x,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:Y,suppressContentEditableWarning:Y,spellCheck:Y?"false":void 0,autoCorrect:Y?"off":void 0,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:Y?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!Y?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onFocus:M,style:P,onPointerDown(N){N.stopPropagation()},onMouseDown(N){N.stopPropagation()}})}}function l8(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}var mp={};mp={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var hp={};hp={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var pp={};pp={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var bp={};bp={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var gp={};gp={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var yp={};yp={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var $p={};$p={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var vp={};vp={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var xp={};xp={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var Cp={};Cp={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var Dp={};Dp={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var Ep={};Ep={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var wp={};wp={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var Sp={};Sp={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var Pp={};Pp={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var kp={};kp={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Bp={};Bp={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이후여야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var Np={};Np={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var Ap={};Ap={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var Fp={};Fp={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Tp={};Tp={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var Ip={};Ip={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var Mp={};Mp={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Kp={};Kp={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Lp={};Lp={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var Op={};Op={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var zp={};zp={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var Vp={};Vp={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var _p={};_p={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Rp={};Rp={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var jp={};jp={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var Hp={};Hp={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var Up={};Up={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var Wp={};Wp={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var Gp={};Gp={"ar-AE":mp,"bg-BG":hp,"cs-CZ":pp,"da-DK":bp,"de-DE":gp,"el-GR":yp,"en-US":$p,"es-ES":vp,"et-EE":xp,"fi-FI":Cp,"fr-FR":Dp,"he-IL":Ep,"hr-HR":wp,"hu-HU":Sp,"it-IT":Pp,"ja-JP":kp,"ko-KR":Bp,"lt-LT":Np,"lv-LV":Ap,"nb-NO":Fp,"nl-NL":Tp,"pl-PL":Ip,"pt-BR":Mp,"pt-PT":Kp,"ro-RO":Lp,"ru-RU":Op,"sk-SK":zp,"sl-SI":Vp,"sr-SP":_p,"sv-SE":Rp,"tr-TR":jp,"uk-UA":Hp,"zh-CN":Up,"zh-TW":Wp};function o8(e){return e&&e.__esModule?e.default:e}const u8=new cn(o8(Gp));function s8(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function d8(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,l=e!=null&&t!=null&&e.compare(t)<0,o=e!=null&&r?.(e)||!1,s=a||l||o,d=[];if(s){let c=s8(),f=cn.getGlobalDictionaryForPackage("@react-stately/datepicker")||u8,m=new td(c,f),h=new vn(c,Aa({},i)),p=h.resolvedOptions().timeZone;l&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:h.format(t.toDate(p))})),a&&n!=null&&d.push(m.format("rangeOverflow",{maxValue:h.format(n.toDate(p))})),o&&d.push(m.format("unavailableDate"))}return{isInvalid:s,validationErrors:d,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}const c8={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},f8={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Aa(e,t){e={...t.shouldForceLeadingZeros?f8:c8,...e};let r=t.granularity||"minute",i=Object.keys(e),a=i.indexOf(t.maxGranularity??"year");a<0&&(a=0);let l=i.indexOf(r);if(l<0&&(l=2),a>l)throw new Error("maxGranularity must be greater than granularity");let o=i.slice(a,l+1).reduce((d,c)=>(d[c]=e[c],d),{});return t.hourCycle!=null&&(o.hour12=t.hourCycle===12),o.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(o.timeZoneName="short"),t.showEra&&a===0&&(o.era="short"),o}function Zp(e,t){if(e===null)return null;if(e)return ye(e,t)}function m8(e,t,n,r){if(e)return Zp(e,n);let i=ye(df(r??Zi()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Ve(i):r?i:Jt(i)}function h8(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=u.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let l=e?n:i[1];return[t,l]}const p8=new cn({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"áááá",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"åååå",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function b8(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?p8.getStringForLocale(e,n):"––"}class wt{constructor(t,n,r){if(this.era=r?.era??null,this.calendar=t,this.year=r?.year??null,this.month=r?.month??null,this.day=r?.day??null,this.hour=r?.hour??null,this.hourCycle=n,this.dayPeriod=null,this.minute=r?.minute??null,this.second=r?.second??null,this.millisecond=r?.millisecond??null,this.offset="offset"in(r??{})?r.offset:null,this.hour!=null){let[i,a]=nr(this.hour,n);this.dayPeriod=i,this.hour=a}}copy(){let t=new wt(this.calendar,this.hourCycle);return t.era=this.era,t.year=this.year,t.month=this.month,t.day=this.day,t.hour=this.hour,t.dayPeriod=this.dayPeriod,t.minute=this.minute,t.second=this.second,t.millisecond=this.millisecond,t.offset=this.offset,t}isComplete(t){return t.every(n=>this[n]!=null)}validate(t,n){return n.every(r=>{if((r==="hour"||r==="dayPeriod")&&"hour"in t){let[i,a]=nr(t.hour,this.hourCycle);return this.dayPeriod===i&&this.hour===a}return this[r]===t[r]})}isCleared(t){return t.every(n=>this[n]===null)}set(t,n,r){let i=this.copy();return i[t]=n,t==="hour"&&i.dayPeriod==null&&"hour"in r&&(i.dayPeriod=nr(r.hour,this.hourCycle)[0]),t==="year"&&i.era==null&&(i.era=r.era),t!=="second"&&t!=="literal"&&t!=="timeZoneName"&&(i.offset=null),i}clear(t){let n=this.copy();return n[t]=null,t==="year"&&(n.era=null),n.offset=null,n}cycle(t,n,r,i){let a=this.copy();if(a[t]==null&&t!=="dayPeriod"&&t!=="era"){if(t==="hour"&&"hour"in r){let[l,o]=nr(r.hour,this.hourCycle);a.dayPeriod=l,a.hour=o}else a[t]=r[t];return t==="year"&&a.era==null&&(a.era=r.era),a}switch(t){case"era":{let l=this.calendar.getEras(),o=l.indexOf(a.era);o=kn(o,n,0,l.length-1),a.era=l[o];break}case"year":{let l=new we(this.calendar,this.era??r.era,this.year??r.year,this.month??1,this.day??1);l=l.cycle(t,n,{round:t==="year"}),a.era=l.era,a.year=l.year;break}case"month":a.month=kn(a.month??1,n,1,this.calendar.getMaximumMonthsInYear());break;case"day":a.day=kn(a.day??1,n,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let l=i.some(o=>["year","month","day"].includes(o));if("timeZone"in r&&(!l||a.year!=null&&a.month!=null&&a.day!=null)){let o=this.toValue(r);o=o.cycle("hour",n,{hourCycle:this.hourCycle==="h12"?12:24,round:!1});let[s,d]=nr(o.hour,this.hourCycle);a.hour=d,a.dayPeriod=s,a.offset=o.offset}else{let o=a.hour??0,s=this.getSegmentLimits("hour");a.hour=kn(o,n,s.minValue,s.maxValue),a.dayPeriod==null&&"hour"in r&&(a.dayPeriod=nr(r.hour,this.hourCycle)[0])}break}case"dayPeriod":a.dayPeriod=kn(a.dayPeriod??0,n,0,1);break;case"minute":a.minute=kn(a.minute??0,n,0,59,!0);break;case"second":a.second=kn(a.second??0,n,0,59,!0);break}return a}toValue(t){if("hour"in t){let n=this.hour;n!=null?n=g8(n,this.dayPeriod??0,this.hourCycle):(this.hourCycle==="h12"||this.hourCycle==="h11")&&(n=this.dayPeriod===1?12:0);let r=t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day,hour:n??t.hour,minute:this.minute??t.minute,second:this.second??t.second,millisecond:this.millisecond??t.millisecond});return"offset"in r&&this.offset!=null&&r.offset!==this.offset&&(r=r.add({milliseconds:r.offset-this.offset})),r}else return t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day})}getSegmentLimits(t){switch(t){case"era":{let n=this.calendar.getEras();return{value:this.era!=null?n.indexOf(this.era):n.length-1,minValue:0,maxValue:n.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let n=0,r=23;return this.hourCycle==="h12"?(n=1,r=12):this.hourCycle==="h11"&&(n=0,r=11),{value:this.hour,minValue:n,maxValue:r}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function kn(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function nr(e,t){let n=e>=12?1:0;switch(t){case"h11":e>=12&&(e-=12);break;case"h12":e===0?e=12:e>12&&(e-=12);break;case"h23":n=null;break;case"h24":e+=1,n=null}return[n,e]}function g8(e,t,n){switch(n){case"h11":t===1&&(e+=12);break;case"h12":e===12&&(e=0),t===1&&(e+=12);break;case"h24":e-=1;break}return e}const au={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Yp={year:5,month:2,day:7,hour:2,minute:15,second:15},y8={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function qp(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:l=!1,minValue:o,maxValue:s,isDateUnavailable:d}=e,c=e.value||e.defaultValue||e.placeholderValue||null,[f,m]=h8(c,e.granularity),h=m||"UTC";if(c&&!(f in c))throw new Error("Invalid granularity "+f+" for value "+c.toString());let[p,g]=u.useMemo(()=>{let J=new vn(t,{dateStyle:"short",timeStyle:"short",hour12:e.hourCycle!=null?e.hourCycle===12:void 0}).resolvedOptions();return[n(J.calendar),J.hourCycle]},[t,e.hourCycle,n]),[y,$]=He(e.value,e.defaultValue??null,e.onChange),[x]=u.useState(y),v=u.useMemo(()=>Zp(y,p)??null,[y,p]),[C,w]=u.useState(()=>new wt(p,g,v)),S=p.identifier==="gregory"&&C.era==="BC",B=u.useMemo(()=>({granularity:f,maxGranularity:e.maxGranularity??"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,m,r,S]),E=u.useMemo(()=>Aa({},B),[B]),k=u.useMemo(()=>new vn(t,E),[t,E]),M=u.useMemo(()=>k.resolvedOptions(),[k]),F=u.useMemo(()=>m8(e.placeholderValue,f,p,m),[e.placeholderValue,f,p,m]),I=u.useMemo(()=>{let L=g==="h11"||g==="h12",J=["era","year","month","day","hour",...L?["dayPeriod"]:[],"minute","second"],le=J.indexOf(e.maxGranularity||"era"),Ke=J.indexOf(f==="hour"&&L?"dayPeriod":f);return J.slice(le,Ke+1)},[e.maxGranularity,f,g]),[j,D]=u.useState(v),[T,Y]=u.useState(p),[K,q]=u.useState(g);(v!==j||g!==K||!Gi(p,T))&&(C=new wt(p,g,v),D(v),Y(p),q(g),w(C));let P=L=>{if(!(e.isDisabled||e.isReadOnly))if(L==null||L instanceof wt&&L.isCleared(I))w(new wt(p,g,v)),$(null);else if(!(L instanceof wt))L=ye(L,c?.calendar||new Re),w(new wt(p,g,v)),$(L);else{if(L.isComplete(I)){let J=L.toValue(v??F);if(L.validate(J,I)){let le=ye(J,c?.calendar||new Re);if(!y||le.compare(y)!==0){w(new wt(p,g,v)),$(le);return}}}w(L)}},N=u.useMemo(()=>C.toValue(v??F).toDate(h),[C,h,v,F]),R=u.useMemo(()=>$8(N,C,k,M,p,t,f),[N,k,M,C,p,t,f]),Q=(L,J)=>{P(C.cycle(L,J,F,I))},O=u.useMemo(()=>d8(y,o,s,d,B),[y,o,s,d,B]),z=ca({...e,value:y,builtinValidation:O}),A=z.displayValidation.isInvalid,V=e.validationState||(A?"invalid":null);return{...z,value:v,defaultValue:e.defaultValue??x,dateValue:N,calendar:p,setValue:P,segments:R,dateFormatter:k,validationState:V,isInvalid:A,granularity:f,maxGranularity:e.maxGranularity??"year",isDisabled:i,isReadOnly:a,isRequired:l,increment(L){Q(L,1)},decrement(L){Q(L,-1)},incrementPage(L){Q(L,Yp[L]||1)},decrementPage(L){Q(L,-(Yp[L]||1))},incrementToMax(L){let J=L==="hour"&&g==="h12"?11:C.getSegmentLimits(L).maxValue;P(C.set(L,J,F))},decrementToMin(L){let J=L==="hour"&&g==="h12"?12:C.getSegmentLimits(L).minValue;P(C.set(L,J,F))},setSegment(L,J){P(C.set(L,J,F))},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&C.isComplete(I)){let L=C.toValue(v??F),J=ye(L,c?.calendar||new Re);(!y||J.compare(y)!==0)&&$(J),w(new wt(p,g,v))}},clearSegment(L){let J=C;L!=="timeZoneName"&&L!=="literal"&&(J=C.clear(L)),P(J)},formatValue(L){if(!v)return"";let J=Aa(L,B);return new vn(t,J).format(N)},getDateFormatter(L,J){let le={...B,...J},Ke=Aa({},le);return new vn(L,Ke)}}}function $8(e,t,n,r,i,a,l){let o=["hour","minute","second"],s=n.formatToParts(e),d=new Hi(a,{useGrouping:!1}),c=new Hi(a,{useGrouping:!1,minimumIntegerDigits:2});for(let m of s)if(m.type==="year"||m.type==="month"||m.type==="day"||m.type==="hour"){let h=t[m.type]??0;r[m.type]==="2-digit"?m.value=c.format(h):m.value=d.format(h)}let f=[];for(let m of s){let h=y8[m.type]||m.type,p=au[h];h==="era"&&i.getEras().length===1&&(p=!1);let g=au[h]&&t[m.type]==null,y=au[h]?b8(h,m.value,a):null,$={type:h,text:g?y:m.value,...t.getSegmentLimits(h),isPlaceholder:g,placeholder:y,isEditable:p};h==="hour"?(f.push({type:"literal",text:"⁦",isPlaceholder:!1,placeholder:"",isEditable:!1}),f.push($),h===l&&f.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):o.includes(h)&&h===l?(f.push($),f.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):f.push($)}return f}const Xp=u.createContext(null),Jr=u.createContext(null),lu=u.createContext(null),v8=u.forwardRef(function(t,n){[t,n]=pe(t,n,Xp);let{validationBehavior:r}=qe(fa)||{},i=t.validationBehavior??r??"native",{locale:a}=be(),l=qp({...t,locale:a,createCalendar:oa,validationBehavior:i}),o=u.useRef(null),[s,d]=un(!t["aria-label"]&&!t["aria-labelledby"]),c=u.useRef(null),{labelProps:f,fieldProps:m,inputProps:h,descriptionProps:p,errorMessageProps:g,...y}=fp({...mr(t),label:d,inputRef:c,validationBehavior:i},l,o),$=ue({...mr(t),values:{state:l,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isReadOnly:l.isReadOnly,isRequired:t.isRequired||!1},defaultClassName:"react-aria-DateField"}),x=ie(t,{global:!0});return delete x.id,u.createElement(Pe,{values:[[Jr,l],[Xn,{...m,ref:o,isInvalid:l.isInvalid,isDisabled:l.isDisabled}],[Jn,{...h,ref:c}],[pn,{...f,ref:s,elementType:"span"}],[tt,{slots:{description:p,errorMessage:g}}],[da,y]]},u.createElement(re.div,{...x,...$,ref:n,slot:t.slot||void 0,"data-invalid":l.isInvalid||void 0,"data-disabled":l.isDisabled||void 0,"data-readonly":l.isReadOnly||void 0,"data-required":t.isRequired||void 0}),u.createElement(J9,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:l}))}),x8=u.forwardRef(function(t,n){let r=u.useContext(Jr),i=u.useContext(lu);return r||i?u.createElement(Jp,{...t,ref:n}):u.createElement(C8,{...t,ref:n})}),C8=u.forwardRef((e,t)=>{let[n,r]=pe({slot:e.slot},t,Xp),{locale:i}=be(),a=qp({...n,locale:i,createCalendar:oa}),l=u.useRef(null),{fieldProps:o,inputProps:s}=fp({...n,inputRef:l},a,r);return u.createElement(Pe,{values:[[Jr,a],[Jn,{...s,ref:l}],[Xn,{...o,ref:r,isInvalid:a.isInvalid,isDisabled:a.isDisabled}]]},u.createElement(Jp,e))}),Jp=u.forwardRef((e,t)=>{let{className:n,children:r}=e,i=u.useContext(Jr),a=u.useContext(lu),l=i??a;return u.createElement(u.Fragment,null,u.createElement(Lr,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled},l.segments.map((o,s)=>u.cloneElement(r(o),{key:s}))),u.createElement(ha,{className:""}))}),D8=u.forwardRef(function({segment:t,...n},r){let i=u.useContext(Jr),a=u.useContext(lu),l=i??a,o=Te(r),{segmentProps:s}=a8(t,l,o),{focusProps:d,isFocused:c,isFocusVisible:f}=Oe(),{hoverProps:m,isHovered:h}=ze({...n,isDisabled:l.isDisabled||t.type==="literal"}),p=ue({...n,values:{...t,isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isHovered:h,isFocused:c,isFocusVisible:f},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return u.createElement(re.span,{...X(ie(n,{global:!0}),s,d,m),...p,style:s.style,ref:o,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":l.isInvalid||void 0,"data-readonly":l.isReadOnly||void 0,"data-disabled":l.isDisabled||void 0,"data-type":t.type,"data-hovered":h||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0})});var Qp={};Qp={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var eb={};eb={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var tb={};tb={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var nb={};nb={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var rb={};rb={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var ib={};ib={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var ab={};ab={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var lb={};lb={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var ob={};ob={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var ub={};ub={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var sb={};sb={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var db={};db={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var cb={};cb={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var fb={};fb={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var mb={};mb={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var hb={};hb={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var pb={};pb={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var bb={};bb={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var gb={};gb={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var yb={};yb={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var $b={};$b={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var vb={};vb={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var xb={};xb={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var Cb={};Cb={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var Db={};Db={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var Eb={};Eb={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var wb={};wb={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var Sb={};Sb={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var Pb={};Pb={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var kb={};kb={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var Bb={};Bb={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var Nb={};Nb={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var Ab={};Ab={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var Fb={};Fb={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var Fa={};Fa={"ar-AE":Qp,"bg-BG":eb,"cs-CZ":tb,"da-DK":nb,"de-DE":rb,"el-GR":ib,"en-US":ab,"es-ES":lb,"et-EE":ob,"fi-FI":ub,"fr-FR":sb,"he-IL":db,"hr-HR":cb,"hu-HU":fb,"it-IT":mb,"ja-JP":hb,"ko-KR":pb,"lt-LT":bb,"lv-LV":gb,"nb-NO":yb,"nl-NL":$b,"pl-PL":vb,"pt-BR":xb,"pt-PT":Cb,"ro-RO":Db,"ru-RU":Eb,"sk-SK":wb,"sl-SI":Sb,"sr-SP":Pb,"sv-SE":kb,"tr-TR":Bb,"uk-UA":Nb,"zh-CN":Ab,"zh-TW":Fb};function E8(e){return e&&e.__esModule?e.default:e}function w8(e,t){let{getRowText:n=o=>t.collection.getTextValue?.(o)??t.collection.getItem(o)?.textValue}=e,r=ke(E8(Fa),"@react-aria/grid"),i=t.selectionManager.rawSelection,a=u.useRef(i),l=u.useCallback(()=>{if(!t.selectionManager.isFocused||i===a.current){a.current=i;return}let o=Tb(i,a.current),s=Tb(a.current,i),d=t.selectionManager.selectionBehavior==="replace",c=[];if(t.selectionManager.selectedKeys.size===1&&d){let f=t.selectionManager.selectedKeys.keys().next().value;if(f!=null&&t.collection.getItem(f)){let m=n(f);m&&c.push(r.format("selectedItem",{item:m}))}}else if(o.size===1&&s.size===0){let f=o.keys().next().value;if(f!=null){let m=n(f);m&&c.push(r.format("selectedItem",{item:m}))}}else if(s.size===1&&o.size===0){let f=s.keys().next().value;if(f!=null&&t.collection.getItem(f)){let m=n(f);m&&c.push(r.format("deselectedItem",{item:m}))}}t.selectionManager.selectionMode==="multiple"&&(c.length===0||i==="all"||i.size>1||a.current==="all"||a.current?.size>1)&&c.push(i==="all"?r.format("selectedAll"):r.format("selectedCount",{count:i.size})),c.length>0&&$t(c.join(" ")),a.current=i},[i,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,n,r]);Tr(()=>{if(t.selectionManager.isFocused)l();else{let o=requestAnimationFrame(l);return()=>cancelAnimationFrame(o)}},[i,t.selectionManager.isFocused])}function Tb(e,t){let n=new Set;if(e==="all"||t==="all")return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function S8(e,t){let n=t?.isDisabled,[r,i]=u.useState(!1);return fe(()=>{if(e?.current&&!n){let a=()=>{if(e.current){let o=Ae(e.current,{tabbable:!0});i(!!o.nextNode())}};a();let l=new MutationObserver(a);return l.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function P8(e){return e&&e.__esModule?e.default:e}function k8(e){let t=ke(P8(Fa),"@react-aria/grid"),n=Ys(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,i=u.useMemo(()=>{let l=e.selectionManager.selectionMode,o=e.selectionManager.selectionBehavior,s;return r&&(s=t.format("longPressToSelect")),o==="replace"&&l!=="none"&&e.hasItemActions?s:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]);return xn(i)}function B8(e){return e&&e.__esModule?e.default:e}function N8(e,t){let{key:n}=e,r=t.selectionManager,i=Ee(),a=!t.selectionManager.canSelectItem(n),l=t.selectionManager.isSelected(n),o=()=>r.toggleSelection(n);const s=ke(B8(Fa),"@react-aria/grid");return{checkboxProps:{id:i,"aria-label":s.format("select"),isSelected:l,isDisabled:a,onChange:o}}}function A8(e,t,n){let{overlayProps:r,underlayProps:i}=f4({...e,isOpen:t.isOpen,onClose:t.close},n);return m4({isDisabled:!t.isOpen}),Q4(),u.useEffect(()=>{if(t.isOpen&&n.current)return Ho([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:X(r),underlayProps:i}}let Ge=typeof document<"u"&&window.visualViewport;function F8(){let e=jt(),[t,n]=u.useState(()=>e?{width:0,height:0}:ou());return u.useEffect(()=>{let r=o=>{n(s=>o.width===s.width&&o.height===s.height?s:o)},i=()=>{Ge&&Ge.scale>1||r(ou())},a,l=o=>{Ge&&Ge.scale>1||gr(G(o))&&(a=requestAnimationFrame(()=>{let s=ce();(!s||!gr(s))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(ou()),bt()&&gt()&&window.addEventListener("blur",l,!0),Ge?Ge.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(a),bt()&&gt()&&window.removeEventListener("blur",l,!0),Ge?Ge.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),t}function ou(){return{width:Ge?Math.min(Ge.width*Ge.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:Ge?Ge.height*Ge.scale:document.documentElement.clientHeight}}const T8=u.createContext(null),uu=u.createContext(null),I8=u.forwardRef(function(t,n){if(u.useContext(uu)){if(process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)){const g=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),y=Object.keys(t).filter($=>g.has($));console.warn(`This modal is already wrapped in a ModalOverlay, props [${y.join(", ")}] should be placed on the ModalOverlay instead.`)}return u.createElement(Mb,{...t,modalRef:n},t.children)}let{isDismissable:i,isKeyboardDismissDisabled:a,isOpen:l,defaultOpen:o,onOpenChange:s,children:d,isEntering:c,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:h,...p}=t;return u.createElement(Ib,{isDismissable:i,isKeyboardDismissDisabled:a,isOpen:l,defaultOpen:o,onOpenChange:s,isEntering:c,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:h},u.createElement(Mb,{...p,modalRef:n},d))});function M8(e,t){[e,t]=pe(e,t,T8);let n=u.useContext(Ot),r=Yr(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let a=Te(t),l=u.useRef(null),o=Jo(a,i.isOpen),s=Jo(l,i.isOpen),d=o||s||e.isExiting||!1,c=jt();return!i.isOpen&&!d||c?null:u.createElement(K8,{...e,state:i,isExiting:d,overlayRef:a,modalRef:l})}const Ib=u.forwardRef(M8);function K8({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:i,underlayProps:a}=A8(t,r,n),l=Xo(t.overlayRef)||t.isEntering||!1,o=ue({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:t.isExiting,state:r}}),s=F8(),d,c;if(typeof document<"u"){let m=en(document.body)?document.body:document.scrollingElement||document.documentElement,h=m.getBoundingClientRect().width%1,p=m.getBoundingClientRect().height%1;d=m.scrollWidth-h,c=m.scrollHeight-p}let f={...o.style,"--visual-viewport-width":s.width+"px","--visual-viewport-height":s.height+"px","--page-width":d!==void 0?d+"px":void 0,"--page-height":c!==void 0?c+"px":void 0};return u.createElement(qo,{isExiting:t.isExiting,portalContainer:e},u.createElement(re.div,{...X(ie(t,{global:!0}),a),...o,style:f,ref:t.overlayRef,"data-entering":l||void 0,"data-exiting":t.isExiting||void 0},u.createElement(Pe,{values:[[uu,{modalProps:i,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Ot,r]]},o.children)))}function Mb(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:i}=u.useContext(uu),a=u.useContext(Ot),l=u.useMemo(()=>fr(e.modalRef,n),[e.modalRef,n]),o=Te(l),s=Xo(o),d=ue({...e,defaultClassName:"react-aria-Modal",values:{isEntering:s,isExiting:r,state:a}});return u.createElement(re.div,{...X(ie(e,{global:!0}),t),...d,ref:o,"data-entering":s||void 0,"data-exiting":r||void 0},i&&u.createElement(Yo,{onDismiss:a.close}),d.children)}var Kb={};Kb={"Clear search":"مسح البحث"};var Lb={};Lb={"Clear search":"Изчистване на търсене"};var Ob={};Ob={"Clear search":"Vymazat hledání"};var zb={};zb={"Clear search":"Ryd søgning"};var Vb={};Vb={"Clear search":"Suche zurücksetzen"};var _b={};_b={"Clear search":"Απαλοιφή αναζήτησης"};var Rb={};Rb={"Clear search":"Clear search"};var jb={};jb={"Clear search":"Borrar búsqueda"};var Hb={};Hb={"Clear search":"Tühjenda otsing"};var Ub={};Ub={"Clear search":"Tyhjennä haku"};var Wb={};Wb={"Clear search":"Effacer la recherche"};var Gb={};Gb={"Clear search":"נקה חיפוש"};var Zb={};Zb={"Clear search":"Obriši pretragu"};var Yb={};Yb={"Clear search":"Keresés törlése"};var qb={};qb={"Clear search":"Cancella ricerca"};var Xb={};Xb={"Clear search":"検索をクリア"};var Jb={};Jb={"Clear search":"검색 지우기"};var Qb={};Qb={"Clear search":"Išvalyti iešką"};var eg={};eg={"Clear search":"Notīrīt meklēšanu"};var tg={};tg={"Clear search":"Tøm søk"};var ng={};ng={"Clear search":"Zoekactie wissen"};var rg={};rg={"Clear search":"Wyczyść zawartość wyszukiwania"};var ig={};ig={"Clear search":"Limpar pesquisa"};var ag={};ag={"Clear search":"Limpar pesquisa"};var lg={};lg={"Clear search":"Ştergeţi căutarea"};var og={};og={"Clear search":"Очистить поиск"};var ug={};ug={"Clear search":"Vymazať vyhľadávanie"};var sg={};sg={"Clear search":"Počisti iskanje"};var dg={};dg={"Clear search":"Obriši pretragu"};var cg={};cg={"Clear search":"Rensa sökning"};var fg={};fg={"Clear search":"Aramayı temizle"};var mg={};mg={"Clear search":"Очистити пошук"};var hg={};hg={"Clear search":"清除搜索"};var pg={};pg={"Clear search":"清除搜尋條件"};var bg={};bg={"ar-AE":Kb,"bg-BG":Lb,"cs-CZ":Ob,"da-DK":zb,"de-DE":Vb,"el-GR":_b,"en-US":Rb,"es-ES":jb,"et-EE":Hb,"fi-FI":Ub,"fr-FR":Wb,"he-IL":Gb,"hr-HR":Zb,"hu-HU":Yb,"it-IT":qb,"ja-JP":Xb,"ko-KR":Jb,"lt-LT":Qb,"lv-LV":eg,"nb-NO":tg,"nl-NL":ng,"pl-PL":rg,"pt-BR":ig,"pt-PT":ag,"ro-RO":lg,"ru-RU":og,"sk-SK":ug,"sl-SI":sg,"sr-SP":dg,"sv-SE":cg,"tr-TR":fg,"uk-UA":mg,"zh-CN":hg,"zh-TW":pg};function L8(e){return e&&e.__esModule?e.default:e}function O8(e,t,n){let r=ke(L8(bg),"@react-aria/searchfield"),{isDisabled:i,isReadOnly:a,onSubmit:l,onClear:o,type:s="search"}=e,{keyboardProps:d}=Le({isDisabled:i||a,shortcuts:{Enter:()=>{if(l){l(t.value);return}return!1},Escape:()=>{if(t.value===""&&(!n.current||n.current.value===""))return!1;t.setValue(""),o?.()}}}),c=()=>{t.setValue(""),o&&o()},f=()=>{n.current?.focus()},{labelProps:m,inputProps:h,descriptionProps:p,errorMessageProps:g,...y}=m0({...e,value:t.value,onChange:t.setValue,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,type:s},n);return{labelProps:m,inputProps:X(d,{...h,defaultValue:void 0}),clearButtonProps:{"aria-label":r.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:i||a,onPress:c,onPressStart:f},descriptionProps:p,errorMessageProps:g,...y}}function z8(e){let[t,n]=He(gg(e.value),gg(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}function gg(e){if(e!=null)return e.toString()}const V8=u.createContext(null),_8=Vn(function(t,n){[t,n]=pe(t,n,V8);let{validationBehavior:r}=qe(fa)||{},i=t.validationBehavior??r??"native",a=u.useRef(null);[t,a]=pe(t,a,vr);let[l,o]=un(!t["aria-label"]&&!t["aria-labelledby"]),s=z8({...t,validationBehavior:i}),{labelProps:d,inputProps:c,clearButtonProps:f,descriptionProps:m,errorMessageProps:h,...p}=O8({...mr(t),label:o,validationBehavior:i},s,a),g=ue({...t,values:{isEmpty:s.value==="",isDisabled:t.isDisabled||!1,isInvalid:p.isInvalid||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,state:s},defaultClassName:"react-aria-SearchField"}),y=ie(t,{global:!0});return delete y.id,u.createElement(re.div,{...y,...g,ref:n,slot:t.slot||void 0,"data-empty":s.value===""||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0},u.createElement(Pe,{values:[[pn,{...d,ref:l}],[Jn,{...c,ref:a}],[vt,f],[tt,{slots:{description:m,errorMessage:h}}],[Xn,{isInvalid:p.isInvalid,isDisabled:t.isDisabled||!1}],[da,p]]},g.children))}),su=new WeakMap;function R8(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:l,form:o,validationBehavior:s="aria"}=e,d=Qn({usage:"search",sensitivity:"base"}),c=u.useMemo(()=>r||new Vr(t.collection,t.disabledKeys,n,d),[r,t.collection,t.disabledKeys,d,n]),{menuTriggerProps:f,menuProps:m}=Qo({isDisabled:i,type:"listbox"},t,n),{keyboardProps:h}=Le({shortcuts:{ArrowLeft:()=>{if(t.selectionManager.selectionMode==="multiple")return!1;let k=t.selectedKey!=null?c.getKeyAbove?.(t.selectedKey):c.getFirstKey?.();k!=null&&t.setSelectedKey(k)},ArrowRight:()=>{if(t.selectionManager.selectionMode==="multiple")return!1;let k=t.selectedKey!=null?c.getKeyBelow?.(t.selectedKey):c.getFirstKey?.();k!=null&&t.setSelectedKey(k)}},allowRepeats:!0,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp}),{typeSelectProps:p}=jm({keyboardDelegate:c,selectionManager:t.selectionManager,onTypeSelect(k){t.setSelectedKey(k)}}),{isInvalid:g,validationErrors:y,validationDetails:$}=t.displayValidation,{labelProps:x,fieldProps:v,descriptionProps:C,errorMessageProps:w}=Do({...e,labelElementType:"span",isInvalid:g,errorMessage:e.errorMessage||y});t.selectionManager.selectionMode==="multiple"&&(p={});let S=ie(e,{labelable:!0}),B=X(p,f,v),E=Ee();return su.set(t,{isDisabled:i,isRequired:a,name:l,form:o,validationBehavior:s}),{labelProps:{...x,onClick:()=>{e.isDisabled||(n.current?.focus(),Ln("keyboard"))}},triggerProps:X(S,{...B,isDisabled:i,onKeyDown:at(B.onKeyDown,h.onKeyDown),onKeyUp:h.onKeyUp,"aria-labelledby":[E,B["aria-labelledby"],B["aria-label"]&&!B["aria-labelledby"]?B.id:null].filter(Boolean).join(" "),onFocus(k){t.isFocused||(e.onFocus&&e.onFocus(k),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(k){t.isOpen||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:E},menuProps:{...m,onAction:void 0,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:k=>{ae(k.currentTarget,k.relatedTarget)||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[v["aria-labelledby"],B["aria-label"]&&!v["aria-labelledby"]?B.id:null].filter(Boolean).join(" ")},descriptionProps:C,errorMessageProps:w,isInvalid:g,validationErrors:y,validationDetails:$,hiddenSelectProps:{isDisabled:i,name:l,label:e.label,state:t,triggerRef:n,form:o}}}function j8(e,t,n){let r=su.get(t)||{},{autoComplete:i,name:a=r.name,form:l=r.form,isDisabled:o=r.isDisabled}=e,{validationBehavior:s,isRequired:d}=r,{visuallyHiddenProps:c}=Dn({style:{position:"fixed",top:0,left:0}});ma(e.selectRef,t.defaultValue,t.setValue),Eo({validationBehavior:s,focus:()=>n.current?.focus()},t,e.selectRef);let f=t.setValue,m=u.useCallback(h=>{let p=G(h);p.multiple?f(Array.from(p.selectedOptions,g=>g.value)):f(h.currentTarget.value)},[f]);return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:o,multiple:t.selectionManager.selectionMode==="multiple",required:s==="native"&&d,name:a,form:l,value:t.value??"",onChange:m,onInput:m}}}function H8(e){let{state:t,triggerRef:n,label:r,name:i,form:a,isDisabled:l}=e,o=u.useRef(null),s=u.useRef(null),{containerProps:d,selectProps:c}=j8({...e,selectRef:t.collection.size<=300?o:s},t,n),f=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return u.createElement("div",{...d,"data-testid":"hidden-select-container"},u.createElement("label",null,r,u.createElement("select",{...c,ref:o},u.createElement("option",{value:"",label:" "}," "),[...t.collection.getKeys()].map(m=>{let h=t.collection.getItem(m);if(h&&h.type==="item")return u.createElement("option",{key:h.key,value:h.key},h.textValue)}),t.collection.size===0&&i&&f.map((m,h)=>u.createElement("option",{key:h,value:m??""})))));if(i){let m=su.get(t)||{},{validationBehavior:h}=m;f.length===0&&(f=[null]);let p=f.map((g,y)=>{let $={type:"hidden",autoComplete:c.autoComplete,name:i,form:a,disabled:l,value:g??""};return h==="native"?u.createElement("input",{key:y,...$,ref:y===0?s:null,style:{display:"none"},type:"text",required:y===0?c.required:!1,onChange:()=>{}}):u.createElement("input",{key:y,...$,ref:y===0?s:null})});return u.createElement(u.Fragment,null,p)}return null}function U8(e){let{selectionMode:t="single",shouldCloseOnSelect:n=t==="single"}=e,r=Yr(e),[i,a]=u.useState(null),l=u.useMemo(()=>e.defaultValue!==void 0?e.defaultValue:t==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,t]),o=u.useMemo(()=>e.value!==void 0?e.value:t==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,t]),[s,d]=He(o,l,e.onChange),c=t==="single"&&Array.isArray(s)?s[0]:s,f=v=>{if(t==="single"){let C=Array.isArray(v)?v[0]??null:v;d(C),C!==c&&e.onSelectionChange?.(C)}else{let C=[];Array.isArray(v)?C=v:v!=null&&(C=[v]),d(C)}},m=xa({...e,selectionMode:t,disallowEmptySelection:t==="single",allowDuplicateSelectionEvents:!0,selectedKeys:u.useMemo(()=>W8(c),[c]),onSelectionChange:v=>{if(v!=="all"){if(t==="single"){let C=v.values().next().value??null;f(C)}else f([...v]);n&&r.close(),g.commitValidation()}}}),h=m.selectionManager.firstSelectedKey,p=u.useMemo(()=>[...m.selectionManager.selectedKeys].map(v=>m.collection.getItem(v)).filter(v=>v!=null),[m.selectionManager.selectedKeys,m.collection]),g=ca({...e,value:Array.isArray(c)&&c.length===0?null:c}),[y,$]=u.useState(!1),[x]=u.useState(c);return{...g,...m,...r,value:c,defaultValue:l??x,setValue:f,selectedKey:h,setSelectedKey:f,selectedItem:p[0]??null,selectedItems:p,defaultSelectedKey:e.defaultSelectedKey??(e.selectionMode==="single"?x:null),focusStrategy:i,open(v=null){(m.collection.size!==0||e.allowsEmptyCollection)&&(a(v),r.open())},toggle(v=null){(m.collection.size!==0||e.allowsEmptyCollection)&&(a(v),r.toggle())},isFocused:y,setFocused:$}}function W8(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function G8(e){return e&&e.__esModule?e.default:e}const du=u.createContext(null),yg=u.createContext(null),Z8=Vn(function(t,n){[t,n]=pe(t,n,du);let{children:r,isDisabled:i=!1,isInvalid:a=!1,isRequired:l=!1}=t,o=u.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,a,l]);return u.createElement(fn,{content:o},s=>u.createElement(q8,{props:t,collection:s,selectRef:n}))}),Y8=[pn,vt,tt];function q8({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=qe(fa)||{},i=e.validationBehavior??r??"native",a=U8({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:l,focusProps:o}=Oe({within:!0}),s=u.useRef(null),[d,c]=un(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:f,triggerProps:m,valueProps:h,menuProps:p,descriptionProps:g,errorMessageProps:y,hiddenSelectProps:$,...x}=R8({...mr(e),label:c,validationBehavior:i},a,s),v=u.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:l,isDisabled:e.isDisabled||!1,isInvalid:x.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,l,e.isDisabled,x.isInvalid,e.isRequired]),C=ue({...e,values:v,defaultClassName:"react-aria-Select"}),w=ie(e,{global:!0});delete w.id;let S=u.useRef(null);return u.createElement(Pe,{values:[[du,e],[yg,a],[$g,h],[pn,{...f,ref:d,elementType:"span"}],[vt,{...m,ref:s,isPressed:a.isOpen,autoFocus:e.autoFocus}],[Ot,a],[qr,{trigger:"Select",triggerRef:s,scrollRef:S,placement:"bottom start","aria-labelledby":p["aria-labelledby"],clearContexts:Y8}],[Hr,{...p,ref:S}],[Sn,a],[tt,{slots:{description:g,errorMessage:y}}],[da,x]]},u.createElement(re.div,{...X(w,C,o),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":l||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":x.isInvalid||void 0,"data-required":e.isRequired||void 0},C.children,u.createElement(H8,{...$,autoComplete:e.autoComplete})))}const $g=u.createContext(null),X8=Vn(function(t,n){[t,n]=pe(t,n,$g);let r=u.useContext(yg),{placeholder:i}=qe(du),a=r.selectedItems.map(p=>{let g=p.props?.children;return typeof g=="function"&&(g=g({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"})),g}),l=j9(),o=u.useMemo(()=>r.selectedItems.map(p=>p?.textValue),[r.selectedItems]),s=r.selectionManager.selectionMode,d=u.useMemo(()=>s==="single"?o[0]??"":l.format(o),[s,l,o]),c=u.useMemo(()=>{if(s==="single")return a[0];let p=l.formatToParts(o);if(p.length===0)return null;let g=0;return p.map(y=>y.type==="element"?u.createElement(u.Fragment,{key:g},a[g++]):y.value)},[s,l,o,a]),f=ke(G8(wo),"react-aria-components"),m=ue({...t,defaultChildren:c??i??f.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:r.selectedItems[0]?.value??null,selectedItems:u.useMemo(()=>r.selectedItems.map(p=>p.value??null),[r.selectedItems]),selectedText:d,isPlaceholder:r.selectedItems.length===0,state:r}}),h=ie(t,{global:!0});return u.createElement(re.span,{ref:n,...h,...m,"data-placeholder":r.selectedItems.length===0||void 0},u.createElement(tt.Provider,{value:void 0},m.children))}),vg=10,xg=5;class J8{setup(t,n,r){this.delegate=t,this.state=n,this.direction=r}getDropTargetFromPoint(t,n,r){let i=this.delegate.getDropTargetFromPoint(t,n,r);return!i||i.type==="root"?i:this.resolveDropTarget(i,t,n,r)}resolveDropTarget(t,n,r,i){let a=this.pointerTracking,l=r-a.lastY,o=n-a.lastX,s=a.yDirection,d=a.xDirection;if(Math.abs(l)>xg&&(s=l>0?"down":"up",a.yDirection=s,a.lastY=r),Math.abs(o)>vg&&(d=o>0?"right":"left",a.xDirection=d,a.lastX=n),t.dropPosition==="before"){let m=this.state.collection.getKeyBefore(t.key);for(;m!=null;){let h=this.state.collection.getItem(m);if(h?.type==="item")break;m=h?.parentKey??null}if(m!=null){let h={type:"item",key:m,dropPosition:"after"};i(h)&&(t=h)}}let c=this.getPotentialTargets(t,i);if(c.length===0)return{type:"root"};let f;return c.length>1?f=this.selectTarget(c,t,n,r,s,d):(f=c[0],a.boundaryContext=null),f}getPotentialTargets(t,n){if(t.dropPosition==="on")return[t];let r=t,i=this.state.collection,a=i.getItem(r.key);for(;a&&a?.type!=="item"&&a.nextKey!=null;)r.key=a.nextKey,a=i.getItem(a.nextKey);let l=[r];if(a&&a.hasChildNodes&&this.state.expandedKeys.has(a.key)&&i.getChildren&&r.dropPosition==="after"){let d=a.firstChildKey!=null?i.getItem(a.firstChildKey):null;for(;d&&d.type!=="item";)d=d.nextKey!=null?i.getItem(d.nextKey):null;if(d?.type==="item"){const c={type:"item",key:d.key,dropPosition:"before"};return n(c)?[c]:[]}}if(a?.nextKey!=null)return[t];let o=a?.parentKey,s=[];for(;o!=null;){let d=i.getItem(o),c=d?.nextKey!=null?i.getItem(d.nextKey):null;if(!c||c.parentKey!==o){let m={type:"item",key:o,dropPosition:"after"};if(n(m)&&s.push(m),c)break}o=d?.parentKey}if(s.length>0&&l.push(...s),l.length===1){let d=i.getKeyAfter(r.key),c=d!=null?i.getItem(d):null;if(d!=null&&c&&a&&c.level!=null&&a.level!=null&&c.level>a.level){let f={type:"item",key:d,dropPosition:"before"};if(n(f))return[f]}}return l.filter(n)}selectTarget(t,n,r,i,a,l){if(t.length<2)return t[0];let o=this.pointerTracking,d=this.state.collection.getItem(n.key)?.parentKey;if(d==null)return t[0];if(!o.boundaryContext||o.boundaryContext.parentKey!==d){let p=o.yDirection==="up"?t.length-1:0;o.boundaryContext={parentKey:d,preferredTargetIndex:p,lastSwitchY:i,lastSwitchX:r}}let c=o.boundaryContext,f=Math.abs(r-c.lastSwitchX);if(Math.abs(i-c.lastSwitchY)>xg&&a){let p=c.preferredTargetIndex||0;a==="down"&&p===0?c.preferredTargetIndex=t.length-1:a==="up"&&p===t.length-1&&(c.preferredTargetIndex=0),o.xDirection=null}if(f>vg&&l){let p=c.preferredTargetIndex||0;l==="left"?this.direction==="ltr"?p<t.length-1&&(c.preferredTargetIndex=p+1,c.lastSwitchX=r):p>0&&(c.preferredTargetIndex=p-1,c.lastSwitchX=r):l==="right"&&(this.direction==="ltr"?p>0&&(c.preferredTargetIndex=p-1,c.lastSwitchX=r):p<t.length-1&&(c.preferredTargetIndex=p+1,c.lastSwitchX=r)),o.yDirection=null}let h=Math.max(0,Math.min(c.preferredTargetIndex||0,t.length-1));return t[h]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class Q8{constructor(t){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=t?.columnCount,this.rows=[];let n=a=>{let l=this.keyMap.get(a.key);t.visitNode&&(a=t.visitNode(a)),this.keyMap.set(a.key,a);let o=new Set,s=null,d=!1;if(a.type==="item"){for(let c of a.childNodes)if(c.props?.colSpan!==void 0){d=!0;break}}for(let c of a.childNodes)c.type==="cell"&&d&&(c.colspan=c.props?.colSpan,c.colSpan=c.props?.colSpan,c.colIndex=s?(s.colIndex??s.index)+(s.colSpan??1):c.index),c.type==="cell"&&c.parentKey==null&&(c.parentKey=a.key),o.add(c.key),s?(s.nextKey=c.key,c.prevKey=s.key):c.prevKey=null,n(c),s=c;if(s&&(s.nextKey=null),l)for(let c of l.childNodes)o.has(c.key)||r(c)},r=a=>{this.keyMap.delete(a.key);for(let l of a.childNodes)this.keyMap.get(l.key)===l&&r(l)},i=null;for(let[a,l]of t.items.entries()){let o={...l,level:l.level??0,key:l.key??"row-"+a,type:l.type??"row",value:l.value??null,hasChildNodes:!0,childNodes:[...l.childNodes],rendered:l.rendered,textValue:l.textValue??"",index:l.index??a};i?(i.nextKey=o.key,o.prevKey=i.key):o.prevKey=null,this.rows.push(o),n(o),i=o}i&&(i.nextKey=null)}*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return[...this.rows][0]?.key}getLastKey(){let t=[...this.rows];return t[t.length-1]?.key}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}}const Cg="row-header-column-"+Math.random().toString(36).slice(2);let cu="row-header-column-"+Math.random().toString(36).slice(2);for(;Cg===cu;)cu="row-header-column-"+Math.random().toString(36).slice(2);function Dg(e,t){if(t.length===0)return[];let n=[],r=new Map;for(let s of t){let d=s.parentKey,c=[s];for(;d!=null;){let f=e.get(d);if(!f)break;if(r.has(f)){f.colSpan??=0,f.colSpan++,f.colspan=f.colSpan;let{column:m,index:h}=r.get(f);if(h>c.length)break;for(let p=h;p<c.length;p++)m.splice(p,0,null);for(let p=c.length;p<m.length;p++)m[p]&&r.has(m[p])&&(r.get(m[p]).index=p)}else f.colSpan=1,f.colspan=1,c.push(f),r.set(f,{column:c,index:c.length-1});d=f.parentKey}n.push(c),s.index=n.length-1}let i=Math.max(...n.map(s=>s.length)),a=Array(i).fill(0).map(()=>[]),l=0;for(let s of n){let d=i-1;for(let c of s){if(c){let f=a[d],m=f.reduce((h,p)=>h+(p.colSpan??1),0);if(m<l){let h={type:"placeholder",key:"placeholder-"+c.key,colspan:l-m,colSpan:l-m,index:m,value:null,rendered:null,level:d,hasChildNodes:!1,childNodes:[],textValue:""};f.length>0&&(f[f.length-1].nextKey=h.key,h.prevKey=f[f.length-1].key),f.push(h)}f.length>0&&(f[f.length-1].nextKey=c.key,c.prevKey=f[f.length-1].key),c.level=d,c.colIndex=l,f.push(c)}d--}l++}let o=0;for(let s of a){let d=s.reduce((c,f)=>c+(f.colSpan??1),0);if(d<t.length){let c={type:"placeholder",key:"placeholder-"+s[s.length-1].key,colSpan:t.length-d,colspan:t.length-d,index:d,value:null,rendered:null,level:o,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:s[s.length-1].key};s.push(c)}o++}return a.map((s,d)=>({type:"headerrow",key:"headerrow-"+d,index:d,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:s,textValue:""}))}class e7 extends Q8{constructor(t,n,r){let i=new Set,a=null,l=[];if(r?.showSelectionCheckboxes){let f={type:"column",key:Cg,value:null,textValue:"",level:0,index:r?.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};l.unshift(f)}if(r?.showDragButtons){let f={type:"column",key:cu,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};l.unshift(f)}let o=[],s=new Map,d=f=>{switch(f.type){case"body":a=f;break;case"column":s.set(f.key,f),f.hasChildNodes||(l.push(f),f.props.isRowHeader&&i.add(f.key));break;case"item":o.push(f);return}for(let m of f.childNodes)d(m)};for(let f of t)d(f);let c=Dg(s,l);if(c.forEach((f,m)=>o.splice(m,0,f)),super({columnCount:l.length,items:o,visitNode:f=>(f.column=l[f.index],f)}),this._size=0,this.columns=l,this.rowHeaderColumnKeys=i,this.body=a,this.headerRows=c,this._size=[...a.childNodes].length,this.rowHeaderColumnKeys.size===0){let f=this.columns.find(m=>!m.props?.isDragButtonCell&&!m.props?.isSelectionCell);f&&this.rowHeaderColumnKeys.add(f.key)}}*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){return this.keyMap.get(t)?.prevKey??null}getKeyAfter(t){return this.keyMap.get(t)?.nextKey??null}getFirstKey(){return Lt(this.body.childNodes)?.key??null}getLastKey(){return er(this.body.childNodes)?.key??null}getItem(t){return t===this.body.key?this.body:this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){if(t===this.body.key)return this.body.childNodes;let n=this.getItem(t);return n?.type==="item"?[...n.childNodes].filter(r=>r.type==="cell"):super.getChildren(t)}getTextValue(t){let n=this.getItem(t);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys;if(r){let i=[];for(let a of n.childNodes){let l=this.columns[a.index];if(r.has(l.key)&&a.textValue&&i.push(a.textValue),i.length===r.size)break}return i.join(" ")}return""}}function t7(e){return e!=null&&(!isNaN(e)||String(e).match(/^(\d+)(?=%$)/)!==null)}function n7(e){if(!e||typeof e=="number")return 1;let t=e.match(/^(.+)(?=fr$)/);return t?parseFloat(t[0]):(process.env.NODE_ENV!=="production"&&console.warn(`width: ${e} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`,"defaulting to '1fr'"),1)}function fu(e,t){if(typeof e=="string"){let n=e.match(/^(\d+)(?=%$)/);if(!n)throw new Error("Only percentages or numbers are supported for static column widths");return t*(parseFloat(n[0])/100)}return e}function Eg(e,t){return e!=null?fu(e,t):Number.MAX_SAFE_INTEGER}function wg(e,t){return e!=null?fu(e,t):0}function r7(e,t,n,r,i){let a=e,l=Math.floor(e),o=e-l>0;e=l;let s=!1,d=t.map((f,m)=>{let h=n.get(f.key)!=null?n.get(f.key)??"1fr":f.width??f.defaultWidth??r?.(m)??"1fr",p=!1,g=0,y=0,$=0;t7(h)?(g=fu(h,e),p=!0):(y=n7(h),y<=0&&(p=!0));let x=wg(f.minWidth??i?.(m)??0,e),v=Eg(f.maxWidth,e),C=Math.max(x,Math.min(g,v));return p?$=C:g>C&&(p=!0,$=C),p||(s=!0),{frozen:p,baseSize:g,hypotheticalMainSize:C,min:x,max:v,flex:y,targetMainSize:$,violation:0}});for(;s;){let f=0,m=0;d.forEach(g=>{g.frozen?f+=g.targetMainSize:(f+=g.baseSize,m+=g.flex)});let h=e-f;h>0&&d.forEach(g=>{if(!g.frozen){let y=g.flex/m;g.targetMainSize=g.baseSize+y*h}});let p=0;d.forEach(g=>{if(g.violation=0,!g.frozen){let{min:y,max:$,targetMainSize:x}=g;g.targetMainSize=Math.max(y,Math.min(x,$)),g.violation=g.targetMainSize-x,p+=g.violation}}),s=!1,d.forEach(g=>{p===0||Math.sign(p)===Math.sign(g.violation)?g.frozen=!0:g.frozen||(s=!0)})}let c=i7(d);if(o&&c.length>0){let f=a.toString().split(".")[1],m=c[c.length-1].toString();c[c.length-1]=+(m+"."+f)}return c}function i7(e){let t=0,n=0,r=[];return e.forEach(function(i){let a=i.targetMainSize,l=Math.round(a+t)-n;t+=a,n+=l,r.push(l)}),r}class a7{constructor(t){this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,this.getDefaultWidth=t?.getDefaultWidth??(()=>"1fr"),this.getDefaultMinWidth=t?.getDefaultMinWidth??(()=>75)}splitColumnsIntoControlledAndUncontrolled(t){return t.reduce((n,r)=>(r.props.width!=null?n[0].set(r.key,r):n[1].set(r.key,r),n),[new Map,new Map])}recombineColumns(t,n,r,i){return new Map(t.map(a=>r.has(a.key)?[a.key,n.get(a.key)]:[a.key,i.get(a.key).props.width]))}getInitialUncontrolledWidths(t){return new Map(Array.from(t).map(([n,r])=>[n,r.props.defaultWidth??this.getDefaultWidth?.(r)??"1fr"]))}getColumnWidth(t){return this.columnWidths.get(t)??0}getColumnMinWidth(t){return this.columnMinWidths.get(t)??0}getColumnMaxWidth(t){return this.columnMaxWidths.get(t)??0}resizeColumnWidth(t,n,r,i){let a=this.columnWidths,l=!0,o=new Map;return i=Math.max(this.getColumnMinWidth(r),Math.min(this.getColumnMaxWidth(r),Math.floor(i))),t.columns.forEach(s=>{s.key===r?(o.set(s.key,i),l=!1):l?o.set(s.key,a.get(s.key)??0):o.set(s.key,s.props.width??n.get(s.key))}),o}buildColumnWidths(t,n,r){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,r7(t,n.columns.map(a=>({...a.props,key:a.key})),r,a=>this.getDefaultWidth(n.columns[a]),a=>this.getDefaultMinWidth(n.columns[a])).forEach((a,l)=>{let o=n.columns[l].key,s=n.columns[l];this.columnWidths.set(o,a),this.columnMinWidths.set(o,wg(s.props.minWidth??this.getDefaultMinWidth(s),t)),this.columnMaxWidths.set(o,Eg(s.props.maxWidth,t))}),this.columnWidths}}function l7(e,t){let{getDefaultWidth:n,getDefaultMinWidth:r,tableWidth:i=0}=e,[a,l]=u.useState(null),o=u.useMemo(()=>new a7({getDefaultWidth:n,getDefaultMinWidth:r}),[n,r]),[s,d]=u.useMemo(()=>o.splitColumnsIntoControlledAndUncontrolled(t.collection.columns),[t.collection.columns,o]),[c,f]=u.useState(()=>o.getInitialUncontrolledWidths(d)),[m,h]=u.useState(t.collection.columns);if(t.collection.columns!==m){if(t.collection.columns.length!==m.length||t.collection.columns.some((v,C)=>v.key!==m[C].key)){let v=o.getInitialUncontrolledWidths(d);f(v)}h(t.collection.columns)}let p=u.useMemo(()=>o.recombineColumns(t.collection.columns,c,d,s),[t.collection.columns,c,d,s,o]),g=u.useCallback(v=>{l(v)},[l]),y=u.useCallback((v,C)=>{let w=o.resizeColumnWidth(t.collection,c,v,C),S=new Map(Array.from(d).map(([B])=>[B,w.get(B)]));return S.set(v,C),f(S),w},[d,f,o,t.collection,c]),$=u.useCallback(()=>{l(null)},[l]),x=u.useMemo(()=>o.buildColumnWidths(i,t.collection,p),[i,t.collection,p,o]);return u.useMemo(()=>({resizingColumn:a,updateResizedColumns:y,startResize:g,endResize:$,getColumnWidth:v=>o.getColumnWidth(v),getColumnMinWidth:v=>o.getColumnMinWidth(v),getColumnMaxWidth:v=>o.getColumnMaxWidth(v),tableState:t,columnWidths:x}),[o,x,a,y,g,$,t])}function o7(e){let{collection:t,focusMode:n}=e,r=e.UNSAFE_selectionState||jr(e),i=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=r.setFocusedKey;r.setFocusedKey=(s,d)=>{if(n==="cell"&&s!=null){let c=t.getItem(s);if(c?.type==="item"){let f=Ne(c,t);d==="last"?s=er(f)?.key??null:s=Lt(f)?.key??null}}a(s,d)};let l=u.useMemo(()=>new tr(t,r),[t,r]);const o=u.useRef(null);return u.useEffect(()=>{if(r.focusedKey!=null&&o.current&&!t.getItem(r.focusedKey)){const s=o.current.getItem(r.focusedKey),d=s?.parentKey!=null&&(s.type==="cell"||s.type==="rowheader"||s.type==="column")?o.current.getItem(s.parentKey):s;if(!d){r.setFocusedKey(null);return}const c=o.current.rows,f=t.rows,m=c.length-f.length;let h=Math.min(m>1?Math.max(d.index-m+1,0):d.index,f.length-1),p=null;for(let g=Math.max(0,h);g<f.length;g++)if(!l.isDisabled(f[g].key)&&f[g].type!=="headerrow"){p=f[g];break}if(p===null){for(let g=h-1;g>=0;g--)if(!l.isDisabled(f[g].key)&&f[g].type!=="headerrow"){p=f[g];break}}if(p){const g=p.hasChildNodes?[...Ne(p,t)]:[],y=p.hasChildNodes&&d!==s&&s&&s.index<g.length?g[s.index].key:p.key;r.setFocusedKey(y)}else r.setFocusedKey(null)}o.current=t},[t,l,r,r.focusedKey]),{collection:t,disabledKeys:i,isKeyboardNavigationDisabled:!1,selectionManager:l}}const u7={ascending:"descending",descending:"ascending"};function s7(e){let[t,n]=u.useState(!1),{selectionMode:r="none",showSelectionCheckboxes:i,showDragButtons:a,treeColumn:l=null}=e,o=u.useMemo(()=>({showSelectionCheckboxes:i&&r!=="none",showDragButtons:a,selectionMode:r,columns:[]}),[e.children,i,r,a]),s=jo(e,u.useCallback(h=>new e7(h,null,o),[o]),o),{disabledKeys:d,selectionManager:c}=o7({...e,collection:s,disabledBehavior:e.disabledBehavior||"selection"}),[f,m]=He(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);return{collection:s,disabledKeys:d,selectionManager:c,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor??null,isKeyboardNavigationDisabled:s.size===0||t,setKeyboardNavigationDisabled:n,sort(h,p){e.onSortChange?.({column:h,direction:p??(e.sortDescriptor?.column===h?u7[e.sortDescriptor.direction]:"ascending")})},expandedKeys:f,toggleKey(h){m(p=>{let g=new Set(p);return g.has(h)?g.delete(h):g.add(h),g})},treeColumn:l}}function d7(e,t){let n=u.useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return{...e,collection:n,selectionManager:r}}class Sg{constructor(t){if(this.collection=t.collection,this.disabledKeys=t.disabledKeys,this.disabledBehavior=t.disabledBehavior||"all",this.direction=t.direction,this.collator=t.collator,!t.layout&&!t.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=t.layoutDelegate||(t.layout?new c7(t.layout):new Ko(t.ref)),this.focusMode=t.focusMode??"row"}isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findPreviousKey(t,n,r=!1){let i=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;i!=null;){let a=this.collection.getItem(i);if(!a)return null;if((r||!this.isDisabled(a))&&(!n||n(a)))return i;i=this.collection.getKeyBefore(i)}return null}findNextKey(t,n,r=!1){let i=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;i!=null;){let a=this.collection.getItem(i);if(!a)return null;if((r||!this.isDisabled(a))&&(!n||n(a)))return i;if(i=this.collection.getKeyAfter(i),i==null)return null}return null}getKeyForItemInRowByIndex(t,n=0){if(n<0)return null;let r=this.collection.getItem(t);if(!r)return null;let i=0;for(let a of Ne(r,this.collection)){if(a.colSpan&&a.colSpan+i>n||(a.colSpan&&(i=i+a.colSpan-1),i===n))return a.key??null;i++}return null}getKeyBelow(t,n){let r=t,i=this.collection.getItem(r);if(!i||(this.isCell(i)&&(r=i.parentKey??null),r==null))return null;if(r=this.findNextKey(r,a=>a.type==="item",n?.includeDisabled),r!=null){if(this.isCell(i)){let a=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(r,a)}if(this.focusMode==="row")return r}return null}getKeyAbove(t,n){let r=t,i=this.collection.getItem(r);if(!i||(this.isCell(i)&&(r=i.parentKey??null),r==null))return null;if(r=this.findPreviousKey(r,a=>a.type==="item",n?.includeDisabled),r!=null){if(this.isCell(i)){let a=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(r,a)}if(this.focusMode==="row")return r}return null}getKeyRightOf(t){let n=this.collection.getItem(t);if(!n)return null;if(this.isRow(n)){let r=Ne(n,this.collection);return(this.direction==="rtl"?er(r)?.key:Lt(r)?.key)??null}if(this.isCell(n)&&n.parentKey!=null){let r=this.collection.getItem(n.parentKey);if(!r)return null;let i=Ne(r,this.collection),a=(this.direction==="rtl"?Rr(i,n.index-1):Rr(i,n.index+1))??null;return a?a.key??null:this.focusMode==="row"?n.parentKey??null:(this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t))??null}return null}getKeyLeftOf(t){let n=this.collection.getItem(t);if(!n)return null;if(this.isRow(n)){let r=Ne(n,this.collection);return(this.direction==="rtl"?Lt(r)?.key:er(r)?.key)??null}if(this.isCell(n)&&n.parentKey!=null){let r=this.collection.getItem(n.parentKey);if(!r)return null;let i=Ne(r,this.collection),a=(this.direction==="rtl"?Rr(i,n.index+1):Rr(i,n.index-1))??null;return a?a.key??null:this.focusMode==="row"?n.parentKey??null:(this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t))??null}return null}getFirstKey(t,n){let r=t??null,i;if(r!=null){if(i=this.collection.getItem(r),!i)return null;if(this.isCell(i)&&!n&&i.parentKey!=null){let a=this.collection.getItem(i.parentKey);return a?Lt(Ne(a,this.collection))?.key??null:null}}if(r=this.findNextKey(void 0,a=>a.type==="item"),r!=null&&(i&&this.isCell(i)&&n||this.focusMode==="cell")){let a=this.collection.getItem(r);if(!a)return null;r=Lt(Ne(a,this.collection))?.key??null}return r}getLastKey(t,n){let r=t??null,i;if(r!=null){if(i=this.collection.getItem(r),!i)return null;if(this.isCell(i)&&!n&&i.parentKey!=null){let a=this.collection.getItem(i.parentKey);if(!a)return null;let l=Ne(a,this.collection);return er(l)?.key??null}}if(r=this.findPreviousKey(void 0,a=>a.type==="item"),r!=null&&(i&&this.isCell(i)&&n||this.focusMode==="cell")){let a=this.collection.getItem(r);if(!a)return null;let l=Ne(a,this.collection);r=er(l)?.key??null}return r}getKeyPageAbove(t){let n=t,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i&&n!=null&&(n=this.getKeyAbove(n)??null,n!=null);)r=this.layoutDelegate.getItemRect(n);return n}getKeyPageBelow(t){let n=t,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let i=this.layoutDelegate.getVisibleRect().height,a=Math.min(this.layoutDelegate.getContentSize().height,r.y+i);for(;r&&r.y+r.height<a;){let l=this.getKeyBelow(n);if(l==null)break;r=this.layoutDelegate.getItemRect(l),n=l}return n}getKeyForSearch(t,n){let r=n??null;if(!this.collator)return null;let i=this.collection;if(r=n??this.getFirstKey(),r==null)return null;let a=i.getItem(r);if(!a)return null;a.type==="cell"&&(r=a.parentKey??null);let l=!1;for(;r!=null;){let o=i.getItem(r);if(!o)return null;if(o.textValue){let s=o.textValue.slice(0,t.length);if(this.collator.compare(s,t)===0)return this.isRow(o)&&this.focusMode==="cell"?Lt(Ne(o,this.collection))?.key??null:o.key}r=this.findNextKey(r,s=>s.type==="item"),r==null&&!l&&(r=this.getFirstKey(),l=!0)}return null}}class c7{constructor(t){this.layout=t}getContentSize(){return this.layout.getContentSize()}getItemRect(t){return this.layout.getLayoutInfo(t)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}}const mu=new WeakMap;function f7(e,t,n){let{isVirtualized:r,disallowTypeAhead:i,keyboardDelegate:a,focusMode:l,scrollRef:o,getRowText:s,onRowAction:d,onCellAction:c,escapeKeyBehavior:f="clearSelection",shouldSelectOnPressUp:m,keyboardNavigationBehavior:h="arrow"}=e,{selectionManager:p}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let g=Qn({usage:"search",sensitivity:"base"}),{direction:y}=be(),$=t.selectionManager.disabledBehavior,x=u.useMemo(()=>a||new Sg({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:$,ref:n,direction:y,collator:g,focusMode:l}),[a,t.collection,t.disabledKeys,$,n,y,g,l]),{collectionProps:v}=va({ref:n,selectionManager:p,keyboardDelegate:x,isVirtualized:r,scrollRef:o,disallowTypeAhead:i,escapeKeyBehavior:f}),C=Ee(e.id);mu.set(t,{keyboardDelegate:x,actions:{onRowAction:d,onCellAction:c},shouldSelectOnPressUp:m,keyboardNavigationBehavior:h});let w=k8({selectionManager:p,hasItemActions:!!(d||c)}),S=ie(e,{labelable:!0}),B=u.useCallback(F=>{if(p.isFocused){ae(F.currentTarget,G(F))||p.setFocused(!1);return}ae(F.currentTarget,G(F))&&p.setFocused(!0)},[p]),E=u.useMemo(()=>({onBlur:v.onBlur,onFocus:B}),[B,v.onBlur]),k=S8(n,{isDisabled:t.collection.size!==0}),M=X(S,{role:"grid",id:C,"aria-multiselectable":p.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?E:v,t.collection.size===0&&{tabIndex:k?-1:0}||void 0,w);return r&&(M["aria-rowcount"]=t.collection.size,M["aria-colcount"]=t.collection.columnCount),w8({getRowText:s},t),{gridProps:M}}const hu=new WeakMap;function pu(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Pg(e,t){let n=hu.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${pu(t)}`}function kg(e,t,n){let r=hu.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${pu(t)}-${pu(n)}`}function bu(e,t){return[...e.collection.rowHeaderColumnKeys].map(n=>kg(e,t,n)).join(" ")}var Bg={};Bg={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,collapse:"طي",columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,expand:"تمديد",resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var Ng={};Ng={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,collapse:"Свиване",columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,expand:"Разширяване",resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var Ag={};Ag={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,collapse:"Sbalit",columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,expand:"Roztáhnout",resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var Fg={};Fg={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,collapse:"Skjul",columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,expand:"Udvid",resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var Tg={};Tg={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,collapse:"Reduzieren",columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,expand:"Erweitern",resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var Ig={};Ig={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,collapse:"Σύμπτυξη",columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,expand:"Ανάπτυξη",resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var Mg={};Mg={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing",expand:"Expand",collapse:"Collapse"};var Kg={};Kg={ascending:"ascendente",ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,collapse:"Contraer",columnSize:e=>`${e.value} píxeles`,descending:"descendente",descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,expand:"Ampliar",resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var Lg={};Lg={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,collapse:"Ahenda",columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,expand:"Laienda",resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var Og={};Og={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,collapse:"Pienennä",columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,expand:"Laajenna",resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var zg={};zg={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,collapse:"Réduire",columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,expand:"Développer",resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var Vg={};Vg={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,collapse:"כווץ",columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,expand:"הרחב",resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var _g={};_g={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,collapse:"Sažmi",columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var Rg={};Rg={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,collapse:"Összecsukás",columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,expand:"Kibontás",resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var jg={};jg={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,collapse:"Comprimi",columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,expand:"Espandi",resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var Hg={};Hg={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,collapse:"折りたたむ",columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,expand:"展開",resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var Ug={};Ug={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,collapse:"접기",columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,expand:"펼치기",resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var Wg={};Wg={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,collapse:"Sutraukti",columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,expand:"Išskleisti",resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var Gg={};Gg={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,collapse:"Sakļaut",columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,expand:"Izvērst",resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var Zg={};Zg={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,collapse:"Skjul",columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,expand:"Utvid",resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var Yg={};Yg={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,collapse:"Samenvouwen",columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,expand:"Uitvouwen",resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var qg={};qg={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,collapse:"Zwiń",columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,expand:"Rozwiń",resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var Xg={};Xg={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,collapse:"Recolher",columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,expand:"Expandir",resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var Jg={};Jg={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,collapse:"Colapsar",columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,expand:"Expandir",resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var Qg={};Qg={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,collapse:"Restrângeți",columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,expand:"Extindeți",resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var e2={};e2={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,collapse:"Свернуть",columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,expand:"Развернуть",resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var t2={};t2={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,collapse:"Zbaliť",columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,expand:"Rozbaliť",resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var n2={};n2={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,collapse:"Strni",columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,expand:"Razširi",resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var r2={};r2={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,collapse:"Skupi",columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var i2={};i2={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,collapse:"Dölj",columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,expand:"Expandera",resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var a2={};a2={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,collapse:"Daralt",columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,expand:"Genişlet",resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var l2={};l2={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,collapse:"Згорнути",columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,expand:"Розгорнути",resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var o2={};o2={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,collapse:"折叠",columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,expand:"扩展",resizerDescription:"按 Enter 开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var u2={};u2={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,collapse:"收合",columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,expand:"展開",resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var rr={};rr={"ar-AE":Bg,"bg-BG":Ng,"cs-CZ":Ag,"da-DK":Fg,"de-DE":Tg,"el-GR":Ig,"en-US":Mg,"es-ES":Kg,"et-EE":Lg,"fi-FI":Og,"fr-FR":zg,"he-IL":Vg,"hr-HR":_g,"hu-HU":Rg,"it-IT":jg,"ja-JP":Hg,"ko-KR":Ug,"lt-LT":Wg,"lv-LV":Gg,"nb-NO":Zg,"nl-NL":Yg,"pl-PL":qg,"pt-BR":Xg,"pt-PT":Jg,"ro-RO":Qg,"ru-RU":e2,"sk-SK":t2,"sl-SI":n2,"sr-SP":r2,"sv-SE":i2,"tr-TR":a2,"uk-UA":l2,"zh-CN":o2,"zh-TW":u2};class m7 extends Sg{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t,n){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let i=Lt(Ne(r,this.collection));if(i)return i.key;let a=this.getFirstKey();return a==null||!this.collection.getItem(a)?null:super.getKeyForItemInRowByIndex(a,r.index)}return super.getKeyBelow(t,n)}getKeyAbove(t,n){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let l=r.parentKey!=null?this.collection.getItem(r.parentKey):null;return l&&l.type==="column"?l.key:null}let i=super.getKeyAbove(t,n),a=i!=null?this.collection.getItem(i):null;return a&&a.type!=="headerrow"?i:this.isCell(r)?this.collection.columns[r.index].key:this.collection.columns[0].key}findNextColumnKey(t){let n=this.findNextKey(t.key,i=>i.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level];for(let i of Ne(r,this.collection))if(i.type==="column")return i.key;return null}findPreviousColumnKey(t){let n=this.findPreviousKey(t.key,a=>a.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level],i=[...Ne(r,this.collection)];for(let a=i.length-1;a>=0;a--){let l=i[a];if(l.type==="column")return l.key}return null}getKeyRightOf(t){let n=this.collection.getItem(t);return n?n.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(n):this.findNextColumnKey(n):super.getKeyRightOf(t):null}getKeyLeftOf(t){let n=this.collection.getItem(t);return n?n.type==="column"?this.direction==="rtl"?this.findNextColumnKey(n):this.findPreviousColumnKey(n):super.getKeyLeftOf(t):null}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n??this.getFirstKey();if(i==null)return null;let a=r.getItem(i);a?.type==="cell"&&(i=a.parentKey??null);let l=!1;for(;i!=null;){let o=r.getItem(i);if(!o)return null;if(o.textValue){let s=o.textValue.slice(0,t.length);if(this.collator.compare(s,t)===0)return o.key}for(let s of Ne(o,this.collection)){let d=r.columns[s.index];if(r.rowHeaderColumnKeys.has(d.key)&&s.textValue){let c=s.textValue.slice(0,t.length);if(this.collator.compare(c,t)===0)return(n!=null?r.getItem(n):a)?.type==="cell"?s.key:o.key}}i=this.getKeyBelow(i),i==null&&!l&&(i=this.getFirstKey(),l=!0)}return null}}function h7(e){return e&&e.__esModule?e.default:e}function p7(e,t,n){let{keyboardDelegate:r,isVirtualized:i,layoutDelegate:a,layout:l}=e,o=Qn({usage:"search",sensitivity:"base"}),{direction:s}=be(),d=t.selectionManager.disabledBehavior,c=u.useMemo(()=>r||new m7({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:d,ref:n,direction:s,collator:o,layoutDelegate:a,layout:l}),[r,t.collection,t.disabledKeys,d,n,s,o,a,l]),f=Ee(e.id);hu.set(t,f);let{gridProps:m}=f7({...e,id:f,keyboardDelegate:c},t,n);i&&(m["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),t.treeColumn!=null&&(m.role="treegrid");let{column:h,direction:p}=t.sortDescriptor||{},g=ke(h7(rr),"@react-aria/table"),y=u.useMemo(()=>{let x=t.collection.columns.find(v=>v.key===h)?.textValue??"";return p&&h?g.format(`${p}Sort`,{columnName:x}):void 0},[p,h,t.collection.columns]),$=xn(y);return Tr(()=>{y&&$t(y,"assertive",500)},[y]),{gridProps:X(m,$,{"aria-describedby":[$["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")})}}function s2(e,t,n){let{node:r,isVirtualized:i,focusMode:a,allowsArrowNavigation:l,shouldSelectOnPressUp:o,onAction:s}=e,{direction:d}=be(),{keyboardDelegate:c,actions:{onCellAction:f},keyboardNavigationBehavior:m}=mu.get(t),h=a??(m==="tab"?"cell":"child"),p=u.useRef(null),g=()=>{if(n.current){let S=Ae(n.current);if(h==="child"){if(Ht(n.current)&&n.current!==ce(se(n.current)))return;let B=t.selectionManager.childFocusStrategy==="last"?gu(S):S.firstChild();if(B){Ie(B);return}}(p.current!=null&&r.key!==p.current||!Ht(n.current))&&Ie(n.current)}},{itemProps:y,isPressed:$}=_r({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,focus:g,shouldSelectOnPressUp:o,onAction:f?()=>f(r.key):s,isDisabled:t.collection.size===0}),x=S=>{let B=ce(se(n.current));if(!ae(S.currentTarget,G(S))||t.isKeyboardNavigationDisabled||!n.current||!B)return;let E=Ae(n.current);switch(E.currentNode=B,S.key){case"ArrowLeft":{let k=d==="rtl"?E.nextNode():E.previousNode();if(h==="child"&&k===n.current&&(k=null),S.preventDefault(),S.stopPropagation(),k)Ie(k),Ct(k,{containingElement:ot(n.current)});else{if(c.getKeyLeftOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent));break}h==="cell"&&d==="rtl"?(Ie(n.current),Ct(n.current,{containingElement:ot(n.current)})):(E.currentNode=n.current,k=d==="rtl"?E.firstChild():gu(E),k&&(Ie(k),Ct(k,{containingElement:ot(n.current)})))}break}case"ArrowRight":{let k=d==="rtl"?E.previousNode():E.nextNode();if(h==="child"&&k===n.current&&(k=null),S.preventDefault(),S.stopPropagation(),k)Ie(k),Ct(k,{containingElement:ot(n.current)});else{if(c.getKeyRightOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent));break}h==="cell"&&d==="ltr"?(Ie(n.current),Ct(n.current,{containingElement:ot(n.current)})):(E.currentNode=n.current,k=d==="rtl"?gu(E):E.firstChild(),k&&(Ie(k),Ct(k,{containingElement:ot(n.current)})))}break}case"ArrowUp":case"ArrowDown":!S.altKey&&ae(n.current,G(S))&&(S.stopPropagation(),S.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent)));break}},v=S=>{let B=ce(se(n.current));if(!(!ae(S.currentTarget,G(S))||t.isKeyboardNavigationDisabled||!n.current||!B)){if(m==="tab"&&G(S)!==n.current&&S.key!=="Tab"){S.stopPropagation();return}switch(S.key){case"Tab":if(m==="tab"){let E=Ae(n.current,{tabbable:!0});E.currentNode=B,(S.shiftKey?E.previousNode():E.nextNode())&&S.stopPropagation()}}}},C=S=>{if(p.current=r.key,G(S)!==n.current){Ut()||t.selectionManager.setFocusedKey(r.key);return}h==="child"&&S.relatedTarget&&ae(n.current,S.relatedTarget)||requestAnimationFrame(()=>{h==="child"&&ce(se(n.current))===n.current&&g()})},w=X(y,{role:"gridcell",onKeyDownCapture:m!=="tab"||l?x:void 0,onKeyDown:m==="tab"?v:void 0,"aria-colspan":r.colSpan,"aria-colindex":r.colIndex!=null?r.colIndex+1:void 0,colSpan:i?void 0:r.colSpan,onFocus:C,...h==="child"&&m==="tab"?{tabIndex:-1}:{}});return i&&(w["aria-colindex"]=(r.colIndex??r.index)+1),o&&w.tabIndex!=null&&w.onPointerDown==null&&(w.onPointerDown=S=>{let B=S.currentTarget,E=B.getAttribute("tabindex");B.removeAttribute("tabindex"),requestAnimationFrame(()=>{E!=null&&B.setAttribute("tabindex",E)})}),{gridCellProps:w,isPressed:$}}function gu(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function b7(e){return e&&e.__esModule?e.default:e}function g7(e,t,n){let{node:r}=e,i=r.props.allowsSorting,{gridCellProps:a}=s2({focusMode:"child",...e},t,n),l=r.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:o,isPressed:s}=Tt({isDisabled:!i||l,onPress(){t.sort(r.key)},ref:n}),{focusableProps:d}=zn({},n),c,f=t.sortDescriptor?.column===r.key,m=t.sortDescriptor?.direction;r.props.allowsSorting&&!Mn()&&(c=f?m:"none");let h=ke(b7(rr),"@react-aria/table"),p;i&&(p=`${h.format("sortable")}`,f&&m&&Mn()&&(p=`${p}, ${h.format(m)}`));let g=xn(p),y=t.collection.size===0;return u.useEffect(()=>{y&&t.selectionManager.focusedKey===r.key&&t.selectionManager.setFocusedKey(null)},[y,t.selectionManager,r.key]),{columnHeaderProps:{...X(d,a,o,g,y?{tabIndex:-1}:null),role:"columnheader",id:Pg(t,r.key),"aria-colspan":r.colSpan&&r.colSpan>1?r.colSpan:void 0,"aria-sort":c},isPressed:s}}function y7(e,t,n){let{node:r,isVirtualized:i,shouldSelectOnPressUp:a,onAction:l}=e,{actions:o,shouldSelectOnPressUp:s}=mu.get(t),d=o.onRowAction?()=>o.onRowAction?.(r.key):l,{itemProps:c,...f}=_r({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:s||a,onAction:d||r?.props?.onAction?at(r?.props?.onAction,d):void 0,isDisabled:t.collection.size===0}),m=t.selectionManager.isSelected(r.key),h={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?m:void 0,"aria-disabled":f.isDisabled||void 0,...c};return i&&(h["aria-rowindex"]=r.index+1),{rowProps:h,...f}}function $7(e){return e&&e.__esModule?e.default:e}const d2={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function v7(e,t,n){let{node:r,isVirtualized:i}=e,{rowProps:a,...l}=y7(e,t,n),{direction:o}=be();i&&t.treeColumn==null?a["aria-rowindex"]=r.index+1+t.collection.headerRows.length:delete a["aria-rowindex"];let s=t.treeColumn!=null&&(t.expandedKeys==="all"||t.expandedKeys.has(r.key)),d=ke($7(rr),"@react-aria/table"),c=Ft({"aria-label":s?d.format("collapse"):d.format("expand"),"aria-labelledby":bu(t,r.key)}),f={},m={};if(t.treeColumn!=null){let g=t.collection.getItem(r.key);if(g!=null){let y=c2(t.collection,r),$=g.props?.hasChildRows||g.props?.UNSTABLE_childItems||y?.type!=="cell",x=t.collection.getItem(r.parentKey),v=x.type==="tablebody"||x.type==="body",C=c2(t.collection,x);for(;C&&C.type!=="item"&&C.prevKey!=null;)C=t.collection.getItem(C.prevKey);f={onKeyDown:w=>{w.key===d2.expand[o]&&t.selectionManager.focusedKey===g.key&&$&&t.expandedKeys!=="all"&&!t.expandedKeys.has(g.key)?(t.toggleKey(g.key),w.stopPropagation()):w.key===d2.collapse[o]&&t.selectionManager.focusedKey===g.key&&(t.expandedKeys!=="all"?$&&t.expandedKeys.has(g.key)?(t.toggleKey(g.key),w.stopPropagation()):!t.expandedKeys.has(g.key)&&g.parentKey!=null&&g.level>0&&(t.selectionManager.setFocusedKey(g.parentKey),w.stopPropagation()):t.expandedKeys==="all"&&(t.toggleKey(g.key),w.stopPropagation()))},"aria-expanded":$?t.expandedKeys==="all"||t.expandedKeys.has(r.key):void 0,"aria-level":g.level+1,"aria-posinset":g.index-(v?0:t.collection.columnCount)+1,"aria-setsize":C.index-(v?0:t.collection.columnCount)+1},m={isDisabled:l.isDisabled,onPress:()=>{l.isDisabled||(t.toggleKey(r.key),t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...c}}}let h=b5(r.props),p=l.hasAction?h:{};return{rowProps:{...X(a,f,p),"aria-labelledby":bu(t,r.key)},expandButtonProps:m,...l}}function c2(e,t){return"lastChildKey"in t?t.lastChildKey!=null?e.getItem(t.lastChildKey):null:Array.from(t.childNodes).findLast(n=>n.parentKey===t.key)}function x7(e,t,n){let{node:r,isVirtualized:i}=e,a={role:"row"};return i&&t.treeColumn==null&&(a["aria-rowindex"]=r.index+1),{rowProps:a}}function C7(e,t,n){let{gridCellProps:r,isPressed:i}=s2(e,t,n),a=e.node.column?.key;return a!=null&&t.collection.rowHeaderColumnKeys.has(a)&&(r.role="rowheader",r.id=kg(t,e.node.parentKey,a)),{gridCellProps:r,isPressed:i}}function D7(e){return e&&e.__esModule?e.default:e}function E7(e,t){let{key:n}=e;const{checkboxProps:r}=N8(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${bu(t,n)}`}}}function w7(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;return{checkboxProps:{"aria-label":ke(D7(rr),"@react-aria/table").format(r==="single"?"select":"selectAll"),isSelected:n,isDisabled:r!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}function S7(e){return e&&e.__esModule?e.default:e}function P7(e,t,n){let{column:r,triggerRef:i,isDisabled:a,onResizeStart:l,onResize:o,onResizeEnd:s,"aria-label":d}=e;const c=ke(S7(rr),"@react-aria/table");let f=Ee(),m=t.resizingColumn===r.key,h=u.useRef(m),p=u.useRef(null),g=u.useRef(!1),y=t.tableState.isKeyboardNavigationDisabled,[$,x]=u.useState(!1),{direction:v}=be(),C=u.useCallback(V=>{h.current||(p.current=t.updateResizedColumns(V.key,t.getColumnWidth(V.key)),t.startResize(V.key),t.tableState.setKeyboardNavigationDisabled(!0),l?.(p.current)),h.current=!0},[t,l]),w=u.useCallback((V,L)=>{let J=t.updateResizedColumns(V.key,L);o?.(J),p.current=J},[t,o]),S=u.useCallback(V=>{h.current&&(p.current==null&&(p.current=t.updateResizedColumns(V.key,t.getColumnWidth(V.key))),t.endResize(),t.tableState.setKeyboardNavigationDisabled(!1),s?.(p.current),h.current=!1,i?.current&&!g.current&&Ie(i.current)),p.current=null},[t,i,s]),B=()=>{if(y){S(r);return}return!1},{keyboardProps:E}=Le({shortcuts:{Escape:()=>B(),Enter:()=>{y?S(r):C(r)}," ":()=>B(),Tab:()=>B()}});const k=u.useRef(0),{moveProps:M}=hx({onMoveStart(V){k.current=t.getColumnWidth(r.key),V.pointerType==="mouse"&&x(!0),C(r)},onMove(V){let{deltaX:L,deltaY:J,pointerType:le}=V;v==="rtl"&&(L*=-1),le==="keyboard"&&(J!==0&&L===0&&(L=J*-1),L*=10),L!==0&&(k.current+=L,w(r,k.current))},onMoveEnd(V){let{pointerType:L}=V;k.current=0,x(!1),(L==="mouse"||L==="touch"&&g.current)&&S(r)}});let F=u.useCallback(V=>{y&&M.onKeyDown?.(V)},[y,M]),I=Math.floor(t.getColumnMinWidth(r.key)),j=Math.floor(t.getColumnMaxWidth(r.key));j===1/0&&(j=Number.MAX_SAFE_INTEGER);let D=Math.floor(t.getColumnWidth(r.key)),T=Ys();T==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(T="touch");let Y=i?.current==null&&(T==="keyboard"||T==="virtual")&&!m?c.format("resizerDescription"):void 0,K=xn(Y),q={"aria-label":d,"aria-orientation":"horizontal","aria-labelledby":`${f} ${Pg(t.tableState,r.key)}`,"aria-valuetext":c.format("columnSize",{value:D}),type:"range",min:I,max:j,value:D,...K};const P=u.useCallback(()=>{n.current&&Ie(n.current)},[n]);let N=t.resizingColumn,R=u.useRef(null),Q=De(C);u.useEffect(()=>{if(R.current!==N&&N!=null&&N===r.key){g.current=ce()===n.current,Q(r);let V=setTimeout(()=>P(),0),L=setTimeout(P,400);return()=>{clearTimeout(V),clearTimeout(L)}}R.current=N},[N,r,P,n]);let O=V=>{let L=t.getColumnWidth(r.key),J=parseFloat(G(V).value);J>L?J=L+10:J=L-10,w(r,J)},{pressProps:z}=Tt({preventFocusOnPress:!0,onPressStart:V=>{if(!(V.ctrlKey||V.altKey||V.metaKey||V.shiftKey||V.pointerType==="keyboard")){if(V.pointerType==="virtual"&&t.resizingColumn!=null){S(r);return}P(),V.pointerType!=="virtual"&&C(r)}},onPress:V=>{(V.pointerType==="touch"&&g.current||V.pointerType==="mouse")&&t.resizingColumn!=null&&S(r)}}),{visuallyHiddenProps:A}=Dn();return{resizerProps:X(E,{...M,onKeyDown:F},z,{style:{touchAction:"none"}}),inputProps:X(A,{id:f,onBlur:()=>{S(r)},onChange:O,disabled:a},q),isResizing:m,isMouseResizing:$}}function k7(){return{rowGroupProps:{role:"rowgroup"}}}function yu(){return k7()}function B7(e){return e&&e.__esModule?e.default:e}class N7 extends ad{withExpandedKeys(t){let n=this.clone();return n.expandedKeys=t,n.frozen=this.frozen,n.rows=Array.from(n.getRows()),n}addNode(t){super.addNode(t),this.columnsDirty||=t.type==="column",t.type==="tableheader"&&(this.head=t)}getRows(){let t=[];for(let n of this)(n.type==="tablebody"||n.type==="tablefooter")&&t.push(...this.getChildren(n.key));return t}get body(){for(let t of this)if(t.type==="tablebody")return t;return new Ia(-2)}commit(t,n,r=!1){this.updateColumns(r),this.firstKey=t,this.lastKey=n,this.rows=[];for(let i of this.getRows()){let a=i.lastChildKey;if(a!=null){let l=this.getItem(a);for(;l&&l.type!=="cell";)l=l.prevKey!=null?this.getItem(l.prevKey):null;if(l){let o=(l.colIndex??l.index)+(l.colSpan??1);if(o!==this.columns.length&&!r)throw new Error(`Cell count must match column count. Found ${o} cells and ${this.columns.length} columns.`)}}this.rows.push(i)}super.commit(t,n,r)}updateColumns(t){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let n=new Map,r=i=>{i.type==="column"&&(n.set(i.key,i),i.hasChildNodes||(i.index=this.columns.length,this.columns.push(i),i.props.isRowHeader&&this.rowHeaderColumnKeys.add(i.key)));for(let a of this.getChildren(i.key))r(a)};for(let i of this.getChildren(this.head.key))r(i);if(this.headerRows=Dg(n,this.columns),this.columnsDirty=!1,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!t)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){let t=this.firstKey;for(;t!=null;){let n=this.getItem(t);n&&(yield n),t=n?.nextKey??null}}getFirstKey(){for(let t of this)if(t.type==="tablebody")return t.firstChildKey??null;return null}getLastKey(){let t=this.lastKey;if(t==null)return null;let n=this.getItem(t);for(;n?.lastChildKey!=null&&(n.type!=="item"||this.expandedKeys.has(n.key));)n=this.getItem(n.lastChildKey);return n?.key}getKeyAfter(t){let n=this.getItem(t);if(n?.type==="column")return n.nextKey??null;if(!n)return null;if(n.type==="item"&&n.firstChildKey!=null&&this.expandedKeys.has(n.key)){let r=this.getItem(n.firstChildKey);for(;r;){if(r.type==="item")return r.key;r=r.nextKey!=null?this.getItem(r.nextKey):null}}return super.getKeyAfter(t)}getKeyBefore(t){let n=this.getItem(t);if(n?.type==="column")return n.prevKey??null;if(!n)return null;let r=null;if(n.prevKey!=null){for(n=this.getItem(n.prevKey);n&&(n.type!=="item"||this.expandedKeys.has(n.key))&&n.lastChildKey!=null;)n=this.getItem(n.lastChildKey);r=n?.key??null}return r==null&&(r=n.parentKey),r!=null&&this.getItem(r)?.type==="tableheader"?null:r}getChildren(t){let n=this.getItem(t);if(!n){for(let i of this.headerRows)if(i.key===t)return i.childNodes}let r=this;return n?.type==="tablebody"||n?.type==="tablefooter"?{*[Symbol.iterator](){let i=n.firstChildKey,a=i!=null?r.getItem(i):null;for(;a;){yield a;let l=r.getKeyAfter(a.key);if(a=l!=null?r.getItem(l):null,a&&a.parentKey===n.parentKey)break}}}:{*[Symbol.iterator](){let i=r.getItem(t),a=i?.firstChildKey!=null?r.getItem(i.firstChildKey):null;for(;a&&(yield a,a=a.nextKey!=null?r.getItem(a.nextKey):null,!(i?.type==="item"&&a?.type!=="cell")););}}}clone(){let t=super.clone();return t.headerRows=this.headerRows,t.columns=this.columns,t.rows=this.rows,t.rowHeaderColumnKeys=this.rowHeaderColumnKeys,t.head=this.head,t}getTextValue(t){let n=this.getItem(t);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys,i=[];for(let a of this.getChildren(t)){let l=this.columns[a.index];if(r.has(l.key)&&a.textValue&&i.push(a.textValue),i.length===r.size)break}return i.join(" ")}constructor(...t){super(...t),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new Ta(-1),this.columnsDirty=!0,this.expandedKeys=new Set}}const $u=u.createContext(null),A7=u.forwardRef(function(t,n){let r=Te(n),i=u.useRef(null),a=u.useRef(null),[l,o]=u.useState(0);fe(()=>{let d=i.current;for(;d&&d!==r.current&&!en(d);)d=d.parentElement;a.current=d},[r]),Gr({ref:a,box:"border-box",onResize(){o(a.current?.clientWidth??0)}}),fe(()=>{o(a.current?.clientWidth??0)},[]);let s=u.useMemo(()=>({tableRef:i,scrollRef:a,tableWidth:l,useTableColumnResizeState:l7,onResizeStart:t.onResizeStart,onResize:t.onResize,onResizeEnd:t.onResizeEnd}),[i,l,t.onResizeStart,t.onResize,t.onResizeEnd]);return u.createElement(re.div,{render:t.render,...ie(t,{global:!0}),ref:r,className:t.className||"react-aria-ResizableTableContainer",style:t.style,onScroll:t.onScroll},u.createElement($u.Provider,{value:s},t.children))}),F7=u.createContext(null),dt=u.createContext(null),vu=u.createContext(null),T7=u.forwardRef(function(t,n){[t,n]=pe(t,n,F7);let r=jr(t),{selectionBehavior:i,selectionMode:a,disallowEmptySelection:l}=r,o=!!t.dragAndDropHooks?.useDraggableCollectionState,s=u.useMemo(()=>({selectionBehavior:a==="none"?null:i,selectionMode:a,disallowEmptySelection:l,allowsDragging:o}),[i,a,l,o]),d=u.createElement(K7.Provider,{value:s},u.createElement(mn,t));return u.createElement(fn,{content:d,createCollection:()=>new N7},c=>u.createElement(M7,{props:t,forwardedRef:n,selectionState:r,collection:c}))});let I7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.table,{...t,ref:n})});const f2={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function M7({props:e,forwardedRef:t,selectionState:n,collection:r}){[e,t]=pe(e,t,$r);let{shouldUseVirtualFocus:i,disallowTypeAhead:a,filter:l,...o}=e,s=u.useContext($u);t=Te(u.useMemo(()=>fr(t,s?.tableRef),[t,s?.tableRef]));let[d,c]=He(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);r=u.useMemo(()=>r.withExpandedKeys(d),[r,d]);let f=s7({...o,collection:r,children:void 0,UNSAFE_selectionState:n,expandedKeys:d,onExpandedChange:c}),m=d7(f,l),{isVirtualized:h,layoutDelegate:p,dropTargetDelegate:g,CollectionRoot:y}=u.useContext(ge),{dragAndDropHooks:$}=e,{gridProps:x}=p7({...o,layoutDelegate:p,isVirtualized:h},m,t),v=m.selectionManager,C=!!$?.useDraggableCollectionState,w=!!$?.useDroppableCollectionState,S=u.useRef(C),B=u.useRef(w);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(S.current!==C&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),B.current!==w&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[C,w]);let E,k,M,F=!1,I=null,j=u.useRef(null),{direction:D}=be(),[T]=u.useState(()=>new J8);if(C&&$){E=$.useDraggableCollectionState({collection:m.collection,selectionManager:v,preview:$.renderDragPreview?j:void 0}),$.useDraggableCollection({},E,t);let z=$.DragPreview;I=$.renderDragPreview?u.createElement(z,{ref:j},$.renderDragPreview):null}if(w&&$){k=$.useDroppableCollectionState({collection:m.collection,selectionManager:v});let z=new Vr({collection:m.collection,disabledKeys:v.disabledKeys,disabledBehavior:v.disabledBehavior,ref:t,layoutDelegate:p}),A=$.dropTargetDelegate||g||new $.ListDropTargetDelegate(r.rows,t);T.setup(A,f,D),M=$.useDroppableCollection({keyboardDelegate:z,dropTargetDelegate:T,onDropActivate:V=>{if(V.target.type==="item"){let L=V.target.key,J=f.collection.getItem(L),le=d.has(L);J&&J.hasChildNodes&&(!le||$?.isVirtualDragging?.())&&f.toggleKey(L)}},onKeyDown:V=>{let L=k?.target;if(L&&L.type==="item"&&L.dropPosition==="on"){let J=f.collection.getItem(L.key);(V.key===f2.expand[D]&&J?.hasChildNodes&&!f.expandedKeys.has(L.key)||V.key===f2.collapse[D]&&J?.hasChildNodes&&f.expandedKeys.has(L.key))&&f.toggleKey(L.key)}}},k,t),F=k.isDropTarget({type:"root"})}let{focusProps:Y,isFocused:K,isFocusVisible:q}=Oe(),P=ue({...e,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:F,isFocused:K,isFocusVisible:q,state:m}}),N=!!(C&&!E?.isDisabled),R=P.style,Q=null;s&&(Q=s.useTableColumnResizeState({tableWidth:s.tableWidth},m),h||(R={...R,tableLayout:"fixed",width:"min-content"}));let O=ie(e,{global:!0});return u.createElement(Pe,{values:[[dt,m],[vu,Q],[ut,{dragAndDropHooks:$,dragState:E,dropState:k}],[So,{render:q7}],[$r,null],[vr,null]]},u.createElement(ya,null,u.createElement(I7,{...X(O,P,x,Y,M?.collectionProps),style:R,ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-allows-dragging":N||void 0,"data-drop-target":F||void 0,"data-focused":K||void 0,"data-focus-visible":q||void 0},u.createElement(ba,null,u.createElement(y,{collection:m.collection,scrollRef:s?.scrollRef??t,persistedKeys:Nm(v,$,k)})))),I)}const K7=u.createContext(null),Cs=class Cs extends et{};Cs.type="tableheader";let Ta=Cs,L7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.thead,{...t,ref:n})});const O7=Li(Ta,(e,t)=>{let n=u.useContext(dt).collection,r=yl({items:n.headerRows,children:u.useCallback(s=>{if(s.type==="headerrow")return u.createElement(V7,{item:s});throw new Error("Unsupported node type in TableHeader: "+s.type)},[])}),{rowGroupProps:i}=yu(),{hoverProps:a,isHovered:l}=ze({onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),o=ue({...e,children:void 0,defaultClassName:"react-aria-TableHeader",values:{isHovered:l}});return u.createElement(L7,{...X(ie(e,{global:!0}),i,a),...o,ref:t,"data-hovered":l||void 0},r)},e=>u.createElement(mn,{dependencies:e.dependencies,items:e.columns},e.children));let z7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement("div",{...t,ref:n}):u.createElement("tr",{...t,ref:n})});function V7({item:e}){let t=u.useRef(null),n=u.useContext(dt),{isVirtualized:r,CollectionBranch:i}=u.useContext(ge),{rowProps:a}=x7({node:e,isVirtualized:r},n,t),{checkboxProps:l}=w7(n);return u.createElement(z7,{...a,ref:t},u.createElement(Pe,{values:[[c0,{slots:{selection:l}}],[f0,{slots:{selection:l}}]]},u.createElement(i,{collection:n.collection,parent:e})))}const Ds=class Ds extends et{};Ds.type="column";let xu=Ds,_7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.th,{...t,ref:n})});const R7=yt(xu,(e,t,n)=>{let r=Te(t),i=u.useContext(dt),{isVirtualized:a}=u.useContext(ge),{columnHeaderProps:l,isPressed:o}=g7({node:n,isVirtualized:a,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:s,isFocusVisible:d,focusProps:c}=Oe(),f=u.useContext(vu),m=!1;if(f)m=f.resizingColumn===n.key;else if(process.env.NODE_ENV!=="production")for(let x in["width","defaultWidth","minWidth","maxWidth"])x in n.props&&console.warn(`The ${x} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);let{hoverProps:h,isHovered:p}=ze({isDisabled:!e.allowsSorting}),g=ue({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-Column",values:{isHovered:p,isPressed:o,isFocused:s,isFocusVisible:d,allowsSorting:n.props.allowsSorting,sortDirection:i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0,isResizing:m,startResize:()=>{if(f)f.startResize(n.key),i.setKeyboardNavigationDisabled(!0);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:x=>{i.sort(n.key,x)}}}),y=g.style;f&&(y={...y,width:f.getColumnWidth(n.key)});let $=ie(e,{global:!0});return delete $.id,u.createElement(_7,{...X($,l,c,h),...g,style:y,ref:r,"data-hovered":p||void 0,"data-pressed":o||void 0,"data-focused":s||void 0,"data-focus-visible":d||void 0,"data-resizing":m||void 0,"data-allows-sorting":n.props.allowsSorting||void 0,"data-sort-direction":i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0},u.createElement(Pe,{values:[[m2,{column:n,triggerRef:r}],[ge,wl]]},g.children))}),m2=u.createContext(null),j7=u.forwardRef(function(t,n){let r=u.useContext(vu);if(!r)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let i=ke(B7(wo),"react-aria-components"),{onResizeStart:a,onResize:l,onResizeEnd:o}=u.useContext($u),{column:s,triggerRef:d}=u.useContext(m2),c=u.useRef(null),{resizerProps:f,inputProps:m,isResizing:h,isMouseResizing:p}=P7({column:s,"aria-label":t["aria-label"]||i.format("tableResizer"),onResizeStart:a,onResize:l,onResizeEnd:o,triggerRef:d},r,c),{focusProps:g,isFocused:y,isFocusVisible:$}=Oe(),{hoverProps:x,isHovered:v}=ze(t),C=r.getColumnMinWidth(s.key)>=r.getColumnWidth(s.key),w=r.getColumnMaxWidth(s.key)<=r.getColumnWidth(s.key),{direction:S}=be(),B="both";C?B=S==="rtl"?"right":"left":w?B=S==="rtl"?"left":"right":B="both";let E=Te(n),[k,M]=u.useState("");u.useEffect(()=>{if(!E.current)return;let j=window.getComputedStyle(E.current);M(j.cursor)},[E,B]);let F=ue({...t,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:y,isFocusVisible:$,isResizing:h,isHovered:v,resizableDirection:B}}),I=ie(t,{global:!0});return u.createElement(re.div,{ref:E,role:"presentation",...X(I,F,f,x),"data-hovered":v||void 0,"data-focused":y||void 0,"data-focus-visible":$||void 0,"data-resizing":h||void 0,"data-resizable-direction":B},F.children,u.createElement("input",{ref:c,...X(m,g)}),h&&p&&Rt.createPortal(u.createElement("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:k},"data-testid":"cursor-overlay"}),document.body))}),Es=class Es extends Ni{};Es.type="tablebody";let Ia=Es,H7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tbody,{...t,ref:n})});const U7=Li(Ia,(e,t,n)=>{let r=u.useContext(dt),{isVirtualized:i}=u.useContext(ge),a=r.collection,{CollectionBranch:l}=u.useContext(ge),{dragAndDropHooks:o,dropState:s}=u.useContext(ut),d=!!o?.useDroppableCollectionState&&!s?.isDisabled,c=d&&!!s&&(s.isDropTarget({type:"root"})??!1),f=a.size===0,m={isDropTarget:c,isEmpty:f},h=ue({...e,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:m}),p,g=a.columnCount;if(f&&e.renderEmptyState&&r){let x={},v={},C={};i?(v["aria-colspan"]=g,C={display:"contents"}):v.colSpan=g,p=u.createElement(ir,{role:"row",...x,style:C},u.createElement(ar,{role:"rowheader",...v,style:C},e.renderEmptyState(m)))}let{rowGroupProps:y}=yu(),$=ie(e,{global:!0});return u.createElement(H7,{...X($,h,y),ref:t,"data-empty":f||void 0},d&&u.createElement(tC,null),u.createElement(l,{collection:a,parent:n,renderDropIndicator:pa(o,s)}),p)}),ws=class ws extends Ni{};ws.type="tablefooter";let Cu=ws,W7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tfoot,{...t,ref:n})});const G7=Li(Cu,(e,t,n)=>{let i=u.useContext(dt).collection,{CollectionBranch:a}=u.useContext(ge),{dragAndDropHooks:l,dropState:o}=u.useContext(ut),{rowGroupProps:s}=yu(),d=ie(e,{global:!0}),c=ue({style:e.style,className:e.className,defaultClassName:"react-aria-TableFooter",values:{}});return u.createElement(W7,{...X(d,c,s),ref:t},u.createElement(a,{collection:i,parent:n,renderDropIndicator:pa(l,o)}))}),h2=u.createContext({isFocusVisibleWithinRow:!1}),Ss=class Ss extends et{filter(t,n,r){let i=t.getChildren(this.key);for(let a of i)if(r(a.textValue,a)){let l=this.clone();return n.addDescendants(l,t),l}return null}};Ss.type="item";let Du=Ss,ir=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tr,{...t,ref:n})});const Z7=Li(Du,(e,t,n)=>{let r=Te(t),i=u.useContext(dt),{dragAndDropHooks:a,dragState:l,dropState:o}=u.useContext(ut),{isVirtualized:s,CollectionBranch:d}=u.useContext(ge),c=l&&!(l.isDisabled||l.selectionManager.isDisabled(n.key)),{rowProps:f,expandButtonProps:m,...h}=v7({node:n,shouldSelectOnPressUp:!!l,isVirtualized:s},i,r),{isFocused:p,isFocusVisible:g,focusProps:y}=Oe(),{isFocusVisible:$,focusProps:x}=Oe({within:!0}),{hoverProps:v,isHovered:C}=ze({isDisabled:!h.allowsSelection&&!h.hasAction&&!c,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{checkboxProps:w}=E7({key:n.key},i),S;l&&a&&(S=a.useDraggableItem({key:n.key,hasDragButton:!0},l));let B,E=u.useRef(null),{visuallyHiddenProps:k}=Dn();o&&a&&(B=a.useDropIndicator({target:{type:"item",key:n.key,dropPosition:"on"}},o,E));let M=u.useRef(null);u.useEffect(()=>{l&&!M.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.')},[]);let F=l&&l.isDragging(n.key),{children:I,...j}=e,D=e.hasChildItems||i.collection.getItem(n.lastChildKey)?.type!=="cell",T=D&&i.expandedKeys.has(n.key),Y=ue({...j,id:void 0,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":n.level+1},values:{...h,state:i,isHovered:C,isFocused:p,isFocusVisible:g,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,isDragging:F,isDropTarget:B?.isDropTarget,isFocusVisibleWithin:$,id:n.key,hasChildItems:D,isExpanded:T,level:n.level+1}}),K=ie(e,{global:!0});return delete K.id,delete K.onClick,u.createElement(u.Fragment,null,B&&!B.isHidden&&u.createElement(ir,{role:"row",style:{height:0}},u.createElement(ar,{role:"gridcell",colSpan:i.collection.columnCount,style:{padding:0}},u.createElement("div",{role:"button",...k,...B.dropIndicatorProps,ref:E}))),u.createElement(ir,{...X(K,Y,f,y,v,S?.dragProps,x),ref:r,"data-disabled":h.isDisabled||void 0,"data-selected":h.isSelected||void 0,"data-hovered":C||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":g||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":F||void 0,"data-drop-target":B?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,"data-focus-visible-within":$||void 0,"data-expanded":T||void 0,"data-has-child-items":D||void 0,"data-level":n.level+1},u.createElement(Pe,{values:[[c0,{slots:{[Bt]:{},selection:w}}],[f0,{slots:{[Bt]:{},selection:w}}],[vt,{slots:{[Bt]:{},chevron:m,drag:{...S?.dragButtonProps,ref:M,style:{pointerEvents:"none"}}}}],[Or,{isSelected:h.isSelected}],[h2,{isFocusVisibleWithinRow:$}]]},u.createElement(d,{collection:i.collection,parent:n}))))},e=>{if(e.id==null&&typeof e.children=="function")throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");let t=[e.value].concat(e.dependencies);return u.createElement(mn,{dependencies:t,items:e.columns,idScope:e.id},e.children)}),Ps=class Ps extends et{};Ps.type="cell";let Eu=Ps,ar=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.td,{...t,ref:n})});const Y7=yt(Eu,(e,t,n)=>{let r=Te(t),i=u.useContext(dt),{dragState:a}=u.useContext(ut),{isVirtualized:l}=u.useContext(ge);n.column=i.collection.columns[n.index];let{gridCellProps:o,isPressed:s}=C7({node:n,shouldSelectOnPressUp:!!a,isVirtualized:l,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:d,isFocusVisible:c,focusProps:f}=Oe(),{hoverProps:m,isHovered:h}=ze({}),{isFocusVisibleWithinRow:p}=u.useContext(h2),g=n.parentKey!=null?i.selectionManager.isSelected(n.parentKey):!1,y=n.colIndex||n.index,$=i.collection.getItem(n.parentKey),x=$.props.hasChildItems||i.collection.getItem($.lastChildKey)?.type!=="cell",v=x&&i.expandedKeys.has(n.parentKey),C=i.selectionManager.isDisabled(n.parentKey),w=ue({...e,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:d,isFocusVisible:c,isFocusVisibleWithinRow:p,isPressed:s,isHovered:h,isSelected:g,id:n.key,columnIndex:y,hasChildItems:x,isExpanded:v,isDisabled:C,level:$.level+1,isTreeColumn:n.column.key===i.treeColumn}}),S=ie(e,{global:!0});return delete S.id,u.createElement(ar,{...X(S,w,o,f,m),ref:r,"data-focused":d||void 0,"data-focus-visible":c||void 0,"data-focus-visible-within-row":p||void 0,"data-pressed":s||void 0,"data-selected":g||void 0,"data-column-index":y,"data-expanded":v||void 0,"data-has-child-items":x||void 0,"data-level":$.level+1,"data-tree-column":n.column.key===i.treeColumn||void 0,"data-disabled":C||void 0},u.createElement(ge.Provider,{value:wl},w.children))});function q7(e,t){t=Te(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(ut),i=u.useRef(null),{dropIndicatorProps:a,isHidden:l,isDropTarget:o}=n.useDropIndicator(e,r,i);if(l)return null;let s=r&&e.target.type==="item"?(r.collection.getItem(e.target.key)?.level||0)+1:1;return u.createElement(eC,{...e,dropIndicatorProps:a,isDropTarget:o,buttonRef:i,level:s,ref:t})}let X7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tr,{...t,ref:n})}),J7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.td,{...t,ref:n})});function Q7(e,t){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:i,level:a,...l}=e,o=u.useContext(dt),{visuallyHiddenProps:s}=Dn(),d=ue({...l,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":a+1},values:{isDropTarget:r}});return u.createElement(X7,{...ie(e,{global:!0}),...d,role:"row",ref:t,"data-drop-target":r||void 0,"aria-level":a},u.createElement(J7,{role:"gridcell",colSpan:o.collection.columnCount,style:{padding:0}},u.createElement("div",{...s,role:"button",...n,ref:i}),d.children))}const eC=u.forwardRef(Q7);function tC(){let e=u.useContext(dt),{dragAndDropHooks:t,dropState:n}=u.useContext(ut),r=u.useRef(null),{dropIndicatorProps:i}=t.useDropIndicator({target:{type:"root"}},n,r),a=n.isDropTarget({type:"root"}),{visuallyHiddenProps:l}=Dn();return!a&&i["aria-hidden"]?null:u.createElement(ir,{role:"row","aria-hidden":i["aria-hidden"],style:{height:0}},u.createElement(ar,{role:"gridcell",colSpan:e.collection.columnCount,style:{padding:0}},u.createElement("div",{role:"button",...l,...i,ref:r})))}const nC=yt(Ai,function(t,n,r){let i=u.useContext(dt),{isVirtualized:a}=u.useContext(ge),{isLoading:l,onLoadMore:o,scrollOffset:s,...d}=t,c=i.collection.columns.length,f=u.useRef(null),m=u.useMemo(()=>({onLoadMore:o,collection:i?.collection,sentinelRef:f,scrollOffset:s}),[o,s,i?.collection]);e4(m,f);let h=ue({...d,id:void 0,children:r.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":r.level+1},values:void 0}),p={},g={},y={};return a?(g["aria-colspan"]=c,y={display:"contents"}):g.colSpan=c,u.createElement(u.Fragment,null,u.createElement(ir,{style:{height:0},inert:qm(!0)},u.createElement(ar,{style:{padding:0,border:0}},u.createElement("div",{"data-testid":"loadMoreSentinel",ref:f,style:{position:"relative",height:1,width:1}}))),l&&h.children&&u.createElement(ir,{...X(ie(t,{global:!0}),p),...h,role:"row",ref:n,"aria-level":r.level+1,"data-level":r.level+1},u.createElement(ar,{role:"rowheader",...g,style:y},h.children)))}),p2=new WeakMap;function b2(e,t,n){if(!e)return"";typeof t=="string"&&(t=t.replace(/\s+/g,""));let r=p2.get(e);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${t}`}function rC(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:l,selectedKey:o}=t,s=r===o,d=i||t.isDisabled||t.selectionManager.isDisabled(r),c=t.collection.getItem(r),{itemProps:f,isPressed:m}=_r({selectionManager:l,key:r,ref:n,isDisabled:d,shouldSelectOnPressUp:a??c?.props.href!=null,linkBehavior:"selection"}),h=b2(t,r,"tab"),p=b2(t,r,"tabpanel"),{tabIndex:g}=f,y=ie(c?.props,{labelable:!0});delete y.id;let $=wi(c?.props),{focusableProps:x}=zn({...c?.props,isDisabled:d},n);return{tabProps:X(y,x,$,f,{id:h,"aria-selected":s,"aria-disabled":d||void 0,"aria-controls":s?p:void 0,tabIndex:d?void 0:g,role:"tab"}),isSelected:s,isDisabled:d,isPressed:m}}class iC{constructor(t,n,r,i=new Set){this.collection=t,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){return this.disabledKeys.has(t)||!!this.collection.getItem(t)?.props?.isDisabled}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){let n=t;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n)&&n!==t);return n}getPreviousKey(t){let n=t;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n)&&n!==t);return n}}function aC(e,t,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=e,{collection:a,selectionManager:l,disabledKeys:o}=t,{direction:s}=be(),d=u.useMemo(()=>new iC(a,s,r,o),[a,o,r,s]),{collectionProps:c}=va({ref:n,selectionManager:l,keyboardDelegate:d,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ee();p2.set(t,f);let m=Ft({...e,id:f});return{tabListProps:{...X(c,m),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function lC(e){let[t,n]=He(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=u.useMemo(()=>t!=null?[t]:[],[t]),{collection:i,disabledKeys:a,selectionManager:l}=xa({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:s=>{if(s==="all")return;let d=s.values().next().value??null;d===t&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),o=t!=null?i.getItem(t):null;return{collection:i,disabledKeys:a,selectionManager:l,selectedKey:t,setSelectedKey:n,selectedItem:o}}function oC(e){let t=lC({...e,onSelectionChange:e.onSelectionChange?l=>{l!=null&&e.onSelectionChange?.(l)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??g2(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=u.useRef(i);return u.useEffect(()=>{let l=i;e.selectedKey==null&&(n.isEmpty||l==null||!r.getItem(l))&&(l=g2(r,t.disabledKeys),l!=null&&n.setSelectedKeys([l])),(l!=null&&n.focusedKey==null||!n.isFocused&&l!==a.current)&&n.setFocusedKey(l),a.current=l}),{...t,isDisabled:e.isDisabled||!1}}function g2(e,t){let n=null;if(e){for(n=e.getFirstKey();n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}const wu=u.createContext(null),Ma=u.createContext(null),y2=u.forwardRef(function(t,n){[t,n]=pe(t,n,wu);let{children:r,orientation:i="horizontal"}=t;return r=u.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),u.createElement(fn,{content:r},a=>u.createElement(uC,{props:t,collection:a,tabsRef:n}))});function uC({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,i=oC({...e,collection:n,children:void 0}),{focusProps:a,isFocused:l,isFocusVisible:o}=Oe({within:!0}),s=u.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:o}),[r,l,o]),d=ue({...e,defaultClassName:"react-aria-Tabs",values:s}),c=ie(e,{global:!0});return u.createElement(re.div,{...X(c,d,a),ref:t,slot:e.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":o||void 0,"data-disabled":i.isDisabled||void 0},u.createElement(Pe,{values:[[wu,e],[Ma,i]]},d.children))}const $2=u.forwardRef(function(t,n){return u.useContext(Ma)?u.createElement(sC,{props:t,forwardedRef:n}):u.createElement(mn,t)});function sC({props:e,forwardedRef:t}){let n=u.useContext(Ma),{CollectionRoot:r}=u.useContext(ge),{orientation:i="horizontal",keyboardActivation:a="automatic"}=qe(wu),l=Te(t),{tabListProps:o}=aC({...e,orientation:i,keyboardActivation:a},n,l),s=ue({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),d=ie(e,{global:!0});return delete d.id,u.createElement(re.div,{...X(d,s,o),ref:l,"data-orientation":i||void 0},u.createElement(ba,null,u.createElement(r,{collection:n.collection,persistedKeys:Cd(n.selectionManager.focusedKey)})))}const ks=class ks extends et{};ks.type="item";let Su=ks;const v2=yt(Su,(e,t,n)=>{let r=u.useContext(Ma),i=Te(t),{tabProps:a,isSelected:l,isDisabled:o,isPressed:s}=rC({key:n.key,...e},r,i),{focusProps:d,isFocused:c,isFocusVisible:f}=Oe(),{hoverProps:m,isHovered:h}=ze({isDisabled:o,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),p=ue({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:o,isFocused:c,isFocusVisible:f,isPressed:s,isHovered:h}}),g=n.props.href?re.a:re.div,y=ie(e,{global:!0});return delete y.id,delete y.onClick,u.createElement(g,{...X(y,p,a,d,m),ref:i,"data-selected":l||void 0,"data-disabled":o||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":h||void 0},u.createElement(Or.Provider,{value:{isSelected:l}},p.children))}),dC=u.createContext({});let cC=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i};const fC=u.forwardRef(function(t,n){[t,n]=pe(t,n,dC);let{hoverProps:r,isHovered:i}=ze(t),{isFocused:a,isFocusVisible:l,focusProps:o}=Oe({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=ue({...t,values:{isHovered:i,isFocused:a,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-TextArea"});return u.createElement(re.textarea,{...X(cC(t),o,r),...d,ref:n,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":s||void 0})}),mC=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},hC=(e,t)=>({classGroupId:e,validator:t}),x2=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ka="-",C2=[],pC="arbitrary..",bC=e=>{const t=yC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return gC(l);const o=l.split(Ka),s=o[0]===""&&o.length>1?1:0;return D2(o,s,t)},getConflictingClassGroupIds:(l,o)=>{if(o){const s=r[l],d=n[l];return s?d?mC(d,s):s:d||C2}return n[l]||C2}}},D2=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const d=D2(e,t+1,a);if(d)return d}const l=n.validators;if(l===null)return;const o=t===0?e.join(Ka):e.slice(t).join(Ka),s=l.length;for(let d=0;d<s;d++){const c=l[d];if(c.validator(o))return c.classGroupId}},gC=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?pC+r:void 0})(),yC=e=>{const{theme:t,classGroups:n}=e;return $C(n,t)},$C=(e,t)=>{const n=x2();for(const r in e){const i=e[r];Pu(i,n,r,t)}return n},Pu=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const l=e[a];vC(l,t,n,r)}},vC=(e,t,n,r)=>{if(typeof e=="string"){xC(e,t,n);return}if(typeof e=="function"){CC(e,t,n,r);return}DC(e,t,n,r)},xC=(e,t,n)=>{const r=e===""?t:E2(t,e);r.classGroupId=n},CC=(e,t,n,r)=>{if(EC(e)){Pu(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(hC(n,e))},DC=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let l=0;l<a;l++){const[o,s]=i[l];Pu(s,E2(t,o),n,r)}},E2=(e,t)=>{let n=e;const r=t.split(Ka),i=r.length;for(let a=0;a<i;a++){const l=r[a];let o=n.nextPart.get(l);o||(o=x2(),n.nextPart.set(l,o)),n=o}return n},EC=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,wC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,l)=>{n[a]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let l=n[a];if(l!==void 0)return l;if((l=r[a])!==void 0)return i(a,l),l},set(a,l){a in n?n[a]=l:i(a,l)}}},ku="!",w2=":",SC=[],S2=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),PC=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let l=0,o=0,s=0,d;const c=i.length;for(let g=0;g<c;g++){const y=i[g];if(l===0&&o===0){if(y===w2){a.push(i.slice(s,g)),s=g+1;continue}if(y==="/"){d=g;continue}}y==="["?l++:y==="]"?l--:y==="("?o++:y===")"&&o--}const f=a.length===0?i:i.slice(s);let m=f,h=!1;f.endsWith(ku)?(m=f.slice(0,-1),h=!0):f.startsWith(ku)&&(m=f.slice(1),h=!0);const p=d&&d>s?d-s:void 0;return S2(a,h,m,p)};if(t){const i=t+w2,a=r;r=l=>l.startsWith(i)?a(l.slice(i.length)):S2(SC,!1,l,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},kC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const l=n[a],o=l[0]==="[",s=t.has(l);o||s?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},BC=e=>({cache:wC(e.cacheSize),parseClassName:PC(e),sortModifiers:kC(e),postfixLookupClassGroupIds:NC(e),...bC(e)}),NC=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},AC=/\s+/,FC=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:l}=t,o=[],s=e.trim().split(AC);let d="";for(let c=s.length-1;c>=0;c-=1){const f=s[c],{isExternal:m,modifiers:h,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:y}=n(f);if(m){d=f+(d.length>0?" "+d:d);continue}let $=!!y,x;if($){const B=g.substring(0,y);x=r(B);const E=x&&l[x]?r(g):void 0;E&&E!==x&&(x=E,$=!1)}else x=r(g);if(!x){if(!$){d=f+(d.length>0?" "+d:d);continue}if(x=r(g),!x){d=f+(d.length>0?" "+d:d);continue}$=!1}const v=h.length===0?"":h.length===1?h[0]:a(h).join(":"),C=p?v+ku:v,w=C+x;if(o.indexOf(w)>-1)continue;o.push(w);const S=i(x,$);for(let B=0;B<S.length;++B){const E=S[B];o.push(C+E)}d=f+(d.length>0?" "+d:d)}return d},TC=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=P2(n))&&(i&&(i+=" "),i+=r);return i},P2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=P2(e[r]))&&(n&&(n+=" "),n+=t);return n},k2=(e,...t)=>{let n,r,i,a;const l=s=>{const d=t.reduce((c,f)=>f(c),e());return n=BC(d),r=n.cache.get,i=n.cache.set,a=o,o(s)},o=s=>{const d=r(s);if(d)return d;const c=FC(s,n);return i(s,c),c};return a=l,(...s)=>a(TC(...s))},IC=[],Fe=e=>{const t=n=>n[e]||IC;return t.isThemeGetter=!0,t},B2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,N2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,MC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,KC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,OC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,VC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rn=e=>MC.test(e),de=e=>!!e&&!Number.isNaN(Number(e)),St=e=>!!e&&Number.isInteger(Number(e)),Bu=e=>e.endsWith("%")&&de(e.slice(0,-1)),zt=e=>KC.test(e),A2=()=>!0,_C=e=>LC.test(e)&&!OC.test(e),Nu=()=>!1,RC=e=>zC.test(e),jC=e=>VC.test(e),HC=e=>!te(e)&&!ne(e),UC=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),WC=e=>an(e,L2,Nu),te=e=>B2.test(e),Bn=e=>an(e,O2,_C),F2=e=>an(e,eD,de),GC=e=>an(e,V2,A2),ZC=e=>an(e,z2,Nu),T2=e=>an(e,M2,Nu),YC=e=>an(e,K2,jC),La=e=>an(e,_2,RC),ne=e=>N2.test(e),Qr=e=>Nn(e,O2),qC=e=>Nn(e,z2),I2=e=>Nn(e,M2),XC=e=>Nn(e,L2),JC=e=>Nn(e,K2),Oa=e=>Nn(e,_2,!0),QC=e=>Nn(e,V2,!0),an=(e,t,n)=>{const r=B2.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Nn=(e,t,n=!1)=>{const r=N2.exec(e);return r?r[1]?t(r[1]):n:!1},M2=e=>e==="position"||e==="percentage",K2=e=>e==="image"||e==="url",L2=e=>e==="length"||e==="size"||e==="bg-size",O2=e=>e==="length",eD=e=>e==="number",z2=e=>e==="family-name",V2=e=>e==="number"||e==="weight",_2=e=>e==="shadow",R2=()=>{const e=Fe("color"),t=Fe("font"),n=Fe("text"),r=Fe("font-weight"),i=Fe("tracking"),a=Fe("leading"),l=Fe("breakpoint"),o=Fe("container"),s=Fe("spacing"),d=Fe("radius"),c=Fe("shadow"),f=Fe("inset-shadow"),m=Fe("text-shadow"),h=Fe("drop-shadow"),p=Fe("blur"),g=Fe("perspective"),y=Fe("aspect"),$=Fe("ease"),x=Fe("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...C(),ne,te],S=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],E=()=>[ne,te,s],k=()=>[rn,"full","auto",...E()],M=()=>[St,"none","subgrid",ne,te],F=()=>["auto",{span:["full",St,ne,te]},St,ne,te],I=()=>[St,"auto",ne,te],j=()=>["auto","min","max","fr",ne,te],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...E()],K=()=>[rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],q=()=>[rn,"screen","full","dvw","lvw","svw","min","max","fit",...E()],P=()=>[rn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],N=()=>[e,ne,te],R=()=>[...C(),I2,T2,{position:[ne,te]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",XC,WC,{size:[ne,te]}],z=()=>[Bu,Qr,Bn],A=()=>["","none","full",d,ne,te],V=()=>["",de,Qr,Bn],L=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[de,Bu,I2,T2],Ke=()=>["","none",p,ne,te],_=()=>["none",de,ne,te],H=()=>["none",de,ne,te],me=()=>[de,ne,te],he=()=>[rn,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[zt],breakpoint:[zt],color:[A2],container:[zt],"drop-shadow":[zt],ease:["in","out","in-out"],font:[HC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[zt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[zt],shadow:[zt],spacing:["px",de],text:[zt],"text-shadow":[zt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rn,te,ne,y]}],container:["container"],"container-type":[{"@container":["","normal","size",ne,te]}],"container-named":[UC],columns:[{columns:[de,te,ne,o]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{"inset-s":k(),start:k()}],end:[{"inset-e":k(),end:k()}],"inset-bs":[{"inset-bs":k()}],"inset-be":[{"inset-be":k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[St,"auto",ne,te]}],basis:[{basis:[rn,"full","auto",o,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[de,rn,"auto","initial","none",te]}],grow:[{grow:["",de,ne,te]}],shrink:[{shrink:["",de,ne,te]}],order:[{order:[St,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mbs:[{mbs:Y()}],mbe:[{mbe:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...q()]}],"min-inline-size":[{"min-inline":["auto",...q()]}],"max-inline-size":[{"max-inline":["none",...q()]}],"block-size":[{block:["auto",...P()]}],"min-block-size":[{"min-block":["auto",...P()]}],"max-block-size":[{"max-block":["none",...P()]}],w:[{w:[o,"screen",...K()]}],"min-w":[{"min-w":[o,"screen","none",...K()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[l]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,Qr,Bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,QC,GC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Bu,te]}],"font-family":[{font:[qC,ZC,t]}],"font-features":[{"font-features":[te]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ne,te]}],"line-clamp":[{"line-clamp":[de,"none",ne,F2]}],leading:[{leading:[a,...E()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:[de,"from-font","auto",ne,Bn]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[de,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"tab-size":[{tab:[St,ne,te]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},St,ne,te],radial:["",ne,te],conic:[St,ne,te]},JC,YC]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-bs":[{"border-bs":V()}],"border-w-be":[{"border-be":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...L(),"hidden","none"]}],"divide-style":[{divide:[...L(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...L(),"none","hidden"]}],"outline-offset":[{"outline-offset":[de,ne,te]}],"outline-w":[{outline:["",de,Qr,Bn]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",c,Oa,La]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",f,Oa,La]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[de,Bn]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",m,Oa,La]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[de,ne,te]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[de]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[de]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:Ke()}],brightness:[{brightness:[de,ne,te]}],contrast:[{contrast:[de,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",h,Oa,La]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",de,ne,te]}],"hue-rotate":[{"hue-rotate":[de,ne,te]}],invert:[{invert:["",de,ne,te]}],saturate:[{saturate:[de,ne,te]}],sepia:[{sepia:["",de,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":Ke()}],"backdrop-brightness":[{"backdrop-brightness":[de,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[de,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",de,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[de,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",de,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[de,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[de,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",de,ne,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[de,"initial",ne,te]}],ease:[{ease:["linear","initial",$,ne,te]}],delay:[{delay:[de,ne,te]}],animate:[{animate:["none",x,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ne,te]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:_()}],"rotate-x":[{"rotate-x":_()}],"rotate-y":[{"rotate-y":_()}],"rotate-z":[{"rotate-z":_()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],zoom:[{zoom:[St,ne,te]}],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ne,te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":N()}],"scrollbar-track-color":[{"scrollbar-track":N()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ne,te]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[de,Qr,Bn,F2]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},tD=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>(lr(e,"cacheSize",t),lr(e,"prefix",n),lr(e,"experimentalParseClassName",r),za(e.theme,a.theme),za(e.classGroups,a.classGroups),za(e.conflictingClassGroups,a.conflictingClassGroups),za(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),lr(e,"postfixLookupClassGroups",a.postfixLookupClassGroups),lr(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),Va(e.theme,i.theme),Va(e.classGroups,i.classGroups),Va(e.conflictingClassGroups,i.conflictingClassGroups),Va(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Au(e,i,"postfixLookupClassGroups"),Au(e,i,"orderSensitiveModifiers"),e),lr=(e,t,n)=>{n!==void 0&&(e[t]=n)},za=(e,t)=>{if(t)for(const n in t)lr(e,n,t[n])},Va=(e,t)=>{if(t)for(const n in t)Au(e,t,n)},Au=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},nD=((e,...t)=>typeof e=="function"?k2(R2,e,...t):k2(()=>tD(R2(),e),...t))({extend:{theme:{text:["h1","h2","h3","h4","h5","h6","body-lg","body-sm","caption-lg","caption-sm"]}}});function U(...e){return nD(ee(e))}const j2=u.createContext({size:"md"}),rD=()=>u.useContext(j2),H2=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,U2=ee,Z=(e,t)=>n=>{var r;if(t?.variants==null)return U2(e,n?.class,n?.className);const{variants:i,defaultVariants:a}=t,l=Object.keys(i).map(d=>{const c=n?.[d],f=a?.[d];if(c===null)return null;const m=H2(c)||H2(f);return i[d][m]}),o=n&&Object.entries(n).reduce((d,c)=>{let[f,m]=c;return m===void 0||(d[f]=m),d},{}),s=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,c)=>{let{class:f,className:m,...h}=c;return Object.entries(h).every(p=>{let[g,y]=p;return Array.isArray(y)?y.includes({...a,...o}[g]):{...a,...o}[g]===y})?[...d,f,m]:d},[]);return U2(e,l,s,n?.class,n?.className)},iD={xs:18,sm:20,md:20,lg:24,xl:28,"2xl":28},aD=Z("inline-flex shrink-0 items-center justify-center [&_svg]:size-full",{variants:{size:{xs:"size-[18px]",sm:"size-[20px]",md:"size-[20px]",lg:"size-[24px]",xl:"size-[28px]","2xl":"size-[28px]"}},defaultVariants:{size:"md"}}),lD=Z(["relative inline-flex items-center justify-center font-bold","transition-[color,background-color,border-color,box-shadow,filter,transform] duration-150","focus-visible:outline-none","[-webkit-tap-highlight-color:transparent]","disabled:cursor-not-allowed data-[disabled]:cursor-not-allowed data-[pending]:cursor-wait","data-[pressed]:brightness-[0.96]"],{variants:{size:{xs:"py-1 px-2 gap-1 rounded-md text-caption-sm",sm:"h-[36px] px-4 gap-1 rounded-lg text-caption-sm",md:"h-[44px] px-4 gap-2 rounded-lg text-sm",lg:"h-[52px] px-5 gap-2 rounded-[10px] text-body-sm",xl:"h-[60px] px-6 gap-2 rounded-[10px] text-body-lg","2xl":"h-[68px] px-6 gap-2 rounded-[10px] text-body-lg"},tone:{primary:"",destructive:""},iconOnly:{true:"!p-0",false:""},variant:{solid:["text-white","disabled:bg-light-100 disabled:text-light-400","data-[pending]:!bg-light-100 data-[pending]:!text-light-400"],outline:["bg-white border","disabled:bg-white disabled:text-light-400 disabled:border-light-200","data-[pending]:!bg-white data-[pending]:!text-light-400 data-[pending]:!border-light-200"],ghost:["bg-transparent","disabled:text-light-400","data-[pending]:!bg-transparent data-[pending]:!text-light-400"],"outline-primary":["bg-white border border-primary-500 text-primary-500","hover:bg-primary-100 hover:border-primary-300 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400 disabled:border-light-200","data-[pending]:!bg-white data-[pending]:!text-light-400 data-[pending]:!border-light-200"],"ghost-primary":["bg-transparent text-primary-500","hover:bg-primary-50 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:text-light-400","data-[pending]:!bg-transparent data-[pending]:!text-light-400"],plain:["bg-transparent h-auto rounded-none p-0 gap-1","disabled:text-light-400 data-[pending]:!text-light-400"],"plain-black":["bg-transparent h-auto rounded-none p-0 gap-1","disabled:text-light-400 data-[pending]:!text-light-400"]}},compoundVariants:[{tone:"primary",variant:"solid",class:["bg-primary-500","hover:bg-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"outline",class:["border-light-200 text-light-900","hover:bg-light-50","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"ghost",class:["text-light-800","hover:bg-light-50 hover:text-light-900","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain",class:["text-primary-500","hover:text-primary-800 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain-black",class:["text-light-800","hover:text-light-900 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"solid",class:["bg-error-500 text-white","hover:bg-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-light-100 data-[pending]:!bg-light-100"].join(" ")},{tone:"destructive",variant:"outline",class:["border-error-500 text-error-500","hover:border-error-300 hover:bg-error-100 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"ghost",class:["text-error-500","hover:bg-error-50 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400","data-[pending]:!bg-white data-[pending]:!text-light-400"].join(" ")},{tone:"destructive",variant:"plain",class:["text-error-500","hover:text-error-800 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{size:"xs",iconOnly:!0,class:"!w-[26px] !h-[26px]"},{size:"sm",iconOnly:!0,class:"!w-[36px] !h-[36px]"},{size:"md",iconOnly:!0,class:"!w-[44px] !h-[44px]"},{size:"lg",iconOnly:!0,class:"!w-[52px] !h-[52px]"},{size:"xl",iconOnly:!0,class:"!w-[60px] !h-[60px]"},{size:"2xl",iconOnly:!0,class:"!w-[68px] !h-[68px]"}],defaultVariants:{size:"md",tone:"primary",variant:"solid",iconOnly:!1}}),oD={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":22},W2=u.forwardRef(({children:e,className:t,tone:n,variant:r,size:i="md",iconOnly:a,isDisabled:l,disabled:o,isPending:s,title:d,value:c,...f},m)=>{const h=u.useCallback(g=>{g&&(d===void 0?g.removeAttribute("title"):g.title=d,c===void 0?g.removeAttribute("value"):g.value=String(c)),typeof m=="function"?m(g):m&&(m.current=g)},[m,d,c]),p=f;return u.createElement(j2.Provider,{value:{size:i}},u.createElement(qt,{...p,ref:h,isDisabled:l||o,isPending:s,className:al(t,g=>U(lD({tone:n,variant:r,size:i,iconOnly:a}),g))},al(e,(g,{isPending:y})=>u.createElement(u.Fragment,null,y?u.createElement("span",{className:"flex shrink-0 items-center","aria-hidden":!0},u.createElement(Ns,{size:oD[i],className:"animate-spin"})):null,y&&a?null:g))))});W2.displayName="Button";const uD=({children:e})=>{const{size:t}=rD();return u.createElement("span",{className:aD({size:t})},e)},sD=({children:e})=>u.createElement("span",{className:"whitespace-nowrap"},e),Ze=W2;Ze.Icon=uD,Ze.Text=sD;const G2=Z(["inline-flex items-center justify-center","border transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4 rounded-[4px]",md:"h-5 w-5 rounded-[6px]",lg:"h-5 w-5 rounded-[6px]"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-white border-light-200 hover:border-light-400"},{checked:!0,disabled:!1,className:"bg-primary-500 border-primary-500 text-white hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"bg-light-100 border-light-200 text-white"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),dD={sm:{width:12,height:9},md:{width:14,height:10},lg:{width:14,height:10}},Z2=b.forwardRef(({id:e,checked:t,indeterminate:n=!1,disabled:r,size:i="md",onCheckedChange:a,className:l},o)=>{const s=()=>{r||a?.(!t)},d=dD[i],c=r?"text-white/80":"text-current";return b.createElement("button",{id:e,ref:o,type:"button",role:"checkbox","aria-checked":n?"mixed":t,disabled:r,onClick:s,className:ee(G2({size:i,checked:t,disabled:r}),l)},t&&!n&&b.createElement("svg",{width:d.width,height:d.height,viewBox:"0 0 14 10",fill:"none",className:c},b.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),n&&b.createElement("span",{className:ee(c,"bg-current rounded-sm",i==="sm"&&"h-0.5 w-3",(i==="md"||i==="lg")&&"h-0.5 w-4")}))});Z2.displayName="Checkbox";const Y2=b.createContext(null),cD=({value:e,defaultValue:t,onValueChange:n,children:r,className:i})=>{const[a,l]=b.useState(t),o=e??a,s=d=>{l(d),n?.(d)};return b.createElement(Y2.Provider,{value:{value:o,onValueChange:s}},b.createElement("div",{role:"radiogroup",className:i},r))},fD=()=>{const e=b.useContext(Y2);if(!e)throw new Error("RadioGroupItem must be used within RadioGroup");return e},mD=Z(["relative inline-flex items-center justify-center","border rounded-full transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"border-light-200 bg-white hover:border-light-400"},{checked:!0,disabled:!1,className:"border-primary-500 bg-primary-500 hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"border-light-200 bg-light-100"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),hD=Z(["rounded-full bg-white transition-all"],{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2 w-2"},checked:{true:"scale-100",false:"scale-0"}},defaultVariants:{size:"md",checked:!1}}),q2=b.forwardRef(({id:e,value:t,disabled:n,size:r="md",className:i},a)=>{const{value:l,onValueChange:o}=fD(),s=l===t;return b.createElement("button",{ref:a,id:e,type:"button",role:"radio","aria-checked":s,disabled:n,onClick:()=>{n||o?.(t)},className:ee(mD({size:r,checked:s,disabled:n}),i)},b.createElement("span",{className:hD({size:r,checked:s})}))});q2.displayName="RadioGroupItem";const pD=Z(["inline-flex items-center shrink-0 rounded-full p-[2px]","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-5 w-9",md:"h-6 w-11",lg:"h-6 w-11"},checked:{true:"justify-end",false:"justify-start"},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"},variant:{default:"",success:""}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-light-200"},{checked:!0,disabled:!1,variant:"default",className:"bg-primary-500 hover:bg-primary-800"},{checked:!0,disabled:!1,variant:"success",className:"bg-success-500 hover:bg-success-800"},{disabled:!0,className:"bg-light-100"},{variant:"default",className:"focus-visible:ring-primary-400"},{variant:"success",className:"focus-visible:ring-success-500"}],defaultVariants:{size:"md",checked:!1,disabled:!1,variant:"default"}}),bD=Z("rounded-full shrink-0 shadow-[0_1px_3px_0_rgba(16,24,40,0.10),0_1px_2px_0_rgba(16,24,40,0.06)]",{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},disabled:{true:"bg-light-50",false:"bg-white"}},defaultVariants:{size:"md",disabled:!1}}),X2=b.forwardRef(({checked:e=!1,size:t="md",variant:n="default",disabled:r,onCheckedChange:i,className:a},l)=>b.createElement("button",{ref:l,type:"button",role:"switch","aria-checked":e,disabled:r,onClick:()=>{r||i?.(!e)},className:ee(pD({size:t,checked:e,disabled:r,variant:n}),a)},b.createElement("span",{className:bD({size:t,disabled:r})})));X2.displayName="Toggle";const gD=1e3,yD=900,$D=Z(["flex flex-col overflow-hidden","rounded-lg border border-light-200 bg-white shadow-lg","outline-none"]);function vD(e){b.useEffect(()=>{let t=0;const n=r=>{!e.current||t||r.target instanceof Node&&e.current.contains(r.target)||(t=requestAnimationFrame(()=>{t=0,window.dispatchEvent(new Event("resize"))}))};return document.addEventListener("scroll",n,!0),()=>{document.removeEventListener("scroll",n,!0),t&&cancelAnimationFrame(t)}},[e])}function xD(e){const t=()=>{e.hasAttribute("role")&&e.removeAttribute("role")};t();const n=new MutationObserver(t);return n.observe(e,{attributes:!0,attributeFilter:["role"]}),()=>n.disconnect()}const ln=b.forwardRef(({className:e,style:t,matchTriggerWidth:n=!1,children:r,...i},a)=>{const l=b.useRef(null),o=b.useRef(null),s=b.useCallback(d=>{l.current=d,typeof a=="function"?a(d):a&&(a.current=d),o.current?.(),o.current=d?xD(d):null},[a]);return vD(l),b.createElement(n3,{ref:s,...i,style:{zIndex:gD,...n?{width:"var(--trigger-width)"}:void 0,...t},className:U($D(),e)},r)});ln.displayName="Popover";const CD=Z(["relative rounded-lg text-caption-sm font-semibold text-white","bg-primary-900","shadow-lg","pointer-events-none","select-none"],{variants:{side:{top:"",bottom:"",left:"",right:""},hasSupportingText:{true:"p-3",false:"px-3 py-2"}},defaultVariants:{side:"top",hasSupportingText:!1}}),DD="mt-1 font-medium text-light-100",ED="overflow-visible border-0 bg-transparent shadow-none pointer-events-none",wD="block text-primary-900",SD=12,PD={top:"M0 0H16L8 6Z",bottom:"M0 6H16L8 0Z",left:"M0 0V16L6 8Z",right:"M6 0V16L0 8Z"};function kD({placement:e}){const t=e==="left"||e==="right";return b.createElement("svg",{"aria-hidden":"true",width:t?6:16,height:t?16:6,viewBox:t?"0 0 6 16":"0 0 16 6",className:wD,shapeRendering:"geometricPrecision"},b.createElement("path",{d:PD[e],fill:"currentColor"}))}const _a=({content:e,supportingText:t,side:n="top",open:r,defaultOpen:i=!1,disabled:a=!1,delay:l=100,className:o,children:s})=>{const[d,c]=b.useState(i),f=r??d,m=b.useRef(null),h=b.useRef(null),p=()=>{a||(h.current&&clearTimeout(h.current),l>0?h.current=window.setTimeout(()=>c(!0),l):c(!0))},g=()=>{a||(h.current&&(clearTimeout(h.current),h.current=null),c(!0))},y=()=>{h.current&&clearTimeout(h.current),l>0?h.current=window.setTimeout(()=>c(!1),l):c(!1)},$=()=>{h.current&&(clearTimeout(h.current),h.current=null),c(!1)};return b.createElement(b.Fragment,null,b.createElement("span",{ref:m,className:"inline-flex",onMouseEnter:p,onMouseLeave:y,onFocus:g,onBlur:$,tabIndex:0},s),b.createElement(ln,{isNonModal:!0,triggerRef:m,isOpen:f,onOpenChange:c,placement:n,offset:SD,className:ED},({placement:x})=>b.createElement(b.Fragment,null,b.createElement("div",{role:"tooltip",className:ee(CD({side:n,hasSupportingText:!!t}),o)},e,t&&b.createElement("p",{className:DD},t)),b.createElement(Xx,{className:"react-aria-OverlayArrow data-[placement=bottom]:!bottom-[calc(100%-1px)]"},b.createElement(kD,{placement:x==null||x==="center"?n:x})))))};_a.displayName="Tooltip";const BD="text-light-800",ND="hover:text-light-900",AD="border-light-200",FD="group-hover:border-light-500",TD={brand:{bg:"bg-primary-50",border:"border-primary-300",hoverBg:"hover:bg-primary-100",hoverBorder:"hover:border-primary-500"},gray:{bg:"bg-white",border:"border-light-200",hoverBg:"hover:bg-light-100",hoverBorder:"hover:border-light-500"},error:{bg:"bg-error-50",border:"border-error-200",hoverBg:"hover:bg-error-100",hoverBorder:"hover:border-error-500"},warning:{bg:"bg-warning-50",border:"border-warning-200",hoverBg:"hover:bg-warning-100",hoverBorder:"hover:border-warning-500"},success:{bg:"bg-success-50",border:"border-success-200",hoverBg:"hover:bg-success-100",hoverBorder:"hover:border-success-500"},"blue-gray":{bg:"bg-blue-gray-50",border:"border-blue-gray-200",hoverBg:"hover:bg-blue-gray-100",hoverBorder:"hover:border-blue-gray-500"},"blue-light":{bg:"bg-blue-light-50",border:"border-blue-light-200",hoverBg:"hover:bg-blue-light-100",hoverBorder:"hover:border-blue-light-500"},indigo:{bg:"bg-indigo-50",border:"border-indigo-200",hoverBg:"hover:bg-indigo-100",hoverBorder:"hover:border-indigo-500"},purple:{bg:"bg-purple-50",border:"border-purple-200",hoverBg:"hover:bg-purple-100",hoverBorder:"hover:border-purple-500"},blue:{bg:"bg-blue-50",border:"border-blue-200",hoverBg:"hover:bg-blue-100",hoverBorder:"hover:border-blue-500"},pink:{bg:"bg-pink-50",border:"border-pink-200",hoverBg:"hover:bg-pink-100",hoverBorder:"hover:border-pink-500"},orange:{bg:"bg-orange-50",border:"border-orange-200",hoverBg:"hover:bg-orange-100",hoverBorder:"hover:border-orange-500"}},ID=Z(["inline-flex items-center gap-1 border","font-medium transition-colors duration-150","select-none"],{variants:{size:{sm:"text-caption-sm py-[3px]",md:"text-caption-lg py-[2px]",lg:"text-caption-lg py-1"},shape:{rounded:"rounded-md",pill:"rounded-full"},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},interactive:{true:"group cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{size:"sm",hasLeading:!1,className:"pl-2"},{size:"sm",hasLeading:!0,className:"pl-1"},{size:"sm",hasTrailing:!1,className:"pr-2"},{size:"sm",hasTrailing:!0,className:"pr-1"},{size:"md",hasLeading:!1,className:"pl-[9px]"},{size:"md",hasLeading:!0,className:"pl-1"},{size:"md",hasTrailing:!1,className:"pr-[9px]"},{size:"md",hasTrailing:!0,className:"pr-1"},{size:"lg",hasLeading:!1,className:"pl-2.5"},{size:"lg",hasLeading:!0,className:"pl-1.5"},{size:"lg",hasTrailing:!1,className:"pr-2.5"},{size:"lg",hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"rounded",hasLeading:!1,hasTrailing:!1,interactive:!1,disabled:!1}}),MD=Z(["shrink-0 rounded border bg-white transition-colors duration-150"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[18px]"},checked:{true:"bg-primary-500 border-primary-500",false:""}},defaultVariants:{size:"sm",checked:!1}}),KD="shrink-0 rounded-[3px] bg-light-100 px-1 text-light-800",LD=Z(["shrink-0 inline-flex items-center justify-center rounded-[3px]","hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[20px]"}},defaultVariants:{size:"sm"}}),J2=/^#([0-9a-f]{6})$/i,Q2=e=>J2.test(e.trim()),e1=(e,t)=>{const n=J2.exec(e.trim());if(!n)return;const r=parseInt(n[1],16),i=r>>16&255,a=r>>8&255,l=r&255;return`rgba(${i}, ${a}, ${l}, ${t})`},Fu=({children:e,size:t="sm",shape:n="rounded",icon:r,checked:i,onCheckedChange:a,onClose:l,count:o,disabled:s=!1,className:d,color:c="gray",customColor:f})=>{const m=a!==void 0,h=i!==void 0||!!r,p=!!l||o!==void 0,g=m&&!s,y=TD[c],$=!!(f&&Q2(f)),x=$?{borderColor:f,backgroundColor:e1(f,.12)}:void 0,v=()=>{s||a?.(!i)},C=w=>{!m||s||(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),v())};return b.createElement("div",{role:m?"checkbox":void 0,"aria-checked":m?!!i:void 0,"aria-disabled":s||void 0,tabIndex:m&&!s?0:void 0,onClick:m?v:void 0,onKeyDown:C,style:x,className:ee(ID({size:t,shape:n,hasLeading:h,hasTrailing:p,interactive:g,disabled:s}),!$&&y.bg,!$&&y.border,BD,g&&!$&&y.hoverBg,g&&!$&&y.hoverBorder,g&&ND,d)},i!==void 0&&b.createElement("span",{className:ee(MD({checked:i,size:t}),!i&&AD,g&&!i&&FD)},i&&b.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},b.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),r,b.createElement("span",{className:"whitespace-nowrap"},e),o!==void 0&&b.createElement("span",{className:KD},o),l&&b.createElement("button",{type:"button","aria-label":"Remove",disabled:s,onClick:w=>{w.stopPropagation(),l()},className:LD({size:t})},b.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:t==="sm"?"size-2":t==="md"?"size-2.5":"size-3"},b.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};Fu.displayName="Tag";const OD={brand:{solidBg:"bg-primary-50",solidBorder:"border-primary-300",solidText:"text-primary-500",outlineBorder:"border-primary-500",outlineText:"text-primary-700",hoverSolidBg:"hover:bg-primary-100",hoverSolidBorder:"hover:border-primary-500",hoverSolidText:"hover:text-primary-800",hoverOutlineBg:"hover:bg-primary-50",hoverOutlineBorder:"hover:border-primary-300",hoverOutlineText:"hover:text-primary-800",checkboxHoverBorder:"group-hover:border-primary-500"},gray:{solidBg:"bg-light-50",solidBorder:"border-light-200",solidText:"text-light-700",outlineBorder:"border-light-600",outlineText:"text-light-700",hoverSolidBg:"hover:bg-light-100",hoverSolidBorder:"hover:border-light-500",hoverSolidText:"hover:text-light-900",hoverOutlineBg:"hover:bg-light-50",hoverOutlineBorder:"hover:border-light-300",hoverOutlineText:"hover:text-light-900",checkboxHoverBorder:"group-hover:border-light-500"},error:{solidBg:"bg-error-50",solidBorder:"border-error-200",solidText:"text-error-700",outlineBorder:"border-error-600",outlineText:"text-error-700",hoverSolidBg:"hover:bg-error-100",hoverSolidBorder:"hover:border-error-500",hoverSolidText:"hover:text-error-800",hoverOutlineBg:"hover:bg-error-50",hoverOutlineBorder:"hover:border-error-300",hoverOutlineText:"hover:text-error-800",checkboxHoverBorder:"group-hover:border-error-500"},warning:{solidBg:"bg-warning-50",solidBorder:"border-warning-200",solidText:"text-warning-700",outlineBorder:"border-warning-600",outlineText:"text-warning-700",hoverSolidBg:"hover:bg-warning-100",hoverSolidBorder:"hover:border-warning-500",hoverSolidText:"hover:text-warning-800",hoverOutlineBg:"hover:bg-warning-50",hoverOutlineBorder:"hover:border-warning-300",hoverOutlineText:"hover:text-warning-800",checkboxHoverBorder:"group-hover:border-warning-500"},success:{solidBg:"bg-success-50",solidBorder:"border-success-200",solidText:"text-success-700",outlineBorder:"border-success-600",outlineText:"text-success-700",hoverSolidBg:"hover:bg-success-100",hoverSolidBorder:"hover:border-success-500",hoverSolidText:"hover:text-success-800",hoverOutlineBg:"hover:bg-success-50",hoverOutlineBorder:"hover:border-success-300",hoverOutlineText:"hover:text-success-800",checkboxHoverBorder:"group-hover:border-success-500"},"blue-gray":{solidBg:"bg-blue-gray-50",solidBorder:"border-blue-gray-200",solidText:"text-blue-gray-700",outlineBorder:"border-blue-gray-600",outlineText:"text-blue-gray-700",hoverSolidBg:"hover:bg-blue-gray-100",hoverSolidBorder:"hover:border-blue-gray-500",hoverSolidText:"hover:text-blue-gray-800",hoverOutlineBg:"hover:bg-blue-gray-50",hoverOutlineBorder:"hover:border-blue-gray-300",hoverOutlineText:"hover:text-blue-gray-800",checkboxHoverBorder:"group-hover:border-blue-gray-500"},"blue-light":{solidBg:"bg-blue-light-50",solidBorder:"border-blue-light-200",solidText:"text-blue-light-700",outlineBorder:"border-blue-light-600",outlineText:"text-blue-light-700",hoverSolidBg:"hover:bg-blue-light-100",hoverSolidBorder:"hover:border-blue-light-500",hoverSolidText:"hover:text-blue-light-800",hoverOutlineBg:"hover:bg-blue-light-50",hoverOutlineBorder:"hover:border-blue-light-300",hoverOutlineText:"hover:text-blue-light-800",checkboxHoverBorder:"group-hover:border-blue-light-500"},indigo:{solidBg:"bg-indigo-50",solidBorder:"border-indigo-200",solidText:"text-indigo-700",outlineBorder:"border-indigo-600",outlineText:"text-indigo-700",hoverSolidBg:"hover:bg-indigo-100",hoverSolidBorder:"hover:border-indigo-500",hoverSolidText:"hover:text-indigo-800",hoverOutlineBg:"hover:bg-indigo-50",hoverOutlineBorder:"hover:border-indigo-300",hoverOutlineText:"hover:text-indigo-800",checkboxHoverBorder:"group-hover:border-indigo-500"},purple:{solidBg:"bg-purple-50",solidBorder:"border-purple-200",solidText:"text-purple-700",outlineBorder:"border-purple-600",outlineText:"text-purple-700",hoverSolidBg:"hover:bg-purple-100",hoverSolidBorder:"hover:border-purple-500",hoverSolidText:"hover:text-purple-800",hoverOutlineBg:"hover:bg-purple-50",hoverOutlineBorder:"hover:border-purple-300",hoverOutlineText:"hover:text-purple-800",checkboxHoverBorder:"group-hover:border-purple-500"},blue:{solidBg:"bg-blue-50",solidBorder:"border-blue-200",solidText:"text-blue-700",outlineBorder:"border-blue-600",outlineText:"text-blue-700",hoverSolidBg:"hover:bg-blue-100",hoverSolidBorder:"hover:border-blue-500",hoverSolidText:"hover:text-blue-800",hoverOutlineBg:"hover:bg-blue-50",hoverOutlineBorder:"hover:border-blue-300",hoverOutlineText:"hover:text-blue-800",checkboxHoverBorder:"group-hover:border-blue-500"},pink:{solidBg:"bg-pink-50",solidBorder:"border-pink-200",solidText:"text-pink-700",outlineBorder:"border-pink-600",outlineText:"text-pink-700",hoverSolidBg:"hover:bg-pink-100",hoverSolidBorder:"hover:border-pink-500",hoverSolidText:"hover:text-pink-800",hoverOutlineBg:"hover:bg-pink-50",hoverOutlineBorder:"hover:border-pink-300",hoverOutlineText:"hover:text-pink-800",checkboxHoverBorder:"group-hover:border-pink-500"},orange:{solidBg:"bg-orange-50",solidBorder:"border-orange-200",solidText:"text-orange-700",outlineBorder:"border-orange-600",outlineText:"text-orange-700",hoverSolidBg:"hover:bg-orange-100",hoverSolidBorder:"hover:border-orange-500",hoverSolidText:"hover:text-orange-800",hoverOutlineBg:"hover:bg-orange-50",hoverOutlineBorder:"hover:border-orange-300",hoverOutlineText:"hover:text-orange-800",checkboxHoverBorder:"group-hover:border-orange-500"}},zD=Z(["inline-flex items-center gap-1 border font-medium","transition-colors duration-150"],{variants:{size:{sm:"text-caption-sm py-0.5",md:"text-caption-lg py-0.5",lg:"text-caption-lg py-1"},shape:{pill:"rounded-full",badge:""},modern:{true:"rounded-md shadow-xs",false:""},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},iconOnly:{true:"p-[5px]",false:""},interactive:{true:"group cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{shape:"badge",size:"sm",modern:!1,className:"rounded-md"},{shape:"badge",size:"md",modern:!1,className:"rounded-md"},{shape:"badge",size:"lg",modern:!1,className:"rounded-lg"},{size:"sm",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-2"},{size:"sm",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-1.5"},{size:"sm",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"sm",iconOnly:!1,hasTrailing:!1,className:"pr-2"},{size:"sm",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"md",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"md",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"md",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"md",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"lg",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-3"},{size:"lg",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"lg",iconOnly:!1,hasLeading:!0,className:"pl-1.5"},{size:"lg",shape:"pill",iconOnly:!1,hasTrailing:!1,className:"pr-3"},{size:"lg",shape:"badge",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"lg",iconOnly:!1,hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"pill",modern:!1,hasLeading:!1,hasTrailing:!1,iconOnly:!1,interactive:!1,disabled:!1}}),VD=Z(["shrink-0 rounded border bg-white transition-colors duration-150"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[18px]"}},defaultVariants:{size:"sm"}}),_D=Z(["shrink-0 inline-flex items-center justify-center rounded","hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"],{variants:{size:{sm:"size-[16px]",md:"size-[16px]",lg:"size-[16px]"}},defaultVariants:{size:"sm"}}),t1=({children:e,size:t="sm",shape:n="pill",variant:r="solid",color:i="brand",customColor:a,modern:l=!1,icon:o,trailingIcon:s,checked:d,onCheckedChange:c,onClose:f,iconOnly:m=!1,disabled:h=!1,className:p})=>{const g=c!==void 0,y=d!==void 0||!!o,$=!!f||!!s,x=g&&!h,v=OD[i],C=!!(a&&Q2(a)),w=C?{borderColor:a,color:a,backgroundColor:r==="outline"?"transparent":e1(a,.1)}:void 0,S=()=>{h||c?.(!d)},B=E=>{!g||h||(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),S())};return b.createElement("div",{role:g?"checkbox":void 0,"aria-checked":g?!!d:void 0,"aria-disabled":h||void 0,tabIndex:g&&!h?0:void 0,onClick:g?S:void 0,onKeyDown:B,style:w,className:ee(zD({size:t,shape:n,modern:l,hasLeading:y,hasTrailing:$,iconOnly:m,interactive:x,disabled:h}),!C&&(r==="outline"?ee("bg-transparent",v.outlineBorder,v.outlineText):ee(v.solidBg,v.solidBorder,v.solidText)),x&&!C&&(r==="outline"?ee(v.hoverOutlineBg,v.hoverOutlineBorder,v.hoverOutlineText):ee(v.hoverSolidBg,v.hoverSolidBorder,v.hoverSolidText)),p)},d!==void 0&&b.createElement("span",{className:ee(VD({size:t}),d?"bg-primary-500 border-primary-500":!C&&v.solidBorder,x&&!d&&!C&&v.checkboxHoverBorder),style:!d&&C?{borderColor:a}:void 0},d&&b.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},b.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),o,!m&&b.createElement("span",{className:"whitespace-nowrap"},e),s,f&&b.createElement("button",{type:"button","aria-label":"Remove",disabled:h,onClick:E=>{E.stopPropagation(),f()},className:_D({size:t})},b.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:t==="sm"?"size-2":"size-2.5"},b.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};t1.displayName="Badge";const RD={brand:{bg50:"bg-primary-50",hoverBg100:"hover:bg-primary-100",border200:"border-primary-200",border500:"border-primary-500",text500:"text-primary-500"},gray:{bg50:"bg-light-50",hoverBg100:"hover:bg-light-100",border200:"border-light-200",border500:"border-light-500",text500:"text-light-500"},error:{bg50:"bg-error-50",hoverBg100:"hover:bg-error-100",border200:"border-error-200",border500:"border-error-500",text500:"text-error-500"},warning:{bg50:"bg-warning-50",hoverBg100:"hover:bg-warning-100",border200:"border-warning-200",border500:"border-warning-500",text500:"text-warning-500"},success:{bg50:"bg-success-50",hoverBg100:"hover:bg-success-100",border200:"border-success-200",border500:"border-success-500",text500:"text-success-500"}},jD={md:{outerPad:{leading:"pl-1 pr-2.5 py-1",trailing:"pl-3 pr-1 py-1"},gap:"gap-2",chipPad:"px-2 py-0.5",text:"text-caption-lg"},lg:{outerPad:{leading:"pl-1.5 pr-3 py-1.5",trailing:"pl-3 pr-1.5 py-1.5"},gap:"gap-2",chipPad:"px-2.5 py-[3px]",text:"text-body-sm"}},n1=({badgeLabel:e,children:t,size:n="md",theme:r="light",color:i="brand",badgePosition:a="leading",icon:l,onClick:o,className:s})=>{const d=RD[i],c=jD[n],f=r==="modern",m=r==="outline",h=ee("inline-flex items-center border transition-colors duration-150",c.gap,c.outerPad[a],f?"rounded-lg bg-light-50 border-light-200 shadow-xs":m?ee("rounded-full bg-white border-[1.5px]",d.border500):ee("rounded-full",d.bg50,d.border200,d.hoverBg100),o&&"cursor-pointer",s),p=ee("inline-flex shrink-0 items-center gap-1 border font-medium whitespace-nowrap",c.chipPad,c.text,f?"rounded-md bg-white border-light-200 text-light-800":m?ee("rounded-full bg-white border-[1.5px]",d.border500,d.text500):ee("rounded-full bg-white",d.border200,d.text500)),g=ee("inline-flex items-center gap-1 font-medium",c.text,f?"text-light-800":d.text500),y=b.createElement("span",{className:p},f&&b.createElement("span",{className:"size-2 shrink-0 rounded-full bg-light-400"}),e);return b.createElement("div",{role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o,className:h},a==="leading"&&y,b.createElement("span",{className:g},t,l),a==="trailing"&&y)};n1.displayName="BadgeGroup";const HD=({size:e})=>{const t=e*.09,n=(e-t)/2,r=2*Math.PI*n;return b.createElement("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",className:"animate-spin"},b.createElement("circle",{cx:e/2,cy:e/2,r:n,strokeWidth:t,className:"stroke-light-100"}),b.createElement("circle",{cx:e/2,cy:e/2,r:n,strokeWidth:t,strokeLinecap:"round",strokeDasharray:`${r*.25} ${r}`,className:"stroke-primary-600"}))},UD=({size:e})=>{const t=b.useId(),n=e*.125,r=(e-n)/2,i=2*Math.PI*r;return b.createElement("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",className:"animate-spin text-primary-600"},b.createElement("defs",null,b.createElement("linearGradient",{id:t,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},b.createElement("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:"1"}),b.createElement("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:"0"}))),b.createElement("circle",{cx:e/2,cy:e/2,r,strokeWidth:n,className:"stroke-light-100"}),b.createElement("circle",{cx:e/2,cy:e/2,r,strokeWidth:n,strokeLinecap:"round",stroke:`url(#${t})`,strokeDasharray:`${i*.75} ${i}`}))},WD=({size:e})=>{const n=Math.max(e*.1,3),r=(e-n)/2;return b.createElement("div",{className:"relative animate-spin",style:{width:e,height:e}},Array.from({length:12}).map((i,a)=>{const l=30*a,o=.15+.85*a/11;return b.createElement("span",{key:a,className:"absolute rounded-full bg-primary-600 top-1/2 left-1/2",style:{width:n,height:n,opacity:o,marginTop:-n/2,marginLeft:-n/2,transform:`rotate(${l}deg) translate(${r}px) rotate(${-l}deg)`}})}))},GD={sm:{box:32,gapClass:"gap-4",textClass:"text-caption-lg"},md:{box:48,gapClass:"gap-4",textClass:"text-caption-lg"},lg:{box:56,gapClass:"gap-4",textClass:"text-body-lg"},xl:{box:64,gapClass:"gap-5",textClass:"text-body-lg"}},r1=({size:e="sm",style:t="line-simple",supportingText:n=!0,label:r="Loading...",className:i})=>{const{box:a,gapClass:l,textClass:o}=GD[e],s=typeof r=="string"?r:"Loading";return b.createElement("div",{"aria-live":"polite","aria-atomic":"true"},b.createElement(Mv,{isIndeterminate:!0,"aria-label":s,className:U("inline-flex flex-col items-center",l,i)},t==="line-simple"&&b.createElement(HD,{size:a}),t==="line-spinner"&&b.createElement(UD,{size:a}),t==="dot-circle"&&b.createElement(WD,{size:a}),n&&b.createElement("p",{className:U("font-nunito font-medium text-light-700 whitespace-nowrap",o)},r)))};r1.displayName="Loading";const i1=({className:e,style:t})=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",className:e,style:t},b.createElement("path",{d:"M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z",stroke:"currentColor",strokeWidth:"1.75"}),b.createElement("path",{d:"M3.75 20.25a8.25 8.25 0 0 1 16.5 0",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})),a1=({className:e})=>b.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},b.createElement("circle",{cx:"10",cy:"10",r:"9",className:"fill-primary-500 stroke-white",strokeWidth:"1.5"}),b.createElement("path",{d:"M6 10.2 8.6 12.8 14 7",stroke:"white",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})),ZD={xs:{box:24,borderWidth:"0.5px",statusSize:6,badgeSize:10,textClass:"text-caption-sm"},sm:{box:32,borderWidth:"0.5px",statusSize:8,badgeSize:12,textClass:"text-caption-lg"},md:{box:40,borderWidth:"0.75px",statusSize:10,badgeSize:14,textClass:"text-body-sm"},lg:{box:48,borderWidth:"0.75px",statusSize:12,badgeSize:16,textClass:"text-body-lg"},xl:{box:56,borderWidth:"0.75px",statusSize:14,badgeSize:18,textClass:"text-h6"},"2xl":{box:64,borderWidth:"0.75px",statusSize:16,badgeSize:20,textClass:"text-h5 leading-7"}},YD="#17B26A",Ra={brand:{bg:"bg-primary-500",text:"text-white",iconText:"text-white"},gray:{bg:"bg-light-50",text:"text-light-500",iconText:"text-light-300"},error:{bg:"bg-error-500",text:"text-white",iconText:"text-white"},warning:{bg:"bg-warning-500",text:"text-white",iconText:"text-white"},success:{bg:"bg-success-500",text:"text-white",iconText:"text-white"}},ja=({src:e,alt:t,initials:n,size:r="md",color:i="gray",status:a="none",statusIcon:l,contrastBorder:o=!0,className:s})=>{const{box:d,borderWidth:c,statusSize:f,badgeSize:m,textClass:h}=ZD[r],p=e?"image":n!==void 0?"initials":"placeholder";return b.createElement("div",{className:ee("relative inline-block shrink-0 rounded-full",s),style:{width:d,height:d}},p==="image"&&b.createElement("img",{src:e,alt:t??"",className:"absolute inset-0 size-full rounded-full object-cover"}),p==="placeholder"&&b.createElement("div",{className:ee("absolute inset-0 flex items-center justify-center rounded-full",Ra[i].bg)},b.createElement(i1,{className:Ra[i].iconText,style:{width:d*.55,height:d*.55}})),p==="initials"&&b.createElement("div",{className:ee("absolute inset-0 flex items-center justify-center rounded-full font-semibold",Ra[i].bg,Ra[i].text,h)},n),o&&b.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",style:{borderWidth:c,borderStyle:"solid"}}),a==="online"&&b.createElement("span",{className:"absolute bottom-0 right-0 rounded-full border-[1.5px] border-white",style:{width:f,height:f,backgroundColor:YD}}),a==="company"&&b.createElement("div",{className:"absolute bottom-0 right-0 flex items-center justify-center overflow-hidden rounded-full border-[1.5px] border-white bg-white",style:{width:m,height:m}},l),a==="verified"&&b.createElement("div",{className:"absolute bottom-0 right-0",style:{width:m,height:m}},b.createElement(a1,{className:"size-full"})))};ja.displayName="Avatar";const l1=[{bg:"bg-primary-100",text:"text-primary-600"},{bg:"bg-secondary-100",text:"text-secondary-600"},{bg:"bg-purple-100",text:"text-purple-600"},{bg:"bg-pink-100",text:"text-pink-600"},{bg:"bg-orange-100",text:"text-orange-600"},{bg:"bg-teal-100",text:"text-teal-600"},{bg:"bg-indigo-100",text:"text-indigo-600"},{bg:"bg-rose-100",text:"text-rose-600"}],qD=e=>{let t=0;for(let r=0;r<e.length;r+=1)t=t*31+e.charCodeAt(r)|0;const n=Math.abs(t)%l1.length;return l1[n]},XD={xs:{box:24,overlap:-4,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-sm"},sm:{box:32,overlap:-8,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-lg"},md:{box:40,overlap:-12,contrastBorderWidth:"0.75px",plusIconSize:20,textClass:"text-body-sm"}},o1=({avatars:e,max:t,size:n="xs",onAdd:r,className:i})=>{const{box:a,overlap:l,contrastBorderWidth:o,textClass:s}=XD[n],d=t?e.slice(0,t):e,c=t&&e.length>t?e.length-t:0;return b.createElement("div",{className:ee("inline-flex items-start gap-2",i)},b.createElement("div",{className:"flex items-start"},d.map((f,m)=>{const h=m<d.length-1||c>0;return b.createElement(_a,{key:m,content:f.label,disabled:!f.label,side:"top"},b.createElement("div",{className:"relative shrink-0 overflow-hidden rounded-full border-[1.5px] border-white",style:{width:a,height:a,marginRight:h?l:0}},f.src?b.createElement("img",{src:f.src,alt:f.alt??"",className:"size-full object-cover"}):(()=>{const{text:p,bg:g}=qD(String(f.label??f.alt??f.initials??m));return b.createElement("div",{className:ee("flex size-full items-center justify-center font-semibold",f.initialsBgColor??g,f.initialsTextColor??p,s)},f.initials)})(),b.createElement("div",{className:ee("pointer-events-none absolute inset-0 rounded-full",f.borderColor??"border-black/[0.08]"),style:{borderWidth:o,borderStyle:"solid"}})))}),c>0&&b.createElement(_a,{content:e.slice(t).map((f,m)=>b.createElement("div",{key:m},f.label)),disabled:!e.slice(t).some(f=>f.label),side:"top"},b.createElement("div",{className:"relative flex shrink-0 items-center justify-center rounded-full border-2 border-white bg-light-100",style:{width:a,height:a}},b.createElement("span",{className:ee("font-semibold text-light-600",s)},"+",c)))),r&&b.createElement("button",{type:"button",onClick:r,"aria-label":"Add",className:"flex shrink-0 items-center justify-center rounded-full border border-dashed border-light-300 bg-white text-light-500 hover:bg-light-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",style:{width:a,height:a}},b.createElement("svg",{width:a*.4,height:a*.4,viewBox:"0 0 20 20",fill:"none"},b.createElement("path",{d:"M10 4v12M4 10h12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}))))};o1.displayName="AvatarGroup";const JD={xs:{nameClass:"text-caption-sm",subtitleClass:"text-caption-sm"},sm:{nameClass:"text-caption-lg",subtitleClass:"text-caption-sm"},md:{nameClass:"text-caption-lg",subtitleClass:"text-caption-lg"},lg:{nameClass:"text-body-sm",subtitleClass:"text-body-sm"},xl:{nameClass:"text-body-lg",subtitleClass:"text-body-sm"}},u1=({name:e,subtitle:t,src:n,initials:r,size:i="xs",status:a="none",statusIcon:l,className:o})=>{const{nameClass:s,subtitleClass:d}=JD[i];return b.createElement("div",{className:ee("inline-flex items-center gap-2",o)},b.createElement(ja,{src:n,initials:r,size:i,status:a,statusIcon:l}),b.createElement("div",{className:"flex flex-col items-start whitespace-nowrap"},b.createElement("span",{className:ee("font-bold text-light-800",s)},e),t&&b.createElement("span",{className:ee("font-normal text-light-700",d)},t)))};u1.displayName="AvatarLabelGroup";const QD={sm:{box:72,ringWidth:3,shadowClass:"shadow-md",iconSize:36,textClass:"text-h4",verifiedSize:20,verifiedOffset:0},md:{box:96,ringWidth:4,shadowClass:"shadow-lg",iconSize:48,textClass:"text-h3",verifiedSize:24,verifiedOffset:0},lg:{box:160,ringWidth:4,shadowClass:"shadow-lg",iconSize:80,textClass:"text-h1",verifiedSize:32,verifiedOffset:4}},s1=({src:e,alt:t,initials:n,size:r="sm",verified:i=!0,contrastBorder:a=!0,className:l})=>{const{box:o,ringWidth:s,shadowClass:d,iconSize:c,textClass:f,verifiedSize:m,verifiedOffset:h}=QD[r],p=e?"image":n!==void 0?"initials":"placeholder";return b.createElement("div",{className:ee("relative rounded-full",l),style:{width:o,height:o}},b.createElement("div",{className:ee("absolute inset-0 overflow-hidden rounded-full border-white",d,p!=="image"&&"bg-light-100"),style:{borderWidth:s,borderStyle:"solid"}},p==="image"&&b.createElement("img",{src:e,alt:t??"",className:"absolute inset-0 size-full rounded-full object-cover"}),a&&b.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border border-black/[0.08]"}),p==="placeholder"&&b.createElement("div",{className:"absolute inset-0 flex items-center justify-center"},b.createElement(i1,{className:"text-light-300",style:{width:c,height:c}})),p==="initials"&&b.createElement("div",{className:ee("absolute inset-0 flex items-center justify-center font-semibold text-light-500",f)},n)),i&&b.createElement("div",{className:"absolute",style:{width:m,height:m,bottom:h,right:h}},b.createElement(a1,{className:"size-full"})))};s1.displayName="AvatarProfilePhoto";const eE={"button-gray":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},"button-white":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},"button-primary":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},underline:{sm:"h-8 px-1 pb-3 text-sm gap-2",md:"h-9 px-1 pb-3 text-base gap-2"},"underline-filled":{sm:"h-11 p-3 text-sm gap-2",md:"h-12 p-3 text-base gap-2"},line:{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3.5 py-2.5 text-base gap-2"}},tE={"button-gray":"rounded-md","button-white":"rounded-md","button-primary":"rounded-md",underline:"rounded-none","underline-filled":"rounded-none",line:"rounded-none"},nE={"button-gray":{active:"bg-light-50 text-light-700",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-light-50 hover:text-light-700",hasFocusRing:!0},"button-white":{active:"bg-white text-light-700 shadow-sm",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-white hover:text-light-700 hover:shadow-sm",hasFocusRing:!0},"button-primary":{active:"bg-primary-50 text-primary-700",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-primary-50 hover:text-primary-700",hasFocusRing:!0},underline:{active:"border-b-2 border-primary-500 text-primary-700",inactive:"border-b-2 border-transparent text-light-500",hoverInactive:"hover:border-primary-500 hover:text-primary-700",hasFocusRing:!1},"underline-filled":{active:"bg-primary-50 border-b-2 border-primary-500 text-primary-700",inactive:"bg-transparent border-b-2 border-transparent text-light-500",hoverInactive:"hover:bg-primary-50 hover:border-primary-500 hover:text-primary-700",hasFocusRing:!1},line:{active:"bg-transparent border-l-2 border-primary-500 text-primary-700",inactive:"bg-transparent border-l-2 border-transparent text-light-500",hoverInactive:"hover:border-primary-500 hover:text-primary-700",hasFocusRing:!0}},rE="inline-flex items-center justify-center rounded-full border border-light-200 bg-light-50 px-2 py-0.5 text-caption-sm font-medium text-light-700",iE={"button-gray":{gapClass:"gap-1",hasHairline:!1},"button-white":{gapClass:"gap-1",hasHairline:!1},"button-primary":{gapClass:"gap-1",hasHairline:!1},underline:{gapClass:"gap-3",hasHairline:!0},"underline-filled":{gapClass:"gap-3",hasHairline:!0},line:{gapClass:"gap-1",hasHairline:!1}},d1=({children:e,variant:t="button-primary",size:n="sm",fullWidth:r=!1,count:i,iconLeft:a,iconRight:l,disabled:o=!1,onClick:s,className:d,id:c,active:f})=>{const m=nE[t];return b.createElement(v2,{id:c,isDisabled:o,onPress:()=>s?.(),className:({isSelected:h})=>U("inline-flex items-center justify-center font-semibold transition-colors duration-150",eE[t][n],tE[t],h?m.active:m.inactive,!h&&!o&&m.hoverInactive,m.hasFocusRing&&"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",r&&"w-full",o?"cursor-not-allowed opacity-60":"cursor-pointer",d)},a&&b.createElement("span",{className:"shrink-0"},a),b.createElement("span",{className:"whitespace-nowrap"},e),i!==void 0&&b.createElement("span",{className:rE},i),l&&b.createElement("span",{className:"shrink-0"},l))};d1.displayName="Tab";const c1=({children:e,variant:t="button-primary",orientation:n="horizontal",boxed:r=!1,"aria-label":i="Tabs",keyboardActivation:a,disabledKeys:l,className:o})=>{const{gapClass:s,hasHairline:d}=iE[t],c=b.Children.toArray(e),f=c.map((g,y)=>String(y)),m=c.findIndex(g=>g.props.active),h=f[m>=0?m:0],p=g=>{const y=f.indexOf(String(g));y>=0&&c[y].props.onClick?.()};return b.createElement(y2,{orientation:n,keyboardActivation:a,disabledKeys:l,selectedKey:c.length?h:void 0,onSelectionChange:p},b.createElement($2,{"aria-label":i,className:U("inline-flex",n==="vertical"?"flex-col items-stretch":"flex-row items-center",s,r&&"rounded-lg border border-light-200 bg-light-50 p-1",d&&n==="horizontal"&&!r&&"border-b border-light-200",o)},c.map((g,y)=>b.cloneElement(g,{key:f[y],id:f[y]}))))};c1.displayName="TabList";const f1=9,Pt=1,aE=30;function m1(e){const t=f1,n=Pt-e,r=n?`calc(100% - ${n}px)`:"100%",i=`calc(100% - ${t+1}px)`,a=`calc(100% - ${t}px)`;return`shape(${[`from ${-e}px 100%`,...n?[`vline to ${r}`]:[],`curve to ${t}px ${i} with ${t}px ${r}`,`vline to ${t-e}px`,`curve to ${2*t-e}px 0 with ${t}px 0`,`hline to calc(100% - ${2*t-e}px)`,`curve to ${a} ${t-e}px with ${a} 0`,`vline to ${i}`,`curve to ${e?`calc(100% + ${e}px)`:"100%"} ${r} with ${a} ${r}`,...n?["vline to 100%"]:[]].join(", ")})`}const h1=m1(0),p1=m1(Pt),b1={default:{box:"h-12 shrink-0",padX:aE},"max-width":{box:"h-9 min-w-px flex-1",padX:f1}},lE={clipPath:h1,paddingInline:`${Pt}px`},oE={paddingInline:`${Pt}px`},g1=b.forwardRef(({type:e="default",disabled:t=!1,unstyled:n=!1,iconLeft:r,trailing:i,tooltip:a,children:l,className:o,style:s,contentClassName:d,contentStyle:c,onClick:f,id:m,active:h,...p},g)=>{const{box:y,padX:$}=b1[e];return b.createElement(v2,{ref:g,id:m,isDisabled:t,onPress:()=>f?.(void 0),...p,className:({isSelected:x})=>U("group relative flex transition-colors duration-150 focus-visible:outline-none",!n&&"rounded-t-lg pt-px",!n&&y,t&&"cursor-not-allowed opacity-60",!t&&!x&&"cursor-pointer",!n&&x&&"-mb-px bg-light-200 focus-visible:bg-primary-400",x&&"cursor-default",o),style:({isSelected:x})=>n?s:{...x?lE:oE,...s}},({isSelected:x})=>{const v=!t&&!x,C=x?{clipPath:p1,paddingInline:`${$-Pt}px`}:{paddingInline:`${$-Pt}px`};return b.createElement("span",{title:a,className:U("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!n&&"rounded-t-lg",!n&&(x?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!n&&v&&"group-hover:bg-light-100 group-hover:text-light-800",!n&&v&&"group-focus-visible:rounded-b-lg group-focus-visible:ring-2 group-focus-visible:ring-primary-400 group-focus-visible:ring-offset-2",d),style:n?c:{...C,...c}},r&&b.createElement("span",{className:"shrink-0"},r),b.createElement("span",{className:"overflow-hidden text-ellipsis"},l),i)})});g1.displayName="TabBrowser";const uE=48,y1=({children:e,separators:t=!1,trailingSlot:n,overflow:r=!1,overflowLabel:i,className:a})=>{const l=b.Children.toArray(e),o=b.useMemo(()=>l.map((E,k)=>String(k)),[l.length]),s=l.findIndex(E=>E.props.active),d=b.useRef(null),c=b.useRef(null),f=b.useRef(new Map),m=b.useRef(new Map),[h,p]=b.useState(l.length),g=o.join("|");b.useLayoutEffect(()=>{r&&(m.current.clear(),p(l.length))},[r,g]);const y=b.useCallback(()=>{const E=d.current;if(!E||l.length===0||(m.current.size<l.length&&o.forEach(j=>{const D=f.current.get(j);D&&m.current.set(j,D.getBoundingClientRect().width)}),m.current.size<l.length))return;const k=E.clientWidth,M=c.current?.getBoundingClientRect().width||uE;let F=0,I=0;for(;I<o.length;I++){const j=m.current.get(o[I])??0,D=I<o.length-1?M:0;if(F+j+D>k&&I>0)break;F+=j}p(j=>j===I?j:I)},[l.length,o]),$=h===l.length;b.useLayoutEffect(()=>{r&&y()},[r,y,$]),b.useEffect(()=>{if(!r)return;const E=d.current;if(!E||typeof ResizeObserver>"u")return;const k=new ResizeObserver(()=>y());return k.observe(E),()=>k.disconnect()},[r,y]);const x=r&&h<l.length?Math.max(h,1):l.length,v=r?s>=0&&s>=x?[...Array(x-1).keys(),s]:[...Array(x).keys()]:o.map((E,k)=>k),C=new Set(v),w=o.map((E,k)=>k).filter(E=>!C.has(E)),S=s>=0?o[s]:v.length?o[v[0]]:void 0,B=E=>{const k=o.indexOf(String(E));k>=0&&l[k].props.onClick?.(void 0)};return b.createElement(y2,{selectedKey:l.length?S:void 0,onSelectionChange:B,className:U("flex items-end",r&&"min-w-0 flex-1",a)},(()=>{const E=b.createElement($2,{"aria-label":"Tabs",className:U("flex min-w-0 items-end",r?"shrink-0":"flex-1")},v.map((k,M)=>{const F=l[k],I=M===v.length-1&&w.length===0,j=v[M+1],D=F.props.active||l[j]?.props.active;return b.cloneElement(F,{key:o[k],id:o[k],ref:r?T=>{T?f.current.set(o[k],T):f.current.delete(o[k])}:void 0,className:U(F.props.className,t&&!I&&!D&&"after:absolute after:-right-px after:bottom-3 after:h-5 after:w-px after:bg-light-200 after:content-['']")})}));return r?b.createElement("div",{ref:d,className:"flex min-w-0 flex-1 items-end overflow-hidden"},E,w.length>0&&b.createElement(Na,null,b.createElement(qt,{ref:c,className:"mb-3 flex h-7 shrink-0 items-center self-end rounded-md px-2 text-caption-sm font-semibold text-light-600 hover:bg-light-100 hover:text-light-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"},i?i(w.length):`+${w.length}`),b.createElement(n3,{placement:"bottom end",className:"flex flex-col overflow-hidden rounded-lg border border-light-200 bg-white p-1 shadow-lg"},b.createElement(R3,{className:"flex max-h-[320px] min-h-0 min-w-[160px] flex-1 flex-col gap-0.5 overflow-y-auto outline-none [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",onAction:k=>{const M=o.indexOf(String(k));M>=0&&l[M].props.onClick?.(void 0)}},w.map(k=>{const M=l[k],F=M.props.children;return b.createElement(j3,{key:o[k],id:o[k],isDisabled:M.props.disabled,textValue:typeof F=="string"?F:void 0,className:"flex h-9 shrink-0 cursor-pointer items-center gap-2 truncate rounded-md px-2 text-caption-sm text-light-800 outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-60 data-[focused]:bg-light-50 data-[focused]:text-light-900"},M.props.iconLeft&&b.createElement("span",{className:"shrink-0"},M.props.iconLeft),b.createElement("span",{className:"truncate"},F),M.props.trailing&&b.createElement("span",{className:"ml-auto shrink-0"},M.props.trailing))}))))):E})(),n)};y1.displayName="TabBrowserBar";const sE={clipPath:h1,paddingInline:`${Pt}px`},dE={paddingInline:`${Pt}px`},$1=b.forwardRef(({type:e="default",disabled:t=!1,unstyled:n=!1,active:r=!1,iconLeft:i,trailing:a,tooltip:l,children:o,className:s,style:d,contentClassName:c,contentStyle:f,...m},h)=>{const{box:p,padX:g}=b1[e],y=!t&&!r,$=r?{clipPath:p1,paddingInline:`${g-Pt}px`}:{paddingInline:`${g-Pt}px`};return b.createElement("div",{ref:h,role:"tab","aria-disabled":t,"aria-selected":r,...m,className:U("group relative flex transition-colors duration-150 focus-visible:outline-none",!n&&"rounded-t-lg pt-px",!n&&p,t&&"cursor-not-allowed opacity-60",!t&&!r&&"cursor-pointer",!n&&r&&"-mb-px bg-light-200 focus-visible:bg-primary-400",r&&"cursor-default",s),style:n?d:{...r?sE:dE,...d}},b.createElement("span",{title:l,className:U("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!n&&"rounded-t-lg",!n&&(r?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!n&&y&&"group-hover:bg-light-100 group-hover:text-light-800",!n&&y&&"group-focus-visible:rounded-b-lg group-focus-visible:ring-2 group-focus-visible:ring-primary-400 group-focus-visible:ring-offset-2",c),style:n?f:{...$,...f}},i&&b.createElement("span",{className:"shrink-0"},i),b.createElement("span",{className:"overflow-hidden text-ellipsis"},o),a))});$1.displayName="TabBrowserPreview";const cE=Z("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),fE=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),mE=Z(["flex items-center w-full border","bg-white transition-[border-color,border-width]"],{variants:{size:{xs:"h-7 px-2 gap-1 rounded text-caption-sm",sm:"h-9 px-3 gap-2 rounded-lg",md:"h-11 px-3 gap-2 rounded-lg"},error:{true:["border-error-200","focus-within:border-2 focus-within:border-error-500"],false:["border-light-200","focus-within:border-2 focus-within:border-primary-500"]},disabled:{true:"bg-light-100 text-light-400 cursor-not-allowed",false:""}},defaultVariants:{size:"md",error:!1,disabled:!1}}),hE=Z(["flex-1 bg-transparent outline-none text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"},error:{true:"",false:"text-light-900"}},defaultVariants:{size:"md",error:!1}}),pE=Z("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}}}),bE=Z("flex items-stretch w-full bg-white border overflow-hidden transition-[border-color,border-width]",{variants:{size:{xs:"rounded",sm:"rounded-lg",md:"rounded-lg"},error:{true:["border-error-200","focus-within:border-2 focus-within:border-error-500"],false:["border-light-200","focus-within:border-2 focus-within:border-primary-500"]},disabled:{true:"bg-light-100",false:""}},defaultVariants:{size:"md",error:!1,disabled:!1}}),gE=Z("flex flex-1 items-center min-w-0",{variants:{size:{xs:"gap-1 px-2 py-1",sm:"gap-2 px-3 py-2",md:"gap-2 px-3 py-2"},disabled:{true:"text-light-400 cursor-not-allowed",false:""}},defaultVariants:{size:"md",disabled:!1}}),yE=Z("flex items-center text-light-700 whitespace-nowrap border-r border-light-200",{variants:{size:{xs:"px-2 text-caption-sm",sm:"px-3 text-caption-lg",md:"px-3 text-body-sm"}},defaultVariants:{size:"md"}}),v1=Z(["flex items-center gap-1 shrink-0 bg-transparent p-0 text-light-800 cursor-pointer","hover:bg-transparent hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),$E=Z("flex shrink-0 items-center justify-center gap-1 w-[92px] border-l border-light-200 bg-white font-semibold text-light-800 hover:bg-light-50 disabled:cursor-not-allowed disabled:text-light-400",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),x1=({className:e})=>u.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},u.createElement("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),vE={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},xE=({size:e,error:t,disabled:n})=>ee("flex items-center w-full gap-2 rounded-lg border bg-white px-2 transition-[border-color,border-width]",vE[e],t?"border-error-200 focus-within:border-2 focus-within:border-error-500":"border-light-200 focus-within:border-2 focus-within:border-primary-500",n&&"bg-light-100 text-light-400 cursor-not-allowed"),CE=({error:e})=>ee("flex items-center gap-1 text-caption-sm font-semibold",e?"":"text-light-800"),DE="flex flex-col w-full max-w-[320px]",C1=u.forwardRef(function({label:t,required:n,hint:r,rightIcon:i,size:a="md",error:l=!1,disabled:o=!1,compact:s=!1,hideCalendarIcon:d=!1,type:c,prefix:f,suffix:m,leadingAddon:h,leadingDropdown:p,trailingDropdown:g,trailingButton:y,maxLength:$,value:x,className:v,wrapperClassName:C,...w},S){const B=!!(h||y),E=u.createElement(u.Fragment,null,p&&u.createElement("button",{type:"button",onClick:p.onClick,disabled:p.disabled||o,className:v1({size:a})},u.createElement("span",null,p.value),u.createElement(x1,{className:"size-5 text-light-500"})),f&&u.createElement("div",{className:"flex items-center"},f),u.createElement("input",{...w,ref:S,type:c,disabled:o,maxLength:$,value:x,className:ee(hE({size:a,error:l}),"h-full",d&&"[&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-clear-button]:hidden",c==="date"&&"[&::-webkit-datetime-edit]:p-0 [&::-webkit-datetime-edit-fields-wrapper]:p-0",v)}),(i||m)&&u.createElement("div",{className:"flex h-full items-center gap-2"},i&&u.createElement("div",{className:"flex h-full items-center pb-0.5 text-light-400 hover:text-light-600"},i),m&&u.createElement("div",{className:"flex h-full items-center gap-1 leading-none text-light-700"},m)),g&&u.createElement("button",{type:"button",onClick:g.onClick,disabled:g.disabled||o,className:v1({size:a})},u.createElement("span",null,g.value),u.createElement(x1,{className:"size-5 text-light-500"})));return u.createElement("div",{className:ee(s?DE:cE({size:a}),C)},t&&u.createElement("label",{className:s?CE({error:l}):fE({error:l})},t,n&&u.createElement("span",{className:"text-error-400"},"*")),B?u.createElement("div",{className:bE({size:a,error:l,disabled:o})},h&&u.createElement("div",{className:yE({size:a})},h),u.createElement("div",{className:gE({size:a,disabled:o})},E),y&&u.createElement("button",{type:"button",onClick:y.onClick,disabled:y.disabled||o,className:$E({size:a})},y.icon,u.createElement("span",null,y.label))):u.createElement("div",{className:s?xE({size:a,error:l,disabled:o}):mE({size:a,error:l,disabled:o})},E),$&&typeof x=="string"&&u.createElement("div",{className:"text-right text-xs text-light-400"},x.length,"/",$),r&&u.createElement("p",{className:pE({error:l})},r))});function EE({children:e}){return React.createElement("div",{className:"flex items-center text-light-500"},e)}function wE({children:e}){return React.createElement("div",{className:"flex items-center text-light-500"},e)}const SE=Z("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),PE=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),Tu={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},kE=Z(["flex items-center w-full gap-2 border bg-white","transition-[border-color,border-width]","data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100 data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 px-2 rounded text-caption-sm",sm:"h-9 px-3 rounded-lg",md:"h-11 px-3 rounded-lg"},compact:{true:"rounded-lg px-2",false:""},error:{true:"",false:"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500"}},compoundVariants:[{compact:!0,size:"xs",class:Tu.xs},{compact:!0,size:"sm",class:Tu.sm},{compact:!0,size:"md",class:Tu.md}],defaultVariants:{size:"md",compact:!1,error:!1}}),BE=Z(["flex-1 min-w-0 bg-transparent outline-none text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),D1="flex items-center shrink-0",NE=Z("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),ei=b.forwardRef(function({label:t,required:n,hint:r,size:i="md",error:a=!1,disabled:l=!1,compact:o=!1,leftSlot:s,rightSlot:d,className:c,wrapperClassName:f,...m},h){return b.createElement("div",{className:U(SE({size:i}),f)},t&&b.createElement("label",{className:PE({error:a})},t,n&&b.createElement("span",{className:"text-error-400"},"*")),b.createElement(Lr,{isDisabled:l,isInvalid:a,className:kE({size:i,compact:o,error:a})},s&&b.createElement("div",{className:D1},s),b.createElement(ha,{...m,ref:h,disabled:l,required:n,className:U(BE({size:i}),c)}),d&&b.createElement("div",{className:D1},d)),r&&b.createElement("p",{className:NE({error:a})},r))});ei.displayName="BaseInput";const AE={xs:12,sm:16,md:20,lg:24,xl:32},An=({icon:e,size:t="md",strokeWidth:n=2,label:r,className:i,...a})=>b.createElement(e,{size:AE[t],stroke:n,className:ee("shrink-0",i),"aria-hidden":r?void 0:!0,role:r?"img":void 0,"aria-label":r,...a});An.displayName="Icon";const E1=U("flex max-h-60 w-full flex-col overflow-y-auto py-1 outline-none","[scrollbar-width:thin] [scrollbar-color:theme(colors.light.300)_theme(colors.light.50)]","[&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-light-50","[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-light-300"),w1=U("flex size-4 shrink-0 items-center justify-center text-light-500"),S1=U("ml-auto shrink-0 font-normal text-caption-sm text-light-500"),P1=U("my-1 h-px w-full shrink-0 bg-light-200"),FE=U("flex w-full flex-col items-start border-b border-light-200 px-4 py-3"),Iu=U("group flex h-12 w-full items-center px-2 py-0.5 outline-none","cursor-pointer data-[disabled]:cursor-not-allowed"),TE=Z(["flex h-11 min-w-0 flex-1 items-center gap-2 overflow-hidden rounded-md","py-2.5 pl-1 pr-2.5 text-left font-nunito text-body-sm font-medium","[&_[data-slot=supporting-text]]:font-normal"],{variants:{active:{true:"bg-light-50 text-light-800",false:"text-light-900"},focusVisible:{true:"shadow-focus",false:""},nativeInteraction:{true:"group-hover:bg-light-50 group-active:bg-light-50",false:""},disabled:{true:"text-light-400 [&_[data-slot=supporting-text]]:text-light-400",false:"[&_[data-slot=supporting-text]]:text-light-700"}},defaultVariants:{active:!1,focusVisible:!1,nativeInteraction:!1,disabled:!1}}),IE="flex shrink-0 items-center justify-center",ME="flex min-w-0 flex-1 items-center gap-2 overflow-hidden whitespace-nowrap",KE="ml-auto flex shrink-0 items-center justify-center",k1=e=>e!=null&&e!==!1;function Mu({state:e,leadingSlot:t,hasCustomLeadingSlot:n=!1,children:r,trailingSlot:i,nativeInteraction:a=!1}){const l=n?t:e.selectionMode==="multiple"?b.createElement("span",{"aria-hidden":"true","data-slot":"selection-indicator","data-selected":String(e.isSelected),className:`${G2({size:"sm",checked:e.isSelected,disabled:e.isDisabled})} pointer-events-none shrink-0`},e.isSelected&&b.createElement(yi,{size:12,strokeWidth:2.5})):null;return b.createElement("span",{"data-slot":"collection-item-content",className:U(TE({active:e.isHovered||e.isPressed||e.isSelected||e.isFocusVisible,focusVisible:e.isFocusVisible,nativeInteraction:a&&!e.isDisabled,disabled:e.isDisabled}))},k1(l)&&b.createElement("span",{"data-slot":"leading",className:IE},l),b.createElement("span",{"data-slot":"main",className:ME},r),k1(i)&&b.createElement("span",{"data-slot":"trailing",className:KE},i))}const or=(e,t)=>typeof e=="function"?e(t):e,B1=e=>({isHovered:e.isHovered,isPressed:e.isPressed,isSelected:e.isSelected,isFocused:e.isFocused,isFocusVisible:e.isFocusVisible,isDisabled:e.isDisabled,selectionMode:e.selectionMode,selectionBehavior:e.selectionBehavior});function LE({className:e,style:t,leadingSlot:n,children:r,trailingSlot:i,...a},l){const o=a.textValue??(typeof r=="string"?r:void 0);return b.createElement(Gx,{ref:l,...a,textValue:o,style:t,className:U(Iu,e)},s=>b.createElement(Mu,{state:B1(s),leadingSlot:or(n,s),hasCustomLeadingSlot:n!==void 0,trailingSlot:or(i,s)},or(r,s)))}const N1=b.forwardRef(LE);function OE({className:e,style:t,leadingSlot:n,children:r,trailingSlot:i,...a},l){const o=a.textValue??(typeof r=="string"?r:void 0);return b.createElement(j3,{ref:l,...a,textValue:o,style:t,className:U(Iu,e)},s=>b.createElement(Mu,{state:B1(s),leadingSlot:or(n,s),hasCustomLeadingSlot:n!==void 0,trailingSlot:or(i,s)},or(r,s)))}const A1=b.forwardRef(OE),Ku=b.createContext(null);function zE({className:e,style:t,...n},r){return b.createElement(Ku.Provider,{value:"menu"},b.createElement(R3,{ref:r,...n,style:t,className:U(E1,e)}))}const Lu=b.forwardRef(zE);function VE({className:e,style:t,content:n="none",icon:r,shortcut:i,children:a,...l},o){const s=n==="icon"?r:n==="selection"?d=>b.createElement("span",{className:w1},d.isSelected&&b.createElement(An,{icon:yi,size:"sm","aria-hidden":"true"})):void 0;return b.createElement(A1,{ref:o,...l,style:t,className:e,leadingSlot:s,trailingSlot:i?b.createElement("span",{className:S1},i):void 0},a)}const Ou=b.forwardRef(VE),_E=({className:e})=>b.createElement(Fm,{className:U(P1,e)}),RE=({children:e,className:t})=>b.createElement($x,{className:U(FE,t)},e),jE=Z(["flex items-center gap-1 shrink-0 border-r border-light-200 bg-transparent","text-light-800 cursor-pointer","hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"pr-2 text-caption-sm",sm:"pr-2 text-caption-lg",md:"pr-2 text-body-sm"}},defaultVariants:{size:"md"}}),HE="w-72",UE="border-b border-light-200 p-2";function WE({size:e,disabled:t,countries:n,selected:r,onSelect:i}){const[a,l]=b.useState(""),o=a?n.filter(s=>s.name.toLowerCase().includes(a.toLowerCase())||s.dial_code.includes(a)||s.code.toLowerCase()===a.toLowerCase()):n;return b.createElement(Na,{onOpenChange:s=>{s||l("")}},b.createElement(qt,{isDisabled:t,"aria-label":`Country: ${r.name} (${r.dial_code})`,className:jE({size:e})},b.createElement("span",null,r.code),b.createElement($i,{size:14,"aria-hidden":"true"})),b.createElement(ln,{placement:"bottom start"},b.createElement("div",{className:UE},b.createElement("input",{autoFocus:!0,value:a,onChange:s=>l(s.target.value),placeholder:"Search country...",className:"w-full bg-transparent text-sm text-light-900 outline-none placeholder:text-light-500"})),b.createElement(Lu,{"aria-label":"Country",className:U(HE,"max-h-60 overflow-y-auto"),items:o,onAction:s=>{const d=o.find(c=>c.code===s);d&&i(d)}},s=>b.createElement(Ou,{id:s.code,textValue:`${s.name} ${s.dial_code}`},b.createElement("span",{className:"flex min-w-0 flex-1 items-center gap-2"},b.createElement("span",{className:"min-w-0 flex-1 truncate"},s.name),b.createElement("span",{className:"shrink-0 text-light-500"},s.dial_code))))))}const F1={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1(?:05|[2-9]))","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function zu(e,t){var n=Array.prototype.slice.call(t);return n.push(F1),e.apply(this,n)}function T1(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),l=Number(r[i]);if(a>l)return 1;if(l>a)return-1;if(!isNaN(a)&&isNaN(l))return 1;if(isNaN(a)&&!isNaN(l))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var GE={}.constructor;function Fn(e){return e!=null&&e.constructor===GE}var ZE=/^\d+$/;function YE(e){return ZE.test(e)}function ur(e){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(e)}function Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XE(r.key),r)}}function Ua(e,t,n){return t&&qE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XE(e){var t=JE(e,"string");return ur(t)=="symbol"?t:t+""}function JE(e,t){if(ur(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ur(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var QE="1.2.0",ew="1.7.35",I1=" ext. ",Me=(function(){function e(t){Ha(this,e),L1(t),this.metadata=t,O1.call(this,t)}return Ua(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){var i,a;if(n&&(YE(n)?a=n:i=n),r&&(a=r),i&&i!=="001"){var l=this.getCountryMetadata(i);if(!l)throw new Error("Unknown country: ".concat(i));this.numberingPlan=new M1(l,this)}else if(a){if(!this.hasCallingCode(a))throw new Error("Unknown calling code: ".concat(a));this.numberingPlan=new M1(this.getNumberingPlanMetadata(a),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),M1=(function(){function e(t,n){Ha(this,e),this.globalMetadataObject=n,this.metadata=t,O1.call(this,n.metadata)}return Ua(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return r.map(function(i){return new tw(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&K1(this.types(),n))return new rw(K1(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?I1:this.metadata[13]||I1}}])})(),tw=(function(){function e(t,n){Ha(this,e),this._format=t,this.metadata=n}return Ua(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!nw.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),nw=/^\(?\$1\)?$/,rw=(function(){function e(t,n){Ha(this,e),this.type=t,this.metadata=n}return Ua(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function K1(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function L1(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Fn(e)||!Fn(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Fn(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+iw(e)+": "+e,"."))}var iw=function(t){return ur(t)};function Vu(e,t){var n=new Me(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function aw(e,t){return t.countries.hasOwnProperty(e)}function O1(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?T1(t,QE)===-1?this.v2=!0:T1(t,ew)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function ti(e,t,n){return lw(e,void 0,t,n)}function lw(e,t,n,r){n&&(r=new Me(r.metadata),r.selectNumberingPlan(n));var i=r.type(t),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";var l=e.length,o=a[0];return o===l?"IS_POSSIBLE":o>l?"TOO_SHORT":a[a.length-1]<l?"TOO_LONG":a.indexOf(l,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function ow(e,t,n){t===void 0&&(t={});var r=new Me(n);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return z1(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function z1(e,t){return ti(e,void 0,t)==="IS_POSSIBLE"}function Vt(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function uw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=sw(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sw(e,t){if(e){if(typeof e=="string")return V1(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V1(e,t):void 0}}function V1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var dw=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function _u(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){var r=new Me(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(Vt(i,r.nationalNumberPattern())){if(Ru(i,"FIXED_LINE",r))return r.type("MOBILE")&&r.type("MOBILE").pattern()===""||!r.type("MOBILE")||Ru(i,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=uw(dw),l;!(l=a()).done;){var o=l.value;if(Ru(i,o,r))return o}}}}function Ru(e,t,n){var r=n.type(t);return!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?!1:Vt(e,r.pattern())}function cw(e,t,n){t=t||{};var r=new Me(n);if(r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes())return _u(e,t,r.metadata)!==void 0;var i=t.v2?e.nationalNumber:e.phone;return Vt(i,r.nationalNumberPattern())}var fw=/^[A-Z]{2}$/;function mw(e){return fw.test(e)}function hw(e,t){var n,r,i=new Me(t);return mw(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=e,{country:n,callingCode:r}}function pw(e,t,n){var r=new Me(n),i=r.getCountryCodesForCallingCode(e);return i?i.filter(function(a){return bw(t,a,n)}):[]}function bw(e,t,n){var r=new Me(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var ju=2,gw=17,yw=3,Ue="0-90-9٠-٩۰-۹",$w="-‐-―−ー-",vw="//",xw="..",Cw="  ­​⁠ ",Dw="()()[]\\[\\]",Ew="~⁓∼~",ct="".concat($w).concat(vw).concat(xw).concat(Cw).concat(Dw).concat(Ew),Wa="++",ww=new RegExp("(["+Ue+"])");function _1(e,t,n,r){if(t){var i=new Me(r);i.selectNumberingPlan(t||n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var l=e.match(ww);if(!(l&&l[1]!=null&&l[1].length>0&&l[1]==="0"))return e}}}function Hu(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,a,l=r.length-1,o=l>0&&r[l];if(t.nationalPrefixTransformRule()&&o)i=e.replace(n,t.nationalPrefixTransformRule()),l>1&&(a=r[1]);else{var s=r[0];i=e.slice(s.length),o&&(a=r[1])}var d;if(o){var c=e.indexOf(r[1]),f=e.slice(0,c);f===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:i,nationalPrefix:d,carrierCode:a}}}return{nationalNumber:e}}function Sw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Pw(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pw(e,t){if(e){if(typeof e=="string")return R1(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R1(e,t):void 0}}function R1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j1(e,t,n){for(var r=new Me(n),i=Sw(t),a;!(a=i()).done;){var l=a.value;if(r.selectNumberingPlan(l),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return l}else if(_u({phone:e,country:l},void 0,r.metadata))return l}}function Uu(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:j1(n,i,r.metadata)}function Wu(e,t,n){var r=Hu(e,n),i=r.carrierCode,a=r.nationalNumber;if(a!==e){if(!kw(e,a,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=Uu(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n})),!Bw(a,t,n)))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:i}}function kw(e,t,n){return!(Vt(e,n.nationalNumberPattern())&&!Vt(t,n.nationalNumberPattern()))}function Bw(e,t,n){switch(ti(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function H1(e,t,n,r,i){if(!(t||n||r))return{number:e};var a=t||n?Vu(t||n,i):r;if(e.indexOf(a)===0){var l=new Me(i);l.selectNumberingPlan(t||n||r);var o=e.slice(a.length),s=Wu(o,void 0,l),d=s.nationalNumber,c=Wu(e,void 0,l),f=c.nationalNumber;if(!Vt(f,l.nationalNumberPattern())&&Vt(d,l.nationalNumberPattern())||ti(f,void 0,l)==="TOO_LONG")return{countryCallingCode:a,number:o}}return{number:e}}function Gu(e,t,n,r,i){if(!e)return{};var a;if(e[0]!=="+"){var l=_1(e,t||n,r,i);if(l&&l!==e)a=!0,e="+"+l;else{if(t||n||r){var o=H1(e,t,n,r,i),s=o.countryCallingCode,d=o.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:d}}return{number:e}}}if(e[1]==="0")return{};for(var c=new Me(i),f=2;f-1<=yw&&f<=e.length;){var m=e.slice(1,f);if(c.hasCallingCode(m))return c.selectNumberingPlan(m),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:m,number:e.slice(f)};f++}return{}}function U1(e){return e.replace(new RegExp("[".concat(ct,"]+"),"g")," ").trim()}var W1=/(\$\d)/;function G1(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(W1,t.nationalPrefixFormattingRule()):t.format());return r?U1(a):a}var Nw=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Aw(e,t,n){var r=new Me(n);if(r.selectNumberingPlan(e||t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Nw.test(r.IDDPrefix()))return r.IDDPrefix()}var Fw=";ext=",sr=function(t){return"([".concat(Ue,"]{1,").concat(t,"})")};function Z1(e){var t="20",n="15",r="9",i="6",a="[  \\t,]*",l="[:\\..]?[  \\t,-]*",o="#?",s="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",c="[- ]+",f="[  \\t]*",m="(?:,{2}|;)",h=Fw+sr(t),p=a+s+l+sr(t)+o,g=a+d+l+sr(r)+o,y=c+sr(i)+"#",$=f+m+l+sr(n)+o,x=f+"(?:,)+"+l+sr(r)+o;return h+"|"+p+"|"+g+"|"+y+"|"+$+"|"+x}var Tw="["+Ue+"]{"+ju+"}",Iw="["+Wa+"]{0,1}(?:["+ct+"]*["+Ue+"]){3,}["+ct+Ue+"]*",Mw=new RegExp("^["+Wa+"]{0,1}(?:["+ct+"]*["+Ue+"]){1,2}$","i"),Kw=Iw+"(?:"+Z1()+")?",Lw=new RegExp("^"+Tw+"$|^"+Kw+"$","i");function Ow(e){return e.length>=ju&&Lw.test(e)}function zw(e){return Mw.test(e)}function Vw(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}var Y1={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function _w(e,t,n,r){n?n=Hw({},Y1,n):n=Y1;var i=new Me(r);if(e.country&&e.country!=="001"){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=i.countryCallingCode(),l=n.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return l?(o=Ga(l,e.carrierCode,"NATIONAL",i,n),Zu(o,e.ext,i,n.formatExtension)):"";case"INTERNATIONAL":return l?(o=Ga(l,null,"INTERNATIONAL",i,n),o="+".concat(a," ").concat(o),Zu(o,e.ext,i,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(l);case"RFC3966":return Vw({number:"+".concat(a).concat(l),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=jw(l,e.carrierCode,a,n.fromCountry,i);return s?Zu(s,e.ext,i,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Ga(e,t,n,r,i){var a=Rw(r.formats(),e);return a?G1(e,a,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function Rw(e,t){return Uw(e,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(r)!==0)return!1}return Vt(t,n.pattern())})}function Zu(e,t,n,r){return t?r(e,t,n):e}function jw(e,t,n,r,i){var a=Vu(r,i.metadata);if(a===n){var l=Ga(e,t,"NATIONAL",i);return n==="1"?n+" "+l:l}var o=Aw(r,void 0,i.metadata);if(o)return"".concat(o," ").concat(n," ").concat(Ga(e,null,"INTERNATIONAL",i))}function Hw(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}function Uw(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function q1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function X1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q1(Object(n),!0).forEach(function(r){Ww(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ww(e,t,n){return(t=J1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,J1(r.key),r)}}function Yw(e,t,n){return t&&Zw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function J1(e){var t=qw(e,"string");return ni(t)=="symbol"?t:t+""}function qw(e,t){if(ni(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ni(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Q1=(function(){function e(t,n,r){if(Gw(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Fn(n)&&Fn(n.countries)){r=n;var i=t;if(!Xw.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=Gu(i,void 0,void 0,void 0,r),l=a.countryCallingCode,o=a.number;if(n=o,t=l,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");L1(r);var s=hw(t,r),d=s.country,c=s.callingCode;this.country=d,this.countryCallingCode=c,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Yw(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:pw(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return ow(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return cw(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new Me(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return _u(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return _w(this,n,r?X1(X1({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),Xw=/^\+\d+$/;function Yu(e){"@babel/helpers - typeof";return Yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yu(e)}function Jw(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Qw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eS(e,t,n){return t=ii(t),tS(e,Xu()?Reflect.construct(t,n||[],ii(e).constructor):t.apply(e,n))}function tS(e,t){if(t&&(Yu(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nS(e)}function nS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ri(e,t)}function qu(e){var t=typeof Map=="function"?new Map:void 0;return qu=function(r){if(r===null||!aS(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return iS(r,arguments,ii(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ri(i,r)},qu(e)}function iS(e,t,n){if(Xu())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&ri(i,n.prototype),i}function Xu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xu=function(){return!!e})()}function aS(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ri(e,t){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ri(e,t)}function ii(e){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ii(e)}var _t=(function(e){function t(n){var r;return Qw(this,t),r=eS(this,t,[n]),Object.setPrototypeOf(r,t.prototype),r.name=r.constructor.name,r}return rS(t,e),Jw(t)})(qu(Error)),ey=new RegExp("(?:"+Z1()+")$","i");function lS(e){var t=e.search(ey);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(ey),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}function oS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=uS(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uS(e,t){if(e){if(typeof e=="string")return ty(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ty(e,t):void 0}}function ty(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var sS={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function ny(e){return sS[e]}function Za(e){for(var t="",n=oS(e.split("")),r;!(r=n()).done;){var i=r.value,a=ny(i);a&&(t+=a)}return t}function dS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=cS(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cS(e,t){if(e){if(typeof e=="string")return ry(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ry(e,t):void 0}}function ry(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iy(e){for(var t="",n=dS(e.split("")),r;!(r=n()).done;){var i=r.value;t+=fS(i,t)||""}return t}function fS(e,t,n){return e==="+"?t?void 0:"+":ny(e)}var ay="+",mS="[\\-\\.\\(\\)]?",ly="(["+Ue+"]|"+mS+")",hS="^\\"+ay+ly+"*["+Ue+"]"+ly+"*$",pS=new RegExp(hS,"g"),Ju=Ue,bS="["+Ju+"]+((\\-)*["+Ju+"])*",gS="a-zA-Z",yS="["+gS+"]+((\\-)*["+Ju+"])*",$S="^("+bS+"\\.)*"+yS+"\\.?$",vS=new RegExp($S,"g"),oy="tel:",Qu=";phone-context=",xS=";isub=";function CS(e){var t=e.indexOf(Qu);if(t<0)return null;var n=t+Qu.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function DS(e){return e===null?!0:e.length===0?!1:pS.test(e)||vS.test(e)}function ES(e,t){var n=t.extractFormattedPhoneNumber,r=CS(e);if(!DS(r))throw new _t("NOT_A_NUMBER");var i;if(r===null)i=n(e)||"";else{i="",r.charAt(0)===ay&&(i+=r);var a=e.indexOf(oy),l;a>=0?l=a+oy.length:l=0;var o=e.indexOf(Qu);i+=e.substring(l,o)}var s=i.indexOf(xS);if(s>0&&(i=i.substring(0,s)),i!=="")return i}var wS=250,SS=new RegExp("["+Wa+Ue+"]"),PS=new RegExp("[^"+Ue+"#]+$");function kS(e,t,n){t=t||{};var r=new Me(n);if(t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new _t("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var i=NS(e,t.v2,t.extract),a=i.number,l=i.ext,o=i.error;if(!a){if(t.v2)throw o==="TOO_SHORT"?new _t("TOO_SHORT"):new _t("NOT_A_NUMBER");return{}}var s=FS(a,t.defaultCountry,t.defaultCallingCode,r),d=s.country,c=s.nationalNumber,f=s.countryCallingCode,m=s.countryCallingCodeSource,h=s.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new _t("INVALID_COUNTRY");return{}}if(!c||c.length<ju){if(t.v2)throw new _t("TOO_SHORT");return{}}if(c.length>gw){if(t.v2)throw new _t("TOO_LONG");return{}}if(t.v2){var p=new Q1(f,c,r.metadata);return d&&(p.country=d),h&&(p.carrierCode=h),l&&(p.ext=l),p.__countryCallingCodeSource=m,p}var g=(t.extended?r.hasSelectedNumberingPlan():d)?Vt(c,r.nationalNumberPattern()):!1;return t.extended?{country:d,countryCallingCode:f,carrierCode:h,valid:g,possible:g?!0:!!(t.extended===!0&&r.possibleLengths()&&z1(c,r)),phone:c,ext:l}:g?AS(d,c,l):{}}function BS(e,t,n){if(e){if(e.length>wS){if(n)throw new _t("TOO_LONG");return}if(t===!1)return e;var r=e.search(SS);if(!(r<0))return e.slice(r).replace(PS,"")}}function NS(e,t,n){var r=ES(e,{extractFormattedPhoneNumber:function(l){return BS(l,n,t)}});if(!r)return{};if(!Ow(r))return zw(r)?{error:"TOO_SHORT"}:{};var i=lS(r);return i.ext?i:{number:r}}function AS(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function FS(e,t,n,r){var i=Gu(iy(e),void 0,t,n,r.metadata),a=i.countryCallingCodeSource,l=i.countryCallingCode,o=i.number,s;if(l)r.selectNumberingPlan(l);else if(o&&(t||n))t?(s=t,r.selectNumberingPlan(t),l=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),l=n);else return{};if(!o)return{countryCallingCodeSource:a,countryCallingCode:l};var d=Wu(iy(o),void 0,r),c=d.nationalNumber,f=d.carrierCode,m=Uu(l,{nationalNumber:c,metadata:r});return m&&(s=m,m==="001"||r.selectNumberingPlan(s)),{country:s,countryCallingCode:l,countryCallingCodeSource:a,nationalNumber:c,carrierCode:f}}function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uy(Object(n),!0).forEach(function(r){TS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TS(e,t,n){return(t=IS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IS(e){var t=MS(e,"string");return ai(t)=="symbol"?t:t+""}function MS(e,t){if(ai(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ai(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KS(e,t,n){return kS(e,sy(sy({},t),{},{v2:!0}),n)}function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function dy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dy(Object(n),!0).forEach(function(r){OS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OS(e,t,n){return(t=zS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zS(e){var t=VS(e,"string");return li(t)=="symbol"?t:t+""}function VS(e,t){if(li(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(li(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _S(e,t){return US(e)||HS(e,t)||jS(e,t)||RS()}function RS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jS(e,t){if(e){if(typeof e=="string")return cy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cy(e,t):void 0}}function cy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function HS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,o=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(c){d=!0,i=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function US(e){if(Array.isArray(e))return e}function WS(e){var t=Array.prototype.slice.call(e),n=_S(t,4),r=n[0],i=n[1],a=n[2],l=n[3],o,s,d;if(typeof r=="string")o=r;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")l?(s=a,d=l):(s=void 0,d=a),i&&(s=LS({defaultCountry:i},s));else if(Fn(i))a?(s=i,d=a):d=i;else throw new Error("Invalid second argument: ".concat(i));return{text:o,options:s,metadata:d}}function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function fy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function my(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fy(Object(n),!0).forEach(function(r){GS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GS(e,t,n){return(t=ZS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZS(e){var t=YS(e,"string");return oi(t)=="symbol"?t:t+""}function YS(e,t){if(oi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qS(e,t,n){t&&t.defaultCountry&&!aw(t.defaultCountry,n)&&(t=my(my({},t),{},{defaultCountry:void 0}));try{return KS(e,t,n)}catch(r){if(!(r instanceof _t))throw r}}function XS(){var e=WS(arguments),t=e.text,n=e.options,r=e.metadata;return qS(t,n,r)}function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function JS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tP(r.key),r)}}function eP(e,t,n){return t&&QS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tP(e){var t=nP(e,"string");return ui(t)=="symbol"?t:t+""}function nP(e,t){if(ui(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ui(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rP=(function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;JS(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}return eP(e,[{key:"reset",value:function(n){var r=n.country,i=n.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(r,i)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberIsModified=!1,this.nationalPrefix=void 0,this.carrierCode=void 0,this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix=void 0}},{key:"update",value:function(n){for(var r=0,i=Object.keys(n);r<i.length;r++){var a=i[r];this[a]=n[a]}}},{key:"initCountryAndCallingCode",value:function(n,r){this.setCountry(n),this.setCallingCode(r)}},{key:"setCountry",value:function(n){this.country=n,this.onCountryChange(n)}},{key:"setCallingCode",value:function(n){this.callingCode=n,this.onCallingCodeChange(n,this.country)}},{key:"startInternationalNumber",value:function(n,r){this.international=!0,this.initCountryAndCallingCode(n,r)}},{key:"appendDigits",value:function(n){this.digits+=n}},{key:"appendNationalSignificantNumberDigits",value:function(n){this.nationalSignificantNumber+=n}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])})();function iP(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=aP(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aP(e,t){if(e){if(typeof e=="string")return hy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hy(e,t):void 0}}function hy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ft="x",es=new RegExp(ft);function Ya(e,t){if(t<1)return"";for(var n="";t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function py(e,t){return e[t]===")"&&t++,lP(e.slice(0,t))}function lP(e){for(var t=[],n=0;n<e.length;)e[n]==="("?t.push(n):e[n]===")"&&t.pop(),n++;var r=0,i="";t.push(e.length);for(var a=0,l=t;a<l.length;a++){var o=l[a];i+=e.slice(r,o),r=o+1}return i}function oP(e,t,n){for(var r=iP(n.split("")),i;!(i=r()).done;){var a=i.value;if(e.slice(t+1).search(es)<0)return;t=e.search(es),e=e.replace(es,a)}return[e,t]}function uP(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,l=new RegExp("^(?:".concat(t.pattern(),")$"));if(l.test(e.nationalSignificantNumber))return dP(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:a})}function sP(e,t){return ti(e,void 0,t)==="IS_POSSIBLE"}function dP(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var l=by(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:r});if(l)return l}return by(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:r})}function by(e,t,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,l=G1(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:r});if(i||(e.nationalPrefix?l=e.nationalPrefix+a(t)+l:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(l=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+l)),cP(l,e))return l}function cP(e,t){return Za(e)===t.getNationalDigits()}function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function fP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pP(r.key),r)}}function hP(e,t,n){return t&&mP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pP(e){var t=bP(e,"string");return si(t)=="symbol"?t:t+""}function bP(e,t){if(si(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(si(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gP=(function(){function e(){fP(this,e)}return hP(e,[{key:"parse",value:function(n){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(n),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var r=this.context[0],i=r.branches,a=r.instructions;if(i)return{op:"|",args:i.concat([ts(a)])};if(a.length===0)throw new Error("Pattern is required");return a.length===1?a[0]:a}},{key:"startContext",value:function(n){this.context.push(n)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(n){if(!n)throw new Error("Pattern is required");var r=n.match(vP);if(!r){if($P.test(n))throw new Error("Illegal characters found in a pattern: ".concat(n));this.getContext().instructions=this.getContext().instructions.concat(n.split(""));return}var i=r[1],a=n.slice(0,r.index),l=n.slice(r.index+i.length);switch(i){case"(?:":a&&this.parsePattern(a),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(a&&this.parsePattern(a),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var o=this.getContext(),s=o.branches;s.push(ts(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:s});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(a&&this.parsePattern(a),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(ts(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":a&&this.parsePattern(a),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:yP(a)});break;default:throw new Error("Unknown operator: ".concat(i))}l&&this.parsePattern(l)}}])})();function yP(e){for(var t=[],n=0;n<e.length;){if(e[n]==="-"){if(n===0||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,i=e[n+1].charCodeAt(0)-1,a=r;a<=i;)t.push(String.fromCharCode(a)),a++}else t.push(e[n]);n++}return t}var $P=/[\(\)\[\]\?\:\|]/,vP=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function ts(e){return e.length===1?e[0]:e}function gy(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=xP(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xP(e,t){if(e){if(typeof e=="string")return yy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yy(e,t):void 0}}function yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function CP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wP(r.key),r)}}function EP(e,t,n){return t&&DP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wP(e){var t=SP(e,"string");return di(t)=="symbol"?t:t+""}function SP(e,t){if(di(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(di(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var PP=(function(){function e(t){CP(this,e),this.matchTree=new gP().parse(t)}return EP(e,[{key:"match",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.allowOverflow;if(!n)throw new Error("String is required");var a=ns(n.split(""),this.matchTree,!0);if(a&&a.match&&delete a.matchedChars,!(a&&a.overflow&&!i))return a}}])})();function ns(e,t,n){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var i=e.slice(),a=0;a<t.length;){var l=t[a],o=ns(i,l,n&&a===t.length-1);if(o){if(o.overflow)return o;if(o.match){if(i=i.slice(o.matchedChars.length),i.length===0)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(o.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
20
- `.concat(JSON.stringify(o,null,2)))}}else return;a++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case"|":for(var s,d=gy(t.args),c;!(c=d()).done;){var f=c.value,m=ns(e,f,n);if(m){if(m.overflow)return m;if(m.match)return{match:!0,matchedChars:m.matchedChars};if(m.partialMatch)s=!0;else throw new Error(`Unsupported match result:
21
- `.concat(JSON.stringify(m,null,2)))}}return s?{partialMatch:!0}:void 0;case"[]":for(var h=gy(t.args),p;!(p=h()).done;){var g=p.value;if(e[0]===g)return e.length===1?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[g]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function $y(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=kP(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kP(e,t){if(e){if(typeof e=="string")return vy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vy(e,t):void 0}}function vy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function BP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FP(r.key),r)}}function AP(e,t,n){return t&&NP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FP(e){var t=TP(e,"string");return ci(t)=="symbol"?t:t+""}function TP(e,t){if(ci(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ci(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rs="9",IP=15,MP=Ya(rs,IP),KP=/[- ]/,LP=function(){return/\[([^\[\]])*\]/g},OP=function(){return/\d(?=[^,}][^,}])/g},zP=new RegExp("["+ct+"]*\\$1["+ct+"]*(\\$\\d["+ct+"]*)*$"),xy=3,VP=(function(){function e(t){t.state;var n=t.metadata;BP(this,e),this.metadata=n,this.resetFormat()}return AP(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(n,r){this.resetFormat(),n?(this.isNANP=n.callingCode()==="1",this.matchingFormats=n.formats(),r.nationalSignificantNumber&&this.narrowDownMatchingFormats(r)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(n,r){var i=this;if(sP(r.nationalSignificantNumber,this.metadata))for(var a=$y(this.matchingFormats),l;!(l=a()).done;){var o=l.value,s=uP(r,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(c){return i.shouldTryNationalPrefixFormattingRule(c,{international:r.international,nationalPrefix:r.nationalPrefix})},getSeparatorAfterNationalPrefix:function(c){return i.getSeparatorAfterNationalPrefix(c)}});if(s)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(s.replace(/\d/g,ft),r),this.populatedNationalNumberTemplate=s,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(ft),s}return this.formatNationalNumberWithNextDigits(n,r)}},{key:"formatNationalNumberWithNextDigits",value:function(n,r){var i=this.chosenFormat,a=this.chooseFormat(r);if(a)return a===i?this.formatNextNationalNumberDigits(n):this.formatNextNationalNumberDigits(r.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(n){var r=this,i=n.nationalSignificantNumber,a=n.nationalPrefix,l=n.international,o=i,s=o.length-xy;s<0&&(s=0),this.matchingFormats=this.matchingFormats.filter(function(d){return r.formatSuits(d,l,a)&&r.formatMatches(d,o,s)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(n,r,i){return!(i&&!n.usesNationalPrefix()&&!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r&&!i&&n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(n,r,i){var a=n.leadingDigitsPatterns().length;if(a===0)return!0;i=Math.min(i,a-1);var l=n.leadingDigitsPatterns()[i];if(r.length<xy)try{return new PP(l).match(r,{allowOverflow:!0})!==void 0}catch(o){return console.error(o),!0}return new RegExp("^(".concat(l,")")).test(r)}},{key:"getFormatFormat",value:function(n,r){return r?n.internationalFormat():n.format()}},{key:"chooseFormat",value:function(n){for(var r=this,i=function(){var d=o.value;return r.chosenFormat===d?0:zP.test(r.getFormatFormat(d,n.international))?r.createTemplateForFormat(d,n)?(r.chosenFormat=d,0):(r.matchingFormats=r.matchingFormats.filter(function(c){return c!==d}),1):1},a,l=$y(this.matchingFormats.slice()),o;!(o=l()).done&&(a=i(),a!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(n,r){if(!(n.pattern().indexOf("|")>=0)){var i=this.getTemplateForFormat(n,r);if(i)return this.setNationalNumberTemplate(i,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&KP.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var i=n.IDDPrefix,a=n.missingPlus;return i?r&&r.spacing===!1?i:i+" ":a?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,i=0,a=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";i<a.length+n.getDigitsWithoutInternationalPrefix().length;)r=this.template.indexOf(ft,r+1),i++;return py(this.template,r+1)}}},{key:"setNationalNumberTemplate",value:function(n,r){this.nationalNumberTemplate=n,this.populatedNationalNumberTemplate=n,this.populatedNationalNumberTemplatePosition=-1,r.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g,ft)+Ya(ft,r.callingCode.length)+" "+n:this.template=n}},{key:"getTemplateForFormat",value:function(n,r){var i=r.nationalSignificantNumber,a=r.international,l=r.nationalPrefix,o=r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,s=n.pattern();s=s.replace(LP(),"\\d").replace(OP(),"\\d");var d=MP.match(s)[0];if(!(i.length>d.length)){var c=new RegExp("^"+s+"$"),f=i.replace(/\d/g,rs);c.test(f)&&(d=f);var m=this.getFormatFormat(n,a),h;if(this.shouldTryNationalPrefixFormattingRule(n,{international:a,nationalPrefix:l})){var p=m.replace(W1,n.nationalPrefixFormattingRule());if(Za(n.nationalPrefixFormattingRule())===(l||"")+Za("$1")&&(m=p,h=!0,l))for(var g=l.length;g>0;)m=m.replace(/\d/,ft),g--}var y=d.replace(new RegExp(s),m).replace(new RegExp(rs,"g"),ft);return h||(o?y=Ya(ft,o.length)+" "+y:l&&(y=Ya(ft,l.length)+this.getSeparatorAfterNationalPrefix(n)+y)),a&&(y=U1(y)),y}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=oP(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],py(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var i=r.international,a=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var l=n.usesNationalPrefix();if(l&&a||!l&&!i)return!0}}}])})();function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function Cy(e,t){return HP(e)||jP(e,t)||RP(e,t)||_P()}function _P(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RP(e,t){if(e){if(typeof e=="string")return Dy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dy(e,t):void 0}}function Dy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,o=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(c){d=!0,i=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function HP(e){if(Array.isArray(e))return e}function UP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZP(r.key),r)}}function GP(e,t,n){return t&&WP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZP(e){var t=YP(e,"string");return fi(t)=="symbol"?t:t+""}function YP(e,t){if(fi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qP="["+ct+Ue+"]+",XP=new RegExp("^"+qP+"$","i"),JP="(?:["+Wa+"]["+ct+Ue+"]*|["+ct+Ue+"]+)",QP=new RegExp("[^"+ct+Ue+"]+.*$"),ek=/[^\d\[\]]/,tk=(function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,i=t.metadata,a=t.onNationalSignificantNumberChange;UP(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=a}return GP(e,[{key:"input",value:function(n,r){var i=ik(n),a=Cy(i,2),l=a[0],o=a[1],s=Za(l),d;return o&&(r.digits||(r.startInternationalNumber(void 0,void 0),s||(d=!0))),s&&this.inputDigits(s,r),{digits:s,justLeadingPlus:d}}},{key:"inputDigits",value:function(n,r){var i=r.digits,a=i.length<3&&i.length+n.length>=3;if(r.appendDigits(n),a&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(l){return r.update(l)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,i=n.callingCode;return r&&!i}},{key:"extractCountryCallingCode",value:function(n){var r=Gu("+"+n.getDigitsWithoutInternationalPrefix(),n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode,a=r.number;if(i)return n.setCallingCode(i),n.update({nationalSignificantNumber:a}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&ek.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=Hu(n,this.metadata),a=i.nationalPrefix,l=i.nationalNumber,o=i.carrierCode;if(l!==n)return this.onExtractedNationalNumber(a,o,l,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=Hu(n,this.metadata),l=a.nationalPrefix,o=a.nationalNumber,s=a.carrierCode;if(o!==r)return this.onExtractedNationalNumber(l,s,o,n,i),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,i,a,l){var o=!1,s,d=a.lastIndexOf(i);if(d<0||d!==a.length-i.length)o=!0;else{var c=a.slice(0,d);c&&c!==n&&(s=c)}l({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:i,nationalSignificantNumberIsModified:o,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:s}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,i=n.IDDPrefix,a=n.digits;if(n.nationalSignificantNumber,!(r||i)){var l=_1(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(l!==void 0&&l!==a)return n.update({IDDPrefix:a.slice(0,a.length-l.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=H1(n.digits,n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode;if(i)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(n,r){var i=r.country,a=r.callingCode;n.startInternationalNumber(i,a),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}])})();function nk(e){var t=e.search(JP);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(QP,""),n&&(e="+"+e),e}}function rk(e){var t=nk(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function ik(e){var t=rk(e),n=Cy(t,2),r=n[0],i=n[1];return XP.test(r)||(r=""),[r,i]}function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}function ak(e,t){return sk(e)||uk(e,t)||ok(e,t)||lk()}function lk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ok(e,t){if(e){if(typeof e=="string")return Ey(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ey(e,t):void 0}}function Ey(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,o=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(c){d=!0,i=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function sk(e){if(Array.isArray(e))return e}function dk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ck(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mk(r.key),r)}}function fk(e,t,n){return t&&ck(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mk(e){var t=hk(e,"string");return mi(t)=="symbol"?t:t+""}function hk(e,t){if(mi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wy=(function(){function e(t,n){dk(this,e),this.metadata=new Me(n);var r=this.getCountryAndCallingCode(t),i=ak(r,2),a=i[0],l=i[1];this.defaultCountry=a,this.defaultCallingCode=l,this.reset()}return fk(e,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(Fn(n)?(r=n.defaultCountry,i=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,i]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),i=r.digits,a=r.justLeadingPlus;if(a)this.formattedOutput="+";else if(i){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var l;if(this.metadata.hasSelectedNumberingPlan()&&(l=this.formatter.format(i,this.state)),l===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var o=this.state.getNationalDigits();o&&(l=this.formatter.format(o,this.state))}this.formattedOutput=l?this.getFullNumber(l):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new rP({onCountryChange:function(i){n.country=i},onCallingCodeChange:function(i,a){n.metadata.selectNumberingPlan(a||i),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new VP({state:this.state,metadata:this.metadata}),this.parser=new tk({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var i=function(o){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!o})+o},a=this.state.callingCode;return i(a?n?"".concat(a," ").concat(n):a:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,a=n.nationalPrefix,l=r,o=i||a;return o&&(l=o+l),l}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(n?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,ft)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){var n=Uu(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata});n!==this.state.country&&(this.state.setCountry(n),n&&this.metadata.selectNumberingPlan(n))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,a=n.country,l=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+l:"+"+r;if(a||i){var o=a?this.metadata.countryCallingCode():i;return"+"+o+l}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,a=n.callingCode;if(r){var l=this._getCountry();if(!(!l&&!a)){if(l&&l===this.defaultCountry){var o=this.metadata.numberingPlan.callingCode(),s=pk(o,r,this.metadata);s&&(l=s)}var d=new Q1(l||a,r,this.metadata.metadata);return i&&(d.carrierCode=i),d}}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"validateLength",value:function(){var n=this.state,r=n.digits,i=n.nationalSignificantNumber;if(!r)return"NOT_A_NUMBER";if(!this.metadata.numberingPlan)return"INVALID_COUNTRY";if(!i)return"TOO_SHORT";var a=ti(i,void 0,this.metadata);if(a!=="IS_POSSIBLE")return a}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])})();function pk(e,t,n){var r=n.getCountryCodesForCallingCode(e);if(r.length>1)return j1(t,r,n.metadata)}function bk(e){return new Me(e).getCountries()}function Sy(){return zu(XS,arguments)}function qa(e){return wy.call(this,e,F1)}qa.prototype=Object.create(wy.prototype,{}),qa.prototype.constructor=qa;function gk(){return zu(bk,arguments)}function yk(){return zu(Vu,arguments)}function $k(e){return e.toUpperCase().replace(/./g,t=>String.fromCodePoint(127397+t.charCodeAt(0)))}let Xa=null;function Py(){if(Xa)return Xa;const e=typeof Intl<"u"&&"DisplayNames"in Intl?new Intl.DisplayNames(["en"],{type:"region"}):null;return Xa=gk().map(t=>({code:t,dial_code:`+${yk(t)}`,name:e?.of(t)??t,flag:$k(t)})).sort((t,n)=>t.name.localeCompare(n.name)),Xa}function ky(e,t,n){let r=e.replace(/\D/g,"");const i=n.replace(/\D/g,"");r.startsWith(i)&&(r=r.slice(i.length)),r=r.replace(/^0+/,"");const a=15-i.length;if(r=r.slice(0,a),!r)return n;const o=new qa(t).input(r);return`${n} ${o}`}function By(e,t){return e?Sy(e,t)?.isValid()??!1:!1}function Ny(e,t){const n=Sy(e,t);return n?.isValid()?n.number:void 0}function vk({size:e="md",label:t,required:n,hint:r,error:i,disabled:a=!1,placeholder:l,value:o="",defaultCountry:s="ID",countries:d,onChange:c,className:f,wrapperClassName:m}){const h=d??Py(),[p,g]=b.useState(()=>h.find(C=>C.code===s)??h[0]),y=C=>{const w=By(C,p.code),S=w?Ny(C,p.code):void 0;c?.(C,w,S)},$=C=>{const w=ky(C.target.value,p.code,p.dial_code);y(w)},x=()=>{o||c?.(p.dial_code,!1,void 0)},v=C=>{const w=ky(o,C.code,C.dial_code);g(C);const S=By(w,C.code),B=S?Ny(w,C.code):void 0;c?.(w,S,B)};return b.createElement(ei,{size:e,label:t,required:n,hint:r,error:i,disabled:a,placeholder:l??"Enter phone number",inputMode:"numeric",value:o,onChange:$,onFocus:x,className:f,wrapperClassName:m,leftSlot:b.createElement(WE,{size:e,disabled:a,countries:h,selected:p,onSelect:v})})}const xk=Z(["flex items-center gap-1 shrink-0 border-l border-light-200 bg-transparent","text-light-800 cursor-pointer","hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"pl-2 text-caption-sm",sm:"pl-2 text-caption-lg",md:"pl-2 text-body-sm"}},defaultVariants:{size:"md"}}),Ck="w-64",Dk="select-none text-light-700";function Ek({size:e,disabled:t,currencies:n,selected:r,onSelect:i}){return b.createElement(Na,null,b.createElement(qt,{isDisabled:t,"aria-label":`Currency: ${r.label} (${r.code})`,className:xk({size:e})},b.createElement("span",null,r.code),b.createElement($i,{size:14,"aria-hidden":"true"})),b.createElement(ln,{placement:"bottom end"},b.createElement(Lu,{"aria-label":"Currency",className:U(Ck,"max-h-60 overflow-y-auto"),items:n,onAction:a=>{const l=n.find(o=>o.code===a);l&&i(l)}},a=>b.createElement(Ou,{id:a.code,textValue:`${a.label} ${a.code}`},b.createElement("span",{className:"flex min-w-0 flex-1 items-center gap-2"},b.createElement("span",{className:"min-w-0 flex-1 truncate"},a.label),b.createElement("span",{className:"shrink-0 text-light-500"},a.code))))))}function is(e){const t=new Intl.NumberFormat(e).formatToParts(123456789e-2),n=t.find(i=>i.type==="group")?.value??",",r=t.find(i=>i.type==="decimal")?.value??".";return{group:n,decimal:r}}function Ay(e,t){return e?e.replace(/\B(?=(\d{3})+(?!\d))/g,t):""}function wk(e,t){const{group:n,decimal:r}=is(t);let i=e.split("").filter(d=>/\d/.test(d)||d===r).join("");const a=i.indexOf(r);if(a!==-1){const d=i.slice(0,a).split(r).join(""),c=i.slice(a+1).split(r).join("").slice(0,2);i=`${d}${r}${c}`}const[l,o]=i.split(r),s=Ay(l??"",n);return o!==void 0?`${s}${r}${o}`:s}function Sk(e,t){const{group:n,decimal:r}=is(t),i=e.split(n).join("").split(r).join("."),a=Number.parseFloat(i);return Number.isNaN(a)?0:a}function as(e,t){if(e===void 0||Number.isNaN(e))return"";const{group:n,decimal:r}=is(t),[i,a]=e.toString().split("."),l=Ay(i??"0",n);return a?`${l}${r}${a}`:l}function Pk({size:e="md",label:t,required:n,hint:r,error:i,disabled:a=!1,placeholder:l,value:o,currency:s,currencies:d,onCurrencyChange:c,onChange:f,className:m,wrapperClassName:h}){const p=d.find(C=>C.code===s)??d[0],[g,y]=b.useState(()=>as(o,p?.locale)),$=b.useRef(!1);b.useEffect(()=>{if($.current){$.current=!1;return}y(as(o,p?.locale))},[o,p?.locale]);const x=C=>{$.current=!0;const w=wk(C.target.value,p?.locale);y(w),f?.(Sk(w,p?.locale))},v=C=>{c?.(C.code),$.current=!0,y(as(o,C.locale))};return b.createElement(ei,{size:e,label:t,required:n,hint:r,error:i,disabled:a,placeholder:l??"0.00",inputMode:"decimal",value:g,onChange:x,className:m,wrapperClassName:h,leftSlot:p?b.createElement("span",{className:Dk},p.symbol):void 0,rightSlot:p?b.createElement(Ek,{size:e,disabled:a,currencies:d,selected:p,onSelect:v}):void 0})}function kk({size:e="md",label:t,required:n,hint:r,disabled:i,error:a,className:l,wrapperClassName:o,value:s,maxLength:d,placeholder:c,onChange:f}){const m=s.length>d,h=a||m;return u.createElement(C1,{size:e,label:t,required:n,disabled:i,error:h,value:s,placeholder:c,onChange:f,className:l,wrapperClassName:o,hint:r,suffix:u.createElement("span",{className:ee("text-caption-lg",m?"text-error-600":"text-light-400")},s.length,"/",d)})}const Fy=[{brand:"visa",pattern:/^4/,length:[13,16,19]},{brand:"mastercard",pattern:/^(5[1-5]|2[2-7])/,length:[16]},{brand:"amex",pattern:/^3[47]/,length:[15]},{brand:"discover",pattern:/^6(?:011|5)/,length:[16]},{brand:"jcb",pattern:/^35/,length:[16]},{brand:"diners",pattern:/^3(?:0[0-5]|[68])/,length:[14]},{brand:"unionpay",pattern:/^62/,length:[16,19]}];function Bk(e){return Fy.find(({pattern:n})=>n.test(e))?.brand??null}function Nk(e){if(!e)return!1;let t=0,n=!1;for(let r=e.length-1;r>=0;r--){let i=Number.parseInt(e[r]??"0",10);n&&(i*=2,i>9&&(i-=9)),t+=i,n=!n}return t%10===0}function Ak(e,t){if(!t||!e)return!1;const n=Fy.find(r=>r.brand===t);return!n||!n.length.includes(e.length)?!1:Nk(e)}function Fk(e,t){return t==="amex"?[e.slice(0,4),e.slice(4,10),e.slice(10,15)].filter(Boolean).join(" "):e.replace(/(.{4})/g,"$1 ").trim()}const Tk=19;function Ik(e){const t=e.replace(/\D/g,"").slice(0,Tk),n=Bk(t),r=Fk(t,n),i=Ak(t,n);return{formatted:r,brand:n,isValid:i}}function Mk({size:e="md",label:t="Card number",required:n,hint:r,error:i,disabled:a=!1,placeholder:l="Card number",value:o="",leftSlot:s,onChange:d,className:c,wrapperClassName:f}){const m=h=>{const{formatted:p,brand:g,isValid:y}=Ik(h.target.value);d?.(p,g,y)};return b.createElement(ei,{size:e,label:t,required:n,hint:r,error:i,disabled:a,placeholder:l,value:o,onChange:m,inputMode:"numeric",autoComplete:"cc-number",className:c,wrapperClassName:f,leftSlot:s})}const ls=C1;ls.Prefix=EE,ls.Suffix=wE;const Kk="flex flex-col gap-1 w-full",Lk=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),Ok=Z(["flex w-full items-start gap-2 border rounded-lg p-3 bg-white","transition-[border-color,border-width]","data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100"],{variants:{error:{true:"",false:"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500"}},defaultVariants:{error:!1}}),zk=Z(["flex-1 min-h-[132px] bg-transparent outline-none text-caption-lg text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed disabled:resize-none"],{variants:{resizable:{true:"resize-y",false:"resize-none"}},defaultVariants:{resizable:!0}}),Vk=Z("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),_k=({error:e})=>ee("flex w-full items-start gap-2 rounded-lg border bg-white p-2 transition-[border-color,border-width]",e?"data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500":"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500","data-[disabled]:bg-light-100 data-[disabled]:cursor-not-allowed"),Rk=({error:e})=>ee("flex items-center gap-1 text-caption-sm font-semibold",e?"":"text-light-800"),jk=e=>ee("flex-1 min-h-[64px] bg-transparent outline-none text-sm text-light-900","placeholder:text-light-500",e?"resize-y":"resize-none"),Hk="flex flex-col w-full max-w-[320px]",Ty=b.forwardRef(({label:e,required:t,hint:n,helpIcon:r,error:i=!1,disabled:a=!1,resizable:l=!0,compact:o=!1,rows:s,style:d,className:c,wrapperClassName:f,...m},h)=>{const p=s?{minHeight:`${s*20}px`}:void 0;return b.createElement("div",{className:ee(o?Hk:Kk,f)},e&&b.createElement("label",{className:o?Rk({error:i}):Lk({error:i})},e,t&&b.createElement("span",{className:"text-error-400"},"*"),r),b.createElement(Lr,{isDisabled:a,isInvalid:i,className:o?_k({error:i}):Ok({error:i})},b.createElement(fC,{ref:h,disabled:a,rows:s,style:{...p,...d},className:ee(o?jk(l&&!a):zk({resizable:l&&!a}),c),...m})),n&&b.createElement("p",{className:Vk({error:i})},n))});Ty.displayName="Textarea";const Uk=Z("flex w-[320px] flex-col gap-1"),Wk=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}}}),Gk=Z("flex items-stretch rounded-lg border bg-white transition-colors",{variants:{error:{true:"",false:"border-light-200"},disabled:{true:"bg-light-100",false:""}}}),Zk=Z("flex items-center px-3 text-sm text-light-500 rounded-l-lg select-none",{variants:{size:{sm:"h-9",md:"h-11"},disabled:{true:"bg-light-100",false:"bg-white"}}}),Yk="w-px bg-light-200",qk=Z(["flex flex-1 items-center gap-2 px-3 rounded-r-lg","transition-shadow","focus-within:ring-2 focus-within:ring-offset-0"],{variants:{size:{sm:"h-9",md:"h-11"},error:{true:"border border-error-200 focus-within:ring-error-500",false:"focus-within:ring-primary-500"},disabled:{true:"cursor-not-allowed",false:""}}}),Xk=Z("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),Jk=Z("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function Qk({size:e="md",label:t,required:n,hint:r,error:i=!1,disabled:a=!1,placeholder:l="www.cekat.ai",value:o,rightIcon:s,onChange:d,className:c,wrapperClassName:f}){return u.createElement("div",{className:ee(Uk(),f)},t&&u.createElement("label",{className:Wk({error:i})},t,n&&u.createElement("span",{className:"text-error-400"},"*")),u.createElement("div",{className:Gk({error:i,disabled:a})},u.createElement("div",{className:Zk({size:e})},"http://"),u.createElement("div",{className:Yk}),u.createElement("div",{className:qk({size:e,error:i,disabled:a})},u.createElement("input",{value:o,onChange:d,placeholder:l,disabled:a,className:ee(Xk({disabled:a}),c)}),s&&u.createElement("div",{className:"flex items-center text-light-400"},s))),r&&u.createElement("p",{className:Jk({error:i})},r))}const eB=Z("flex w-[320px] flex-col gap-1"),tB=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"text-error-600",false:"text-light-800"}}}),nB=Z("flex items-stretch rounded-lg border border-light-200 bg-white transition-colors",{variants:{disabled:{true:"bg-light-100",false:""}}}),rB=Z(["flex flex-1 items-center gap-2 px-3 rounded-l-lg","transition-shadow","focus-within:ring-2 focus-within:ring-offset-0"],{variants:{size:{sm:"h-9",md:"h-11"},error:{true:"border border-error-200 focus-within:ring-error-500",false:"focus-within:ring-primary-500"},disabled:{true:"cursor-not-allowed",false:""}}}),iB=Z("w-px transition-colors",{variants:{error:{true:"focus:bg-error-200 group-focus-within:bg-error-500",false:"focus:bg-light-200 group-focus-within:bg-primary-500"}}}),aB=Z("flex items-center gap-1 px-3 text-sm text-light-700 rounded-r-lg select-none",{variants:{size:{sm:"h-9",md:"h-11"},disabled:{true:"bg-white",false:"bg-white"}}}),lB=Z("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),oB=Z("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function uB({size:e="md",label:t,required:n,hint:r,error:i=!1,disabled:a=!1,placeholder:l="www.cekat.ai",value:o,rightIcon:s,suffix:d,onChange:c,className:f,wrapperClassName:m}){return u.createElement("div",{className:ee(eB(),m)},t&&u.createElement("label",{className:tB({error:i})},t,n&&u.createElement("span",{className:"text-error-400"},"*")),u.createElement("div",{className:nB({disabled:a})},u.createElement("div",{className:rB({size:e,error:i,disabled:a})},u.createElement("input",{value:o,onChange:c,placeholder:l,disabled:a,className:ee(lB({disabled:a}),f)}),s&&u.createElement("div",{className:"text-light-400"},s)),u.createElement("div",{className:iB({error:i})}),u.createElement("div",{className:aB({size:e,disabled:a})},d)),r&&u.createElement("p",{className:oB({error:i})},r))}const sB=Z("flex w-full flex-col gap-1"),dB=Z("flex items-center gap-1 text-sm font-bold text-light-800"),Iy=Z(["flex w-full items-center border bg-white text-left","transition-[border-color,border-width]"],{variants:{size:{xs:"h-7 gap-1 rounded px-2 text-caption-sm",sm:"h-9 gap-2 rounded-lg px-3 text-caption-lg",md:"h-11 gap-2 rounded-lg px-3 text-body-sm"},open:{true:"border-2 border-primary-500",false:"border-light-200 focus-within:border-2 focus-within:border-primary-500"},disabled:{true:"cursor-not-allowed bg-light-100",false:"cursor-pointer"}},defaultVariants:{size:"md",open:!1,disabled:!1}}),cB=Z(["absolute left-0 top-full z-10 mt-2 w-full overflow-y-auto","rounded-lg border border-light-200 bg-white py-1","shadow-[0_12px_16px_-4px_rgba(16,24,40,0.08),0_4px_6px_-2px_rgba(16,24,40,0.03)]"],{variants:{size:{xs:"max-h-52",sm:"max-h-64",md:"max-h-80"}},defaultVariants:{size:"md"}}),fB=Z("text-caption-lg text-light-700"),mB=({className:e})=>b.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},b.createElement("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),hB=({className:e})=>b.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},b.createElement("path",{d:"M17.5 17.5L14.1 14.1M16 9.25C16 12.98 12.98 16 9.25 16C5.52 16 2.5 12.98 2.5 9.25C2.5 5.52 5.52 2.5 9.25 2.5C12.98 2.5 16 5.52 16 9.25Z",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),os={xs:"size-4",sm:"size-5",md:"size-6"},My={xs:"size-4",sm:"size-5",md:"size-5"},pB={xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"},bB={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},Ky=({size:e,open:t,disabled:n})=>ee("flex w-full items-center gap-2 rounded-lg border bg-white px-2 text-left transition-[border-color,border-width]",pB[e],bB[e],t?"border-2 border-primary-500":"border-light-200 focus-within:border-2 focus-within:border-primary-500",n?"cursor-not-allowed bg-light-100":"cursor-pointer"),gB=()=>"flex items-center gap-1 text-caption-sm font-semibold text-light-800",yB="flex w-full max-w-[320px] flex-col";function $B({size:e="md",type:t="default",label:n,required:r,helpIcon:i,hint:a,placeholder:l="Select option",disabled:o=!1,compact:s=!1,leadingIcon:d,options:c,value:f=null,onChange:m,values:h=[],onValuesChange:p,hideTagsOnFocus:g=!1,className:y,wrapperClassName:$}){const[x,v]=b.useState(!1),[C,w]=b.useState(""),S=b.useRef(null),B=b.useRef(null),E=t==="tags",k=t==="search"||E,M=c.find(O=>O.id===f)??null,F=c.filter(O=>h.includes(O.id)),I=E&&(!g||!x),j=E&&g&&!x&&F.length>0,D=C?c.filter(O=>`${O.label} ${O.supportingText??""}`.toLowerCase().includes(C.toLowerCase())):c,T=()=>{v(!1),w("")};b.useEffect(()=>{if(!x)return;const O=z=>{S.current?.contains(z.target)||T()};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[x]),b.useEffect(()=>{x&&k&&B.current?.focus()},[x,k]);const Y=()=>{o||(x?T():v(!0))},K=O=>{O.disabled||(E?(p?.(h.includes(O.id)?h.filter(z=>z!==O.id):[...h,O.id]),w(""),B.current?.focus()):(m?.(O),T()))},q=O=>{if(O.key==="Enter"){O.preventDefault();const z=D.find(A=>!A.disabled);x&&z&&K(z)}else O.key==="Backspace"&&E&&!C&&h.length?p?.(h.slice(0,-1)):x||v(!0)},P=O=>O.avatar?b.createElement("img",{src:O.avatar,alt:"",className:ee(os[e],"shrink-0 rounded-full object-cover")}):O.icon?b.createElement("span",{className:ee(os[e],"flex shrink-0 items-center justify-center",o?"text-light-400":"text-light-500")},O.icon):O.dot?b.createElement("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:o?"#d0d5dd":O.dot}}):null,N=M?P(M):d?b.createElement("span",{className:ee(os[e],"flex shrink-0 items-center justify-center",o?"text-light-400":"text-light-500")},d):null,R=M?b.createElement("span",{className:"flex min-w-0 items-center gap-2 whitespace-nowrap"},b.createElement("span",{className:ee("truncate font-medium",o?"text-light-400":"text-light-800")},M.label),M.supportingText&&b.createElement("span",{className:o?"text-light-400":"text-light-700"},M.supportingText)):b.createElement("span",{className:o?"text-light-400":"text-light-500"},l),Q=x&&b.createElement("div",{role:"listbox",className:cB({size:e})},D.length===0&&b.createElement("div",{className:"flex h-12 items-center px-4 text-light-500"},"No options found"),D.map(O=>{const z=E?h.includes(O.id):O.id===f,A={isHovered:!1,isPressed:!1,isSelected:z,isFocusVisible:!1,isDisabled:!!O.disabled,selectionMode:E?"multiple":"single"};return b.createElement("button",{key:O.id,type:"button",role:"option","aria-selected":z,disabled:O.disabled,onClick:()=>K(O),className:ee(Iu,O.disabled&&"cursor-not-allowed")},b.createElement(Mu,{state:A,nativeInteraction:!0},b.createElement(b.Fragment,null,P(O),b.createElement("span",{className:"truncate"},O.label),O.supportingText&&b.createElement("span",{"data-slot":"supporting-text"},O.supportingText))))}));return b.createElement("div",{ref:S,className:ee(s?yB:sB(),$)},n&&b.createElement("label",{className:s?gB():dB()},n,r&&b.createElement("span",{className:"text-error-400"},"*"),i),b.createElement("div",{className:"relative",onKeyDown:O=>{O.key==="Escape"&&T()}},t==="default"?b.createElement("button",{type:"button","aria-haspopup":"listbox","aria-expanded":x,disabled:o,onClick:Y,className:ee(s?Ky({size:e,open:x,disabled:o}):Iy({size:e,open:x,disabled:o}),y)},N,b.createElement("span",{className:"flex min-w-0 flex-1 items-center"},R),b.createElement(mB,{className:ee(My[e],"shrink-0 text-light-500")})):b.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-expanded":x,onClick:Y,className:ee(s?Ky({size:e,open:x,disabled:o}):Iy({size:e,open:x,disabled:o}),y)},b.createElement(hB,{className:ee(My[e],"shrink-0",o?"text-light-400":"text-light-500")}),I&&F.length>0&&b.createElement("div",{className:"flex shrink items-center gap-1 overflow-x-auto whitespace-nowrap [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"},F.map(O=>b.createElement(Fu,{key:O.id,size:"sm",disabled:o,icon:O.avatar?b.createElement("img",{src:O.avatar,alt:"",className:"size-4 shrink-0 rounded-full object-cover"}):void 0,onClose:()=>K(O)},O.label))),!E&&!x&&M?b.createElement("span",{className:"flex min-w-0 flex-1 items-center"},R):j?null:b.createElement("input",{ref:B,value:C,disabled:o,placeholder:l,onChange:O=>{w(O.target.value),x||v(!0)},onKeyDown:q,className:"min-w-8 flex-1 bg-transparent text-light-900 outline-none placeholder:text-light-500 disabled:cursor-not-allowed disabled:placeholder:text-light-400"})),Q),a&&b.createElement("p",{className:fB()},a))}function vB({id:e,value:t,textValue:n,"aria-label":r,isDisabled:i,onAction:a,className:l,style:o,leadingSlot:s,children:d,trailingSlot:c},f){const m=b.useContext(Ku),h={id:e,value:t,textValue:n,"aria-label":r,isDisabled:i,onAction:a,className:l,style:o,leadingSlot:s,children:d,trailingSlot:c};if(m==="menu")return b.createElement(A1,{ref:f,...h});if(m==="listbox")return b.createElement(N1,{ref:f,...h});throw new Error("CollectionItem must be rendered inside a supported collection parent.")}const xB=b.forwardRef(vB),Ly=Z("relative",{variants:{layout:{floating:["flex w-full flex-col gap-4 p-4","rounded-xl border shadow-xs","sm:flex-row sm:items-start"],"full-width":"w-full border-b"}},defaultVariants:{layout:"floating"}}),CB={default:{surface:"bg-light-50",border:"border-light-300",iconSurface:"border border-light-200 bg-white shadow-xs",iconSurfaceOnLight:"border border-light-200 bg-white shadow-xs",iconText:"text-light-800"},brand:{surface:"bg-primary-50",border:"border-primary-300",iconSurface:"bg-primary-100",iconSurfaceOnLight:"bg-white",iconText:"text-primary-500"},gray:{surface:"bg-light-50",border:"border-light-300",iconSurface:"bg-light-100",iconSurfaceOnLight:"bg-white",iconText:"text-light-800"},error:{surface:"bg-error-50",border:"border-error-300",iconSurface:"bg-error-50",iconSurfaceOnLight:"bg-white",iconText:"text-error-500"},warning:{surface:"bg-warning-50",border:"border-warning-300",iconSurface:"bg-warning-100",iconSurfaceOnLight:"bg-white",iconText:"text-warning-500"},success:{surface:"bg-success-50",border:"border-success-300",iconSurface:"bg-success-50",iconSurfaceOnLight:"bg-white",iconText:"text-success-500"}},DB="bg-white border-light-200",EB="relative mx-auto flex w-full max-w-[1280px] flex-col gap-4 px-4 py-4 sm:flex-row sm:items-center sm:gap-3 sm:px-8 sm:py-3",wB=Z("flex shrink-0 items-center justify-center",{variants:{layout:{floating:"","full-width":"hidden sm:flex"},shape:{square:"",circle:""},variant:{featured:"",plain:""}},compoundVariants:[{variant:"featured",layout:"floating",class:"size-8"},{variant:"featured",layout:"full-width",class:"size-10"},{variant:"featured",shape:"circle",class:"rounded-full"},{variant:"featured",shape:"square",layout:"floating",class:"rounded-md"},{variant:"featured",shape:"square",layout:"full-width",class:"rounded-lg"}],defaultVariants:{layout:"floating",shape:"square",variant:"featured"}}),Oy=Z("flex min-w-0 flex-1",{variants:{layout:{floating:"flex-col gap-3","full-width":"items-center gap-4"}},defaultVariants:{layout:"floating"}}),SB=Z("flex min-w-0",{variants:{layout:{floating:"flex-col gap-1","full-width":"flex-col gap-0.5 sm:flex-row sm:flex-wrap sm:gap-x-1.5"},closable:{true:"",false:""}},compoundVariants:[{layout:"floating",closable:!0,class:"pr-8"},{layout:"full-width",closable:!0,class:"pr-8 sm:pr-0"}],defaultVariants:{layout:"floating",closable:!1}}),PB="text-caption-lg font-bold text-light-800",kB="text-caption-lg text-light-600",BB=Z("flex gap-3",{variants:{layout:{floating:"flex-wrap items-center","full-width":""},actionVariant:{link:"flex-wrap items-center",button:""}},compoundVariants:[{layout:"full-width",actionVariant:"button",class:"flex-col-reverse sm:flex-row sm:items-center"}],defaultVariants:{layout:"floating",actionVariant:"link"}}),NB=Z(["inline-flex items-center justify-center gap-1 bg-transparent p-0","text-caption-lg font-bold transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{emphasis:{primary:"text-primary-500 hover:text-primary-800",secondary:"text-light-800 hover:text-light-900"}},defaultVariants:{emphasis:"secondary"}}),AB=Z(["flex size-9 shrink-0 items-center justify-center rounded-lg","bg-transparent text-light-500 transition-colors","hover:bg-light-50 hover:text-light-700","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{layout:{floating:"absolute right-[7px] top-[7px]","full-width":"absolute right-2 top-2 sm:static"}},defaultVariants:{layout:"floating"}}),FB={default:dr,brand:dr,gray:dr,error:gi,warning:gi,success:nl},zy=({title:e,description:t,color:n="default",layout:r="floating",background:i="white",icon:a,iconVariant:l="featured",showIcon:o=!0,primaryAction:s,secondaryAction:d,actionVariant:c,actions:f,onClose:m,closeLabel:h="Close",className:p,...g})=>{const y=FB[n],$=r==="floating"?16:20,x=c??(r==="floating"?"link":"button"),v=CB[n],C=i==="light",w=C?ee(v.surface,v.border):DB,S=(I,j)=>I?x==="link"?u.createElement("button",{type:"button",onClick:I.onClick,className:NB({emphasis:j})},I.label):u.createElement(Ze,{size:"sm",variant:j==="primary"?"solid":"outline",onPress:I.onClick,className:r==="full-width"?"w-full sm:w-auto":void 0},I.label):null,E=!!(f||s||d)?u.createElement("div",{className:BB({layout:r,actionVariant:x})},f??u.createElement(u.Fragment,null,S(d,"secondary"),S(s,"primary"))):null,k=o&&(a||y)?u.createElement("div",{className:ee(wB({layout:r,variant:l,shape:n==="default"?"square":"circle"}),v.iconText,l==="featured"&&(C?v.iconSurfaceOnLight:v.iconSurface))},a??u.createElement(y,{size:$,stroke:2})):null,M=m?u.createElement("button",{type:"button","aria-label":h,onClick:m,className:AB({layout:r})},u.createElement(cr,{size:16,stroke:2})):null,F=u.createElement("div",{className:SB({layout:r,closable:!!m})},u.createElement("p",{className:PB},e),t&&u.createElement("p",{className:kB},t));return r==="full-width"?u.createElement("div",{role:"alert",className:ee(Ly({layout:r}),w,p),...g},u.createElement("div",{className:EB},u.createElement("div",{className:Oy({layout:r})},k,F),(E||M)&&u.createElement("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-2"},E,M))):u.createElement("div",{role:"alert",className:ee(Ly({layout:r}),w,p),...g},k,u.createElement("div",{className:Oy({layout:r})},F,E),M)};zy.displayName="Alert";const TB={success:{container:"bg-success-100",badge:"bg-success-900",iconColor:"text-success-100",text:"text-success-900",defaultTitle:"Success!"},error:{container:"bg-error-100",badge:"bg-error-800",iconColor:"text-error-100",text:"text-error-800",defaultTitle:"Error!"},warning:{container:"bg-warning-100",badge:"bg-warning-800",iconColor:"text-warning-100",text:"text-warning-800",defaultTitle:"Warning!"},info:{container:"bg-info-100",badge:"bg-info-900",iconColor:"text-info-100",text:"text-info-900",defaultTitle:"Info"}},IB=Z("relative flex w-full max-w-[400px] items-center gap-2 rounded-md px-2 py-3 shadow-[0px_4px_4px_0px_rgba(0,0,0,0.04)]"),MB="mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-full",KB="flex-1 break-words font-nunito text-sm leading-5",LB=Z(["absolute -left-4 -top-3 flex size-6 shrink-0 items-center justify-center rounded-full","shadow-[0px_4px_4px_0px_rgba(0,0,0,0.04)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{variant:{success:"bg-success-100 text-success-900",error:"bg-error-100 text-error-800",warning:"bg-warning-100 text-warning-800",info:"bg-info-100 text-info-900"}}}),OB={success:nl,error:cr,warning:S$,info:dr},Vy=({variant:e,message:t,title:n,onClose:r,closeLabel:i="Close",className:a})=>{const l=TB[e],o=OB[e];return b.createElement("div",{role:"status",className:U(IB(),l.container,a)},b.createElement("div",{className:U(MB,l.badge)},b.createElement(o,{size:16,stroke:3,className:l.iconColor})),b.createElement("p",{className:U(KB,l.text)},b.createElement("span",{className:"font-bold"},n??l.defaultTitle),b.createElement("span",{className:"ml-1 font-normal"},t)),r&&b.createElement("button",{type:"button","aria-label":i,onClick:r,className:LB({variant:e})},b.createElement(cr,{size:14,stroke:2.5})))};Vy.displayName="Toast";const us=Z(["relative flex w-full max-w-[504px] items-start gap-4 rounded-xl border border-light-200","bg-white p-4 shadow-lg"],{variants:{type:{image:"flex-col gap-4 p-0 sm:flex-row"}}}),zB={"primary-icon":{shape:"rounded-full",bg:"bg-primary-100",iconText:"text-primary-500"},"gray-icon":{shape:"rounded-lg border border-light-200 shadow-xs",bg:"bg-white",iconText:"text-light-700"},progress:{shape:"rounded-lg border border-light-200 shadow-xs",bg:"bg-white",iconText:"text-light-700"},success:{shape:"rounded-full",bg:"bg-success-50",iconText:"text-success-500"},warning:{shape:"rounded-full",bg:"bg-warning-100",iconText:"text-warning-500"},error:{shape:"rounded-full",bg:"bg-error-50",iconText:"text-error-500"},avatar:null,image:null,"no-icon":null},_y="font-nunito font-bold text-caption-lg text-light-800",Ry="font-nunito font-normal text-caption-lg text-light-600",VB="flex flex-wrap items-center gap-3",_B=Z(["inline-flex items-center justify-center gap-1 bg-transparent p-0","text-caption-lg font-semibold transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{emphasis:{primary:"text-primary-500 hover:text-primary-800",secondary:"text-light-800 hover:text-light-900"}},defaultVariants:{emphasis:"secondary"}}),RB="absolute right-[7px] top-[7px] flex size-9 shrink-0 items-center justify-center rounded-lg bg-transparent text-light-500 transition-colors hover:bg-light-50 hover:text-light-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",jB="h-2 w-full rounded-full bg-light-200",HB="h-2 rounded-full bg-primary-500",UB="font-nunito text-caption-lg font-medium text-light-600",WB="h-[122px] w-full shrink-0 overflow-hidden rounded-md bg-light-50 sm:h-auto sm:w-20 sm:self-stretch sm:rounded-none sm:rounded-l-xl",GB="flex flex-1 flex-col gap-3 p-4 sm:py-4 sm:pl-5 sm:pr-4",ZB={"primary-icon":dr,progress:A$,success:nl,warning:gi,error:gi},jy=({action:e,emphasis:t})=>b.createElement("button",{type:"button",onClick:e.onClick,className:_B({emphasis:t})},e.label),Hy=({type:e,title:t,supportingText:n,primaryAction:r,secondaryAction:i,onClose:a,closeLabel:l="Close",icon:o,avatarSrc:s,avatarAlt:d,timestamp:c,imageSrc:f,imageAlt:m,progressValue:h,progressLabel:p,className:g})=>{const y=zB[e],$=ZB[e],v=!!(r||i)?b.createElement("div",{className:VB},i&&b.createElement(jy,{action:i,emphasis:"secondary"}),r&&b.createElement(jy,{action:r,emphasis:"primary"})):null,C=a?b.createElement("button",{type:"button","aria-label":l,onClick:a,className:RB},b.createElement(An,{icon:cr,size:"sm",strokeWidth:2})):null,w=b.createElement("div",{className:"flex flex-col gap-1"},b.createElement("p",{className:_y},t),n&&b.createElement("p",{className:Ry},n)),S=e==="progress"?b.createElement("div",{className:"flex flex-col items-end gap-2"},b.createElement("div",{className:jB},b.createElement("div",{className:HB,style:{width:`${Math.min(100,Math.max(0,h??0))}%`}})),p&&b.createElement("p",{className:UB},p)):null,B=e==="avatar"?b.createElement(ja,{src:s,alt:d,size:"md",status:"online"}):y?b.createElement("div",{className:U("flex size-8 shrink-0 items-center justify-center",y.shape,y.bg)},o??($&&b.createElement(An,{icon:$,size:"sm",strokeWidth:2,className:y.iconText}))):null;return e==="image"?b.createElement("div",{role:"status",className:U(us({type:e}),g)},b.createElement("div",{className:WB},f&&b.createElement("img",{src:f,alt:m??"",className:"size-full object-cover"})),b.createElement("div",{className:GB},w,v),C):e==="avatar"?b.createElement("div",{role:"status",className:U(us(),g)},B,b.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-3"},b.createElement("div",{className:"flex flex-col gap-1"},b.createElement("div",{className:"flex flex-wrap items-center gap-2"},b.createElement("p",{className:_y},t),c&&b.createElement("span",{className:"font-nunito text-caption-lg text-light-500"},c)),n&&b.createElement("p",{className:Ry},n)),v),C):b.createElement("div",{role:"status",className:U(us(),g)},B,b.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-3"},w,S,v),C)};Hy.displayName="NotificationToast";const YB=U("relative overflow-auto rounded-lg border border-light-200 bg-white"),qB=U("w-full border-collapse text-left"),XB=U("sticky top-0 z-10 bg-light-100"),JB=U("data-[empty]:h-full"),QB=U("border-t border-light-200 bg-light-100 [&_tr]:!bg-light-100"),eN=U("relative min-h-[36px] whitespace-nowrap px-5 py-2 align-middle","border-b border-r border-light-200 last:border-r-0","has-[[data-resizable-direction]]:border-r-0","font-nunito text-caption-lg leading-caption-lg text-light-800","select-none","data-[hovered]:bg-light-200","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500 data-[focus-visible]:-outline-offset-2"),tN={start:"text-left",center:"text-center",end:"text-right"},nN=U("sticky z-30 bg-light-100 data-[hovered]:bg-light-200"),Uy={left:"border-r-0 shadow-[inset_-1px_0_0_0_#D0D5DD]",right:"border-l-0 shadow-[inset_1px_0_0_0_#D0D5DD]"},rN=U("sticky z-20 bg-white","data-[hovered]:bg-light-100","group-data-[selected]/row:bg-primary-100","group-data-[selected]/row:data-[hovered]:bg-primary-200"),iN=U("flex min-w-0 items-center justify-between gap-3 self-stretch"),Wy={inactive:"text-light-500",active:"text-light-800"},aN=U("group/row","bg-white data-[hovered]:bg-light-100","data-[selected]:bg-primary-100","data-[selected]:data-[hovered]:bg-primary-200","data-[disabled]:bg-white data-[disabled]:text-light-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500","data-[focus-visible]:-outline-offset-2"),lN=U("group/cell relative min-h-[42px] min-w-0 px-5 py-2 align-middle","border-b border-r border-light-200 last:border-r-0","font-nunito text-caption-lg leading-caption-lg text-light-800","data-[disabled]:text-light-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500","data-[focus-visible]:-outline-offset-2"),oN=U("flex min-h-[26px] min-w-0 items-center gap-3 self-stretch"),uN=U("group-first/cell:group-data-[selected]/row:shadow-[inset_2px_0_0_0_#1352BF]"),sN="block truncate",dN=U("absolute right-[-3px] top-0 h-full w-2 shrink-0 cursor-col-resize touch-none","data-[resizable-direction=left]:cursor-w-resize","data-[resizable-direction=right]:cursor-e-resize","after:absolute after:right-1/2 after:top-0 after:h-full after:w-px after:translate-x-1/2 after:bg-light-300","after:transition-[width,background-color] after:duration-100 after:ease-out","data-[hovered]:after:w-0.5 data-[hovered]:after:bg-light-500","data-[resizing]:after:w-0.5 data-[resizing]:after:bg-primary-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500 data-[focus-visible]:-outline-offset-2"),cN=U("w-full border-t border-light-200 py-3 text-center"),hi={container:U("flex flex-col items-center gap-3 px-6 py-10 text-center"),iconWrap:U("flex h-14 w-14 items-center justify-center rounded-full bg-light-100 text-light-500 [&>svg]:h-6 [&>svg]:w-6"),title:U("font-nunito text-body-sm font-semibold text-light-800"),description:U("max-w-sm font-nunito text-caption-lg text-light-600"),actions:U("mt-2 flex items-center gap-2")};function Gy({sticky:e,stickyOffset:t=0},n){return e?{...n,[e]:t}:n}const Zy=u.forwardRef(({className:e,...t},n)=>b.createElement(A7,{ref:n,...t,className:U(YB,e)}));Zy.displayName="TableContainer";const Yy=u.forwardRef(({className:e,...t},n)=>b.createElement(T7,{ref:n,...t,className:U(qB,e)}));Yy.displayName="Table";const fN=u.forwardRef(({className:e,...t},n)=>b.createElement(O7,{ref:n,...t,className:U(XB,e)})),mN=u.forwardRef(({className:e,...t},n)=>b.createElement(U7,{ref:n,...t,className:U(JB,e)})),hN=u.forwardRef(({className:e,...t},n)=>b.createElement(G7,{ref:n,...t,className:U(QB,e)})),pN={onPointerDown:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation()},qy=u.forwardRef(({className:e,align:t="start",children:n,allowsSorting:r,actions:i,sticky:a,stickyOffset:l,style:o,...s},d)=>b.createElement(R7,{ref:d,allowsSorting:r,...s,style:Gy({sticky:a,stickyOffset:l},o),className:U(eN,tN[t],a&&nN,a&&Uy[a],e)},c=>{const{allowsSorting:f,sortDirection:m}=c;let h=typeof n=="function"?n(c):n;b.isValidElement(h)&&h.type===b.Fragment&&(h=h.props.children);const p=b.Children.toArray(h),g=p.filter($=>b.isValidElement($)&&$.type===Ja),y=p.filter($=>!(b.isValidElement($)&&$.type===Ja));return b.createElement("div",{className:iN},b.createElement("span",{className:"min-w-0 truncate"},y),f&&b.createElement("span",{className:U("shrink-0",m?Wy.active:Wy.inactive)},m==="ascending"&&b.createElement(k$,{size:14,"aria-hidden":"true"}),m==="descending"&&b.createElement(P$,{size:14,"aria-hidden":"true"}),!m&&b.createElement(B$,{size:14,"aria-hidden":"true"})),i&&b.createElement("span",{className:"shrink-0",...pN},i),g)}));qy.displayName="Column";const bN=u.forwardRef(({className:e,...t},n)=>b.createElement(Z7,{ref:n,...t,className:U(aN,e)})),Xy=u.forwardRef(({className:e,children:t,sticky:n,stickyOffset:r,style:i,...a},l)=>b.createElement(Y7,{ref:l,...a,style:Gy({sticky:n,stickyOffset:r},i),className:U(lN,uN,n&&rN,n&&Uy[n],e)},o=>b.createElement("div",{className:oN},typeof t=="function"?t(o):t)));Xy.displayName="Cell";const Ja=u.forwardRef(({className:e,...t},n)=>b.createElement(j7,{ref:n,...t,className:U(dN,e)}));Ja.displayName="ColumnResizer";const Jy=u.forwardRef(({className:e,children:t,isLoading:n,...r},i)=>b.createElement(nC,{ref:i,isLoading:n,...r,className:U(cN,e)},t??(n&&b.createElement(Ns,{size:18,className:"inline-block animate-spin text-light-500","aria-label":"Loading more"}))));Jy.displayName="TableLoadMoreItem";const Qy=b.forwardRef(({icon:e,title:t,description:n,actions:r,className:i},a)=>b.createElement("div",{ref:a,className:U(hi.container,i)},e&&b.createElement("div",{className:hi.iconWrap},e),b.createElement("p",{className:hi.title},t),n&&b.createElement("p",{className:hi.description},n),r&&b.createElement("div",{className:hi.actions},r)));Qy.displayName="EmptyState";const gN=Z(["fixed inset-0 flex items-center justify-center","bg-black/40 p-4"]),yN=Z(["relative flex max-h-full items-stretch overflow-hidden","rounded-xl border border-light-200 bg-white","shadow-[0px_2px_4px_-1px_rgba(16,24,40,0.08),0px_8px_24px_-4px_rgba(16,24,40,0.14)]","outline-none"]),$N=Z(["flex min-w-0 shrink-0 flex-col self-stretch overflow-hidden outline-none"],{variants:{size:{sm:"w-[500px]",md:"w-[640px]",lg:"w-[800px]"}},defaultVariants:{size:"sm"}}),vN=Z(["absolute right-[7px] top-[7px] z-10"]),xN=Z(["flex w-full shrink-0 items-center gap-3 px-6 py-4"]),CN=Z(["min-h-0 w-full flex-1 overflow-y-auto"]),DN=Z(["flex shrink-0 items-center justify-center self-stretch overflow-hidden py-2 pr-2"]),EN=Z(["flex h-full w-[240px] items-center justify-center overflow-hidden","rounded-lg border border-light-200 bg-primary-50"]),wN=Z(["flex w-full shrink-0 items-center gap-3 px-6 py-4"],{variants:{layout:{"horizontal-fill":"[&>*]:flex-1",horizontal:"justify-end","vertical-fill":"flex-col items-stretch","right-aligned":"","right-aligned-checkbox":"","wizard-navigation":"","single-cta":""}},defaultVariants:{layout:"horizontal-fill"}}),e$=b.forwardRef(({className:e,style:t,size:n="sm",showCloseButton:r=!0,isDismissable:i=!0,imagePanel:a,children:l,"aria-label":o,"aria-labelledby":s,...d},c)=>b.createElement(Ib,{...d,isDismissable:i,className:gN(),style:{zIndex:yD}},b.createElement(I8,{ref:c,className:yN()},b.createElement(U3,{"aria-label":o,"aria-labelledby":s,style:t,className:U($N({size:n}),e)},f=>b.createElement(b.Fragment,null,r&&b.createElement(Ze,{type:"button",size:"sm",variant:"ghost",iconOnly:!0,onPress:f.close,"aria-label":"Close",className:vN()},b.createElement(Ze.Icon,null,b.createElement(cr,{size:16}))),typeof l=="function"?l(f):l)),a)));e$.displayName="Modal";const SN=({title:e,subtitle:t,icon:n,className:r})=>b.createElement("div",{className:U(xN(),r)},n&&b.createElement("span",{className:"flex size-6 shrink-0 items-center justify-center","aria-hidden":"true"},n),b.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5"},b.createElement(wc,{slot:"title",className:"text-[18px] font-bold leading-5 text-light-800"},e),t&&b.createElement("p",{className:"text-caption-sm text-light-500"},t))),PN=({children:e,className:t})=>b.createElement("div",{className:U(CN(),t)},e),kN=({children:e,className:t})=>b.createElement("div",{className:DN()},b.createElement("div",{className:U(EN(),t)},e)),t$=b.createElement("div",{className:"h-px min-w-px flex-1","aria-hidden":"true"}),BN=({layout:e="horizontal-fill",destructive:t=!1,isPending:n=!1,cancelLabel:r,onCancel:i,confirmLabel:a,onConfirm:l,isConfirmDisabled:o=!1,backLabel:s="Back",onBack:d,checkbox:c,className:f})=>{const m=b.createElement(Ze,{type:"button",size:"sm",tone:t?"destructive":"primary",isDisabled:o||n,isPending:n,onPress:l},b.createElement(Ze.Text,null,a)),h=r&&b.createElement(Ze,{type:"button",size:"sm",variant:"outline",isDisabled:n,onPress:i},b.createElement(Ze.Text,null,r)),p=r&&b.createElement(Ze,{type:"button",size:"sm",variant:"plain",isDisabled:n,onPress:i},b.createElement(Ze.Text,null,r)),g=b.createElement(Ze,{type:"button",size:"sm",variant:"outline",isDisabled:n,onPress:d},b.createElement(Ze.Text,null,s));let y;switch(e){case"single-cta":y=b.createElement("div",{className:"w-full"},m);break;case"vertical-fill":y=b.createElement(b.Fragment,null,b.createElement("div",{className:"w-full"},m),r&&b.createElement("div",{className:"flex w-full items-center justify-center"},p));break;case"right-aligned":y=b.createElement(b.Fragment,null,p,t$,m);break;case"right-aligned-checkbox":y=b.createElement(b.Fragment,null,c&&b.createElement("div",{className:"flex min-w-0 flex-1 items-start"},c),b.createElement("div",{className:"flex shrink-0 items-center gap-3"},h,m));break;case"wizard-navigation":y=b.createElement(b.Fragment,null,p,t$,b.createElement("div",{className:"flex shrink-0 items-center gap-3"},g,m));break;default:y=b.createElement(b.Fragment,null,h,m);break}return b.createElement("div",{className:U(wN({layout:e}),f)},y)},pi=e$;pi.Header=SN,pi.Body=PN,pi.ImagePanel=kN,pi.Footer=BN;function NN({className:e,style:t,...n},r){return b.createElement(Ku.Provider,{value:"listbox"},b.createElement(Hx,{ref:r,...n,style:t,className:U(E1,e)}))}const Qa=b.forwardRef(NN);function AN({className:e,style:t,content:n="none",icon:r,shortcut:i,children:a,...l},o){const s=n==="icon"?r:n==="selection"?d=>b.createElement("span",{className:w1},d.isSelected&&b.createElement(yi,{size:16,"aria-hidden":"true"})):void 0;return b.createElement(N1,{ref:o,...l,style:t,className:e,leadingSlot:s,trailingSlot:i?b.createElement("span",{className:S1},i):void 0},a)}const ss=b.forwardRef(AN),FN=({className:e})=>b.createElement(Fm,{className:U(P1,e)}),TN=Z(["flex w-full items-center justify-between gap-2 border bg-white text-left","text-light-900 outline-none cursor-pointer","transition-[border-color,box-shadow]","border-light-200 group-data-[open]:border-primary-500","group-data-[focus-visible]:shadow-focus","group-data-[invalid]:border-error-200 group-data-[invalid]:group-data-[open]:border-error-500 group-data-[invalid]:group-data-[focus-visible]:border-error-500","group-data-[disabled]:cursor-not-allowed group-data-[disabled]:bg-light-100 group-data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),IN="flex size-4 shrink-0 items-center justify-center text-light-500",MN={xs:18,sm:20,md:24},KN=Z("min-w-0 flex-1 truncate",{variants:{placeholder:{true:"text-light-400",false:"font-medium text-light-800"}},defaultVariants:{placeholder:!1}}),LN=Z("shrink-0 text-light-500 transition-transform",{variants:{open:{true:"rotate-180",false:""}},defaultVariants:{open:!1}});function ON({className:e,style:t,children:n,...r},i){return b.createElement(Z8,{ref:i,...r,style:t,className:U("group",e)},n)}const ds=b.forwardRef(ON),el=b.forwardRef(({className:e,style:t,size:n="md",icon:r,children:i,...a},l)=>b.createElement(qt,{ref:l,...a,style:t,className:U(TN({size:n}),e)},o=>b.createElement(b.Fragment,null,r&&b.createElement("span",{className:IN},r),typeof i=="function"?i(o):i,b.createElement($i,{size:MN[n],"aria-hidden":"true",className:LN({open:o.isPressed})}))));el.displayName="SelectTrigger";function zN({className:e,style:t,...n},r){return b.createElement(X8,{ref:r,...n,style:t,className:i=>U(KN({placeholder:i.isPlaceholder}),e)})}const cs=b.forwardRef(zN);function fs({className:e,...t}){return b.createElement(ss,{...t,content:"selection",className:e})}const VN=Z(["flex w-full flex-nowrap items-center gap-2 border bg-white text-left","border-light-200 text-light-900","transition-[border-color,box-shadow]","group-data-[open]:border-primary-500","group-data-[focus-visible]:shadow-focus","group-data-[invalid]:border-error-200 group-data-[invalid]:group-data-[open]:border-error-500 group-data-[invalid]:group-data-[focus-visible]:border-error-500","group-data-[disabled]:cursor-not-allowed group-data-[disabled]:bg-light-100 group-data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),_N=Z("flex shrink-0 items-center justify-center text-light-500",{variants:{size:{xs:"size-5",sm:"size-6",md:"size-7"}},defaultVariants:{size:"md"}}),RN="flex min-w-0 flex-nowrap items-center gap-1.5 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",jN="min-w-[4rem] flex-1 bg-transparent font-medium text-light-800 outline-none placeholder:font-normal placeholder:text-light-400 disabled:cursor-not-allowed";function HN({className:e,style:t,children:n,...r},i){return b.createElement(U9,{ref:i,...r,style:t,className:U("group",e)},n)}const UN=b.forwardRef(HN),n$=b.forwardRef(({className:e,size:t="md",icon:n,children:r,onClick:i,...a},l)=>{const o=b.useCallback(s=>{i?.(s),s.target.closest("button, input")||s.currentTarget.querySelector("input")?.focus()},[i]);return b.createElement(Lr,{ref:l,...a,onClick:o,className:U(VN({size:t}),e)},n&&b.createElement("span",{className:_N({size:t})},n),r)});n$.displayName="ComboBoxTrigger";const r$=b.forwardRef(({className:e,style:t,onKeyDown:n,...r},i)=>{const a=b.useContext(nu),l=b.useCallback(o=>{if(n?.(o),o.key==="Backspace"&&!o.defaultPrevented&&o.currentTarget.value===""&&a?.selectionManager.selectionMode==="multiple"){const s=a.selectedItems[a.selectedItems.length-1];s&&a.selectionManager.toggleSelection(s.key)}},[n,a]);return b.createElement(ha,{ref:i,...r,style:t,onKeyDown:l,className:U(jN,e)})});r$.displayName="ComboBoxInput";const WN=({children:e})=>{const t=b.useContext(nu);return t?b.createElement("div",{className:RN},t.selectedItems.map(n=>n?b.createElement(b.Fragment,{key:n.key},e({key:n.key,textValue:n.textValue??String(n.key),onRemove:()=>t.selectionManager.toggleSelection(n.key)})):null)):null};function GN({className:e,...t}){return b.createElement(ss,{...t,content:"selection",className:e})}const i$=b.createContext(null);function a$(){const e=b.useContext(i$);if(!e)throw new Error("MultiSelect components must be rendered inside MultiSelect.");return e}function ZN({"aria-label":e,items:t,children:n,selectedKeys:r,defaultSelectedKeys:i,onSelectionChange:a,disabledKeys:l,getTextValue:o,filter:s,searchValue:d,defaultSearchValue:c="",onSearchChange:f,isDisabled:m=!1,className:h}){const p=b.useMemo(()=>Array.from(t),[t]),g=r!==void 0,[y,$]=b.useState(()=>new Set(i)),x=b.useMemo(()=>g?new Set(r):y,[r,g,y]),v=d!==void 0,[C,w]=b.useState(c),S=v?d:C,[B,E]=b.useState(!1),k=b.useCallback(T=>{v||w(T),f?.(T)},[v,f]),M=b.useCallback(T=>{E(T),!T&&!v&&w("")},[v]),F=b.useCallback(T=>{if(T==="all")return;const Y=new Set(T);g||$(Y),a?.(Y)},[g,a]),I=b.useMemo(()=>{const T=S.trim().toLocaleLowerCase();return T?p.filter(Y=>s?s(Y,S):o(Y).toLocaleLowerCase().includes(T)):p},[s,o,p,S]),j=b.useMemo(()=>new Set(l),[l]),D={label:e,items:p,filteredItems:I,selectedKeys:x,disabledKeys:j,onSelectionChange:F,query:S,setQuery:k,isOpen:B,setOpen:M,isDisabled:m};return b.createElement(i$.Provider,{value:D},b.createElement("div",{className:U("w-full",h)},b.createElement(K9,{isOpen:B,onOpenChange:M},n)))}const YN=Z(["flex w-full items-center justify-between gap-2 border bg-white text-left","font-medium text-light-800 outline-none transition-[border-color,box-shadow]","hover:border-light-300 focus-visible:shadow-focus","disabled:cursor-not-allowed disabled:bg-light-100 disabled:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"},open:{true:"border-primary-500",false:"border-light-200"}},defaultVariants:{size:"md",open:!1}}),qN="overflow-hidden rounded-lg border border-light-200 bg-white shadow-lg outline-none",XN="outline-none",JN="p-2 pb-1",QN="flex h-9 items-center gap-2 rounded-lg border border-light-200 px-3 focus-within:border-primary-500 focus-within:shadow-focus",eA="min-w-0 flex-1 bg-transparent text-caption-lg text-light-800 outline-none placeholder:text-light-400",tA={xs:18,sm:20,md:20},l$=b.forwardRef(({children:e,size:t="md",className:n,style:r,...i},a)=>{const{isOpen:l,isDisabled:o}=a$();return b.createElement(qt,{ref:a,isDisabled:o,style:r,className:U(YN({size:t,open:l}),n),...i},b.createElement("span",{className:"min-w-0 flex-1 truncate"},e),b.createElement($i,{size:tA[t],"aria-hidden":"true",className:U("shrink-0 text-light-500 transition-transform",l&&"rotate-180")}))});l$.displayName="MultiSelectTrigger";function nA({children:e,searchPlaceholder:t="Search...",emptyState:n="No options found",className:r}){const{label:i,filteredItems:a,selectedKeys:l,disabledKeys:o,onSelectionChange:s,query:d,setQuery:c,setOpen:f}=a$(),m=b.useRef(null),h=p=>{if(p.key!=="ArrowDown")return;const g=m.current?.querySelector('[role="option"]:not([data-disabled])');g&&(p.preventDefault(),g.focus())};return b.createElement(ln,{matchTriggerWidth:!0,placement:"bottom start",className:U(qN,r)},b.createElement(U3,{"aria-label":i,className:XN},b.createElement("div",{onKeyDownCapture:p=>{const g=p.target;if(p.key.toLowerCase()==="a"&&(p.ctrlKey||p.metaKey)&&!!g.closest('[role="listbox"]')){p.preventDefault(),p.stopPropagation();return}p.key==="Escape"&&(p.preventDefault(),p.stopPropagation(),f(!1))}},b.createElement("div",{className:JN},b.createElement(_8,{"aria-label":`Search ${i.toLocaleLowerCase()}`,value:d,onChange:c},b.createElement("div",{className:QN},b.createElement(F$,{size:18,"aria-hidden":"true",className:"shrink-0 text-light-500"}),b.createElement(ha,{autoFocus:!0,placeholder:t,className:eA,onKeyDown:h})))),b.createElement(Qa,{ref:m,"aria-label":`${i} options`,items:a,selectionMode:"multiple",selectedKeys:l,disabledKeys:o,onSelectionChange:s,escapeKeyBehavior:"none",renderEmptyState:()=>n},e))))}const rA=Z(["relative inline-flex w-fit items-center font-semibold","transition-[color,background-color] duration-150","focus-visible:outline-none","[-webkit-tap-highlight-color:transparent]","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:text-light-400"],{variants:{size:{xs:"gap-1 text-caption-sm",sm:"gap-1 text-caption-lg",md:"gap-1.5 text-body-sm"},variant:{text:["bg-transparent text-light-600","data-[hovered]:text-light-900","data-[current]:text-light-800","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],ghost:["bg-transparent text-light-500 rounded-md","data-[hovered]:bg-light-50 data-[hovered]:text-light-700","data-[current]:bg-light-50 data-[current]:text-light-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],"ghost-primary":["bg-transparent text-primary-500 rounded-md","data-[hovered]:bg-primary-100 data-[hovered]:text-primary-800","data-[current]:bg-primary-100 data-[current]:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"]},underline:{none:"",hover:"data-[hovered]:underline underline-offset-2",always:"underline underline-offset-2"}},compoundVariants:[{variant:"ghost",size:"xs",class:"px-1.5 py-0.5"},{variant:"ghost",size:"sm",class:"px-2 py-1"},{variant:"ghost",size:"md",class:"px-2.5 py-1.5"},{variant:"ghost-primary",size:"xs",class:"px-1.5 py-0.5"},{variant:"ghost-primary",size:"sm",class:"px-2 py-1"},{variant:"ghost-primary",size:"md",class:"px-2.5 py-1.5"}],defaultVariants:{size:"sm",variant:"text",underline:"none"}}),ms=b.forwardRef(({children:e,className:t,variant:n="text",size:r="sm",underline:i="none",...a},l)=>b.createElement(Cv,{...a,ref:l,className:al(t,o=>U(rA({variant:n,size:r,underline:i}),o))},e));ms.displayName="Link";const o$=b.createContext({separator:"chevron",variant:"text",size:"sm"}),u$=()=>b.useContext(o$),iA="flex flex-wrap items-center",aA="inline-flex items-center gap-1.5",lA=Z("shrink-0 text-light-400",{variants:{type:{chevron:"size-4",slash:"size-3.5"}},defaultVariants:{type:"chevron"}}),oA="inline-flex size-5 shrink-0 items-center justify-center [&_svg]:size-full",s$=({"aria-label":e="Breadcrumb",separator:t="chevron",variant:n="text",size:r="sm",isDisabled:i,className:a,children:l})=>{const o=b.useMemo(()=>({separator:t,variant:n,size:r}),[t,n,r]);return b.createElement("nav",{"aria-label":e},b.createElement(o$.Provider,{value:o},b.createElement(wv,{isDisabled:i,className:U(iA,a)},l)))};s$.displayName="Breadcrumbs";const hs=({type:e="chevron",className:t})=>{const n=e==="slash"?T$:Bs;return b.createElement("span",{"aria-hidden":"true",className:U(lA({type:e}),t)},b.createElement(n,{className:"size-full",stroke:2}))};hs.displayName="BreadcrumbSeparator";const d$=({className:e,children:t})=>{const{separator:n}=u$();return b.createElement(Sv,{className:U(aA,e)},({isCurrent:r})=>b.createElement(b.Fragment,null,t,!r&&b.createElement(hs,{type:n})))};d$.displayName="Breadcrumb";const c$=({variant:e,size:t,icon:n,children:r,...i})=>{const a=u$();return b.createElement(ms,{variant:e??a.variant,size:t??a.size,...i},n&&b.createElement("span",{className:oA,"aria-hidden":"true"},n),r)};c$.displayName="BreadcrumbLink";const uA={xs:24,sm:32,md:40,lg:48,xl:56},sA={xs:12,sm:16,md:20,lg:24,xl:28},f$={brand:{light:"bg-primary-100",dark:"bg-primary-500",glass:"bg-primary-100/60 backdrop-blur-sm"},gray:{light:"bg-light-100",dark:"bg-light-600",modern:"bg-white border border-light-200 shadow-xs"},error:{light:"bg-error-50",dark:"bg-error-500"},warning:{light:"bg-warning-100",dark:"bg-warning-600"},success:{light:"bg-success-50",dark:"bg-success-500"}},m$={brand:{light:"text-primary-500",dark:"text-white",glass:"text-primary-700"},gray:{light:"text-light-700",dark:"text-white",modern:"text-light-700"},error:{light:"text-error-500",dark:"text-white"},warning:{light:"text-warning-600",dark:"text-white"},success:{light:"text-success-500",dark:"text-white"}};function dA(e,t){return f$[e][t]??f$[e].light??""}function cA(e,t){return m$[e][t]??m$[e].light??""}const fA=Z("relative inline-flex shrink-0 items-center justify-center",{variants:{type:{light:"rounded-full",dark:"rounded-lg",modern:"rounded-lg",glass:"rounded-full"}},defaultVariants:{type:"light"}}),h$=({icon:e,size:t="md",color:n="brand",type:r="light",className:i})=>{const a=uA[t],l=sA[t];return b.createElement("div",{"aria-hidden":!0,className:ee(fA({type:r}),dA(n,r),i),style:{width:a,height:a}},b.createElement(An,{icon:e,strokeWidth:2,className:cA(n,r),style:{width:l,height:l}}))};h$.displayName="FeaturedIcon";const mA={xs:20,sm:24,md:28,lg:32},hA={xs:9,sm:11,md:12,lg:14},pA={primary:{default:"bg-primary-100",line:"bg-transparent border border-primary-300",filled:"bg-primary-500"},gray:{default:"bg-light-100",line:"bg-transparent border border-light-300",filled:"bg-light-600"},success:{default:"bg-success-50",line:"bg-transparent border border-success-300",filled:"bg-success-500"}},bA={primary:{default:"text-primary-500",line:"text-primary-500",filled:"text-white"},gray:{default:"text-light-700",line:"text-light-700",filled:"text-white"},success:{default:"text-success-500",line:"text-success-500",filled:"text-white"}};function gA(e,t){return pA[e][t]}function yA(e,t){return bA[e][t]}const $A=Z("relative inline-flex shrink-0 items-center justify-center rounded-full"),p$=({size:e="sm",color:t="primary",type:n="default",className:r})=>{const i=mA[e],a=hA[e];return b.createElement("div",{"aria-hidden":!0,className:ee($A(),gA(t,n),r),style:{width:i,height:i}},b.createElement(An,{icon:yi,strokeWidth:2.5,className:yA(t,n),style:{width:a,height:a}}))};p$.displayName="CheckIcon";const vA={sm:8,md:10,lg:12},xA={sm:6,md:8,lg:10},CA=Z("relative shrink-0 rounded-full bg-current",{variants:{outline:{true:"ring-2 ring-white",false:""}},defaultVariants:{outline:!1}}),b$=({size:e="sm",outline:t=!1,className:n})=>{const r=vA[e],i=xA[e];return b.createElement("span",{"aria-hidden":!0,className:"relative inline-flex shrink-0 items-center justify-center",style:{width:r,height:r}},b.createElement("span",{className:ee(CA({outline:t}),n),style:{width:i,height:i}}))};b$.displayName="Dot";const g$="inline-flex flex-col gap-3 text-light-900",DA="flex h-9 w-full items-center justify-between gap-1",EA="flex-1 text-center text-body-sm font-semibold text-light-900",wA="flex min-w-0 flex-1 items-center justify-center gap-2",SA=Z("h-fit self-start border-separate border-spacing-x-0",{variants:{size:{sm:"border-spacing-y-1",md:"border-spacing-y-1"}},defaultVariants:{size:"md"}}),PA=Z("font-medium text-light-500",{variants:{size:{sm:"size-8 text-caption-sm",md:"size-10 text-caption-lg"}},defaultVariants:{size:"md"}}),kA=Z(["group/cell relative flex cursor-pointer select-none items-center justify-center rounded-full","font-medium text-light-800 outline-none","transition-colors","data-[outside-month]:pointer-events-none data-[outside-month]:text-light-400","data-[hovered]:bg-light-100","data-[disabled]:pointer-events-none data-[disabled]:text-light-400","data-[unavailable]:pointer-events-none data-[unavailable]:text-light-400 data-[unavailable]:line-through","data-[selected]:bg-primary-500 data-[selected]:text-white","data-[selected]:data-[hovered]:bg-primary-600","data-[focus-visible]:shadow-focus"],{variants:{size:{sm:"size-8 text-caption-sm",md:"size-10 text-caption-lg"}},defaultVariants:{size:"md"}}),BA=["data-[selected]:rounded-none data-[selected]:bg-light-50 data-[selected]:text-light-700","data-[selected]:data-[hovered]:bg-light-100","[td:first-child_&]:data-[selected]:rounded-l-full","[td:last-child_&]:data-[selected]:rounded-r-full","data-[selected]:data-[selection-start]:rounded-full data-[selected]:data-[selection-start]:bg-primary-500 data-[selected]:data-[selection-start]:text-white","data-[selected]:data-[selection-end]:rounded-full data-[selected]:data-[selection-end]:bg-primary-500 data-[selected]:data-[selection-end]:text-white","data-[selected]:data-[hovered]:data-[selection-start]:bg-primary-600","data-[selected]:data-[hovered]:data-[selection-end]:bg-primary-600"],NA=["pointer-events-none absolute bottom-1 left-1/2 size-1 -translate-x-1/2 rounded-full","bg-primary-500","group-data-[selected]/cell:group-data-[selection-start]/cell:bg-white","group-data-[selected]/cell:group-data-[selection-end]/cell:bg-white","group-data-[disabled]/cell:bg-light-400","group-data-[unavailable]/cell:bg-light-400"],AA=["data-[today]:font-bold data-[today]:text-primary-500","data-[today]:data-[selected]:text-primary-500","data-[today]:data-[selected]:data-[selection-start]:text-white","data-[today]:data-[selected]:data-[selection-end]:text-white"],FA=["data-[today]:font-bold data-[today]:text-primary-500","data-[today]:data-[selected]:text-white"],y$=["flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg","text-light-500 outline-none transition-colors","data-[hovered]:bg-light-100 data-[hovered]:text-light-700","data-[focus-visible]:shadow-focus","data-[disabled]:cursor-not-allowed data-[disabled]:text-light-300"],tl=b.createContext({size:"md",isRange:!1});function TA(e,t){return b.useMemo(()=>t?new Proxy(e,{get(n,r,i){return r==="focusedDate"?n.focusedDate.add(t):r==="setFocusedDate"?a=>n.setFocusedDate(a.subtract(t)):Reflect.get(n,r,i)}}):e,[e,t])}function $$(e){const t=b.useContext(Yn),n=b.useContext(qn),r=t??n;if(!r)throw new Error("CalendarMonthSelect/CalendarYearSelect must be rendered inside a Calendar or RangeCalendar.");return TA(r,e)}function IA({previousLabel:e,nextLabel:t,withPickers:n=!1,visibleYears:r=20,offset:i,className:a}){return b.createElement("header",{className:U(DA,a)},b.createElement(qt,{slot:"previous","aria-label":e,className:U(y$)},b.createElement(N$,{size:20,"aria-hidden":"true"})),n?b.createElement("div",{className:wA},b.createElement(v$,{offset:i}),b.createElement(x$,{visibleYears:r,offset:i})):b.createElement(ox,{offset:i,className:EA}),b.createElement(qt,{slot:"next","aria-label":t,className:U(y$)},b.createElement(Bs,{size:20,"aria-hidden":"true"})))}function v$({format:e="long",size:t="sm",offset:n,className:r}){const i=$$(n),{items:a,value:l,onChange:o,"aria-label":s}=Z6({format:e},i);return b.createElement(ds,{"aria-label":s,selectedKey:l,onSelectionChange:o,className:r},b.createElement(el,{size:t},b.createElement(cs,null)),b.createElement(ln,null,b.createElement(Qa,{items:a},d=>b.createElement(fs,{id:d.id,textValue:d.formatted},d.formatted))))}function x$({visibleYears:e=20,size:t="sm",offset:n,className:r}){const i=$$(n),{items:a,value:l,onChange:o,"aria-label":s}=Y6({visibleYears:e},i);return b.createElement(ds,{"aria-label":s,selectedKey:l,onSelectionChange:o,className:r},b.createElement(el,{size:t},b.createElement(cs,null)),b.createElement(ln,null,b.createElement(Qa,{items:a},d=>b.createElement(fs,{id:d.id,textValue:d.formatted},d.formatted))))}function MA({size:e,className:t,...n}){const r=b.useContext(tl),i=e??r.size;return b.createElement(nx,{...n,className:U(SA({size:i}),t)},b.createElement(a0,null,a=>b.createElement(l0,{className:PA({size:i})},a)),b.createElement(o0,null,a=>b.createElement(C$,{date:a,size:i})))}function C$({date:e,size:t,className:n,...r}){const i=b.useContext(tl),a=t??i.size,l=i.hasActivity?.(e)??!1;return b.createElement(lx,{...r,date:e,className:U(kA({size:a}),i.isRange&&BA,i.isRange?AA:FA,n)},({formattedDate:o})=>b.createElement(b.Fragment,null,o,l?b.createElement("span",{"aria-hidden":"true",className:U(NA)}):null))}function KA({size:e="md",hasActivity:t,className:n,children:r,...i}){const a=b.useMemo(()=>({size:e,isRange:!1,hasActivity:t}),[e,t]);return b.createElement(tl.Provider,{value:a},b.createElement(ex,{...i,className:U(g$,n)},r))}function LA({size:e="md",hasActivity:t,className:n,children:r,...i}){const a=b.useMemo(()=>({size:e,isRange:!0,hasActivity:t}),[e,t]);return b.createElement(tl.Provider,{value:a},b.createElement(tx,{...i,className:U(g$,n)},r))}const OA=Z(["flex w-full items-center border bg-white text-left","border-light-200 text-light-800","transition-[border-color,box-shadow]","data-[focus-within]:border-primary-500","data-[focus-visible]:shadow-focus","data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100 data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 gap-1 rounded px-2 text-caption-sm",sm:"h-9 gap-2 rounded-lg px-3 text-caption-lg",md:"h-11 gap-2 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),zA="flex min-w-0 flex-1 items-center",VA=["rounded px-0.5 tabular-nums outline-none","text-light-800 caret-transparent","data-[placeholder]:text-light-400","data-[focused]:bg-primary-500 data-[focused]:text-white","data-[disabled]:text-light-400","data-[type=literal]:px-0 data-[type=literal]:text-light-400"],_A=Z("flex shrink-0 items-center justify-center text-light-500",{variants:{size:{xs:"size-5",sm:"size-6",md:"size-7"}},defaultVariants:{size:"md"}});function RA({size:e="md",icon:t,trailing:n,className:r,style:i,...a}){return b.createElement(v8,{...a,style:i,className:U("group w-full",r)},b.createElement(Lr,{className:OA({size:e})},t?b.createElement("span",{className:_A({size:e}),"aria-hidden":"true"},t):null,b.createElement(x8,{className:zA},l=>b.createElement(D8,{segment:l,className:U(VA)})),n))}W.Alert=zy,W.Avatar=ja,W.AvatarGroup=o1,W.AvatarLabelGroup=u1,W.AvatarProfilePhoto=s1,W.Badge=t1,W.BadgeGroup=n1,W.BaseInput=ei,W.Breadcrumb=d$,W.BreadcrumbLink=c$,W.BreadcrumbSeparator=hs,W.Breadcrumbs=s$,W.Button=Ze,W.Calendar=KA,W.CalendarCell=C$,W.CalendarGrid=MA,W.CalendarHeader=IA,W.CalendarMonthSelect=v$,W.CalendarYearSelect=x$,W.Cell=Xy,W.CheckIcon=p$,W.Checkbox=Z2,W.CollectionItem=xB,W.Column=qy,W.ColumnResizer=Ja,W.ComboBox=UN,W.ComboBoxInput=r$,W.ComboBoxItem=GN,W.ComboBoxTags=WN,W.ComboBoxTrigger=n$,W.DateField=RA,W.Dot=b$,W.EmptyState=Qy,W.FeaturedIcon=h$,W.Icon=An,W.Input=ls,W.InputCardNumber=Mk,W.InputCounter=kk,W.InputDropdown=$B,W.InputPhone=vk,W.InputPrice=Pk,W.Link=ms,W.ListBox=Qa,W.ListBoxItem=ss,W.ListBoxSeparator=FN,W.Loading=r1,W.Menu=Lu,W.MenuHeader=RE,W.MenuItem=Ou,W.MenuSeparator=_E,W.MenuTrigger=Na,W.Modal=pi,W.MultiSelect=ZN,W.MultiSelectPopover=nA,W.MultiSelectTrigger=l$,W.NotificationToast=Hy,W.Popover=ln,W.RadioGroup=cD,W.RadioGroupItem=q2,W.RangeCalendar=LA,W.Row=bN,W.Select=ds,W.SelectItem=fs,W.SelectTrigger=el,W.SelectValue=cs,W.SelectionIndicator=xx,W.Tab=d1,W.TabBrowser=g1,W.TabBrowserBar=y1,W.TabBrowserPreview=$1,W.TabList=c1,W.Table=Yy,W.TableBody=mN,W.TableContainer=Zy,W.TableFooter=hN,W.TableHeader=fN,W.TableLoadMoreItem=Jy,W.Tag=Fu,W.Textarea=Ty,W.Toast=Vy,W.Toggle=X2,W.Tooltip=_a,W.WebsiteCopyInput=uB,W.WebsiteInput=Qk,W.buttonIconSizePx=iD,W.cellTruncate=sN,W.getDefaultCountryOptions=Py,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})}));
12
+ }`.trim(),document.head.prepend(i);let l=c=>{if(!(c.touches.length===2||n)){if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()}},o=c=>{let f=W(c),m=c.relatedTarget;m&&gr(m)?(m.focus({preventScroll:!0}),b4(m,gr(f))):m||f.parentElement?.closest("[tabindex]")?.focus({preventScroll:!0})},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(c){let f=ce(),m=f!=null&&gr(f);s.call(this,{...c,preventScroll:!0}),(!c||!c.preventScroll)&&b4(this,m)};let d=at(Zo(document,"touchstart",r,{passive:!1,capture:!0}),Zo(document,"touchmove",l,{passive:!1,capture:!0}),Zo(document,"blur",o,!0));return()=>{e(),d(),i.remove(),HTMLElement.prototype.focus=s}}function ka(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Zo(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function b4(e,t){t||!Yr?g4(e):Yr.addEventListener("resize",()=>g4(e),{once:!0})}function g4(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=ot(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(a.top<i.top||a.bottom>i.top+n.clientHeight){let l=i.bottom;Yr&&(l=Math.min(l,Yr.offsetTop+Yr.height));let o=a.top-i.top-((l-i.top)/2-a.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}n=r.parentElement}}function y9(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o,...s}=e,d=s.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:f}=h4({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||d,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o},i??r),{overlayProps:m,arrowProps:h,placement:p,triggerAnchorPoint:g}=f9({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!d?t.close:null,getTargetRect:s.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});p4({isDisabled:a||!t.isOpen}),u.useEffect(()=>{if(t.isOpen&&r.current)return a?t9(i?.current??r.current):Ho([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]);let{focusWithinProps:y}=jn(e);return{popoverProps:q(c,m,y),arrowProps:h,underlayProps:f,placement:p,triggerAnchorPoint:g}}var y4={};y4={dismiss:"تجاهل"};var $4={};$4={dismiss:"Отхвърляне"};var v4={};v4={dismiss:"Odstranit"};var x4={};x4={dismiss:"Luk"};var C4={};C4={dismiss:"Schließen"};var D4={};D4={dismiss:"Απόρριψη"};var E4={};E4={dismiss:"Dismiss"};var w4={};w4={dismiss:"Descartar"};var S4={};S4={dismiss:"Lõpeta"};var P4={};P4={dismiss:"Hylkää"};var k4={};k4={dismiss:"Rejeter"};var B4={};B4={dismiss:"התעלם"};var N4={};N4={dismiss:"Odbaci"};var A4={};A4={dismiss:"Elutasítás"};var F4={};F4={dismiss:"Ignora"};var T4={};T4={dismiss:"閉じる"};var I4={};I4={dismiss:"무시"};var M4={};M4={dismiss:"Atmesti"};var K4={};K4={dismiss:"Nerādīt"};var L4={};L4={dismiss:"Lukk"};var O4={};O4={dismiss:"Negeren"};var z4={};z4={dismiss:"Zignoruj"};var V4={};V4={dismiss:"Descartar"};var _4={};_4={dismiss:"Dispensar"};var R4={};R4={dismiss:"Revocare"};var j4={};j4={dismiss:"Пропустить"};var H4={};H4={dismiss:"Zrušiť"};var U4={};U4={dismiss:"Opusti"};var W4={};W4={dismiss:"Odbaci"};var G4={};G4={dismiss:"Avvisa"};var Z4={};Z4={dismiss:"Kapat"};var Y4={};Y4={dismiss:"Скасувати"};var q4={};q4={dismiss:"取消"};var X4={};X4={dismiss:"關閉"};var J4={};J4={"ar-AE":y4,"bg-BG":$4,"cs-CZ":v4,"da-DK":x4,"de-DE":C4,"el-GR":D4,"en-US":E4,"es-ES":w4,"et-EE":S4,"fi-FI":P4,"fr-FR":k4,"he-IL":B4,"hr-HR":N4,"hu-HU":A4,"it-IT":F4,"ja-JP":T4,"ko-KR":I4,"lt-LT":M4,"lv-LV":K4,"nb-NO":L4,"nl-NL":O4,"pl-PL":z4,"pt-BR":V4,"pt-PT":_4,"ro-RO":R4,"ru-RU":j4,"sk-SK":H4,"sl-SI":U4,"sr-SP":W4,"sv-SE":G4,"tr-TR":Z4,"uk-UA":Y4,"zh-CN":q4,"zh-TW":X4};function $9(e){return e&&e.__esModule?e.default:e}function Yo(e){let{onDismiss:t,...n}=e,r=ke($9(J4),"@react-aria/overlays"),i=Tt(n,r.format("dismiss")),a=()=>{t&&t()};return u.createElement(Mr,null,u.createElement("button",{...i,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}const Q4=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),i=u.useContext(Cr),a=q(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=Te(n||i?.ref),xl(i,a.ref),u.useEffect(()=>{r.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),u.createElement(Cr.Provider,{value:a},e)});function v9({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(Cr.Provider,{value:t},e)}const x9=u.createContext({});function C9(){return u.useContext(x9)??{}}const e3=u.createContext(null);function qo(e){let t=Ht(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=u.useState(!1),l=u.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:o}=C9();if(!e.portalContainer&&o&&(n=o()),!n)return null;let s=e.children;return e.disableFocusManagement||(s=u.createElement($a,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},s)),s=u.createElement(e3.Provider,{value:l},u.createElement(v9,null,u.createElement(Ki.Provider,{value:null},s))),jt.createPortal(s,n)}function t3(){let t=u.useContext(e3)?.setContain;fe(()=>{t?.(!0)},[t])}function qr(e){let[t,n]=He(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,i]=u.useState(null);const a=u.useCallback(()=>{n(!0)},[n]),l=u.useCallback(()=>{n(!1)},[n]),o=u.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:a,close:l,toggle:o,point:r,setPoint:i}}function Xo(e,t=!0){let[n,r]=u.useState(!0),i=n&&t;return fe(()=>{if(i&&e.current&&"getAnimations"in e.current)for(let a of e.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[e,i]),n3(e,i,u.useCallback(()=>r(!1),[])),i}function Jo(e,t){let[n,r]=u.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let i=n==="exiting";return n3(e,i,u.useCallback(()=>{r(a=>a==="exiting"?"closed":a)},[])),i}function n3(e,t,n){fe(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.allSettled(r.map(a=>a.finished)).then(()=>{i||jt.flushSync(()=>{n()})}),()=>{i=!0}}},[e,t,n])}const Xr=u.createContext(null),r3=u.createContext(null),i3=u.forwardRef(function(t,n){[t,n]=pe(t,n,Xr);let r=u.useContext(zt),i=qr(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,l=Jo(n,a.isOpen),o=t.isExiting||!t.shouldSkipAnimation&&l||!1,s=hd(),{direction:d}=be();if(s){let c=t.children;return typeof c=="function"&&(c=c({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),u.createElement(u.Fragment,null,c)}return a&&!a.isOpen&&!o?null:u.createElement(D9,{...t,triggerRef:t.triggerRef,state:a,popoverRef:n,isExiting:o,dir:d})});function D9({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=u.useRef(null),l=u.useRef(null),o=u.useContext(r3),s=o&&i.trigger==="SubmenuTrigger",{popoverProps:d,underlayProps:c,arrowProps:f,placement:m,triggerAnchorPoint:h}=y9({...i,offset:i.offset??8,arrowRef:a,groupRef:s?o:l},e),p=i.popoverRef,g=Xo(p,!!m),y=i.isEntering||!i.shouldSkipAnimation&&g||!1,$=ue({...i,defaultClassName:"react-aria-Popover",values:{trigger:i.trigger||null,placement:m,isEntering:y,isExiting:t}}),x=!i.isNonModal||i.trigger==="SubmenuTrigger"||i.trigger==="PreviewTrigger",[v,C]=u.useState(i.trigger==="PreviewTrigger");fe(()=>{p.current&&C(x&&!p.current.querySelector("[role=dialog]"))},[p,x]),u.useEffect(()=>{v&&i.trigger!=="PreviewTrigger"&&(i.trigger!=="SubmenuTrigger"||Kn()!=="pointer")&&p.current&&!Ut(p.current)&&Ie(p.current)},[v,p,i.trigger]);let w=u.useMemo(()=>{let T=$.children;if(r)for(let I of r)T=u.createElement(I.Provider,{value:null},T);return T},[$.children,r]),[S,B]=u.useState(null),E=u.useCallback(()=>{i.triggerRef.current&&B(i.triggerRef.current.getBoundingClientRect().width+"px")},[i.triggerRef]);fe(E,[E]),Zr({ref:$.style?.["--trigger-width"]?void 0:i.triggerRef,onResize:E});let k={...d.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...$.style,"--trigger-width":$.style?.["--trigger-width"]||S},K=u.createElement(re.div,{...q(ie(i,{global:!0}),d),...$,id:v?i.id:void 0,role:v?"dialog":void 0,tabIndex:v?-1:void 0,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"],ref:p,slot:i.slot||void 0,style:k,dir:i.dir,"data-trigger":i.trigger,"data-placement":m,"data-entering":y||void 0,"data-exiting":t||void 0},!i.isNonModal&&u.createElement(Yo,{onDismiss:e.close}),u.createElement(i4.Provider,{value:{...f,placement:m,ref:a}},w),u.createElement(Yo,{onDismiss:e.close}));return s?u.createElement(qo,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:t,portalContainer:n??o?.current??void 0},K):u.createElement(qo,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:l,style:{display:"contents"}},u.createElement(r3.Provider,{value:l},K)))}const E9=u.createContext({});var a3={};a3={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var l3={};l3={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var o3={};o3={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var u3={};u3={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var s3={};s3={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var d3={};d3={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var c3={};c3={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var f3={};f3={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var m3={};m3={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var h3={};h3={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var p3={};p3={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var b3={};b3={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var g3={};g3={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var y3={};y3={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var $3={};$3={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var v3={};v3={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var x3={};x3={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var C3={};C3={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var D3={};D3={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var E3={};E3={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var w3={};w3={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var S3={};S3={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var P3={};P3={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var k3={};k3={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var B3={};B3={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var N3={};N3={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var A3={};A3={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var F3={};F3={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var T3={};T3={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var I3={};I3={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var M3={};M3={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var K3={};K3={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var L3={};L3={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var O3={};O3={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var z3={};z3={"ar-AE":a3,"bg-BG":l3,"cs-CZ":o3,"da-DK":u3,"de-DE":s3,"el-GR":d3,"en-US":c3,"es-ES":f3,"et-EE":m3,"fi-FI":h3,"fr-FR":p3,"he-IL":b3,"hr-HR":g3,"hu-HU":y3,"it-IT":$3,"ja-JP":v3,"ko-KR":x3,"lt-LT":C3,"lv-LV":D3,"nb-NO":E3,"nl-NL":w3,"pl-PL":S3,"pt-BR":P3,"pt-PT":k3,"ro-RO":B3,"ru-RU":N3,"sk-SK":A3,"sl-SI":F3,"sr-SP":T3,"sv-SE":I3,"tr-TR":M3,"uk-UA":K3,"zh-CN":L3,"zh-TW":O3};function w9(e){let{onContextMenu:t}=e,n=u.useRef(!1),{longPressProps:r}=Oo({onLongPressStart(){n.current=!1},onLongPress(i){n.current?n.current=!1:t?.({target:i.target,x:i.x,y:i.y})}});return t?{contextMenuProps:q(bt()?r:{},{onContextMenu(i){i.stopPropagation(),i.preventDefault(),n.current=!0;let a=i.currentTarget.getBoundingClientRect();t({target:i.currentTarget,x:i.clientX-a.x,y:i.clientY-a.y})},onKeyDown(i){if(Je()&&i.ctrlKey&&i.key==="Enter"){n.current=!1;let a=i.currentTarget;i.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let l=a.getBoundingClientRect();t({target:a,x:l.width/2,y:l.height/2})}},10)}}})}:{contextMenuProps:{}}}function V3(e,t,n){let{type:r}=e,{isOpen:i}=t;u.useEffect(()=>{n&&n.current&&m4.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let l=Ee();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:t.toggle},overlayProps:{id:l}}}function S9(e){return e&&e.__esModule?e.default:e}function Qo(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,l=Ee(),{triggerProps:o,overlayProps:s}=V3({type:r},t,n),d=(y,$,x="first")=>{if(!y||$.isDefaultPrevented())return!1;t.toggle(x)},{keyboardProps:c}=Le({isDisabled:i,shortcuts:{Enter:y=>d(a!=="longPress",y,"first")," ":y=>d(a!=="longPress",y,"first"),ArrowDown:y=>d(a!=="longPress",y,"first"),ArrowUp:y=>d(a!=="longPress",y,"last"),"Alt+Enter":y=>d(a==="longPress",y,"first"),"Alt+ ":y=>d(a==="longPress",y,"first"),"Alt+ArrowDown":y=>d(!0,y,"first"),"Alt+ArrowUp":y=>d(!0,y,"last")}}),f=ke(S9(z3),"@react-aria/menu"),{longPressProps:m}=Oo({isDisabled:i||a!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),h={preventFocusOnPress:!0,onPressStart(y){y.pointerType!=="touch"&&y.pointerType!=="keyboard"&&!i&&(Xe(y.target),t.open(y.pointerType==="virtual"?"first":null))},onPress(y){y.pointerType==="touch"&&!i&&(Xe(y.target),t.toggle())}};delete o.onPress;let{contextMenuProps:p}=w9({onContextMenu(y){let $=y.target.getBoundingClientRect();t.setPoint({x:$.x+y.x,y:$.y+y.y}),t.open()}});u.useEffect(()=>{if(t.isOpen&&a==="contextMenu"){let y=$=>{($.button===2||$.button===0&&$.ctrlKey===!0)&&W($)===document.body&&t.close()};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)}},[t,a]);let g;if(a==="press")g={...h,...c};else if(a==="longPress")g={...m,...c};else if(a==="contextMenu"){g=p;let{"aria-haspopup":y,"aria-expanded":$,"aria-controls":x,...v}=o;o=v}return{menuTriggerProps:{...o,...g,id:l},menuProps:{...s,"aria-labelledby":l,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const _3=new WeakMap;function P9(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...l}=e;!e["aria-label"]&&!e["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let o=ie(e,{labelable:!0}),{listProps:s}=Gm({...l,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return _3.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:q(o,{onKeyDown:i,onKeyUp:a},{role:"menu",...s,onKeyDown:d=>{(d.key!=="Escape"||e.shouldUseVirtualFocus)&&s.onKeyDown?.(d)}})}}function k9(e,t,n){let{id:r,key:i,closeOnSelect:a,shouldCloseOnSelect:l,isVirtualized:o,"aria-haspopup":s,onPressStart:d,onPressUp:c,onPress:f,onPressChange:m,onPressEnd:h,onClick:p,onHoverStart:g,onHoverChange:y,onHoverEnd:$,onKeyDown:x,onKeyUp:v,onFocus:C,onFocusChange:w,onBlur:S,selectionManager:B=t.selectionManager}=e,E=!!s,k=E&&e["aria-expanded"]==="true",K=e.isDisabled??B.isDisabled(i),T=e.isSelected??B.isSelected(i),I=_3.get(t),R=t.collection.getItem(i),D=e.onClose||I.onClose,M=sn(),G=()=>{if(!E&&(R?.props?.onAction?R.props.onAction():e.onAction&&e.onAction(i),I.onAction)){let ve=I.onAction;ve(i,R?.value)}},O="menuitem";E||(B.selectionMode==="single"?O="menuitemradio":B.selectionMode==="multiple"&&(O="menuitemcheckbox"));let Y=mt(),P=mt(),N=mt(),_={id:r,"aria-disabled":K||void 0,role:O,"aria-label":e["aria-label"],"aria-labelledby":Y,"aria-describedby":[e["aria-describedby"],P,N].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};if(B.selectionMode!=="none"&&!E&&(_["aria-checked"]=T),o){let ve=Number(R?.index);_["aria-posinset"]=Number.isNaN(ve)?void 0:ve+1,_["aria-setsize"]=Vo(t.collection)}let Q=u.useRef(!1),X=ve=>{m?.(ve),Q.current=ve},A=u.useRef(null),F=ve=>{ve.pointerType!=="keyboard"&&(A.current={pointerType:ve.pointerType}),ve.pointerType==="mouse"&&(Q.current||ve.target.click()),c?.(ve)},z=ve=>{p?.(ve),G(),Ws(ve,M,R.props.href,R?.props.routerOptions);let on=A.current?.pointerType==="keyboard"?A.current?.key==="Enter"||B.selectionMode==="none"||B.isLink(i):B.selectionMode!=="multiple"||B.isLink(i);on=l??a??on,D&&!E&&on&&D(),A.current=null},{itemProps:L,isFocused:J}=Rr({id:r,selectionManager:B,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:I.shouldUseVirtualFocus}),{pressProps:le,isPressed:Ke}=It({onPressStart:d,onPress:f,onPressUp:F,onPressChange:X,onPressEnd:h,isDisabled:K}),{hoverProps:V}=ze({isDisabled:K,onHoverStart(ve){!Wt()&&!(k&&s)&&(B.setFocused(!0),B.setFocusedKey(i)),g?.(ve)},onHoverChange:y,onHoverEnd:$}),{keyboardProps:j}=Le({shortcuts:{" ":ve=>{A.current={pointerType:"keyboard",key:" "},W(ve).click(),Ln("keyboard")},Enter:ve=>{A.current={pointerType:"keyboard",key:"Enter"};let on=W(ve);if(on.tagName!=="A"){on.click(),Ln("keyboard");return}return Ln("keyboard"),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:x,onKeyUp:v}),{focusableProps:me}=zn({onBlur:S,onFocus:C,onFocusChange:w},n),he=ie(R?.props);delete he.id;let Bt=Pi(R?.props);return{menuItemProps:{..._,...q(he,Bt,E?{onFocus:L.onFocus,"data-collection":L["data-collection"],"data-key":L["data-key"]}:L,le,V,j,me,I.shouldUseVirtualFocus||E?{onMouseDown:ve=>ve.preventDefault()}:void 0,K?void 0:{onClick:z}),tabIndex:L.tabIndex!=null&&k&&!I.shouldUseVirtualFocus?-1:L.tabIndex},labelProps:{id:Y},descriptionProps:{id:P},keyboardShortcutProps:{id:N},isFocused:J,isFocusVisible:J&&B.isFocused&&Wt()&&!k,isSelected:T,isPressed:Ke,isDisabled:K}}function B9(e){let{heading:t,"aria-label":n}=e,r=Ee();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}function eu(e){let t=qr(e),[n,r]=u.useState(null),[i,a]=u.useState([]),l=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(d=null){r(d),t.open()},toggle(d=null){r(d),t.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(d,c)=>{a(f=>c>f.length?f:[...f.slice(0,c),d])},closeSubmenu:(d,c)=>{a(f=>f[c]===d?f.slice(0,c):f)}}}class N9{constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||n.has(l.key)))for(let o of l.childNodes)r(o)};for(let l of t)r(l);let i=null,a=0;for(let[l,o]of this.keyMap)i?(i.nextKey=l,o.prevKey=i.key):(this.firstKey=l,o.prevKey=void 0),o.type==="item"&&(o.index=a++),i=o,i.nextKey=void 0;this.lastKey=i?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}}function A9(e){let{onExpandedChange:t}=e,[n,r]=He(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=Hr(e),a=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),l=jo(e,u.useCallback(s=>new N9(s,{expandedKeys:n}),[n]),null);return u.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:a,toggleKey:s=>{r(F9(n,s))},setExpandedKeys:r,selectionManager:new tr(l,i)}}function F9(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const R3=u.createContext(null),tu=u.createContext(null),Ba=u.createContext(null),Na=u.createContext(null);function Aa(e){let t=eu(e),n=u.useRef(null),{menuTriggerProps:r,menuProps:i}=Qo({...e,type:"menu"},t,n),a=u.useRef(null);return hd()?null:u.createElement(Pe,{values:[[R3,{...i,ref:a}],[zt,t],[Ba,t],[Xr,{trigger:"MenuTrigger",triggerRef:n,scrollRef:a,placement:"bottom start","aria-labelledby":i["aria-labelledby"],offset:e.trigger==="contextMenu"?0:void 0}]]},u.createElement(Q4,{...r,ref:n,isPressed:t.isOpen},e.children))}const T9=u.createContext(null),Cs=class Cs extends et{filter(t,n,r){let i=t.getItem(this.firstChildKey);if(i&&r(i.textValue,this)){let a=this.clone();return n.addDescendants(a,t),a}return null}};Cs.type="submenutrigger";let j3=Cs;const H3=u.forwardRef(function(t,n){return[t,n]=pe(t,n,R3),u.createElement(fn,{content:u.createElement(mn,t)},r=>u.createElement(I9,{props:t,collection:r,menuRef:n}))});function I9({props:e,collection:t,menuRef:n}){[e,n]=pe(e,n,$r);let{filter:r,...i}=e,a=u.useMemo(()=>r?t.filter(r):t,[t,r]),l=A9({...e,collection:a,children:void 0}),o=u.useContext(Ba),{isVirtualized:s,CollectionRoot:d}=u.useContext(ge),{menuProps:c}=P9({...e,isVirtualized:s,onClose:e.onClose||o?.close},l,n),f=ue({...e,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),m=null;l.collection.size===0&&e.renderEmptyState&&(m=u.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let h=ie(e,{global:!0});return u.createElement($a,null,u.createElement(re.div,{...q(h,f,c),ref:n,slot:e.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:e.onScroll},u.createElement(Pe,{values:[[tu,l],[ko,{elementType:"div"}],[Cd,{name:"MenuSection",render:K9}],[T9,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[Jr,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[$r,null],[vr,null],[Na,l.selectionManager],[Ba,o??eu({})]]},u.createElement(ga,null,u.createElement(d,{collection:l.collection,persistedKeys:Ed(l.selectionManager.focusedKey),scrollRef:n}))),m))}class M9 extends tr{constructor(t,n){super(t.collection,n),this.parent=t}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}}function K9(e,t,n,r="react-aria-MenuSection"){let i=u.useContext(tu),{CollectionBranch:a}=u.useContext(ge),[l,o]=un(),{headingProps:s,groupProps:d}=B9({heading:o,"aria-label":n.props["aria-label"]??void 0}),c=ue({...e,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),f=u.useContext(Na),m=Hr(e),h=e.selectionMode!=null?new M9(f,m):f,p=qe(Jr)?.shouldCloseOnSelect,g=ie(e,{global:!0});return delete g.id,u.createElement(re.section,{...q(g,c,d),ref:t},u.createElement(Pe,{values:[[Po,{...s,ref:l}],[Na,h],[Jr,{shouldCloseOnSelect:e.shouldCloseOnSelect??p}]]},u.createElement(a,{collection:i.collection,parent:n})))}const Jr=u.createContext(null),U3=yt(Ii,function(t,n,r){[t,n]=pe(t,n,Jr);let i=qe(Jr)?.id,a=u.useContext(tu),l=Te(n),o=u.useContext(Na),{isVirtualized:s}=u.useContext(ge),{menuItemProps:d,labelProps:c,descriptionProps:f,keyboardShortcutProps:m,...h}=k9({...t,id:i,key:r.key,selectionManager:o,isVirtualized:s},a,l),{hoverProps:p,isHovered:g}=ze({isDisabled:h.isDisabled}),y=ue({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...h,isHovered:g,isFocusVisible:h.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!t["aria-haspopup"],isOpen:t["aria-expanded"]==="true"}}),$=t.href?re.a:re.div,x=ie(t,{global:!0});return delete x.id,delete x.onClick,u.createElement($,{...q(x,y,d,p),ref:l,"data-disabled":h.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-selected":h.isSelected||void 0,"data-selection-mode":o.selectionMode==="none"?void 0:o.selectionMode,"data-has-submenu":!!t["aria-haspopup"]||void 0,"data-open":t["aria-expanded"]==="true"||void 0},u.createElement(Pe,{values:[[tt,{slots:{[Nt]:c,label:c,description:f}}],[E9,m],[zr,{isSelected:h.isSelected}]]},y.children))});function L9(e,t){let{role:n="dialog"}=e,r=mt();r=e["aria-label"]?void 0:r;let i=mt();i=n==="alertdialog"&&!e["aria-describedby"]?i:void 0;let a=u.useRef(!1);u.useEffect(()=>{if(t.current&&!Ut(t.current)){Ie(t.current);let s=setTimeout(()=>{(ce()===t.current||ce()===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Ie(t.current)),a.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),t3();let l=u.useRef(!1);u.useEffect(()=>{if(process.env.NODE_ENV!=="production"&&!l.current&&t.current){let s=t.current,d=s.hasAttribute("aria-label"),c=s.hasAttribute("aria-labelledby");!d&&!c&&(console.warn("A dialog must have a title for accessibility. Either provide an aria-label or aria-labelledby prop, or render a heading element inside the dialog."),l.current=!0)}});let o=e["aria-describedby"]??i;return{dialogProps:{...ie(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]??r,"aria-describedby":o,onBlur:s=>{a.current&&s.stopPropagation()}},titleProps:{id:r},contentProps:{id:i}}}const W3=u.createContext(null),zt=u.createContext(null);function O9(e){let t=eu(e),n=u.useRef(null),{triggerProps:r,overlayProps:i}=V3({type:"dialog"},t,n);return r.id=Ee(),i["aria-labelledby"]=r.id,u.createElement(Pe,{values:[[zt,t],[Ba,t],[W3,i],[Xr,{trigger:"DialogTrigger",triggerRef:n,id:i.id,"aria-labelledby":i["aria-labelledby"]}]]},u.createElement(Q4,{...r,ref:n,isPressed:t.isOpen},e.children))}const G3=u.forwardRef(function(t,n){let r=t["aria-labelledby"];[t,n]=pe(t,n,W3);let{dialogProps:i,titleProps:a,contentProps:l}=L9({...t,"aria-labelledby":r},n),o=u.useContext(zt);!i["aria-label"]&&!i["aria-labelledby"]&&(t["aria-labelledby"]?i["aria-labelledby"]=t["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=ue({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:o?.close||(()=>{})}}),d=ie(t,{global:!0});return u.createElement(re.section,{...q(d,s,i),render:t.render,ref:n,slot:t.slot||void 0},u.createElement(Pe,{values:[[Gi,{slots:{[Nt]:{},title:{...a,level:2}}}],[tt,{slots:{[Nt]:{},description:l}}],[vt,{slots:{[Nt]:{},close:{onPress:()=>o?.close()}}}]]},s.children))});var Z3={};Z3={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var Y3={};Y3={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var q3={};q3={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var X3={};X3={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var J3={};J3={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var Q3={};Q3={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var eh={};eh={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var th={};th={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var nh={};nh={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var rh={};rh={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehtoa`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Siirtyi ryhmään ${e.groupTitle}, jossa ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehto`,other:()=>`${t.number(e.groupCount)} vaihtoehtoa`})}.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var ih={};ih={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var ah={};ah={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var lh={};lh={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var oh={};oh={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var uh={};uh={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var sh={};sh={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var dh={};dh={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var ch={};ch={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var fh={};fh={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var mh={};mh={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var hh={};hh={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var ph={};ph={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var bh={};bh={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var gh={};gh={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var yh={};yh={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var $h={};$h={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var vh={};vh={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var xh={};xh={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var Ch={};Ch={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var Dh={};Dh={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var Eh={};Eh={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var wh={};wh={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var Sh={};Sh={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var Ph={};Ph={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var kh={};kh={"ar-AE":Z3,"bg-BG":Y3,"cs-CZ":q3,"da-DK":X3,"de-DE":J3,"el-GR":Q3,"en-US":eh,"es-ES":th,"et-EE":nh,"fi-FI":rh,"fr-FR":ih,"he-IL":ah,"hr-HR":lh,"hu-HU":oh,"it-IT":uh,"ja-JP":sh,"ko-KR":dh,"lt-LT":ch,"lv-LV":fh,"nb-NO":mh,"nl-NL":hh,"pl-PL":ph,"pt-BR":bh,"pt-PT":gh,"ro-RO":yh,"ru-RU":$h,"sk-SK":vh,"sl-SI":xh,"sr-SP":Ch,"sv-SE":Dh,"tr-TR":Eh,"uk-UA":wh,"zh-CN":Sh,"zh-TW":Ph};function z9(e){return e&&e.__esModule?e.default:e}function V9(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:l,layoutDelegate:o,shouldFocusWrap:s,isReadOnly:d,isDisabled:c}=e,f=u.useRef(null);n=n??f;let m=ke(z9(kh),"@react-aria/combobox"),{menuTriggerProps:h,menuProps:p}=Qo({type:"listbox",isDisabled:c||d},t,n);ya.set(t,{id:p.id});let{collection:g}=t,{disabledKeys:y}=t.selectionManager,$=u.useMemo(()=>l||new _r({collection:g,disabledKeys:y,ref:a,layoutDelegate:o}),[l,o,g,y,a]),{collectionProps:x}=xa({selectionManager:t.selectionManager,keyboardDelegate:$,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:i,isVirtualized:!0}),v=sn(),{keyboardProps:C}=Le({shortcuts:{Enter:V=>{let j=t.isOpen;if(t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let me=t.collection.getItem(t.selectionManager.focusedKey);if(me?.props.href){let he=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);return he instanceof HTMLAnchorElement&&v.open(he,V,me.props.href,me.props.routerOptions),t.close(),{shouldPreventDefault:j}}else if(me?.props.onAction)return me.props.onAction(),t.close(),{shouldPreventDefault:j}}return t.commit(),{shouldPreventDefault:j}},Tab:()=>{if(t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let V=t.collection.getItem(t.selectionManager.focusedKey);if(V?.props.href)return t.close(),{shouldPreventDefault:!1};if(V?.props.onAction)return V.props.onAction(),t.close(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}}return t.isOpen&&t.commit(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}},Escape:()=>{let V=!1;return(!t.selectionManager.isEmpty||t.inputValue===""||e.allowsCustomValue)&&(V=!0),t.revert(),{shouldContinuePropagation:V}}}}),{keyboardProps:w}=Le({shortcuts:{ArrowDown:()=>(t.open("first","manual"),{shouldPreventDefault:!1}),ArrowUp:()=>(t.open("last","manual"),{shouldPreventDefault:!1}),ArrowLeft:()=>(t.selectionManager.setFocusedKey(null),{shouldPreventDefault:!1}),ArrowRight:()=>(t.selectionManager.setFocusedKey(null),{shouldPreventDefault:!1})},allowRepeats:!0}),S=V=>{let j=n?.current&&n.current===V.relatedTarget,me=ae(r.current,V.relatedTarget);j||me||(e.onBlur&&e.onBlur(V),t.setFocused(!1))},B=V=>{t.isFocused||(e.onFocus&&e.onFocus(V),t.setFocused(!0))},E=_9([t.selectionManager.selectedKeys,t.selectionManager.selectionMode]),{isInvalid:k,validationErrors:K,validationDetails:T}=t.displayValidation,{labelProps:I,inputProps:R,descriptionProps:D,errorMessageProps:M}=p0({...e,isRequired:e.selectionMode==="multiple"?e.isRequired&&t.selectionManager.isEmpty:e.isRequired,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:at(t.isOpen&&x.onKeyDown,C.onKeyDown,w.onKeyDown,e.onKeyDown),onBlur:S,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:B,autoComplete:"off",validate:void 0,[vo]:t,"aria-describedby":[E,e["aria-describedby"]].filter(Boolean).join(" ")||void 0},i);pa(i,t.defaultValue,t.setValue);let G=V=>{V.pointerType==="touch"&&(i.current?.focus(),t.toggle(null,"manual"))},O=V=>{V.pointerType!=="touch"&&(i.current?.focus(),t.toggle(V.pointerType==="keyboard"||V.pointerType==="virtual"?"first":null,"manual"))},Y=Tt({id:h.id,"aria-label":m.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||I.id}),P=Tt({id:p.id,"aria-label":m.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||I.id}),N=u.useRef(0),_=V=>{if(c||d)return;if(V.timeStamp-N.current<500){V.preventDefault(),i.current?.focus();return}let j=W(V).getBoundingClientRect(),me=V.changedTouches[0],he=Math.ceil(j.left+.5*j.width),Bt=Math.ceil(j.top+.5*j.height);me.clientX===he&&me.clientY===Bt&&(V.preventDefault(),i.current?.focus(),t.toggle(null,"manual"),N.current=V.timeStamp)},Q=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0,X=Q?.parentKey??null,A=t.selectionManager.focusedKey??null,F=u.useRef(X),z=u.useRef(A);u.useEffect(()=>{if(Si()&&Q!=null&&A!=null&&A!==z.current){let V=t.selectionManager.isSelected(A),j=X!=null?t.collection.getItem(X):null,me=j?.["aria-label"]||(typeof j?.rendered=="string"?j.rendered:"")||"",he=m.format("focusAnnouncement",{isGroupChange:(j&&X!==F.current)??!1,groupTitle:me,groupCount:j?[...Ne(j,t.collection)].length:0,optionText:Q["aria-label"]||Q.textValue||"",isSelected:V});$t(he)}F.current=X,z.current=A});let L=Vo(t.collection),J=u.useRef(L),le=u.useRef(t.isOpen);u.useEffect(()=>{let V=t.isOpen!==le.current&&(t.selectionManager.focusedKey==null||Si());if(t.isOpen&&(V||L!==J.current)){let j=m.format("countAnnouncement",{optionCount:L});$t(j)}J.current=L,le.current=t.isOpen});let Ke=u.useRef(t.selectedKey);return u.useEffect(()=>{if(Si()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Ke.current){let V=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",j=m.format("selectedAnnouncement",{optionText:V});$t(j)}Ke.current=t.selectedKey}),u.useEffect(()=>{if(t.isOpen)return Ho([i.current,r.current].filter(V=>V!=null))},[t.isOpen,i,r]),Tr(()=>{!Q&&i.current&&ce(se(i.current))===i.current&&ol(i.current,null)},[Q]),lt(a,"react-aria-item-action",t.isOpen?()=>{t.close()}:void 0),{labelProps:{...I,onClick:"htmlFor"in I&&I.htmlFor||e.isDisabled?void 0:()=>{i.current?.focus(),Ln("keyboard")}},buttonProps:{...h,...Y,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:G,onPressStart:O,isDisabled:c||d},inputProps:q(R,{role:"combobox","aria-expanded":h["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":Q?Mm(t,Q.key):void 0,onTouchEnd:_,autoCorrect:"off",spellCheck:"false"}),listBoxProps:q(p,P,{onAction:void 0,autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),valueProps:{id:E},descriptionProps:D,errorMessageProps:M,isInvalid:k,validationErrors:K,validationDetails:T}}function _9(e=[]){let t=Ee(),[n,r]=u.useState(!0),[i,a]=u.useState(e);return i.some((l,o)=>!Object.is(l,e[o]))&&(r(!0),a(e)),u.useEffect(()=>{n&&!document.getElementById(t)&&r(!1)},[t,n,i]),n?t:void 0}function R9(e){let{defaultFilter:t,menuTrigger:n="input",allowsEmptyCollection:r=!1,allowsCustomValue:i,shouldCloseOnBlur:a=!0,selectionMode:l="single"}=e,[o,s]=u.useState(!1),[d,c]=u.useState(!1),[f,m]=u.useState(null),h=u.useMemo(()=>e.defaultValue!==void 0?e.defaultValue:l==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,l]),p=u.useMemo(()=>e.value!==void 0?e.value:l==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,l]),[g,y]=He(p,h,e.onChange),$=l==="single"&&Array.isArray(g)?g[0]:g,x=oe=>{if(l==="single"){let Se=Array.isArray(oe)?oe[0]??null:oe;y(Se),Se!==$&&e.onSelectionChange?.(Se)}else{let Se=[];Array.isArray(oe)?Se=oe:oe!=null&&(Se=[oe]),y(Se)}},{collection:v,selectionManager:C,disabledKeys:w}=Ca({...e,items:e.items??e.defaultItems,selectionMode:l,disallowEmptySelection:l==="single",allowDuplicateSelectionEvents:!0,selectedKeys:u.useMemo(()=>H9($),[$]),onSelectionChange:oe=>{if(oe!=="all")if(l==="single"){let Se=oe.values().next().value??null;Se===$?(e.onSelectionChange?.(Se),z(),X()):x(Se)}else x([...oe])}}),S=l==="single"?C.firstSelectedKey:null,B=u.useMemo(()=>[...C.selectedKeys].map(oe=>v.getItem(oe)).filter(oe=>oe!=null),[C.selectedKeys,v]),[E,k]=He(e.inputValue,Nh(e.defaultInputValue,S,v)||"",e.onInputChange),[K]=u.useState($),[T]=u.useState(E),I=v,R=u.useMemo(()=>e.items!=null||!t?v:j9(v,E,t),[v,E,t,e.items]),[D,M]=u.useState(R),G=u.useRef("focus"),Y=qr({...e,onOpenChange:oe=>{e.onOpenChange&&e.onOpenChange(oe,oe?G.current:void 0),C.setFocused(oe),oe||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),P=(oe=null,Se)=>{let yi=Se==="manual"||Se==="focus"&&n==="focus";(r||R.size>0||yi&&I.size>0||e.items)&&(yi&&!Y.isOpen&&e.items===void 0&&s(!0),G.current=Se,m(oe),Y.open())},N=(oe=null,Se)=>{let yi=Se==="manual"||Se==="focus"&&n==="focus";!(r||R.size>0||yi&&I.size>0||e.items)&&!Y.isOpen||(yi&&!Y.isOpen&&e.items===void 0&&s(!0),Y.isOpen||(G.current=Se),Q(oe))},_=u.useCallback(()=>{M(o?I:R)},[o,I,R]),Q=u.useCallback((oe=null)=>{Y.isOpen&&_(),m(oe),Y.toggle()},[Y,_]),X=u.useCallback(()=>{Y.isOpen&&(_(),Y.close())},[Y,_]),[A,F]=u.useState(E),z=()=>{let oe=S!=null?v.getItem(S)?.textValue??"":"";F(oe),k(oe)},L=u.useRef($),J=u.useRef(S!=null?v.getItem(S)?.textValue??"":"");u.useEffect(()=>{d&&(R.size>0||r)&&!Y.isOpen&&E!==A&&n!=="manual"&&P(null,"input"),!o&&!r&&Y.isOpen&&R.size===0&&X(),$!=null&&$!==L.current&&l==="single"&&X(),E!==A&&(C.setFocusedKey(null),s(!1),l==="single"&&E===""&&(e.inputValue===void 0||p===void 0)&&x(null)),$!==L.current&&(e.inputValue===void 0||p===void 0)?z():A!==E&&F(E);let oe=S!=null?v.getItem(S)?.textValue??"":"";!d&&S!=null&&e.inputValue===void 0&&S===L.current&&J.current!==oe&&(F(oe),k(oe)),L.current=$,J.current=oe});let le=ma({...e,value:u.useMemo(()=>Array.isArray($)&&$.length===0?null:{inputValue:E,value:$,selectedKey:S},[E,S,$])}),Ke=()=>{i&&S==null?V():j()},V=()=>{if(l==="multiple"){F(E),X();return}let oe=null;L.current=oe,x(oe),X()},j=(oe=!1)=>{if(p!==void 0&&e.inputValue!==void 0){let Se=S!=null?v.getItem(S)?.textValue??"":"";(oe||l==="multiple"||E!==Se)&&(e.onSelectionChange?.(S),e.onChange?.($)),F(Se),X()}else z(),X()};const me=()=>{if(i){const oe=S!=null?v.getItem(S)?.textValue??"":"";E===oe?j():V()}else j()};let he=()=>{Y.isOpen&&C.focusedKey!=null?C.isSelected(C.focusedKey)&&l==="single"?j(!0):C.select(C.focusedKey):me()},Bt=u.useRef([E,$]),ve=oe=>{oe?(Bt.current=[E,$],n==="focus"&&!e.isReadOnly&&P(null,"focus")):(a&&me(),(E!==Bt.current[0]||$!==Bt.current[1])&&le.commitValidation()),c(oe)},on=u.useMemo(()=>Y.isOpen?o?I:R:D,[Y.isOpen,I,R,o,D]),S$=e.defaultSelectedKey??(l==="single"?K:null);return{...le,...Y,focusStrategy:f,toggle:N,open:P,close:me,selectionManager:C,value:$,defaultValue:h??K,setValue:x,selectedKey:S,selectedItems:B,defaultSelectedKey:S$,setSelectedKey:x,disabledKeys:w,isFocused:d,setFocused:ve,selectedItem:B[0]??null,collection:on,inputValue:E,defaultInputValue:Nh(e.defaultInputValue,S$,v)??T,setInputValue:k,commit:he,revert:Ke}}function j9(e,t,n){return new _o(Bh(e,e,t,n))}function Bh(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let l=Bh(e,Ne(a,e),n,r);[...l].some(o=>o.type==="item")&&i.push({...a,childNodes:l})}else a.type==="item"&&r(a.textValue,n)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}function Nh(e,t,n){return e==null&&t!=null?n.getItem(t)?.textValue??"":e}function H9(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Ah(e){let t=Qn({usage:"search",...e}),n=u.useCallback((a,l)=>l.length===0?!0:(a=a.normalize("NFC"),l=l.normalize("NFC"),t.compare(a.slice(0,l.length),l)===0),[t]),r=u.useCallback((a,l)=>l.length===0?!0:(a=a.normalize("NFC"),l=l.normalize("NFC"),t.compare(a.slice(-l.length),l)===0),[t]),i=u.useCallback((a,l)=>{if(l.length===0)return!0;a=a.normalize("NFC"),l=l.normalize("NFC");let o=0,s=l.length;for(;o+s<=a.length;o++){let d=a.slice(o,o+s);if(t.compare(l,d)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function U9(e={}){let{locale:t}=be();return u.useMemo(()=>new Intl.ListFormat(t,e),[t,e])}const W9=u.createContext(null),nu=u.createContext(null),G9=Vn(function(t,n){[t,n]=pe(t,n,W9);let{children:r,isDisabled:i=!1,isInvalid:a=!1,isRequired:l=!1,isReadOnly:o=!1}=t,s=u.useMemo(()=>u.createElement(Ur.Provider,{value:{items:t.items??t.defaultItems}},typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:l,defaultChildren:null,isReadOnly:o}):r),[r,i,a,l,o,t.items,t.defaultItems]);return u.createElement(fn,{content:s},d=>u.createElement(Y9,{props:t,collection:d,comboBoxRef:n}))}),Z9=[pn,vt,Jn,vr,Xn,tt];function Y9({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:i="key",allowsCustomValue:a}=e;a&&(i="text");let{validationBehavior:l}=qe(ha)||{},o=e.validationBehavior??l??"native",{contains:s}=Ah({sensitivity:"base"}),d=R9({...e,defaultFilter:e.defaultFilter||s,items:e.items,children:void 0,collection:t,validationBehavior:o}),c=u.useRef(null),f=u.useRef(null),m=u.useRef(null),h=u.useRef(null),p=u.useRef(null),[g,y]=un(!e["aria-label"]&&!e["aria-labelledby"]),[$,x]=u.useState("label"),{buttonProps:v,inputProps:C,listBoxProps:w,labelProps:S,descriptionProps:B,errorMessageProps:E,valueProps:k,...K}=V9({...mr(e),label:y,inputRef:f,buttonRef:c,listBoxRef:h,popoverRef:p,name:i==="text"?r:void 0,validationBehavior:o,labelElementType:$},d),[T,I]=u.useState(null),R=u.useCallback(()=>{if(f.current&&!m.current){let P=c.current?.getBoundingClientRect(),N=f.current.getBoundingClientRect(),_=P?Math.min(P.left,N.left):N.left,Q=P?Math.max(P.right,N.right):N.right;I(Q-_+"px")}},[c,f,I]);Zr({ref:f,onResize:R});let D=u.useMemo(()=>({get current(){return m.current||f.current}}),[m,f]),M=u.useMemo(()=>({isOpen:d.isOpen,isDisabled:e.isDisabled||!1,isInvalid:K.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1}),[d.isOpen,e.isDisabled,K.isInvalid,e.isRequired,e.isReadOnly]),G=ue({...e,values:M,defaultClassName:"react-aria-ComboBox"}),O=ie(e,{global:!0});delete O.id;let Y=[];if(r&&i==="key"){let P=Array.isArray(d.value)?d.value:[d.value];P.length===0&&(P=[null]),Y=P.map((N,_)=>u.createElement("input",{key:_,type:"hidden",name:r,form:e.form,value:N??""}))}return u.createElement(Pe,{values:[[nu,d],[pn,{...S,elementType:$,ref:g}],[vt,{...v,ref:c,isPressed:d.isOpen}],[Jn,{...C,ref:f}],[vr,{...C,ref:u.useCallback(P=>{f.current=P,P&&x(P.tagName.toLowerCase()==="input"?"label":"span")},[]),value:d.inputValue,onChange:P=>d.setInputValue(P)}],[zt,d],[Xr,{ref:p,triggerRef:D,scrollRef:h,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":T},clearContexts:Z9}],[Ur,{...w,ref:h}],[Sn,d],[tt,{slots:{description:B,errorMessage:E}}],[Xn,{ref:m,isInvalid:K.isInvalid,isDisabled:e.isDisabled||!1}],[fa,K],[q9,k]]},u.createElement(re.div,{...O,...G,ref:n,slot:e.slot||void 0,"data-focused":d.isFocused||void 0,"data-open":d.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-invalid":K.isInvalid||void 0,"data-required":e.isRequired||void 0},G.children,Y))}const q9=u.createContext(null),X9=["day","month","year"],J9={hour:1,minute:2,second:3};function Q9(e,t){let{autoComplete:n,isDisabled:r,name:i}=e,{visuallyHiddenProps:a}=Dn({style:{position:"fixed",top:0,left:0}}),l=60;t.granularity==="second"?l=1:t.granularity==="hour"&&(l=3600);let o="";t.value&&(t.granularity==="day"?o=Ve(t.value).toString():o=Qt("timeZone"in t.value?a6(t.value):t.value).toString());let s=t.granularity==="day"?"date":"datetime-local",d=["hour","minute","second"],c=0;return d.includes(t.granularity)&&(c=J9[t.granularity],d=d.slice(0,c)),{containerProps:{...a,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:n,disabled:r,type:s,form:"",name:i,step:l,value:o,onChange:f=>{let m=W(f).value.toString();if(m)try{let h=b6(m);if(t.granularity==="day"&&(h=p6(m)),"setSegment"in t)for(let p in h)X9.includes(p)&&t.setSegment(p,h[p]),d.includes(p)&&t.setSegment(p,h[p]);t.setValue(h)}catch{}}}}}function e8(e){let{state:t}=e,{containerProps:n,inputProps:r}=Q9({...e},t);return u.createElement("div",{...n,"data-testid":"hidden-dateinput-container"},u.createElement("input",r))}var Fh={};Fh={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Th={};Th={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Ih={};Ih={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Mh={};Mh={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Kh={};Kh={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var Lh={};Lh={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var Oh={};Oh={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var zh={};zh={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var Vh={};Vh={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var _h={};_h={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var Rh={};Rh={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var jh={};jh={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var Hh={};Hh={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Uh={};Uh={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var Wh={};Wh={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var Gh={};Gh={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var Zh={};Zh={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var Yh={};Yh={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var qh={};qh={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var Xh={};Xh={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var Jh={};Jh={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var Qh={};Qh={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var ep={};ep={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var tp={};tp={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var np={};np={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var rp={};rp={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var ip={};ip={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var ap={};ap={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var lp={};lp={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var op={};op={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var up={};up={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var sp={};sp={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var dp={};dp={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var cp={};cp={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var ru={};ru={"ar-AE":Fh,"bg-BG":Th,"cs-CZ":Ih,"da-DK":Mh,"de-DE":Kh,"el-GR":Lh,"en-US":Oh,"es-ES":zh,"et-EE":Vh,"fi-FI":_h,"fr-FR":Rh,"he-IL":jh,"hr-HR":Hh,"hu-HU":Uh,"it-IT":Wh,"ja-JP":Gh,"ko-KR":Zh,"lt-LT":Yh,"lv-LV":qh,"nb-NO":Xh,"nl-NL":Jh,"pl-PL":Qh,"pt-BR":ep,"pt-PT":tp,"ro-RO":np,"ru-RU":rp,"sk-SK":ip,"sl-SI":ap,"sr-SP":lp,"sv-SE":op,"tr-TR":up,"uk-UA":sp,"zh-CN":dp,"zh-TW":cp};function t8(e,t,n){let{direction:r}=be(),i=u.useMemo(()=>Rm(t),[t]),{keyboardProps:a}=Le({shortcuts:{"Alt+ArrowDown":()=>{if("setOpen"in e){e.setOpen(!0);return}return!1},"Alt+ArrowUp":()=>{if("setOpen"in e){e.setOpen(!0);return}return!1},ArrowLeft:s=>{if(n)return!1;if(r==="rtl"){if(t.current){let d=W(s),c=fp(t.current,d.getBoundingClientRect().left,-1);if(c){c.focus();return}}}else{i.focusPrevious();return}return!1},ArrowRight:s=>{if(n)return!1;if(r==="rtl"){if(t.current){let d=W(s),c=fp(t.current,d.getBoundingClientRect().left,1);if(c){c.focus();return}}}else{i.focusNext();return}return!1}},allowRepeats:!0}),l=()=>{if(!t.current)return;let s=window.event?W(window.event):null,d=Ae(t.current,{tabbable:!0});if(s&&(d.currentNode=s,s=d.previousNode()),!s){let c;do c=d.lastChild(),c&&(s=c);while(c)}for(;s?.hasAttribute("data-placeholder");){let c=d.previousNode();if(c&&c.hasAttribute("data-placeholder"))s=c;else break}s&&s.focus()},{pressProps:o}=It({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(s){s.pointerType==="mouse"&&l()},onPress(s){(s.pointerType==="touch"||s.pointerType==="pen")&&l()}});return q(o,a)}function fp(e,t,n){let r=Ae(e,{tabbable:!0}),i=r.nextNode(),a=null,l=1/0;for(;i;){let s=i.getBoundingClientRect().left-t,d=Math.abs(s);Math.sign(s)===n&&d<l&&(a=i,l=d),i=r.nextNode()}return a}function n8(e){return e&&e.__esModule?e.default:e}const mp=new WeakMap,iu="__reactAriaDateFieldRole",r8="__reactAriaDateFieldFocusManager";function hp(e,t,n){let{isInvalid:r,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:l,fieldProps:o,descriptionProps:s,errorMessageProps:d}=Do({...e,labelElementType:"span",isInvalid:r,errorMessage:e.errorMessage||i}),c=u.useRef(null),{focusWithinProps:f}=jn({...e,onFocusWithin(k){c.current=t.value,e.onFocus?.(k)},onBlurWithin:k=>{t.confirmPlaceholder(),t.value!==c.current&&t.commitValidation(),e.onBlur?.(k)},onFocusWithinChange:e.onFocusChange}),m=ke(n8(ru),"@react-aria/datepicker"),h=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",p=t.maxGranularity==="hour"?"time":"date",g=t.value?m.format(h,{[p]:t.formatValue({month:"long"})}):"",y=xn(g),$=e[iu]==="presentation"?o["aria-describedby"]:[y["aria-describedby"],o["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[r8],v=u.useMemo(()=>x||Rm(n),[x,n]),C=t8(t,n,e[iu]==="presentation");mp.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:$,focusManager:v});let w=u.useRef(e.autoFocus),S;e[iu]==="presentation"?S={role:"presentation"}:S=q(o,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":$}),u.useEffect(()=>{w.current&&v.focusFirst(),w.current=!1},[v]),pa(e.inputRef,t.defaultValue,t.setValue),Eo({...e,focus(){v.focusFirst()}},t,e.inputRef);let B={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(B.type="text",B.hidden=!0,B.required=e.isRequired,B.onChange=()=>{});let E=ie(e);return{labelProps:{...l,onClick:()=>{v.focusFirst()}},fieldProps:q(E,S,C,f,{onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,style:{unicodeBidi:"isolate"}}),inputProps:B,descriptionProps:s,errorMessageProps:d,isInvalid:r,validationErrors:i,validationDetails:a}}function i8(e){return e&&e.__esModule?e.default:e}function a8(){let{locale:e}=be(),t=ad(i8(ru),"@react-aria/datepicker");return u.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new l8(e,t)}},[e,t])}class l8{constructor(t,n){this.locale=t,this.dictionary=n}of(t){return this.dictionary.getStringForLocale(t,this.locale)}}function o8(e,t,n){let r=u.useRef(""),{locale:i,direction:a}=be(),l=a8(),{ariaLabel:o,ariaLabelledBy:s,ariaDescribedBy:d,focusManager:c}=mp.get(t),f=e.isPlaceholder?"":e.text,m=u.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),h=Ye({month:"long",timeZone:m.timeZone}),p=Ye({hour:"numeric",hour12:m.hour12,timeZone:m.timeZone});if(e.type==="month"&&!e.isPlaceholder){let N=h.format(t.dateValue);f=N!==f?`${f} – ${N}`:N}else e.type==="hour"&&!e.isPlaceholder&&(f=p.format(t.dateValue));let{spinButtonProps:g}=$x({value:e.value??void 0,textValue:f,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{r.current="",t.decrementToMin(e.type)}}),y=u.useMemo(()=>new $c(i,{maximumFractionDigits:0}),[i]),$=()=>{if(e.text===e.placeholder&&c.focusPrevious(),y.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let N=e.text.slice(0,-1),_=y.parse(N);N=_===0?"":N,N.length===0||_===0?t.clearSegment(e.type):t.setSegment(e.type,_),r.current=N}else(e.type==="dayPeriod"||e.type==="era")&&t.clearSegment(e.type)},{keyboardProps:x}=Le({shortcuts:{Backspace:()=>{$()},Delete:()=>{$()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:v}=Ah({sensitivity:"base"}),C=Ye({hour:"numeric",hour12:!0}),w=u.useMemo(()=>{let N=new Date;return N.setHours(0),C.formatToParts(N).find(_=>_.type==="dayPeriod").value},[C]),S=u.useMemo(()=>{let N=new Date;return N.setHours(12),C.formatToParts(N).find(_=>_.type==="dayPeriod").value},[C]),B=Ye({year:"numeric",era:"narrow",timeZone:"UTC"}),E=u.useMemo(()=>{if(e.type!=="era")return[];let N=ye(new we(1,1,1),t.calendar),_=t.calendar.getEras().map(X=>{let A=N.set({year:1,month:1,day:1,era:X}).toDate("UTC"),z=B.formatToParts(A).find(L=>L.type==="era").value;return{era:X,formatted:z}}),Q=u8(_.map(X=>X.formatted));if(Q)for(let X of _)X.formatted=X.formatted.slice(Q);return _},[B,t.calendar,e.type]),k=N=>{if(t.isDisabled||t.isReadOnly)return;let _=r.current+N;switch(e.type){case"dayPeriod":if(v(w,N))t.setSegment("dayPeriod",0);else if(v(S,N))t.setSegment("dayPeriod",1);else break;c.focusNext();break;case"era":{let Q=E.find(X=>v(X.formatted,N));Q&&(t.setSegment("era",Q.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!y.isValidPartialNumber(_))return;let Q=y.parse(_),X=Q;if(e.maxValue!==void 0&&Q>e.maxValue&&(X=y.parse(N)),isNaN(Q))return;t.setSegment(e.type,X),e.maxValue!==void 0&&(+(Q+"0")>e.maxValue||_.length>=String(e.maxValue).length)?(r.current="",c.focusNext()):r.current=_;break}}},K=()=>{r.current="",n.current&&Ct(n.current,{containingElement:ot(n.current)}),window.getSelection()?.collapse(n.current)},T=u.useRef(typeof document<"u"?document:null);lt(T,"selectionchange",()=>{let N=window.getSelection();N?.anchorNode&&ae(n.current,N?.anchorNode)&&ce()===n.current&&N.collapse(n.current)});let I=u.useRef("");lt(n,"beforeinput",N=>{if(n.current)switch(N.preventDefault(),N.inputType){case"deleteContentBackward":case"deleteContentForward":y.isValidPartialNumber(e.text)&&!t.isReadOnly&&$();break;case"insertCompositionText":I.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:N.data!=null&&k(N.data);break}}),lt(n,"input",N=>{let{inputType:_,data:Q}=N;_==="insertCompositionText"&&(n.current&&(n.current.textContent=I.current),Q!=null&&(v(w,Q)||v(S,Q))&&k(Q))}),fe(()=>{let N=n.current;return()=>{ce()===N&&(c.focusPrevious()||c.focusNext())}},[n,c]);let R=bt()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},D=u.useMemo(()=>t.segments.find(N=>N.isEditable),[t.segments]);e!==D&&!t.isInvalid&&(d=void 0);let M=Ee(),G=!t.isDisabled&&!t.isReadOnly&&e.isEditable,O=e.type==="literal"?"":l.of(e.type),Y=Tt({"aria-label":`${O}${o?`, ${o}`:""}${s?", ":""}`,"aria-labelledby":s});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let P={caretColor:"transparent"};if(a==="rtl"){P.unicodeBidi="embed";let N=m[e.type];(N==="numeric"||N==="2-digit")&&(P.direction="ltr")}return{segmentProps:q(g,Y,{id:M,...R,...x,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:G,suppressContentEditableWarning:G,spellCheck:G?"false":void 0,autoCorrect:G?"off":void 0,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:G?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!G?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onFocus:K,style:P,onPointerDown(N){N.stopPropagation()},onMouseDown(N){N.stopPropagation()}})}}function u8(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}var pp={};pp={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var bp={};bp={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var gp={};gp={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var yp={};yp={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var $p={};$p={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var vp={};vp={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var xp={};xp={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Cp={};Cp={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var Dp={};Dp={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var Ep={};Ep={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var wp={};wp={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var Sp={};Sp={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Pp={};Pp={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var kp={};kp={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var Bp={};Bp={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var Np={};Np={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Ap={};Ap={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이후여야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var Fp={};Fp={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var Tp={};Tp={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var Ip={};Ip={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Mp={};Mp={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var Kp={};Kp={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var Lp={};Lp={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Op={};Op={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var zp={};zp={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var Vp={};Vp={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var _p={};_p={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var Rp={};Rp={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var jp={};jp={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Hp={};Hp={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var Up={};Up={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var Wp={};Wp={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var Gp={};Gp={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var Zp={};Zp={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var Yp={};Yp={"ar-AE":pp,"bg-BG":bp,"cs-CZ":gp,"da-DK":yp,"de-DE":$p,"el-GR":vp,"en-US":xp,"es-ES":Cp,"et-EE":Dp,"fi-FI":Ep,"fr-FR":wp,"he-IL":Sp,"hr-HR":Pp,"hu-HU":kp,"it-IT":Bp,"ja-JP":Np,"ko-KR":Ap,"lt-LT":Fp,"lv-LV":Tp,"nb-NO":Ip,"nl-NL":Mp,"pl-PL":Kp,"pt-BR":Lp,"pt-PT":Op,"ro-RO":zp,"ru-RU":Vp,"sk-SK":_p,"sl-SI":Rp,"sr-SP":jp,"sv-SE":Hp,"tr-TR":Up,"uk-UA":Wp,"zh-CN":Gp,"zh-TW":Zp};function s8(e){return e&&e.__esModule?e.default:e}const d8=new cn(s8(Yp));function c8(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function f8(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,l=e!=null&&t!=null&&e.compare(t)<0,o=e!=null&&r?.(e)||!1,s=a||l||o,d=[];if(s){let c=c8(),f=cn.getGlobalDictionaryForPackage("@react-stately/datepicker")||d8,m=new rd(c,f),h=new vn(c,Fa({},i)),p=h.resolvedOptions().timeZone;l&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:h.format(t.toDate(p))})),a&&n!=null&&d.push(m.format("rangeOverflow",{maxValue:h.format(n.toDate(p))})),o&&d.push(m.format("unavailableDate"))}return{isInvalid:s,validationErrors:d,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}const m8={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},h8={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Fa(e,t){e={...t.shouldForceLeadingZeros?h8:m8,...e};let r=t.granularity||"minute",i=Object.keys(e),a=i.indexOf(t.maxGranularity??"year");a<0&&(a=0);let l=i.indexOf(r);if(l<0&&(l=2),a>l)throw new Error("maxGranularity must be greater than granularity");let o=i.slice(a,l+1).reduce((d,c)=>(d[c]=e[c],d),{});return t.hourCycle!=null&&(o.hour12=t.hourCycle===12),o.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(o.timeZoneName="short"),t.showEra&&a===0&&(o.era="short"),o}function qp(e,t){if(e===null)return null;if(e)return ye(e,t)}function p8(e,t,n,r){if(e)return qp(e,n);let i=ye(ff(r??qi()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Ve(i):r?i:Qt(i)}function b8(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=u.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let l=e?n:i[1];return[t,l]}const g8=new cn({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"áááá",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"åååå",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function y8(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?g8.getStringForLocale(e,n):"––"}class wt{constructor(t,n,r){if(this.era=r?.era??null,this.calendar=t,this.year=r?.year??null,this.month=r?.month??null,this.day=r?.day??null,this.hour=r?.hour??null,this.hourCycle=n,this.dayPeriod=null,this.minute=r?.minute??null,this.second=r?.second??null,this.millisecond=r?.millisecond??null,this.offset="offset"in(r??{})?r.offset:null,this.hour!=null){let[i,a]=nr(this.hour,n);this.dayPeriod=i,this.hour=a}}copy(){let t=new wt(this.calendar,this.hourCycle);return t.era=this.era,t.year=this.year,t.month=this.month,t.day=this.day,t.hour=this.hour,t.dayPeriod=this.dayPeriod,t.minute=this.minute,t.second=this.second,t.millisecond=this.millisecond,t.offset=this.offset,t}isComplete(t){return t.every(n=>this[n]!=null)}validate(t,n){return n.every(r=>{if((r==="hour"||r==="dayPeriod")&&"hour"in t){let[i,a]=nr(t.hour,this.hourCycle);return this.dayPeriod===i&&this.hour===a}return this[r]===t[r]})}isCleared(t){return t.every(n=>this[n]===null)}set(t,n,r){let i=this.copy();return i[t]=n,t==="hour"&&i.dayPeriod==null&&"hour"in r&&(i.dayPeriod=nr(r.hour,this.hourCycle)[0]),t==="year"&&i.era==null&&(i.era=r.era),t!=="second"&&t!=="literal"&&t!=="timeZoneName"&&(i.offset=null),i}clear(t){let n=this.copy();return n[t]=null,t==="year"&&(n.era=null),n.offset=null,n}cycle(t,n,r,i){let a=this.copy();if(a[t]==null&&t!=="dayPeriod"&&t!=="era"){if(t==="hour"&&"hour"in r){let[l,o]=nr(r.hour,this.hourCycle);a.dayPeriod=l,a.hour=o}else a[t]=r[t];return t==="year"&&a.era==null&&(a.era=r.era),a}switch(t){case"era":{let l=this.calendar.getEras(),o=l.indexOf(a.era);o=kn(o,n,0,l.length-1),a.era=l[o];break}case"year":{let l=new we(this.calendar,this.era??r.era,this.year??r.year,this.month??1,this.day??1);l=l.cycle(t,n,{round:t==="year"}),a.era=l.era,a.year=l.year;break}case"month":a.month=kn(a.month??1,n,1,this.calendar.getMaximumMonthsInYear());break;case"day":a.day=kn(a.day??1,n,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let l=i.some(o=>["year","month","day"].includes(o));if("timeZone"in r&&(!l||a.year!=null&&a.month!=null&&a.day!=null)){let o=this.toValue(r);o=o.cycle("hour",n,{hourCycle:this.hourCycle==="h12"?12:24,round:!1});let[s,d]=nr(o.hour,this.hourCycle);a.hour=d,a.dayPeriod=s,a.offset=o.offset}else{let o=a.hour??0,s=this.getSegmentLimits("hour");a.hour=kn(o,n,s.minValue,s.maxValue),a.dayPeriod==null&&"hour"in r&&(a.dayPeriod=nr(r.hour,this.hourCycle)[0])}break}case"dayPeriod":a.dayPeriod=kn(a.dayPeriod??0,n,0,1);break;case"minute":a.minute=kn(a.minute??0,n,0,59,!0);break;case"second":a.second=kn(a.second??0,n,0,59,!0);break}return a}toValue(t){if("hour"in t){let n=this.hour;n!=null?n=$8(n,this.dayPeriod??0,this.hourCycle):(this.hourCycle==="h12"||this.hourCycle==="h11")&&(n=this.dayPeriod===1?12:0);let r=t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day,hour:n??t.hour,minute:this.minute??t.minute,second:this.second??t.second,millisecond:this.millisecond??t.millisecond});return"offset"in r&&this.offset!=null&&r.offset!==this.offset&&(r=r.add({milliseconds:r.offset-this.offset})),r}else return t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day})}getSegmentLimits(t){switch(t){case"era":{let n=this.calendar.getEras();return{value:this.era!=null?n.indexOf(this.era):n.length-1,minValue:0,maxValue:n.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let n=0,r=23;return this.hourCycle==="h12"?(n=1,r=12):this.hourCycle==="h11"&&(n=0,r=11),{value:this.hour,minValue:n,maxValue:r}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function kn(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function nr(e,t){let n=e>=12?1:0;switch(t){case"h11":e>=12&&(e-=12);break;case"h12":e===0?e=12:e>12&&(e-=12);break;case"h23":n=null;break;case"h24":e+=1,n=null}return[n,e]}function $8(e,t,n){switch(n){case"h11":t===1&&(e+=12);break;case"h12":e===12&&(e=0),t===1&&(e+=12);break;case"h24":e-=1;break}return e}const au={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Xp={year:5,month:2,day:7,hour:2,minute:15,second:15},v8={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function Jp(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:l=!1,minValue:o,maxValue:s,isDateUnavailable:d}=e,c=e.value||e.defaultValue||e.placeholderValue||null,[f,m]=b8(c,e.granularity),h=m||"UTC";if(c&&!(f in c))throw new Error("Invalid granularity "+f+" for value "+c.toString());let[p,g]=u.useMemo(()=>{let J=new vn(t,{dateStyle:"short",timeStyle:"short",hour12:e.hourCycle!=null?e.hourCycle===12:void 0}).resolvedOptions();return[n(J.calendar),J.hourCycle]},[t,e.hourCycle,n]),[y,$]=He(e.value,e.defaultValue??null,e.onChange),[x]=u.useState(y),v=u.useMemo(()=>qp(y,p)??null,[y,p]),[C,w]=u.useState(()=>new wt(p,g,v)),S=p.identifier==="gregory"&&C.era==="BC",B=u.useMemo(()=>({granularity:f,maxGranularity:e.maxGranularity??"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,m,r,S]),E=u.useMemo(()=>Fa({},B),[B]),k=u.useMemo(()=>new vn(t,E),[t,E]),K=u.useMemo(()=>k.resolvedOptions(),[k]),T=u.useMemo(()=>p8(e.placeholderValue,f,p,m),[e.placeholderValue,f,p,m]),I=u.useMemo(()=>{let L=g==="h11"||g==="h12",J=["era","year","month","day","hour",...L?["dayPeriod"]:[],"minute","second"],le=J.indexOf(e.maxGranularity||"era"),Ke=J.indexOf(f==="hour"&&L?"dayPeriod":f);return J.slice(le,Ke+1)},[e.maxGranularity,f,g]),[R,D]=u.useState(v),[M,G]=u.useState(p),[O,Y]=u.useState(g);(v!==R||g!==O||!Yi(p,M))&&(C=new wt(p,g,v),D(v),G(p),Y(g),w(C));let P=L=>{if(!(e.isDisabled||e.isReadOnly))if(L==null||L instanceof wt&&L.isCleared(I))w(new wt(p,g,v)),$(null);else if(!(L instanceof wt))L=ye(L,c?.calendar||new Re),w(new wt(p,g,v)),$(L);else{if(L.isComplete(I)){let J=L.toValue(v??T);if(L.validate(J,I)){let le=ye(J,c?.calendar||new Re);if(!y||le.compare(y)!==0){w(new wt(p,g,v)),$(le);return}}}w(L)}},N=u.useMemo(()=>C.toValue(v??T).toDate(h),[C,h,v,T]),_=u.useMemo(()=>x8(N,C,k,K,p,t,f),[N,k,K,C,p,t,f]),Q=(L,J)=>{P(C.cycle(L,J,T,I))},X=u.useMemo(()=>f8(y,o,s,d,B),[y,o,s,d,B]),A=ma({...e,value:y,builtinValidation:X}),F=A.displayValidation.isInvalid,z=e.validationState||(F?"invalid":null);return{...A,value:v,defaultValue:e.defaultValue??x,dateValue:N,calendar:p,setValue:P,segments:_,dateFormatter:k,validationState:z,isInvalid:F,granularity:f,maxGranularity:e.maxGranularity??"year",isDisabled:i,isReadOnly:a,isRequired:l,increment(L){Q(L,1)},decrement(L){Q(L,-1)},incrementPage(L){Q(L,Xp[L]||1)},decrementPage(L){Q(L,-(Xp[L]||1))},incrementToMax(L){let J=L==="hour"&&g==="h12"?11:C.getSegmentLimits(L).maxValue;P(C.set(L,J,T))},decrementToMin(L){let J=L==="hour"&&g==="h12"?12:C.getSegmentLimits(L).minValue;P(C.set(L,J,T))},setSegment(L,J){P(C.set(L,J,T))},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&C.isComplete(I)){let L=C.toValue(v??T),J=ye(L,c?.calendar||new Re);(!y||J.compare(y)!==0)&&$(J),w(new wt(p,g,v))}},clearSegment(L){let J=C;L!=="timeZoneName"&&L!=="literal"&&(J=C.clear(L)),P(J)},formatValue(L){if(!v)return"";let J=Fa(L,B);return new vn(t,J).format(N)},getDateFormatter(L,J){let le={...B,...J},Ke=Fa({},le);return new vn(L,Ke)}}}function x8(e,t,n,r,i,a,l){let o=["hour","minute","second"],s=n.formatToParts(e),d=new Wi(a,{useGrouping:!1}),c=new Wi(a,{useGrouping:!1,minimumIntegerDigits:2});for(let m of s)if(m.type==="year"||m.type==="month"||m.type==="day"||m.type==="hour"){let h=t[m.type]??0;r[m.type]==="2-digit"?m.value=c.format(h):m.value=d.format(h)}let f=[];for(let m of s){let h=v8[m.type]||m.type,p=au[h];h==="era"&&i.getEras().length===1&&(p=!1);let g=au[h]&&t[m.type]==null,y=au[h]?y8(h,m.value,a):null,$={type:h,text:g?y:m.value,...t.getSegmentLimits(h),isPlaceholder:g,placeholder:y,isEditable:p};h==="hour"?(f.push({type:"literal",text:"⁦",isPlaceholder:!1,placeholder:"",isEditable:!1}),f.push($),h===l&&f.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):o.includes(h)&&h===l?(f.push($),f.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):f.push($)}return f}const Qp=u.createContext(null),Qr=u.createContext(null),lu=u.createContext(null),C8=u.forwardRef(function(t,n){[t,n]=pe(t,n,Qp);let{validationBehavior:r}=qe(ha)||{},i=t.validationBehavior??r??"native",{locale:a}=be(),l=Jp({...t,locale:a,createCalendar:sa,validationBehavior:i}),o=u.useRef(null),[s,d]=un(!t["aria-label"]&&!t["aria-labelledby"]),c=u.useRef(null),{labelProps:f,fieldProps:m,inputProps:h,descriptionProps:p,errorMessageProps:g,...y}=hp({...mr(t),label:d,inputRef:c,validationBehavior:i},l,o),$=ue({...mr(t),values:{state:l,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isReadOnly:l.isReadOnly,isRequired:t.isRequired||!1},defaultClassName:"react-aria-DateField"}),x=ie(t,{global:!0});return delete x.id,u.createElement(Pe,{values:[[Qr,l],[Xn,{...m,ref:o,isInvalid:l.isInvalid,isDisabled:l.isDisabled}],[Jn,{...h,ref:c}],[pn,{...f,ref:s,elementType:"span"}],[tt,{slots:{description:p,errorMessage:g}}],[fa,y]]},u.createElement(re.div,{...x,...$,ref:n,slot:t.slot||void 0,"data-invalid":l.isInvalid||void 0,"data-disabled":l.isDisabled||void 0,"data-readonly":l.isReadOnly||void 0,"data-required":t.isRequired||void 0}),u.createElement(e8,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:l}))}),D8=u.forwardRef(function(t,n){let r=u.useContext(Qr),i=u.useContext(lu);return r||i?u.createElement(eb,{...t,ref:n}):u.createElement(E8,{...t,ref:n})}),E8=u.forwardRef((e,t)=>{let[n,r]=pe({slot:e.slot},t,Qp),{locale:i}=be(),a=Jp({...n,locale:i,createCalendar:sa}),l=u.useRef(null),{fieldProps:o,inputProps:s}=hp({...n,inputRef:l},a,r);return u.createElement(Pe,{values:[[Qr,a],[Jn,{...s,ref:l}],[Xn,{...o,ref:r,isInvalid:a.isInvalid,isDisabled:a.isDisabled}]]},u.createElement(eb,e))}),eb=u.forwardRef((e,t)=>{let{className:n,children:r}=e,i=u.useContext(Qr),a=u.useContext(lu),l=i??a;return u.createElement(u.Fragment,null,u.createElement(Lr,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled},l.segments.map((o,s)=>u.cloneElement(r(o),{key:s}))),u.createElement(Or,{className:""}))}),w8=u.forwardRef(function({segment:t,...n},r){let i=u.useContext(Qr),a=u.useContext(lu),l=i??a,o=Te(r),{segmentProps:s}=o8(t,l,o),{focusProps:d,isFocused:c,isFocusVisible:f}=Oe(),{hoverProps:m,isHovered:h}=ze({...n,isDisabled:l.isDisabled||t.type==="literal"}),p=ue({...n,values:{...t,isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isHovered:h,isFocused:c,isFocusVisible:f},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return u.createElement(re.span,{...q(ie(n,{global:!0}),s,d,m),...p,style:s.style,ref:o,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":l.isInvalid||void 0,"data-readonly":l.isReadOnly||void 0,"data-disabled":l.isDisabled||void 0,"data-type":t.type,"data-hovered":h||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0})});var tb={};tb={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var nb={};nb={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var rb={};rb={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var ib={};ib={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var ab={};ab={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var lb={};lb={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var ob={};ob={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var ub={};ub={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var sb={};sb={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var db={};db={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var cb={};cb={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var fb={};fb={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var mb={};mb={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var hb={};hb={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var pb={};pb={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var bb={};bb={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var gb={};gb={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var yb={};yb={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var $b={};$b={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var vb={};vb={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var xb={};xb={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var Cb={};Cb={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var Db={};Db={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var Eb={};Eb={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var wb={};wb={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var Sb={};Sb={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var Pb={};Pb={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var kb={};kb={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var Bb={};Bb={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var Nb={};Nb={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var Ab={};Ab={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var Fb={};Fb={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var Tb={};Tb={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var Ib={};Ib={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var Ta={};Ta={"ar-AE":tb,"bg-BG":nb,"cs-CZ":rb,"da-DK":ib,"de-DE":ab,"el-GR":lb,"en-US":ob,"es-ES":ub,"et-EE":sb,"fi-FI":db,"fr-FR":cb,"he-IL":fb,"hr-HR":mb,"hu-HU":hb,"it-IT":pb,"ja-JP":bb,"ko-KR":gb,"lt-LT":yb,"lv-LV":$b,"nb-NO":vb,"nl-NL":xb,"pl-PL":Cb,"pt-BR":Db,"pt-PT":Eb,"ro-RO":wb,"ru-RU":Sb,"sk-SK":Pb,"sl-SI":kb,"sr-SP":Bb,"sv-SE":Nb,"tr-TR":Ab,"uk-UA":Fb,"zh-CN":Tb,"zh-TW":Ib};function S8(e){return e&&e.__esModule?e.default:e}function P8(e,t){let{getRowText:n=o=>t.collection.getTextValue?.(o)??t.collection.getItem(o)?.textValue}=e,r=ke(S8(Ta),"@react-aria/grid"),i=t.selectionManager.rawSelection,a=u.useRef(i),l=u.useCallback(()=>{if(!t.selectionManager.isFocused||i===a.current){a.current=i;return}let o=Mb(i,a.current),s=Mb(a.current,i),d=t.selectionManager.selectionBehavior==="replace",c=[];if(t.selectionManager.selectedKeys.size===1&&d){let f=t.selectionManager.selectedKeys.keys().next().value;if(f!=null&&t.collection.getItem(f)){let m=n(f);m&&c.push(r.format("selectedItem",{item:m}))}}else if(o.size===1&&s.size===0){let f=o.keys().next().value;if(f!=null){let m=n(f);m&&c.push(r.format("selectedItem",{item:m}))}}else if(s.size===1&&o.size===0){let f=s.keys().next().value;if(f!=null&&t.collection.getItem(f)){let m=n(f);m&&c.push(r.format("deselectedItem",{item:m}))}}t.selectionManager.selectionMode==="multiple"&&(c.length===0||i==="all"||i.size>1||a.current==="all"||a.current?.size>1)&&c.push(i==="all"?r.format("selectedAll"):r.format("selectedCount",{count:i.size})),c.length>0&&$t(c.join(" ")),a.current=i},[i,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,n,r]);Tr(()=>{if(t.selectionManager.isFocused)l();else{let o=requestAnimationFrame(l);return()=>cancelAnimationFrame(o)}},[i,t.selectionManager.isFocused])}function Mb(e,t){let n=new Set;if(e==="all"||t==="all")return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function k8(e,t){let n=t?.isDisabled,[r,i]=u.useState(!1);return fe(()=>{if(e?.current&&!n){let a=()=>{if(e.current){let o=Ae(e.current,{tabbable:!0});i(!!o.nextNode())}};a();let l=new MutationObserver(a);return l.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function B8(e){return e&&e.__esModule?e.default:e}function N8(e){let t=ke(B8(Ta),"@react-aria/grid"),n=Xs(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,i=u.useMemo(()=>{let l=e.selectionManager.selectionMode,o=e.selectionManager.selectionBehavior,s;return r&&(s=t.format("longPressToSelect")),o==="replace"&&l!=="none"&&e.hasItemActions?s:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]);return xn(i)}function A8(e){return e&&e.__esModule?e.default:e}function F8(e,t){let{key:n}=e,r=t.selectionManager,i=Ee(),a=!t.selectionManager.canSelectItem(n),l=t.selectionManager.isSelected(n),o=()=>r.toggleSelection(n);const s=ke(A8(Ta),"@react-aria/grid");return{checkboxProps:{id:i,"aria-label":s.format("select"),isSelected:l,isDisabled:a,onChange:o}}}function T8(e,t,n){let{overlayProps:r,underlayProps:i}=h4({...e,isOpen:t.isOpen,onClose:t.close},n);return p4({isDisabled:!t.isOpen}),t3(),u.useEffect(()=>{if(t.isOpen&&n.current)return Ho([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:q(r),underlayProps:i}}let Ge=typeof document<"u"&&window.visualViewport;function I8(){let e=Ht(),[t,n]=u.useState(()=>e?{width:0,height:0}:ou());return u.useEffect(()=>{let r=o=>{n(s=>o.width===s.width&&o.height===s.height?s:o)},i=()=>{Ge&&Ge.scale>1||r(ou())},a,l=o=>{Ge&&Ge.scale>1||gr(W(o))&&(a=requestAnimationFrame(()=>{let s=ce();(!s||!gr(s))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(ou()),bt()&&gt()&&window.addEventListener("blur",l,!0),Ge?Ge.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(a),bt()&&gt()&&window.removeEventListener("blur",l,!0),Ge?Ge.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),t}function ou(){return{width:Ge?Math.min(Ge.width*Ge.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:Ge?Ge.height*Ge.scale:document.documentElement.clientHeight}}const M8=u.createContext(null),uu=u.createContext(null),K8=u.forwardRef(function(t,n){if(u.useContext(uu)){if(process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)){const g=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),y=Object.keys(t).filter($=>g.has($));console.warn(`This modal is already wrapped in a ModalOverlay, props [${y.join(", ")}] should be placed on the ModalOverlay instead.`)}return u.createElement(Lb,{...t,modalRef:n},t.children)}let{isDismissable:i,isKeyboardDismissDisabled:a,isOpen:l,defaultOpen:o,onOpenChange:s,children:d,isEntering:c,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:h,...p}=t;return u.createElement(Kb,{isDismissable:i,isKeyboardDismissDisabled:a,isOpen:l,defaultOpen:o,onOpenChange:s,isEntering:c,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:h},u.createElement(Lb,{...p,modalRef:n},d))});function L8(e,t){[e,t]=pe(e,t,M8);let n=u.useContext(zt),r=qr(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let a=Te(t),l=u.useRef(null),o=Jo(a,i.isOpen),s=Jo(l,i.isOpen),d=o||s||e.isExiting||!1,c=Ht();return!i.isOpen&&!d||c?null:u.createElement(O8,{...e,state:i,isExiting:d,overlayRef:a,modalRef:l})}const Kb=u.forwardRef(L8);function O8({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:i,underlayProps:a}=T8(t,r,n),l=Xo(t.overlayRef)||t.isEntering||!1,o=ue({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:t.isExiting,state:r}}),s=I8(),d,c;if(typeof document<"u"){let m=tn(document.body)?document.body:document.scrollingElement||document.documentElement,h=m.getBoundingClientRect().width%1,p=m.getBoundingClientRect().height%1;d=m.scrollWidth-h,c=m.scrollHeight-p}let f={...o.style,"--visual-viewport-width":s.width+"px","--visual-viewport-height":s.height+"px","--page-width":d!==void 0?d+"px":void 0,"--page-height":c!==void 0?c+"px":void 0};return u.createElement(qo,{isExiting:t.isExiting,portalContainer:e},u.createElement(re.div,{...q(ie(t,{global:!0}),a),...o,style:f,ref:t.overlayRef,"data-entering":l||void 0,"data-exiting":t.isExiting||void 0},u.createElement(Pe,{values:[[uu,{modalProps:i,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[zt,r]]},o.children)))}function Lb(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:i}=u.useContext(uu),a=u.useContext(zt),l=u.useMemo(()=>fr(e.modalRef,n),[e.modalRef,n]),o=Te(l),s=Xo(o),d=ue({...e,defaultClassName:"react-aria-Modal",values:{isEntering:s,isExiting:r,state:a}});return u.createElement(re.div,{...q(ie(e,{global:!0}),t),...d,ref:o,"data-entering":s||void 0,"data-exiting":r||void 0},i&&u.createElement(Yo,{onDismiss:a.close}),d.children)}var Ob={};Ob={"Clear search":"مسح البحث"};var zb={};zb={"Clear search":"Изчистване на търсене"};var Vb={};Vb={"Clear search":"Vymazat hledání"};var _b={};_b={"Clear search":"Ryd søgning"};var Rb={};Rb={"Clear search":"Suche zurücksetzen"};var jb={};jb={"Clear search":"Απαλοιφή αναζήτησης"};var Hb={};Hb={"Clear search":"Clear search"};var Ub={};Ub={"Clear search":"Borrar búsqueda"};var Wb={};Wb={"Clear search":"Tühjenda otsing"};var Gb={};Gb={"Clear search":"Tyhjennä haku"};var Zb={};Zb={"Clear search":"Effacer la recherche"};var Yb={};Yb={"Clear search":"נקה חיפוש"};var qb={};qb={"Clear search":"Obriši pretragu"};var Xb={};Xb={"Clear search":"Keresés törlése"};var Jb={};Jb={"Clear search":"Cancella ricerca"};var Qb={};Qb={"Clear search":"検索をクリア"};var eg={};eg={"Clear search":"검색 지우기"};var tg={};tg={"Clear search":"Išvalyti iešką"};var ng={};ng={"Clear search":"Notīrīt meklēšanu"};var rg={};rg={"Clear search":"Tøm søk"};var ig={};ig={"Clear search":"Zoekactie wissen"};var ag={};ag={"Clear search":"Wyczyść zawartość wyszukiwania"};var lg={};lg={"Clear search":"Limpar pesquisa"};var og={};og={"Clear search":"Limpar pesquisa"};var ug={};ug={"Clear search":"Ştergeţi căutarea"};var sg={};sg={"Clear search":"Очистить поиск"};var dg={};dg={"Clear search":"Vymazať vyhľadávanie"};var cg={};cg={"Clear search":"Počisti iskanje"};var fg={};fg={"Clear search":"Obriši pretragu"};var mg={};mg={"Clear search":"Rensa sökning"};var hg={};hg={"Clear search":"Aramayı temizle"};var pg={};pg={"Clear search":"Очистити пошук"};var bg={};bg={"Clear search":"清除搜索"};var gg={};gg={"Clear search":"清除搜尋條件"};var yg={};yg={"ar-AE":Ob,"bg-BG":zb,"cs-CZ":Vb,"da-DK":_b,"de-DE":Rb,"el-GR":jb,"en-US":Hb,"es-ES":Ub,"et-EE":Wb,"fi-FI":Gb,"fr-FR":Zb,"he-IL":Yb,"hr-HR":qb,"hu-HU":Xb,"it-IT":Jb,"ja-JP":Qb,"ko-KR":eg,"lt-LT":tg,"lv-LV":ng,"nb-NO":rg,"nl-NL":ig,"pl-PL":ag,"pt-BR":lg,"pt-PT":og,"ro-RO":ug,"ru-RU":sg,"sk-SK":dg,"sl-SI":cg,"sr-SP":fg,"sv-SE":mg,"tr-TR":hg,"uk-UA":pg,"zh-CN":bg,"zh-TW":gg};function z8(e){return e&&e.__esModule?e.default:e}function V8(e,t,n){let r=ke(z8(yg),"@react-aria/searchfield"),{isDisabled:i,isReadOnly:a,onSubmit:l,onClear:o,type:s="search"}=e,{keyboardProps:d}=Le({isDisabled:i||a,shortcuts:{Enter:()=>{if(l){l(t.value);return}return!1},Escape:()=>{if(t.value===""&&(!n.current||n.current.value===""))return!1;t.setValue(""),o?.()}}}),c=()=>{t.setValue(""),o&&o()},f=()=>{n.current?.focus()},{labelProps:m,inputProps:h,descriptionProps:p,errorMessageProps:g,...y}=p0({...e,value:t.value,onChange:t.setValue,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,type:s},n);return{labelProps:m,inputProps:q(d,{...h,defaultValue:void 0}),clearButtonProps:{"aria-label":r.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:i||a,onPress:c,onPressStart:f},descriptionProps:p,errorMessageProps:g,...y}}function _8(e){let[t,n]=He($g(e.value),$g(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}function $g(e){if(e!=null)return e.toString()}const R8=u.createContext(null),vg=Vn(function(t,n){[t,n]=pe(t,n,R8);let{validationBehavior:r}=qe(ha)||{},i=t.validationBehavior??r??"native",a=u.useRef(null);[t,a]=pe(t,a,vr);let[l,o]=un(!t["aria-label"]&&!t["aria-labelledby"]),s=_8({...t,validationBehavior:i}),{labelProps:d,inputProps:c,clearButtonProps:f,descriptionProps:m,errorMessageProps:h,...p}=V8({...mr(t),label:o,validationBehavior:i},s,a),g=ue({...t,values:{isEmpty:s.value==="",isDisabled:t.isDisabled||!1,isInvalid:p.isInvalid||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,state:s},defaultClassName:"react-aria-SearchField"}),y=ie(t,{global:!0});return delete y.id,u.createElement(re.div,{...y,...g,ref:n,slot:t.slot||void 0,"data-empty":s.value===""||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0},u.createElement(Pe,{values:[[pn,{...d,ref:l}],[Jn,{...c,ref:a}],[vt,f],[tt,{slots:{description:m,errorMessage:h}}],[Xn,{isInvalid:p.isInvalid,isDisabled:t.isDisabled||!1}],[fa,p]]},g.children))}),su=new WeakMap;function j8(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:l,form:o,validationBehavior:s="aria"}=e,d=Qn({usage:"search",sensitivity:"base"}),c=u.useMemo(()=>r||new _r(t.collection,t.disabledKeys,n,d),[r,t.collection,t.disabledKeys,d,n]),{menuTriggerProps:f,menuProps:m}=Qo({isDisabled:i,type:"listbox"},t,n),{keyboardProps:h}=Le({shortcuts:{ArrowLeft:()=>{if(t.selectionManager.selectionMode==="multiple")return!1;let k=t.selectedKey!=null?c.getKeyAbove?.(t.selectedKey):c.getFirstKey?.();k!=null&&t.setSelectedKey(k)},ArrowRight:()=>{if(t.selectionManager.selectionMode==="multiple")return!1;let k=t.selectedKey!=null?c.getKeyBelow?.(t.selectedKey):c.getFirstKey?.();k!=null&&t.setSelectedKey(k)}},allowRepeats:!0,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp}),{typeSelectProps:p}=Um({keyboardDelegate:c,selectionManager:t.selectionManager,onTypeSelect(k){t.setSelectedKey(k)}}),{isInvalid:g,validationErrors:y,validationDetails:$}=t.displayValidation,{labelProps:x,fieldProps:v,descriptionProps:C,errorMessageProps:w}=Do({...e,labelElementType:"span",isInvalid:g,errorMessage:e.errorMessage||y});t.selectionManager.selectionMode==="multiple"&&(p={});let S=ie(e,{labelable:!0}),B=q(p,f,v),E=Ee();return su.set(t,{isDisabled:i,isRequired:a,name:l,form:o,validationBehavior:s}),{labelProps:{...x,onClick:()=>{e.isDisabled||(n.current?.focus(),Ln("keyboard"))}},triggerProps:q(S,{...B,isDisabled:i,onKeyDown:at(B.onKeyDown,h.onKeyDown),onKeyUp:h.onKeyUp,"aria-labelledby":[E,B["aria-labelledby"],B["aria-label"]&&!B["aria-labelledby"]?B.id:null].filter(Boolean).join(" "),onFocus(k){t.isFocused||(e.onFocus&&e.onFocus(k),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(k){t.isOpen||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:E},menuProps:{...m,onAction:void 0,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:k=>{ae(k.currentTarget,k.relatedTarget)||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[v["aria-labelledby"],B["aria-label"]&&!v["aria-labelledby"]?B.id:null].filter(Boolean).join(" ")},descriptionProps:C,errorMessageProps:w,isInvalid:g,validationErrors:y,validationDetails:$,hiddenSelectProps:{isDisabled:i,name:l,label:e.label,state:t,triggerRef:n,form:o}}}function H8(e,t,n){let r=su.get(t)||{},{autoComplete:i,name:a=r.name,form:l=r.form,isDisabled:o=r.isDisabled}=e,{validationBehavior:s,isRequired:d}=r,{visuallyHiddenProps:c}=Dn({style:{position:"fixed",top:0,left:0}});pa(e.selectRef,t.defaultValue,t.setValue),Eo({validationBehavior:s,focus:()=>n.current?.focus()},t,e.selectRef);let f=t.setValue,m=u.useCallback(h=>{let p=W(h);p.multiple?f(Array.from(p.selectedOptions,g=>g.value)):f(h.currentTarget.value)},[f]);return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:o,multiple:t.selectionManager.selectionMode==="multiple",required:s==="native"&&d,name:a,form:l,value:t.value??"",onChange:m,onInput:m}}}function U8(e){let{state:t,triggerRef:n,label:r,name:i,form:a,isDisabled:l}=e,o=u.useRef(null),s=u.useRef(null),{containerProps:d,selectProps:c}=H8({...e,selectRef:t.collection.size<=300?o:s},t,n),f=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return u.createElement("div",{...d,"data-testid":"hidden-select-container"},u.createElement("label",null,r,u.createElement("select",{...c,ref:o},u.createElement("option",{value:"",label:" "}," "),[...t.collection.getKeys()].map(m=>{let h=t.collection.getItem(m);if(h&&h.type==="item")return u.createElement("option",{key:h.key,value:h.key},h.textValue)}),t.collection.size===0&&i&&f.map((m,h)=>u.createElement("option",{key:h,value:m??""})))));if(i){let m=su.get(t)||{},{validationBehavior:h}=m;f.length===0&&(f=[null]);let p=f.map((g,y)=>{let $={type:"hidden",autoComplete:c.autoComplete,name:i,form:a,disabled:l,value:g??""};return h==="native"?u.createElement("input",{key:y,...$,ref:y===0?s:null,style:{display:"none"},type:"text",required:y===0?c.required:!1,onChange:()=>{}}):u.createElement("input",{key:y,...$,ref:y===0?s:null})});return u.createElement(u.Fragment,null,p)}return null}function W8(e){let{selectionMode:t="single",shouldCloseOnSelect:n=t==="single"}=e,r=qr(e),[i,a]=u.useState(null),l=u.useMemo(()=>e.defaultValue!==void 0?e.defaultValue:t==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,t]),o=u.useMemo(()=>e.value!==void 0?e.value:t==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,t]),[s,d]=He(o,l,e.onChange),c=t==="single"&&Array.isArray(s)?s[0]:s,f=v=>{if(t==="single"){let C=Array.isArray(v)?v[0]??null:v;d(C),C!==c&&e.onSelectionChange?.(C)}else{let C=[];Array.isArray(v)?C=v:v!=null&&(C=[v]),d(C)}},m=Ca({...e,selectionMode:t,disallowEmptySelection:t==="single",allowDuplicateSelectionEvents:!0,selectedKeys:u.useMemo(()=>G8(c),[c]),onSelectionChange:v=>{if(v!=="all"){if(t==="single"){let C=v.values().next().value??null;f(C)}else f([...v]);n&&r.close(),g.commitValidation()}}}),h=m.selectionManager.firstSelectedKey,p=u.useMemo(()=>[...m.selectionManager.selectedKeys].map(v=>m.collection.getItem(v)).filter(v=>v!=null),[m.selectionManager.selectedKeys,m.collection]),g=ma({...e,value:Array.isArray(c)&&c.length===0?null:c}),[y,$]=u.useState(!1),[x]=u.useState(c);return{...g,...m,...r,value:c,defaultValue:l??x,setValue:f,selectedKey:h,setSelectedKey:f,selectedItem:p[0]??null,selectedItems:p,defaultSelectedKey:e.defaultSelectedKey??(e.selectionMode==="single"?x:null),focusStrategy:i,open(v=null){(m.collection.size!==0||e.allowsEmptyCollection)&&(a(v),r.open())},toggle(v=null){(m.collection.size!==0||e.allowsEmptyCollection)&&(a(v),r.toggle())},isFocused:y,setFocused:$}}function G8(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Z8(e){return e&&e.__esModule?e.default:e}const du=u.createContext(null),cu=u.createContext(null),Y8=Vn(function(t,n){[t,n]=pe(t,n,du);let{children:r,isDisabled:i=!1,isInvalid:a=!1,isRequired:l=!1}=t,o=u.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,a,l]);return u.createElement(fn,{content:o},s=>u.createElement(X8,{props:t,collection:s,selectRef:n}))}),q8=[pn,vt,tt];function X8({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=qe(ha)||{},i=e.validationBehavior??r??"native",a=W8({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:l,focusProps:o}=Oe({within:!0}),s=u.useRef(null),[d,c]=un(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:f,triggerProps:m,valueProps:h,menuProps:p,descriptionProps:g,errorMessageProps:y,hiddenSelectProps:$,...x}=j8({...mr(e),label:c,validationBehavior:i},a,s),v=u.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:l,isDisabled:e.isDisabled||!1,isInvalid:x.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,l,e.isDisabled,x.isInvalid,e.isRequired]),C=ue({...e,values:v,defaultClassName:"react-aria-Select"}),w=ie(e,{global:!0});delete w.id;let S=u.useRef(null);return u.createElement(Pe,{values:[[du,e],[cu,a],[xg,h],[pn,{...f,ref:d,elementType:"span"}],[vt,{...m,ref:s,isPressed:a.isOpen,autoFocus:e.autoFocus}],[zt,a],[Xr,{trigger:"Select",triggerRef:s,scrollRef:S,placement:"bottom start","aria-labelledby":p["aria-labelledby"],clearContexts:q8}],[Ur,{...p,ref:S}],[Sn,a],[tt,{slots:{description:g,errorMessage:y}}],[fa,x]]},u.createElement(re.div,{...q(w,C,o),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":l||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":x.isInvalid||void 0,"data-required":e.isRequired||void 0},C.children,u.createElement(U8,{...$,autoComplete:e.autoComplete})))}const xg=u.createContext(null),J8=Vn(function(t,n){[t,n]=pe(t,n,xg);let r=u.useContext(cu),{placeholder:i}=qe(du),a=r.selectedItems.map(p=>{let g=p.props?.children;return typeof g=="function"&&(g=g({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"})),g}),l=U9(),o=u.useMemo(()=>r.selectedItems.map(p=>p?.textValue),[r.selectedItems]),s=r.selectionManager.selectionMode,d=u.useMemo(()=>s==="single"?o[0]??"":l.format(o),[s,l,o]),c=u.useMemo(()=>{if(s==="single")return a[0];let p=l.formatToParts(o);if(p.length===0)return null;let g=0;return p.map(y=>y.type==="element"?u.createElement(u.Fragment,{key:g},a[g++]):y.value)},[s,l,o,a]),f=ke(Z8(wo),"react-aria-components"),m=ue({...t,defaultChildren:c??i??f.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:r.selectedItems[0]?.value??null,selectedItems:u.useMemo(()=>r.selectedItems.map(p=>p.value??null),[r.selectedItems]),selectedText:d,isPlaceholder:r.selectedItems.length===0,state:r}}),h=ie(t,{global:!0});return u.createElement(re.span,{ref:n,...h,...m,"data-placeholder":r.selectedItems.length===0||void 0},u.createElement(tt.Provider,{value:void 0},m.children))}),Cg=10,Dg=5;class Q8{setup(t,n,r){this.delegate=t,this.state=n,this.direction=r}getDropTargetFromPoint(t,n,r){let i=this.delegate.getDropTargetFromPoint(t,n,r);return!i||i.type==="root"?i:this.resolveDropTarget(i,t,n,r)}resolveDropTarget(t,n,r,i){let a=this.pointerTracking,l=r-a.lastY,o=n-a.lastX,s=a.yDirection,d=a.xDirection;if(Math.abs(l)>Dg&&(s=l>0?"down":"up",a.yDirection=s,a.lastY=r),Math.abs(o)>Cg&&(d=o>0?"right":"left",a.xDirection=d,a.lastX=n),t.dropPosition==="before"){let m=this.state.collection.getKeyBefore(t.key);for(;m!=null;){let h=this.state.collection.getItem(m);if(h?.type==="item")break;m=h?.parentKey??null}if(m!=null){let h={type:"item",key:m,dropPosition:"after"};i(h)&&(t=h)}}let c=this.getPotentialTargets(t,i);if(c.length===0)return{type:"root"};let f;return c.length>1?f=this.selectTarget(c,t,n,r,s,d):(f=c[0],a.boundaryContext=null),f}getPotentialTargets(t,n){if(t.dropPosition==="on")return[t];let r=t,i=this.state.collection,a=i.getItem(r.key);for(;a&&a?.type!=="item"&&a.nextKey!=null;)r.key=a.nextKey,a=i.getItem(a.nextKey);let l=[r];if(a&&a.hasChildNodes&&this.state.expandedKeys.has(a.key)&&i.getChildren&&r.dropPosition==="after"){let d=a.firstChildKey!=null?i.getItem(a.firstChildKey):null;for(;d&&d.type!=="item";)d=d.nextKey!=null?i.getItem(d.nextKey):null;if(d?.type==="item"){const c={type:"item",key:d.key,dropPosition:"before"};return n(c)?[c]:[]}}if(a?.nextKey!=null)return[t];let o=a?.parentKey,s=[];for(;o!=null;){let d=i.getItem(o),c=d?.nextKey!=null?i.getItem(d.nextKey):null;if(!c||c.parentKey!==o){let m={type:"item",key:o,dropPosition:"after"};if(n(m)&&s.push(m),c)break}o=d?.parentKey}if(s.length>0&&l.push(...s),l.length===1){let d=i.getKeyAfter(r.key),c=d!=null?i.getItem(d):null;if(d!=null&&c&&a&&c.level!=null&&a.level!=null&&c.level>a.level){let f={type:"item",key:d,dropPosition:"before"};if(n(f))return[f]}}return l.filter(n)}selectTarget(t,n,r,i,a,l){if(t.length<2)return t[0];let o=this.pointerTracking,d=this.state.collection.getItem(n.key)?.parentKey;if(d==null)return t[0];if(!o.boundaryContext||o.boundaryContext.parentKey!==d){let p=o.yDirection==="up"?t.length-1:0;o.boundaryContext={parentKey:d,preferredTargetIndex:p,lastSwitchY:i,lastSwitchX:r}}let c=o.boundaryContext,f=Math.abs(r-c.lastSwitchX);if(Math.abs(i-c.lastSwitchY)>Dg&&a){let p=c.preferredTargetIndex||0;a==="down"&&p===0?c.preferredTargetIndex=t.length-1:a==="up"&&p===t.length-1&&(c.preferredTargetIndex=0),o.xDirection=null}if(f>Cg&&l){let p=c.preferredTargetIndex||0;l==="left"?this.direction==="ltr"?p<t.length-1&&(c.preferredTargetIndex=p+1,c.lastSwitchX=r):p>0&&(c.preferredTargetIndex=p-1,c.lastSwitchX=r):l==="right"&&(this.direction==="ltr"?p>0&&(c.preferredTargetIndex=p-1,c.lastSwitchX=r):p<t.length-1&&(c.preferredTargetIndex=p+1,c.lastSwitchX=r)),o.yDirection=null}let h=Math.max(0,Math.min(c.preferredTargetIndex||0,t.length-1));return t[h]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class e7{constructor(t){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=t?.columnCount,this.rows=[];let n=a=>{let l=this.keyMap.get(a.key);t.visitNode&&(a=t.visitNode(a)),this.keyMap.set(a.key,a);let o=new Set,s=null,d=!1;if(a.type==="item"){for(let c of a.childNodes)if(c.props?.colSpan!==void 0){d=!0;break}}for(let c of a.childNodes)c.type==="cell"&&d&&(c.colspan=c.props?.colSpan,c.colSpan=c.props?.colSpan,c.colIndex=s?(s.colIndex??s.index)+(s.colSpan??1):c.index),c.type==="cell"&&c.parentKey==null&&(c.parentKey=a.key),o.add(c.key),s?(s.nextKey=c.key,c.prevKey=s.key):c.prevKey=null,n(c),s=c;if(s&&(s.nextKey=null),l)for(let c of l.childNodes)o.has(c.key)||r(c)},r=a=>{this.keyMap.delete(a.key);for(let l of a.childNodes)this.keyMap.get(l.key)===l&&r(l)},i=null;for(let[a,l]of t.items.entries()){let o={...l,level:l.level??0,key:l.key??"row-"+a,type:l.type??"row",value:l.value??null,hasChildNodes:!0,childNodes:[...l.childNodes],rendered:l.rendered,textValue:l.textValue??"",index:l.index??a};i?(i.nextKey=o.key,o.prevKey=i.key):o.prevKey=null,this.rows.push(o),n(o),i=o}i&&(i.nextKey=null)}*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return[...this.rows][0]?.key}getLastKey(){let t=[...this.rows];return t[t.length-1]?.key}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}}const Eg="row-header-column-"+Math.random().toString(36).slice(2);let fu="row-header-column-"+Math.random().toString(36).slice(2);for(;Eg===fu;)fu="row-header-column-"+Math.random().toString(36).slice(2);function wg(e,t){if(t.length===0)return[];let n=[],r=new Map;for(let s of t){let d=s.parentKey,c=[s];for(;d!=null;){let f=e.get(d);if(!f)break;if(r.has(f)){f.colSpan??=0,f.colSpan++,f.colspan=f.colSpan;let{column:m,index:h}=r.get(f);if(h>c.length)break;for(let p=h;p<c.length;p++)m.splice(p,0,null);for(let p=c.length;p<m.length;p++)m[p]&&r.has(m[p])&&(r.get(m[p]).index=p)}else f.colSpan=1,f.colspan=1,c.push(f),r.set(f,{column:c,index:c.length-1});d=f.parentKey}n.push(c),s.index=n.length-1}let i=Math.max(...n.map(s=>s.length)),a=Array(i).fill(0).map(()=>[]),l=0;for(let s of n){let d=i-1;for(let c of s){if(c){let f=a[d],m=f.reduce((h,p)=>h+(p.colSpan??1),0);if(m<l){let h={type:"placeholder",key:"placeholder-"+c.key,colspan:l-m,colSpan:l-m,index:m,value:null,rendered:null,level:d,hasChildNodes:!1,childNodes:[],textValue:""};f.length>0&&(f[f.length-1].nextKey=h.key,h.prevKey=f[f.length-1].key),f.push(h)}f.length>0&&(f[f.length-1].nextKey=c.key,c.prevKey=f[f.length-1].key),c.level=d,c.colIndex=l,f.push(c)}d--}l++}let o=0;for(let s of a){let d=s.reduce((c,f)=>c+(f.colSpan??1),0);if(d<t.length){let c={type:"placeholder",key:"placeholder-"+s[s.length-1].key,colSpan:t.length-d,colspan:t.length-d,index:d,value:null,rendered:null,level:o,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:s[s.length-1].key};s.push(c)}o++}return a.map((s,d)=>({type:"headerrow",key:"headerrow-"+d,index:d,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:s,textValue:""}))}class t7 extends e7{constructor(t,n,r){let i=new Set,a=null,l=[];if(r?.showSelectionCheckboxes){let f={type:"column",key:Eg,value:null,textValue:"",level:0,index:r?.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};l.unshift(f)}if(r?.showDragButtons){let f={type:"column",key:fu,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};l.unshift(f)}let o=[],s=new Map,d=f=>{switch(f.type){case"body":a=f;break;case"column":s.set(f.key,f),f.hasChildNodes||(l.push(f),f.props.isRowHeader&&i.add(f.key));break;case"item":o.push(f);return}for(let m of f.childNodes)d(m)};for(let f of t)d(f);let c=wg(s,l);if(c.forEach((f,m)=>o.splice(m,0,f)),super({columnCount:l.length,items:o,visitNode:f=>(f.column=l[f.index],f)}),this._size=0,this.columns=l,this.rowHeaderColumnKeys=i,this.body=a,this.headerRows=c,this._size=[...a.childNodes].length,this.rowHeaderColumnKeys.size===0){let f=this.columns.find(m=>!m.props?.isDragButtonCell&&!m.props?.isSelectionCell);f&&this.rowHeaderColumnKeys.add(f.key)}}*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){return this.keyMap.get(t)?.prevKey??null}getKeyAfter(t){return this.keyMap.get(t)?.nextKey??null}getFirstKey(){return Ot(this.body.childNodes)?.key??null}getLastKey(){return er(this.body.childNodes)?.key??null}getItem(t){return t===this.body.key?this.body:this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){if(t===this.body.key)return this.body.childNodes;let n=this.getItem(t);return n?.type==="item"?[...n.childNodes].filter(r=>r.type==="cell"):super.getChildren(t)}getTextValue(t){let n=this.getItem(t);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys;if(r){let i=[];for(let a of n.childNodes){let l=this.columns[a.index];if(r.has(l.key)&&a.textValue&&i.push(a.textValue),i.length===r.size)break}return i.join(" ")}return""}}function n7(e){return e!=null&&(!isNaN(e)||String(e).match(/^(\d+)(?=%$)/)!==null)}function r7(e){if(!e||typeof e=="number")return 1;let t=e.match(/^(.+)(?=fr$)/);return t?parseFloat(t[0]):(process.env.NODE_ENV!=="production"&&console.warn(`width: ${e} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`,"defaulting to '1fr'"),1)}function mu(e,t){if(typeof e=="string"){let n=e.match(/^(\d+)(?=%$)/);if(!n)throw new Error("Only percentages or numbers are supported for static column widths");return t*(parseFloat(n[0])/100)}return e}function Sg(e,t){return e!=null?mu(e,t):Number.MAX_SAFE_INTEGER}function Pg(e,t){return e!=null?mu(e,t):0}function i7(e,t,n,r,i){let a=e,l=Math.floor(e),o=e-l>0;e=l;let s=!1,d=t.map((f,m)=>{let h=n.get(f.key)!=null?n.get(f.key)??"1fr":f.width??f.defaultWidth??r?.(m)??"1fr",p=!1,g=0,y=0,$=0;n7(h)?(g=mu(h,e),p=!0):(y=r7(h),y<=0&&(p=!0));let x=Pg(f.minWidth??i?.(m)??0,e),v=Sg(f.maxWidth,e),C=Math.max(x,Math.min(g,v));return p?$=C:g>C&&(p=!0,$=C),p||(s=!0),{frozen:p,baseSize:g,hypotheticalMainSize:C,min:x,max:v,flex:y,targetMainSize:$,violation:0}});for(;s;){let f=0,m=0;d.forEach(g=>{g.frozen?f+=g.targetMainSize:(f+=g.baseSize,m+=g.flex)});let h=e-f;h>0&&d.forEach(g=>{if(!g.frozen){let y=g.flex/m;g.targetMainSize=g.baseSize+y*h}});let p=0;d.forEach(g=>{if(g.violation=0,!g.frozen){let{min:y,max:$,targetMainSize:x}=g;g.targetMainSize=Math.max(y,Math.min(x,$)),g.violation=g.targetMainSize-x,p+=g.violation}}),s=!1,d.forEach(g=>{p===0||Math.sign(p)===Math.sign(g.violation)?g.frozen=!0:g.frozen||(s=!0)})}let c=a7(d);if(o&&c.length>0){let f=a.toString().split(".")[1],m=c[c.length-1].toString();c[c.length-1]=+(m+"."+f)}return c}function a7(e){let t=0,n=0,r=[];return e.forEach(function(i){let a=i.targetMainSize,l=Math.round(a+t)-n;t+=a,n+=l,r.push(l)}),r}class l7{constructor(t){this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,this.getDefaultWidth=t?.getDefaultWidth??(()=>"1fr"),this.getDefaultMinWidth=t?.getDefaultMinWidth??(()=>75)}splitColumnsIntoControlledAndUncontrolled(t){return t.reduce((n,r)=>(r.props.width!=null?n[0].set(r.key,r):n[1].set(r.key,r),n),[new Map,new Map])}recombineColumns(t,n,r,i){return new Map(t.map(a=>r.has(a.key)?[a.key,n.get(a.key)]:[a.key,i.get(a.key).props.width]))}getInitialUncontrolledWidths(t){return new Map(Array.from(t).map(([n,r])=>[n,r.props.defaultWidth??this.getDefaultWidth?.(r)??"1fr"]))}getColumnWidth(t){return this.columnWidths.get(t)??0}getColumnMinWidth(t){return this.columnMinWidths.get(t)??0}getColumnMaxWidth(t){return this.columnMaxWidths.get(t)??0}resizeColumnWidth(t,n,r,i){let a=this.columnWidths,l=!0,o=new Map;return i=Math.max(this.getColumnMinWidth(r),Math.min(this.getColumnMaxWidth(r),Math.floor(i))),t.columns.forEach(s=>{s.key===r?(o.set(s.key,i),l=!1):l?o.set(s.key,a.get(s.key)??0):o.set(s.key,s.props.width??n.get(s.key))}),o}buildColumnWidths(t,n,r){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,i7(t,n.columns.map(a=>({...a.props,key:a.key})),r,a=>this.getDefaultWidth(n.columns[a]),a=>this.getDefaultMinWidth(n.columns[a])).forEach((a,l)=>{let o=n.columns[l].key,s=n.columns[l];this.columnWidths.set(o,a),this.columnMinWidths.set(o,Pg(s.props.minWidth??this.getDefaultMinWidth(s),t)),this.columnMaxWidths.set(o,Sg(s.props.maxWidth,t))}),this.columnWidths}}function o7(e,t){let{getDefaultWidth:n,getDefaultMinWidth:r,tableWidth:i=0}=e,[a,l]=u.useState(null),o=u.useMemo(()=>new l7({getDefaultWidth:n,getDefaultMinWidth:r}),[n,r]),[s,d]=u.useMemo(()=>o.splitColumnsIntoControlledAndUncontrolled(t.collection.columns),[t.collection.columns,o]),[c,f]=u.useState(()=>o.getInitialUncontrolledWidths(d)),[m,h]=u.useState(t.collection.columns);if(t.collection.columns!==m){if(t.collection.columns.length!==m.length||t.collection.columns.some((v,C)=>v.key!==m[C].key)){let v=o.getInitialUncontrolledWidths(d);f(v)}h(t.collection.columns)}let p=u.useMemo(()=>o.recombineColumns(t.collection.columns,c,d,s),[t.collection.columns,c,d,s,o]),g=u.useCallback(v=>{l(v)},[l]),y=u.useCallback((v,C)=>{let w=o.resizeColumnWidth(t.collection,c,v,C),S=new Map(Array.from(d).map(([B])=>[B,w.get(B)]));return S.set(v,C),f(S),w},[d,f,o,t.collection,c]),$=u.useCallback(()=>{l(null)},[l]),x=u.useMemo(()=>o.buildColumnWidths(i,t.collection,p),[i,t.collection,p,o]);return u.useMemo(()=>({resizingColumn:a,updateResizedColumns:y,startResize:g,endResize:$,getColumnWidth:v=>o.getColumnWidth(v),getColumnMinWidth:v=>o.getColumnMinWidth(v),getColumnMaxWidth:v=>o.getColumnMaxWidth(v),tableState:t,columnWidths:x}),[o,x,a,y,g,$,t])}function u7(e){let{collection:t,focusMode:n}=e,r=e.UNSAFE_selectionState||Hr(e),i=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=r.setFocusedKey;r.setFocusedKey=(s,d)=>{if(n==="cell"&&s!=null){let c=t.getItem(s);if(c?.type==="item"){let f=Ne(c,t);d==="last"?s=er(f)?.key??null:s=Ot(f)?.key??null}}a(s,d)};let l=u.useMemo(()=>new tr(t,r),[t,r]);const o=u.useRef(null);return u.useEffect(()=>{if(r.focusedKey!=null&&o.current&&!t.getItem(r.focusedKey)){const s=o.current.getItem(r.focusedKey),d=s?.parentKey!=null&&(s.type==="cell"||s.type==="rowheader"||s.type==="column")?o.current.getItem(s.parentKey):s;if(!d){r.setFocusedKey(null);return}const c=o.current.rows,f=t.rows,m=c.length-f.length;let h=Math.min(m>1?Math.max(d.index-m+1,0):d.index,f.length-1),p=null;for(let g=Math.max(0,h);g<f.length;g++)if(!l.isDisabled(f[g].key)&&f[g].type!=="headerrow"){p=f[g];break}if(p===null){for(let g=h-1;g>=0;g--)if(!l.isDisabled(f[g].key)&&f[g].type!=="headerrow"){p=f[g];break}}if(p){const g=p.hasChildNodes?[...Ne(p,t)]:[],y=p.hasChildNodes&&d!==s&&s&&s.index<g.length?g[s.index].key:p.key;r.setFocusedKey(y)}else r.setFocusedKey(null)}o.current=t},[t,l,r,r.focusedKey]),{collection:t,disabledKeys:i,isKeyboardNavigationDisabled:!1,selectionManager:l}}const s7={ascending:"descending",descending:"ascending"};function d7(e){let[t,n]=u.useState(!1),{selectionMode:r="none",showSelectionCheckboxes:i,showDragButtons:a,treeColumn:l=null}=e,o=u.useMemo(()=>({showSelectionCheckboxes:i&&r!=="none",showDragButtons:a,selectionMode:r,columns:[]}),[e.children,i,r,a]),s=jo(e,u.useCallback(h=>new t7(h,null,o),[o]),o),{disabledKeys:d,selectionManager:c}=u7({...e,collection:s,disabledBehavior:e.disabledBehavior||"selection"}),[f,m]=He(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);return{collection:s,disabledKeys:d,selectionManager:c,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor??null,isKeyboardNavigationDisabled:s.size===0||t,setKeyboardNavigationDisabled:n,sort(h,p){e.onSortChange?.({column:h,direction:p??(e.sortDescriptor?.column===h?s7[e.sortDescriptor.direction]:"ascending")})},expandedKeys:f,toggleKey(h){m(p=>{let g=new Set(p);return g.has(h)?g.delete(h):g.add(h),g})},treeColumn:l}}function c7(e,t){let n=u.useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return{...e,collection:n,selectionManager:r}}class kg{constructor(t){if(this.collection=t.collection,this.disabledKeys=t.disabledKeys,this.disabledBehavior=t.disabledBehavior||"all",this.direction=t.direction,this.collator=t.collator,!t.layout&&!t.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=t.layoutDelegate||(t.layout?new f7(t.layout):new Ko(t.ref)),this.focusMode=t.focusMode??"row"}isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findPreviousKey(t,n,r=!1){let i=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;i!=null;){let a=this.collection.getItem(i);if(!a)return null;if((r||!this.isDisabled(a))&&(!n||n(a)))return i;i=this.collection.getKeyBefore(i)}return null}findNextKey(t,n,r=!1){let i=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;i!=null;){let a=this.collection.getItem(i);if(!a)return null;if((r||!this.isDisabled(a))&&(!n||n(a)))return i;if(i=this.collection.getKeyAfter(i),i==null)return null}return null}getKeyForItemInRowByIndex(t,n=0){if(n<0)return null;let r=this.collection.getItem(t);if(!r)return null;let i=0;for(let a of Ne(r,this.collection)){if(a.colSpan&&a.colSpan+i>n||(a.colSpan&&(i=i+a.colSpan-1),i===n))return a.key??null;i++}return null}getKeyBelow(t,n){let r=t,i=this.collection.getItem(r);if(!i||(this.isCell(i)&&(r=i.parentKey??null),r==null))return null;if(r=this.findNextKey(r,a=>a.type==="item",n?.includeDisabled),r!=null){if(this.isCell(i)){let a=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(r,a)}if(this.focusMode==="row")return r}return null}getKeyAbove(t,n){let r=t,i=this.collection.getItem(r);if(!i||(this.isCell(i)&&(r=i.parentKey??null),r==null))return null;if(r=this.findPreviousKey(r,a=>a.type==="item",n?.includeDisabled),r!=null){if(this.isCell(i)){let a=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(r,a)}if(this.focusMode==="row")return r}return null}getKeyRightOf(t){let n=this.collection.getItem(t);if(!n)return null;if(this.isRow(n)){let r=Ne(n,this.collection);return(this.direction==="rtl"?er(r)?.key:Ot(r)?.key)??null}if(this.isCell(n)&&n.parentKey!=null){let r=this.collection.getItem(n.parentKey);if(!r)return null;let i=Ne(r,this.collection),a=(this.direction==="rtl"?jr(i,n.index-1):jr(i,n.index+1))??null;return a?a.key??null:this.focusMode==="row"?n.parentKey??null:(this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t))??null}return null}getKeyLeftOf(t){let n=this.collection.getItem(t);if(!n)return null;if(this.isRow(n)){let r=Ne(n,this.collection);return(this.direction==="rtl"?Ot(r)?.key:er(r)?.key)??null}if(this.isCell(n)&&n.parentKey!=null){let r=this.collection.getItem(n.parentKey);if(!r)return null;let i=Ne(r,this.collection),a=(this.direction==="rtl"?jr(i,n.index+1):jr(i,n.index-1))??null;return a?a.key??null:this.focusMode==="row"?n.parentKey??null:(this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t))??null}return null}getFirstKey(t,n){let r=t??null,i;if(r!=null){if(i=this.collection.getItem(r),!i)return null;if(this.isCell(i)&&!n&&i.parentKey!=null){let a=this.collection.getItem(i.parentKey);return a?Ot(Ne(a,this.collection))?.key??null:null}}if(r=this.findNextKey(void 0,a=>a.type==="item"),r!=null&&(i&&this.isCell(i)&&n||this.focusMode==="cell")){let a=this.collection.getItem(r);if(!a)return null;r=Ot(Ne(a,this.collection))?.key??null}return r}getLastKey(t,n){let r=t??null,i;if(r!=null){if(i=this.collection.getItem(r),!i)return null;if(this.isCell(i)&&!n&&i.parentKey!=null){let a=this.collection.getItem(i.parentKey);if(!a)return null;let l=Ne(a,this.collection);return er(l)?.key??null}}if(r=this.findPreviousKey(void 0,a=>a.type==="item"),r!=null&&(i&&this.isCell(i)&&n||this.focusMode==="cell")){let a=this.collection.getItem(r);if(!a)return null;let l=Ne(a,this.collection);r=er(l)?.key??null}return r}getKeyPageAbove(t){let n=t,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i&&n!=null&&(n=this.getKeyAbove(n)??null,n!=null);)r=this.layoutDelegate.getItemRect(n);return n}getKeyPageBelow(t){let n=t,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let i=this.layoutDelegate.getVisibleRect().height,a=Math.min(this.layoutDelegate.getContentSize().height,r.y+i);for(;r&&r.y+r.height<a;){let l=this.getKeyBelow(n);if(l==null)break;r=this.layoutDelegate.getItemRect(l),n=l}return n}getKeyForSearch(t,n){let r=n??null;if(!this.collator)return null;let i=this.collection;if(r=n??this.getFirstKey(),r==null)return null;let a=i.getItem(r);if(!a)return null;a.type==="cell"&&(r=a.parentKey??null);let l=!1;for(;r!=null;){let o=i.getItem(r);if(!o)return null;if(o.textValue){let s=o.textValue.slice(0,t.length);if(this.collator.compare(s,t)===0)return this.isRow(o)&&this.focusMode==="cell"?Ot(Ne(o,this.collection))?.key??null:o.key}r=this.findNextKey(r,s=>s.type==="item"),r==null&&!l&&(r=this.getFirstKey(),l=!0)}return null}}class f7{constructor(t){this.layout=t}getContentSize(){return this.layout.getContentSize()}getItemRect(t){return this.layout.getLayoutInfo(t)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}}const hu=new WeakMap;function m7(e,t,n){let{isVirtualized:r,disallowTypeAhead:i,keyboardDelegate:a,focusMode:l,scrollRef:o,getRowText:s,onRowAction:d,onCellAction:c,escapeKeyBehavior:f="clearSelection",shouldSelectOnPressUp:m,keyboardNavigationBehavior:h="arrow"}=e,{selectionManager:p}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let g=Qn({usage:"search",sensitivity:"base"}),{direction:y}=be(),$=t.selectionManager.disabledBehavior,x=u.useMemo(()=>a||new kg({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:$,ref:n,direction:y,collator:g,focusMode:l}),[a,t.collection,t.disabledKeys,$,n,y,g,l]),{collectionProps:v}=xa({ref:n,selectionManager:p,keyboardDelegate:x,isVirtualized:r,scrollRef:o,disallowTypeAhead:i,escapeKeyBehavior:f}),C=Ee(e.id);hu.set(t,{keyboardDelegate:x,actions:{onRowAction:d,onCellAction:c},shouldSelectOnPressUp:m,keyboardNavigationBehavior:h});let w=N8({selectionManager:p,hasItemActions:!!(d||c)}),S=ie(e,{labelable:!0}),B=u.useCallback(T=>{if(p.isFocused){ae(T.currentTarget,W(T))||p.setFocused(!1);return}ae(T.currentTarget,W(T))&&p.setFocused(!0)},[p]),E=u.useMemo(()=>({onBlur:v.onBlur,onFocus:B}),[B,v.onBlur]),k=k8(n,{isDisabled:t.collection.size!==0}),K=q(S,{role:"grid",id:C,"aria-multiselectable":p.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?E:v,t.collection.size===0&&{tabIndex:k?-1:0}||void 0,w);return r&&(K["aria-rowcount"]=t.collection.size,K["aria-colcount"]=t.collection.columnCount),P8({getRowText:s},t),{gridProps:K}}const pu=new WeakMap;function bu(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Bg(e,t){let n=pu.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${bu(t)}`}function Ng(e,t,n){let r=pu.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${bu(t)}-${bu(n)}`}function gu(e,t){return[...e.collection.rowHeaderColumnKeys].map(n=>Ng(e,t,n)).join(" ")}var Ag={};Ag={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,collapse:"طي",columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,expand:"تمديد",resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var Fg={};Fg={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,collapse:"Свиване",columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,expand:"Разширяване",resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var Tg={};Tg={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,collapse:"Sbalit",columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,expand:"Roztáhnout",resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var Ig={};Ig={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,collapse:"Skjul",columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,expand:"Udvid",resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var Mg={};Mg={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,collapse:"Reduzieren",columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,expand:"Erweitern",resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var Kg={};Kg={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,collapse:"Σύμπτυξη",columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,expand:"Ανάπτυξη",resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var Lg={};Lg={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing",expand:"Expand",collapse:"Collapse"};var Og={};Og={ascending:"ascendente",ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,collapse:"Contraer",columnSize:e=>`${e.value} píxeles`,descending:"descendente",descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,expand:"Ampliar",resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var zg={};zg={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,collapse:"Ahenda",columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,expand:"Laienda",resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var Vg={};Vg={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,collapse:"Pienennä",columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,expand:"Laajenna",resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var _g={};_g={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,collapse:"Réduire",columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,expand:"Développer",resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var Rg={};Rg={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,collapse:"כווץ",columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,expand:"הרחב",resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var jg={};jg={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,collapse:"Sažmi",columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var Hg={};Hg={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,collapse:"Összecsukás",columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,expand:"Kibontás",resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var Ug={};Ug={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,collapse:"Comprimi",columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,expand:"Espandi",resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var Wg={};Wg={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,collapse:"折りたたむ",columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,expand:"展開",resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var Gg={};Gg={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,collapse:"접기",columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,expand:"펼치기",resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var Zg={};Zg={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,collapse:"Sutraukti",columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,expand:"Išskleisti",resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var Yg={};Yg={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,collapse:"Sakļaut",columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,expand:"Izvērst",resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var qg={};qg={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,collapse:"Skjul",columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,expand:"Utvid",resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var Xg={};Xg={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,collapse:"Samenvouwen",columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,expand:"Uitvouwen",resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var Jg={};Jg={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,collapse:"Zwiń",columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,expand:"Rozwiń",resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var Qg={};Qg={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,collapse:"Recolher",columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,expand:"Expandir",resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var e2={};e2={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,collapse:"Colapsar",columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,expand:"Expandir",resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var t2={};t2={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,collapse:"Restrângeți",columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,expand:"Extindeți",resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var n2={};n2={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,collapse:"Свернуть",columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,expand:"Развернуть",resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var r2={};r2={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,collapse:"Zbaliť",columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,expand:"Rozbaliť",resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var i2={};i2={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,collapse:"Strni",columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,expand:"Razširi",resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var a2={};a2={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,collapse:"Skupi",columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var l2={};l2={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,collapse:"Dölj",columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,expand:"Expandera",resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var o2={};o2={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,collapse:"Daralt",columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,expand:"Genişlet",resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var u2={};u2={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,collapse:"Згорнути",columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,expand:"Розгорнути",resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var s2={};s2={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,collapse:"折叠",columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,expand:"扩展",resizerDescription:"按 Enter 开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var d2={};d2={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,collapse:"收合",columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,expand:"展開",resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var rr={};rr={"ar-AE":Ag,"bg-BG":Fg,"cs-CZ":Tg,"da-DK":Ig,"de-DE":Mg,"el-GR":Kg,"en-US":Lg,"es-ES":Og,"et-EE":zg,"fi-FI":Vg,"fr-FR":_g,"he-IL":Rg,"hr-HR":jg,"hu-HU":Hg,"it-IT":Ug,"ja-JP":Wg,"ko-KR":Gg,"lt-LT":Zg,"lv-LV":Yg,"nb-NO":qg,"nl-NL":Xg,"pl-PL":Jg,"pt-BR":Qg,"pt-PT":e2,"ro-RO":t2,"ru-RU":n2,"sk-SK":r2,"sl-SI":i2,"sr-SP":a2,"sv-SE":l2,"tr-TR":o2,"uk-UA":u2,"zh-CN":s2,"zh-TW":d2};class h7 extends kg{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t,n){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let i=Ot(Ne(r,this.collection));if(i)return i.key;let a=this.getFirstKey();return a==null||!this.collection.getItem(a)?null:super.getKeyForItemInRowByIndex(a,r.index)}return super.getKeyBelow(t,n)}getKeyAbove(t,n){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let l=r.parentKey!=null?this.collection.getItem(r.parentKey):null;return l&&l.type==="column"?l.key:null}let i=super.getKeyAbove(t,n),a=i!=null?this.collection.getItem(i):null;return a&&a.type!=="headerrow"?i:this.isCell(r)?this.collection.columns[r.index].key:this.collection.columns[0].key}findNextColumnKey(t){let n=this.findNextKey(t.key,i=>i.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level];for(let i of Ne(r,this.collection))if(i.type==="column")return i.key;return null}findPreviousColumnKey(t){let n=this.findPreviousKey(t.key,a=>a.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level],i=[...Ne(r,this.collection)];for(let a=i.length-1;a>=0;a--){let l=i[a];if(l.type==="column")return l.key}return null}getKeyRightOf(t){let n=this.collection.getItem(t);return n?n.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(n):this.findNextColumnKey(n):super.getKeyRightOf(t):null}getKeyLeftOf(t){let n=this.collection.getItem(t);return n?n.type==="column"?this.direction==="rtl"?this.findNextColumnKey(n):this.findPreviousColumnKey(n):super.getKeyLeftOf(t):null}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n??this.getFirstKey();if(i==null)return null;let a=r.getItem(i);a?.type==="cell"&&(i=a.parentKey??null);let l=!1;for(;i!=null;){let o=r.getItem(i);if(!o)return null;if(o.textValue){let s=o.textValue.slice(0,t.length);if(this.collator.compare(s,t)===0)return o.key}for(let s of Ne(o,this.collection)){let d=r.columns[s.index];if(r.rowHeaderColumnKeys.has(d.key)&&s.textValue){let c=s.textValue.slice(0,t.length);if(this.collator.compare(c,t)===0)return(n!=null?r.getItem(n):a)?.type==="cell"?s.key:o.key}}i=this.getKeyBelow(i),i==null&&!l&&(i=this.getFirstKey(),l=!0)}return null}}function p7(e){return e&&e.__esModule?e.default:e}function b7(e,t,n){let{keyboardDelegate:r,isVirtualized:i,layoutDelegate:a,layout:l}=e,o=Qn({usage:"search",sensitivity:"base"}),{direction:s}=be(),d=t.selectionManager.disabledBehavior,c=u.useMemo(()=>r||new h7({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:d,ref:n,direction:s,collator:o,layoutDelegate:a,layout:l}),[r,t.collection,t.disabledKeys,d,n,s,o,a,l]),f=Ee(e.id);pu.set(t,f);let{gridProps:m}=m7({...e,id:f,keyboardDelegate:c},t,n);i&&(m["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),t.treeColumn!=null&&(m.role="treegrid");let{column:h,direction:p}=t.sortDescriptor||{},g=ke(p7(rr),"@react-aria/table"),y=u.useMemo(()=>{let x=t.collection.columns.find(v=>v.key===h)?.textValue??"";return p&&h?g.format(`${p}Sort`,{columnName:x}):void 0},[p,h,t.collection.columns]),$=xn(y);return Tr(()=>{y&&$t(y,"assertive",500)},[y]),{gridProps:q(m,$,{"aria-describedby":[$["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")})}}function c2(e,t,n){let{node:r,isVirtualized:i,focusMode:a,allowsArrowNavigation:l,shouldSelectOnPressUp:o,onAction:s}=e,{direction:d}=be(),{keyboardDelegate:c,actions:{onCellAction:f},keyboardNavigationBehavior:m}=hu.get(t),h=a??(m==="tab"?"cell":"child"),p=u.useRef(null),g=()=>{if(n.current){let S=Ae(n.current);if(h==="child"){if(Ut(n.current)&&n.current!==ce(se(n.current)))return;let B=t.selectionManager.childFocusStrategy==="last"?yu(S):S.firstChild();if(B){Ie(B);return}}(p.current!=null&&r.key!==p.current||!Ut(n.current))&&Ie(n.current)}},{itemProps:y,isPressed:$}=Rr({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,focus:g,shouldSelectOnPressUp:o,onAction:f?()=>f(r.key):s,isDisabled:t.collection.size===0}),x=S=>{let B=ce(se(n.current));if(!ae(S.currentTarget,W(S))||t.isKeyboardNavigationDisabled||!n.current||!B)return;let E=Ae(n.current);switch(E.currentNode=B,S.key){case"ArrowLeft":{let k=d==="rtl"?E.nextNode():E.previousNode();if(h==="child"&&k===n.current&&(k=null),S.preventDefault(),S.stopPropagation(),k)Ie(k),Ct(k,{containingElement:ot(n.current)});else{if(c.getKeyLeftOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent));break}h==="cell"&&d==="rtl"?(Ie(n.current),Ct(n.current,{containingElement:ot(n.current)})):(E.currentNode=n.current,k=d==="rtl"?E.firstChild():yu(E),k&&(Ie(k),Ct(k,{containingElement:ot(n.current)})))}break}case"ArrowRight":{let k=d==="rtl"?E.previousNode():E.nextNode();if(h==="child"&&k===n.current&&(k=null),S.preventDefault(),S.stopPropagation(),k)Ie(k),Ct(k,{containingElement:ot(n.current)});else{if(c.getKeyRightOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent));break}h==="cell"&&d==="ltr"?(Ie(n.current),Ct(n.current,{containingElement:ot(n.current)})):(E.currentNode=n.current,k=d==="rtl"?yu(E):E.firstChild(),k&&(Ie(k),Ct(k,{containingElement:ot(n.current)})))}break}case"ArrowUp":case"ArrowDown":!S.altKey&&ae(n.current,W(S))&&(S.stopPropagation(),S.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent)));break}},v=S=>{let B=ce(se(n.current));if(!(!ae(S.currentTarget,W(S))||t.isKeyboardNavigationDisabled||!n.current||!B)){if(m==="tab"&&W(S)!==n.current&&S.key!=="Tab"){S.stopPropagation();return}switch(S.key){case"Tab":if(m==="tab"){let E=Ae(n.current,{tabbable:!0});E.currentNode=B,(S.shiftKey?E.previousNode():E.nextNode())&&S.stopPropagation()}}}},C=S=>{if(p.current=r.key,W(S)!==n.current){Wt()||t.selectionManager.setFocusedKey(r.key);return}h==="child"&&S.relatedTarget&&ae(n.current,S.relatedTarget)||requestAnimationFrame(()=>{h==="child"&&ce(se(n.current))===n.current&&g()})},w=q(y,{role:"gridcell",onKeyDownCapture:m!=="tab"||l?x:void 0,onKeyDown:m==="tab"?v:void 0,"aria-colspan":r.colSpan,"aria-colindex":r.colIndex!=null?r.colIndex+1:void 0,colSpan:i?void 0:r.colSpan,onFocus:C,...h==="child"&&m==="tab"?{tabIndex:-1}:{}});return i&&(w["aria-colindex"]=(r.colIndex??r.index)+1),o&&w.tabIndex!=null&&w.onPointerDown==null&&(w.onPointerDown=S=>{let B=S.currentTarget,E=B.getAttribute("tabindex");B.removeAttribute("tabindex"),requestAnimationFrame(()=>{E!=null&&B.setAttribute("tabindex",E)})}),{gridCellProps:w,isPressed:$}}function yu(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function g7(e){return e&&e.__esModule?e.default:e}function y7(e,t,n){let{node:r}=e,i=r.props.allowsSorting,{gridCellProps:a}=c2({focusMode:"child",...e},t,n),l=r.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:o,isPressed:s}=It({isDisabled:!i||l,onPress(){t.sort(r.key)},ref:n}),{focusableProps:d}=zn({},n),c,f=t.sortDescriptor?.column===r.key,m=t.sortDescriptor?.direction;r.props.allowsSorting&&!Mn()&&(c=f?m:"none");let h=ke(g7(rr),"@react-aria/table"),p;i&&(p=`${h.format("sortable")}`,f&&m&&Mn()&&(p=`${p}, ${h.format(m)}`));let g=xn(p),y=t.collection.size===0;return u.useEffect(()=>{y&&t.selectionManager.focusedKey===r.key&&t.selectionManager.setFocusedKey(null)},[y,t.selectionManager,r.key]),{columnHeaderProps:{...q(d,a,o,g,y?{tabIndex:-1}:null),role:"columnheader",id:Bg(t,r.key),"aria-colspan":r.colSpan&&r.colSpan>1?r.colSpan:void 0,"aria-sort":c},isPressed:s}}function $7(e,t,n){let{node:r,isVirtualized:i,shouldSelectOnPressUp:a,onAction:l}=e,{actions:o,shouldSelectOnPressUp:s}=hu.get(t),d=o.onRowAction?()=>o.onRowAction?.(r.key):l,{itemProps:c,...f}=Rr({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:s||a,onAction:d||r?.props?.onAction?at(r?.props?.onAction,d):void 0,isDisabled:t.collection.size===0}),m=t.selectionManager.isSelected(r.key),h={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?m:void 0,"aria-disabled":f.isDisabled||void 0,...c};return i&&(h["aria-rowindex"]=r.index+1),{rowProps:h,...f}}function v7(e){return e&&e.__esModule?e.default:e}const f2={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function x7(e,t,n){let{node:r,isVirtualized:i}=e,{rowProps:a,...l}=$7(e,t,n),{direction:o}=be();i&&t.treeColumn==null?a["aria-rowindex"]=r.index+1+t.collection.headerRows.length:delete a["aria-rowindex"];let s=t.treeColumn!=null&&(t.expandedKeys==="all"||t.expandedKeys.has(r.key)),d=ke(v7(rr),"@react-aria/table"),c=Tt({"aria-label":s?d.format("collapse"):d.format("expand"),"aria-labelledby":gu(t,r.key)}),f={},m={};if(t.treeColumn!=null){let g=t.collection.getItem(r.key);if(g!=null){let y=m2(t.collection,r),$=g.props?.hasChildRows||g.props?.UNSTABLE_childItems||y?.type!=="cell",x=t.collection.getItem(r.parentKey),v=x.type==="tablebody"||x.type==="body",C=m2(t.collection,x);for(;C&&C.type!=="item"&&C.prevKey!=null;)C=t.collection.getItem(C.prevKey);f={onKeyDown:w=>{w.key===f2.expand[o]&&t.selectionManager.focusedKey===g.key&&$&&t.expandedKeys!=="all"&&!t.expandedKeys.has(g.key)?(t.toggleKey(g.key),w.stopPropagation()):w.key===f2.collapse[o]&&t.selectionManager.focusedKey===g.key&&(t.expandedKeys!=="all"?$&&t.expandedKeys.has(g.key)?(t.toggleKey(g.key),w.stopPropagation()):!t.expandedKeys.has(g.key)&&g.parentKey!=null&&g.level>0&&(t.selectionManager.setFocusedKey(g.parentKey),w.stopPropagation()):t.expandedKeys==="all"&&(t.toggleKey(g.key),w.stopPropagation()))},"aria-expanded":$?t.expandedKeys==="all"||t.expandedKeys.has(r.key):void 0,"aria-level":g.level+1,"aria-posinset":g.index-(v?0:t.collection.columnCount)+1,"aria-setsize":C.index-(v?0:t.collection.columnCount)+1},m={isDisabled:l.isDisabled,onPress:()=>{l.isDisabled||(t.toggleKey(r.key),t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...c}}}let h=y5(r.props),p=l.hasAction?h:{};return{rowProps:{...q(a,f,p),"aria-labelledby":gu(t,r.key)},expandButtonProps:m,...l}}function m2(e,t){return"lastChildKey"in t?t.lastChildKey!=null?e.getItem(t.lastChildKey):null:Array.from(t.childNodes).findLast(n=>n.parentKey===t.key)}function C7(e,t,n){let{node:r,isVirtualized:i}=e,a={role:"row"};return i&&t.treeColumn==null&&(a["aria-rowindex"]=r.index+1),{rowProps:a}}function D7(e,t,n){let{gridCellProps:r,isPressed:i}=c2(e,t,n),a=e.node.column?.key;return a!=null&&t.collection.rowHeaderColumnKeys.has(a)&&(r.role="rowheader",r.id=Ng(t,e.node.parentKey,a)),{gridCellProps:r,isPressed:i}}function E7(e){return e&&e.__esModule?e.default:e}function w7(e,t){let{key:n}=e;const{checkboxProps:r}=F8(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${gu(t,n)}`}}}function S7(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;return{checkboxProps:{"aria-label":ke(E7(rr),"@react-aria/table").format(r==="single"?"select":"selectAll"),isSelected:n,isDisabled:r!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}function P7(e){return e&&e.__esModule?e.default:e}function k7(e,t,n){let{column:r,triggerRef:i,isDisabled:a,onResizeStart:l,onResize:o,onResizeEnd:s,"aria-label":d}=e;const c=ke(P7(rr),"@react-aria/table");let f=Ee(),m=t.resizingColumn===r.key,h=u.useRef(m),p=u.useRef(null),g=u.useRef(!1),y=t.tableState.isKeyboardNavigationDisabled,[$,x]=u.useState(!1),{direction:v}=be(),C=u.useCallback(z=>{h.current||(p.current=t.updateResizedColumns(z.key,t.getColumnWidth(z.key)),t.startResize(z.key),t.tableState.setKeyboardNavigationDisabled(!0),l?.(p.current)),h.current=!0},[t,l]),w=u.useCallback((z,L)=>{let J=t.updateResizedColumns(z.key,L);o?.(J),p.current=J},[t,o]),S=u.useCallback(z=>{h.current&&(p.current==null&&(p.current=t.updateResizedColumns(z.key,t.getColumnWidth(z.key))),t.endResize(),t.tableState.setKeyboardNavigationDisabled(!1),s?.(p.current),h.current=!1,i?.current&&!g.current&&Ie(i.current)),p.current=null},[t,i,s]),B=()=>{if(y){S(r);return}return!1},{keyboardProps:E}=Le({shortcuts:{Escape:()=>B(),Enter:()=>{y?S(r):C(r)}," ":()=>B(),Tab:()=>B()}});const k=u.useRef(0),{moveProps:K}=bx({onMoveStart(z){k.current=t.getColumnWidth(r.key),z.pointerType==="mouse"&&x(!0),C(r)},onMove(z){let{deltaX:L,deltaY:J,pointerType:le}=z;v==="rtl"&&(L*=-1),le==="keyboard"&&(J!==0&&L===0&&(L=J*-1),L*=10),L!==0&&(k.current+=L,w(r,k.current))},onMoveEnd(z){let{pointerType:L}=z;k.current=0,x(!1),(L==="mouse"||L==="touch"&&g.current)&&S(r)}});let T=u.useCallback(z=>{y&&K.onKeyDown?.(z)},[y,K]),I=Math.floor(t.getColumnMinWidth(r.key)),R=Math.floor(t.getColumnMaxWidth(r.key));R===1/0&&(R=Number.MAX_SAFE_INTEGER);let D=Math.floor(t.getColumnWidth(r.key)),M=Xs();M==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(M="touch");let G=i?.current==null&&(M==="keyboard"||M==="virtual")&&!m?c.format("resizerDescription"):void 0,O=xn(G),Y={"aria-label":d,"aria-orientation":"horizontal","aria-labelledby":`${f} ${Bg(t.tableState,r.key)}`,"aria-valuetext":c.format("columnSize",{value:D}),type:"range",min:I,max:R,value:D,...O};const P=u.useCallback(()=>{n.current&&Ie(n.current)},[n]);let N=t.resizingColumn,_=u.useRef(null),Q=De(C);u.useEffect(()=>{if(_.current!==N&&N!=null&&N===r.key){g.current=ce()===n.current,Q(r);let z=setTimeout(()=>P(),0),L=setTimeout(P,400);return()=>{clearTimeout(z),clearTimeout(L)}}_.current=N},[N,r,P,n]);let X=z=>{let L=t.getColumnWidth(r.key),J=parseFloat(W(z).value);J>L?J=L+10:J=L-10,w(r,J)},{pressProps:A}=It({preventFocusOnPress:!0,onPressStart:z=>{if(!(z.ctrlKey||z.altKey||z.metaKey||z.shiftKey||z.pointerType==="keyboard")){if(z.pointerType==="virtual"&&t.resizingColumn!=null){S(r);return}P(),z.pointerType!=="virtual"&&C(r)}},onPress:z=>{(z.pointerType==="touch"&&g.current||z.pointerType==="mouse")&&t.resizingColumn!=null&&S(r)}}),{visuallyHiddenProps:F}=Dn();return{resizerProps:q(E,{...K,onKeyDown:T},A,{style:{touchAction:"none"}}),inputProps:q(F,{id:f,onBlur:()=>{S(r)},onChange:X,disabled:a},Y),isResizing:m,isMouseResizing:$}}function B7(){return{rowGroupProps:{role:"rowgroup"}}}function $u(){return B7()}function N7(e){return e&&e.__esModule?e.default:e}class A7 extends od{withExpandedKeys(t){let n=this.clone();return n.expandedKeys=t,n.frozen=this.frozen,n.rows=Array.from(n.getRows()),n}addNode(t){super.addNode(t),this.columnsDirty||=t.type==="column",t.type==="tableheader"&&(this.head=t)}getRows(){let t=[];for(let n of this)(n.type==="tablebody"||n.type==="tablefooter")&&t.push(...this.getChildren(n.key));return t}get body(){for(let t of this)if(t.type==="tablebody")return t;return new Ma(-2)}commit(t,n,r=!1){this.updateColumns(r),this.firstKey=t,this.lastKey=n,this.rows=[];for(let i of this.getRows()){let a=i.lastChildKey;if(a!=null){let l=this.getItem(a);for(;l&&l.type!=="cell";)l=l.prevKey!=null?this.getItem(l.prevKey):null;if(l){let o=(l.colIndex??l.index)+(l.colSpan??1);if(o!==this.columns.length&&!r)throw new Error(`Cell count must match column count. Found ${o} cells and ${this.columns.length} columns.`)}}this.rows.push(i)}super.commit(t,n,r)}updateColumns(t){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let n=new Map,r=i=>{i.type==="column"&&(n.set(i.key,i),i.hasChildNodes||(i.index=this.columns.length,this.columns.push(i),i.props.isRowHeader&&this.rowHeaderColumnKeys.add(i.key)));for(let a of this.getChildren(i.key))r(a)};for(let i of this.getChildren(this.head.key))r(i);if(this.headerRows=wg(n,this.columns),this.columnsDirty=!1,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!t)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){let t=this.firstKey;for(;t!=null;){let n=this.getItem(t);n&&(yield n),t=n?.nextKey??null}}getFirstKey(){for(let t of this)if(t.type==="tablebody")return t.firstChildKey??null;return null}getLastKey(){let t=this.lastKey;if(t==null)return null;let n=this.getItem(t);for(;n?.lastChildKey!=null&&(n.type!=="item"||this.expandedKeys.has(n.key));)n=this.getItem(n.lastChildKey);return n?.key}getKeyAfter(t){let n=this.getItem(t);if(n?.type==="column")return n.nextKey??null;if(!n)return null;if(n.type==="item"&&n.firstChildKey!=null&&this.expandedKeys.has(n.key)){let r=this.getItem(n.firstChildKey);for(;r;){if(r.type==="item")return r.key;r=r.nextKey!=null?this.getItem(r.nextKey):null}}return super.getKeyAfter(t)}getKeyBefore(t){let n=this.getItem(t);if(n?.type==="column")return n.prevKey??null;if(!n)return null;let r=null;if(n.prevKey!=null){for(n=this.getItem(n.prevKey);n&&(n.type!=="item"||this.expandedKeys.has(n.key))&&n.lastChildKey!=null;)n=this.getItem(n.lastChildKey);r=n?.key??null}return r==null&&(r=n.parentKey),r!=null&&this.getItem(r)?.type==="tableheader"?null:r}getChildren(t){let n=this.getItem(t);if(!n){for(let i of this.headerRows)if(i.key===t)return i.childNodes}let r=this;return n?.type==="tablebody"||n?.type==="tablefooter"?{*[Symbol.iterator](){let i=n.firstChildKey,a=i!=null?r.getItem(i):null;for(;a;){yield a;let l=r.getKeyAfter(a.key);if(a=l!=null?r.getItem(l):null,a&&a.parentKey===n.parentKey)break}}}:{*[Symbol.iterator](){let i=r.getItem(t),a=i?.firstChildKey!=null?r.getItem(i.firstChildKey):null;for(;a&&(yield a,a=a.nextKey!=null?r.getItem(a.nextKey):null,!(i?.type==="item"&&a?.type!=="cell")););}}}clone(){let t=super.clone();return t.headerRows=this.headerRows,t.columns=this.columns,t.rows=this.rows,t.rowHeaderColumnKeys=this.rowHeaderColumnKeys,t.head=this.head,t}getTextValue(t){let n=this.getItem(t);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys,i=[];for(let a of this.getChildren(t)){let l=this.columns[a.index];if(r.has(l.key)&&a.textValue&&i.push(a.textValue),i.length===r.size)break}return i.join(" ")}constructor(...t){super(...t),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new Ia(-1),this.columnsDirty=!0,this.expandedKeys=new Set}}const vu=u.createContext(null),F7=u.forwardRef(function(t,n){let r=Te(n),i=u.useRef(null),a=u.useRef(null),[l,o]=u.useState(0);fe(()=>{let d=i.current;for(;d&&d!==r.current&&!tn(d);)d=d.parentElement;a.current=d},[r]),Zr({ref:a,box:"border-box",onResize(){o(a.current?.clientWidth??0)}}),fe(()=>{o(a.current?.clientWidth??0)},[]);let s=u.useMemo(()=>({tableRef:i,scrollRef:a,tableWidth:l,useTableColumnResizeState:o7,onResizeStart:t.onResizeStart,onResize:t.onResize,onResizeEnd:t.onResizeEnd}),[i,l,t.onResizeStart,t.onResize,t.onResizeEnd]);return u.createElement(re.div,{render:t.render,...ie(t,{global:!0}),ref:r,className:t.className||"react-aria-ResizableTableContainer",style:t.style,onScroll:t.onScroll},u.createElement(vu.Provider,{value:s},t.children))}),T7=u.createContext(null),dt=u.createContext(null),xu=u.createContext(null),I7=u.forwardRef(function(t,n){[t,n]=pe(t,n,T7);let r=Hr(t),{selectionBehavior:i,selectionMode:a,disallowEmptySelection:l}=r,o=!!t.dragAndDropHooks?.useDraggableCollectionState,s=u.useMemo(()=>({selectionBehavior:a==="none"?null:i,selectionMode:a,disallowEmptySelection:l,allowsDragging:o}),[i,a,l,o]),d=u.createElement(L7.Provider,{value:s},u.createElement(mn,t));return u.createElement(fn,{content:d,createCollection:()=>new A7},c=>u.createElement(K7,{props:t,forwardedRef:n,selectionState:r,collection:c}))});let M7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.table,{...t,ref:n})});const h2={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function K7({props:e,forwardedRef:t,selectionState:n,collection:r}){[e,t]=pe(e,t,$r);let{shouldUseVirtualFocus:i,disallowTypeAhead:a,filter:l,...o}=e,s=u.useContext(vu);t=Te(u.useMemo(()=>fr(t,s?.tableRef),[t,s?.tableRef]));let[d,c]=He(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);r=u.useMemo(()=>r.withExpandedKeys(d),[r,d]);let f=d7({...o,collection:r,children:void 0,UNSAFE_selectionState:n,expandedKeys:d,onExpandedChange:c}),m=c7(f,l),{isVirtualized:h,layoutDelegate:p,dropTargetDelegate:g,CollectionRoot:y}=u.useContext(ge),{dragAndDropHooks:$}=e,{gridProps:x}=b7({...o,layoutDelegate:p,isVirtualized:h},m,t),v=m.selectionManager,C=!!$?.useDraggableCollectionState,w=!!$?.useDroppableCollectionState,S=u.useRef(C),B=u.useRef(w);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(S.current!==C&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),B.current!==w&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[C,w]);let E,k,K,T=!1,I=null,R=u.useRef(null),{direction:D}=be(),[M]=u.useState(()=>new Q8);if(C&&$){E=$.useDraggableCollectionState({collection:m.collection,selectionManager:v,preview:$.renderDragPreview?R:void 0}),$.useDraggableCollection({},E,t);let A=$.DragPreview;I=$.renderDragPreview?u.createElement(A,{ref:R},$.renderDragPreview):null}if(w&&$){k=$.useDroppableCollectionState({collection:m.collection,selectionManager:v});let A=new _r({collection:m.collection,disabledKeys:v.disabledKeys,disabledBehavior:v.disabledBehavior,ref:t,layoutDelegate:p}),F=$.dropTargetDelegate||g||new $.ListDropTargetDelegate(r.rows,t);M.setup(F,f,D),K=$.useDroppableCollection({keyboardDelegate:A,dropTargetDelegate:M,onDropActivate:z=>{if(z.target.type==="item"){let L=z.target.key,J=f.collection.getItem(L),le=d.has(L);J&&J.hasChildNodes&&(!le||$?.isVirtualDragging?.())&&f.toggleKey(L)}},onKeyDown:z=>{let L=k?.target;if(L&&L.type==="item"&&L.dropPosition==="on"){let J=f.collection.getItem(L.key);(z.key===h2.expand[D]&&J?.hasChildNodes&&!f.expandedKeys.has(L.key)||z.key===h2.collapse[D]&&J?.hasChildNodes&&f.expandedKeys.has(L.key))&&f.toggleKey(L.key)}}},k,t),T=k.isDropTarget({type:"root"})}let{focusProps:G,isFocused:O,isFocusVisible:Y}=Oe(),P=ue({...e,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:T,isFocused:O,isFocusVisible:Y,state:m}}),N=!!(C&&!E?.isDisabled),_=P.style,Q=null;s&&(Q=s.useTableColumnResizeState({tableWidth:s.tableWidth},m),h||(_={..._,tableLayout:"fixed",width:"min-content"}));let X=ie(e,{global:!0});return u.createElement(Pe,{values:[[dt,m],[xu,Q],[ut,{dragAndDropHooks:$,dragState:E,dropState:k}],[So,{render:X7}],[$r,null],[vr,null]]},u.createElement($a,null,u.createElement(M7,{...q(X,P,x,G,K?.collectionProps),style:_,ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-allows-dragging":N||void 0,"data-drop-target":T||void 0,"data-focused":O||void 0,"data-focus-visible":Y||void 0},u.createElement(ga,null,u.createElement(y,{collection:m.collection,scrollRef:s?.scrollRef??t,persistedKeys:Fm(v,$,k)})))),I)}const L7=u.createContext(null),Ds=class Ds extends et{};Ds.type="tableheader";let Ia=Ds,O7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.thead,{...t,ref:n})});const z7=zi(Ia,(e,t)=>{let n=u.useContext(dt).collection,r=yl({items:n.headerRows,children:u.useCallback(s=>{if(s.type==="headerrow")return u.createElement(_7,{item:s});throw new Error("Unsupported node type in TableHeader: "+s.type)},[])}),{rowGroupProps:i}=$u(),{hoverProps:a,isHovered:l}=ze({onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),o=ue({...e,children:void 0,defaultClassName:"react-aria-TableHeader",values:{isHovered:l}});return u.createElement(O7,{...q(ie(e,{global:!0}),i,a),...o,ref:t,"data-hovered":l||void 0},r)},e=>u.createElement(mn,{dependencies:e.dependencies,items:e.columns},e.children));let V7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement("div",{...t,ref:n}):u.createElement("tr",{...t,ref:n})});function _7({item:e}){let t=u.useRef(null),n=u.useContext(dt),{isVirtualized:r,CollectionBranch:i}=u.useContext(ge),{rowProps:a}=C7({node:e,isVirtualized:r},n,t),{checkboxProps:l}=S7(n);return u.createElement(V7,{...a,ref:t},u.createElement(Pe,{values:[[m0,{slots:{selection:l}}],[h0,{slots:{selection:l}}]]},u.createElement(i,{collection:n.collection,parent:e})))}const Es=class Es extends et{};Es.type="column";let Cu=Es,R7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.th,{...t,ref:n})});const j7=yt(Cu,(e,t,n)=>{let r=Te(t),i=u.useContext(dt),{isVirtualized:a}=u.useContext(ge),{columnHeaderProps:l,isPressed:o}=y7({node:n,isVirtualized:a,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:s,isFocusVisible:d,focusProps:c}=Oe(),f=u.useContext(xu),m=!1;if(f)m=f.resizingColumn===n.key;else if(process.env.NODE_ENV!=="production")for(let x in["width","defaultWidth","minWidth","maxWidth"])x in n.props&&console.warn(`The ${x} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);let{hoverProps:h,isHovered:p}=ze({isDisabled:!e.allowsSorting}),g=ue({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-Column",values:{isHovered:p,isPressed:o,isFocused:s,isFocusVisible:d,allowsSorting:n.props.allowsSorting,sortDirection:i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0,isResizing:m,startResize:()=>{if(f)f.startResize(n.key),i.setKeyboardNavigationDisabled(!0);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:x=>{i.sort(n.key,x)}}}),y=g.style;f&&(y={...y,width:f.getColumnWidth(n.key)});let $=ie(e,{global:!0});return delete $.id,u.createElement(R7,{...q($,l,c,h),...g,style:y,ref:r,"data-hovered":p||void 0,"data-pressed":o||void 0,"data-focused":s||void 0,"data-focus-visible":d||void 0,"data-resizing":m||void 0,"data-allows-sorting":n.props.allowsSorting||void 0,"data-sort-direction":i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0},u.createElement(Pe,{values:[[p2,{column:n,triggerRef:r}],[ge,wl]]},g.children))}),p2=u.createContext(null),H7=u.forwardRef(function(t,n){let r=u.useContext(xu);if(!r)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let i=ke(N7(wo),"react-aria-components"),{onResizeStart:a,onResize:l,onResizeEnd:o}=u.useContext(vu),{column:s,triggerRef:d}=u.useContext(p2),c=u.useRef(null),{resizerProps:f,inputProps:m,isResizing:h,isMouseResizing:p}=k7({column:s,"aria-label":t["aria-label"]||i.format("tableResizer"),onResizeStart:a,onResize:l,onResizeEnd:o,triggerRef:d},r,c),{focusProps:g,isFocused:y,isFocusVisible:$}=Oe(),{hoverProps:x,isHovered:v}=ze(t),C=r.getColumnMinWidth(s.key)>=r.getColumnWidth(s.key),w=r.getColumnMaxWidth(s.key)<=r.getColumnWidth(s.key),{direction:S}=be(),B="both";C?B=S==="rtl"?"right":"left":w?B=S==="rtl"?"left":"right":B="both";let E=Te(n),[k,K]=u.useState("");u.useEffect(()=>{if(!E.current)return;let R=window.getComputedStyle(E.current);K(R.cursor)},[E,B]);let T=ue({...t,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:y,isFocusVisible:$,isResizing:h,isHovered:v,resizableDirection:B}}),I=ie(t,{global:!0});return u.createElement(re.div,{ref:E,role:"presentation",...q(I,T,f,x),"data-hovered":v||void 0,"data-focused":y||void 0,"data-focus-visible":$||void 0,"data-resizing":h||void 0,"data-resizable-direction":B},T.children,u.createElement("input",{ref:c,...q(m,g)}),h&&p&&jt.createPortal(u.createElement("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:k},"data-testid":"cursor-overlay"}),document.body))}),ws=class ws extends Fi{};ws.type="tablebody";let Ma=ws,U7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tbody,{...t,ref:n})});const W7=zi(Ma,(e,t,n)=>{let r=u.useContext(dt),{isVirtualized:i}=u.useContext(ge),a=r.collection,{CollectionBranch:l}=u.useContext(ge),{dragAndDropHooks:o,dropState:s}=u.useContext(ut),d=!!o?.useDroppableCollectionState&&!s?.isDisabled,c=d&&!!s&&(s.isDropTarget({type:"root"})??!1),f=a.size===0,m={isDropTarget:c,isEmpty:f},h=ue({...e,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:m}),p,g=a.columnCount;if(f&&e.renderEmptyState&&r){let x={},v={},C={};i?(v["aria-colspan"]=g,C={display:"contents"}):v.colSpan=g,p=u.createElement(ir,{role:"row",...x,style:C},u.createElement(ar,{role:"rowheader",...v,style:C},e.renderEmptyState(m)))}let{rowGroupProps:y}=$u(),$=ie(e,{global:!0});return u.createElement(U7,{...q($,h,y),ref:t,"data-empty":f||void 0},d&&u.createElement(nC,null),u.createElement(l,{collection:a,parent:n,renderDropIndicator:ba(o,s)}),p)}),Ss=class Ss extends Fi{};Ss.type="tablefooter";let Du=Ss,G7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tfoot,{...t,ref:n})});const Z7=zi(Du,(e,t,n)=>{let i=u.useContext(dt).collection,{CollectionBranch:a}=u.useContext(ge),{dragAndDropHooks:l,dropState:o}=u.useContext(ut),{rowGroupProps:s}=$u(),d=ie(e,{global:!0}),c=ue({style:e.style,className:e.className,defaultClassName:"react-aria-TableFooter",values:{}});return u.createElement(G7,{...q(d,c,s),ref:t},u.createElement(a,{collection:i,parent:n,renderDropIndicator:ba(l,o)}))}),b2=u.createContext({isFocusVisibleWithinRow:!1}),Ps=class Ps extends et{filter(t,n,r){let i=t.getChildren(this.key);for(let a of i)if(r(a.textValue,a)){let l=this.clone();return n.addDescendants(l,t),l}return null}};Ps.type="item";let Eu=Ps,ir=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tr,{...t,ref:n})});const Y7=zi(Eu,(e,t,n)=>{let r=Te(t),i=u.useContext(dt),{dragAndDropHooks:a,dragState:l,dropState:o}=u.useContext(ut),{isVirtualized:s,CollectionBranch:d}=u.useContext(ge),c=l&&!(l.isDisabled||l.selectionManager.isDisabled(n.key)),{rowProps:f,expandButtonProps:m,...h}=x7({node:n,shouldSelectOnPressUp:!!l,isVirtualized:s},i,r),{isFocused:p,isFocusVisible:g,focusProps:y}=Oe(),{isFocusVisible:$,focusProps:x}=Oe({within:!0}),{hoverProps:v,isHovered:C}=ze({isDisabled:!h.allowsSelection&&!h.hasAction&&!c,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{checkboxProps:w}=w7({key:n.key},i),S;l&&a&&(S=a.useDraggableItem({key:n.key,hasDragButton:!0},l));let B,E=u.useRef(null),{visuallyHiddenProps:k}=Dn();o&&a&&(B=a.useDropIndicator({target:{type:"item",key:n.key,dropPosition:"on"}},o,E));let K=u.useRef(null);u.useEffect(()=>{l&&!K.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.')},[]);let T=l&&l.isDragging(n.key),{children:I,...R}=e,D=e.hasChildItems||i.collection.getItem(n.lastChildKey)?.type!=="cell",M=D&&i.expandedKeys.has(n.key),G=ue({...R,id:void 0,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":n.level+1},values:{...h,state:i,isHovered:C,isFocused:p,isFocusVisible:g,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,isDragging:T,isDropTarget:B?.isDropTarget,isFocusVisibleWithin:$,id:n.key,hasChildItems:D,isExpanded:M,level:n.level+1}}),O=ie(e,{global:!0});return delete O.id,delete O.onClick,u.createElement(u.Fragment,null,B&&!B.isHidden&&u.createElement(ir,{role:"row",style:{height:0}},u.createElement(ar,{role:"gridcell",colSpan:i.collection.columnCount,style:{padding:0}},u.createElement("div",{role:"button",...k,...B.dropIndicatorProps,ref:E}))),u.createElement(ir,{...q(O,G,f,y,v,S?.dragProps,x),ref:r,"data-disabled":h.isDisabled||void 0,"data-selected":h.isSelected||void 0,"data-hovered":C||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":g||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":T||void 0,"data-drop-target":B?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,"data-focus-visible-within":$||void 0,"data-expanded":M||void 0,"data-has-child-items":D||void 0,"data-level":n.level+1},u.createElement(Pe,{values:[[m0,{slots:{[Nt]:{},selection:w}}],[h0,{slots:{[Nt]:{},selection:w}}],[vt,{slots:{[Nt]:{},chevron:m,drag:{...S?.dragButtonProps,ref:K,style:{pointerEvents:"none"}}}}],[zr,{isSelected:h.isSelected}],[b2,{isFocusVisibleWithinRow:$}]]},u.createElement(d,{collection:i.collection,parent:n}))))},e=>{if(e.id==null&&typeof e.children=="function")throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");let t=[e.value].concat(e.dependencies);return u.createElement(mn,{dependencies:t,items:e.columns,idScope:e.id},e.children)}),ks=class ks extends et{};ks.type="cell";let wu=ks,ar=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.td,{...t,ref:n})});const q7=yt(wu,(e,t,n)=>{let r=Te(t),i=u.useContext(dt),{dragState:a}=u.useContext(ut),{isVirtualized:l}=u.useContext(ge);n.column=i.collection.columns[n.index];let{gridCellProps:o,isPressed:s}=D7({node:n,shouldSelectOnPressUp:!!a,isVirtualized:l,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:d,isFocusVisible:c,focusProps:f}=Oe(),{hoverProps:m,isHovered:h}=ze({}),{isFocusVisibleWithinRow:p}=u.useContext(b2),g=n.parentKey!=null?i.selectionManager.isSelected(n.parentKey):!1,y=n.colIndex||n.index,$=i.collection.getItem(n.parentKey),x=$.props.hasChildItems||i.collection.getItem($.lastChildKey)?.type!=="cell",v=x&&i.expandedKeys.has(n.parentKey),C=i.selectionManager.isDisabled(n.parentKey),w=ue({...e,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:d,isFocusVisible:c,isFocusVisibleWithinRow:p,isPressed:s,isHovered:h,isSelected:g,id:n.key,columnIndex:y,hasChildItems:x,isExpanded:v,isDisabled:C,level:$.level+1,isTreeColumn:n.column.key===i.treeColumn}}),S=ie(e,{global:!0});return delete S.id,u.createElement(ar,{...q(S,w,o,f,m),ref:r,"data-focused":d||void 0,"data-focus-visible":c||void 0,"data-focus-visible-within-row":p||void 0,"data-pressed":s||void 0,"data-selected":g||void 0,"data-column-index":y,"data-expanded":v||void 0,"data-has-child-items":x||void 0,"data-level":$.level+1,"data-tree-column":n.column.key===i.treeColumn||void 0,"data-disabled":C||void 0},u.createElement(ge.Provider,{value:wl},w.children))});function X7(e,t){t=Te(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(ut),i=u.useRef(null),{dropIndicatorProps:a,isHidden:l,isDropTarget:o}=n.useDropIndicator(e,r,i);if(l)return null;let s=r&&e.target.type==="item"?(r.collection.getItem(e.target.key)?.level||0)+1:1;return u.createElement(tC,{...e,dropIndicatorProps:a,isDropTarget:o,buttonRef:i,level:s,ref:t})}let J7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tr,{...t,ref:n})}),Q7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.td,{...t,ref:n})});function eC(e,t){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:i,level:a,...l}=e,o=u.useContext(dt),{visuallyHiddenProps:s}=Dn(),d=ue({...l,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":a+1},values:{isDropTarget:r}});return u.createElement(J7,{...ie(e,{global:!0}),...d,role:"row",ref:t,"data-drop-target":r||void 0,"aria-level":a},u.createElement(Q7,{role:"gridcell",colSpan:o.collection.columnCount,style:{padding:0}},u.createElement("div",{...s,role:"button",...n,ref:i}),d.children))}const tC=u.forwardRef(eC);function nC(){let e=u.useContext(dt),{dragAndDropHooks:t,dropState:n}=u.useContext(ut),r=u.useRef(null),{dropIndicatorProps:i}=t.useDropIndicator({target:{type:"root"}},n,r),a=n.isDropTarget({type:"root"}),{visuallyHiddenProps:l}=Dn();return!a&&i["aria-hidden"]?null:u.createElement(ir,{role:"row","aria-hidden":i["aria-hidden"],style:{height:0}},u.createElement(ar,{role:"gridcell",colSpan:e.collection.columnCount,style:{padding:0}},u.createElement("div",{role:"button",...l,...i,ref:r})))}const rC=yt(Ti,function(t,n,r){let i=u.useContext(dt),{isVirtualized:a}=u.useContext(ge),{isLoading:l,onLoadMore:o,scrollOffset:s,...d}=t,c=i.collection.columns.length,f=u.useRef(null),m=u.useMemo(()=>({onLoadMore:o,collection:i?.collection,sentinelRef:f,scrollOffset:s}),[o,s,i?.collection]);n4(m,f);let h=ue({...d,id:void 0,children:r.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":r.level+1},values:void 0}),p={},g={},y={};return a?(g["aria-colspan"]=c,y={display:"contents"}):g.colSpan=c,u.createElement(u.Fragment,null,u.createElement(ir,{style:{height:0},inert:Jm(!0)},u.createElement(ar,{style:{padding:0,border:0}},u.createElement("div",{"data-testid":"loadMoreSentinel",ref:f,style:{position:"relative",height:1,width:1}}))),l&&h.children&&u.createElement(ir,{...q(ie(t,{global:!0}),p),...h,role:"row",ref:n,"aria-level":r.level+1,"data-level":r.level+1},u.createElement(ar,{role:"rowheader",...g,style:y},h.children)))}),g2=new WeakMap;function y2(e,t,n){if(!e)return"";typeof t=="string"&&(t=t.replace(/\s+/g,""));let r=g2.get(e);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${t}`}function iC(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:l,selectedKey:o}=t,s=r===o,d=i||t.isDisabled||t.selectionManager.isDisabled(r),c=t.collection.getItem(r),{itemProps:f,isPressed:m}=Rr({selectionManager:l,key:r,ref:n,isDisabled:d,shouldSelectOnPressUp:a??c?.props.href!=null,linkBehavior:"selection"}),h=y2(t,r,"tab"),p=y2(t,r,"tabpanel"),{tabIndex:g}=f,y=ie(c?.props,{labelable:!0});delete y.id;let $=Pi(c?.props),{focusableProps:x}=zn({...c?.props,isDisabled:d},n);return{tabProps:q(y,x,$,f,{id:h,"aria-selected":s,"aria-disabled":d||void 0,"aria-controls":s?p:void 0,tabIndex:d?void 0:g,role:"tab"}),isSelected:s,isDisabled:d,isPressed:m}}class aC{constructor(t,n,r,i=new Set){this.collection=t,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){return this.disabledKeys.has(t)||!!this.collection.getItem(t)?.props?.isDisabled}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){let n=t;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n)&&n!==t);return n}getPreviousKey(t){let n=t;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n)&&n!==t);return n}}function lC(e,t,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=e,{collection:a,selectionManager:l,disabledKeys:o}=t,{direction:s}=be(),d=u.useMemo(()=>new aC(a,s,r,o),[a,o,r,s]),{collectionProps:c}=xa({ref:n,selectionManager:l,keyboardDelegate:d,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ee();g2.set(t,f);let m=Tt({...e,id:f});return{tabListProps:{...q(c,m),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function oC(e){let[t,n]=He(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=u.useMemo(()=>t!=null?[t]:[],[t]),{collection:i,disabledKeys:a,selectionManager:l}=Ca({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:s=>{if(s==="all")return;let d=s.values().next().value??null;d===t&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),o=t!=null?i.getItem(t):null;return{collection:i,disabledKeys:a,selectionManager:l,selectedKey:t,setSelectedKey:n,selectedItem:o}}function uC(e){let t=oC({...e,onSelectionChange:e.onSelectionChange?l=>{l!=null&&e.onSelectionChange?.(l)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??$2(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=u.useRef(i);return u.useEffect(()=>{let l=i;e.selectedKey==null&&(n.isEmpty||l==null||!r.getItem(l))&&(l=$2(r,t.disabledKeys),l!=null&&n.setSelectedKeys([l])),(l!=null&&n.focusedKey==null||!n.isFocused&&l!==a.current)&&n.setFocusedKey(l),a.current=l}),{...t,isDisabled:e.isDisabled||!1}}function $2(e,t){let n=null;if(e){for(n=e.getFirstKey();n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}const Su=u.createContext(null),Ka=u.createContext(null),v2=u.forwardRef(function(t,n){[t,n]=pe(t,n,Su);let{children:r,orientation:i="horizontal"}=t;return r=u.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),u.createElement(fn,{content:r},a=>u.createElement(sC,{props:t,collection:a,tabsRef:n}))});function sC({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,i=uC({...e,collection:n,children:void 0}),{focusProps:a,isFocused:l,isFocusVisible:o}=Oe({within:!0}),s=u.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:o}),[r,l,o]),d=ue({...e,defaultClassName:"react-aria-Tabs",values:s}),c=ie(e,{global:!0});return u.createElement(re.div,{...q(c,d,a),ref:t,slot:e.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":o||void 0,"data-disabled":i.isDisabled||void 0},u.createElement(Pe,{values:[[Su,e],[Ka,i]]},d.children))}const x2=u.forwardRef(function(t,n){return u.useContext(Ka)?u.createElement(dC,{props:t,forwardedRef:n}):u.createElement(mn,t)});function dC({props:e,forwardedRef:t}){let n=u.useContext(Ka),{CollectionRoot:r}=u.useContext(ge),{orientation:i="horizontal",keyboardActivation:a="automatic"}=qe(Su),l=Te(t),{tabListProps:o}=lC({...e,orientation:i,keyboardActivation:a},n,l),s=ue({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),d=ie(e,{global:!0});return delete d.id,u.createElement(re.div,{...q(d,s,o),ref:l,"data-orientation":i||void 0},u.createElement(ga,null,u.createElement(r,{collection:n.collection,persistedKeys:Ed(n.selectionManager.focusedKey)})))}const Bs=class Bs extends et{};Bs.type="item";let Pu=Bs;const C2=yt(Pu,(e,t,n)=>{let r=u.useContext(Ka),i=Te(t),{tabProps:a,isSelected:l,isDisabled:o,isPressed:s}=iC({key:n.key,...e},r,i),{focusProps:d,isFocused:c,isFocusVisible:f}=Oe(),{hoverProps:m,isHovered:h}=ze({isDisabled:o,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),p=ue({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:o,isFocused:c,isFocusVisible:f,isPressed:s,isHovered:h}}),g=n.props.href?re.a:re.div,y=ie(e,{global:!0});return delete y.id,delete y.onClick,u.createElement(g,{...q(y,p,a,d,m),ref:i,"data-selected":l||void 0,"data-disabled":o||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":h||void 0},u.createElement(zr.Provider,{value:{isSelected:l}},p.children))}),cC=u.createContext({});let fC=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i};const mC=u.forwardRef(function(t,n){[t,n]=pe(t,n,cC);let{hoverProps:r,isHovered:i}=ze(t),{isFocused:a,isFocusVisible:l,focusProps:o}=Oe({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=ue({...t,values:{isHovered:i,isFocused:a,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-TextArea"});return u.createElement(re.textarea,{...q(fC(t),o,r),...d,ref:n,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":s||void 0})}),hC=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},pC=(e,t)=>({classGroupId:e,validator:t}),D2=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),La="-",E2=[],bC="arbitrary..",gC=e=>{const t=$C(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return yC(l);const o=l.split(La),s=o[0]===""&&o.length>1?1:0;return w2(o,s,t)},getConflictingClassGroupIds:(l,o)=>{if(o){const s=r[l],d=n[l];return s?d?hC(d,s):s:d||E2}return n[l]||E2}}},w2=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const d=w2(e,t+1,a);if(d)return d}const l=n.validators;if(l===null)return;const o=t===0?e.join(La):e.slice(t).join(La),s=l.length;for(let d=0;d<s;d++){const c=l[d];if(c.validator(o))return c.classGroupId}},yC=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?bC+r:void 0})(),$C=e=>{const{theme:t,classGroups:n}=e;return vC(n,t)},vC=(e,t)=>{const n=D2();for(const r in e){const i=e[r];ku(i,n,r,t)}return n},ku=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const l=e[a];xC(l,t,n,r)}},xC=(e,t,n,r)=>{if(typeof e=="string"){CC(e,t,n);return}if(typeof e=="function"){DC(e,t,n,r);return}EC(e,t,n,r)},CC=(e,t,n)=>{const r=e===""?t:S2(t,e);r.classGroupId=n},DC=(e,t,n,r)=>{if(wC(e)){ku(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(pC(n,e))},EC=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let l=0;l<a;l++){const[o,s]=i[l];ku(s,S2(t,o),n,r)}},S2=(e,t)=>{let n=e;const r=t.split(La),i=r.length;for(let a=0;a<i;a++){const l=r[a];let o=n.nextPart.get(l);o||(o=D2(),n.nextPart.set(l,o)),n=o}return n},wC=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,SC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,l)=>{n[a]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let l=n[a];if(l!==void 0)return l;if((l=r[a])!==void 0)return i(a,l),l},set(a,l){a in n?n[a]=l:i(a,l)}}},Bu="!",P2=":",PC=[],k2=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),kC=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let l=0,o=0,s=0,d;const c=i.length;for(let g=0;g<c;g++){const y=i[g];if(l===0&&o===0){if(y===P2){a.push(i.slice(s,g)),s=g+1;continue}if(y==="/"){d=g;continue}}y==="["?l++:y==="]"?l--:y==="("?o++:y===")"&&o--}const f=a.length===0?i:i.slice(s);let m=f,h=!1;f.endsWith(Bu)?(m=f.slice(0,-1),h=!0):f.startsWith(Bu)&&(m=f.slice(1),h=!0);const p=d&&d>s?d-s:void 0;return k2(a,h,m,p)};if(t){const i=t+P2,a=r;r=l=>l.startsWith(i)?a(l.slice(i.length)):k2(PC,!1,l,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},BC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const l=n[a],o=l[0]==="[",s=t.has(l);o||s?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},NC=e=>({cache:SC(e.cacheSize),parseClassName:kC(e),sortModifiers:BC(e),postfixLookupClassGroupIds:AC(e),...gC(e)}),AC=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},FC=/\s+/,TC=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:l}=t,o=[],s=e.trim().split(FC);let d="";for(let c=s.length-1;c>=0;c-=1){const f=s[c],{isExternal:m,modifiers:h,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:y}=n(f);if(m){d=f+(d.length>0?" "+d:d);continue}let $=!!y,x;if($){const B=g.substring(0,y);x=r(B);const E=x&&l[x]?r(g):void 0;E&&E!==x&&(x=E,$=!1)}else x=r(g);if(!x){if(!$){d=f+(d.length>0?" "+d:d);continue}if(x=r(g),!x){d=f+(d.length>0?" "+d:d);continue}$=!1}const v=h.length===0?"":h.length===1?h[0]:a(h).join(":"),C=p?v+Bu:v,w=C+x;if(o.indexOf(w)>-1)continue;o.push(w);const S=i(x,$);for(let B=0;B<S.length;++B){const E=S[B];o.push(C+E)}d=f+(d.length>0?" "+d:d)}return d},IC=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=B2(n))&&(i&&(i+=" "),i+=r);return i},B2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=B2(e[r]))&&(n&&(n+=" "),n+=t);return n},N2=(e,...t)=>{let n,r,i,a;const l=s=>{const d=t.reduce((c,f)=>f(c),e());return n=NC(d),r=n.cache.get,i=n.cache.set,a=o,o(s)},o=s=>{const d=r(s);if(d)return d;const c=TC(s,n);return i(s,c),c};return a=l,(...s)=>a(IC(...s))},MC=[],Fe=e=>{const t=n=>n[e]||MC;return t.isThemeGetter=!0,t},A2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,F2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,KC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,LC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,VC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_C=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,an=e=>KC.test(e),de=e=>!!e&&!Number.isNaN(Number(e)),St=e=>!!e&&Number.isInteger(Number(e)),Nu=e=>e.endsWith("%")&&de(e.slice(0,-1)),Vt=e=>LC.test(e),T2=()=>!0,RC=e=>OC.test(e)&&!zC.test(e),Au=()=>!1,jC=e=>VC.test(e),HC=e=>_C.test(e),UC=e=>!te(e)&&!ne(e),WC=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),GC=e=>ln(e,z2,Au),te=e=>A2.test(e),Bn=e=>ln(e,V2,RC),I2=e=>ln(e,tD,de),ZC=e=>ln(e,R2,T2),YC=e=>ln(e,_2,Au),M2=e=>ln(e,L2,Au),qC=e=>ln(e,O2,HC),Oa=e=>ln(e,j2,jC),ne=e=>F2.test(e),ei=e=>Nn(e,V2),XC=e=>Nn(e,_2),K2=e=>Nn(e,L2),JC=e=>Nn(e,z2),QC=e=>Nn(e,O2),za=e=>Nn(e,j2,!0),eD=e=>Nn(e,R2,!0),ln=(e,t,n)=>{const r=A2.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Nn=(e,t,n=!1)=>{const r=F2.exec(e);return r?r[1]?t(r[1]):n:!1},L2=e=>e==="position"||e==="percentage",O2=e=>e==="image"||e==="url",z2=e=>e==="length"||e==="size"||e==="bg-size",V2=e=>e==="length",tD=e=>e==="number",_2=e=>e==="family-name",R2=e=>e==="number"||e==="weight",j2=e=>e==="shadow",H2=()=>{const e=Fe("color"),t=Fe("font"),n=Fe("text"),r=Fe("font-weight"),i=Fe("tracking"),a=Fe("leading"),l=Fe("breakpoint"),o=Fe("container"),s=Fe("spacing"),d=Fe("radius"),c=Fe("shadow"),f=Fe("inset-shadow"),m=Fe("text-shadow"),h=Fe("drop-shadow"),p=Fe("blur"),g=Fe("perspective"),y=Fe("aspect"),$=Fe("ease"),x=Fe("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...C(),ne,te],S=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],E=()=>[ne,te,s],k=()=>[an,"full","auto",...E()],K=()=>[St,"none","subgrid",ne,te],T=()=>["auto",{span:["full",St,ne,te]},St,ne,te],I=()=>[St,"auto",ne,te],R=()=>["auto","min","max","fr",ne,te],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...E()],O=()=>[an,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],Y=()=>[an,"screen","full","dvw","lvw","svw","min","max","fit",...E()],P=()=>[an,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],N=()=>[e,ne,te],_=()=>[...C(),K2,M2,{position:[ne,te]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",JC,GC,{size:[ne,te]}],A=()=>[Nu,ei,Bn],F=()=>["","none","full",d,ne,te],z=()=>["",de,ei,Bn],L=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[de,Nu,K2,M2],Ke=()=>["","none",p,ne,te],V=()=>["none",de,ne,te],j=()=>["none",de,ne,te],me=()=>[de,ne,te],he=()=>[an,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Vt],breakpoint:[Vt],color:[T2],container:[Vt],"drop-shadow":[Vt],ease:["in","out","in-out"],font:[UC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Vt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Vt],shadow:[Vt],spacing:["px",de],text:[Vt],"text-shadow":[Vt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",an,te,ne,y]}],container:["container"],"container-type":[{"@container":["","normal","size",ne,te]}],"container-named":[WC],columns:[{columns:[de,te,ne,o]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{"inset-s":k(),start:k()}],end:[{"inset-e":k(),end:k()}],"inset-bs":[{"inset-bs":k()}],"inset-be":[{"inset-be":k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[St,"auto",ne,te]}],basis:[{basis:[an,"full","auto",o,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[de,an,"auto","initial","none",te]}],grow:[{grow:["",de,ne,te]}],shrink:[{shrink:["",de,ne,te]}],order:[{order:[St,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...Y()]}],"min-inline-size":[{"min-inline":["auto",...Y()]}],"max-inline-size":[{"max-inline":["none",...Y()]}],"block-size":[{block:["auto",...P()]}],"min-block-size":[{"min-block":["auto",...P()]}],"max-block-size":[{"max-block":["none",...P()]}],w:[{w:[o,"screen",...O()]}],"min-w":[{"min-w":[o,"screen","none",...O()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[l]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",n,ei,Bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,eD,ZC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Nu,te]}],"font-family":[{font:[XC,YC,t]}],"font-features":[{"font-features":[te]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ne,te]}],"line-clamp":[{"line-clamp":[de,"none",ne,I2]}],leading:[{leading:[a,...E()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:[de,"from-font","auto",ne,Bn]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[de,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"tab-size":[{tab:[St,ne,te]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},St,ne,te],radial:["",ne,te],conic:[St,ne,te]},QC,qC]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...L(),"hidden","none"]}],"divide-style":[{divide:[...L(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...L(),"none","hidden"]}],"outline-offset":[{"outline-offset":[de,ne,te]}],"outline-w":[{outline:["",de,ei,Bn]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",c,za,Oa]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",f,za,Oa]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[de,Bn]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",m,za,Oa]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[de,ne,te]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[de]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[de]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:Ke()}],brightness:[{brightness:[de,ne,te]}],contrast:[{contrast:[de,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",h,za,Oa]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",de,ne,te]}],"hue-rotate":[{"hue-rotate":[de,ne,te]}],invert:[{invert:["",de,ne,te]}],saturate:[{saturate:[de,ne,te]}],sepia:[{sepia:["",de,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":Ke()}],"backdrop-brightness":[{"backdrop-brightness":[de,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[de,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",de,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[de,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",de,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[de,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[de,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",de,ne,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[de,"initial",ne,te]}],ease:[{ease:["linear","initial",$,ne,te]}],delay:[{delay:[de,ne,te]}],animate:[{animate:["none",x,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ne,te]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:V()}],"rotate-x":[{"rotate-x":V()}],"rotate-y":[{"rotate-y":V()}],"rotate-z":[{"rotate-z":V()}],scale:[{scale:j()}],"scale-x":[{"scale-x":j()}],"scale-y":[{"scale-y":j()}],"scale-z":[{"scale-z":j()}],"scale-3d":["scale-3d"],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],zoom:[{zoom:[St,ne,te]}],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ne,te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":N()}],"scrollbar-track-color":[{"scrollbar-track":N()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ne,te]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[de,ei,Bn,I2]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},nD=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>(lr(e,"cacheSize",t),lr(e,"prefix",n),lr(e,"experimentalParseClassName",r),Va(e.theme,a.theme),Va(e.classGroups,a.classGroups),Va(e.conflictingClassGroups,a.conflictingClassGroups),Va(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),lr(e,"postfixLookupClassGroups",a.postfixLookupClassGroups),lr(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),_a(e.theme,i.theme),_a(e.classGroups,i.classGroups),_a(e.conflictingClassGroups,i.conflictingClassGroups),_a(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Fu(e,i,"postfixLookupClassGroups"),Fu(e,i,"orderSensitiveModifiers"),e),lr=(e,t,n)=>{n!==void 0&&(e[t]=n)},Va=(e,t)=>{if(t)for(const n in t)lr(e,n,t[n])},_a=(e,t)=>{if(t)for(const n in t)Fu(e,t,n)},Fu=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},rD=((e,...t)=>typeof e=="function"?N2(H2,e,...t):N2(()=>nD(H2(),e),...t))({extend:{theme:{text:["h1","h2","h3","h4","h5","h6","body-lg","body-sm","caption-lg","caption-sm"]}}});function H(...e){return rD(ee(e))}const U2=u.createContext({size:"md"}),iD=()=>u.useContext(U2),W2=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,G2=ee,Z=(e,t)=>n=>{var r;if(t?.variants==null)return G2(e,n?.class,n?.className);const{variants:i,defaultVariants:a}=t,l=Object.keys(i).map(d=>{const c=n?.[d],f=a?.[d];if(c===null)return null;const m=W2(c)||W2(f);return i[d][m]}),o=n&&Object.entries(n).reduce((d,c)=>{let[f,m]=c;return m===void 0||(d[f]=m),d},{}),s=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,c)=>{let{class:f,className:m,...h}=c;return Object.entries(h).every(p=>{let[g,y]=p;return Array.isArray(y)?y.includes({...a,...o}[g]):{...a,...o}[g]===y})?[...d,f,m]:d},[]);return G2(e,l,s,n?.class,n?.className)},aD={xs:18,sm:20,md:20,lg:24,xl:28,"2xl":28},lD=Z("inline-flex shrink-0 items-center justify-center [&_svg]:size-full",{variants:{size:{xs:"size-[18px]",sm:"size-[20px]",md:"size-[20px]",lg:"size-[24px]",xl:"size-[28px]","2xl":"size-[28px]"}},defaultVariants:{size:"md"}}),oD=Z(["relative inline-flex items-center justify-center font-bold","transition-[color,background-color,border-color,box-shadow,filter,transform] duration-150","focus-visible:outline-none","[-webkit-tap-highlight-color:transparent]","disabled:cursor-not-allowed data-[disabled]:cursor-not-allowed data-[pending]:cursor-wait","data-[pressed]:brightness-[0.96]"],{variants:{size:{xs:"py-1 px-2 gap-1 rounded-md text-caption-sm",sm:"h-[36px] px-4 gap-1 rounded-lg text-caption-sm",md:"h-[44px] px-4 gap-2 rounded-lg text-sm",lg:"h-[52px] px-5 gap-2 rounded-[10px] text-body-sm",xl:"h-[60px] px-6 gap-2 rounded-[10px] text-body-lg","2xl":"h-[68px] px-6 gap-2 rounded-[10px] text-body-lg"},tone:{primary:"",destructive:""},iconOnly:{true:"!p-0",false:""},variant:{solid:["text-white","disabled:bg-light-100 disabled:text-light-400","data-[pending]:!bg-light-100 data-[pending]:!text-light-400"],outline:["bg-white border","disabled:bg-white disabled:text-light-400 disabled:border-light-200","data-[pending]:!bg-white data-[pending]:!text-light-400 data-[pending]:!border-light-200"],ghost:["bg-transparent","disabled:text-light-400","data-[pending]:!bg-transparent data-[pending]:!text-light-400"],"outline-primary":["bg-white border border-primary-500 text-primary-500","hover:bg-primary-100 hover:border-primary-300 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400 disabled:border-light-200","data-[pending]:!bg-white data-[pending]:!text-light-400 data-[pending]:!border-light-200"],"ghost-primary":["bg-transparent text-primary-500","hover:bg-primary-50 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:text-light-400","data-[pending]:!bg-transparent data-[pending]:!text-light-400"],plain:["bg-transparent h-auto rounded-none p-0 gap-1","disabled:text-light-400 data-[pending]:!text-light-400"],"plain-black":["bg-transparent h-auto rounded-none p-0 gap-1","disabled:text-light-400 data-[pending]:!text-light-400"]}},compoundVariants:[{tone:"primary",variant:"solid",class:["bg-primary-500","hover:bg-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"outline",class:["border-light-200 text-light-900","hover:bg-light-50","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"ghost",class:["text-light-800","hover:bg-light-50 hover:text-light-900","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain",class:["text-primary-500","hover:text-primary-800 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain-black",class:["text-light-800","hover:text-light-900 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"solid",class:["bg-error-500 text-white","hover:bg-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-light-100 data-[pending]:!bg-light-100"].join(" ")},{tone:"destructive",variant:"outline",class:["border-error-500 text-error-500","hover:border-error-300 hover:bg-error-100 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"ghost",class:["text-error-500","hover:bg-error-50 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400","data-[pending]:!bg-white data-[pending]:!text-light-400"].join(" ")},{tone:"destructive",variant:"plain",class:["text-error-500","hover:text-error-800 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{size:"xs",iconOnly:!0,class:"!w-[26px] !h-[26px]"},{size:"sm",iconOnly:!0,class:"!w-[36px] !h-[36px]"},{size:"md",iconOnly:!0,class:"!w-[44px] !h-[44px]"},{size:"lg",iconOnly:!0,class:"!w-[52px] !h-[52px]"},{size:"xl",iconOnly:!0,class:"!w-[60px] !h-[60px]"},{size:"2xl",iconOnly:!0,class:"!w-[68px] !h-[68px]"}],defaultVariants:{size:"md",tone:"primary",variant:"solid",iconOnly:!1}}),uD={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":22},Z2=u.forwardRef(({children:e,className:t,tone:n,variant:r,size:i="md",iconOnly:a,isDisabled:l,disabled:o,isPending:s,title:d,value:c,...f},m)=>{const h=u.useCallback(g=>{g&&(d===void 0?g.removeAttribute("title"):g.title=d,c===void 0?g.removeAttribute("value"):g.value=String(c)),typeof m=="function"?m(g):m&&(m.current=g)},[m,d,c]),p=f;return u.createElement(U2.Provider,{value:{size:i}},u.createElement(Xt,{...p,ref:h,isDisabled:l||o,isPending:s,className:al(t,g=>H(oD({tone:n,variant:r,size:i,iconOnly:a}),g))},al(e,(g,{isPending:y})=>u.createElement(u.Fragment,null,y?u.createElement("span",{className:"flex shrink-0 items-center","aria-hidden":!0},u.createElement(As,{size:uD[i],className:"animate-spin"})):null,y&&a?null:g))))});Z2.displayName="Button";const sD=({children:e})=>{const{size:t}=iD();return u.createElement("span",{className:lD({size:t})},e)},dD=({children:e})=>u.createElement("span",{className:"whitespace-nowrap"},e),Ze=Z2;Ze.Icon=sD,Ze.Text=dD;const Y2=Z(["inline-flex items-center justify-center","border transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4 rounded-[4px]",md:"h-5 w-5 rounded-[6px]",lg:"h-5 w-5 rounded-[6px]"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-white border-light-200 hover:border-light-400"},{checked:!0,disabled:!1,className:"bg-primary-500 border-primary-500 text-white hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"bg-light-100 border-light-200 text-white"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),cD={sm:{width:12,height:9},md:{width:14,height:10},lg:{width:14,height:10}},q2=b.forwardRef(({id:e,checked:t,indeterminate:n=!1,disabled:r,size:i="md",onCheckedChange:a,className:l},o)=>{const s=()=>{r||a?.(!t)},d=cD[i],c=r?"text-white/80":"text-current";return b.createElement("button",{id:e,ref:o,type:"button",role:"checkbox","aria-checked":n?"mixed":t,disabled:r,onClick:s,className:ee(Y2({size:i,checked:t,disabled:r}),l)},t&&!n&&b.createElement("svg",{width:d.width,height:d.height,viewBox:"0 0 14 10",fill:"none",className:c},b.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),n&&b.createElement("span",{className:ee(c,"bg-current rounded-sm",i==="sm"&&"h-0.5 w-3",(i==="md"||i==="lg")&&"h-0.5 w-4")}))});q2.displayName="Checkbox";const X2=b.createContext(null),fD=({value:e,defaultValue:t,onValueChange:n,children:r,className:i})=>{const[a,l]=b.useState(t),o=e??a,s=d=>{l(d),n?.(d)};return b.createElement(X2.Provider,{value:{value:o,onValueChange:s}},b.createElement("div",{role:"radiogroup",className:i},r))},mD=()=>{const e=b.useContext(X2);if(!e)throw new Error("RadioGroupItem must be used within RadioGroup");return e},hD=Z(["relative inline-flex items-center justify-center","border rounded-full transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"border-light-200 bg-white hover:border-light-400"},{checked:!0,disabled:!1,className:"border-primary-500 bg-primary-500 hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"border-light-200 bg-light-100"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),pD=Z(["rounded-full bg-white transition-all"],{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2 w-2"},checked:{true:"scale-100",false:"scale-0"}},defaultVariants:{size:"md",checked:!1}}),J2=b.forwardRef(({id:e,value:t,disabled:n,size:r="md",className:i},a)=>{const{value:l,onValueChange:o}=mD(),s=l===t;return b.createElement("button",{ref:a,id:e,type:"button",role:"radio","aria-checked":s,disabled:n,onClick:()=>{n||o?.(t)},className:ee(hD({size:r,checked:s,disabled:n}),i)},b.createElement("span",{className:pD({size:r,checked:s})}))});J2.displayName="RadioGroupItem";const bD=Z(["inline-flex items-center shrink-0 rounded-full p-[2px]","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-5 w-9",md:"h-6 w-11",lg:"h-6 w-11"},checked:{true:"justify-end",false:"justify-start"},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"},variant:{default:"",success:""}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-light-200"},{checked:!0,disabled:!1,variant:"default",className:"bg-primary-500 hover:bg-primary-800"},{checked:!0,disabled:!1,variant:"success",className:"bg-success-500 hover:bg-success-800"},{disabled:!0,className:"bg-light-100"},{variant:"default",className:"focus-visible:ring-primary-400"},{variant:"success",className:"focus-visible:ring-success-500"}],defaultVariants:{size:"md",checked:!1,disabled:!1,variant:"default"}}),gD=Z("rounded-full shrink-0 shadow-[0_1px_3px_0_rgba(16,24,40,0.10),0_1px_2px_0_rgba(16,24,40,0.06)]",{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},disabled:{true:"bg-light-50",false:"bg-white"}},defaultVariants:{size:"md",disabled:!1}}),Q2=b.forwardRef(({checked:e=!1,size:t="md",variant:n="default",disabled:r,onCheckedChange:i,className:a},l)=>b.createElement("button",{ref:l,type:"button",role:"switch","aria-checked":e,disabled:r,onClick:()=>{r||i?.(!e)},className:ee(bD({size:t,checked:e,disabled:r,variant:n}),a)},b.createElement("span",{className:gD({size:t,disabled:r})})));Q2.displayName="Toggle";const yD=1e3,$D=900,vD=Z(["flex flex-col overflow-hidden","rounded-lg border border-light-200 bg-white shadow-lg","outline-none"]);function xD(e){b.useEffect(()=>{let t=0;const n=r=>{!e.current||t||r.target instanceof Node&&e.current.contains(r.target)||(t=requestAnimationFrame(()=>{t=0,window.dispatchEvent(new Event("resize"))}))};return document.addEventListener("scroll",n,!0),()=>{document.removeEventListener("scroll",n,!0),t&&cancelAnimationFrame(t)}},[e])}function CD(e){const t=()=>{e.hasAttribute("role")&&e.removeAttribute("role")};t();const n=new MutationObserver(t);return n.observe(e,{attributes:!0,attributeFilter:["role"]}),()=>n.disconnect()}const Pt=b.forwardRef(({className:e,style:t,matchTriggerWidth:n=!1,children:r,...i},a)=>{const l=b.useRef(null),o=b.useRef(null),s=b.useCallback(d=>{l.current=d,typeof a=="function"?a(d):a&&(a.current=d),o.current?.(),o.current=d?CD(d):null},[a]);return xD(l),b.createElement(i3,{ref:s,...i,style:{zIndex:yD,...n?{width:"var(--trigger-width)"}:void 0,...t},className:H(vD(),e)},r)});Pt.displayName="Popover";const DD=Z(["relative rounded-lg text-caption-sm font-semibold text-white","bg-primary-900","shadow-lg","pointer-events-none","select-none"],{variants:{side:{top:"",bottom:"",left:"",right:""},hasSupportingText:{true:"p-3",false:"px-3 py-2"}},defaultVariants:{side:"top",hasSupportingText:!1}}),ED="mt-1 font-medium text-light-100",wD="overflow-visible border-0 bg-transparent shadow-none pointer-events-none",SD="block text-primary-900",PD=12,kD={top:"M0 0H16L8 6Z",bottom:"M0 6H16L8 0Z",left:"M0 0V16L6 8Z",right:"M6 0V16L0 8Z"};function BD({placement:e}){const t=e==="left"||e==="right";return b.createElement("svg",{"aria-hidden":"true",width:t?6:16,height:t?16:6,viewBox:t?"0 0 6 16":"0 0 16 6",className:SD,shapeRendering:"geometricPrecision"},b.createElement("path",{d:kD[e],fill:"currentColor"}))}const Ra=({content:e,supportingText:t,side:n="top",open:r,defaultOpen:i=!1,disabled:a=!1,delay:l=100,className:o,children:s})=>{const[d,c]=b.useState(i),f=r??d,m=b.useRef(null),h=b.useRef(null),p=()=>{a||(h.current&&clearTimeout(h.current),l>0?h.current=window.setTimeout(()=>c(!0),l):c(!0))},g=()=>{a||(h.current&&(clearTimeout(h.current),h.current=null),c(!0))},y=()=>{h.current&&clearTimeout(h.current),l>0?h.current=window.setTimeout(()=>c(!1),l):c(!1)},$=()=>{h.current&&(clearTimeout(h.current),h.current=null),c(!1)};return b.createElement(b.Fragment,null,b.createElement("span",{ref:m,className:"inline-flex",onMouseEnter:p,onMouseLeave:y,onFocus:g,onBlur:$,tabIndex:0},s),b.createElement(Pt,{isNonModal:!0,triggerRef:m,isOpen:f,onOpenChange:c,placement:n,offset:PD,className:wD},({placement:x})=>b.createElement(b.Fragment,null,b.createElement("div",{role:"tooltip",className:ee(DD({side:n,hasSupportingText:!!t}),o)},e,t&&b.createElement("p",{className:ED},t)),b.createElement(Qx,{className:"react-aria-OverlayArrow data-[placement=bottom]:!bottom-[calc(100%-1px)]"},b.createElement(BD,{placement:x==null||x==="center"?n:x})))))};Ra.displayName="Tooltip";const ND="text-light-800",AD="hover:text-light-900",FD="border-light-200",TD="group-hover:border-light-500",ID={brand:{bg:"bg-primary-50",border:"border-primary-300",hoverBg:"hover:bg-primary-100",hoverBorder:"hover:border-primary-500"},gray:{bg:"bg-white",border:"border-light-200",hoverBg:"hover:bg-light-100",hoverBorder:"hover:border-light-500"},error:{bg:"bg-error-50",border:"border-error-200",hoverBg:"hover:bg-error-100",hoverBorder:"hover:border-error-500"},warning:{bg:"bg-warning-50",border:"border-warning-200",hoverBg:"hover:bg-warning-100",hoverBorder:"hover:border-warning-500"},success:{bg:"bg-success-50",border:"border-success-200",hoverBg:"hover:bg-success-100",hoverBorder:"hover:border-success-500"},"blue-gray":{bg:"bg-blue-gray-50",border:"border-blue-gray-200",hoverBg:"hover:bg-blue-gray-100",hoverBorder:"hover:border-blue-gray-500"},"blue-light":{bg:"bg-blue-light-50",border:"border-blue-light-200",hoverBg:"hover:bg-blue-light-100",hoverBorder:"hover:border-blue-light-500"},indigo:{bg:"bg-indigo-50",border:"border-indigo-200",hoverBg:"hover:bg-indigo-100",hoverBorder:"hover:border-indigo-500"},purple:{bg:"bg-purple-50",border:"border-purple-200",hoverBg:"hover:bg-purple-100",hoverBorder:"hover:border-purple-500"},blue:{bg:"bg-blue-50",border:"border-blue-200",hoverBg:"hover:bg-blue-100",hoverBorder:"hover:border-blue-500"},pink:{bg:"bg-pink-50",border:"border-pink-200",hoverBg:"hover:bg-pink-100",hoverBorder:"hover:border-pink-500"},orange:{bg:"bg-orange-50",border:"border-orange-200",hoverBg:"hover:bg-orange-100",hoverBorder:"hover:border-orange-500"}},MD=Z(["inline-flex items-center gap-1 border","font-medium transition-colors duration-150","select-none"],{variants:{size:{sm:"text-caption-sm py-[3px]",md:"text-caption-lg py-[2px]",lg:"text-caption-lg py-1"},shape:{rounded:"rounded-md",pill:"rounded-full"},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},interactive:{true:"group cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{size:"sm",hasLeading:!1,className:"pl-2"},{size:"sm",hasLeading:!0,className:"pl-1"},{size:"sm",hasTrailing:!1,className:"pr-2"},{size:"sm",hasTrailing:!0,className:"pr-1"},{size:"md",hasLeading:!1,className:"pl-[9px]"},{size:"md",hasLeading:!0,className:"pl-1"},{size:"md",hasTrailing:!1,className:"pr-[9px]"},{size:"md",hasTrailing:!0,className:"pr-1"},{size:"lg",hasLeading:!1,className:"pl-2.5"},{size:"lg",hasLeading:!0,className:"pl-1.5"},{size:"lg",hasTrailing:!1,className:"pr-2.5"},{size:"lg",hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"rounded",hasLeading:!1,hasTrailing:!1,interactive:!1,disabled:!1}}),KD=Z(["shrink-0 rounded border bg-white transition-colors duration-150"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[18px]"},checked:{true:"bg-primary-500 border-primary-500",false:""}},defaultVariants:{size:"sm",checked:!1}}),LD="shrink-0 rounded-[3px] bg-light-100 px-1 text-light-800",OD=Z(["shrink-0 inline-flex items-center justify-center rounded-[3px]","hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[20px]"}},defaultVariants:{size:"sm"}}),e1=/^#([0-9a-f]{6})$/i,t1=e=>e1.test(e.trim()),n1=(e,t)=>{const n=e1.exec(e.trim());if(!n)return;const r=parseInt(n[1],16),i=r>>16&255,a=r>>8&255,l=r&255;return`rgba(${i}, ${a}, ${l}, ${t})`},Tu=({children:e,size:t="sm",shape:n="rounded",icon:r,checked:i,onCheckedChange:a,onClose:l,count:o,disabled:s=!1,className:d,color:c="gray",customColor:f})=>{const m=a!==void 0,h=i!==void 0||!!r,p=!!l||o!==void 0,g=m&&!s,y=ID[c],$=!!(f&&t1(f)),x=$?{borderColor:f,backgroundColor:n1(f,.12)}:void 0,v=()=>{s||a?.(!i)},C=w=>{!m||s||(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),v())};return b.createElement("div",{role:m?"checkbox":void 0,"aria-checked":m?!!i:void 0,"aria-disabled":s||void 0,tabIndex:m&&!s?0:void 0,onClick:m?v:void 0,onKeyDown:C,style:x,className:ee(MD({size:t,shape:n,hasLeading:h,hasTrailing:p,interactive:g,disabled:s}),!$&&y.bg,!$&&y.border,ND,g&&!$&&y.hoverBg,g&&!$&&y.hoverBorder,g&&AD,d)},i!==void 0&&b.createElement("span",{className:ee(KD({checked:i,size:t}),!i&&FD,g&&!i&&TD)},i&&b.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},b.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),r,b.createElement("span",{className:"whitespace-nowrap"},e),o!==void 0&&b.createElement("span",{className:LD},o),l&&b.createElement("button",{type:"button","aria-label":"Remove",disabled:s,onClick:w=>{w.stopPropagation(),l()},className:OD({size:t})},b.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:t==="sm"?"size-2":t==="md"?"size-2.5":"size-3"},b.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};Tu.displayName="Tag";const zD={brand:{solidBg:"bg-primary-50",solidBorder:"border-primary-300",solidText:"text-primary-500",outlineBorder:"border-primary-500",outlineText:"text-primary-700",hoverSolidBg:"hover:bg-primary-100",hoverSolidBorder:"hover:border-primary-500",hoverSolidText:"hover:text-primary-800",hoverOutlineBg:"hover:bg-primary-50",hoverOutlineBorder:"hover:border-primary-300",hoverOutlineText:"hover:text-primary-800",checkboxHoverBorder:"group-hover:border-primary-500"},gray:{solidBg:"bg-light-50",solidBorder:"border-light-200",solidText:"text-light-700",outlineBorder:"border-light-600",outlineText:"text-light-700",hoverSolidBg:"hover:bg-light-100",hoverSolidBorder:"hover:border-light-500",hoverSolidText:"hover:text-light-900",hoverOutlineBg:"hover:bg-light-50",hoverOutlineBorder:"hover:border-light-300",hoverOutlineText:"hover:text-light-900",checkboxHoverBorder:"group-hover:border-light-500"},error:{solidBg:"bg-error-50",solidBorder:"border-error-200",solidText:"text-error-700",outlineBorder:"border-error-600",outlineText:"text-error-700",hoverSolidBg:"hover:bg-error-100",hoverSolidBorder:"hover:border-error-500",hoverSolidText:"hover:text-error-800",hoverOutlineBg:"hover:bg-error-50",hoverOutlineBorder:"hover:border-error-300",hoverOutlineText:"hover:text-error-800",checkboxHoverBorder:"group-hover:border-error-500"},warning:{solidBg:"bg-warning-50",solidBorder:"border-warning-200",solidText:"text-warning-700",outlineBorder:"border-warning-600",outlineText:"text-warning-700",hoverSolidBg:"hover:bg-warning-100",hoverSolidBorder:"hover:border-warning-500",hoverSolidText:"hover:text-warning-800",hoverOutlineBg:"hover:bg-warning-50",hoverOutlineBorder:"hover:border-warning-300",hoverOutlineText:"hover:text-warning-800",checkboxHoverBorder:"group-hover:border-warning-500"},success:{solidBg:"bg-success-50",solidBorder:"border-success-200",solidText:"text-success-700",outlineBorder:"border-success-600",outlineText:"text-success-700",hoverSolidBg:"hover:bg-success-100",hoverSolidBorder:"hover:border-success-500",hoverSolidText:"hover:text-success-800",hoverOutlineBg:"hover:bg-success-50",hoverOutlineBorder:"hover:border-success-300",hoverOutlineText:"hover:text-success-800",checkboxHoverBorder:"group-hover:border-success-500"},"blue-gray":{solidBg:"bg-blue-gray-50",solidBorder:"border-blue-gray-200",solidText:"text-blue-gray-700",outlineBorder:"border-blue-gray-600",outlineText:"text-blue-gray-700",hoverSolidBg:"hover:bg-blue-gray-100",hoverSolidBorder:"hover:border-blue-gray-500",hoverSolidText:"hover:text-blue-gray-800",hoverOutlineBg:"hover:bg-blue-gray-50",hoverOutlineBorder:"hover:border-blue-gray-300",hoverOutlineText:"hover:text-blue-gray-800",checkboxHoverBorder:"group-hover:border-blue-gray-500"},"blue-light":{solidBg:"bg-blue-light-50",solidBorder:"border-blue-light-200",solidText:"text-blue-light-700",outlineBorder:"border-blue-light-600",outlineText:"text-blue-light-700",hoverSolidBg:"hover:bg-blue-light-100",hoverSolidBorder:"hover:border-blue-light-500",hoverSolidText:"hover:text-blue-light-800",hoverOutlineBg:"hover:bg-blue-light-50",hoverOutlineBorder:"hover:border-blue-light-300",hoverOutlineText:"hover:text-blue-light-800",checkboxHoverBorder:"group-hover:border-blue-light-500"},indigo:{solidBg:"bg-indigo-50",solidBorder:"border-indigo-200",solidText:"text-indigo-700",outlineBorder:"border-indigo-600",outlineText:"text-indigo-700",hoverSolidBg:"hover:bg-indigo-100",hoverSolidBorder:"hover:border-indigo-500",hoverSolidText:"hover:text-indigo-800",hoverOutlineBg:"hover:bg-indigo-50",hoverOutlineBorder:"hover:border-indigo-300",hoverOutlineText:"hover:text-indigo-800",checkboxHoverBorder:"group-hover:border-indigo-500"},purple:{solidBg:"bg-purple-50",solidBorder:"border-purple-200",solidText:"text-purple-700",outlineBorder:"border-purple-600",outlineText:"text-purple-700",hoverSolidBg:"hover:bg-purple-100",hoverSolidBorder:"hover:border-purple-500",hoverSolidText:"hover:text-purple-800",hoverOutlineBg:"hover:bg-purple-50",hoverOutlineBorder:"hover:border-purple-300",hoverOutlineText:"hover:text-purple-800",checkboxHoverBorder:"group-hover:border-purple-500"},blue:{solidBg:"bg-blue-50",solidBorder:"border-blue-200",solidText:"text-blue-700",outlineBorder:"border-blue-600",outlineText:"text-blue-700",hoverSolidBg:"hover:bg-blue-100",hoverSolidBorder:"hover:border-blue-500",hoverSolidText:"hover:text-blue-800",hoverOutlineBg:"hover:bg-blue-50",hoverOutlineBorder:"hover:border-blue-300",hoverOutlineText:"hover:text-blue-800",checkboxHoverBorder:"group-hover:border-blue-500"},pink:{solidBg:"bg-pink-50",solidBorder:"border-pink-200",solidText:"text-pink-700",outlineBorder:"border-pink-600",outlineText:"text-pink-700",hoverSolidBg:"hover:bg-pink-100",hoverSolidBorder:"hover:border-pink-500",hoverSolidText:"hover:text-pink-800",hoverOutlineBg:"hover:bg-pink-50",hoverOutlineBorder:"hover:border-pink-300",hoverOutlineText:"hover:text-pink-800",checkboxHoverBorder:"group-hover:border-pink-500"},orange:{solidBg:"bg-orange-50",solidBorder:"border-orange-200",solidText:"text-orange-700",outlineBorder:"border-orange-600",outlineText:"text-orange-700",hoverSolidBg:"hover:bg-orange-100",hoverSolidBorder:"hover:border-orange-500",hoverSolidText:"hover:text-orange-800",hoverOutlineBg:"hover:bg-orange-50",hoverOutlineBorder:"hover:border-orange-300",hoverOutlineText:"hover:text-orange-800",checkboxHoverBorder:"group-hover:border-orange-500"}},VD=Z(["inline-flex items-center gap-1 border font-medium","transition-colors duration-150"],{variants:{size:{sm:"text-caption-sm py-0.5",md:"text-caption-lg py-0.5",lg:"text-caption-lg py-1"},shape:{pill:"rounded-full",badge:""},modern:{true:"rounded-md shadow-xs",false:""},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},iconOnly:{true:"p-[5px]",false:""},interactive:{true:"group cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{shape:"badge",size:"sm",modern:!1,className:"rounded-md"},{shape:"badge",size:"md",modern:!1,className:"rounded-md"},{shape:"badge",size:"lg",modern:!1,className:"rounded-lg"},{size:"sm",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-2"},{size:"sm",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-1.5"},{size:"sm",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"sm",iconOnly:!1,hasTrailing:!1,className:"pr-2"},{size:"sm",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"md",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"md",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"md",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"md",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"lg",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-3"},{size:"lg",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"lg",iconOnly:!1,hasLeading:!0,className:"pl-1.5"},{size:"lg",shape:"pill",iconOnly:!1,hasTrailing:!1,className:"pr-3"},{size:"lg",shape:"badge",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"lg",iconOnly:!1,hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"pill",modern:!1,hasLeading:!1,hasTrailing:!1,iconOnly:!1,interactive:!1,disabled:!1}}),_D=Z(["shrink-0 rounded border bg-white transition-colors duration-150"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[18px]"}},defaultVariants:{size:"sm"}}),RD=Z(["shrink-0 inline-flex items-center justify-center rounded","hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"],{variants:{size:{sm:"size-[16px]",md:"size-[16px]",lg:"size-[16px]"}},defaultVariants:{size:"sm"}}),r1=({children:e,size:t="sm",shape:n="pill",variant:r="solid",color:i="brand",customColor:a,modern:l=!1,icon:o,trailingIcon:s,checked:d,onCheckedChange:c,onClose:f,iconOnly:m=!1,disabled:h=!1,className:p})=>{const g=c!==void 0,y=d!==void 0||!!o,$=!!f||!!s,x=g&&!h,v=zD[i],C=!!(a&&t1(a)),w=C?{borderColor:a,color:a,backgroundColor:r==="outline"?"transparent":n1(a,.1)}:void 0,S=()=>{h||c?.(!d)},B=E=>{!g||h||(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),S())};return b.createElement("div",{role:g?"checkbox":void 0,"aria-checked":g?!!d:void 0,"aria-disabled":h||void 0,tabIndex:g&&!h?0:void 0,onClick:g?S:void 0,onKeyDown:B,style:w,className:ee(VD({size:t,shape:n,modern:l,hasLeading:y,hasTrailing:$,iconOnly:m,interactive:x,disabled:h}),!C&&(r==="outline"?ee("bg-transparent",v.outlineBorder,v.outlineText):ee(v.solidBg,v.solidBorder,v.solidText)),x&&!C&&(r==="outline"?ee(v.hoverOutlineBg,v.hoverOutlineBorder,v.hoverOutlineText):ee(v.hoverSolidBg,v.hoverSolidBorder,v.hoverSolidText)),p)},d!==void 0&&b.createElement("span",{className:ee(_D({size:t}),d?"bg-primary-500 border-primary-500":!C&&v.solidBorder,x&&!d&&!C&&v.checkboxHoverBorder),style:!d&&C?{borderColor:a}:void 0},d&&b.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},b.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),o,!m&&b.createElement("span",{className:"whitespace-nowrap"},e),s,f&&b.createElement("button",{type:"button","aria-label":"Remove",disabled:h,onClick:E=>{E.stopPropagation(),f()},className:RD({size:t})},b.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:t==="sm"?"size-2":"size-2.5"},b.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};r1.displayName="Badge";const jD={brand:{bg50:"bg-primary-50",hoverBg100:"hover:bg-primary-100",border200:"border-primary-200",border500:"border-primary-500",text500:"text-primary-500"},gray:{bg50:"bg-light-50",hoverBg100:"hover:bg-light-100",border200:"border-light-200",border500:"border-light-500",text500:"text-light-500"},error:{bg50:"bg-error-50",hoverBg100:"hover:bg-error-100",border200:"border-error-200",border500:"border-error-500",text500:"text-error-500"},warning:{bg50:"bg-warning-50",hoverBg100:"hover:bg-warning-100",border200:"border-warning-200",border500:"border-warning-500",text500:"text-warning-500"},success:{bg50:"bg-success-50",hoverBg100:"hover:bg-success-100",border200:"border-success-200",border500:"border-success-500",text500:"text-success-500"}},HD={md:{outerPad:{leading:"pl-1 pr-2.5 py-1",trailing:"pl-3 pr-1 py-1"},gap:"gap-2",chipPad:"px-2 py-0.5",text:"text-caption-lg"},lg:{outerPad:{leading:"pl-1.5 pr-3 py-1.5",trailing:"pl-3 pr-1.5 py-1.5"},gap:"gap-2",chipPad:"px-2.5 py-[3px]",text:"text-body-sm"}},i1=({badgeLabel:e,children:t,size:n="md",theme:r="light",color:i="brand",badgePosition:a="leading",icon:l,onClick:o,className:s})=>{const d=jD[i],c=HD[n],f=r==="modern",m=r==="outline",h=ee("inline-flex items-center border transition-colors duration-150",c.gap,c.outerPad[a],f?"rounded-lg bg-light-50 border-light-200 shadow-xs":m?ee("rounded-full bg-white border-[1.5px]",d.border500):ee("rounded-full",d.bg50,d.border200,d.hoverBg100),o&&"cursor-pointer",s),p=ee("inline-flex shrink-0 items-center gap-1 border font-medium whitespace-nowrap",c.chipPad,c.text,f?"rounded-md bg-white border-light-200 text-light-800":m?ee("rounded-full bg-white border-[1.5px]",d.border500,d.text500):ee("rounded-full bg-white",d.border200,d.text500)),g=ee("inline-flex items-center gap-1 font-medium",c.text,f?"text-light-800":d.text500),y=b.createElement("span",{className:p},f&&b.createElement("span",{className:"size-2 shrink-0 rounded-full bg-light-400"}),e);return b.createElement("div",{role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o,className:h},a==="leading"&&y,b.createElement("span",{className:g},t,l),a==="trailing"&&y)};i1.displayName="BadgeGroup";const UD=({size:e})=>{const t=e*.09,n=(e-t)/2,r=2*Math.PI*n;return b.createElement("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",className:"animate-spin"},b.createElement("circle",{cx:e/2,cy:e/2,r:n,strokeWidth:t,className:"stroke-light-100"}),b.createElement("circle",{cx:e/2,cy:e/2,r:n,strokeWidth:t,strokeLinecap:"round",strokeDasharray:`${r*.25} ${r}`,className:"stroke-primary-600"}))},WD=({size:e})=>{const t=b.useId(),n=e*.125,r=(e-n)/2,i=2*Math.PI*r;return b.createElement("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",className:"animate-spin text-primary-600"},b.createElement("defs",null,b.createElement("linearGradient",{id:t,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},b.createElement("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:"1"}),b.createElement("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:"0"}))),b.createElement("circle",{cx:e/2,cy:e/2,r,strokeWidth:n,className:"stroke-light-100"}),b.createElement("circle",{cx:e/2,cy:e/2,r,strokeWidth:n,strokeLinecap:"round",stroke:`url(#${t})`,strokeDasharray:`${i*.75} ${i}`}))},GD=({size:e})=>{const n=Math.max(e*.1,3),r=(e-n)/2;return b.createElement("div",{className:"relative animate-spin",style:{width:e,height:e}},Array.from({length:12}).map((i,a)=>{const l=30*a,o=.15+.85*a/11;return b.createElement("span",{key:a,className:"absolute rounded-full bg-primary-600 top-1/2 left-1/2",style:{width:n,height:n,opacity:o,marginTop:-n/2,marginLeft:-n/2,transform:`rotate(${l}deg) translate(${r}px) rotate(${-l}deg)`}})}))},ZD={sm:{box:32,gapClass:"gap-4",textClass:"text-caption-lg"},md:{box:48,gapClass:"gap-4",textClass:"text-caption-lg"},lg:{box:56,gapClass:"gap-4",textClass:"text-body-lg"},xl:{box:64,gapClass:"gap-5",textClass:"text-body-lg"}},a1=({size:e="sm",style:t="line-simple",supportingText:n=!0,label:r="Loading...",className:i})=>{const{box:a,gapClass:l,textClass:o}=ZD[e],s=typeof r=="string"?r:"Loading";return b.createElement("div",{"aria-live":"polite","aria-atomic":"true"},b.createElement(Lv,{isIndeterminate:!0,"aria-label":s,className:H("inline-flex flex-col items-center",l,i)},t==="line-simple"&&b.createElement(UD,{size:a}),t==="line-spinner"&&b.createElement(WD,{size:a}),t==="dot-circle"&&b.createElement(GD,{size:a}),n&&b.createElement("p",{className:H("font-nunito font-medium text-light-700 whitespace-nowrap",o)},r)))};a1.displayName="Loading";const l1=({className:e,style:t})=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",className:e,style:t},b.createElement("path",{d:"M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z",stroke:"currentColor",strokeWidth:"1.75"}),b.createElement("path",{d:"M3.75 20.25a8.25 8.25 0 0 1 16.5 0",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})),o1=({className:e})=>b.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},b.createElement("circle",{cx:"10",cy:"10",r:"9",className:"fill-primary-500 stroke-white",strokeWidth:"1.5"}),b.createElement("path",{d:"M6 10.2 8.6 12.8 14 7",stroke:"white",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})),YD={xs:{box:24,borderWidth:"0.5px",statusSize:6,badgeSize:10,textClass:"text-caption-sm"},sm:{box:32,borderWidth:"0.5px",statusSize:8,badgeSize:12,textClass:"text-caption-lg"},md:{box:40,borderWidth:"0.75px",statusSize:10,badgeSize:14,textClass:"text-body-sm"},lg:{box:48,borderWidth:"0.75px",statusSize:12,badgeSize:16,textClass:"text-body-lg"},xl:{box:56,borderWidth:"0.75px",statusSize:14,badgeSize:18,textClass:"text-h6"},"2xl":{box:64,borderWidth:"0.75px",statusSize:16,badgeSize:20,textClass:"text-h5 leading-7"}},qD="#17B26A",ja={brand:{bg:"bg-primary-500",text:"text-white",iconText:"text-white"},gray:{bg:"bg-light-50",text:"text-light-500",iconText:"text-light-300"},error:{bg:"bg-error-500",text:"text-white",iconText:"text-white"},warning:{bg:"bg-warning-500",text:"text-white",iconText:"text-white"},success:{bg:"bg-success-500",text:"text-white",iconText:"text-white"}},Ha=({src:e,alt:t,initials:n,size:r="md",color:i="gray",status:a="none",statusIcon:l,contrastBorder:o=!0,className:s})=>{const{box:d,borderWidth:c,statusSize:f,badgeSize:m,textClass:h}=YD[r],p=e?"image":n!==void 0?"initials":"placeholder";return b.createElement("div",{className:ee("relative inline-block shrink-0 rounded-full",s),style:{width:d,height:d}},p==="image"&&b.createElement("img",{src:e,alt:t??"",className:"absolute inset-0 size-full rounded-full object-cover"}),p==="placeholder"&&b.createElement("div",{className:ee("absolute inset-0 flex items-center justify-center rounded-full",ja[i].bg)},b.createElement(l1,{className:ja[i].iconText,style:{width:d*.55,height:d*.55}})),p==="initials"&&b.createElement("div",{className:ee("absolute inset-0 flex items-center justify-center rounded-full font-semibold",ja[i].bg,ja[i].text,h)},n),o&&b.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",style:{borderWidth:c,borderStyle:"solid"}}),a==="online"&&b.createElement("span",{className:"absolute bottom-0 right-0 rounded-full border-[1.5px] border-white",style:{width:f,height:f,backgroundColor:qD}}),a==="company"&&b.createElement("div",{className:"absolute bottom-0 right-0 flex items-center justify-center overflow-hidden rounded-full border-[1.5px] border-white bg-white",style:{width:m,height:m}},l),a==="verified"&&b.createElement("div",{className:"absolute bottom-0 right-0",style:{width:m,height:m}},b.createElement(o1,{className:"size-full"})))};Ha.displayName="Avatar";const u1=[{bg:"bg-primary-100",text:"text-primary-600"},{bg:"bg-secondary-100",text:"text-secondary-600"},{bg:"bg-purple-100",text:"text-purple-600"},{bg:"bg-pink-100",text:"text-pink-600"},{bg:"bg-orange-100",text:"text-orange-600"},{bg:"bg-teal-100",text:"text-teal-600"},{bg:"bg-indigo-100",text:"text-indigo-600"},{bg:"bg-rose-100",text:"text-rose-600"}],XD=e=>{let t=0;for(let r=0;r<e.length;r+=1)t=t*31+e.charCodeAt(r)|0;const n=Math.abs(t)%u1.length;return u1[n]},JD={xs:{box:24,overlap:-4,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-sm"},sm:{box:32,overlap:-8,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-lg"},md:{box:40,overlap:-12,contrastBorderWidth:"0.75px",plusIconSize:20,textClass:"text-body-sm"}},s1=({avatars:e,max:t,size:n="xs",onAdd:r,className:i})=>{const{box:a,overlap:l,contrastBorderWidth:o,textClass:s}=JD[n],d=t?e.slice(0,t):e,c=t&&e.length>t?e.length-t:0;return b.createElement("div",{className:ee("inline-flex items-start gap-2",i)},b.createElement("div",{className:"flex items-start"},d.map((f,m)=>{const h=m<d.length-1||c>0;return b.createElement(Ra,{key:m,content:f.label,disabled:!f.label,side:"top"},b.createElement("div",{className:"relative shrink-0 overflow-hidden rounded-full border-[1.5px] border-white",style:{width:a,height:a,marginRight:h?l:0}},f.src?b.createElement("img",{src:f.src,alt:f.alt??"",className:"size-full object-cover"}):(()=>{const{text:p,bg:g}=XD(String(f.label??f.alt??f.initials??m));return b.createElement("div",{className:ee("flex size-full items-center justify-center font-semibold",f.initialsBgColor??g,f.initialsTextColor??p,s)},f.initials)})(),b.createElement("div",{className:ee("pointer-events-none absolute inset-0 rounded-full",f.borderColor??"border-black/[0.08]"),style:{borderWidth:o,borderStyle:"solid"}})))}),c>0&&b.createElement(Ra,{content:e.slice(t).map((f,m)=>b.createElement("div",{key:m},f.label)),disabled:!e.slice(t).some(f=>f.label),side:"top"},b.createElement("div",{className:"relative flex shrink-0 items-center justify-center rounded-full border-2 border-white bg-light-100",style:{width:a,height:a}},b.createElement("span",{className:ee("font-semibold text-light-600",s)},"+",c)))),r&&b.createElement("button",{type:"button",onClick:r,"aria-label":"Add",className:"flex shrink-0 items-center justify-center rounded-full border border-dashed border-light-300 bg-white text-light-500 hover:bg-light-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",style:{width:a,height:a}},b.createElement("svg",{width:a*.4,height:a*.4,viewBox:"0 0 20 20",fill:"none"},b.createElement("path",{d:"M10 4v12M4 10h12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}))))};s1.displayName="AvatarGroup";const QD={xs:{nameClass:"text-caption-sm",subtitleClass:"text-caption-sm"},sm:{nameClass:"text-caption-lg",subtitleClass:"text-caption-sm"},md:{nameClass:"text-caption-lg",subtitleClass:"text-caption-lg"},lg:{nameClass:"text-body-sm",subtitleClass:"text-body-sm"},xl:{nameClass:"text-body-lg",subtitleClass:"text-body-sm"}},d1=({name:e,subtitle:t,src:n,initials:r,size:i="xs",status:a="none",statusIcon:l,className:o})=>{const{nameClass:s,subtitleClass:d}=QD[i];return b.createElement("div",{className:ee("inline-flex items-center gap-2",o)},b.createElement(Ha,{src:n,initials:r,size:i,status:a,statusIcon:l}),b.createElement("div",{className:"flex flex-col items-start whitespace-nowrap"},b.createElement("span",{className:ee("font-bold text-light-800",s)},e),t&&b.createElement("span",{className:ee("font-normal text-light-700",d)},t)))};d1.displayName="AvatarLabelGroup";const eE={sm:{box:72,ringWidth:3,shadowClass:"shadow-md",iconSize:36,textClass:"text-h4",verifiedSize:20,verifiedOffset:0},md:{box:96,ringWidth:4,shadowClass:"shadow-lg",iconSize:48,textClass:"text-h3",verifiedSize:24,verifiedOffset:0},lg:{box:160,ringWidth:4,shadowClass:"shadow-lg",iconSize:80,textClass:"text-h1",verifiedSize:32,verifiedOffset:4}},c1=({src:e,alt:t,initials:n,size:r="sm",verified:i=!0,contrastBorder:a=!0,className:l})=>{const{box:o,ringWidth:s,shadowClass:d,iconSize:c,textClass:f,verifiedSize:m,verifiedOffset:h}=eE[r],p=e?"image":n!==void 0?"initials":"placeholder";return b.createElement("div",{className:ee("relative rounded-full",l),style:{width:o,height:o}},b.createElement("div",{className:ee("absolute inset-0 overflow-hidden rounded-full border-white",d,p!=="image"&&"bg-light-100"),style:{borderWidth:s,borderStyle:"solid"}},p==="image"&&b.createElement("img",{src:e,alt:t??"",className:"absolute inset-0 size-full rounded-full object-cover"}),a&&b.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border border-black/[0.08]"}),p==="placeholder"&&b.createElement("div",{className:"absolute inset-0 flex items-center justify-center"},b.createElement(l1,{className:"text-light-300",style:{width:c,height:c}})),p==="initials"&&b.createElement("div",{className:ee("absolute inset-0 flex items-center justify-center font-semibold text-light-500",f)},n)),i&&b.createElement("div",{className:"absolute",style:{width:m,height:m,bottom:h,right:h}},b.createElement(o1,{className:"size-full"})))};c1.displayName="AvatarProfilePhoto";const tE={"button-gray":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},"button-white":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},"button-primary":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},underline:{sm:"h-8 px-1 pb-3 text-sm gap-2",md:"h-9 px-1 pb-3 text-base gap-2"},"underline-filled":{sm:"h-11 p-3 text-sm gap-2",md:"h-12 p-3 text-base gap-2"},line:{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3.5 py-2.5 text-base gap-2"}},nE={"button-gray":"rounded-md","button-white":"rounded-md","button-primary":"rounded-md",underline:"rounded-none","underline-filled":"rounded-none",line:"rounded-none"},rE={"button-gray":{active:"bg-light-50 text-light-700",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-light-50 hover:text-light-700",hasFocusRing:!0},"button-white":{active:"bg-white text-light-700 shadow-sm",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-white hover:text-light-700 hover:shadow-sm",hasFocusRing:!0},"button-primary":{active:"bg-primary-50 text-primary-700",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-primary-50 hover:text-primary-700",hasFocusRing:!0},underline:{active:"border-b-2 border-primary-500 text-primary-700",inactive:"border-b-2 border-transparent text-light-500",hoverInactive:"hover:border-primary-500 hover:text-primary-700",hasFocusRing:!1},"underline-filled":{active:"bg-primary-50 border-b-2 border-primary-500 text-primary-700",inactive:"bg-transparent border-b-2 border-transparent text-light-500",hoverInactive:"hover:bg-primary-50 hover:border-primary-500 hover:text-primary-700",hasFocusRing:!1},line:{active:"bg-transparent border-l-2 border-primary-500 text-primary-700",inactive:"bg-transparent border-l-2 border-transparent text-light-500",hoverInactive:"hover:border-primary-500 hover:text-primary-700",hasFocusRing:!0}},iE="inline-flex items-center justify-center rounded-full border border-light-200 bg-light-50 px-2 py-0.5 text-caption-sm font-medium text-light-700",aE={"button-gray":{gapClass:"gap-1",hasHairline:!1},"button-white":{gapClass:"gap-1",hasHairline:!1},"button-primary":{gapClass:"gap-1",hasHairline:!1},underline:{gapClass:"gap-3",hasHairline:!0},"underline-filled":{gapClass:"gap-3",hasHairline:!0},line:{gapClass:"gap-1",hasHairline:!1}},f1=({children:e,variant:t="button-primary",size:n="sm",fullWidth:r=!1,count:i,iconLeft:a,iconRight:l,disabled:o=!1,onClick:s,className:d,id:c,active:f})=>{const m=rE[t];return b.createElement(C2,{id:c,isDisabled:o,onPress:()=>s?.(),className:({isSelected:h})=>H("inline-flex items-center justify-center font-semibold transition-colors duration-150",tE[t][n],nE[t],h?m.active:m.inactive,!h&&!o&&m.hoverInactive,m.hasFocusRing&&"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",r&&"w-full",o?"cursor-not-allowed opacity-60":"cursor-pointer",d)},a&&b.createElement("span",{className:"shrink-0"},a),b.createElement("span",{className:"whitespace-nowrap"},e),i!==void 0&&b.createElement("span",{className:iE},i),l&&b.createElement("span",{className:"shrink-0"},l))};f1.displayName="Tab";const m1=({children:e,variant:t="button-primary",orientation:n="horizontal",boxed:r=!1,"aria-label":i="Tabs",keyboardActivation:a,disabledKeys:l,className:o})=>{const{gapClass:s,hasHairline:d}=aE[t],c=b.Children.toArray(e),f=c.map((g,y)=>String(y)),m=c.findIndex(g=>g.props.active),h=f[m>=0?m:0],p=g=>{const y=f.indexOf(String(g));y>=0&&c[y].props.onClick?.()};return b.createElement(v2,{orientation:n,keyboardActivation:a,disabledKeys:l,selectedKey:c.length?h:void 0,onSelectionChange:p},b.createElement(x2,{"aria-label":i,className:H("inline-flex",n==="vertical"?"flex-col items-stretch":"flex-row items-center",s,r&&"rounded-lg border border-light-200 bg-light-50 p-1",d&&n==="horizontal"&&!r&&"border-b border-light-200",o)},c.map((g,y)=>b.cloneElement(g,{key:f[y],id:f[y]}))))};m1.displayName="TabList";const h1=9,kt=1,lE=30;function p1(e){const t=h1,n=kt-e,r=n?`calc(100% - ${n}px)`:"100%",i=`calc(100% - ${t+1}px)`,a=`calc(100% - ${t}px)`;return`shape(${[`from ${-e}px 100%`,...n?[`vline to ${r}`]:[],`curve to ${t}px ${i} with ${t}px ${r}`,`vline to ${t-e}px`,`curve to ${2*t-e}px 0 with ${t}px 0`,`hline to calc(100% - ${2*t-e}px)`,`curve to ${a} ${t-e}px with ${a} 0`,`vline to ${i}`,`curve to ${e?`calc(100% + ${e}px)`:"100%"} ${r} with ${a} ${r}`,...n?["vline to 100%"]:[]].join(", ")})`}const b1=p1(0),g1=p1(kt),y1={default:{box:"h-12 shrink-0",padX:lE},"max-width":{box:"h-9 min-w-px flex-1",padX:h1}},oE={clipPath:b1,paddingInline:`${kt}px`},uE={paddingInline:`${kt}px`},$1=b.forwardRef(({type:e="default",disabled:t=!1,unstyled:n=!1,iconLeft:r,trailing:i,tooltip:a,children:l,className:o,style:s,contentClassName:d,contentStyle:c,onClick:f,id:m,active:h,...p},g)=>{const{box:y,padX:$}=y1[e];return b.createElement(C2,{ref:g,id:m,isDisabled:t,onPress:()=>f?.(void 0),...p,className:({isSelected:x})=>H("group relative flex transition-colors duration-150 focus-visible:outline-none",!n&&"rounded-t-lg pt-px",!n&&y,t&&"cursor-not-allowed opacity-60",!t&&!x&&"cursor-pointer",!n&&x&&"-mb-px bg-light-200 focus-visible:bg-primary-400",x&&"cursor-default",o),style:({isSelected:x})=>n?s:{...x?oE:uE,...s}},({isSelected:x})=>{const v=!t&&!x,C=x?{clipPath:g1,paddingInline:`${$-kt}px`}:{paddingInline:`${$-kt}px`};return b.createElement("span",{title:a,className:H("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!n&&"rounded-t-lg",!n&&(x?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!n&&v&&"group-hover:bg-light-100 group-hover:text-light-800",!n&&v&&"group-focus-visible:rounded-b-lg group-focus-visible:ring-2 group-focus-visible:ring-primary-400 group-focus-visible:ring-offset-2",d),style:n?c:{...C,...c}},r&&b.createElement("span",{className:"shrink-0"},r),b.createElement("span",{className:"overflow-hidden text-ellipsis"},l),i)})});$1.displayName="TabBrowser";const sE=48,v1=({children:e,separators:t=!1,trailingSlot:n,overflow:r=!1,overflowLabel:i,className:a})=>{const l=b.Children.toArray(e),o=b.useMemo(()=>l.map((E,k)=>String(k)),[l.length]),s=l.findIndex(E=>E.props.active),d=b.useRef(null),c=b.useRef(null),f=b.useRef(new Map),m=b.useRef(new Map),[h,p]=b.useState(l.length),g=o.join("|");b.useLayoutEffect(()=>{r&&(m.current.clear(),p(l.length))},[r,g]);const y=b.useCallback(()=>{const E=d.current;if(!E||l.length===0||(m.current.size<l.length&&o.forEach(R=>{const D=f.current.get(R);D&&m.current.set(R,D.getBoundingClientRect().width)}),m.current.size<l.length))return;const k=E.clientWidth,K=c.current?.getBoundingClientRect().width||sE;let T=0,I=0;for(;I<o.length;I++){const R=m.current.get(o[I])??0,D=I<o.length-1?K:0;if(T+R+D>k&&I>0)break;T+=R}p(R=>R===I?R:I)},[l.length,o]),$=h===l.length;b.useLayoutEffect(()=>{r&&y()},[r,y,$]),b.useEffect(()=>{if(!r)return;const E=d.current;if(!E||typeof ResizeObserver>"u")return;const k=new ResizeObserver(()=>y());return k.observe(E),()=>k.disconnect()},[r,y]);const x=r&&h<l.length?Math.max(h,1):l.length,v=r?s>=0&&s>=x?[...Array(x-1).keys(),s]:[...Array(x).keys()]:o.map((E,k)=>k),C=new Set(v),w=o.map((E,k)=>k).filter(E=>!C.has(E)),S=s>=0?o[s]:v.length?o[v[0]]:void 0,B=E=>{const k=o.indexOf(String(E));k>=0&&l[k].props.onClick?.(void 0)};return b.createElement(v2,{selectedKey:l.length?S:void 0,onSelectionChange:B,className:H("flex items-end",r&&"min-w-0 flex-1",a)},(()=>{const E=b.createElement(x2,{"aria-label":"Tabs",className:H("flex min-w-0 items-end",r?"shrink-0":"flex-1")},v.map((k,K)=>{const T=l[k],I=K===v.length-1&&w.length===0,R=v[K+1],D=T.props.active||l[R]?.props.active;return b.cloneElement(T,{key:o[k],id:o[k],ref:r?M=>{M?f.current.set(o[k],M):f.current.delete(o[k])}:void 0,className:H(T.props.className,t&&!I&&!D&&"after:absolute after:-right-px after:bottom-3 after:h-5 after:w-px after:bg-light-200 after:content-['']")})}));return r?b.createElement("div",{ref:d,className:"flex min-w-0 flex-1 items-end overflow-hidden"},E,w.length>0&&b.createElement(Aa,null,b.createElement(Xt,{ref:c,className:"mb-3 flex h-7 shrink-0 items-center self-end rounded-md px-2 text-caption-sm font-semibold text-light-600 hover:bg-light-100 hover:text-light-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"},i?i(w.length):`+${w.length}`),b.createElement(i3,{placement:"bottom end",className:"flex flex-col overflow-hidden rounded-lg border border-light-200 bg-white p-1 shadow-lg"},b.createElement(H3,{className:"flex max-h-[320px] min-h-0 min-w-[160px] flex-1 flex-col gap-0.5 overflow-y-auto outline-none [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",onAction:k=>{const K=o.indexOf(String(k));K>=0&&l[K].props.onClick?.(void 0)}},w.map(k=>{const K=l[k],T=K.props.children;return b.createElement(U3,{key:o[k],id:o[k],isDisabled:K.props.disabled,textValue:typeof T=="string"?T:void 0,className:"flex h-9 shrink-0 cursor-pointer items-center gap-2 truncate rounded-md px-2 text-caption-sm text-light-800 outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-60 data-[focused]:bg-light-50 data-[focused]:text-light-900"},K.props.iconLeft&&b.createElement("span",{className:"shrink-0"},K.props.iconLeft),b.createElement("span",{className:"truncate"},T),K.props.trailing&&b.createElement("span",{className:"ml-auto shrink-0"},K.props.trailing))}))))):E})(),n)};v1.displayName="TabBrowserBar";const dE={clipPath:b1,paddingInline:`${kt}px`},cE={paddingInline:`${kt}px`},x1=b.forwardRef(({type:e="default",disabled:t=!1,unstyled:n=!1,active:r=!1,iconLeft:i,trailing:a,tooltip:l,children:o,className:s,style:d,contentClassName:c,contentStyle:f,...m},h)=>{const{box:p,padX:g}=y1[e],y=!t&&!r,$=r?{clipPath:g1,paddingInline:`${g-kt}px`}:{paddingInline:`${g-kt}px`};return b.createElement("div",{ref:h,role:"tab","aria-disabled":t,"aria-selected":r,...m,className:H("group relative flex transition-colors duration-150 focus-visible:outline-none",!n&&"rounded-t-lg pt-px",!n&&p,t&&"cursor-not-allowed opacity-60",!t&&!r&&"cursor-pointer",!n&&r&&"-mb-px bg-light-200 focus-visible:bg-primary-400",r&&"cursor-default",s),style:n?d:{...r?dE:cE,...d}},b.createElement("span",{title:l,className:H("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!n&&"rounded-t-lg",!n&&(r?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!n&&y&&"group-hover:bg-light-100 group-hover:text-light-800",!n&&y&&"group-focus-visible:rounded-b-lg group-focus-visible:ring-2 group-focus-visible:ring-primary-400 group-focus-visible:ring-offset-2",c),style:n?f:{...$,...f}},i&&b.createElement("span",{className:"shrink-0"},i),b.createElement("span",{className:"overflow-hidden text-ellipsis"},o),a))});x1.displayName="TabBrowserPreview";const fE=Z("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),mE=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),hE=Z(["flex items-center w-full border","bg-white transition-[border-color,border-width]"],{variants:{size:{xs:"h-7 px-2 gap-1 rounded text-caption-sm",sm:"h-9 px-3 gap-2 rounded-lg",md:"h-11 px-3 gap-2 rounded-lg"},error:{true:["border-error-200","focus-within:border-2 focus-within:border-error-500"],false:["border-light-200","focus-within:border-2 focus-within:border-primary-500"]},disabled:{true:"bg-light-100 text-light-400 cursor-not-allowed",false:""}},defaultVariants:{size:"md",error:!1,disabled:!1}}),pE=Z(["flex-1 bg-transparent outline-none text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"},error:{true:"",false:"text-light-900"}},defaultVariants:{size:"md",error:!1}}),bE=Z("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}}}),gE=Z("flex items-stretch w-full bg-white border overflow-hidden transition-[border-color,border-width]",{variants:{size:{xs:"rounded",sm:"rounded-lg",md:"rounded-lg"},error:{true:["border-error-200","focus-within:border-2 focus-within:border-error-500"],false:["border-light-200","focus-within:border-2 focus-within:border-primary-500"]},disabled:{true:"bg-light-100",false:""}},defaultVariants:{size:"md",error:!1,disabled:!1}}),yE=Z("flex flex-1 items-center min-w-0",{variants:{size:{xs:"gap-1 px-2 py-1",sm:"gap-2 px-3 py-2",md:"gap-2 px-3 py-2"},disabled:{true:"text-light-400 cursor-not-allowed",false:""}},defaultVariants:{size:"md",disabled:!1}}),$E=Z("flex items-center text-light-700 whitespace-nowrap border-r border-light-200",{variants:{size:{xs:"px-2 text-caption-sm",sm:"px-3 text-caption-lg",md:"px-3 text-body-sm"}},defaultVariants:{size:"md"}}),C1=Z(["flex items-center gap-1 shrink-0 bg-transparent p-0 text-light-800 cursor-pointer","hover:bg-transparent hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),vE=Z("flex shrink-0 items-center justify-center gap-1 w-[92px] border-l border-light-200 bg-white font-semibold text-light-800 hover:bg-light-50 disabled:cursor-not-allowed disabled:text-light-400",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),D1=({className:e})=>u.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},u.createElement("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),xE={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},CE=({size:e,error:t,disabled:n})=>ee("flex items-center w-full gap-2 rounded-lg border bg-white px-2 transition-[border-color,border-width]",xE[e],t?"border-error-200 focus-within:border-2 focus-within:border-error-500":"border-light-200 focus-within:border-2 focus-within:border-primary-500",n&&"bg-light-100 text-light-400 cursor-not-allowed"),DE=({error:e})=>ee("flex items-center gap-1 text-caption-sm font-semibold",e?"":"text-light-800"),EE="flex flex-col w-full max-w-[320px]",E1=u.forwardRef(function({label:t,required:n,hint:r,rightIcon:i,size:a="md",error:l=!1,disabled:o=!1,compact:s=!1,hideCalendarIcon:d=!1,type:c,prefix:f,suffix:m,leadingAddon:h,leadingDropdown:p,trailingDropdown:g,trailingButton:y,maxLength:$,value:x,className:v,wrapperClassName:C,...w},S){const B=!!(h||y),E=u.createElement(u.Fragment,null,p&&u.createElement("button",{type:"button",onClick:p.onClick,disabled:p.disabled||o,className:C1({size:a})},u.createElement("span",null,p.value),u.createElement(D1,{className:"size-5 text-light-500"})),f&&u.createElement("div",{className:"flex items-center"},f),u.createElement("input",{...w,ref:S,type:c,disabled:o,maxLength:$,value:x,className:ee(pE({size:a,error:l}),"h-full",d&&"[&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-clear-button]:hidden",c==="date"&&"[&::-webkit-datetime-edit]:p-0 [&::-webkit-datetime-edit-fields-wrapper]:p-0",v)}),(i||m)&&u.createElement("div",{className:"flex h-full items-center gap-2"},i&&u.createElement("div",{className:"flex h-full items-center pb-0.5 text-light-400 hover:text-light-600"},i),m&&u.createElement("div",{className:"flex h-full items-center gap-1 leading-none text-light-700"},m)),g&&u.createElement("button",{type:"button",onClick:g.onClick,disabled:g.disabled||o,className:C1({size:a})},u.createElement("span",null,g.value),u.createElement(D1,{className:"size-5 text-light-500"})));return u.createElement("div",{className:ee(s?EE:fE({size:a}),C)},t&&u.createElement("label",{className:s?DE({error:l}):mE({error:l})},t,n&&u.createElement("span",{className:"text-error-400"},"*")),B?u.createElement("div",{className:gE({size:a,error:l,disabled:o})},h&&u.createElement("div",{className:$E({size:a})},h),u.createElement("div",{className:yE({size:a,disabled:o})},E),y&&u.createElement("button",{type:"button",onClick:y.onClick,disabled:y.disabled||o,className:vE({size:a})},y.icon,u.createElement("span",null,y.label))):u.createElement("div",{className:s?CE({size:a,error:l,disabled:o}):hE({size:a,error:l,disabled:o})},E),$&&typeof x=="string"&&u.createElement("div",{className:"text-right text-xs text-light-400"},x.length,"/",$),r&&u.createElement("p",{className:bE({error:l})},r))});function wE({children:e}){return React.createElement("div",{className:"flex items-center text-light-500"},e)}function SE({children:e}){return React.createElement("div",{className:"flex items-center text-light-500"},e)}const PE=Z("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),kE=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),Iu={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},BE=Z(["flex items-center w-full gap-2 border bg-white","transition-[border-color,border-width]","data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100 data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 px-2 rounded text-caption-sm",sm:"h-9 px-3 rounded-lg",md:"h-11 px-3 rounded-lg"},compact:{true:"rounded-lg px-2",false:""},error:{true:"",false:"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500"}},compoundVariants:[{compact:!0,size:"xs",class:Iu.xs},{compact:!0,size:"sm",class:Iu.sm},{compact:!0,size:"md",class:Iu.md}],defaultVariants:{size:"md",compact:!1,error:!1}}),NE=Z(["flex-1 min-w-0 bg-transparent outline-none text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),w1="flex items-center shrink-0",AE=Z("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),ti=b.forwardRef(function({label:t,required:n,hint:r,size:i="md",error:a=!1,disabled:l=!1,compact:o=!1,leftSlot:s,rightSlot:d,className:c,wrapperClassName:f,...m},h){return b.createElement("div",{className:H(PE({size:i}),f)},t&&b.createElement("label",{className:kE({error:a})},t,n&&b.createElement("span",{className:"text-error-400"},"*")),b.createElement(Lr,{isDisabled:l,isInvalid:a,className:BE({size:i,compact:o,error:a})},s&&b.createElement("div",{className:w1},s),b.createElement(Or,{...m,ref:h,disabled:l,required:n,className:H(NE({size:i}),c)}),d&&b.createElement("div",{className:w1},d)),r&&b.createElement("p",{className:AE({error:a})},r))});ti.displayName="BaseInput";const FE={xs:12,sm:16,md:20,lg:24,xl:32},An=({icon:e,size:t="md",strokeWidth:n=2,label:r,className:i,...a})=>b.createElement(e,{size:FE[t],stroke:n,className:ee("shrink-0",i),"aria-hidden":r?void 0:!0,role:r?"img":void 0,"aria-label":r,...a});An.displayName="Icon";const S1=H("flex max-h-60 w-full flex-col overflow-y-auto py-1 outline-none","[scrollbar-width:thin] [scrollbar-color:theme(colors.light.300)_theme(colors.light.50)]","[&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-light-50","[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-light-300"),P1=H("flex size-4 shrink-0 items-center justify-center text-light-500"),k1=H("ml-auto shrink-0 font-normal text-caption-sm text-light-500"),B1=H("my-1 h-px w-full shrink-0 bg-light-200"),TE=H("flex w-full flex-col items-start border-b border-light-200 px-4 py-3"),Mu=H("group flex h-12 w-full items-center px-2 py-0.5 outline-none","cursor-pointer data-[disabled]:cursor-not-allowed"),IE=Z(["flex h-11 min-w-0 flex-1 items-center gap-2 overflow-hidden rounded-md","py-2.5 pl-1 pr-2.5 text-left font-nunito text-body-sm font-medium","[&_[data-slot=supporting-text]]:font-normal"],{variants:{active:{true:"bg-light-50 text-light-800",false:"text-light-900"},focusVisible:{true:"shadow-focus",false:""},nativeInteraction:{true:"group-hover:bg-light-50 group-active:bg-light-50",false:""},disabled:{true:"text-light-400 [&_[data-slot=supporting-text]]:text-light-400",false:"[&_[data-slot=supporting-text]]:text-light-700"}},defaultVariants:{active:!1,focusVisible:!1,nativeInteraction:!1,disabled:!1}}),ME="flex shrink-0 items-center justify-center",KE="flex min-w-0 flex-1 items-center gap-2 overflow-hidden whitespace-nowrap",LE="ml-auto flex shrink-0 items-center justify-center",N1=e=>e!=null&&e!==!1;function Ku({state:e,leadingSlot:t,hasCustomLeadingSlot:n=!1,children:r,trailingSlot:i,nativeInteraction:a=!1}){const l=n?t:e.selectionMode==="multiple"?b.createElement("span",{"aria-hidden":"true","data-slot":"selection-indicator","data-selected":String(e.isSelected),className:`${Y2({size:"sm",checked:e.isSelected,disabled:e.isDisabled})} pointer-events-none shrink-0`},e.isSelected&&b.createElement(vi,{size:12,strokeWidth:2.5})):null;return b.createElement("span",{"data-slot":"collection-item-content",className:H(IE({active:e.isHovered||e.isPressed||e.isSelected||e.isFocusVisible,focusVisible:e.isFocusVisible,nativeInteraction:a&&!e.isDisabled,disabled:e.isDisabled}))},N1(l)&&b.createElement("span",{"data-slot":"leading",className:ME},l),b.createElement("span",{"data-slot":"main",className:KE},r),N1(i)&&b.createElement("span",{"data-slot":"trailing",className:LE},i))}const or=(e,t)=>typeof e=="function"?e(t):e,A1=e=>({isHovered:e.isHovered,isPressed:e.isPressed,isSelected:e.isSelected,isFocused:e.isFocused,isFocusVisible:e.isFocusVisible,isDisabled:e.isDisabled,selectionMode:e.selectionMode,selectionBehavior:e.selectionBehavior});function OE({className:e,style:t,leadingSlot:n,children:r,trailingSlot:i,...a},l){const o=a.textValue??(typeof r=="string"?r:void 0);return b.createElement(Yx,{ref:l,...a,textValue:o,style:t,className:H(Mu,e)},s=>b.createElement(Ku,{state:A1(s),leadingSlot:or(n,s),hasCustomLeadingSlot:n!==void 0,trailingSlot:or(i,s)},or(r,s)))}const F1=b.forwardRef(OE);function zE({className:e,style:t,leadingSlot:n,children:r,trailingSlot:i,...a},l){const o=a.textValue??(typeof r=="string"?r:void 0);return b.createElement(U3,{ref:l,...a,textValue:o,style:t,className:H(Mu,e)},s=>b.createElement(Ku,{state:A1(s),leadingSlot:or(n,s),hasCustomLeadingSlot:n!==void 0,trailingSlot:or(i,s)},or(r,s)))}const T1=b.forwardRef(zE),Lu=b.createContext(null);function VE({className:e,style:t,...n},r){return b.createElement(Lu.Provider,{value:"menu"},b.createElement(H3,{ref:r,...n,style:t,className:H(S1,e)}))}const Ou=b.forwardRef(VE);function _E({className:e,style:t,content:n="none",icon:r,shortcut:i,children:a,...l},o){const s=n==="icon"?r:n==="selection"?d=>b.createElement("span",{className:P1},d.isSelected&&b.createElement(An,{icon:vi,size:"sm","aria-hidden":"true"})):void 0;return b.createElement(T1,{ref:o,...l,style:t,className:e,leadingSlot:s,trailingSlot:i?b.createElement("span",{className:k1},i):void 0},a)}const zu=b.forwardRef(_E),RE=({className:e})=>b.createElement(Im,{className:H(B1,e)}),jE=({children:e,className:t})=>b.createElement(xx,{className:H(TE,t)},e),HE=Z(["flex items-center gap-1 shrink-0 border-r border-light-200 bg-transparent","text-light-800 cursor-pointer","hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"pr-2 text-caption-sm",sm:"pr-2 text-caption-lg",md:"pr-2 text-body-sm"}},defaultVariants:{size:"md"}}),UE="w-72",WE="border-b border-light-200 p-2";function GE({size:e,disabled:t,countries:n,selected:r,onSelect:i}){const[a,l]=b.useState(""),o=a?n.filter(s=>s.name.toLowerCase().includes(a.toLowerCase())||s.dial_code.includes(a)||s.code.toLowerCase()===a.toLowerCase()):n;return b.createElement(Aa,{onOpenChange:s=>{s||l("")}},b.createElement(Xt,{isDisabled:t,"aria-label":`Country: ${r.name} (${r.dial_code})`,className:HE({size:e})},b.createElement("span",null,r.code),b.createElement(xi,{size:14,"aria-hidden":"true"})),b.createElement(Pt,{placement:"bottom start"},b.createElement("div",{className:WE},b.createElement("input",{autoFocus:!0,value:a,onChange:s=>l(s.target.value),placeholder:"Search country...",className:"w-full bg-transparent text-sm text-light-900 outline-none placeholder:text-light-500"})),b.createElement(Ou,{"aria-label":"Country",className:H(UE,"max-h-60 overflow-y-auto"),items:o,onAction:s=>{const d=o.find(c=>c.code===s);d&&i(d)}},s=>b.createElement(zu,{id:s.code,textValue:`${s.name} ${s.dial_code}`},b.createElement("span",{className:"flex min-w-0 flex-1 items-center gap-2"},b.createElement("span",{className:"min-w-0 flex-1 truncate"},s.name),b.createElement("span",{className:"shrink-0 text-light-500"},s.dial_code))))))}const I1={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1(?:05|[2-9]))","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Vu(e,t){var n=Array.prototype.slice.call(t);return n.push(I1),e.apply(this,n)}function M1(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),l=Number(r[i]);if(a>l)return 1;if(l>a)return-1;if(!isNaN(a)&&isNaN(l))return 1;if(isNaN(a)&&!isNaN(l))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var ZE={}.constructor;function Fn(e){return e!=null&&e.constructor===ZE}var YE=/^\d+$/;function qE(e){return YE.test(e)}function ur(e){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(e)}function Ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JE(r.key),r)}}function Wa(e,t,n){return t&&XE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JE(e){var t=QE(e,"string");return ur(t)=="symbol"?t:t+""}function QE(e,t){if(ur(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ur(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ew="1.2.0",tw="1.7.35",K1=" ext. ",Me=(function(){function e(t){Ua(this,e),z1(t),this.metadata=t,V1.call(this,t)}return Wa(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){var i,a;if(n&&(qE(n)?a=n:i=n),r&&(a=r),i&&i!=="001"){var l=this.getCountryMetadata(i);if(!l)throw new Error("Unknown country: ".concat(i));this.numberingPlan=new L1(l,this)}else if(a){if(!this.hasCallingCode(a))throw new Error("Unknown calling code: ".concat(a));this.numberingPlan=new L1(this.getNumberingPlanMetadata(a),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),L1=(function(){function e(t,n){Ua(this,e),this.globalMetadataObject=n,this.metadata=t,V1.call(this,n.metadata)}return Wa(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return r.map(function(i){return new nw(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&O1(this.types(),n))return new iw(O1(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?K1:this.metadata[13]||K1}}])})(),nw=(function(){function e(t,n){Ua(this,e),this._format=t,this.metadata=n}return Wa(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!rw.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),rw=/^\(?\$1\)?$/,iw=(function(){function e(t,n){Ua(this,e),this.type=t,this.metadata=n}return Wa(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function O1(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function z1(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Fn(e)||!Fn(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Fn(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+aw(e)+": "+e,"."))}var aw=function(t){return ur(t)};function _u(e,t){var n=new Me(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function lw(e,t){return t.countries.hasOwnProperty(e)}function V1(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?M1(t,ew)===-1?this.v2=!0:M1(t,tw)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function ni(e,t,n){return ow(e,void 0,t,n)}function ow(e,t,n,r){n&&(r=new Me(r.metadata),r.selectNumberingPlan(n));var i=r.type(t),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";var l=e.length,o=a[0];return o===l?"IS_POSSIBLE":o>l?"TOO_SHORT":a[a.length-1]<l?"TOO_LONG":a.indexOf(l,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function uw(e,t,n){t===void 0&&(t={});var r=new Me(n);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return _1(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function _1(e,t){return ni(e,void 0,t)==="IS_POSSIBLE"}function _t(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function sw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=dw(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dw(e,t){if(e){if(typeof e=="string")return R1(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R1(e,t):void 0}}function R1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var cw=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Ru(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){var r=new Me(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(_t(i,r.nationalNumberPattern())){if(ju(i,"FIXED_LINE",r))return r.type("MOBILE")&&r.type("MOBILE").pattern()===""||!r.type("MOBILE")||ju(i,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=sw(cw),l;!(l=a()).done;){var o=l.value;if(ju(i,o,r))return o}}}}function ju(e,t,n){var r=n.type(t);return!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?!1:_t(e,r.pattern())}function fw(e,t,n){t=t||{};var r=new Me(n);if(r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes())return Ru(e,t,r.metadata)!==void 0;var i=t.v2?e.nationalNumber:e.phone;return _t(i,r.nationalNumberPattern())}var mw=/^[A-Z]{2}$/;function hw(e){return mw.test(e)}function pw(e,t){var n,r,i=new Me(t);return hw(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=e,{country:n,callingCode:r}}function bw(e,t,n){var r=new Me(n),i=r.getCountryCodesForCallingCode(e);return i?i.filter(function(a){return gw(t,a,n)}):[]}function gw(e,t,n){var r=new Me(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var Hu=2,yw=17,$w=3,Ue="0-90-9٠-٩۰-۹",vw="-‐-―−ー-",xw="//",Cw="..",Dw="  ­​⁠ ",Ew="()()[]\\[\\]",ww="~⁓∼~",ct="".concat(vw).concat(xw).concat(Cw).concat(Dw).concat(Ew).concat(ww),Ga="++",Sw=new RegExp("(["+Ue+"])");function j1(e,t,n,r){if(t){var i=new Me(r);i.selectNumberingPlan(t||n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var l=e.match(Sw);if(!(l&&l[1]!=null&&l[1].length>0&&l[1]==="0"))return e}}}function Uu(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,a,l=r.length-1,o=l>0&&r[l];if(t.nationalPrefixTransformRule()&&o)i=e.replace(n,t.nationalPrefixTransformRule()),l>1&&(a=r[1]);else{var s=r[0];i=e.slice(s.length),o&&(a=r[1])}var d;if(o){var c=e.indexOf(r[1]),f=e.slice(0,c);f===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:i,nationalPrefix:d,carrierCode:a}}}return{nationalNumber:e}}function Pw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=kw(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kw(e,t){if(e){if(typeof e=="string")return H1(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H1(e,t):void 0}}function H1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function U1(e,t,n){for(var r=new Me(n),i=Pw(t),a;!(a=i()).done;){var l=a.value;if(r.selectNumberingPlan(l),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return l}else if(Ru({phone:e,country:l},void 0,r.metadata))return l}}function Wu(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:U1(n,i,r.metadata)}function Gu(e,t,n){var r=Uu(e,n),i=r.carrierCode,a=r.nationalNumber;if(a!==e){if(!Bw(e,a,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=Wu(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n})),!Nw(a,t,n)))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:i}}function Bw(e,t,n){return!(_t(e,n.nationalNumberPattern())&&!_t(t,n.nationalNumberPattern()))}function Nw(e,t,n){switch(ni(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function W1(e,t,n,r,i){if(!(t||n||r))return{number:e};var a=t||n?_u(t||n,i):r;if(e.indexOf(a)===0){var l=new Me(i);l.selectNumberingPlan(t||n||r);var o=e.slice(a.length),s=Gu(o,void 0,l),d=s.nationalNumber,c=Gu(e,void 0,l),f=c.nationalNumber;if(!_t(f,l.nationalNumberPattern())&&_t(d,l.nationalNumberPattern())||ni(f,void 0,l)==="TOO_LONG")return{countryCallingCode:a,number:o}}return{number:e}}function Zu(e,t,n,r,i){if(!e)return{};var a;if(e[0]!=="+"){var l=j1(e,t||n,r,i);if(l&&l!==e)a=!0,e="+"+l;else{if(t||n||r){var o=W1(e,t,n,r,i),s=o.countryCallingCode,d=o.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:d}}return{number:e}}}if(e[1]==="0")return{};for(var c=new Me(i),f=2;f-1<=$w&&f<=e.length;){var m=e.slice(1,f);if(c.hasCallingCode(m))return c.selectNumberingPlan(m),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:m,number:e.slice(f)};f++}return{}}function G1(e){return e.replace(new RegExp("[".concat(ct,"]+"),"g")," ").trim()}var Z1=/(\$\d)/;function Y1(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(Z1,t.nationalPrefixFormattingRule()):t.format());return r?G1(a):a}var Aw=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Fw(e,t,n){var r=new Me(n);if(r.selectNumberingPlan(e||t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Aw.test(r.IDDPrefix()))return r.IDDPrefix()}var Tw=";ext=",sr=function(t){return"([".concat(Ue,"]{1,").concat(t,"})")};function q1(e){var t="20",n="15",r="9",i="6",a="[  \\t,]*",l="[:\\..]?[  \\t,-]*",o="#?",s="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",c="[- ]+",f="[  \\t]*",m="(?:,{2}|;)",h=Tw+sr(t),p=a+s+l+sr(t)+o,g=a+d+l+sr(r)+o,y=c+sr(i)+"#",$=f+m+l+sr(n)+o,x=f+"(?:,)+"+l+sr(r)+o;return h+"|"+p+"|"+g+"|"+y+"|"+$+"|"+x}var Iw="["+Ue+"]{"+Hu+"}",Mw="["+Ga+"]{0,1}(?:["+ct+"]*["+Ue+"]){3,}["+ct+Ue+"]*",Kw=new RegExp("^["+Ga+"]{0,1}(?:["+ct+"]*["+Ue+"]){1,2}$","i"),Lw=Mw+"(?:"+q1()+")?",Ow=new RegExp("^"+Iw+"$|^"+Lw+"$","i");function zw(e){return e.length>=Hu&&Ow.test(e)}function Vw(e){return Kw.test(e)}function _w(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}var X1={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function Rw(e,t,n,r){n?n=Uw({},X1,n):n=X1;var i=new Me(r);if(e.country&&e.country!=="001"){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=i.countryCallingCode(),l=n.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return l?(o=Za(l,e.carrierCode,"NATIONAL",i,n),Yu(o,e.ext,i,n.formatExtension)):"";case"INTERNATIONAL":return l?(o=Za(l,null,"INTERNATIONAL",i,n),o="+".concat(a," ").concat(o),Yu(o,e.ext,i,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(l);case"RFC3966":return _w({number:"+".concat(a).concat(l),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=Hw(l,e.carrierCode,a,n.fromCountry,i);return s?Yu(s,e.ext,i,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Za(e,t,n,r,i){var a=jw(r.formats(),e);return a?Y1(e,a,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function jw(e,t){return Ww(e,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(r)!==0)return!1}return _t(t,n.pattern())})}function Yu(e,t,n,r){return t?r(e,t,n):e}function Hw(e,t,n,r,i){var a=_u(r,i.metadata);if(a===n){var l=Za(e,t,"NATIONAL",i);return n==="1"?n+" "+l:l}var o=Fw(r,void 0,i.metadata);if(o)return"".concat(o," ").concat(n," ").concat(Za(e,null,"INTERNATIONAL",i))}function Uw(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}function Ww(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function J1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Q1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J1(Object(n),!0).forEach(function(r){Gw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gw(e,t,n){return(t=ey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ey(r.key),r)}}function qw(e,t,n){return t&&Yw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ey(e){var t=Xw(e,"string");return ri(t)=="symbol"?t:t+""}function Xw(e,t){if(ri(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ri(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ty=(function(){function e(t,n,r){if(Zw(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Fn(n)&&Fn(n.countries)){r=n;var i=t;if(!Jw.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=Zu(i,void 0,void 0,void 0,r),l=a.countryCallingCode,o=a.number;if(n=o,t=l,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");z1(r);var s=pw(t,r),d=s.country,c=s.callingCode;this.country=d,this.countryCallingCode=c,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return qw(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:bw(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return uw(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return fw(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new Me(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return Ru(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return Rw(this,n,r?Q1(Q1({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),Jw=/^\+\d+$/;function qu(e){"@babel/helpers - typeof";return qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qu(e)}function Qw(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function eS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tS(e,t,n){return t=ai(t),nS(e,Ju()?Reflect.construct(t,n||[],ai(e).constructor):t.apply(e,n))}function nS(e,t){if(t&&(qu(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rS(e)}function rS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ii(e,t)}function Xu(e){var t=typeof Map=="function"?new Map:void 0;return Xu=function(r){if(r===null||!lS(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return aS(r,arguments,ai(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ii(i,r)},Xu(e)}function aS(e,t,n){if(Ju())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&ii(i,n.prototype),i}function Ju(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ju=function(){return!!e})()}function lS(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ii(e,t){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ii(e,t)}function ai(e){return ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ai(e)}var Rt=(function(e){function t(n){var r;return eS(this,t),r=tS(this,t,[n]),Object.setPrototypeOf(r,t.prototype),r.name=r.constructor.name,r}return iS(t,e),Qw(t)})(Xu(Error)),ny=new RegExp("(?:"+q1()+")$","i");function oS(e){var t=e.search(ny);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(ny),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}function uS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=sS(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sS(e,t){if(e){if(typeof e=="string")return ry(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ry(e,t):void 0}}function ry(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var dS={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function iy(e){return dS[e]}function Ya(e){for(var t="",n=uS(e.split("")),r;!(r=n()).done;){var i=r.value,a=iy(i);a&&(t+=a)}return t}function cS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=fS(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
16
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fS(e,t){if(e){if(typeof e=="string")return ay(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ay(e,t):void 0}}function ay(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ly(e){for(var t="",n=cS(e.split("")),r;!(r=n()).done;){var i=r.value;t+=mS(i,t)||""}return t}function mS(e,t,n){return e==="+"?t?void 0:"+":iy(e)}var oy="+",hS="[\\-\\.\\(\\)]?",uy="(["+Ue+"]|"+hS+")",pS="^\\"+oy+uy+"*["+Ue+"]"+uy+"*$",bS=new RegExp(pS,"g"),Qu=Ue,gS="["+Qu+"]+((\\-)*["+Qu+"])*",yS="a-zA-Z",$S="["+yS+"]+((\\-)*["+Qu+"])*",vS="^("+gS+"\\.)*"+$S+"\\.?$",xS=new RegExp(vS,"g"),sy="tel:",es=";phone-context=",CS=";isub=";function DS(e){var t=e.indexOf(es);if(t<0)return null;var n=t+es.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function ES(e){return e===null?!0:e.length===0?!1:bS.test(e)||xS.test(e)}function wS(e,t){var n=t.extractFormattedPhoneNumber,r=DS(e);if(!ES(r))throw new Rt("NOT_A_NUMBER");var i;if(r===null)i=n(e)||"";else{i="",r.charAt(0)===oy&&(i+=r);var a=e.indexOf(sy),l;a>=0?l=a+sy.length:l=0;var o=e.indexOf(es);i+=e.substring(l,o)}var s=i.indexOf(CS);if(s>0&&(i=i.substring(0,s)),i!=="")return i}var SS=250,PS=new RegExp("["+Ga+Ue+"]"),kS=new RegExp("[^"+Ue+"#]+$");function BS(e,t,n){t=t||{};var r=new Me(n);if(t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new Rt("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var i=AS(e,t.v2,t.extract),a=i.number,l=i.ext,o=i.error;if(!a){if(t.v2)throw o==="TOO_SHORT"?new Rt("TOO_SHORT"):new Rt("NOT_A_NUMBER");return{}}var s=TS(a,t.defaultCountry,t.defaultCallingCode,r),d=s.country,c=s.nationalNumber,f=s.countryCallingCode,m=s.countryCallingCodeSource,h=s.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new Rt("INVALID_COUNTRY");return{}}if(!c||c.length<Hu){if(t.v2)throw new Rt("TOO_SHORT");return{}}if(c.length>yw){if(t.v2)throw new Rt("TOO_LONG");return{}}if(t.v2){var p=new ty(f,c,r.metadata);return d&&(p.country=d),h&&(p.carrierCode=h),l&&(p.ext=l),p.__countryCallingCodeSource=m,p}var g=(t.extended?r.hasSelectedNumberingPlan():d)?_t(c,r.nationalNumberPattern()):!1;return t.extended?{country:d,countryCallingCode:f,carrierCode:h,valid:g,possible:g?!0:!!(t.extended===!0&&r.possibleLengths()&&_1(c,r)),phone:c,ext:l}:g?FS(d,c,l):{}}function NS(e,t,n){if(e){if(e.length>SS){if(n)throw new Rt("TOO_LONG");return}if(t===!1)return e;var r=e.search(PS);if(!(r<0))return e.slice(r).replace(kS,"")}}function AS(e,t,n){var r=wS(e,{extractFormattedPhoneNumber:function(l){return NS(l,n,t)}});if(!r)return{};if(!zw(r))return Vw(r)?{error:"TOO_SHORT"}:{};var i=oS(r);return i.ext?i:{number:r}}function FS(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function TS(e,t,n,r){var i=Zu(ly(e),void 0,t,n,r.metadata),a=i.countryCallingCodeSource,l=i.countryCallingCode,o=i.number,s;if(l)r.selectNumberingPlan(l);else if(o&&(t||n))t?(s=t,r.selectNumberingPlan(t),l=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),l=n);else return{};if(!o)return{countryCallingCodeSource:a,countryCallingCode:l};var d=Gu(ly(o),void 0,r),c=d.nationalNumber,f=d.carrierCode,m=Wu(l,{nationalNumber:c,metadata:r});return m&&(s=m,m==="001"||r.selectNumberingPlan(s)),{country:s,countryCallingCode:l,countryCallingCodeSource:a,nationalNumber:c,carrierCode:f}}function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function dy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dy(Object(n),!0).forEach(function(r){IS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IS(e,t,n){return(t=MS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MS(e){var t=KS(e,"string");return li(t)=="symbol"?t:t+""}function KS(e,t){if(li(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(li(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LS(e,t,n){return BS(e,cy(cy({},t),{},{v2:!0}),n)}function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function fy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function OS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fy(Object(n),!0).forEach(function(r){zS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zS(e,t,n){return(t=VS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VS(e){var t=_S(e,"string");return oi(t)=="symbol"?t:t+""}function _S(e,t){if(oi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RS(e,t){return WS(e)||US(e,t)||HS(e,t)||jS()}function jS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
17
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HS(e,t){if(e){if(typeof e=="string")return my(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?my(e,t):void 0}}function my(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function US(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,o=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(c){d=!0,i=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function WS(e){if(Array.isArray(e))return e}function GS(e){var t=Array.prototype.slice.call(e),n=RS(t,4),r=n[0],i=n[1],a=n[2],l=n[3],o,s,d;if(typeof r=="string")o=r;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")l?(s=a,d=l):(s=void 0,d=a),i&&(s=OS({defaultCountry:i},s));else if(Fn(i))a?(s=i,d=a):d=i;else throw new Error("Invalid second argument: ".concat(i));return{text:o,options:s,metadata:d}}function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function hy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function py(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hy(Object(n),!0).forEach(function(r){ZS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZS(e,t,n){return(t=YS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YS(e){var t=qS(e,"string");return ui(t)=="symbol"?t:t+""}function qS(e,t){if(ui(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ui(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XS(e,t,n){t&&t.defaultCountry&&!lw(t.defaultCountry,n)&&(t=py(py({},t),{},{defaultCountry:void 0}));try{return LS(e,t,n)}catch(r){if(!(r instanceof Rt))throw r}}function JS(){var e=GS(arguments),t=e.text,n=e.options,r=e.metadata;return XS(t,n,r)}function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function QS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nP(r.key),r)}}function tP(e,t,n){return t&&eP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nP(e){var t=rP(e,"string");return si(t)=="symbol"?t:t+""}function rP(e,t){if(si(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(si(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var iP=(function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;QS(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}return tP(e,[{key:"reset",value:function(n){var r=n.country,i=n.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(r,i)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberIsModified=!1,this.nationalPrefix=void 0,this.carrierCode=void 0,this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix=void 0}},{key:"update",value:function(n){for(var r=0,i=Object.keys(n);r<i.length;r++){var a=i[r];this[a]=n[a]}}},{key:"initCountryAndCallingCode",value:function(n,r){this.setCountry(n),this.setCallingCode(r)}},{key:"setCountry",value:function(n){this.country=n,this.onCountryChange(n)}},{key:"setCallingCode",value:function(n){this.callingCode=n,this.onCallingCodeChange(n,this.country)}},{key:"startInternationalNumber",value:function(n,r){this.international=!0,this.initCountryAndCallingCode(n,r)}},{key:"appendDigits",value:function(n){this.digits+=n}},{key:"appendNationalSignificantNumberDigits",value:function(n){this.nationalSignificantNumber+=n}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])})();function aP(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=lP(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lP(e,t){if(e){if(typeof e=="string")return by(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?by(e,t):void 0}}function by(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ft="x",ts=new RegExp(ft);function qa(e,t){if(t<1)return"";for(var n="";t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function gy(e,t){return e[t]===")"&&t++,oP(e.slice(0,t))}function oP(e){for(var t=[],n=0;n<e.length;)e[n]==="("?t.push(n):e[n]===")"&&t.pop(),n++;var r=0,i="";t.push(e.length);for(var a=0,l=t;a<l.length;a++){var o=l[a];i+=e.slice(r,o),r=o+1}return i}function uP(e,t,n){for(var r=aP(n.split("")),i;!(i=r()).done;){var a=i.value;if(e.slice(t+1).search(ts)<0)return;t=e.search(ts),e=e.replace(ts,a)}return[e,t]}function sP(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,l=new RegExp("^(?:".concat(t.pattern(),")$"));if(l.test(e.nationalSignificantNumber))return cP(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:a})}function dP(e,t){return ni(e,void 0,t)==="IS_POSSIBLE"}function cP(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var l=yy(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:r});if(l)return l}return yy(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:r})}function yy(e,t,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,l=Y1(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:r});if(i||(e.nationalPrefix?l=e.nationalPrefix+a(t)+l:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(l=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+l)),fP(l,e))return l}function fP(e,t){return Ya(e)===t.getNationalDigits()}function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function mP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bP(r.key),r)}}function pP(e,t,n){return t&&hP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bP(e){var t=gP(e,"string");return di(t)=="symbol"?t:t+""}function gP(e,t){if(di(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(di(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yP=(function(){function e(){mP(this,e)}return pP(e,[{key:"parse",value:function(n){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(n),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var r=this.context[0],i=r.branches,a=r.instructions;if(i)return{op:"|",args:i.concat([ns(a)])};if(a.length===0)throw new Error("Pattern is required");return a.length===1?a[0]:a}},{key:"startContext",value:function(n){this.context.push(n)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(n){if(!n)throw new Error("Pattern is required");var r=n.match(xP);if(!r){if(vP.test(n))throw new Error("Illegal characters found in a pattern: ".concat(n));this.getContext().instructions=this.getContext().instructions.concat(n.split(""));return}var i=r[1],a=n.slice(0,r.index),l=n.slice(r.index+i.length);switch(i){case"(?:":a&&this.parsePattern(a),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(a&&this.parsePattern(a),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var o=this.getContext(),s=o.branches;s.push(ns(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:s});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(a&&this.parsePattern(a),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(ns(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":a&&this.parsePattern(a),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:$P(a)});break;default:throw new Error("Unknown operator: ".concat(i))}l&&this.parsePattern(l)}}])})();function $P(e){for(var t=[],n=0;n<e.length;){if(e[n]==="-"){if(n===0||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,i=e[n+1].charCodeAt(0)-1,a=r;a<=i;)t.push(String.fromCharCode(a)),a++}else t.push(e[n]);n++}return t}var vP=/[\(\)\[\]\?\:\|]/,xP=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function ns(e){return e.length===1?e[0]:e}function $y(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=CP(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
19
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CP(e,t){if(e){if(typeof e=="string")return vy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vy(e,t):void 0}}function vy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function DP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SP(r.key),r)}}function wP(e,t,n){return t&&EP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SP(e){var t=PP(e,"string");return ci(t)=="symbol"?t:t+""}function PP(e,t){if(ci(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ci(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kP=(function(){function e(t){DP(this,e),this.matchTree=new yP().parse(t)}return wP(e,[{key:"match",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.allowOverflow;if(!n)throw new Error("String is required");var a=rs(n.split(""),this.matchTree,!0);if(a&&a.match&&delete a.matchedChars,!(a&&a.overflow&&!i))return a}}])})();function rs(e,t,n){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var i=e.slice(),a=0;a<t.length;){var l=t[a],o=rs(i,l,n&&a===t.length-1);if(o){if(o.overflow)return o;if(o.match){if(i=i.slice(o.matchedChars.length),i.length===0)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(o.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
20
+ `.concat(JSON.stringify(o,null,2)))}}else return;a++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case"|":for(var s,d=$y(t.args),c;!(c=d()).done;){var f=c.value,m=rs(e,f,n);if(m){if(m.overflow)return m;if(m.match)return{match:!0,matchedChars:m.matchedChars};if(m.partialMatch)s=!0;else throw new Error(`Unsupported match result:
21
+ `.concat(JSON.stringify(m,null,2)))}}return s?{partialMatch:!0}:void 0;case"[]":for(var h=$y(t.args),p;!(p=h()).done;){var g=p.value;if(e[0]===g)return e.length===1?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[g]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function xy(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=BP(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BP(e,t){if(e){if(typeof e=="string")return Cy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cy(e,t):void 0}}function Cy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,TP(r.key),r)}}function FP(e,t,n){return t&&AP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TP(e){var t=IP(e,"string");return fi(t)=="symbol"?t:t+""}function IP(e,t){if(fi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var is="9",MP=15,KP=qa(is,MP),LP=/[- ]/,OP=function(){return/\[([^\[\]])*\]/g},zP=function(){return/\d(?=[^,}][^,}])/g},VP=new RegExp("["+ct+"]*\\$1["+ct+"]*(\\$\\d["+ct+"]*)*$"),Dy=3,_P=(function(){function e(t){t.state;var n=t.metadata;NP(this,e),this.metadata=n,this.resetFormat()}return FP(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(n,r){this.resetFormat(),n?(this.isNANP=n.callingCode()==="1",this.matchingFormats=n.formats(),r.nationalSignificantNumber&&this.narrowDownMatchingFormats(r)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(n,r){var i=this;if(dP(r.nationalSignificantNumber,this.metadata))for(var a=xy(this.matchingFormats),l;!(l=a()).done;){var o=l.value,s=sP(r,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(c){return i.shouldTryNationalPrefixFormattingRule(c,{international:r.international,nationalPrefix:r.nationalPrefix})},getSeparatorAfterNationalPrefix:function(c){return i.getSeparatorAfterNationalPrefix(c)}});if(s)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(s.replace(/\d/g,ft),r),this.populatedNationalNumberTemplate=s,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(ft),s}return this.formatNationalNumberWithNextDigits(n,r)}},{key:"formatNationalNumberWithNextDigits",value:function(n,r){var i=this.chosenFormat,a=this.chooseFormat(r);if(a)return a===i?this.formatNextNationalNumberDigits(n):this.formatNextNationalNumberDigits(r.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(n){var r=this,i=n.nationalSignificantNumber,a=n.nationalPrefix,l=n.international,o=i,s=o.length-Dy;s<0&&(s=0),this.matchingFormats=this.matchingFormats.filter(function(d){return r.formatSuits(d,l,a)&&r.formatMatches(d,o,s)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(n,r,i){return!(i&&!n.usesNationalPrefix()&&!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r&&!i&&n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(n,r,i){var a=n.leadingDigitsPatterns().length;if(a===0)return!0;i=Math.min(i,a-1);var l=n.leadingDigitsPatterns()[i];if(r.length<Dy)try{return new kP(l).match(r,{allowOverflow:!0})!==void 0}catch(o){return console.error(o),!0}return new RegExp("^(".concat(l,")")).test(r)}},{key:"getFormatFormat",value:function(n,r){return r?n.internationalFormat():n.format()}},{key:"chooseFormat",value:function(n){for(var r=this,i=function(){var d=o.value;return r.chosenFormat===d?0:VP.test(r.getFormatFormat(d,n.international))?r.createTemplateForFormat(d,n)?(r.chosenFormat=d,0):(r.matchingFormats=r.matchingFormats.filter(function(c){return c!==d}),1):1},a,l=xy(this.matchingFormats.slice()),o;!(o=l()).done&&(a=i(),a!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(n,r){if(!(n.pattern().indexOf("|")>=0)){var i=this.getTemplateForFormat(n,r);if(i)return this.setNationalNumberTemplate(i,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&LP.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var i=n.IDDPrefix,a=n.missingPlus;return i?r&&r.spacing===!1?i:i+" ":a?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,i=0,a=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";i<a.length+n.getDigitsWithoutInternationalPrefix().length;)r=this.template.indexOf(ft,r+1),i++;return gy(this.template,r+1)}}},{key:"setNationalNumberTemplate",value:function(n,r){this.nationalNumberTemplate=n,this.populatedNationalNumberTemplate=n,this.populatedNationalNumberTemplatePosition=-1,r.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g,ft)+qa(ft,r.callingCode.length)+" "+n:this.template=n}},{key:"getTemplateForFormat",value:function(n,r){var i=r.nationalSignificantNumber,a=r.international,l=r.nationalPrefix,o=r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,s=n.pattern();s=s.replace(OP(),"\\d").replace(zP(),"\\d");var d=KP.match(s)[0];if(!(i.length>d.length)){var c=new RegExp("^"+s+"$"),f=i.replace(/\d/g,is);c.test(f)&&(d=f);var m=this.getFormatFormat(n,a),h;if(this.shouldTryNationalPrefixFormattingRule(n,{international:a,nationalPrefix:l})){var p=m.replace(Z1,n.nationalPrefixFormattingRule());if(Ya(n.nationalPrefixFormattingRule())===(l||"")+Ya("$1")&&(m=p,h=!0,l))for(var g=l.length;g>0;)m=m.replace(/\d/,ft),g--}var y=d.replace(new RegExp(s),m).replace(new RegExp(is,"g"),ft);return h||(o?y=qa(ft,o.length)+" "+y:l&&(y=qa(ft,l.length)+this.getSeparatorAfterNationalPrefix(n)+y)),a&&(y=G1(y)),y}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=uP(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],gy(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var i=r.international,a=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var l=n.usesNationalPrefix();if(l&&a||!l&&!i)return!0}}}])})();function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}function Ey(e,t){return UP(e)||HP(e,t)||jP(e,t)||RP()}function RP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jP(e,t){if(e){if(typeof e=="string")return wy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wy(e,t):void 0}}function wy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function HP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,o=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(c){d=!0,i=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function UP(e){if(Array.isArray(e))return e}function WP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YP(r.key),r)}}function ZP(e,t,n){return t&&GP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YP(e){var t=qP(e,"string");return mi(t)=="symbol"?t:t+""}function qP(e,t){if(mi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var XP="["+ct+Ue+"]+",JP=new RegExp("^"+XP+"$","i"),QP="(?:["+Ga+"]["+ct+Ue+"]*|["+ct+Ue+"]+)",ek=new RegExp("[^"+ct+Ue+"]+.*$"),tk=/[^\d\[\]]/,nk=(function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,i=t.metadata,a=t.onNationalSignificantNumberChange;WP(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=a}return ZP(e,[{key:"input",value:function(n,r){var i=ak(n),a=Ey(i,2),l=a[0],o=a[1],s=Ya(l),d;return o&&(r.digits||(r.startInternationalNumber(void 0,void 0),s||(d=!0))),s&&this.inputDigits(s,r),{digits:s,justLeadingPlus:d}}},{key:"inputDigits",value:function(n,r){var i=r.digits,a=i.length<3&&i.length+n.length>=3;if(r.appendDigits(n),a&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(l){return r.update(l)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,i=n.callingCode;return r&&!i}},{key:"extractCountryCallingCode",value:function(n){var r=Zu("+"+n.getDigitsWithoutInternationalPrefix(),n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode,a=r.number;if(i)return n.setCallingCode(i),n.update({nationalSignificantNumber:a}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&tk.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=Uu(n,this.metadata),a=i.nationalPrefix,l=i.nationalNumber,o=i.carrierCode;if(l!==n)return this.onExtractedNationalNumber(a,o,l,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=Uu(n,this.metadata),l=a.nationalPrefix,o=a.nationalNumber,s=a.carrierCode;if(o!==r)return this.onExtractedNationalNumber(l,s,o,n,i),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,i,a,l){var o=!1,s,d=a.lastIndexOf(i);if(d<0||d!==a.length-i.length)o=!0;else{var c=a.slice(0,d);c&&c!==n&&(s=c)}l({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:i,nationalSignificantNumberIsModified:o,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:s}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,i=n.IDDPrefix,a=n.digits;if(n.nationalSignificantNumber,!(r||i)){var l=j1(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(l!==void 0&&l!==a)return n.update({IDDPrefix:a.slice(0,a.length-l.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=W1(n.digits,n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode;if(i)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(n,r){var i=r.country,a=r.callingCode;n.startInternationalNumber(i,a),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}])})();function rk(e){var t=e.search(QP);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(ek,""),n&&(e="+"+e),e}}function ik(e){var t=rk(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function ak(e){var t=ik(e),n=Ey(t,2),r=n[0],i=n[1];return JP.test(r)||(r=""),[r,i]}function hi(e){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}function lk(e,t){return dk(e)||sk(e,t)||uk(e,t)||ok()}function ok(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uk(e,t){if(e){if(typeof e=="string")return Sy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sy(e,t):void 0}}function Sy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,o=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(c){d=!0,i=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function dk(e){if(Array.isArray(e))return e}function ck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hk(r.key),r)}}function mk(e,t,n){return t&&fk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hk(e){var t=pk(e,"string");return hi(t)=="symbol"?t:t+""}function pk(e,t){if(hi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Py=(function(){function e(t,n){ck(this,e),this.metadata=new Me(n);var r=this.getCountryAndCallingCode(t),i=lk(r,2),a=i[0],l=i[1];this.defaultCountry=a,this.defaultCallingCode=l,this.reset()}return mk(e,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(Fn(n)?(r=n.defaultCountry,i=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,i]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),i=r.digits,a=r.justLeadingPlus;if(a)this.formattedOutput="+";else if(i){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var l;if(this.metadata.hasSelectedNumberingPlan()&&(l=this.formatter.format(i,this.state)),l===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var o=this.state.getNationalDigits();o&&(l=this.formatter.format(o,this.state))}this.formattedOutput=l?this.getFullNumber(l):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new iP({onCountryChange:function(i){n.country=i},onCallingCodeChange:function(i,a){n.metadata.selectNumberingPlan(a||i),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new _P({state:this.state,metadata:this.metadata}),this.parser=new nk({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var i=function(o){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!o})+o},a=this.state.callingCode;return i(a?n?"".concat(a," ").concat(n):a:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,a=n.nationalPrefix,l=r,o=i||a;return o&&(l=o+l),l}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(n?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,ft)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){var n=Wu(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata});n!==this.state.country&&(this.state.setCountry(n),n&&this.metadata.selectNumberingPlan(n))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,a=n.country,l=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+l:"+"+r;if(a||i){var o=a?this.metadata.countryCallingCode():i;return"+"+o+l}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,a=n.callingCode;if(r){var l=this._getCountry();if(!(!l&&!a)){if(l&&l===this.defaultCountry){var o=this.metadata.numberingPlan.callingCode(),s=bk(o,r,this.metadata);s&&(l=s)}var d=new ty(l||a,r,this.metadata.metadata);return i&&(d.carrierCode=i),d}}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"validateLength",value:function(){var n=this.state,r=n.digits,i=n.nationalSignificantNumber;if(!r)return"NOT_A_NUMBER";if(!this.metadata.numberingPlan)return"INVALID_COUNTRY";if(!i)return"TOO_SHORT";var a=ni(i,void 0,this.metadata);if(a!=="IS_POSSIBLE")return a}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])})();function bk(e,t,n){var r=n.getCountryCodesForCallingCode(e);if(r.length>1)return U1(t,r,n.metadata)}function gk(e){return new Me(e).getCountries()}function ky(){return Vu(JS,arguments)}function Xa(e){return Py.call(this,e,I1)}Xa.prototype=Object.create(Py.prototype,{}),Xa.prototype.constructor=Xa;function yk(){return Vu(gk,arguments)}function $k(){return Vu(_u,arguments)}function vk(e){return e.toUpperCase().replace(/./g,t=>String.fromCodePoint(127397+t.charCodeAt(0)))}let Ja=null;function By(){if(Ja)return Ja;const e=typeof Intl<"u"&&"DisplayNames"in Intl?new Intl.DisplayNames(["en"],{type:"region"}):null;return Ja=yk().map(t=>({code:t,dial_code:`+${$k(t)}`,name:e?.of(t)??t,flag:vk(t)})).sort((t,n)=>t.name.localeCompare(n.name)),Ja}function Ny(e,t,n){let r=e.replace(/\D/g,"");const i=n.replace(/\D/g,"");r.startsWith(i)&&(r=r.slice(i.length)),r=r.replace(/^0+/,"");const a=15-i.length;if(r=r.slice(0,a),!r)return n;const o=new Xa(t).input(r);return`${n} ${o}`}function Ay(e,t){return e?ky(e,t)?.isValid()??!1:!1}function Fy(e,t){const n=ky(e,t);return n?.isValid()?n.number:void 0}function xk({size:e="md",label:t,required:n,hint:r,error:i,disabled:a=!1,placeholder:l,value:o="",defaultCountry:s="ID",countries:d,onChange:c,className:f,wrapperClassName:m}){const h=d??By(),[p,g]=b.useState(()=>h.find(C=>C.code===s)??h[0]),y=C=>{const w=Ay(C,p.code),S=w?Fy(C,p.code):void 0;c?.(C,w,S)},$=C=>{const w=Ny(C.target.value,p.code,p.dial_code);y(w)},x=()=>{o||c?.(p.dial_code,!1,void 0)},v=C=>{const w=Ny(o,C.code,C.dial_code);g(C);const S=Ay(w,C.code),B=S?Fy(w,C.code):void 0;c?.(w,S,B)};return b.createElement(ti,{size:e,label:t,required:n,hint:r,error:i,disabled:a,placeholder:l??"Enter phone number",inputMode:"numeric",value:o,onChange:$,onFocus:x,className:f,wrapperClassName:m,leftSlot:b.createElement(GE,{size:e,disabled:a,countries:h,selected:p,onSelect:v})})}const Ck=Z(["flex items-center gap-1 shrink-0 border-l border-light-200 bg-transparent","text-light-800 cursor-pointer","hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"pl-2 text-caption-sm",sm:"pl-2 text-caption-lg",md:"pl-2 text-body-sm"}},defaultVariants:{size:"md"}}),Dk="w-64",Ek="select-none text-light-700";function wk({size:e,disabled:t,currencies:n,selected:r,onSelect:i}){return b.createElement(Aa,null,b.createElement(Xt,{isDisabled:t,"aria-label":`Currency: ${r.label} (${r.code})`,className:Ck({size:e})},b.createElement("span",null,r.code),b.createElement(xi,{size:14,"aria-hidden":"true"})),b.createElement(Pt,{placement:"bottom end"},b.createElement(Ou,{"aria-label":"Currency",className:H(Dk,"max-h-60 overflow-y-auto"),items:n,onAction:a=>{const l=n.find(o=>o.code===a);l&&i(l)}},a=>b.createElement(zu,{id:a.code,textValue:`${a.label} ${a.code}`},b.createElement("span",{className:"flex min-w-0 flex-1 items-center gap-2"},b.createElement("span",{className:"min-w-0 flex-1 truncate"},a.label),b.createElement("span",{className:"shrink-0 text-light-500"},a.code))))))}function as(e){const t=new Intl.NumberFormat(e).formatToParts(123456789e-2),n=t.find(i=>i.type==="group")?.value??",",r=t.find(i=>i.type==="decimal")?.value??".";return{group:n,decimal:r}}function Ty(e,t){return e?e.replace(/\B(?=(\d{3})+(?!\d))/g,t):""}function Sk(e,t){const{group:n,decimal:r}=as(t);let i=e.split("").filter(d=>/\d/.test(d)||d===r).join("");const a=i.indexOf(r);if(a!==-1){const d=i.slice(0,a).split(r).join(""),c=i.slice(a+1).split(r).join("").slice(0,2);i=`${d}${r}${c}`}const[l,o]=i.split(r),s=Ty(l??"",n);return o!==void 0?`${s}${r}${o}`:s}function Pk(e,t){const{group:n,decimal:r}=as(t),i=e.split(n).join("").split(r).join("."),a=Number.parseFloat(i);return Number.isNaN(a)?0:a}function ls(e,t){if(e===void 0||Number.isNaN(e))return"";const{group:n,decimal:r}=as(t),[i,a]=e.toString().split("."),l=Ty(i??"0",n);return a?`${l}${r}${a}`:l}function kk({size:e="md",label:t,required:n,hint:r,error:i,disabled:a=!1,placeholder:l,value:o,currency:s,currencies:d,onCurrencyChange:c,onChange:f,className:m,wrapperClassName:h}){const p=d.find(C=>C.code===s)??d[0],[g,y]=b.useState(()=>ls(o,p?.locale)),$=b.useRef(!1);b.useEffect(()=>{if($.current){$.current=!1;return}y(ls(o,p?.locale))},[o,p?.locale]);const x=C=>{$.current=!0;const w=Sk(C.target.value,p?.locale);y(w),f?.(Pk(w,p?.locale))},v=C=>{c?.(C.code),$.current=!0,y(ls(o,C.locale))};return b.createElement(ti,{size:e,label:t,required:n,hint:r,error:i,disabled:a,placeholder:l??"0.00",inputMode:"decimal",value:g,onChange:x,className:m,wrapperClassName:h,leftSlot:p?b.createElement("span",{className:Ek},p.symbol):void 0,rightSlot:p?b.createElement(wk,{size:e,disabled:a,currencies:d,selected:p,onSelect:v}):void 0})}function Bk({size:e="md",label:t,required:n,hint:r,disabled:i,error:a,className:l,wrapperClassName:o,value:s,maxLength:d,placeholder:c,onChange:f}){const m=s.length>d,h=a||m;return u.createElement(E1,{size:e,label:t,required:n,disabled:i,error:h,value:s,placeholder:c,onChange:f,className:l,wrapperClassName:o,hint:r,suffix:u.createElement("span",{className:ee("text-caption-lg",m?"text-error-600":"text-light-400")},s.length,"/",d)})}const Iy=[{brand:"visa",pattern:/^4/,length:[13,16,19]},{brand:"mastercard",pattern:/^(5[1-5]|2[2-7])/,length:[16]},{brand:"amex",pattern:/^3[47]/,length:[15]},{brand:"discover",pattern:/^6(?:011|5)/,length:[16]},{brand:"jcb",pattern:/^35/,length:[16]},{brand:"diners",pattern:/^3(?:0[0-5]|[68])/,length:[14]},{brand:"unionpay",pattern:/^62/,length:[16,19]}];function Nk(e){return Iy.find(({pattern:n})=>n.test(e))?.brand??null}function Ak(e){if(!e)return!1;let t=0,n=!1;for(let r=e.length-1;r>=0;r--){let i=Number.parseInt(e[r]??"0",10);n&&(i*=2,i>9&&(i-=9)),t+=i,n=!n}return t%10===0}function Fk(e,t){if(!t||!e)return!1;const n=Iy.find(r=>r.brand===t);return!n||!n.length.includes(e.length)?!1:Ak(e)}function Tk(e,t){return t==="amex"?[e.slice(0,4),e.slice(4,10),e.slice(10,15)].filter(Boolean).join(" "):e.replace(/(.{4})/g,"$1 ").trim()}const Ik=19;function Mk(e){const t=e.replace(/\D/g,"").slice(0,Ik),n=Nk(t),r=Tk(t,n),i=Fk(t,n);return{formatted:r,brand:n,isValid:i}}function Kk({size:e="md",label:t="Card number",required:n,hint:r,error:i,disabled:a=!1,placeholder:l="Card number",value:o="",leftSlot:s,onChange:d,className:c,wrapperClassName:f}){const m=h=>{const{formatted:p,brand:g,isValid:y}=Mk(h.target.value);d?.(p,g,y)};return b.createElement(ti,{size:e,label:t,required:n,hint:r,error:i,disabled:a,placeholder:l,value:o,onChange:m,inputMode:"numeric",autoComplete:"cc-number",className:c,wrapperClassName:f,leftSlot:s})}const os=E1;os.Prefix=wE,os.Suffix=SE;const Lk="flex flex-col gap-1 w-full",Ok=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),zk=Z(["flex w-full items-start gap-2 border rounded-lg p-3 bg-white","transition-[border-color,border-width]","data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100"],{variants:{error:{true:"",false:"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500"}},defaultVariants:{error:!1}}),Vk=Z(["flex-1 min-h-[132px] bg-transparent outline-none text-caption-lg text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed disabled:resize-none"],{variants:{resizable:{true:"resize-y",false:"resize-none"}},defaultVariants:{resizable:!0}}),_k=Z("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),Rk=({error:e})=>ee("flex w-full items-start gap-2 rounded-lg border bg-white p-2 transition-[border-color,border-width]",e?"data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500":"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500","data-[disabled]:bg-light-100 data-[disabled]:cursor-not-allowed"),jk=({error:e})=>ee("flex items-center gap-1 text-caption-sm font-semibold",e?"":"text-light-800"),Hk=e=>ee("flex-1 min-h-[64px] bg-transparent outline-none text-sm text-light-900","placeholder:text-light-500",e?"resize-y":"resize-none"),Uk="flex flex-col w-full max-w-[320px]",My=b.forwardRef(({label:e,required:t,hint:n,helpIcon:r,error:i=!1,disabled:a=!1,resizable:l=!0,compact:o=!1,rows:s,style:d,className:c,wrapperClassName:f,...m},h)=>{const p=s?{minHeight:`${s*20}px`}:void 0;return b.createElement("div",{className:ee(o?Uk:Lk,f)},e&&b.createElement("label",{className:o?jk({error:i}):Ok({error:i})},e,t&&b.createElement("span",{className:"text-error-400"},"*"),r),b.createElement(Lr,{isDisabled:a,isInvalid:i,className:o?Rk({error:i}):zk({error:i})},b.createElement(mC,{ref:h,disabled:a,rows:s,style:{...p,...d},className:ee(o?Hk(l&&!a):Vk({resizable:l&&!a}),c),...m})),n&&b.createElement("p",{className:_k({error:i})},n))});My.displayName="Textarea";const Wk=Z("flex w-[320px] flex-col gap-1"),Gk=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}}}),Zk=Z("flex items-stretch rounded-lg border bg-white transition-colors",{variants:{error:{true:"",false:"border-light-200"},disabled:{true:"bg-light-100",false:""}}}),Yk=Z("flex items-center px-3 text-sm text-light-500 rounded-l-lg select-none",{variants:{size:{sm:"h-9",md:"h-11"},disabled:{true:"bg-light-100",false:"bg-white"}}}),qk="w-px bg-light-200",Xk=Z(["flex flex-1 items-center gap-2 px-3 rounded-r-lg","transition-shadow","focus-within:ring-2 focus-within:ring-offset-0"],{variants:{size:{sm:"h-9",md:"h-11"},error:{true:"border border-error-200 focus-within:ring-error-500",false:"focus-within:ring-primary-500"},disabled:{true:"cursor-not-allowed",false:""}}}),Jk=Z("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),Qk=Z("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function eB({size:e="md",label:t,required:n,hint:r,error:i=!1,disabled:a=!1,placeholder:l="www.cekat.ai",value:o,rightIcon:s,onChange:d,className:c,wrapperClassName:f}){return u.createElement("div",{className:ee(Wk(),f)},t&&u.createElement("label",{className:Gk({error:i})},t,n&&u.createElement("span",{className:"text-error-400"},"*")),u.createElement("div",{className:Zk({error:i,disabled:a})},u.createElement("div",{className:Yk({size:e})},"http://"),u.createElement("div",{className:qk}),u.createElement("div",{className:Xk({size:e,error:i,disabled:a})},u.createElement("input",{value:o,onChange:d,placeholder:l,disabled:a,className:ee(Jk({disabled:a}),c)}),s&&u.createElement("div",{className:"flex items-center text-light-400"},s))),r&&u.createElement("p",{className:Qk({error:i})},r))}const tB=Z("flex w-[320px] flex-col gap-1"),nB=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"text-error-600",false:"text-light-800"}}}),rB=Z("flex items-stretch rounded-lg border border-light-200 bg-white transition-colors",{variants:{disabled:{true:"bg-light-100",false:""}}}),iB=Z(["flex flex-1 items-center gap-2 px-3 rounded-l-lg","transition-shadow","focus-within:ring-2 focus-within:ring-offset-0"],{variants:{size:{sm:"h-9",md:"h-11"},error:{true:"border border-error-200 focus-within:ring-error-500",false:"focus-within:ring-primary-500"},disabled:{true:"cursor-not-allowed",false:""}}}),aB=Z("w-px transition-colors",{variants:{error:{true:"focus:bg-error-200 group-focus-within:bg-error-500",false:"focus:bg-light-200 group-focus-within:bg-primary-500"}}}),lB=Z("flex items-center gap-1 px-3 text-sm text-light-700 rounded-r-lg select-none",{variants:{size:{sm:"h-9",md:"h-11"},disabled:{true:"bg-white",false:"bg-white"}}}),oB=Z("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),uB=Z("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function sB({size:e="md",label:t,required:n,hint:r,error:i=!1,disabled:a=!1,placeholder:l="www.cekat.ai",value:o,rightIcon:s,suffix:d,onChange:c,className:f,wrapperClassName:m}){return u.createElement("div",{className:ee(tB(),m)},t&&u.createElement("label",{className:nB({error:i})},t,n&&u.createElement("span",{className:"text-error-400"},"*")),u.createElement("div",{className:rB({disabled:a})},u.createElement("div",{className:iB({size:e,error:i,disabled:a})},u.createElement("input",{value:o,onChange:c,placeholder:l,disabled:a,className:ee(oB({disabled:a}),f)}),s&&u.createElement("div",{className:"text-light-400"},s)),u.createElement("div",{className:aB({error:i})}),u.createElement("div",{className:lB({size:e,disabled:a})},d)),r&&u.createElement("p",{className:uB({error:i})},r))}const dB=Z("flex w-full flex-col gap-1"),cB=Z("flex items-center gap-1 text-sm font-bold text-light-800"),Ky=Z(["flex w-full items-center border bg-white text-left","transition-[border-color,border-width]"],{variants:{size:{xs:"h-7 gap-1 rounded px-2 text-caption-sm",sm:"h-9 gap-2 rounded-lg px-3 text-caption-lg",md:"h-11 gap-2 rounded-lg px-3 text-body-sm"},open:{true:"border-2 border-primary-500",false:"border-light-200 focus-within:border-2 focus-within:border-primary-500"},disabled:{true:"cursor-not-allowed bg-light-100",false:"cursor-pointer"}},defaultVariants:{size:"md",open:!1,disabled:!1}}),fB=Z(["w-full overflow-y-auto py-1"],{variants:{size:{xs:"max-h-52",sm:"max-h-64",md:"max-h-80"}},defaultVariants:{size:"md"}}),mB=Z("text-caption-lg text-light-700"),hB=({className:e})=>b.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},b.createElement("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),pB=({className:e})=>b.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},b.createElement("path",{d:"M17.5 17.5L14.1 14.1M16 9.25C16 12.98 12.98 16 9.25 16C5.52 16 2.5 12.98 2.5 9.25C2.5 5.52 5.52 2.5 9.25 2.5C12.98 2.5 16 5.52 16 9.25Z",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),us={xs:"size-4",sm:"size-5",md:"size-6"},Ly={xs:"size-4",sm:"size-5",md:"size-5"},bB={xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"},gB={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},Oy=({size:e,open:t,disabled:n})=>ee("flex w-full items-center gap-2 rounded-lg border bg-white px-2 text-left transition-[border-color,border-width]",bB[e],gB[e],t?"border-2 border-primary-500":"border-light-200 focus-within:border-2 focus-within:border-primary-500",n?"cursor-not-allowed bg-light-100":"cursor-pointer"),yB=()=>"flex items-center gap-1 text-caption-sm font-semibold text-light-800",$B="flex w-full max-w-[320px] flex-col";function vB({size:e="md",type:t="default",label:n,required:r,helpIcon:i,hint:a,placeholder:l="Select option",disabled:o=!1,compact:s=!1,leadingIcon:d,options:c,value:f=null,onChange:m,values:h=[],onValuesChange:p,hideTagsOnFocus:g=!1,className:y,wrapperClassName:$}){const[x,v]=b.useState(!1),[C,w]=b.useState(""),S=b.useRef(null),B=b.useRef(null),E=b.useRef(null),k=t==="tags",K=t==="search"||k,T=c.find(A=>A.id===f)??null,I=c.filter(A=>h.includes(A.id)),R=k&&(!g||!x),D=k&&g&&!x&&I.length>0,M=C?c.filter(A=>`${A.label} ${A.supportingText??""}`.toLowerCase().includes(C.toLowerCase())):c,G=()=>{v(!1),w("")};b.useEffect(()=>{x&&K&&B.current?.focus()},[x,K]),b.useEffect(()=>{if(!x||!K)return;const A=F=>{const z=F.target;S.current?.contains(z)||E.current?.contains(z)||G()};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[x,K]);const O=()=>{o||(x?G():v(!0))},Y=A=>{A.disabled||(k?(p?.(h.includes(A.id)?h.filter(F=>F!==A.id):[...h,A.id]),w(""),B.current?.focus()):(m?.(A),G()))},P=A=>{if(A.key==="Enter"){A.preventDefault();const F=M.find(z=>!z.disabled);x&&F&&Y(F)}else A.key==="Backspace"&&k&&!C&&h.length?p?.(h.slice(0,-1)):x||v(!0)},N=A=>A.avatar?b.createElement("img",{src:A.avatar,alt:"",className:ee(us[e],"shrink-0 rounded-full object-cover")}):A.icon?b.createElement("span",{className:ee(us[e],"flex shrink-0 items-center justify-center",o?"text-light-400":"text-light-500")},A.icon):A.dot?b.createElement("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:o?"#d0d5dd":A.dot}}):null,_=T?N(T):d?b.createElement("span",{className:ee(us[e],"flex shrink-0 items-center justify-center",o?"text-light-400":"text-light-500")},d):null,Q=T?b.createElement("span",{className:"flex min-w-0 items-center gap-2 whitespace-nowrap"},b.createElement("span",{className:ee("truncate font-medium",o?"text-light-400":"text-light-800")},T.label),T.supportingText&&b.createElement("span",{className:o?"text-light-400":"text-light-700"},T.supportingText)):b.createElement("span",{className:o?"text-light-400":"text-light-500"},l),X=b.createElement(Pt,{ref:E,triggerRef:S,isOpen:x,onOpenChange:A=>{A||G()},isNonModal:K,shouldCloseOnInteractOutside:A=>!S.current?.contains(A),matchTriggerWidth:!0,placement:"bottom start"},b.createElement("div",{role:"listbox",className:fB({size:e})},M.length===0&&b.createElement("div",{className:"flex h-12 items-center px-4 text-light-500"},"No options found"),M.map(A=>{const F=k?h.includes(A.id):A.id===f,z={isHovered:!1,isPressed:!1,isSelected:F,isFocusVisible:!1,isDisabled:!!A.disabled,selectionMode:k?"multiple":"single"};return b.createElement("button",{key:A.id,type:"button",role:"option","aria-selected":F,disabled:A.disabled,onClick:()=>Y(A),className:ee(Mu,A.disabled&&"cursor-not-allowed")},b.createElement(Ku,{state:z,nativeInteraction:!0},b.createElement(b.Fragment,null,N(A),b.createElement("span",{className:"truncate"},A.label),A.supportingText&&b.createElement("span",{"data-slot":"supporting-text"},A.supportingText))))})));return b.createElement("div",{ref:S,className:ee(s?$B:dB(),$)},n&&b.createElement("label",{className:s?yB():cB()},n,r&&b.createElement("span",{className:"text-error-400"},"*"),i),b.createElement("div",{className:"relative",onKeyDown:A=>{A.key==="Escape"&&G()}},t==="default"?b.createElement("button",{type:"button","aria-haspopup":"listbox","aria-expanded":x,disabled:o,onClick:O,className:ee(s?Oy({size:e,open:x,disabled:o}):Ky({size:e,open:x,disabled:o}),y)},_,b.createElement("span",{className:"flex min-w-0 flex-1 items-center"},Q),b.createElement(hB,{className:ee(Ly[e],"shrink-0 text-light-500")})):b.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-expanded":x,onClick:O,className:ee(s?Oy({size:e,open:x,disabled:o}):Ky({size:e,open:x,disabled:o}),y)},b.createElement(pB,{className:ee(Ly[e],"shrink-0",o?"text-light-400":"text-light-500")}),R&&I.length>0&&b.createElement("div",{className:"flex shrink items-center gap-1 overflow-x-auto whitespace-nowrap [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"},I.map(A=>b.createElement(Tu,{key:A.id,size:"sm",disabled:o,icon:A.avatar?b.createElement("img",{src:A.avatar,alt:"",className:"size-4 shrink-0 rounded-full object-cover"}):void 0,onClose:()=>Y(A)},A.label))),!k&&!x&&T?b.createElement("span",{className:"flex min-w-0 flex-1 items-center"},Q):D?null:b.createElement("input",{ref:B,value:C,disabled:o,placeholder:l,onChange:A=>{w(A.target.value),x||v(!0)},onKeyDown:P,className:"min-w-8 flex-1 bg-transparent text-light-900 outline-none placeholder:text-light-500 disabled:cursor-not-allowed disabled:placeholder:text-light-400"})),X),a&&b.createElement("p",{className:mB()},a))}function xB({id:e,value:t,textValue:n,"aria-label":r,isDisabled:i,onAction:a,className:l,style:o,leadingSlot:s,children:d,trailingSlot:c},f){const m=b.useContext(Lu),h={id:e,value:t,textValue:n,"aria-label":r,isDisabled:i,onAction:a,className:l,style:o,leadingSlot:s,children:d,trailingSlot:c};if(m==="menu")return b.createElement(T1,{ref:f,...h});if(m==="listbox")return b.createElement(F1,{ref:f,...h});throw new Error("CollectionItem must be rendered inside a supported collection parent.")}const CB=b.forwardRef(xB),zy=Z("relative",{variants:{layout:{floating:["flex w-full flex-col gap-4 p-4","rounded-xl border shadow-xs","sm:flex-row sm:items-start"],"full-width":"w-full border-b"}},defaultVariants:{layout:"floating"}}),DB={default:{surface:"bg-light-50",border:"border-light-300",iconSurface:"border border-light-200 bg-white shadow-xs",iconSurfaceOnLight:"border border-light-200 bg-white shadow-xs",iconText:"text-light-800"},brand:{surface:"bg-primary-50",border:"border-primary-300",iconSurface:"bg-primary-100",iconSurfaceOnLight:"bg-white",iconText:"text-primary-500"},gray:{surface:"bg-light-50",border:"border-light-300",iconSurface:"bg-light-100",iconSurfaceOnLight:"bg-white",iconText:"text-light-800"},error:{surface:"bg-error-50",border:"border-error-300",iconSurface:"bg-error-50",iconSurfaceOnLight:"bg-white",iconText:"text-error-500"},warning:{surface:"bg-warning-50",border:"border-warning-300",iconSurface:"bg-warning-100",iconSurfaceOnLight:"bg-white",iconText:"text-warning-500"},success:{surface:"bg-success-50",border:"border-success-300",iconSurface:"bg-success-50",iconSurfaceOnLight:"bg-white",iconText:"text-success-500"}},EB="bg-white border-light-200",wB="relative mx-auto flex w-full max-w-[1280px] flex-col gap-4 px-4 py-4 sm:flex-row sm:items-center sm:gap-3 sm:px-8 sm:py-3",SB=Z("flex shrink-0 items-center justify-center",{variants:{layout:{floating:"","full-width":"hidden sm:flex"},shape:{square:"",circle:""},variant:{featured:"",plain:""}},compoundVariants:[{variant:"featured",layout:"floating",class:"size-8"},{variant:"featured",layout:"full-width",class:"size-10"},{variant:"featured",shape:"circle",class:"rounded-full"},{variant:"featured",shape:"square",layout:"floating",class:"rounded-md"},{variant:"featured",shape:"square",layout:"full-width",class:"rounded-lg"}],defaultVariants:{layout:"floating",shape:"square",variant:"featured"}}),Vy=Z("flex min-w-0 flex-1",{variants:{layout:{floating:"flex-col gap-3","full-width":"items-center gap-4"}},defaultVariants:{layout:"floating"}}),PB=Z("flex min-w-0",{variants:{layout:{floating:"flex-col gap-1","full-width":"flex-col gap-0.5 sm:flex-row sm:flex-wrap sm:gap-x-1.5"},closable:{true:"",false:""}},compoundVariants:[{layout:"floating",closable:!0,class:"pr-8"},{layout:"full-width",closable:!0,class:"pr-8 sm:pr-0"}],defaultVariants:{layout:"floating",closable:!1}}),kB="text-caption-lg font-bold text-light-800",BB="text-caption-lg text-light-600",NB=Z("flex gap-3",{variants:{layout:{floating:"flex-wrap items-center","full-width":""},actionVariant:{link:"flex-wrap items-center",button:""}},compoundVariants:[{layout:"full-width",actionVariant:"button",class:"flex-col-reverse sm:flex-row sm:items-center"}],defaultVariants:{layout:"floating",actionVariant:"link"}}),AB=Z(["inline-flex items-center justify-center gap-1 bg-transparent p-0","text-caption-lg font-bold transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{emphasis:{primary:"text-primary-500 hover:text-primary-800",secondary:"text-light-800 hover:text-light-900"}},defaultVariants:{emphasis:"secondary"}}),FB=Z(["flex size-9 shrink-0 items-center justify-center rounded-lg","bg-transparent text-light-500 transition-colors","hover:bg-light-50 hover:text-light-700","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{layout:{floating:"absolute right-[7px] top-[7px]","full-width":"absolute right-2 top-2 sm:static"}},defaultVariants:{layout:"floating"}}),TB={default:dr,brand:dr,gray:dr,error:$i,warning:$i,success:nl},_y=({title:e,description:t,color:n="default",layout:r="floating",background:i="white",icon:a,iconVariant:l="featured",showIcon:o=!0,primaryAction:s,secondaryAction:d,actionVariant:c,actions:f,onClose:m,closeLabel:h="Close",className:p,...g})=>{const y=TB[n],$=r==="floating"?16:20,x=c??(r==="floating"?"link":"button"),v=DB[n],C=i==="light",w=C?ee(v.surface,v.border):EB,S=(I,R)=>I?x==="link"?u.createElement("button",{type:"button",onClick:I.onClick,className:AB({emphasis:R})},I.label):u.createElement(Ze,{size:"sm",variant:R==="primary"?"solid":"outline",onPress:I.onClick,className:r==="full-width"?"w-full sm:w-auto":void 0},I.label):null,E=!!(f||s||d)?u.createElement("div",{className:NB({layout:r,actionVariant:x})},f??u.createElement(u.Fragment,null,S(d,"secondary"),S(s,"primary"))):null,k=o&&(a||y)?u.createElement("div",{className:ee(SB({layout:r,variant:l,shape:n==="default"?"square":"circle"}),v.iconText,l==="featured"&&(C?v.iconSurfaceOnLight:v.iconSurface))},a??u.createElement(y,{size:$,stroke:2})):null,K=m?u.createElement("button",{type:"button","aria-label":h,onClick:m,className:FB({layout:r})},u.createElement(cr,{size:16,stroke:2})):null,T=u.createElement("div",{className:PB({layout:r,closable:!!m})},u.createElement("p",{className:kB},e),t&&u.createElement("p",{className:BB},t));return r==="full-width"?u.createElement("div",{role:"alert",className:ee(zy({layout:r}),w,p),...g},u.createElement("div",{className:wB},u.createElement("div",{className:Vy({layout:r})},k,T),(E||K)&&u.createElement("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-2"},E,K))):u.createElement("div",{role:"alert",className:ee(zy({layout:r}),w,p),...g},k,u.createElement("div",{className:Vy({layout:r})},T,E),K)};_y.displayName="Alert";const IB={success:{container:"bg-success-100",badge:"bg-success-900",iconColor:"text-success-100",text:"text-success-900",defaultTitle:"Success!"},error:{container:"bg-error-100",badge:"bg-error-800",iconColor:"text-error-100",text:"text-error-800",defaultTitle:"Error!"},warning:{container:"bg-warning-100",badge:"bg-warning-800",iconColor:"text-warning-100",text:"text-warning-800",defaultTitle:"Warning!"},info:{container:"bg-info-100",badge:"bg-info-900",iconColor:"text-info-100",text:"text-info-900",defaultTitle:"Info"}},MB=Z("relative flex w-full max-w-[400px] items-center gap-2 rounded-md px-2 py-3 shadow-[0px_4px_4px_0px_rgba(0,0,0,0.04)]"),KB="mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-full",LB="flex-1 break-words font-nunito text-sm leading-5",OB=Z(["absolute -left-4 -top-3 flex size-6 shrink-0 items-center justify-center rounded-full","shadow-[0px_4px_4px_0px_rgba(0,0,0,0.04)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{variant:{success:"bg-success-100 text-success-900",error:"bg-error-100 text-error-800",warning:"bg-warning-100 text-warning-800",info:"bg-info-100 text-info-900"}}}),zB={success:nl,error:cr,warning:B$,info:dr},Ry=({variant:e,message:t,title:n,onClose:r,closeLabel:i="Close",className:a})=>{const l=IB[e],o=zB[e];return b.createElement("div",{role:"status",className:H(MB(),l.container,a)},b.createElement("div",{className:H(KB,l.badge)},b.createElement(o,{size:16,stroke:3,className:l.iconColor})),b.createElement("p",{className:H(LB,l.text)},b.createElement("span",{className:"font-bold"},n??l.defaultTitle),b.createElement("span",{className:"ml-1 font-normal"},t)),r&&b.createElement("button",{type:"button","aria-label":i,onClick:r,className:OB({variant:e})},b.createElement(cr,{size:14,stroke:2.5})))};Ry.displayName="Toast";const ss=Z(["relative flex w-full max-w-[504px] items-start gap-4 rounded-xl border border-light-200","bg-white p-4 shadow-lg"],{variants:{type:{image:"flex-col gap-4 p-0 sm:flex-row"}}}),VB={"primary-icon":{shape:"rounded-full",bg:"bg-primary-100",iconText:"text-primary-500"},"gray-icon":{shape:"rounded-lg border border-light-200 shadow-xs",bg:"bg-white",iconText:"text-light-700"},progress:{shape:"rounded-lg border border-light-200 shadow-xs",bg:"bg-white",iconText:"text-light-700"},success:{shape:"rounded-full",bg:"bg-success-50",iconText:"text-success-500"},warning:{shape:"rounded-full",bg:"bg-warning-100",iconText:"text-warning-500"},error:{shape:"rounded-full",bg:"bg-error-50",iconText:"text-error-500"},avatar:null,image:null,"no-icon":null},jy="font-nunito font-bold text-caption-lg text-light-800",Hy="font-nunito font-normal text-caption-lg text-light-600",_B="flex flex-wrap items-center gap-3",RB=Z(["inline-flex items-center justify-center gap-1 bg-transparent p-0","text-caption-lg font-semibold transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{emphasis:{primary:"text-primary-500 hover:text-primary-800",secondary:"text-light-800 hover:text-light-900"}},defaultVariants:{emphasis:"secondary"}}),jB="absolute right-[7px] top-[7px] flex size-9 shrink-0 items-center justify-center rounded-lg bg-transparent text-light-500 transition-colors hover:bg-light-50 hover:text-light-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",HB="h-2 w-full rounded-full bg-light-200",UB="h-2 rounded-full bg-primary-500",WB="font-nunito text-caption-lg font-medium text-light-600",GB="h-[122px] w-full shrink-0 overflow-hidden rounded-md bg-light-50 sm:h-auto sm:w-20 sm:self-stretch sm:rounded-none sm:rounded-l-xl",ZB="flex flex-1 flex-col gap-3 p-4 sm:py-4 sm:pl-5 sm:pr-4",YB={"primary-icon":dr,progress:I$,success:nl,warning:$i,error:$i},Uy=({action:e,emphasis:t})=>b.createElement("button",{type:"button",onClick:e.onClick,className:RB({emphasis:t})},e.label),Wy=({type:e,title:t,supportingText:n,primaryAction:r,secondaryAction:i,onClose:a,closeLabel:l="Close",icon:o,avatarSrc:s,avatarAlt:d,timestamp:c,imageSrc:f,imageAlt:m,progressValue:h,progressLabel:p,className:g})=>{const y=VB[e],$=YB[e],v=!!(r||i)?b.createElement("div",{className:_B},i&&b.createElement(Uy,{action:i,emphasis:"secondary"}),r&&b.createElement(Uy,{action:r,emphasis:"primary"})):null,C=a?b.createElement("button",{type:"button","aria-label":l,onClick:a,className:jB},b.createElement(An,{icon:cr,size:"sm",strokeWidth:2})):null,w=b.createElement("div",{className:"flex flex-col gap-1"},b.createElement("p",{className:jy},t),n&&b.createElement("p",{className:Hy},n)),S=e==="progress"?b.createElement("div",{className:"flex flex-col items-end gap-2"},b.createElement("div",{className:HB},b.createElement("div",{className:UB,style:{width:`${Math.min(100,Math.max(0,h??0))}%`}})),p&&b.createElement("p",{className:WB},p)):null,B=e==="avatar"?b.createElement(Ha,{src:s,alt:d,size:"md",status:"online"}):y?b.createElement("div",{className:H("flex size-8 shrink-0 items-center justify-center",y.shape,y.bg)},o??($&&b.createElement(An,{icon:$,size:"sm",strokeWidth:2,className:y.iconText}))):null;return e==="image"?b.createElement("div",{role:"status",className:H(ss({type:e}),g)},b.createElement("div",{className:GB},f&&b.createElement("img",{src:f,alt:m??"",className:"size-full object-cover"})),b.createElement("div",{className:ZB},w,v),C):e==="avatar"?b.createElement("div",{role:"status",className:H(ss(),g)},B,b.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-3"},b.createElement("div",{className:"flex flex-col gap-1"},b.createElement("div",{className:"flex flex-wrap items-center gap-2"},b.createElement("p",{className:jy},t),c&&b.createElement("span",{className:"font-nunito text-caption-lg text-light-500"},c)),n&&b.createElement("p",{className:Hy},n)),v),C):b.createElement("div",{role:"status",className:H(ss(),g)},B,b.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-3"},w,S,v),C)};Wy.displayName="NotificationToast";const qB=H("relative overflow-auto rounded-lg border border-light-200 bg-white"),XB=H("w-full border-collapse text-left"),JB=H("sticky top-0 z-10 bg-light-100"),QB=H("data-[empty]:h-full"),eN=H("border-t border-light-200 bg-light-100 [&_tr]:!bg-light-100"),tN=H("relative min-h-[36px] whitespace-nowrap px-5 py-2 align-middle","border-b border-r border-light-200 last:border-r-0","has-[[data-resizable-direction]]:border-r-0","font-nunito text-caption-lg leading-caption-lg text-light-800","select-none","data-[hovered]:bg-light-200","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500 data-[focus-visible]:-outline-offset-2"),nN={start:"text-left",center:"text-center",end:"text-right"},rN=H("sticky z-30 bg-light-100 data-[hovered]:bg-light-200"),Gy={left:"border-r-0 shadow-[inset_-1px_0_0_0_#D0D5DD]",right:"border-l-0 shadow-[inset_1px_0_0_0_#D0D5DD]"},iN=H("sticky z-20 bg-white","data-[hovered]:bg-light-100","group-data-[selected]/row:bg-primary-100","group-data-[selected]/row:data-[hovered]:bg-primary-200"),aN=H("flex min-w-0 items-center justify-between gap-3 self-stretch"),Zy={inactive:"text-light-500",active:"text-light-800"},lN=H("group/row","bg-white data-[hovered]:bg-light-100","data-[selected]:bg-primary-100","data-[selected]:data-[hovered]:bg-primary-200","data-[disabled]:bg-white data-[disabled]:text-light-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500","data-[focus-visible]:-outline-offset-2"),oN=H("group/cell relative min-h-[42px] min-w-0 px-5 py-2 align-middle","border-b border-r border-light-200 last:border-r-0","font-nunito text-caption-lg leading-caption-lg text-light-800","data-[disabled]:text-light-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500","data-[focus-visible]:-outline-offset-2"),uN=H("flex min-h-[26px] min-w-0 items-center gap-3 self-stretch"),sN=H("group-first/cell:group-data-[selected]/row:shadow-[inset_2px_0_0_0_#1352BF]"),dN="block truncate",cN=H("absolute right-[-3px] top-0 h-full w-2 shrink-0 cursor-col-resize touch-none","data-[resizable-direction=left]:cursor-w-resize","data-[resizable-direction=right]:cursor-e-resize","after:absolute after:right-1/2 after:top-0 after:h-full after:w-px after:translate-x-1/2 after:bg-light-300","after:transition-[width,background-color] after:duration-100 after:ease-out","data-[hovered]:after:w-0.5 data-[hovered]:after:bg-light-500","data-[resizing]:after:w-0.5 data-[resizing]:after:bg-primary-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500 data-[focus-visible]:-outline-offset-2"),fN=H("w-full border-t border-light-200 py-3 text-center"),pi={container:H("flex flex-col items-center gap-3 px-6 py-10 text-center"),iconWrap:H("flex h-14 w-14 items-center justify-center rounded-full bg-light-100 text-light-500 [&>svg]:h-6 [&>svg]:w-6"),title:H("font-nunito text-body-sm font-semibold text-light-800"),description:H("max-w-sm font-nunito text-caption-lg text-light-600"),actions:H("mt-2 flex items-center gap-2")};function Yy({sticky:e,stickyOffset:t=0},n){return e?{...n,[e]:t}:n}const qy=u.forwardRef(({className:e,...t},n)=>b.createElement(F7,{ref:n,...t,className:H(qB,e)}));qy.displayName="TableContainer";const Xy=u.forwardRef(({className:e,...t},n)=>b.createElement(I7,{ref:n,...t,className:H(XB,e)}));Xy.displayName="Table";const mN=u.forwardRef(({className:e,...t},n)=>b.createElement(z7,{ref:n,...t,className:H(JB,e)})),hN=u.forwardRef(({className:e,...t},n)=>b.createElement(W7,{ref:n,...t,className:H(QB,e)})),pN=u.forwardRef(({className:e,...t},n)=>b.createElement(Z7,{ref:n,...t,className:H(eN,e)})),bN={onPointerDown:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation()},Jy=u.forwardRef(({className:e,align:t="start",children:n,allowsSorting:r,actions:i,sticky:a,stickyOffset:l,style:o,...s},d)=>b.createElement(j7,{ref:d,allowsSorting:r,...s,style:Yy({sticky:a,stickyOffset:l},o),className:H(tN,nN[t],a&&rN,a&&Gy[a],e)},c=>{const{allowsSorting:f,sortDirection:m}=c;let h=typeof n=="function"?n(c):n;b.isValidElement(h)&&h.type===b.Fragment&&(h=h.props.children);const p=b.Children.toArray(h),g=p.filter($=>b.isValidElement($)&&$.type===Qa),y=p.filter($=>!(b.isValidElement($)&&$.type===Qa));return b.createElement("div",{className:aN},b.createElement("span",{className:"min-w-0 truncate"},y),f&&b.createElement("span",{className:H("shrink-0",m?Zy.active:Zy.inactive)},m==="ascending"&&b.createElement(A$,{size:14,"aria-hidden":"true"}),m==="descending"&&b.createElement(N$,{size:14,"aria-hidden":"true"}),!m&&b.createElement(F$,{size:14,"aria-hidden":"true"})),i&&b.createElement("span",{className:"shrink-0",...bN},i),g)}));Jy.displayName="Column";const gN=u.forwardRef(({className:e,...t},n)=>b.createElement(Y7,{ref:n,...t,className:H(lN,e)})),Qy=u.forwardRef(({className:e,children:t,sticky:n,stickyOffset:r,style:i,...a},l)=>b.createElement(q7,{ref:l,...a,style:Yy({sticky:n,stickyOffset:r},i),className:H(oN,sN,n&&iN,n&&Gy[n],e)},o=>b.createElement("div",{className:uN},typeof t=="function"?t(o):t)));Qy.displayName="Cell";const Qa=u.forwardRef(({className:e,...t},n)=>b.createElement(H7,{ref:n,...t,className:H(cN,e)}));Qa.displayName="ColumnResizer";const e$=u.forwardRef(({className:e,children:t,isLoading:n,...r},i)=>b.createElement(rC,{ref:i,isLoading:n,...r,className:H(fN,e)},t??(n&&b.createElement(As,{size:18,className:"inline-block animate-spin text-light-500","aria-label":"Loading more"}))));e$.displayName="TableLoadMoreItem";const t$=b.forwardRef(({icon:e,title:t,description:n,actions:r,className:i},a)=>b.createElement("div",{ref:a,className:H(pi.container,i)},e&&b.createElement("div",{className:pi.iconWrap},e),b.createElement("p",{className:pi.title},t),n&&b.createElement("p",{className:pi.description},n),r&&b.createElement("div",{className:pi.actions},r)));t$.displayName="EmptyState";const yN=Z(["fixed inset-0 flex items-center justify-center","bg-black/40 p-4"]),$N=Z(["relative flex max-h-full items-stretch overflow-hidden","rounded-xl border border-light-200 bg-white","shadow-[0px_2px_4px_-1px_rgba(16,24,40,0.08),0px_8px_24px_-4px_rgba(16,24,40,0.14)]","outline-none"]),vN=Z(["flex min-w-0 shrink-0 flex-col self-stretch overflow-hidden outline-none"],{variants:{size:{sm:"w-[500px]",md:"w-[640px]",lg:"w-[800px]"}},defaultVariants:{size:"sm"}}),xN=Z(["absolute right-[7px] top-[7px] z-10"]),CN=Z(["flex w-full shrink-0 items-center gap-3 px-6 py-4"]),DN=Z(["min-h-0 w-full flex-1 overflow-y-auto"]),EN=Z(["flex shrink-0 items-center justify-center self-stretch overflow-hidden py-2 pr-2"]),wN=Z(["flex h-full w-[240px] items-center justify-center overflow-hidden","rounded-lg border border-light-200 bg-primary-50"]),SN=Z(["flex w-full shrink-0 items-center gap-3 px-6 py-4"],{variants:{layout:{"horizontal-fill":"[&>*]:flex-1",horizontal:"justify-end","vertical-fill":"flex-col items-stretch","right-aligned":"","right-aligned-checkbox":"","wizard-navigation":"","single-cta":""}},defaultVariants:{layout:"horizontal-fill"}}),n$=b.forwardRef(({className:e,style:t,size:n="sm",showCloseButton:r=!0,isDismissable:i=!0,imagePanel:a,children:l,"aria-label":o,"aria-labelledby":s,...d},c)=>b.createElement(Kb,{...d,isDismissable:i,className:yN(),style:{zIndex:$D}},b.createElement(K8,{ref:c,className:$N()},b.createElement(G3,{"aria-label":o,"aria-labelledby":s,style:t,className:H(vN({size:n}),e)},f=>b.createElement(b.Fragment,null,r&&b.createElement(Ze,{type:"button",size:"sm",variant:"ghost",iconOnly:!0,onPress:f.close,"aria-label":"Close",className:xN()},b.createElement(Ze.Icon,null,b.createElement(cr,{size:16}))),typeof l=="function"?l(f):l)),a)));n$.displayName="Modal";const PN=({title:e,subtitle:t,icon:n,className:r})=>b.createElement("div",{className:H(CN(),r)},n&&b.createElement("span",{className:"flex size-6 shrink-0 items-center justify-center","aria-hidden":"true"},n),b.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5"},b.createElement(Pc,{slot:"title",className:"text-[18px] font-bold leading-5 text-light-800"},e),t&&b.createElement("p",{className:"text-caption-sm text-light-500"},t))),kN=({children:e,className:t})=>b.createElement("div",{className:H(DN(),t)},e),BN=({children:e,className:t})=>b.createElement("div",{className:EN()},b.createElement("div",{className:H(wN(),t)},e)),r$=b.createElement("div",{className:"h-px min-w-px flex-1","aria-hidden":"true"}),NN=({layout:e="horizontal-fill",destructive:t=!1,isPending:n=!1,cancelLabel:r,onCancel:i,confirmLabel:a,onConfirm:l,isConfirmDisabled:o=!1,backLabel:s="Back",onBack:d,checkbox:c,className:f})=>{const m=b.createElement(Ze,{type:"button",size:"sm",tone:t?"destructive":"primary",isDisabled:o||n,isPending:n,onPress:l},b.createElement(Ze.Text,null,a)),h=r&&b.createElement(Ze,{type:"button",size:"sm",variant:"outline",isDisabled:n,onPress:i},b.createElement(Ze.Text,null,r)),p=r&&b.createElement(Ze,{type:"button",size:"sm",variant:"plain",isDisabled:n,onPress:i},b.createElement(Ze.Text,null,r)),g=b.createElement(Ze,{type:"button",size:"sm",variant:"outline",isDisabled:n,onPress:d},b.createElement(Ze.Text,null,s));let y;switch(e){case"single-cta":y=b.createElement("div",{className:"w-full"},m);break;case"vertical-fill":y=b.createElement(b.Fragment,null,b.createElement("div",{className:"w-full"},m),r&&b.createElement("div",{className:"flex w-full items-center justify-center"},p));break;case"right-aligned":y=b.createElement(b.Fragment,null,p,r$,m);break;case"right-aligned-checkbox":y=b.createElement(b.Fragment,null,c&&b.createElement("div",{className:"flex min-w-0 flex-1 items-start"},c),b.createElement("div",{className:"flex shrink-0 items-center gap-3"},h,m));break;case"wizard-navigation":y=b.createElement(b.Fragment,null,p,r$,b.createElement("div",{className:"flex shrink-0 items-center gap-3"},g,m));break;default:y=b.createElement(b.Fragment,null,h,m);break}return b.createElement("div",{className:H(SN({layout:e}),f)},y)},bi=n$;bi.Header=PN,bi.Body=kN,bi.ImagePanel=BN,bi.Footer=NN;function AN({className:e,style:t,...n},r){return b.createElement(Lu.Provider,{value:"listbox"},b.createElement(Wx,{ref:r,...n,style:t,className:H(S1,e)}))}const gi=b.forwardRef(AN);function FN({className:e,style:t,content:n="none",icon:r,shortcut:i,children:a,...l},o){const s=n==="icon"?r:n==="selection"?d=>b.createElement("span",{className:P1},d.isSelected&&b.createElement(vi,{size:16,"aria-hidden":"true"})):void 0;return b.createElement(F1,{ref:o,...l,style:t,className:e,leadingSlot:s,trailingSlot:i?b.createElement("span",{className:k1},i):void 0},a)}const ds=b.forwardRef(FN),TN=({className:e})=>b.createElement(Im,{className:H(B1,e)}),i$=b.createContext(null);function IN(){const e=b.useContext(i$);if(!e)throw new Error("SelectPopover must be rendered inside Select.");return e}const MN=Z(["flex w-full items-center justify-between gap-2 border bg-white text-left","text-light-900 outline-none cursor-pointer","transition-[border-color,box-shadow]","border-light-200 group-data-[open]:border-primary-500","group-data-[focus-visible]:shadow-focus","group-data-[invalid]:border-error-200 group-data-[invalid]:group-data-[open]:border-error-500 group-data-[invalid]:group-data-[focus-visible]:border-error-500","group-data-[disabled]:cursor-not-allowed group-data-[disabled]:bg-light-100 group-data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),KN="flex size-4 shrink-0 items-center justify-center text-light-500",LN={xs:18,sm:20,md:24},ON=Z("min-w-0 flex-1 truncate",{variants:{placeholder:{true:"text-light-400",false:"font-medium text-light-800"}},defaultVariants:{placeholder:!1}}),zN=Z("shrink-0 text-light-500 transition-transform",{variants:{open:{true:"rotate-180",false:""}},defaultVariants:{open:!1}}),VN="p-2 pb-1",_N="flex h-9 items-center gap-2 rounded-lg border border-light-200 px-3 focus-within:border-primary-500 focus-within:shadow-focus",RN="min-w-0 flex-1 bg-transparent text-caption-lg text-light-800 outline-none placeholder:text-light-400";function jN({isOpen:e,onClose:t}){const n=b.useRef(e);return b.useEffect(()=>{n.current&&!e&&t(),n.current=e},[e,t]),null}function HN({className:e,style:t,children:n,...r},i){const[a,l]=b.useState(""),o=b.useMemo(()=>({query:a,setQuery:l}),[a]);return b.createElement(Y8,{ref:i,...r,style:t,className:H("group w-full",e)},s=>b.createElement(i$.Provider,{value:o},b.createElement(jN,{isOpen:s.isOpen,onClose:()=>l("")}),typeof n=="function"?n(s):n))}const cs=b.forwardRef(HN),el=b.forwardRef(({className:e,style:t,size:n="md",icon:r,children:i,...a},l)=>b.createElement(Xt,{ref:l,...a,style:t,className:H(MN({size:n}),e)},o=>b.createElement(b.Fragment,null,r&&b.createElement("span",{className:KN},r),typeof i=="function"?i(o):i,b.createElement(xi,{size:LN[n],"aria-hidden":"true",className:zN({open:o.isPressed})}))));el.displayName="SelectTrigger";function UN({className:e,style:t,...n},r){return b.createElement(J8,{ref:r,...n,style:t,className:i=>H(ON({placeholder:i.isPlaceholder}),e)})}const fs=b.forwardRef(UN);function ms({className:e,...t}){return b.createElement(ds,{...t,content:"selection",className:e})}function WN({items:e,children:t,getTextValue:n,filter:r,searchPlaceholder:i="Search...",searchAriaLabel:a="Search options",emptyState:l="No options found",className:o}){const{query:s,setQuery:d}=IN(),c=b.useMemo(()=>Array.from(e),[e]),f=b.useRef(null),m=b.useRef(null),h=b.useContext(cu)?.isOpen??!1;b.useEffect(()=>{if(!h)return;const y=window.setTimeout(()=>m.current?.focus(),0);return()=>window.clearTimeout(y)},[h]);const p=b.useMemo(()=>{const y=s.trim().toLocaleLowerCase();return y?c.filter($=>r?r($,s):n($).toLocaleLowerCase().includes(y)):c},[r,n,c,s]),g=y=>{if(y.key!=="ArrowDown")return;const $=f.current?.querySelector('[role="option"]:not([data-disabled])');$&&(y.preventDefault(),$.focus())};return b.createElement(Pt,{matchTriggerWidth:!0,placement:"bottom start",className:H(o)},b.createElement("div",{className:VN},b.createElement(vg,{"aria-label":a,value:s,onChange:d},b.createElement("div",{className:_N},b.createElement(Fs,{size:18,"aria-hidden":"true",className:"shrink-0 text-light-500"}),b.createElement(Or,{ref:m,placeholder:i,className:RN,onKeyDown:g})))),b.createElement(gi,{ref:f,items:p,renderEmptyState:()=>l},t))}const GN=Z(["flex w-full flex-nowrap items-center gap-2 border bg-white text-left","border-light-200 text-light-900","transition-[border-color,box-shadow]","group-data-[open]:border-primary-500","group-data-[focus-visible]:shadow-focus","group-data-[invalid]:border-error-200 group-data-[invalid]:group-data-[open]:border-error-500 group-data-[invalid]:group-data-[focus-visible]:border-error-500","group-data-[disabled]:cursor-not-allowed group-data-[disabled]:bg-light-100 group-data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),ZN=Z("flex shrink-0 items-center justify-center text-light-500",{variants:{size:{xs:"size-5",sm:"size-6",md:"size-7"}},defaultVariants:{size:"md"}}),YN="flex min-w-0 flex-nowrap items-center gap-1.5 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",qN="min-w-[4rem] flex-1 bg-transparent font-medium text-light-800 outline-none placeholder:font-normal placeholder:text-light-400 disabled:cursor-not-allowed";function XN({className:e,style:t,children:n,...r},i){return b.createElement(G9,{ref:i,...r,style:t,className:H("group",e)},n)}const JN=b.forwardRef(XN),a$=b.forwardRef(({className:e,size:t="md",icon:n,children:r,onClick:i,...a},l)=>{const o=b.useCallback(s=>{i?.(s),s.target.closest("button, input")||s.currentTarget.querySelector("input")?.focus()},[i]);return b.createElement(Lr,{ref:l,...a,onClick:o,className:H(GN({size:t}),e)},n&&b.createElement("span",{className:ZN({size:t})},n),r)});a$.displayName="ComboBoxTrigger";const l$=b.forwardRef(({className:e,style:t,onKeyDown:n,...r},i)=>{const a=b.useContext(nu),l=b.useCallback(o=>{if(n?.(o),o.key==="Backspace"&&!o.defaultPrevented&&o.currentTarget.value===""&&a?.selectionManager.selectionMode==="multiple"){const s=a.selectedItems[a.selectedItems.length-1];s&&a.selectionManager.toggleSelection(s.key)}},[n,a]);return b.createElement(Or,{ref:i,...r,style:t,onKeyDown:l,className:H(qN,e)})});l$.displayName="ComboBoxInput";const QN=({children:e})=>{const t=b.useContext(nu);return t?b.createElement("div",{className:YN},t.selectedItems.map(n=>n?b.createElement(b.Fragment,{key:n.key},e({key:n.key,textValue:n.textValue??String(n.key),onRemove:()=>t.selectionManager.toggleSelection(n.key)})):null)):null};function eA({className:e,...t}){return b.createElement(ds,{...t,content:"selection",className:e})}const o$=b.createContext(null);function u$(){const e=b.useContext(o$);if(!e)throw new Error("MultiSelect components must be rendered inside MultiSelect.");return e}function tA({"aria-label":e,items:t,children:n,selectedKeys:r,defaultSelectedKeys:i,onSelectionChange:a,disabledKeys:l,getTextValue:o,filter:s,searchValue:d,defaultSearchValue:c="",onSearchChange:f,isDisabled:m=!1,className:h}){const p=b.useMemo(()=>Array.from(t),[t]),g=r!==void 0,[y,$]=b.useState(()=>new Set(i)),x=b.useMemo(()=>g?new Set(r):y,[r,g,y]),v=d!==void 0,[C,w]=b.useState(c),S=v?d:C,[B,E]=b.useState(!1),k=b.useCallback(M=>{v||w(M),f?.(M)},[v,f]),K=b.useCallback(M=>{E(M),!M&&!v&&w("")},[v]),T=b.useCallback(M=>{if(M==="all")return;const G=new Set(M);g||$(G),a?.(G)},[g,a]),I=b.useMemo(()=>{const M=S.trim().toLocaleLowerCase();return M?p.filter(G=>s?s(G,S):o(G).toLocaleLowerCase().includes(M)):p},[s,o,p,S]),R=b.useMemo(()=>new Set(l),[l]),D={label:e,items:p,filteredItems:I,selectedKeys:x,disabledKeys:R,onSelectionChange:T,query:S,setQuery:k,isOpen:B,setOpen:K,isDisabled:m};return b.createElement(o$.Provider,{value:D},b.createElement("div",{className:H("w-full",h)},b.createElement(O9,{isOpen:B,onOpenChange:K},n)))}const nA=Z(["flex w-full items-center justify-between gap-2 border bg-white text-left","font-medium text-light-800 outline-none transition-[border-color,box-shadow]","hover:border-light-300 focus-visible:shadow-focus","disabled:cursor-not-allowed disabled:bg-light-100 disabled:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"},open:{true:"border-primary-500",false:"border-light-200"}},defaultVariants:{size:"md",open:!1}}),rA="overflow-hidden rounded-lg border border-light-200 bg-white shadow-lg outline-none",iA="outline-none",aA="p-2 pb-1",lA="flex h-9 items-center gap-2 rounded-lg border border-light-200 px-3 focus-within:border-primary-500 focus-within:shadow-focus",oA="min-w-0 flex-1 bg-transparent text-caption-lg text-light-800 outline-none placeholder:text-light-400",uA={xs:18,sm:20,md:20},s$=b.forwardRef(({children:e,size:t="md",className:n,style:r,...i},a)=>{const{isOpen:l,isDisabled:o}=u$();return b.createElement(Xt,{ref:a,isDisabled:o,style:r,className:H(nA({size:t,open:l}),n),...i},b.createElement("span",{className:"min-w-0 flex-1 truncate"},e),b.createElement(xi,{size:uA[t],"aria-hidden":"true",className:H("shrink-0 text-light-500 transition-transform",l&&"rotate-180")}))});s$.displayName="MultiSelectTrigger";function sA({children:e,searchPlaceholder:t="Search...",emptyState:n="No options found",className:r}){const{label:i,filteredItems:a,selectedKeys:l,disabledKeys:o,onSelectionChange:s,query:d,setQuery:c,setOpen:f}=u$(),m=b.useRef(null),h=p=>{if(p.key!=="ArrowDown")return;const g=m.current?.querySelector('[role="option"]:not([data-disabled])');g&&(p.preventDefault(),g.focus())};return b.createElement(Pt,{matchTriggerWidth:!0,placement:"bottom start",className:H(rA,r)},b.createElement(G3,{"aria-label":i,className:iA},b.createElement("div",{onKeyDownCapture:p=>{const g=p.target;if(p.key.toLowerCase()==="a"&&(p.ctrlKey||p.metaKey)&&!!g.closest('[role="listbox"]')){p.preventDefault(),p.stopPropagation();return}p.key==="Escape"&&(p.preventDefault(),p.stopPropagation(),f(!1))}},b.createElement("div",{className:aA},b.createElement(vg,{"aria-label":`Search ${i.toLocaleLowerCase()}`,value:d,onChange:c},b.createElement("div",{className:lA},b.createElement(Fs,{size:18,"aria-hidden":"true",className:"shrink-0 text-light-500"}),b.createElement(Or,{autoFocus:!0,placeholder:t,className:oA,onKeyDown:h})))),b.createElement(gi,{ref:m,"aria-label":`${i} options`,items:a,selectionMode:"multiple",selectedKeys:l,disabledKeys:o,onSelectionChange:s,escapeKeyBehavior:"none",renderEmptyState:()=>n},e))))}const dA=Z(["relative inline-flex w-fit items-center font-semibold","transition-[color,background-color] duration-150","focus-visible:outline-none","[-webkit-tap-highlight-color:transparent]","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:text-light-400"],{variants:{size:{xs:"gap-1 text-caption-sm",sm:"gap-1 text-caption-lg",md:"gap-1.5 text-body-sm"},variant:{text:["bg-transparent text-light-600","data-[hovered]:text-light-900","data-[current]:text-light-800","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],ghost:["bg-transparent text-light-500 rounded-md","data-[hovered]:bg-light-50 data-[hovered]:text-light-700","data-[current]:bg-light-50 data-[current]:text-light-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],"ghost-primary":["bg-transparent text-primary-500 rounded-md","data-[hovered]:bg-primary-100 data-[hovered]:text-primary-800","data-[current]:bg-primary-100 data-[current]:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"]},underline:{none:"",hover:"data-[hovered]:underline underline-offset-2",always:"underline underline-offset-2"}},compoundVariants:[{variant:"ghost",size:"xs",class:"px-1.5 py-0.5"},{variant:"ghost",size:"sm",class:"px-2 py-1"},{variant:"ghost",size:"md",class:"px-2.5 py-1.5"},{variant:"ghost-primary",size:"xs",class:"px-1.5 py-0.5"},{variant:"ghost-primary",size:"sm",class:"px-2 py-1"},{variant:"ghost-primary",size:"md",class:"px-2.5 py-1.5"}],defaultVariants:{size:"sm",variant:"text",underline:"none"}}),hs=b.forwardRef(({children:e,className:t,variant:n="text",size:r="sm",underline:i="none",...a},l)=>b.createElement(Ev,{...a,ref:l,className:al(t,o=>H(dA({variant:n,size:r,underline:i}),o))},e));hs.displayName="Link";const d$=b.createContext({separator:"chevron",variant:"text",size:"sm"}),c$=()=>b.useContext(d$),cA="flex flex-wrap items-center",fA="inline-flex items-center gap-1.5",mA=Z("shrink-0 text-light-400",{variants:{type:{chevron:"size-4",slash:"size-3.5"}},defaultVariants:{type:"chevron"}}),hA="inline-flex size-5 shrink-0 items-center justify-center [&_svg]:size-full",f$=({"aria-label":e="Breadcrumb",separator:t="chevron",variant:n="text",size:r="sm",isDisabled:i,className:a,children:l})=>{const o=b.useMemo(()=>({separator:t,variant:n,size:r}),[t,n,r]);return b.createElement("nav",{"aria-label":e},b.createElement(d$.Provider,{value:o},b.createElement(Pv,{isDisabled:i,className:H(cA,a)},l)))};f$.displayName="Breadcrumbs";const ps=({type:e="chevron",className:t})=>{const n=e==="slash"?M$:Ns;return b.createElement("span",{"aria-hidden":"true",className:H(mA({type:e}),t)},b.createElement(n,{className:"size-full",stroke:2}))};ps.displayName="BreadcrumbSeparator";const m$=({className:e,children:t})=>{const{separator:n}=c$();return b.createElement(kv,{className:H(fA,e)},({isCurrent:r})=>b.createElement(b.Fragment,null,t,!r&&b.createElement(ps,{type:n})))};m$.displayName="Breadcrumb";const h$=({variant:e,size:t,icon:n,children:r,...i})=>{const a=c$();return b.createElement(hs,{variant:e??a.variant,size:t??a.size,...i},n&&b.createElement("span",{className:hA,"aria-hidden":"true"},n),r)};h$.displayName="BreadcrumbLink";const pA={xs:24,sm:32,md:40,lg:48,xl:56},bA={xs:12,sm:16,md:20,lg:24,xl:28},p$={brand:{light:"bg-primary-100",dark:"bg-primary-500",glass:"bg-primary-100/60 backdrop-blur-sm"},gray:{light:"bg-light-100",dark:"bg-light-600",modern:"bg-white border border-light-200 shadow-xs"},error:{light:"bg-error-50",dark:"bg-error-500"},warning:{light:"bg-warning-100",dark:"bg-warning-600"},success:{light:"bg-success-50",dark:"bg-success-500"}},b$={brand:{light:"text-primary-500",dark:"text-white",glass:"text-primary-700"},gray:{light:"text-light-700",dark:"text-white",modern:"text-light-700"},error:{light:"text-error-500",dark:"text-white"},warning:{light:"text-warning-600",dark:"text-white"},success:{light:"text-success-500",dark:"text-white"}};function gA(e,t){return p$[e][t]??p$[e].light??""}function yA(e,t){return b$[e][t]??b$[e].light??""}const $A=Z("relative inline-flex shrink-0 items-center justify-center",{variants:{type:{light:"rounded-full",dark:"rounded-lg",modern:"rounded-lg",glass:"rounded-full"}},defaultVariants:{type:"light"}}),g$=({icon:e,size:t="md",color:n="brand",type:r="light",className:i})=>{const a=pA[t],l=bA[t];return b.createElement("div",{"aria-hidden":!0,className:ee($A({type:r}),gA(n,r),i),style:{width:a,height:a}},b.createElement(An,{icon:e,strokeWidth:2,className:yA(n,r),style:{width:l,height:l}}))};g$.displayName="FeaturedIcon";const vA={xs:20,sm:24,md:28,lg:32},xA={xs:9,sm:11,md:12,lg:14},CA={primary:{default:"bg-primary-100",line:"bg-transparent border border-primary-300",filled:"bg-primary-500"},gray:{default:"bg-light-100",line:"bg-transparent border border-light-300",filled:"bg-light-600"},success:{default:"bg-success-50",line:"bg-transparent border border-success-300",filled:"bg-success-500"}},DA={primary:{default:"text-primary-500",line:"text-primary-500",filled:"text-white"},gray:{default:"text-light-700",line:"text-light-700",filled:"text-white"},success:{default:"text-success-500",line:"text-success-500",filled:"text-white"}};function EA(e,t){return CA[e][t]}function wA(e,t){return DA[e][t]}const SA=Z("relative inline-flex shrink-0 items-center justify-center rounded-full"),y$=({size:e="sm",color:t="primary",type:n="default",className:r})=>{const i=vA[e],a=xA[e];return b.createElement("div",{"aria-hidden":!0,className:ee(SA(),EA(t,n),r),style:{width:i,height:i}},b.createElement(An,{icon:vi,strokeWidth:2.5,className:wA(t,n),style:{width:a,height:a}}))};y$.displayName="CheckIcon";const PA={sm:8,md:10,lg:12},kA={sm:6,md:8,lg:10},BA=Z("relative shrink-0 rounded-full bg-current",{variants:{outline:{true:"ring-2 ring-white",false:""}},defaultVariants:{outline:!1}}),$$=({size:e="sm",outline:t=!1,className:n})=>{const r=PA[e],i=kA[e];return b.createElement("span",{"aria-hidden":!0,className:"relative inline-flex shrink-0 items-center justify-center",style:{width:r,height:r}},b.createElement("span",{className:ee(BA({outline:t}),n),style:{width:i,height:i}}))};$$.displayName="Dot";const v$="inline-flex flex-col gap-3 text-light-900",NA="flex h-9 w-full items-center justify-between gap-1",AA="flex-1 text-center text-body-sm font-semibold text-light-900",FA="flex min-w-0 flex-1 items-center justify-center gap-2",TA=Z("h-fit self-start border-separate border-spacing-x-0",{variants:{size:{sm:"border-spacing-y-1",md:"border-spacing-y-1"}},defaultVariants:{size:"md"}}),IA=Z("font-medium text-light-500",{variants:{size:{sm:"size-8 text-caption-sm",md:"size-10 text-caption-lg"}},defaultVariants:{size:"md"}}),MA=Z(["group/cell relative flex cursor-pointer select-none items-center justify-center rounded-full","font-medium text-light-800 outline-none","transition-colors","data-[outside-month]:pointer-events-none data-[outside-month]:text-light-400","data-[hovered]:bg-light-100","data-[disabled]:pointer-events-none data-[disabled]:text-light-400","data-[unavailable]:pointer-events-none data-[unavailable]:text-light-400 data-[unavailable]:line-through","data-[selected]:bg-primary-500 data-[selected]:text-white","data-[selected]:data-[hovered]:bg-primary-600","data-[focus-visible]:shadow-focus"],{variants:{size:{sm:"size-8 text-caption-sm",md:"size-10 text-caption-lg"}},defaultVariants:{size:"md"}}),KA=["data-[selected]:rounded-none data-[selected]:bg-light-50 data-[selected]:text-light-700","data-[selected]:data-[hovered]:bg-light-100","[td:first-child_&]:data-[selected]:rounded-l-full","[td:last-child_&]:data-[selected]:rounded-r-full","data-[selected]:data-[selection-start]:rounded-full data-[selected]:data-[selection-start]:bg-primary-500 data-[selected]:data-[selection-start]:text-white","data-[selected]:data-[selection-end]:rounded-full data-[selected]:data-[selection-end]:bg-primary-500 data-[selected]:data-[selection-end]:text-white","data-[selected]:data-[hovered]:data-[selection-start]:bg-primary-600","data-[selected]:data-[hovered]:data-[selection-end]:bg-primary-600"],LA=["pointer-events-none absolute bottom-1 left-1/2 size-1 -translate-x-1/2 rounded-full","bg-primary-500","group-data-[selected]/cell:group-data-[selection-start]/cell:bg-white","group-data-[selected]/cell:group-data-[selection-end]/cell:bg-white","group-data-[disabled]/cell:bg-light-400","group-data-[unavailable]/cell:bg-light-400"],OA=["data-[today]:font-bold data-[today]:text-primary-500","data-[today]:data-[selected]:text-primary-500","data-[today]:data-[selected]:data-[selection-start]:text-white","data-[today]:data-[selected]:data-[selection-end]:text-white"],zA=["data-[today]:font-bold data-[today]:text-primary-500","data-[today]:data-[selected]:text-white"],x$=["flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg","text-light-500 outline-none transition-colors","data-[hovered]:bg-light-100 data-[hovered]:text-light-700","data-[focus-visible]:shadow-focus","data-[disabled]:cursor-not-allowed data-[disabled]:text-light-300"],tl=b.createContext({size:"md",isRange:!1});function VA(e,t){return b.useMemo(()=>t?new Proxy(e,{get(n,r,i){return r==="focusedDate"?n.focusedDate.add(t):r==="setFocusedDate"?a=>n.setFocusedDate(a.subtract(t)):Reflect.get(n,r,i)}}):e,[e,t])}function C$(e){const t=b.useContext(Yn),n=b.useContext(qn),r=t??n;if(!r)throw new Error("CalendarMonthSelect/CalendarYearSelect must be rendered inside a Calendar or RangeCalendar.");return VA(r,e)}function _A({previousLabel:e,nextLabel:t,withPickers:n=!1,visibleYears:r=20,offset:i,className:a}){return b.createElement("header",{className:H(NA,a)},b.createElement(Xt,{slot:"previous","aria-label":e,className:H(x$)},b.createElement(T$,{size:20,"aria-hidden":"true"})),n?b.createElement("div",{className:FA},b.createElement(D$,{offset:i}),b.createElement(E$,{visibleYears:r,offset:i})):b.createElement(sx,{offset:i,className:AA}),b.createElement(Xt,{slot:"next","aria-label":t,className:H(x$)},b.createElement(Ns,{size:20,"aria-hidden":"true"})))}function D$({format:e="long",size:t="sm",offset:n,className:r}){const i=C$(n),{items:a,value:l,onChange:o,"aria-label":s}=q6({format:e},i);return b.createElement(cs,{"aria-label":s,selectedKey:l,onSelectionChange:o,className:r},b.createElement(el,{size:t},b.createElement(fs,null)),b.createElement(Pt,null,b.createElement(gi,{items:a},d=>b.createElement(ms,{id:d.id,textValue:d.formatted},d.formatted))))}function E$({visibleYears:e=20,size:t="sm",offset:n,className:r}){const i=C$(n),{items:a,value:l,onChange:o,"aria-label":s}=X6({visibleYears:e},i);return b.createElement(cs,{"aria-label":s,selectedKey:l,onSelectionChange:o,className:r},b.createElement(el,{size:t},b.createElement(fs,null)),b.createElement(Pt,null,b.createElement(gi,{items:a},d=>b.createElement(ms,{id:d.id,textValue:d.formatted},d.formatted))))}function RA({size:e,className:t,...n}){const r=b.useContext(tl),i=e??r.size;return b.createElement(ix,{...n,className:H(TA({size:i}),t)},b.createElement(o0,null,a=>b.createElement(u0,{className:IA({size:i})},a)),b.createElement(s0,null,a=>b.createElement(w$,{date:a,size:i})))}function w$({date:e,size:t,className:n,...r}){const i=b.useContext(tl),a=t??i.size,l=i.hasActivity?.(e)??!1;return b.createElement(ux,{...r,date:e,className:H(MA({size:a}),i.isRange&&KA,i.isRange?OA:zA,n)},({formattedDate:o})=>b.createElement(b.Fragment,null,o,l?b.createElement("span",{"aria-hidden":"true",className:H(LA)}):null))}function jA({size:e="md",hasActivity:t,className:n,children:r,...i}){const a=b.useMemo(()=>({size:e,isRange:!1,hasActivity:t}),[e,t]);return b.createElement(tl.Provider,{value:a},b.createElement(nx,{...i,className:H(v$,n)},r))}function HA({size:e="md",hasActivity:t,className:n,children:r,...i}){const a=b.useMemo(()=>({size:e,isRange:!0,hasActivity:t}),[e,t]);return b.createElement(tl.Provider,{value:a},b.createElement(rx,{...i,className:H(v$,n)},r))}const UA=Z(["flex w-full items-center border bg-white text-left","border-light-200 text-light-800","transition-[border-color,box-shadow]","data-[focus-within]:border-primary-500","data-[focus-visible]:shadow-focus","data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100 data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 gap-1 rounded px-2 text-caption-sm",sm:"h-9 gap-2 rounded-lg px-3 text-caption-lg",md:"h-11 gap-2 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),WA="flex min-w-0 flex-1 items-center",GA=["rounded px-0.5 tabular-nums outline-none","text-light-800 caret-transparent","data-[placeholder]:text-light-400","data-[focused]:bg-primary-500 data-[focused]:text-white","data-[disabled]:text-light-400","data-[type=literal]:px-0 data-[type=literal]:text-light-400"],ZA=Z("flex shrink-0 items-center justify-center text-light-500",{variants:{size:{xs:"size-5",sm:"size-6",md:"size-7"}},defaultVariants:{size:"md"}});function YA({size:e="md",icon:t,trailing:n,className:r,style:i,...a}){return b.createElement(C8,{...a,style:i,className:H("group w-full",r)},b.createElement(Lr,{className:UA({size:e})},t?b.createElement("span",{className:ZA({size:e}),"aria-hidden":"true"},t):null,b.createElement(D8,{className:WA},l=>b.createElement(w8,{segment:l,className:H(GA)})),n))}U.Alert=_y,U.Avatar=Ha,U.AvatarGroup=s1,U.AvatarLabelGroup=d1,U.AvatarProfilePhoto=c1,U.Badge=r1,U.BadgeGroup=i1,U.BaseInput=ti,U.Breadcrumb=m$,U.BreadcrumbLink=h$,U.BreadcrumbSeparator=ps,U.Breadcrumbs=f$,U.Button=Ze,U.Calendar=jA,U.CalendarCell=w$,U.CalendarGrid=RA,U.CalendarHeader=_A,U.CalendarMonthSelect=D$,U.CalendarYearSelect=E$,U.Cell=Qy,U.CheckIcon=y$,U.Checkbox=q2,U.CollectionItem=CB,U.Column=Jy,U.ColumnResizer=Qa,U.ComboBox=JN,U.ComboBoxInput=l$,U.ComboBoxItem=eA,U.ComboBoxTags=QN,U.ComboBoxTrigger=a$,U.DateField=YA,U.Dot=$$,U.EmptyState=t$,U.FeaturedIcon=g$,U.Icon=An,U.Input=os,U.InputCardNumber=Kk,U.InputCounter=Bk,U.InputDropdown=vB,U.InputPhone=xk,U.InputPrice=kk,U.Link=hs,U.ListBox=gi,U.ListBoxItem=ds,U.ListBoxSeparator=TN,U.Loading=a1,U.Menu=Ou,U.MenuHeader=jE,U.MenuItem=zu,U.MenuSeparator=RE,U.MenuTrigger=Aa,U.Modal=bi,U.MultiSelect=tA,U.MultiSelectPopover=sA,U.MultiSelectTrigger=s$,U.NotificationToast=Wy,U.Popover=Pt,U.RadioGroup=fD,U.RadioGroupItem=J2,U.RangeCalendar=HA,U.Row=gN,U.Select=cs,U.SelectItem=ms,U.SelectPopover=WN,U.SelectTrigger=el,U.SelectValue=fs,U.SelectionIndicator=Dx,U.Tab=f1,U.TabBrowser=$1,U.TabBrowserBar=v1,U.TabBrowserPreview=x1,U.TabList=m1,U.Table=Xy,U.TableBody=hN,U.TableContainer=qy,U.TableFooter=pN,U.TableHeader=mN,U.TableLoadMoreItem=e$,U.Tag=Tu,U.Textarea=My,U.Toast=Ry,U.Toggle=Q2,U.Tooltip=Ra,U.WebsiteCopyInput=sB,U.WebsiteInput=eB,U.buttonIconSizePx=aD,U.cellTruncate=dN,U.getDefaultCountryOptions=By,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));